3949 lines
2.7 MiB
3949 lines
2.7 MiB
(function(){const H=document.createElement("link").relList;if(H&&H.supports&&H.supports("modulepreload"))return;for(const G of document.querySelectorAll('link[rel="modulepreload"]'))W(G);new MutationObserver(G=>{for(const X of G)if(X.type==="childList")for(const Z of X.addedNodes)Z.tagName==="LINK"&&Z.rel==="modulepreload"&&W(Z)}).observe(document,{childList:!0,subtree:!0});function U(G){const X={};return G.integrity&&(X.integrity=G.integrity),G.referrerpolicy&&(X.referrerPolicy=G.referrerpolicy),G.crossorigin==="use-credentials"?X.credentials="include":G.crossorigin==="anonymous"?X.credentials="omit":X.credentials="same-origin",X}function W(G){if(G.ep)return;G.ep=!0;const X=U(G);fetch(G.href,X)}})();function makeMap(C,H){const U=Object.create(null),W=C.split(",");for(let G=0;G<W.length;G++)U[W[G]]=!0;return H?G=>!!U[G.toLowerCase()]:G=>!!U[G]}function normalizeStyle(C){if(isArray$e(C)){const H={};for(let U=0;U<C.length;U++){const W=C[U],G=isString$4(W)?parseStringStyle(W):normalizeStyle(W);if(G)for(const X in G)H[X]=G[X]}return H}else{if(isString$4(C))return C;if(isObject$f(C))return C}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*.*?\*\//gs;function parseStringStyle(C){const H={};return C.replace(styleCommentRE,"").split(listDelimiterRE).forEach(U=>{if(U){const W=U.split(propertyDelimiterRE);W.length>1&&(H[W[0].trim()]=W[1].trim())}}),H}function normalizeClass(C){let H="";if(isString$4(C))H=C;else if(isArray$e(C))for(let U=0;U<C.length;U++){const W=normalizeClass(C[U]);W&&(H+=W+" ")}else if(isObject$f(C))for(const U in C)C[U]&&(H+=U+" ");return H.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(C){return!!C||C===""}const toDisplayString$1=C=>isString$4(C)?C:C==null?"":isArray$e(C)||isObject$f(C)&&(C.toString===objectToString$4||!isFunction$8(C.toString))?JSON.stringify(C,replacer,2):String(C),replacer=(C,H)=>H&&H.__v_isRef?replacer(C,H.value):isMap$4(H)?{[`Map(${H.size})`]:[...H.entries()].reduce((U,[W,G])=>(U[`${W} =>`]=G,U),{})}:isSet$4(H)?{[`Set(${H.size})`]:[...H.values()]}:isObject$f(H)&&!isArray$e(H)&&!isPlainObject$4(H)?String(H):H,EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE$1=/^on[^a-z]/,isOn$1=C=>onRE$1.test(C),isModelListener=C=>C.startsWith("onUpdate:"),extend$4=Object.assign,remove$1=(C,H)=>{const U=C.indexOf(H);U>-1&&C.splice(U,1)},hasOwnProperty$v=Object.prototype.hasOwnProperty,hasOwn$2=(C,H)=>hasOwnProperty$v.call(C,H),isArray$e=Array.isArray,isMap$4=C=>toTypeString$1(C)==="[object Map]",isSet$4=C=>toTypeString$1(C)==="[object Set]",isFunction$8=C=>typeof C=="function",isString$4=C=>typeof C=="string",isSymbol$6=C=>typeof C=="symbol",isObject$f=C=>C!==null&&typeof C=="object",isPromise=C=>isObject$f(C)&&isFunction$8(C.then)&&isFunction$8(C.catch),objectToString$4=Object.prototype.toString,toTypeString$1=C=>objectToString$4.call(C),toRawType=C=>toTypeString$1(C).slice(8,-1),isPlainObject$4=C=>toTypeString$1(C)==="[object Object]",isIntegerKey=C=>isString$4(C)&&C!=="NaN"&&C[0]!=="-"&&""+parseInt(C,10)===C,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction$1=C=>{const H=Object.create(null);return U=>H[U]||(H[U]=C(U))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction$1(C=>C.replace(camelizeRE$1,(H,U)=>U?U.toUpperCase():"")),hyphenateRE$1=/\B([A-Z])/g,hyphenate$1=cacheStringFunction$1(C=>C.replace(hyphenateRE$1,"-$1").toLowerCase()),capitalize$1=cacheStringFunction$1(C=>C.charAt(0).toUpperCase()+C.slice(1)),toHandlerKey=cacheStringFunction$1(C=>C?`on${capitalize$1(C)}`:""),hasChanged=(C,H)=>!Object.is(C,H),invokeArrayFns=(C,H)=>{for(let U=0;U<C.length;U++)C[U](H)},def=(C,H,U)=>{Object.defineProperty(C,H,{configurable:!0,enumerable:!1,value:U})},looseToNumber=C=>{const H=parseFloat(C);return isNaN(H)?C:H},toNumber$3=C=>{const H=isString$4(C)?Number(C):NaN;return isNaN(H)?C:H};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let activeEffectScope;class EffectScope{constructor(H=!1){this.detached=H,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!H&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(H){if(this._active){const U=activeEffectScope;try{return activeEffectScope=this,H()}finally{activeEffectScope=U}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(H){if(this._active){let U,W;for(U=0,W=this.effects.length;U<W;U++)this.effects[U].stop();for(U=0,W=this.cleanups.length;U<W;U++)this.cleanups[U]();if(this.scopes)for(U=0,W=this.scopes.length;U<W;U++)this.scopes[U].stop(!0);if(!this.detached&&this.parent&&!H){const G=this.parent.scopes.pop();G&&G!==this&&(this.parent.scopes[this.index]=G,G.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(C){return new EffectScope(C)}function recordEffectScope(C,H=activeEffectScope){H&&H.active&&H.effects.push(C)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(C){activeEffectScope&&activeEffectScope.cleanups.push(C)}const createDep=C=>{const H=new Set(C);return H.w=0,H.n=0,H},wasTracked=C=>(C.w&trackOpBit)>0,newTracked=C=>(C.n&trackOpBit)>0,initDepMarkers=({deps:C})=>{if(C.length)for(let H=0;H<C.length;H++)C[H].w|=trackOpBit},finalizeDepMarkers=C=>{const{deps:H}=C;if(H.length){let U=0;for(let W=0;W<H.length;W++){const G=H[W];wasTracked(G)&&!newTracked(G)?G.delete(C):H[U++]=G,G.w&=~trackOpBit,G.n&=~trackOpBit}H.length=U}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(H,U=null,W){this.fn=H,this.scheduler=U,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,W)}run(){if(!this.active)return this.fn();let H=activeEffect,U=shouldTrack;for(;H;){if(H===this)return;H=H.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=U,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(C){const{deps:H}=C;if(H.length){for(let U=0;U<H.length;U++)H[U].delete(C);H.length=0}}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const C=trackStack.pop();shouldTrack=C===void 0?!0:C}function track(C,H,U){if(shouldTrack&&activeEffect){let W=targetMap.get(C);W||targetMap.set(C,W=new Map);let G=W.get(U);G||W.set(U,G=createDep()),trackEffects(G)}}function trackEffects(C,H){let U=!1;effectTrackDepth<=maxMarkerBits?newTracked(C)||(C.n|=trackOpBit,U=!wasTracked(C)):U=!C.has(activeEffect),U&&(C.add(activeEffect),activeEffect.deps.push(C))}function trigger$1(C,H,U,W,G,X){const Z=targetMap.get(C);if(!Z)return;let Q=[];if(H==="clear")Q=[...Z.values()];else if(U==="length"&&isArray$e(C)){const ee=Number(W);Z.forEach((ie,te)=>{(te==="length"||te>=ee)&&Q.push(ie)})}else switch(U!==void 0&&Q.push(Z.get(U)),H){case"add":isArray$e(C)?isIntegerKey(U)&&Q.push(Z.get("length")):(Q.push(Z.get(ITERATE_KEY)),isMap$4(C)&&Q.push(Z.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$e(C)||(Q.push(Z.get(ITERATE_KEY)),isMap$4(C)&&Q.push(Z.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$4(C)&&Q.push(Z.get(ITERATE_KEY));break}if(Q.length===1)Q[0]&&triggerEffects(Q[0]);else{const ee=[];for(const ie of Q)ie&&ee.push(...ie);triggerEffects(createDep(ee))}}function triggerEffects(C,H){const U=isArray$e(C)?C:[...C];for(const W of U)W.computed&&triggerEffect(W);for(const W of U)W.computed||triggerEffect(W)}function triggerEffect(C,H){(C!==activeEffect||C.allowRecurse)&&(C.scheduler?C.scheduler():C.run())}function getDepFromReactive(C,H){var U;return(U=targetMap.get(C))===null||U===void 0?void 0:U.get(H)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(C=>C!=="arguments"&&C!=="caller").map(C=>Symbol[C]).filter(isSymbol$6)),get$1$2=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const C={};return["includes","indexOf","lastIndexOf"].forEach(H=>{C[H]=function(...U){const W=toRaw(this);for(let X=0,Z=this.length;X<Z;X++)track(W,"get",X+"");const G=W[H](...U);return G===-1||G===!1?W[H](...U.map(toRaw)):G}}),["push","pop","shift","unshift","splice"].forEach(H=>{C[H]=function(...U){pauseTracking();const W=toRaw(this)[H].apply(this,U);return resetTracking(),W}}),C}function hasOwnProperty$u(C){const H=toRaw(this);return track(H,"has",C),H.hasOwnProperty(C)}function createGetter(C=!1,H=!1){return function(W,G,X){if(G==="__v_isReactive")return!C;if(G==="__v_isReadonly")return C;if(G==="__v_isShallow")return H;if(G==="__v_raw"&&X===(C?H?shallowReadonlyMap:readonlyMap:H?shallowReactiveMap:reactiveMap).get(W))return W;const Z=isArray$e(W);if(!C){if(Z&&hasOwn$2(arrayInstrumentations,G))return Reflect.get(arrayInstrumentations,G,X);if(G==="hasOwnProperty")return hasOwnProperty$u}const Q=Reflect.get(W,G,X);return(isSymbol$6(G)?builtInSymbols.has(G):isNonTrackableKeys(G))||(C||track(W,"get",G),H)?Q:isRef(Q)?Z&&isIntegerKey(G)?Q:Q.value:isObject$f(Q)?C?readonly(Q):reactive(Q):Q}}const set$1$2=createSetter(),shallowSet=createSetter(!0);function createSetter(C=!1){return function(U,W,G,X){let Z=U[W];if(isReadonly(Z)&&isRef(Z)&&!isRef(G))return!1;if(!C&&(!isShallow(G)&&!isReadonly(G)&&(Z=toRaw(Z),G=toRaw(G)),!isArray$e(U)&&isRef(Z)&&!isRef(G)))return Z.value=G,!0;const Q=isArray$e(U)&&isIntegerKey(W)?Number(W)<U.length:hasOwn$2(U,W),ee=Reflect.set(U,W,G,X);return U===toRaw(X)&&(Q?hasChanged(G,Z)&&trigger$1(U,"set",W,G):trigger$1(U,"add",W,G)),ee}}function deleteProperty(C,H){const U=hasOwn$2(C,H);C[H];const W=Reflect.deleteProperty(C,H);return W&&U&&trigger$1(C,"delete",H,void 0),W}function has$1$1(C,H){const U=Reflect.has(C,H);return(!isSymbol$6(H)||!builtInSymbols.has(H))&&track(C,"has",H),U}function ownKeys$2(C){return track(C,"iterate",isArray$e(C)?"length":ITERATE_KEY),Reflect.ownKeys(C)}const mutableHandlers={get:get$1$2,set:set$1$2,deleteProperty,has:has$1$1,ownKeys:ownKeys$2},readonlyHandlers={get:readonlyGet,set(C,H){return!0},deleteProperty(C,H){return!0}},shallowReactiveHandlers=extend$4({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=C=>C,getProto=C=>Reflect.getPrototypeOf(C);function get$5(C,H,U=!1,W=!1){C=C.__v_raw;const G=toRaw(C),X=toRaw(H);U||(H!==X&&track(G,"get",H),track(G,"get",X));const{has:Z}=getProto(G),Q=W?toShallow:U?toReadonly:toReactive$1;if(Z.call(G,H))return Q(C.get(H));if(Z.call(G,X))return Q(C.get(X));C!==G&&C.get(H)}function has$2(C,H=!1){const U=this.__v_raw,W=toRaw(U),G=toRaw(C);return H||(C!==G&&track(W,"has",C),track(W,"has",G)),C===G?U.has(C):U.has(C)||U.has(G)}function size(C,H=!1){return C=C.__v_raw,!H&&track(toRaw(C),"iterate",ITERATE_KEY),Reflect.get(C,"size",C)}function add$2(C){C=toRaw(C);const H=toRaw(this);return getProto(H).has.call(H,C)||(H.add(C),trigger$1(H,"add",C,C)),this}function set$5(C,H){H=toRaw(H);const U=toRaw(this),{has:W,get:G}=getProto(U);let X=W.call(U,C);X||(C=toRaw(C),X=W.call(U,C));const Z=G.call(U,C);return U.set(C,H),X?hasChanged(H,Z)&&trigger$1(U,"set",C,H):trigger$1(U,"add",C,H),this}function deleteEntry(C){const H=toRaw(this),{has:U,get:W}=getProto(H);let G=U.call(H,C);G||(C=toRaw(C),G=U.call(H,C)),W&&W.call(H,C);const X=H.delete(C);return G&&trigger$1(H,"delete",C,void 0),X}function clear$h(){const C=toRaw(this),H=C.size!==0,U=C.clear();return H&&trigger$1(C,"clear",void 0,void 0),U}function createForEach(C,H){return function(W,G){const X=this,Z=X.__v_raw,Q=toRaw(Z),ee=H?toShallow:C?toReadonly:toReactive$1;return!C&&track(Q,"iterate",ITERATE_KEY),Z.forEach((ie,te)=>W.call(G,ee(ie),ee(te),X))}}function createIterableMethod(C,H,U){return function(...W){const G=this.__v_raw,X=toRaw(G),Z=isMap$4(X),Q=C==="entries"||C===Symbol.iterator&&Z,ee=C==="keys"&&Z,ie=G[C](...W),te=U?toShallow:H?toReadonly:toReactive$1;return!H&&track(X,"iterate",ee?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:ne,done:ae}=ie.next();return ae?{value:ne,done:ae}:{value:Q?[te(ne[0]),te(ne[1])]:te(ne),done:ae}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(C){return function(...H){return C==="delete"?!1:this}}function createInstrumentations(){const C={get(X){return get$5(this,X)},get size(){return size(this)},has:has$2,add:add$2,set:set$5,delete:deleteEntry,clear:clear$h,forEach:createForEach(!1,!1)},H={get(X){return get$5(this,X,!1,!0)},get size(){return size(this)},has:has$2,add:add$2,set:set$5,delete:deleteEntry,clear:clear$h,forEach:createForEach(!1,!0)},U={get(X){return get$5(this,X,!0)},get size(){return size(this,!0)},has(X){return has$2.call(this,X,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},W={get(X){return get$5(this,X,!0,!0)},get size(){return size(this,!0)},has(X){return has$2.call(this,X,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(X=>{C[X]=createIterableMethod(X,!1,!1),U[X]=createIterableMethod(X,!0,!1),H[X]=createIterableMethod(X,!1,!0),W[X]=createIterableMethod(X,!0,!0)}),[C,U,H,W]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(C,H){const U=H?C?shallowReadonlyInstrumentations:shallowInstrumentations:C?readonlyInstrumentations:mutableInstrumentations;return(W,G,X)=>G==="__v_isReactive"?!C:G==="__v_isReadonly"?C:G==="__v_raw"?W:Reflect.get(hasOwn$2(U,G)&&G in W?U:W,G,X)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(C){switch(C){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(C){return C.__v_skip||!Object.isExtensible(C)?0:targetTypeMap(toRawType(C))}function reactive(C){return isReadonly(C)?C:createReactiveObject(C,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(C){return createReactiveObject(C,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(C){return createReactiveObject(C,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(C,H,U,W,G){if(!isObject$f(C)||C.__v_raw&&!(H&&C.__v_isReactive))return C;const X=G.get(C);if(X)return X;const Z=getTargetType(C);if(Z===0)return C;const Q=new Proxy(C,Z===2?W:U);return G.set(C,Q),Q}function isReactive(C){return isReadonly(C)?isReactive(C.__v_raw):!!(C&&C.__v_isReactive)}function isReadonly(C){return!!(C&&C.__v_isReadonly)}function isShallow(C){return!!(C&&C.__v_isShallow)}function isProxy(C){return isReactive(C)||isReadonly(C)}function toRaw(C){const H=C&&C.__v_raw;return H?toRaw(H):C}function markRaw(C){return def(C,"__v_skip",!0),C}const toReactive$1=C=>isObject$f(C)?reactive(C):C,toReadonly=C=>isObject$f(C)?readonly(C):C;function trackRefValue(C){shouldTrack&&activeEffect&&(C=toRaw(C),trackEffects(C.dep||(C.dep=createDep())))}function triggerRefValue(C,H){C=toRaw(C);const U=C.dep;U&&triggerEffects(U)}function isRef(C){return!!(C&&C.__v_isRef===!0)}function ref(C){return createRef$1(C,!1)}function shallowRef(C){return createRef$1(C,!0)}function createRef$1(C,H){return isRef(C)?C:new RefImpl(C,H)}class RefImpl{constructor(H,U){this.__v_isShallow=U,this.dep=void 0,this.__v_isRef=!0,this._rawValue=U?H:toRaw(H),this._value=U?H:toReactive$1(H)}get value(){return trackRefValue(this),this._value}set value(H){const U=this.__v_isShallow||isShallow(H)||isReadonly(H);H=U?H:toRaw(H),hasChanged(H,this._rawValue)&&(this._rawValue=H,this._value=U?H:toReactive$1(H),triggerRefValue(this))}}function unref(C){return isRef(C)?C.value:C}const shallowUnwrapHandlers={get:(C,H,U)=>unref(Reflect.get(C,H,U)),set:(C,H,U,W)=>{const G=C[H];return isRef(G)&&!isRef(U)?(G.value=U,!0):Reflect.set(C,H,U,W)}};function proxyRefs(C){return isReactive(C)?C:new Proxy(C,shallowUnwrapHandlers)}function toRefs(C){const H=isArray$e(C)?new Array(C.length):{};for(const U in C)H[U]=toRef(C,U);return H}class ObjectRefImpl{constructor(H,U,W){this._object=H,this._key=U,this._defaultValue=W,this.__v_isRef=!0}get value(){const H=this._object[this._key];return H===void 0?this._defaultValue:H}set value(H){this._object[this._key]=H}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function toRef(C,H,U){const W=C[H];return isRef(W)?W:new ObjectRefImpl(C,H,U)}var _a$1;class ComputedRefImpl{constructor(H,U,W,G){this._setter=U,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(H,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!G,this.__v_isReadonly=W}get value(){const H=toRaw(this);return trackRefValue(H),(H._dirty||!H._cacheable)&&(H._dirty=!1,H._value=H.effect.run()),H._value}set value(H){this._setter(H)}}_a$1="__v_isReadonly";function computed$1(C,H,U=!1){let W,G;const X=isFunction$8(C);return X?(W=C,G=NOOP):(W=C.get,G=C.set),new ComputedRefImpl(W,G,X||!G,U)}function warn$2(C,...H){}function callWithErrorHandling(C,H,U,W){let G;try{G=W?C(...W):C()}catch(X){handleError$1(X,H,U)}return G}function callWithAsyncErrorHandling(C,H,U,W){if(isFunction$8(C)){const X=callWithErrorHandling(C,H,U,W);return X&&isPromise(X)&&X.catch(Z=>{handleError$1(Z,H,U)}),X}const G=[];for(let X=0;X<C.length;X++)G.push(callWithAsyncErrorHandling(C[X],H,U,W));return G}function handleError$1(C,H,U,W=!0){const G=H?H.vnode:null;if(H){let X=H.parent;const Z=H.proxy,Q=U;for(;X;){const ie=X.ec;if(ie){for(let te=0;te<ie.length;te++)if(ie[te](C,Z,Q)===!1)return}X=X.parent}const ee=H.appContext.config.errorHandler;if(ee){callWithErrorHandling(ee,null,10,[C,Z,Q]);return}}logError(C,U,G,W)}function logError(C,H,U,W=!0){console.error(C)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(C){const H=currentFlushPromise||resolvedPromise;return C?H.then(this?C.bind(this):C):H}function findInsertionIndex(C){let H=flushIndex+1,U=queue$2.length;for(;H<U;){const W=H+U>>>1;getId$1(queue$2[W])<C?H=W+1:U=W}return H}function queueJob(C){(!queue$2.length||!queue$2.includes(C,isFlushing&&C.allowRecurse?flushIndex+1:flushIndex))&&(C.id==null?queue$2.push(C):queue$2.splice(findInsertionIndex(C.id),0,C),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(C){const H=queue$2.indexOf(C);H>flushIndex&&queue$2.splice(H,1)}function queuePostFlushCb(C){isArray$e(C)?pendingPostFlushCbs.push(...C):(!activePostFlushCbs||!activePostFlushCbs.includes(C,C.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(C),queueFlush()}function flushPreFlushCbs(C,H=isFlushing?flushIndex+1:0){for(;H<queue$2.length;H++){const U=queue$2[H];U&&U.pre&&(queue$2.splice(H,1),H--,U())}}function flushPostFlushCbs(C){if(pendingPostFlushCbs.length){const H=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...H);return}for(activePostFlushCbs=H,activePostFlushCbs.sort((U,W)=>getId$1(U)-getId$1(W)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=C=>C.id==null?1/0:C.id,comparator=(C,H)=>{const U=getId$1(C)-getId$1(H);if(U===0){if(C.pre&&!H.pre)return-1;if(H.pre&&!C.pre)return 1}return U};function flushJobs(C){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);const H=NOOP;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const U=queue$2[flushIndex];U&&U.active!==!1&&callWithErrorHandling(U,null,14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(C,H,...U){if(C.isUnmounted)return;const W=C.vnode.props||EMPTY_OBJ;let G=U;const X=H.startsWith("update:"),Z=X&&H.slice(7);if(Z&&Z in W){const te=`${Z==="modelValue"?"model":Z}Modifiers`,{number:ne,trim:ae}=W[te]||EMPTY_OBJ;ae&&(G=U.map(oe=>isString$4(oe)?oe.trim():oe)),ne&&(G=U.map(looseToNumber))}let Q,ee=W[Q=toHandlerKey(H)]||W[Q=toHandlerKey(camelize$1(H))];!ee&&X&&(ee=W[Q=toHandlerKey(hyphenate$1(H))]),ee&&callWithAsyncErrorHandling(ee,C,6,G);const ie=W[Q+"Once"];if(ie){if(!C.emitted)C.emitted={};else if(C.emitted[Q])return;C.emitted[Q]=!0,callWithAsyncErrorHandling(ie,C,6,G)}}function normalizeEmitsOptions(C,H,U=!1){const W=H.emitsCache,G=W.get(C);if(G!==void 0)return G;const X=C.emits;let Z={},Q=!1;if(!isFunction$8(C)){const ee=ie=>{const te=normalizeEmitsOptions(ie,H,!0);te&&(Q=!0,extend$4(Z,te))};!U&&H.mixins.length&&H.mixins.forEach(ee),C.extends&&ee(C.extends),C.mixins&&C.mixins.forEach(ee)}return!X&&!Q?(isObject$f(C)&&W.set(C,null),null):(isArray$e(X)?X.forEach(ee=>Z[ee]=null):extend$4(Z,X),isObject$f(C)&&W.set(C,Z),Z)}function isEmitListener(C,H){return!C||!isOn$1(H)?!1:(H=H.slice(2).replace(/Once$/,""),hasOwn$2(C,H[0].toLowerCase()+H.slice(1))||hasOwn$2(C,hyphenate$1(H))||hasOwn$2(C,H))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(C){const H=currentRenderingInstance;return currentRenderingInstance=C,currentScopeId=C&&C.type.__scopeId||null,H}function pushScopeId(C){currentScopeId=C}function popScopeId(){currentScopeId=null}function withCtx(C,H=currentRenderingInstance,U){if(!H||C._n)return C;const W=(...G)=>{W._d&&setBlockTracking(-1);const X=setCurrentRenderingInstance(H);let Z;try{Z=C(...G)}finally{setCurrentRenderingInstance(X),W._d&&setBlockTracking(1)}return Z};return W._n=!0,W._c=!0,W._d=!0,W}function markAttrsAccessed(){}function renderComponentRoot(C){const{type:H,vnode:U,proxy:W,withProxy:G,props:X,propsOptions:[Z],slots:Q,attrs:ee,emit:ie,render:te,renderCache:ne,data:ae,setupState:oe,ctx:se,inheritAttrs:le}=C;let ce,ue;const de=setCurrentRenderingInstance(C);try{if(U.shapeFlag&4){const ge=G||W;ce=normalizeVNode(te.call(ge,ge,ne,X,oe,ae,se)),ue=ee}else{const ge=H;ce=normalizeVNode(ge.length>1?ge(X,{attrs:ee,slots:Q,emit:ie}):ge(X,null)),ue=H.props?ee:getFunctionalFallthrough(ee)}}catch(ge){blockStack.length=0,handleError$1(ge,C,1),ce=createVNode(Comment)}let ve=ce;if(ue&&le!==!1){const ge=Object.keys(ue),{shapeFlag:he}=ve;ge.length&&he&7&&(Z&&ge.some(isModelListener)&&(ue=filterModelListeners(ue,Z)),ve=cloneVNode(ve,ue))}return U.dirs&&(ve=cloneVNode(ve),ve.dirs=ve.dirs?ve.dirs.concat(U.dirs):U.dirs),U.transition&&(ve.transition=U.transition),ce=ve,setCurrentRenderingInstance(de),ce}const getFunctionalFallthrough=C=>{let H;for(const U in C)(U==="class"||U==="style"||isOn$1(U))&&((H||(H={}))[U]=C[U]);return H},filterModelListeners=(C,H)=>{const U={};for(const W in C)(!isModelListener(W)||!(W.slice(9)in H))&&(U[W]=C[W]);return U};function shouldUpdateComponent(C,H,U){const{props:W,children:G,component:X}=C,{props:Z,children:Q,patchFlag:ee}=H,ie=X.emitsOptions;if(H.dirs||H.transition)return!0;if(U&&ee>=0){if(ee&1024)return!0;if(ee&16)return W?hasPropsChanged(W,Z,ie):!!Z;if(ee&8){const te=H.dynamicProps;for(let ne=0;ne<te.length;ne++){const ae=te[ne];if(Z[ae]!==W[ae]&&!isEmitListener(ie,ae))return!0}}}else return(G||Q)&&(!Q||!Q.$stable)?!0:W===Z?!1:W?Z?hasPropsChanged(W,Z,ie):!0:!!Z;return!1}function hasPropsChanged(C,H,U){const W=Object.keys(H);if(W.length!==Object.keys(C).length)return!0;for(let G=0;G<W.length;G++){const X=W[G];if(H[X]!==C[X]&&!isEmitListener(U,X))return!0}return!1}function updateHOCHostEl({vnode:C,parent:H},U){for(;H&&H.subTree===C;)(C=H.vnode).el=U,H=H.parent}const isSuspense=C=>C.__isSuspense;function queueEffectWithSuspense(C,H){H&&H.pendingBranch?isArray$e(C)?H.effects.push(...C):H.effects.push(C):queuePostFlushCb(C)}function provide(C,H){if(currentInstance){let U=currentInstance.provides;const W=currentInstance.parent&¤tInstance.parent.provides;W===U&&(U=currentInstance.provides=Object.create(W)),U[C]=H}}function inject(C,H,U=!1){const W=currentInstance||currentRenderingInstance;if(W){const G=W.parent==null?W.vnode.appContext&&W.vnode.appContext.provides:W.parent.provides;if(G&&C in G)return G[C];if(arguments.length>1)return U&&isFunction$8(H)?H.call(W.proxy):H}}function watchEffect(C,H){return doWatch(C,null,H)}const INITIAL_WATCHER_VALUE={};function watch(C,H,U){return doWatch(C,H,U)}function doWatch(C,H,{immediate:U,deep:W,flush:G,onTrack:X,onTrigger:Z}=EMPTY_OBJ){const Q=getCurrentScope()===(currentInstance==null?void 0:currentInstance.scope)?currentInstance:null;let ee,ie=!1,te=!1;if(isRef(C)?(ee=()=>C.value,ie=isShallow(C)):isReactive(C)?(ee=()=>C,W=!0):isArray$e(C)?(te=!0,ie=C.some(ve=>isReactive(ve)||isShallow(ve)),ee=()=>C.map(ve=>{if(isRef(ve))return ve.value;if(isReactive(ve))return traverse(ve);if(isFunction$8(ve))return callWithErrorHandling(ve,Q,2)})):isFunction$8(C)?H?ee=()=>callWithErrorHandling(C,Q,2):ee=()=>{if(!(Q&&Q.isUnmounted))return ne&&ne(),callWithAsyncErrorHandling(C,Q,3,[ae])}:ee=NOOP,H&&W){const ve=ee;ee=()=>traverse(ve())}let ne,ae=ve=>{ne=ue.onStop=()=>{callWithErrorHandling(ve,Q,4)}},oe;if(isInSSRComponentSetup)if(ae=NOOP,H?U&&callWithAsyncErrorHandling(H,Q,3,[ee(),te?[]:void 0,ae]):ee(),G==="sync"){const ve=useSSRContext();oe=ve.__watcherHandles||(ve.__watcherHandles=[])}else return NOOP;let se=te?new Array(C.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const le=()=>{if(!!ue.active)if(H){const ve=ue.run();(W||ie||(te?ve.some((ge,he)=>hasChanged(ge,se[he])):hasChanged(ve,se)))&&(ne&&ne(),callWithAsyncErrorHandling(H,Q,3,[ve,se===INITIAL_WATCHER_VALUE?void 0:te&&se[0]===INITIAL_WATCHER_VALUE?[]:se,ae]),se=ve)}else ue.run()};le.allowRecurse=!!H;let ce;G==="sync"?ce=le:G==="post"?ce=()=>queuePostRenderEffect(le,Q&&Q.suspense):(le.pre=!0,Q&&(le.id=Q.uid),ce=()=>queueJob(le));const ue=new ReactiveEffect(ee,ce);H?U?le():se=ue.run():G==="post"?queuePostRenderEffect(ue.run.bind(ue),Q&&Q.suspense):ue.run();const de=()=>{ue.stop(),Q&&Q.scope&&remove$1(Q.scope.effects,ue)};return oe&&oe.push(de),de}function instanceWatch(C,H,U){const W=this.proxy,G=isString$4(C)?C.includes(".")?createPathGetter(W,C):()=>W[C]:C.bind(W,W);let X;isFunction$8(H)?X=H:(X=H.handler,U=H);const Z=currentInstance;setCurrentInstance(this);const Q=doWatch(G,X.bind(W),U);return Z?setCurrentInstance(Z):unsetCurrentInstance(),Q}function createPathGetter(C,H){const U=H.split(".");return()=>{let W=C;for(let G=0;G<U.length&&W;G++)W=W[U[G]];return W}}function traverse(C,H){if(!isObject$f(C)||C.__v_skip||(H=H||new Set,H.has(C)))return C;if(H.add(C),isRef(C))traverse(C.value,H);else if(isArray$e(C))for(let U=0;U<C.length;U++)traverse(C[U],H);else if(isSet$4(C)||isMap$4(C))C.forEach(U=>{traverse(U,H)});else if(isPlainObject$4(C))for(const U in C)traverse(C[U],H);return C}function useTransitionState(){const C={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{C.isMounted=!0}),onBeforeUnmount(()=>{C.isUnmounting=!0}),C}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(C,{slots:H}){const U=getCurrentInstance(),W=useTransitionState();let G;return()=>{const X=H.default&&getTransitionRawChildren(H.default(),!0);if(!X||!X.length)return;let Z=X[0];if(X.length>1){for(const le of X)if(le.type!==Comment){Z=le;break}}const Q=toRaw(C),{mode:ee}=Q;if(W.isLeaving)return emptyPlaceholder(Z);const ie=getKeepAliveChild(Z);if(!ie)return emptyPlaceholder(Z);const te=resolveTransitionHooks(ie,Q,W,U);setTransitionHooks(ie,te);const ne=U.subTree,ae=ne&&getKeepAliveChild(ne);let oe=!1;const{getTransitionKey:se}=ie.type;if(se){const le=se();G===void 0?G=le:le!==G&&(G=le,oe=!0)}if(ae&&ae.type!==Comment&&(!isSameVNodeType(ie,ae)||oe)){const le=resolveTransitionHooks(ae,Q,W,U);if(setTransitionHooks(ae,le),ee==="out-in")return W.isLeaving=!0,le.afterLeave=()=>{W.isLeaving=!1,U.update.active!==!1&&U.update()},emptyPlaceholder(Z);ee==="in-out"&&ie.type!==Comment&&(le.delayLeave=(ce,ue,de)=>{const ve=getLeavingNodesForType(W,ae);ve[String(ae.key)]=ae,ce._leaveCb=()=>{ue(),ce._leaveCb=void 0,delete te.delayedLeave},te.delayedLeave=de})}return Z}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(C,H){const{leavingVNodes:U}=C;let W=U.get(H.type);return W||(W=Object.create(null),U.set(H.type,W)),W}function resolveTransitionHooks(C,H,U,W){const{appear:G,mode:X,persisted:Z=!1,onBeforeEnter:Q,onEnter:ee,onAfterEnter:ie,onEnterCancelled:te,onBeforeLeave:ne,onLeave:ae,onAfterLeave:oe,onLeaveCancelled:se,onBeforeAppear:le,onAppear:ce,onAfterAppear:ue,onAppearCancelled:de}=H,ve=String(C.key),ge=getLeavingNodesForType(U,C),he=(be,pe)=>{be&&callWithAsyncErrorHandling(be,W,9,pe)},me=(be,pe)=>{const fe=pe[1];he(be,pe),isArray$e(be)?be.every(ye=>ye.length<=1)&&fe():be.length<=1&&fe()},_e={mode:X,persisted:Z,beforeEnter(be){let pe=Q;if(!U.isMounted)if(G)pe=le||Q;else return;be._leaveCb&&be._leaveCb(!0);const fe=ge[ve];fe&&isSameVNodeType(C,fe)&&fe.el._leaveCb&&fe.el._leaveCb(),he(pe,[be])},enter(be){let pe=ee,fe=ie,ye=te;if(!U.isMounted)if(G)pe=ce||ee,fe=ue||ie,ye=de||te;else return;let $e=!1;const we=be._enterCb=Se=>{$e||($e=!0,Se?he(ye,[be]):he(fe,[be]),_e.delayedLeave&&_e.delayedLeave(),be._enterCb=void 0)};pe?me(pe,[be,we]):we()},leave(be,pe){const fe=String(C.key);if(be._enterCb&&be._enterCb(!0),U.isUnmounting)return pe();he(ne,[be]);let ye=!1;const $e=be._leaveCb=we=>{ye||(ye=!0,pe(),we?he(se,[be]):he(oe,[be]),be._leaveCb=void 0,ge[fe]===C&&delete ge[fe])};ge[fe]=C,ae?me(ae,[be,$e]):$e()},clone(be){return resolveTransitionHooks(be,H,U,W)}};return _e}function emptyPlaceholder(C){if(isKeepAlive(C))return C=cloneVNode(C),C.children=null,C}function getKeepAliveChild(C){return isKeepAlive(C)?C.children?C.children[0]:void 0:C}function setTransitionHooks(C,H){C.shapeFlag&6&&C.component?setTransitionHooks(C.component.subTree,H):C.shapeFlag&128?(C.ssContent.transition=H.clone(C.ssContent),C.ssFallback.transition=H.clone(C.ssFallback)):C.transition=H}function getTransitionRawChildren(C,H=!1,U){let W=[],G=0;for(let X=0;X<C.length;X++){let Z=C[X];const Q=U==null?Z.key:String(U)+String(Z.key!=null?Z.key:X);Z.type===Fragment?(Z.patchFlag&128&&G++,W=W.concat(getTransitionRawChildren(Z.children,H,Q))):(H||Z.type!==Comment)&&W.push(Q!=null?cloneVNode(Z,{key:Q}):Z)}if(G>1)for(let X=0;X<W.length;X++)W[X].patchFlag=-2;return W}function defineComponent(C){return isFunction$8(C)?{setup:C,name:C.name}:C}const isAsyncWrapper=C=>!!C.type.__asyncLoader;function defineAsyncComponent(C){isFunction$8(C)&&(C={loader:C});const{loader:H,loadingComponent:U,errorComponent:W,delay:G=200,timeout:X,suspensible:Z=!0,onError:Q}=C;let ee=null,ie,te=0;const ne=()=>(te++,ee=null,ae()),ae=()=>{let oe;return ee||(oe=ee=H().catch(se=>{if(se=se instanceof Error?se:new Error(String(se)),Q)return new Promise((le,ce)=>{Q(se,()=>le(ne()),()=>ce(se),te+1)});throw se}).then(se=>oe!==ee&&ee?ee:(se&&(se.__esModule||se[Symbol.toStringTag]==="Module")&&(se=se.default),ie=se,se)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:ae,get __asyncResolved(){return ie},setup(){const oe=currentInstance;if(ie)return()=>createInnerComp(ie,oe);const se=de=>{ee=null,handleError$1(de,oe,13,!W)};if(Z&&oe.suspense||isInSSRComponentSetup)return ae().then(de=>()=>createInnerComp(de,oe)).catch(de=>(se(de),()=>W?createVNode(W,{error:de}):null));const le=ref(!1),ce=ref(),ue=ref(!!G);return G&&setTimeout(()=>{ue.value=!1},G),X!=null&&setTimeout(()=>{if(!le.value&&!ce.value){const de=new Error(`Async component timed out after ${X}ms.`);se(de),ce.value=de}},X),ae().then(()=>{le.value=!0,oe.parent&&isKeepAlive(oe.parent.vnode)&&queueJob(oe.parent.update)}).catch(de=>{se(de),ce.value=de}),()=>{if(le.value&&ie)return createInnerComp(ie,oe);if(ce.value&&W)return createVNode(W,{error:ce.value});if(U&&!ue.value)return createVNode(U)}}})}function createInnerComp(C,H){const{ref:U,props:W,children:G,ce:X}=H.vnode,Z=createVNode(C,W,G);return Z.ref=U,Z.ce=X,delete H.vnode.ce,Z}const isKeepAlive=C=>C.type.__isKeepAlive;function onActivated(C,H){registerKeepAliveHook(C,"a",H)}function onDeactivated(C,H){registerKeepAliveHook(C,"da",H)}function registerKeepAliveHook(C,H,U=currentInstance){const W=C.__wdc||(C.__wdc=()=>{let G=U;for(;G;){if(G.isDeactivated)return;G=G.parent}return C()});if(injectHook(H,W,U),U){let G=U.parent;for(;G&&G.parent;)isKeepAlive(G.parent.vnode)&&injectToKeepAliveRoot(W,H,U,G),G=G.parent}}function injectToKeepAliveRoot(C,H,U,W){const G=injectHook(H,C,W,!0);onUnmounted(()=>{remove$1(W[H],G)},U)}function injectHook(C,H,U=currentInstance,W=!1){if(U){const G=U[C]||(U[C]=[]),X=H.__weh||(H.__weh=(...Z)=>{if(U.isUnmounted)return;pauseTracking(),setCurrentInstance(U);const Q=callWithAsyncErrorHandling(H,U,C,Z);return unsetCurrentInstance(),resetTracking(),Q});return W?G.unshift(X):G.push(X),X}}const createHook=C=>(H,U=currentInstance)=>(!isInSSRComponentSetup||C==="sp")&&injectHook(C,(...W)=>H(...W),U),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(C,H=currentInstance){injectHook("ec",C,H)}function withDirectives(C,H){const U=currentRenderingInstance;if(U===null)return C;const W=getExposeProxy(U)||U.proxy,G=C.dirs||(C.dirs=[]);for(let X=0;X<H.length;X++){let[Z,Q,ee,ie=EMPTY_OBJ]=H[X];Z&&(isFunction$8(Z)&&(Z={mounted:Z,updated:Z}),Z.deep&&traverse(Q),G.push({dir:Z,instance:W,value:Q,oldValue:void 0,arg:ee,modifiers:ie}))}return C}function invokeDirectiveHook(C,H,U,W){const G=C.dirs,X=H&&H.dirs;for(let Z=0;Z<G.length;Z++){const Q=G[Z];X&&(Q.oldValue=X[Z].value);let ee=Q.dir[W];ee&&(pauseTracking(),callWithAsyncErrorHandling(ee,U,8,[C.el,Q,C,H]),resetTracking())}}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(C,H){return resolveAsset(COMPONENTS,C,!0,H)||C}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveDynamicComponent(C){return isString$4(C)?resolveAsset(COMPONENTS,C,!1)||C:C||NULL_DYNAMIC_COMPONENT}function resolveDirective(C){return resolveAsset(DIRECTIVES,C)}function resolveAsset(C,H,U=!0,W=!1){const G=currentRenderingInstance||currentInstance;if(G){const X=G.type;if(C===COMPONENTS){const Q=getComponentName(X,!1);if(Q&&(Q===H||Q===camelize$1(H)||Q===capitalize$1(camelize$1(H))))return X}const Z=resolve(G[C]||X[C],H)||resolve(G.appContext[C],H);return!Z&&W?X:Z}}function resolve(C,H){return C&&(C[H]||C[camelize$1(H)]||C[capitalize$1(camelize$1(H))])}function renderList(C,H,U,W){let G;const X=U&&U[W];if(isArray$e(C)||isString$4(C)){G=new Array(C.length);for(let Z=0,Q=C.length;Z<Q;Z++)G[Z]=H(C[Z],Z,void 0,X&&X[Z])}else if(typeof C=="number"){G=new Array(C);for(let Z=0;Z<C;Z++)G[Z]=H(Z+1,Z,void 0,X&&X[Z])}else if(isObject$f(C))if(C[Symbol.iterator])G=Array.from(C,(Z,Q)=>H(Z,Q,void 0,X&&X[Q]));else{const Z=Object.keys(C);G=new Array(Z.length);for(let Q=0,ee=Z.length;Q<ee;Q++){const ie=Z[Q];G[Q]=H(C[ie],ie,Q,X&&X[Q])}}else G=[];return U&&(U[W]=G),G}function renderSlot(C,H,U={},W,G){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return H!=="default"&&(U.name=H),createVNode("slot",U,W&&W());let X=C[H];X&&X._c&&(X._d=!1),openBlock();const Z=X&&ensureValidVNode(X(U)),Q=createBlock(Fragment,{key:U.key||Z&&Z.key||`_${H}`},Z||(W?W():[]),Z&&C._===1?64:-2);return!G&&Q.scopeId&&(Q.slotScopeIds=[Q.scopeId+"-s"]),X&&X._c&&(X._d=!0),Q}function ensureValidVNode(C){return C.some(H=>isVNode$1(H)?!(H.type===Comment||H.type===Fragment&&!ensureValidVNode(H.children)):!0)?C:null}const getPublicInstance=C=>C?isStatefulComponent(C)?getExposeProxy(C)||C.proxy:getPublicInstance(C.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:C=>C,$el:C=>C.vnode.el,$data:C=>C.data,$props:C=>C.props,$attrs:C=>C.attrs,$slots:C=>C.slots,$refs:C=>C.refs,$parent:C=>getPublicInstance(C.parent),$root:C=>getPublicInstance(C.root),$emit:C=>C.emit,$options:C=>resolveMergedOptions(C),$forceUpdate:C=>C.f||(C.f=()=>queueJob(C.update)),$nextTick:C=>C.n||(C.n=nextTick$1.bind(C.proxy)),$watch:C=>instanceWatch.bind(C)}),hasSetupBinding=(C,H)=>C!==EMPTY_OBJ&&!C.__isScriptSetup&&hasOwn$2(C,H),PublicInstanceProxyHandlers={get({_:C},H){const{ctx:U,setupState:W,data:G,props:X,accessCache:Z,type:Q,appContext:ee}=C;let ie;if(H[0]!=="$"){const oe=Z[H];if(oe!==void 0)switch(oe){case 1:return W[H];case 2:return G[H];case 4:return U[H];case 3:return X[H]}else{if(hasSetupBinding(W,H))return Z[H]=1,W[H];if(G!==EMPTY_OBJ&&hasOwn$2(G,H))return Z[H]=2,G[H];if((ie=C.propsOptions[0])&&hasOwn$2(ie,H))return Z[H]=3,X[H];if(U!==EMPTY_OBJ&&hasOwn$2(U,H))return Z[H]=4,U[H];shouldCacheAccess&&(Z[H]=0)}}const te=publicPropertiesMap[H];let ne,ae;if(te)return H==="$attrs"&&track(C,"get",H),te(C);if((ne=Q.__cssModules)&&(ne=ne[H]))return ne;if(U!==EMPTY_OBJ&&hasOwn$2(U,H))return Z[H]=4,U[H];if(ae=ee.config.globalProperties,hasOwn$2(ae,H))return ae[H]},set({_:C},H,U){const{data:W,setupState:G,ctx:X}=C;return hasSetupBinding(G,H)?(G[H]=U,!0):W!==EMPTY_OBJ&&hasOwn$2(W,H)?(W[H]=U,!0):hasOwn$2(C.props,H)||H[0]==="$"&&H.slice(1)in C?!1:(X[H]=U,!0)},has({_:{data:C,setupState:H,accessCache:U,ctx:W,appContext:G,propsOptions:X}},Z){let Q;return!!U[Z]||C!==EMPTY_OBJ&&hasOwn$2(C,Z)||hasSetupBinding(H,Z)||(Q=X[0])&&hasOwn$2(Q,Z)||hasOwn$2(W,Z)||hasOwn$2(publicPropertiesMap,Z)||hasOwn$2(G.config.globalProperties,Z)},defineProperty(C,H,U){return U.get!=null?C._.accessCache[H]=0:hasOwn$2(U,"value")&&this.set(C,H,U.value,null),Reflect.defineProperty(C,H,U)}};let shouldCacheAccess=!0;function applyOptions(C){const H=resolveMergedOptions(C),U=C.proxy,W=C.ctx;shouldCacheAccess=!1,H.beforeCreate&&callHook$1(H.beforeCreate,C,"bc");const{data:G,computed:X,methods:Z,watch:Q,provide:ee,inject:ie,created:te,beforeMount:ne,mounted:ae,beforeUpdate:oe,updated:se,activated:le,deactivated:ce,beforeDestroy:ue,beforeUnmount:de,destroyed:ve,unmounted:ge,render:he,renderTracked:me,renderTriggered:_e,errorCaptured:be,serverPrefetch:pe,expose:fe,inheritAttrs:ye,components:$e,directives:we,filters:Se}=H;if(ie&&resolveInjections(ie,W,null,C.appContext.config.unwrapInjectedRef),Z)for(const ke in Z){const Ie=Z[ke];isFunction$8(Ie)&&(W[ke]=Ie.bind(U))}if(G){const ke=G.call(U,U);isObject$f(ke)&&(C.data=reactive(ke))}if(shouldCacheAccess=!0,X)for(const ke in X){const Ie=X[ke],Ae=isFunction$8(Ie)?Ie.bind(U,U):isFunction$8(Ie.get)?Ie.get.bind(U,U):NOOP,Me=!isFunction$8(Ie)&&isFunction$8(Ie.set)?Ie.set.bind(U):NOOP,Fe=computed({get:Ae,set:Me});Object.defineProperty(W,ke,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Be=>Fe.value=Be})}if(Q)for(const ke in Q)createWatcher(Q[ke],W,U,ke);if(ee){const ke=isFunction$8(ee)?ee.call(U):ee;Reflect.ownKeys(ke).forEach(Ie=>{provide(Ie,ke[Ie])})}te&&callHook$1(te,C,"c");function xe(ke,Ie){isArray$e(Ie)?Ie.forEach(Ae=>ke(Ae.bind(U))):Ie&&ke(Ie.bind(U))}if(xe(onBeforeMount,ne),xe(onMounted,ae),xe(onBeforeUpdate,oe),xe(onUpdated,se),xe(onActivated,le),xe(onDeactivated,ce),xe(onErrorCaptured,be),xe(onRenderTracked,me),xe(onRenderTriggered,_e),xe(onBeforeUnmount,de),xe(onUnmounted,ge),xe(onServerPrefetch,pe),isArray$e(fe))if(fe.length){const ke=C.exposed||(C.exposed={});fe.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>U[Ie],set:Ae=>U[Ie]=Ae})})}else C.exposed||(C.exposed={});he&&C.render===NOOP&&(C.render=he),ye!=null&&(C.inheritAttrs=ye),$e&&(C.components=$e),we&&(C.directives=we)}function resolveInjections(C,H,U=NOOP,W=!1){isArray$e(C)&&(C=normalizeInject(C));for(const G in C){const X=C[G];let Z;isObject$f(X)?"default"in X?Z=inject(X.from||G,X.default,!0):Z=inject(X.from||G):Z=inject(X),isRef(Z)&&W?Object.defineProperty(H,G,{enumerable:!0,configurable:!0,get:()=>Z.value,set:Q=>Z.value=Q}):H[G]=Z}}function callHook$1(C,H,U){callWithAsyncErrorHandling(isArray$e(C)?C.map(W=>W.bind(H.proxy)):C.bind(H.proxy),H,U)}function createWatcher(C,H,U,W){const G=W.includes(".")?createPathGetter(U,W):()=>U[W];if(isString$4(C)){const X=H[C];isFunction$8(X)&&watch(G,X)}else if(isFunction$8(C))watch(G,C.bind(U));else if(isObject$f(C))if(isArray$e(C))C.forEach(X=>createWatcher(X,H,U,W));else{const X=isFunction$8(C.handler)?C.handler.bind(U):H[C.handler];isFunction$8(X)&&watch(G,X,C)}}function resolveMergedOptions(C){const H=C.type,{mixins:U,extends:W}=H,{mixins:G,optionsCache:X,config:{optionMergeStrategies:Z}}=C.appContext,Q=X.get(H);let ee;return Q?ee=Q:!G.length&&!U&&!W?ee=H:(ee={},G.length&&G.forEach(ie=>mergeOptions$1(ee,ie,Z,!0)),mergeOptions$1(ee,H,Z)),isObject$f(H)&&X.set(H,ee),ee}function mergeOptions$1(C,H,U,W=!1){const{mixins:G,extends:X}=H;X&&mergeOptions$1(C,X,U,!0),G&&G.forEach(Z=>mergeOptions$1(C,Z,U,!0));for(const Z in H)if(!(W&&Z==="expose")){const Q=internalOptionMergeStrats[Z]||U&&U[Z];C[Z]=Q?Q(C[Z],H[Z]):H[Z]}return C}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(C,H){return H?C?function(){return extend$4(isFunction$8(C)?C.call(this,this):C,isFunction$8(H)?H.call(this,this):H)}:H:C}function mergeInject(C,H){return mergeObjectOptions(normalizeInject(C),normalizeInject(H))}function normalizeInject(C){if(isArray$e(C)){const H={};for(let U=0;U<C.length;U++)H[C[U]]=C[U];return H}return C}function mergeAsArray(C,H){return C?[...new Set([].concat(C,H))]:H}function mergeObjectOptions(C,H){return C?extend$4(extend$4(Object.create(null),C),H):H}function mergeWatchOptions(C,H){if(!C)return H;if(!H)return C;const U=extend$4(Object.create(null),C);for(const W in H)U[W]=mergeAsArray(C[W],H[W]);return U}function initProps(C,H,U,W=!1){const G={},X={};def(X,InternalObjectKey,1),C.propsDefaults=Object.create(null),setFullProps(C,H,G,X);for(const Z in C.propsOptions[0])Z in G||(G[Z]=void 0);U?C.props=W?G:shallowReactive(G):C.type.props?C.props=G:C.props=X,C.attrs=X}function updateProps(C,H,U,W){const{props:G,attrs:X,vnode:{patchFlag:Z}}=C,Q=toRaw(G),[ee]=C.propsOptions;let ie=!1;if((W||Z>0)&&!(Z&16)){if(Z&8){const te=C.vnode.dynamicProps;for(let ne=0;ne<te.length;ne++){let ae=te[ne];if(isEmitListener(C.emitsOptions,ae))continue;const oe=H[ae];if(ee)if(hasOwn$2(X,ae))oe!==X[ae]&&(X[ae]=oe,ie=!0);else{const se=camelize$1(ae);G[se]=resolvePropValue$1(ee,Q,se,oe,C,!1)}else oe!==X[ae]&&(X[ae]=oe,ie=!0)}}}else{setFullProps(C,H,G,X)&&(ie=!0);let te;for(const ne in Q)(!H||!hasOwn$2(H,ne)&&((te=hyphenate$1(ne))===ne||!hasOwn$2(H,te)))&&(ee?U&&(U[ne]!==void 0||U[te]!==void 0)&&(G[ne]=resolvePropValue$1(ee,Q,ne,void 0,C,!0)):delete G[ne]);if(X!==Q)for(const ne in X)(!H||!hasOwn$2(H,ne)&&!0)&&(delete X[ne],ie=!0)}ie&&trigger$1(C,"set","$attrs")}function setFullProps(C,H,U,W){const[G,X]=C.propsOptions;let Z=!1,Q;if(H)for(let ee in H){if(isReservedProp(ee))continue;const ie=H[ee];let te;G&&hasOwn$2(G,te=camelize$1(ee))?!X||!X.includes(te)?U[te]=ie:(Q||(Q={}))[te]=ie:isEmitListener(C.emitsOptions,ee)||(!(ee in W)||ie!==W[ee])&&(W[ee]=ie,Z=!0)}if(X){const ee=toRaw(U),ie=Q||EMPTY_OBJ;for(let te=0;te<X.length;te++){const ne=X[te];U[ne]=resolvePropValue$1(G,ee,ne,ie[ne],C,!hasOwn$2(ie,ne))}}return Z}function resolvePropValue$1(C,H,U,W,G,X){const Z=C[U];if(Z!=null){const Q=hasOwn$2(Z,"default");if(Q&&W===void 0){const ee=Z.default;if(Z.type!==Function&&isFunction$8(ee)){const{propsDefaults:ie}=G;U in ie?W=ie[U]:(setCurrentInstance(G),W=ie[U]=ee.call(null,H),unsetCurrentInstance())}else W=ee}Z[0]&&(X&&!Q?W=!1:Z[1]&&(W===""||W===hyphenate$1(U))&&(W=!0))}return W}function normalizePropsOptions(C,H,U=!1){const W=H.propsCache,G=W.get(C);if(G)return G;const X=C.props,Z={},Q=[];let ee=!1;if(!isFunction$8(C)){const te=ne=>{ee=!0;const[ae,oe]=normalizePropsOptions(ne,H,!0);extend$4(Z,ae),oe&&Q.push(...oe)};!U&&H.mixins.length&&H.mixins.forEach(te),C.extends&&te(C.extends),C.mixins&&C.mixins.forEach(te)}if(!X&&!ee)return isObject$f(C)&&W.set(C,EMPTY_ARR),EMPTY_ARR;if(isArray$e(X))for(let te=0;te<X.length;te++){const ne=camelize$1(X[te]);validatePropName(ne)&&(Z[ne]=EMPTY_OBJ)}else if(X)for(const te in X){const ne=camelize$1(te);if(validatePropName(ne)){const ae=X[te],oe=Z[ne]=isArray$e(ae)||isFunction$8(ae)?{type:ae}:Object.assign({},ae);if(oe){const se=getTypeIndex(Boolean,oe.type),le=getTypeIndex(String,oe.type);oe[0]=se>-1,oe[1]=le<0||se<le,(se>-1||hasOwn$2(oe,"default"))&&Q.push(ne)}}}const ie=[Z,Q];return isObject$f(C)&&W.set(C,ie),ie}function validatePropName(C){return C[0]!=="$"}function getType(C){const H=C&&C.toString().match(/^\s*(function|class) (\w+)/);return H?H[2]:C===null?"null":""}function isSameType(C,H){return getType(C)===getType(H)}function getTypeIndex(C,H){return isArray$e(H)?H.findIndex(U=>isSameType(U,C)):isFunction$8(H)&&isSameType(H,C)?0:-1}const isInternalKey=C=>C[0]==="_"||C==="$stable",normalizeSlotValue=C=>isArray$e(C)?C.map(normalizeVNode):[normalizeVNode(C)],normalizeSlot$1=(C,H,U)=>{if(H._n)return H;const W=withCtx((...G)=>normalizeSlotValue(H(...G)),U);return W._c=!1,W},normalizeObjectSlots=(C,H,U)=>{const W=C._ctx;for(const G in C){if(isInternalKey(G))continue;const X=C[G];if(isFunction$8(X))H[G]=normalizeSlot$1(G,X,W);else if(X!=null){const Z=normalizeSlotValue(X);H[G]=()=>Z}}},normalizeVNodeSlots=(C,H)=>{const U=normalizeSlotValue(H);C.slots.default=()=>U},initSlots=(C,H)=>{if(C.vnode.shapeFlag&32){const U=H._;U?(C.slots=toRaw(H),def(H,"_",U)):normalizeObjectSlots(H,C.slots={})}else C.slots={},H&&normalizeVNodeSlots(C,H);def(C.slots,InternalObjectKey,1)},updateSlots=(C,H,U)=>{const{vnode:W,slots:G}=C;let X=!0,Z=EMPTY_OBJ;if(W.shapeFlag&32){const Q=H._;Q?U&&Q===1?X=!1:(extend$4(G,H),!U&&Q===1&&delete G._):(X=!H.$stable,normalizeObjectSlots(H,G)),Z=H}else H&&(normalizeVNodeSlots(C,H),Z={default:1});if(X)for(const Q in G)!isInternalKey(Q)&&!(Q in Z)&&delete G[Q]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(C,H){return function(W,G=null){isFunction$8(W)||(W=Object.assign({},W)),G!=null&&!isObject$f(G)&&(G=null);const X=createAppContext(),Z=new Set;let Q=!1;const ee=X.app={_uid:uid$1++,_component:W,_props:G,_container:null,_context:X,_instance:null,version:version$2,get config(){return X.config},set config(ie){},use(ie,...te){return Z.has(ie)||(ie&&isFunction$8(ie.install)?(Z.add(ie),ie.install(ee,...te)):isFunction$8(ie)&&(Z.add(ie),ie(ee,...te))),ee},mixin(ie){return X.mixins.includes(ie)||X.mixins.push(ie),ee},component(ie,te){return te?(X.components[ie]=te,ee):X.components[ie]},directive(ie,te){return te?(X.directives[ie]=te,ee):X.directives[ie]},mount(ie,te,ne){if(!Q){const ae=createVNode(W,G);return ae.appContext=X,te&&H?H(ae,ie):C(ae,ie,ne),Q=!0,ee._container=ie,ie.__vue_app__=ee,getExposeProxy(ae.component)||ae.component.proxy}},unmount(){Q&&(C(null,ee._container),delete ee._container.__vue_app__)},provide(ie,te){return X.provides[ie]=te,ee}};return ee}}function setRef(C,H,U,W,G=!1){if(isArray$e(C)){C.forEach((ae,oe)=>setRef(ae,H&&(isArray$e(H)?H[oe]:H),U,W,G));return}if(isAsyncWrapper(W)&&!G)return;const X=W.shapeFlag&4?getExposeProxy(W.component)||W.component.proxy:W.el,Z=G?null:X,{i:Q,r:ee}=C,ie=H&&H.r,te=Q.refs===EMPTY_OBJ?Q.refs={}:Q.refs,ne=Q.setupState;if(ie!=null&&ie!==ee&&(isString$4(ie)?(te[ie]=null,hasOwn$2(ne,ie)&&(ne[ie]=null)):isRef(ie)&&(ie.value=null)),isFunction$8(ee))callWithErrorHandling(ee,Q,12,[Z,te]);else{const ae=isString$4(ee),oe=isRef(ee);if(ae||oe){const se=()=>{if(C.f){const le=ae?hasOwn$2(ne,ee)?ne[ee]:te[ee]:ee.value;G?isArray$e(le)&&remove$1(le,X):isArray$e(le)?le.includes(X)||le.push(X):ae?(te[ee]=[X],hasOwn$2(ne,ee)&&(ne[ee]=te[ee])):(ee.value=[X],C.k&&(te[C.k]=ee.value))}else ae?(te[ee]=Z,hasOwn$2(ne,ee)&&(ne[ee]=Z)):oe&&(ee.value=Z,C.k&&(te[C.k]=Z))};Z?(se.id=-1,queuePostRenderEffect(se,U)):se()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(C){return baseCreateRenderer(C)}function baseCreateRenderer(C,H){const U=getGlobalThis$1();U.__VUE__=!0;const{insert:W,remove:G,patchProp:X,createElement:Z,createText:Q,createComment:ee,setText:ie,setElementText:te,parentNode:ne,nextSibling:ae,setScopeId:oe=NOOP,insertStaticContent:se}=C,le=(Ee,Ce,Pe,Re=null,Ze=null,Oe=null,Qe=!1,Xe=null,et=!!Ce.dynamicChildren)=>{if(Ee===Ce)return;Ee&&!isSameVNodeType(Ee,Ce)&&(Re=Je(Ee),Be(Ee,Ze,Oe,!0),Ee=null),Ce.patchFlag===-2&&(et=!1,Ce.dynamicChildren=null);const{type:We,ref:He,shapeFlag:Ye}=Ce;switch(We){case Text:ce(Ee,Ce,Pe,Re);break;case Comment:ue(Ee,Ce,Pe,Re);break;case Static:Ee==null&&de(Ce,Pe,Re,Qe);break;case Fragment:$e(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et);break;default:Ye&1?he(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et):Ye&6?we(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et):(Ye&64||Ye&128)&&We.process(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et,Ge)}He!=null&&Ze&&setRef(He,Ee&&Ee.ref,Oe,Ce||Ee,!Ce)},ce=(Ee,Ce,Pe,Re)=>{if(Ee==null)W(Ce.el=Q(Ce.children),Pe,Re);else{const Ze=Ce.el=Ee.el;Ce.children!==Ee.children&&ie(Ze,Ce.children)}},ue=(Ee,Ce,Pe,Re)=>{Ee==null?W(Ce.el=ee(Ce.children||""),Pe,Re):Ce.el=Ee.el},de=(Ee,Ce,Pe,Re)=>{[Ee.el,Ee.anchor]=se(Ee.children,Ce,Pe,Re,Ee.el,Ee.anchor)},ve=({el:Ee,anchor:Ce},Pe,Re)=>{let Ze;for(;Ee&&Ee!==Ce;)Ze=ae(Ee),W(Ee,Pe,Re),Ee=Ze;W(Ce,Pe,Re)},ge=({el:Ee,anchor:Ce})=>{let Pe;for(;Ee&&Ee!==Ce;)Pe=ae(Ee),G(Ee),Ee=Pe;G(Ce)},he=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et)=>{Qe=Qe||Ce.type==="svg",Ee==null?me(Ce,Pe,Re,Ze,Oe,Qe,Xe,et):pe(Ee,Ce,Ze,Oe,Qe,Xe,et)},me=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe)=>{let et,We;const{type:He,props:Ye,shapeFlag:nt,transition:tt,dirs:at}=Ee;if(et=Ee.el=Z(Ee.type,Oe,Ye&&Ye.is,Ye),nt&8?te(et,Ee.children):nt&16&&be(Ee.children,et,null,Re,Ze,Oe&&He!=="foreignObject",Qe,Xe),at&&invokeDirectiveHook(Ee,null,Re,"created"),_e(et,Ee,Ee.scopeId,Qe,Re),Ye){for(const st in Ye)st!=="value"&&!isReservedProp(st)&&X(et,st,null,Ye[st],Oe,Ee.children,Re,Ze,De);"value"in Ye&&X(et,"value",null,Ye.value),(We=Ye.onVnodeBeforeMount)&&invokeVNodeHook(We,Re,Ee)}at&&invokeDirectiveHook(Ee,null,Re,"beforeMount");const St=(!Ze||Ze&&!Ze.pendingBranch)&&tt&&!tt.persisted;St&&tt.beforeEnter(et),W(et,Ce,Pe),((We=Ye&&Ye.onVnodeMounted)||St||at)&&queuePostRenderEffect(()=>{We&&invokeVNodeHook(We,Re,Ee),St&&tt.enter(et),at&&invokeDirectiveHook(Ee,null,Re,"mounted")},Ze)},_e=(Ee,Ce,Pe,Re,Ze)=>{if(Pe&&oe(Ee,Pe),Re)for(let Oe=0;Oe<Re.length;Oe++)oe(Ee,Re[Oe]);if(Ze){let Oe=Ze.subTree;if(Ce===Oe){const Qe=Ze.vnode;_e(Ee,Qe,Qe.scopeId,Qe.slotScopeIds,Ze.parent)}}},be=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et=0)=>{for(let We=et;We<Ee.length;We++){const He=Ee[We]=Xe?cloneIfMounted(Ee[We]):normalizeVNode(Ee[We]);le(null,He,Ce,Pe,Re,Ze,Oe,Qe,Xe)}},pe=(Ee,Ce,Pe,Re,Ze,Oe,Qe)=>{const Xe=Ce.el=Ee.el;let{patchFlag:et,dynamicChildren:We,dirs:He}=Ce;et|=Ee.patchFlag&16;const Ye=Ee.props||EMPTY_OBJ,nt=Ce.props||EMPTY_OBJ;let tt;Pe&&toggleRecurse(Pe,!1),(tt=nt.onVnodeBeforeUpdate)&&invokeVNodeHook(tt,Pe,Ce,Ee),He&&invokeDirectiveHook(Ce,Ee,Pe,"beforeUpdate"),Pe&&toggleRecurse(Pe,!0);const at=Ze&&Ce.type!=="foreignObject";if(We?fe(Ee.dynamicChildren,We,Xe,Pe,Re,at,Oe):Qe||Ie(Ee,Ce,Xe,null,Pe,Re,at,Oe,!1),et>0){if(et&16)ye(Xe,Ce,Ye,nt,Pe,Re,Ze);else if(et&2&&Ye.class!==nt.class&&X(Xe,"class",null,nt.class,Ze),et&4&&X(Xe,"style",Ye.style,nt.style,Ze),et&8){const St=Ce.dynamicProps;for(let st=0;st<St.length;st++){const it=St[st],pt=Ye[it],wt=nt[it];(wt!==pt||it==="value")&&X(Xe,it,pt,wt,Ze,Ee.children,Pe,Re,De)}}et&1&&Ee.children!==Ce.children&&te(Xe,Ce.children)}else!Qe&&We==null&&ye(Xe,Ce,Ye,nt,Pe,Re,Ze);((tt=nt.onVnodeUpdated)||He)&&queuePostRenderEffect(()=>{tt&&invokeVNodeHook(tt,Pe,Ce,Ee),He&&invokeDirectiveHook(Ce,Ee,Pe,"updated")},Re)},fe=(Ee,Ce,Pe,Re,Ze,Oe,Qe)=>{for(let Xe=0;Xe<Ce.length;Xe++){const et=Ee[Xe],We=Ce[Xe],He=et.el&&(et.type===Fragment||!isSameVNodeType(et,We)||et.shapeFlag&70)?ne(et.el):Pe;le(et,We,He,null,Re,Ze,Oe,Qe,!0)}},ye=(Ee,Ce,Pe,Re,Ze,Oe,Qe)=>{if(Pe!==Re){if(Pe!==EMPTY_OBJ)for(const Xe in Pe)!isReservedProp(Xe)&&!(Xe in Re)&&X(Ee,Xe,Pe[Xe],null,Qe,Ce.children,Ze,Oe,De);for(const Xe in Re){if(isReservedProp(Xe))continue;const et=Re[Xe],We=Pe[Xe];et!==We&&Xe!=="value"&&X(Ee,Xe,We,et,Qe,Ce.children,Ze,Oe,De)}"value"in Re&&X(Ee,"value",Pe.value,Re.value)}},$e=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et)=>{const We=Ce.el=Ee?Ee.el:Q(""),He=Ce.anchor=Ee?Ee.anchor:Q("");let{patchFlag:Ye,dynamicChildren:nt,slotScopeIds:tt}=Ce;tt&&(Xe=Xe?Xe.concat(tt):tt),Ee==null?(W(We,Pe,Re),W(He,Pe,Re),be(Ce.children,Pe,He,Ze,Oe,Qe,Xe,et)):Ye>0&&Ye&64&&nt&&Ee.dynamicChildren?(fe(Ee.dynamicChildren,nt,Pe,Ze,Oe,Qe,Xe),(Ce.key!=null||Ze&&Ce===Ze.subTree)&&traverseStaticChildren(Ee,Ce,!0)):Ie(Ee,Ce,Pe,He,Ze,Oe,Qe,Xe,et)},we=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et)=>{Ce.slotScopeIds=Xe,Ee==null?Ce.shapeFlag&512?Ze.ctx.activate(Ce,Pe,Re,Qe,et):Se(Ce,Pe,Re,Ze,Oe,Qe,et):Te(Ee,Ce,et)},Se=(Ee,Ce,Pe,Re,Ze,Oe,Qe)=>{const Xe=Ee.component=createComponentInstance(Ee,Re,Ze);if(isKeepAlive(Ee)&&(Xe.ctx.renderer=Ge),setupComponent(Xe),Xe.asyncDep){if(Ze&&Ze.registerDep(Xe,xe),!Ee.el){const et=Xe.subTree=createVNode(Comment);ue(null,et,Ce,Pe)}return}xe(Xe,Ee,Ce,Pe,Ze,Oe,Qe)},Te=(Ee,Ce,Pe)=>{const Re=Ce.component=Ee.component;if(shouldUpdateComponent(Ee,Ce,Pe))if(Re.asyncDep&&!Re.asyncResolved){ke(Re,Ce,Pe);return}else Re.next=Ce,invalidateJob(Re.update),Re.update();else Ce.el=Ee.el,Re.vnode=Ce},xe=(Ee,Ce,Pe,Re,Ze,Oe,Qe)=>{const Xe=()=>{if(Ee.isMounted){let{next:He,bu:Ye,u:nt,parent:tt,vnode:at}=Ee,St=He,st;toggleRecurse(Ee,!1),He?(He.el=at.el,ke(Ee,He,Qe)):He=at,Ye&&invokeArrayFns(Ye),(st=He.props&&He.props.onVnodeBeforeUpdate)&&invokeVNodeHook(st,tt,He,at),toggleRecurse(Ee,!0);const it=renderComponentRoot(Ee),pt=Ee.subTree;Ee.subTree=it,le(pt,it,ne(pt.el),Je(pt),Ee,Ze,Oe),He.el=it.el,St===null&&updateHOCHostEl(Ee,it.el),nt&&queuePostRenderEffect(nt,Ze),(st=He.props&&He.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(st,tt,He,at),Ze)}else{let He;const{el:Ye,props:nt}=Ce,{bm:tt,m:at,parent:St}=Ee,st=isAsyncWrapper(Ce);if(toggleRecurse(Ee,!1),tt&&invokeArrayFns(tt),!st&&(He=nt&&nt.onVnodeBeforeMount)&&invokeVNodeHook(He,St,Ce),toggleRecurse(Ee,!0),Ye&&Ke){const it=()=>{Ee.subTree=renderComponentRoot(Ee),Ke(Ye,Ee.subTree,Ee,Ze,null)};st?Ce.type.__asyncLoader().then(()=>!Ee.isUnmounted&&it()):it()}else{const it=Ee.subTree=renderComponentRoot(Ee);le(null,it,Pe,Re,Ee,Ze,Oe),Ce.el=it.el}if(at&&queuePostRenderEffect(at,Ze),!st&&(He=nt&&nt.onVnodeMounted)){const it=Ce;queuePostRenderEffect(()=>invokeVNodeHook(He,St,it),Ze)}(Ce.shapeFlag&256||St&&isAsyncWrapper(St.vnode)&&St.vnode.shapeFlag&256)&&Ee.a&&queuePostRenderEffect(Ee.a,Ze),Ee.isMounted=!0,Ce=Pe=Re=null}},et=Ee.effect=new ReactiveEffect(Xe,()=>queueJob(We),Ee.scope),We=Ee.update=()=>et.run();We.id=Ee.uid,toggleRecurse(Ee,!0),We()},ke=(Ee,Ce,Pe)=>{Ce.component=Ee;const Re=Ee.vnode.props;Ee.vnode=Ce,Ee.next=null,updateProps(Ee,Ce.props,Re,Pe),updateSlots(Ee,Ce.children,Pe),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ie=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et=!1)=>{const We=Ee&&Ee.children,He=Ee?Ee.shapeFlag:0,Ye=Ce.children,{patchFlag:nt,shapeFlag:tt}=Ce;if(nt>0){if(nt&128){Me(We,Ye,Pe,Re,Ze,Oe,Qe,Xe,et);return}else if(nt&256){Ae(We,Ye,Pe,Re,Ze,Oe,Qe,Xe,et);return}}tt&8?(He&16&&De(We,Ze,Oe),Ye!==We&&te(Pe,Ye)):He&16?tt&16?Me(We,Ye,Pe,Re,Ze,Oe,Qe,Xe,et):De(We,Ze,Oe,!0):(He&8&&te(Pe,""),tt&16&&be(Ye,Pe,Re,Ze,Oe,Qe,Xe,et))},Ae=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et)=>{Ee=Ee||EMPTY_ARR,Ce=Ce||EMPTY_ARR;const We=Ee.length,He=Ce.length,Ye=Math.min(We,He);let nt;for(nt=0;nt<Ye;nt++){const tt=Ce[nt]=et?cloneIfMounted(Ce[nt]):normalizeVNode(Ce[nt]);le(Ee[nt],tt,Pe,null,Ze,Oe,Qe,Xe,et)}We>He?De(Ee,Ze,Oe,!0,!1,Ye):be(Ce,Pe,Re,Ze,Oe,Qe,Xe,et,Ye)},Me=(Ee,Ce,Pe,Re,Ze,Oe,Qe,Xe,et)=>{let We=0;const He=Ce.length;let Ye=Ee.length-1,nt=He-1;for(;We<=Ye&&We<=nt;){const tt=Ee[We],at=Ce[We]=et?cloneIfMounted(Ce[We]):normalizeVNode(Ce[We]);if(isSameVNodeType(tt,at))le(tt,at,Pe,null,Ze,Oe,Qe,Xe,et);else break;We++}for(;We<=Ye&&We<=nt;){const tt=Ee[Ye],at=Ce[nt]=et?cloneIfMounted(Ce[nt]):normalizeVNode(Ce[nt]);if(isSameVNodeType(tt,at))le(tt,at,Pe,null,Ze,Oe,Qe,Xe,et);else break;Ye--,nt--}if(We>Ye){if(We<=nt){const tt=nt+1,at=tt<He?Ce[tt].el:Re;for(;We<=nt;)le(null,Ce[We]=et?cloneIfMounted(Ce[We]):normalizeVNode(Ce[We]),Pe,at,Ze,Oe,Qe,Xe,et),We++}}else if(We>nt)for(;We<=Ye;)Be(Ee[We],Ze,Oe,!0),We++;else{const tt=We,at=We,St=new Map;for(We=at;We<=nt;We++){const lt=Ce[We]=et?cloneIfMounted(Ce[We]):normalizeVNode(Ce[We]);lt.key!=null&&St.set(lt.key,We)}let st,it=0;const pt=nt-at+1;let wt=!1,xt=0;const mt=new Array(pt);for(We=0;We<pt;We++)mt[We]=0;for(We=tt;We<=Ye;We++){const lt=Ee[We];if(it>=pt){Be(lt,Ze,Oe,!0);continue}let ct;if(lt.key!=null)ct=St.get(lt.key);else for(st=at;st<=nt;st++)if(mt[st-at]===0&&isSameVNodeType(lt,Ce[st])){ct=st;break}ct===void 0?Be(lt,Ze,Oe,!0):(mt[ct-at]=We+1,ct>=xt?xt=ct:wt=!0,le(lt,Ce[ct],Pe,null,Ze,Oe,Qe,Xe,et),it++)}const gt=wt?getSequence(mt):EMPTY_ARR;for(st=gt.length-1,We=pt-1;We>=0;We--){const lt=at+We,ct=Ce[lt],vt=lt+1<He?Ce[lt+1].el:Re;mt[We]===0?le(null,ct,Pe,vt,Ze,Oe,Qe,Xe,et):wt&&(st<0||We!==gt[st]?Fe(ct,Pe,vt,2):st--)}}},Fe=(Ee,Ce,Pe,Re,Ze=null)=>{const{el:Oe,type:Qe,transition:Xe,children:et,shapeFlag:We}=Ee;if(We&6){Fe(Ee.component.subTree,Ce,Pe,Re);return}if(We&128){Ee.suspense.move(Ce,Pe,Re);return}if(We&64){Qe.move(Ee,Ce,Pe,Ge);return}if(Qe===Fragment){W(Oe,Ce,Pe);for(let Ye=0;Ye<et.length;Ye++)Fe(et[Ye],Ce,Pe,Re);W(Ee.anchor,Ce,Pe);return}if(Qe===Static){ve(Ee,Ce,Pe);return}if(Re!==2&&We&1&&Xe)if(Re===0)Xe.beforeEnter(Oe),W(Oe,Ce,Pe),queuePostRenderEffect(()=>Xe.enter(Oe),Ze);else{const{leave:Ye,delayLeave:nt,afterLeave:tt}=Xe,at=()=>W(Oe,Ce,Pe),St=()=>{Ye(Oe,()=>{at(),tt&&tt()})};nt?nt(Oe,at,St):St()}else W(Oe,Ce,Pe)},Be=(Ee,Ce,Pe,Re=!1,Ze=!1)=>{const{type:Oe,props:Qe,ref:Xe,children:et,dynamicChildren:We,shapeFlag:He,patchFlag:Ye,dirs:nt}=Ee;if(Xe!=null&&setRef(Xe,null,Pe,Ee,!0),He&256){Ce.ctx.deactivate(Ee);return}const tt=He&1&&nt,at=!isAsyncWrapper(Ee);let St;if(at&&(St=Qe&&Qe.onVnodeBeforeUnmount)&&invokeVNodeHook(St,Ce,Ee),He&6)Le(Ee.component,Pe,Re);else{if(He&128){Ee.suspense.unmount(Pe,Re);return}tt&&invokeDirectiveHook(Ee,null,Ce,"beforeUnmount"),He&64?Ee.type.remove(Ee,Ce,Pe,Ze,Ge,Re):We&&(Oe!==Fragment||Ye>0&&Ye&64)?De(We,Ce,Pe,!1,!0):(Oe===Fragment&&Ye&384||!Ze&&He&16)&&De(et,Ce,Pe),Re&&Ne(Ee)}(at&&(St=Qe&&Qe.onVnodeUnmounted)||tt)&&queuePostRenderEffect(()=>{St&&invokeVNodeHook(St,Ce,Ee),tt&&invokeDirectiveHook(Ee,null,Ce,"unmounted")},Pe)},Ne=Ee=>{const{type:Ce,el:Pe,anchor:Re,transition:Ze}=Ee;if(Ce===Fragment){Ve(Pe,Re);return}if(Ce===Static){ge(Ee);return}const Oe=()=>{G(Pe),Ze&&!Ze.persisted&&Ze.afterLeave&&Ze.afterLeave()};if(Ee.shapeFlag&1&&Ze&&!Ze.persisted){const{leave:Qe,delayLeave:Xe}=Ze,et=()=>Qe(Pe,Oe);Xe?Xe(Ee.el,Oe,et):et()}else Oe()},Ve=(Ee,Ce)=>{let Pe;for(;Ee!==Ce;)Pe=ae(Ee),G(Ee),Ee=Pe;G(Ce)},Le=(Ee,Ce,Pe)=>{const{bum:Re,scope:Ze,update:Oe,subTree:Qe,um:Xe}=Ee;Re&&invokeArrayFns(Re),Ze.stop(),Oe&&(Oe.active=!1,Be(Qe,Ee,Ce,Pe)),Xe&&queuePostRenderEffect(Xe,Ce),queuePostRenderEffect(()=>{Ee.isUnmounted=!0},Ce),Ce&&Ce.pendingBranch&&!Ce.isUnmounted&&Ee.asyncDep&&!Ee.asyncResolved&&Ee.suspenseId===Ce.pendingId&&(Ce.deps--,Ce.deps===0&&Ce.resolve())},De=(Ee,Ce,Pe,Re=!1,Ze=!1,Oe=0)=>{for(let Qe=Oe;Qe<Ee.length;Qe++)Be(Ee[Qe],Ce,Pe,Re,Ze)},Je=Ee=>Ee.shapeFlag&6?Je(Ee.component.subTree):Ee.shapeFlag&128?Ee.suspense.next():ae(Ee.anchor||Ee.el),ze=(Ee,Ce,Pe)=>{Ee==null?Ce._vnode&&Be(Ce._vnode,null,null,!0):le(Ce._vnode||null,Ee,Ce,null,null,null,Pe),flushPreFlushCbs(),flushPostFlushCbs(),Ce._vnode=Ee},Ge={p:le,um:Be,m:Fe,r:Ne,mt:Se,mc:be,pc:Ie,pbc:fe,n:Je,o:C};let qe,Ke;return H&&([qe,Ke]=H(Ge)),{render:ze,hydrate:qe,createApp:createAppAPI(ze,qe)}}function toggleRecurse({effect:C,update:H},U){C.allowRecurse=H.allowRecurse=U}function traverseStaticChildren(C,H,U=!1){const W=C.children,G=H.children;if(isArray$e(W)&&isArray$e(G))for(let X=0;X<W.length;X++){const Z=W[X];let Q=G[X];Q.shapeFlag&1&&!Q.dynamicChildren&&((Q.patchFlag<=0||Q.patchFlag===32)&&(Q=G[X]=cloneIfMounted(G[X]),Q.el=Z.el),U||traverseStaticChildren(Z,Q)),Q.type===Text&&(Q.el=Z.el)}}function getSequence(C){const H=C.slice(),U=[0];let W,G,X,Z,Q;const ee=C.length;for(W=0;W<ee;W++){const ie=C[W];if(ie!==0){if(G=U[U.length-1],C[G]<ie){H[W]=G,U.push(W);continue}for(X=0,Z=U.length-1;X<Z;)Q=X+Z>>1,C[U[Q]]<ie?X=Q+1:Z=Q;ie<C[U[X]]&&(X>0&&(H[W]=U[X-1]),U[X]=W)}}for(X=U.length,Z=U[X-1];X-- >0;)U[X]=Z,Z=H[Z];return U}const isTeleport=C=>C.__isTeleport,isTeleportDisabled=C=>C&&(C.disabled||C.disabled===""),isTargetSVG=C=>typeof SVGElement<"u"&&C instanceof SVGElement,resolveTarget=(C,H)=>{const U=C&&C.to;return isString$4(U)?H?H(U):null:U},TeleportImpl={__isTeleport:!0,process(C,H,U,W,G,X,Z,Q,ee,ie){const{mc:te,pc:ne,pbc:ae,o:{insert:oe,querySelector:se,createText:le,createComment:ce}}=ie,ue=isTeleportDisabled(H.props);let{shapeFlag:de,children:ve,dynamicChildren:ge}=H;if(C==null){const he=H.el=le(""),me=H.anchor=le("");oe(he,U,W),oe(me,U,W);const _e=H.target=resolveTarget(H.props,se),be=H.targetAnchor=le("");_e&&(oe(be,_e),Z=Z||isTargetSVG(_e));const pe=(fe,ye)=>{de&16&&te(ve,fe,ye,G,X,Z,Q,ee)};ue?pe(U,me):_e&&pe(_e,be)}else{H.el=C.el;const he=H.anchor=C.anchor,me=H.target=C.target,_e=H.targetAnchor=C.targetAnchor,be=isTeleportDisabled(C.props),pe=be?U:me,fe=be?he:_e;if(Z=Z||isTargetSVG(me),ge?(ae(C.dynamicChildren,ge,pe,G,X,Z,Q),traverseStaticChildren(C,H,!0)):ee||ne(C,H,pe,fe,G,X,Z,Q,!1),ue)be||moveTeleport(H,U,he,ie,1);else if((H.props&&H.props.to)!==(C.props&&C.props.to)){const ye=H.target=resolveTarget(H.props,se);ye&&moveTeleport(H,ye,null,ie,0)}else be&&moveTeleport(H,me,_e,ie,1)}updateCssVars(H)},remove(C,H,U,W,{um:G,o:{remove:X}},Z){const{shapeFlag:Q,children:ee,anchor:ie,targetAnchor:te,target:ne,props:ae}=C;if(ne&&X(te),(Z||!isTeleportDisabled(ae))&&(X(ie),Q&16))for(let oe=0;oe<ee.length;oe++){const se=ee[oe];G(se,H,U,!0,!!se.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(C,H,U,{o:{insert:W},m:G},X=2){X===0&&W(C.targetAnchor,H,U);const{el:Z,anchor:Q,shapeFlag:ee,children:ie,props:te}=C,ne=X===2;if(ne&&W(Z,H,U),(!ne||isTeleportDisabled(te))&&ee&16)for(let ae=0;ae<ie.length;ae++)G(ie[ae],H,U,2);ne&&W(Q,H,U)}function hydrateTeleport(C,H,U,W,G,X,{o:{nextSibling:Z,parentNode:Q,querySelector:ee}},ie){const te=H.target=resolveTarget(H.props,ee);if(te){const ne=te._lpa||te.firstChild;if(H.shapeFlag&16)if(isTeleportDisabled(H.props))H.anchor=ie(Z(C),H,Q(C),U,W,G,X),H.targetAnchor=ne;else{H.anchor=Z(C);let ae=ne;for(;ae;)if(ae=Z(ae),ae&&ae.nodeType===8&&ae.data==="teleport anchor"){H.targetAnchor=ae,te._lpa=H.targetAnchor&&Z(H.targetAnchor);break}ie(ne,H,te,U,W,G,X)}updateCssVars(H)}return H.anchor&&Z(H.anchor)}const Teleport=TeleportImpl;function updateCssVars(C){const H=C.ctx;if(H&&H.ut){let U=C.children[0].el;for(;U!==C.targetAnchor;)U.nodeType===1&&U.setAttribute("data-v-owner",H.uid),U=U.nextSibling;H.ut()}}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[];let currentBlock=null;function openBlock(C=!1){blockStack.push(currentBlock=C?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(C){isBlockTreeEnabled+=C}function setupBlock(C){return C.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(C),C}function createElementBlock(C,H,U,W,G,X){return setupBlock(createBaseVNode(C,H,U,W,G,X,!0))}function createBlock(C,H,U,W,G){return setupBlock(createVNode(C,H,U,W,G,!0))}function isVNode$1(C){return C?C.__v_isVNode===!0:!1}function isSameVNodeType(C,H){return C.type===H.type&&C.key===H.key}const InternalObjectKey="__vInternal",normalizeKey=({key:C})=>C!=null?C:null,normalizeRef=({ref:C,ref_key:H,ref_for:U})=>C!=null?isString$4(C)||isRef(C)||isFunction$8(C)?{i:currentRenderingInstance,r:C,k:H,f:!!U}:C:null;function createBaseVNode(C,H=null,U=null,W=0,G=null,X=C===Fragment?0:1,Z=!1,Q=!1){const ee={__v_isVNode:!0,__v_skip:!0,type:C,props:H,key:H&&normalizeKey(H),ref:H&&normalizeRef(H),scopeId:currentScopeId,slotScopeIds:null,children:U,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:X,patchFlag:W,dynamicProps:G,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Q?(normalizeChildren(ee,U),X&128&&C.normalize(ee)):U&&(ee.shapeFlag|=isString$4(U)?8:16),isBlockTreeEnabled>0&&!Z&¤tBlock&&(ee.patchFlag>0||X&6)&&ee.patchFlag!==32&¤tBlock.push(ee),ee}const createVNode=_createVNode;function _createVNode(C,H=null,U=null,W=0,G=null,X=!1){if((!C||C===NULL_DYNAMIC_COMPONENT)&&(C=Comment),isVNode$1(C)){const Q=cloneVNode(C,H,!0);return U&&normalizeChildren(Q,U),isBlockTreeEnabled>0&&!X&¤tBlock&&(Q.shapeFlag&6?currentBlock[currentBlock.indexOf(C)]=Q:currentBlock.push(Q)),Q.patchFlag|=-2,Q}if(isClassComponent(C)&&(C=C.__vccOpts),H){H=guardReactiveProps(H);let{class:Q,style:ee}=H;Q&&!isString$4(Q)&&(H.class=normalizeClass(Q)),isObject$f(ee)&&(isProxy(ee)&&!isArray$e(ee)&&(ee=extend$4({},ee)),H.style=normalizeStyle(ee))}const Z=isString$4(C)?1:isSuspense(C)?128:isTeleport(C)?64:isObject$f(C)?4:isFunction$8(C)?2:0;return createBaseVNode(C,H,U,W,G,Z,X,!0)}function guardReactiveProps(C){return C?isProxy(C)||InternalObjectKey in C?extend$4({},C):C:null}function cloneVNode(C,H,U=!1){const{props:W,ref:G,patchFlag:X,children:Z}=C,Q=H?mergeProps(W||{},H):W;return{__v_isVNode:!0,__v_skip:!0,type:C.type,props:Q,key:Q&&normalizeKey(Q),ref:H&&H.ref?U&&G?isArray$e(G)?G.concat(normalizeRef(H)):[G,normalizeRef(H)]:normalizeRef(H):G,scopeId:C.scopeId,slotScopeIds:C.slotScopeIds,children:Z,target:C.target,targetAnchor:C.targetAnchor,staticCount:C.staticCount,shapeFlag:C.shapeFlag,patchFlag:H&&C.type!==Fragment?X===-1?16:X|16:X,dynamicProps:C.dynamicProps,dynamicChildren:C.dynamicChildren,appContext:C.appContext,dirs:C.dirs,transition:C.transition,component:C.component,suspense:C.suspense,ssContent:C.ssContent&&cloneVNode(C.ssContent),ssFallback:C.ssFallback&&cloneVNode(C.ssFallback),el:C.el,anchor:C.anchor,ctx:C.ctx,ce:C.ce}}function createTextVNode(C=" ",H=0){return createVNode(Text,null,C,H)}function createCommentVNode(C="",H=!1){return H?(openBlock(),createBlock(Comment,null,C)):createVNode(Comment,null,C)}function normalizeVNode(C){return C==null||typeof C=="boolean"?createVNode(Comment):isArray$e(C)?createVNode(Fragment,null,C.slice()):typeof C=="object"?cloneIfMounted(C):createVNode(Text,null,String(C))}function cloneIfMounted(C){return C.el===null&&C.patchFlag!==-1||C.memo?C:cloneVNode(C)}function normalizeChildren(C,H){let U=0;const{shapeFlag:W}=C;if(H==null)H=null;else if(isArray$e(H))U=16;else if(typeof H=="object")if(W&65){const G=H.default;G&&(G._c&&(G._d=!1),normalizeChildren(C,G()),G._c&&(G._d=!0));return}else{U=32;const G=H._;!G&&!(InternalObjectKey in H)?H._ctx=currentRenderingInstance:G===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?H._=1:(H._=2,C.patchFlag|=1024))}else isFunction$8(H)?(H={default:H,_ctx:currentRenderingInstance},U=32):(H=String(H),W&64?(U=16,H=[createTextVNode(H)]):U=8);C.children=H,C.shapeFlag|=U}function mergeProps(...C){const H={};for(let U=0;U<C.length;U++){const W=C[U];for(const G in W)if(G==="class")H.class!==W.class&&(H.class=normalizeClass([H.class,W.class]));else if(G==="style")H.style=normalizeStyle([H.style,W.style]);else if(isOn$1(G)){const X=H[G],Z=W[G];Z&&X!==Z&&!(isArray$e(X)&&X.includes(Z))&&(H[G]=X?[].concat(X,Z):Z)}else G!==""&&(H[G]=W[G])}return H}function invokeVNodeHook(C,H,U,W=null){callWithAsyncErrorHandling(C,H,7,[U,W])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(C,H,U){const W=C.type,G=(H?H.appContext:C.appContext)||emptyAppContext,X={uid:uid++,vnode:C,type:W,parent:H,appContext:G,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:H?H.provides:Object.create(G.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(W,G),emitsOptions:normalizeEmitsOptions(W,G),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:W.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:U,suspenseId:U?U.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return X.ctx={_:X},X.root=H?H.root:X,X.emit=emit.bind(null,X),C.ce&&C.ce(X),X}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=C=>{currentInstance=C,C.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(C){return C.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(C,H=!1){isInSSRComponentSetup=H;const{props:U,children:W}=C.vnode,G=isStatefulComponent(C);initProps(C,U,G,H),initSlots(C,W);const X=G?setupStatefulComponent(C,H):void 0;return isInSSRComponentSetup=!1,X}function setupStatefulComponent(C,H){const U=C.type;C.accessCache=Object.create(null),C.proxy=markRaw(new Proxy(C.ctx,PublicInstanceProxyHandlers));const{setup:W}=U;if(W){const G=C.setupContext=W.length>1?createSetupContext(C):null;setCurrentInstance(C),pauseTracking();const X=callWithErrorHandling(W,C,0,[C.props,G]);if(resetTracking(),unsetCurrentInstance(),isPromise(X)){if(X.then(unsetCurrentInstance,unsetCurrentInstance),H)return X.then(Z=>{handleSetupResult(C,Z,H)}).catch(Z=>{handleError$1(Z,C,0)});C.asyncDep=X}else handleSetupResult(C,X,H)}else finishComponentSetup(C,H)}function handleSetupResult(C,H,U){isFunction$8(H)?C.type.__ssrInlineRender?C.ssrRender=H:C.render=H:isObject$f(H)&&(C.setupState=proxyRefs(H)),finishComponentSetup(C,U)}let compile$1;function finishComponentSetup(C,H,U){const W=C.type;if(!C.render){if(!H&&compile$1&&!W.render){const G=W.template||resolveMergedOptions(C).template;if(G){const{isCustomElement:X,compilerOptions:Z}=C.appContext.config,{delimiters:Q,compilerOptions:ee}=W,ie=extend$4(extend$4({isCustomElement:X,delimiters:Q},Z),ee);W.render=compile$1(G,ie)}}C.render=W.render||NOOP}setCurrentInstance(C),pauseTracking(),applyOptions(C),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(C){return new Proxy(C.attrs,{get(H,U){return track(C,"get","$attrs"),H[U]}})}function createSetupContext(C){const H=W=>{C.exposed=W||{}};let U;return{get attrs(){return U||(U=createAttrsProxy(C))},slots:C.slots,emit:C.emit,expose:H}}function getExposeProxy(C){if(C.exposed)return C.exposeProxy||(C.exposeProxy=new Proxy(proxyRefs(markRaw(C.exposed)),{get(H,U){if(U in H)return H[U];if(U in publicPropertiesMap)return publicPropertiesMap[U](C)},has(H,U){return U in H||U in publicPropertiesMap}}))}function getComponentName(C,H=!0){return isFunction$8(C)?C.displayName||C.name:C.name||H&&C.__name}function isClassComponent(C){return isFunction$8(C)&&"__vccOpts"in C}const computed=(C,H)=>computed$1(C,H,isInSSRComponentSetup);function h$1(C,H,U){const W=arguments.length;return W===2?isObject$f(H)&&!isArray$e(H)?isVNode$1(H)?createVNode(C,null,[H]):createVNode(C,H):createVNode(C,null,H):(W>3?U=Array.prototype.slice.call(arguments,2):W===3&&isVNode$1(U)&&(U=[U]),createVNode(C,H,U))}const ssrContextKey=Symbol(""),useSSRContext=()=>inject(ssrContextKey),version$2="3.2.47",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(C,H,U)=>{H.insertBefore(C,U||null)},remove:C=>{const H=C.parentNode;H&&H.removeChild(C)},createElement:(C,H,U,W)=>{const G=H?doc.createElementNS(svgNS,C):doc.createElement(C,U?{is:U}:void 0);return C==="select"&&W&&W.multiple!=null&&G.setAttribute("multiple",W.multiple),G},createText:C=>doc.createTextNode(C),createComment:C=>doc.createComment(C),setText:(C,H)=>{C.nodeValue=H},setElementText:(C,H)=>{C.textContent=H},parentNode:C=>C.parentNode,nextSibling:C=>C.nextSibling,querySelector:C=>doc.querySelector(C),setScopeId(C,H){C.setAttribute(H,"")},insertStaticContent(C,H,U,W,G,X){const Z=U?U.previousSibling:H.lastChild;if(G&&(G===X||G.nextSibling))for(;H.insertBefore(G.cloneNode(!0),U),!(G===X||!(G=G.nextSibling)););else{templateContainer.innerHTML=W?`<svg>${C}</svg>`:C;const Q=templateContainer.content;if(W){const ee=Q.firstChild;for(;ee.firstChild;)Q.appendChild(ee.firstChild);Q.removeChild(ee)}H.insertBefore(Q,U)}return[Z?Z.nextSibling:H.firstChild,U?U.previousSibling:H.lastChild]}};function patchClass(C,H,U){const W=C._vtc;W&&(H=(H?[H,...W]:[...W]).join(" ")),H==null?C.removeAttribute("class"):U?C.setAttribute("class",H):C.className=H}function patchStyle(C,H,U){const W=C.style,G=isString$4(U);if(U&&!G){if(H&&!isString$4(H))for(const X in H)U[X]==null&&setStyle$2(W,X,"");for(const X in U)setStyle$2(W,X,U[X])}else{const X=W.display;G?H!==U&&(W.cssText=U):H&&C.removeAttribute("style"),"_vod"in C&&(W.display=X)}}const importantRE=/\s*!important$/;function setStyle$2(C,H,U){if(isArray$e(U))U.forEach(W=>setStyle$2(C,H,W));else if(U==null&&(U=""),H.startsWith("--"))C.setProperty(H,U);else{const W=autoPrefix(C,H);importantRE.test(U)?C.setProperty(hyphenate$1(W),U.replace(importantRE,""),"important"):C[W]=U}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(C,H){const U=prefixCache[H];if(U)return U;let W=camelize$1(H);if(W!=="filter"&&W in C)return prefixCache[H]=W;W=capitalize$1(W);for(let G=0;G<prefixes$1.length;G++){const X=prefixes$1[G]+W;if(X in C)return prefixCache[H]=X}return H}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(C,H,U,W,G){if(W&&H.startsWith("xlink:"))U==null?C.removeAttributeNS(xlinkNS,H.slice(6,H.length)):C.setAttributeNS(xlinkNS,H,U);else{const X=isSpecialBooleanAttr(H);U==null||X&&!includeBooleanAttr(U)?C.removeAttribute(H):C.setAttribute(H,X?"":U)}}function patchDOMProp(C,H,U,W,G,X,Z){if(H==="innerHTML"||H==="textContent"){W&&Z(W,G,X),C[H]=U==null?"":U;return}if(H==="value"&&C.tagName!=="PROGRESS"&&!C.tagName.includes("-")){C._value=U;const ee=U==null?"":U;(C.value!==ee||C.tagName==="OPTION")&&(C.value=ee),U==null&&C.removeAttribute(H);return}let Q=!1;if(U===""||U==null){const ee=typeof C[H];ee==="boolean"?U=includeBooleanAttr(U):U==null&&ee==="string"?(U="",Q=!0):ee==="number"&&(U=0,Q=!0)}try{C[H]=U}catch{}Q&&C.removeAttribute(H)}function addEventListener$2(C,H,U,W){C.addEventListener(H,U,W)}function removeEventListener$1(C,H,U,W){C.removeEventListener(H,U,W)}function patchEvent(C,H,U,W,G=null){const X=C._vei||(C._vei={}),Z=X[H];if(W&&Z)Z.value=W;else{const[Q,ee]=parseName(H);if(W){const ie=X[H]=createInvoker(W,G);addEventListener$2(C,Q,ie,ee)}else Z&&(removeEventListener$1(C,Q,Z,ee),X[H]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(C){let H;if(optionsModifierRE.test(C)){H={};let W;for(;W=C.match(optionsModifierRE);)C=C.slice(0,C.length-W[0].length),H[W[0].toLowerCase()]=!0}return[C[2]===":"?C.slice(3):hyphenate$1(C.slice(2)),H]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(C,H){const U=W=>{if(!W._vts)W._vts=Date.now();else if(W._vts<=U.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(W,U.value),H,5,[W])};return U.value=C,U.attached=getNow(),U}function patchStopImmediatePropagation(C,H){if(isArray$e(H)){const U=C.stopImmediatePropagation;return C.stopImmediatePropagation=()=>{U.call(C),C._stopped=!0},H.map(W=>G=>!G._stopped&&W&&W(G))}else return H}const nativeOnRE=/^on[a-z]/,patchProp=(C,H,U,W,G=!1,X,Z,Q,ee)=>{H==="class"?patchClass(C,W,G):H==="style"?patchStyle(C,U,W):isOn$1(H)?isModelListener(H)||patchEvent(C,H,U,W,Z):(H[0]==="."?(H=H.slice(1),!0):H[0]==="^"?(H=H.slice(1),!1):shouldSetAsProp(C,H,W,G))?patchDOMProp(C,H,W,X,Z,Q,ee):(H==="true-value"?C._trueValue=W:H==="false-value"&&(C._falseValue=W),patchAttr(C,H,W,G))};function shouldSetAsProp(C,H,U,W){return W?!!(H==="innerHTML"||H==="textContent"||H in C&&nativeOnRE.test(H)&&isFunction$8(U)):H==="spellcheck"||H==="draggable"||H==="translate"||H==="form"||H==="list"&&C.tagName==="INPUT"||H==="type"&&C.tagName==="TEXTAREA"||nativeOnRE.test(H)&&isString$4(U)?!1:H in C}const TRANSITION="transition",ANIMATION="animation",Transition$1=(C,{slots:H})=>h$1(BaseTransition,resolveTransitionProps(C),H);Transition$1.displayName="Transition";const 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=Transition$1.props=extend$4({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(C,H=[])=>{isArray$e(C)?C.forEach(U=>U(...H)):C&&C(...H)},hasExplicitCallback=C=>C?isArray$e(C)?C.some(H=>H.length>1):C.length>1:!1;function resolveTransitionProps(C){const H={};for(const $e in C)$e in DOMTransitionPropsValidators||(H[$e]=C[$e]);if(C.css===!1)return H;const{name:U="v",type:W,duration:G,enterFromClass:X=`${U}-enter-from`,enterActiveClass:Z=`${U}-enter-active`,enterToClass:Q=`${U}-enter-to`,appearFromClass:ee=X,appearActiveClass:ie=Z,appearToClass:te=Q,leaveFromClass:ne=`${U}-leave-from`,leaveActiveClass:ae=`${U}-leave-active`,leaveToClass:oe=`${U}-leave-to`}=C,se=normalizeDuration(G),le=se&&se[0],ce=se&&se[1],{onBeforeEnter:ue,onEnter:de,onEnterCancelled:ve,onLeave:ge,onLeaveCancelled:he,onBeforeAppear:me=ue,onAppear:_e=de,onAppearCancelled:be=ve}=H,pe=($e,we,Se)=>{removeTransitionClass($e,we?te:Q),removeTransitionClass($e,we?ie:Z),Se&&Se()},fe=($e,we)=>{$e._isLeaving=!1,removeTransitionClass($e,ne),removeTransitionClass($e,oe),removeTransitionClass($e,ae),we&&we()},ye=$e=>(we,Se)=>{const Te=$e?_e:de,xe=()=>pe(we,$e,Se);callHook(Te,[we,xe]),nextFrame(()=>{removeTransitionClass(we,$e?ee:X),addTransitionClass(we,$e?te:Q),hasExplicitCallback(Te)||whenTransitionEnds(we,W,le,xe)})};return extend$4(H,{onBeforeEnter($e){callHook(ue,[$e]),addTransitionClass($e,X),addTransitionClass($e,Z)},onBeforeAppear($e){callHook(me,[$e]),addTransitionClass($e,ee),addTransitionClass($e,ie)},onEnter:ye(!1),onAppear:ye(!0),onLeave($e,we){$e._isLeaving=!0;const Se=()=>fe($e,we);addTransitionClass($e,ne),forceReflow(),addTransitionClass($e,ae),nextFrame(()=>{!$e._isLeaving||(removeTransitionClass($e,ne),addTransitionClass($e,oe),hasExplicitCallback(ge)||whenTransitionEnds($e,W,ce,Se))}),callHook(ge,[$e,Se])},onEnterCancelled($e){pe($e,!1),callHook(ve,[$e])},onAppearCancelled($e){pe($e,!0),callHook(be,[$e])},onLeaveCancelled($e){fe($e),callHook(he,[$e])}})}function normalizeDuration(C){if(C==null)return null;if(isObject$f(C))return[NumberOf(C.enter),NumberOf(C.leave)];{const H=NumberOf(C);return[H,H]}}function NumberOf(C){return toNumber$3(C)}function addTransitionClass(C,H){H.split(/\s+/).forEach(U=>U&&C.classList.add(U)),(C._vtc||(C._vtc=new Set)).add(H)}function removeTransitionClass(C,H){H.split(/\s+/).forEach(W=>W&&C.classList.remove(W));const{_vtc:U}=C;U&&(U.delete(H),U.size||(C._vtc=void 0))}function nextFrame(C){requestAnimationFrame(()=>{requestAnimationFrame(C)})}let endId=0;function whenTransitionEnds(C,H,U,W){const G=C._endId=++endId,X=()=>{G===C._endId&&W()};if(U)return setTimeout(X,U);const{type:Z,timeout:Q,propCount:ee}=getTransitionInfo(C,H);if(!Z)return W();const ie=Z+"end";let te=0;const ne=()=>{C.removeEventListener(ie,ae),X()},ae=oe=>{oe.target===C&&++te>=ee&&ne()};setTimeout(()=>{te<ee&&ne()},Q+1),C.addEventListener(ie,ae)}function getTransitionInfo(C,H){const U=window.getComputedStyle(C),W=se=>(U[se]||"").split(", "),G=W(`${TRANSITION}Delay`),X=W(`${TRANSITION}Duration`),Z=getTimeout(G,X),Q=W(`${ANIMATION}Delay`),ee=W(`${ANIMATION}Duration`),ie=getTimeout(Q,ee);let te=null,ne=0,ae=0;H===TRANSITION?Z>0&&(te=TRANSITION,ne=Z,ae=X.length):H===ANIMATION?ie>0&&(te=ANIMATION,ne=ie,ae=ee.length):(ne=Math.max(Z,ie),te=ne>0?Z>ie?TRANSITION:ANIMATION:null,ae=te?te===TRANSITION?X.length:ee.length:0);const oe=te===TRANSITION&&/\b(transform|all)(,|$)/.test(W(`${TRANSITION}Property`).toString());return{type:te,timeout:ne,propCount:ae,hasTransform:oe}}function getTimeout(C,H){for(;C.length<H.length;)C=C.concat(C);return Math.max(...H.map((U,W)=>toMs(U)+toMs(C[W])))}function toMs(C){return Number(C.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$4({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(C,{slots:H}){const U=getCurrentInstance(),W=useTransitionState();let G,X;return onUpdated(()=>{if(!G.length)return;const Z=C.moveClass||`${C.name||"v"}-move`;if(!hasCSSTransform(G[0].el,U.vnode.el,Z))return;G.forEach(callPendingCbs),G.forEach(recordPosition);const Q=G.filter(applyTranslation);forceReflow(),Q.forEach(ee=>{const ie=ee.el,te=ie.style;addTransitionClass(ie,Z),te.transform=te.webkitTransform=te.transitionDuration="";const ne=ie._moveCb=ae=>{ae&&ae.target!==ie||(!ae||/transform$/.test(ae.propertyName))&&(ie.removeEventListener("transitionend",ne),ie._moveCb=null,removeTransitionClass(ie,Z))};ie.addEventListener("transitionend",ne)})}),()=>{const Z=toRaw(C),Q=resolveTransitionProps(Z);let ee=Z.tag||Fragment;G=X,X=H.default?getTransitionRawChildren(H.default()):[];for(let ie=0;ie<X.length;ie++){const te=X[ie];te.key!=null&&setTransitionHooks(te,resolveTransitionHooks(te,Q,W,U))}if(G)for(let ie=0;ie<G.length;ie++){const te=G[ie];setTransitionHooks(te,resolveTransitionHooks(te,Q,W,U)),positionMap.set(te,te.el.getBoundingClientRect())}return createVNode(ee,null,X)}}},removeMode=C=>delete C.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(C){const H=C.el;H._moveCb&&H._moveCb(),H._enterCb&&H._enterCb()}function recordPosition(C){newPositionMap.set(C,C.el.getBoundingClientRect())}function applyTranslation(C){const H=positionMap.get(C),U=newPositionMap.get(C),W=H.left-U.left,G=H.top-U.top;if(W||G){const X=C.el.style;return X.transform=X.webkitTransform=`translate(${W}px,${G}px)`,X.transitionDuration="0s",C}}function hasCSSTransform(C,H,U){const W=C.cloneNode();C._vtc&&C._vtc.forEach(Z=>{Z.split(/\s+/).forEach(Q=>Q&&W.classList.remove(Q))}),U.split(/\s+/).forEach(Z=>Z&&W.classList.add(Z)),W.style.display="none";const G=H.nodeType===1?H:H.parentNode;G.appendChild(W);const{hasTransform:X}=getTransitionInfo(W);return G.removeChild(W),X}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:C=>C.stopPropagation(),prevent:C=>C.preventDefault(),self:C=>C.target!==C.currentTarget,ctrl:C=>!C.ctrlKey,shift:C=>!C.shiftKey,alt:C=>!C.altKey,meta:C=>!C.metaKey,left:C=>"button"in C&&C.button!==0,middle:C=>"button"in C&&C.button!==1,right:C=>"button"in C&&C.button!==2,exact:(C,H)=>systemModifiers.some(U=>C[`${U}Key`]&&!H.includes(U))},withModifiers=(C,H)=>(U,...W)=>{for(let G=0;G<H.length;G++){const X=modifierGuards[H[G]];if(X&&X(U,H))return}return C(U,...W)},vShow={beforeMount(C,{value:H},{transition:U}){C._vod=C.style.display==="none"?"":C.style.display,U&&H?U.beforeEnter(C):setDisplay(C,H)},mounted(C,{value:H},{transition:U}){U&&H&&U.enter(C)},updated(C,{value:H,oldValue:U},{transition:W}){!H!=!U&&(W?H?(W.beforeEnter(C),setDisplay(C,!0),W.enter(C)):W.leave(C,()=>{setDisplay(C,!1)}):setDisplay(C,H))},beforeUnmount(C,{value:H}){setDisplay(C,H)}};function setDisplay(C,H){C.style.display=H?C._vod:"none"}const rendererOptions=extend$4({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer(rendererOptions))}const render$3=(...C)=>{ensureRenderer().render(...C)},createApp=(...C)=>{const H=ensureRenderer().createApp(...C),{mount:U}=H;return H.mount=W=>{const G=normalizeContainer(W);if(!G)return;const X=H._component;!isFunction$8(X)&&!X.render&&!X.template&&(X.template=G.innerHTML),G.innerHTML="";const Z=U(G,!1,G instanceof SVGElement);return G instanceof Element&&(G.removeAttribute("v-cloak"),G.setAttribute("data-v-app","")),Z},H};function normalizeContainer(C){return isString$4(C)?document.querySelector(C):C}const knife4j="";function _typeof$3(C){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_typeof$3(C)}function _toPrimitive(C,H){if(_typeof$3(C)!=="object"||C===null)return C;var U=C[Symbol.toPrimitive];if(U!==void 0){var W=U.call(C,H||"default");if(_typeof$3(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(C)}function _toPropertyKey(C){var H=_toPrimitive(C,"string");return _typeof$3(H)==="symbol"?H:String(H)}function _defineProperty$M(C,H,U){return H=_toPropertyKey(H),H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}function ownKeys$1(C,H){var U=Object.keys(C);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(C);H&&(W=W.filter(function(G){return Object.getOwnPropertyDescriptor(C,G).enumerable})),U.push.apply(U,W)}return U}function _objectSpread2$1(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?arguments[H]:{};H%2?ownKeys$1(Object(U),!0).forEach(function(W){_defineProperty$M(C,W,U[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(U)):ownKeys$1(Object(U)).forEach(function(W){Object.defineProperty(C,W,Object.getOwnPropertyDescriptor(U,W))})}return C}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(C){for(var H=1;H<arguments.length;H++){var U=arguments[H];for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&(C[W]=U[W])}return C},_extends$1.apply(this,arguments)}var isFunction$7=function(H){return typeof H=="function"},isArray$d=Array.isArray,isString$3=function(H){return typeof H=="string"},isObject$e=function(H){return H!==null&&_typeof$3(H)==="object"},onRE=/^on[^a-z]/,isOn=function(H){return onRE.test(H)},cacheStringFunction=function(H){var U=Object.create(null);return function(W){var G=U[W];return G||(U[W]=H(W))}},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(function(C){return C.replace(camelizeRE,function(H,U){return U?U.toUpperCase():""})}),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(function(C){return C.replace(hyphenateRE,"-$1").toLowerCase()}),hasOwnProperty$t=Object.prototype.hasOwnProperty,hasOwn$1=function(H,U){return hasOwnProperty$t.call(H,U)};function resolvePropValue(C,H,U,W){var G=C[U];if(G!=null){var X=hasOwn$1(G,"default");if(X&&W===void 0){var Z=G.default;W=G.type!==Function&&isFunction$7(Z)?Z():Z}G.type===Boolean&&(!hasOwn$1(H,U)&&!X?W=!1:W===""&&(W=!0))}return W}function getDataAndAriaProps(C){return Object.keys(C).reduce(function(H,U){return(U.substr(0,5)==="data-"||U.substr(0,5)==="aria-")&&(H[U]=C[U]),H},{})}function toPx(C){return typeof C=="number"?"".concat(C,"px"):C}function renderHelper(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=arguments.length>2?arguments[2]:void 0;return typeof C=="function"?C(H):C!=null?C:U}function classNames(){for(var C=[],H=0;H<arguments.length;H++){var U=H<0||arguments.length<=H?void 0:arguments[H];if(!!U){if(isString$3(U))C.push(U);else if(isArray$d(U))for(var W=0;W<U.length;W++){var G=classNames(U[W]);G&&C.push(G)}else if(isObject$e(U))for(var X in U)U[X]&&C.push(X)}}return C.join(" ")}var MapShim=function(){if(typeof Map<"u")return Map;function C(H,U){var W=-1;return H.some(function(G,X){return G[0]===U?(W=X,!0):!1}),W}return function(){function H(){this.__entries__=[]}return Object.defineProperty(H.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),H.prototype.get=function(U){var W=C(this.__entries__,U),G=this.__entries__[W];return G&&G[1]},H.prototype.set=function(U,W){var G=C(this.__entries__,U);~G?this.__entries__[G][1]=W:this.__entries__.push([U,W])},H.prototype.delete=function(U){var W=this.__entries__,G=C(W,U);~G&&W.splice(G,1)},H.prototype.has=function(U){return!!~C(this.__entries__,U)},H.prototype.clear=function(){this.__entries__.splice(0)},H.prototype.forEach=function(U,W){W===void 0&&(W=null);for(var G=0,X=this.__entries__;G<X.length;G++){var Z=X[G];U.call(W,Z[1],Z[0])}},H}()}(),isBrowser$1=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(C){return setTimeout(function(){return C(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(C,H){var U=!1,W=!1,G=0;function X(){U&&(U=!1,C()),W&&Q()}function Z(){requestAnimationFrame$1(X)}function Q(){var ee=Date.now();if(U){if(ee-G<trailingTimeout)return;W=!0}else U=!0,W=!1,setTimeout(Z,H);G=ee}return Q}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function C(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return C.prototype.addObserver=function(H){~this.observers_.indexOf(H)||this.observers_.push(H),this.connected_||this.connect_()},C.prototype.removeObserver=function(H){var U=this.observers_,W=U.indexOf(H);~W&&U.splice(W,1),!U.length&&this.connected_&&this.disconnect_()},C.prototype.refresh=function(){var H=this.updateObservers_();H&&this.refresh()},C.prototype.updateObservers_=function(){var H=this.observers_.filter(function(U){return U.gatherActive(),U.hasActive()});return H.forEach(function(U){return U.broadcastActive()}),H.length>0},C.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},C.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},C.prototype.onTransitionEnd_=function(H){var U=H.propertyName,W=U===void 0?"":U,G=transitionKeys.some(function(X){return!!~W.indexOf(X)});G&&this.refresh()},C.getInstance=function(){return this.instance_||(this.instance_=new C),this.instance_},C.instance_=null,C}(),defineConfigurable=function(C,H){for(var U=0,W=Object.keys(H);U<W.length;U++){var G=W[U];Object.defineProperty(C,G,{value:H[G],enumerable:!1,writable:!1,configurable:!0})}return C},getWindowOf=function(C){var H=C&&C.ownerDocument&&C.ownerDocument.defaultView;return H||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(C){return parseFloat(C)||0}function getBordersSize(C){for(var H=[],U=1;U<arguments.length;U++)H[U-1]=arguments[U];return H.reduce(function(W,G){var X=C["border-"+G+"-width"];return W+toFloat(X)},0)}function getPaddings(C){for(var H=["top","right","bottom","left"],U={},W=0,G=H;W<G.length;W++){var X=G[W],Z=C["padding-"+X];U[X]=toFloat(Z)}return U}function getSVGContentRect(C){var H=C.getBBox();return createRectInit(0,0,H.width,H.height)}function getHTMLElementContentRect(C){var H=C.clientWidth,U=C.clientHeight;if(!H&&!U)return emptyRect;var W=getWindowOf(C).getComputedStyle(C),G=getPaddings(W),X=G.left+G.right,Z=G.top+G.bottom,Q=toFloat(W.width),ee=toFloat(W.height);if(W.boxSizing==="border-box"&&(Math.round(Q+X)!==H&&(Q-=getBordersSize(W,"left","right")+X),Math.round(ee+Z)!==U&&(ee-=getBordersSize(W,"top","bottom")+Z)),!isDocumentElement(C)){var ie=Math.round(Q+X)-H,te=Math.round(ee+Z)-U;Math.abs(ie)!==1&&(Q-=ie),Math.abs(te)!==1&&(ee-=te)}return createRectInit(G.left,G.top,Q,ee)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(C){return C instanceof getWindowOf(C).SVGGraphicsElement}:function(C){return C instanceof getWindowOf(C).SVGElement&&typeof C.getBBox=="function"}}();function isDocumentElement(C){return C===getWindowOf(C).document.documentElement}function getContentRect(C){return isBrowser$1?isSVGGraphicsElement(C)?getSVGContentRect(C):getHTMLElementContentRect(C):emptyRect}function createReadOnlyRect(C){var H=C.x,U=C.y,W=C.width,G=C.height,X=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Z=Object.create(X.prototype);return defineConfigurable(Z,{x:H,y:U,width:W,height:G,top:U,right:H+W,bottom:G+U,left:H}),Z}function createRectInit(C,H,U,W){return{x:C,y:H,width:U,height:W}}var ResizeObservation=function(){function C(H){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=H}return C.prototype.isActive=function(){var H=getContentRect(this.target);return this.contentRect_=H,H.width!==this.broadcastWidth||H.height!==this.broadcastHeight},C.prototype.broadcastRect=function(){var H=this.contentRect_;return this.broadcastWidth=H.width,this.broadcastHeight=H.height,H},C}(),ResizeObserverEntry=function(){function C(H,U){var W=createReadOnlyRect(U);defineConfigurable(this,{target:H,contentRect:W})}return C}(),ResizeObserverSPI=function(){function C(H,U,W){if(this.activeObservations_=[],this.observations_=new MapShim,typeof H!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=H,this.controller_=U,this.callbackCtx_=W}return C.prototype.observe=function(H){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(H instanceof getWindowOf(H).Element))throw new TypeError('parameter 1 is not of type "Element".');var U=this.observations_;U.has(H)||(U.set(H,new ResizeObservation(H)),this.controller_.addObserver(this),this.controller_.refresh())}},C.prototype.unobserve=function(H){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(H instanceof getWindowOf(H).Element))throw new TypeError('parameter 1 is not of type "Element".');var U=this.observations_;!U.has(H)||(U.delete(H),U.size||this.controller_.removeObserver(this))}},C.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},C.prototype.gatherActive=function(){var H=this;this.clearActive(),this.observations_.forEach(function(U){U.isActive()&&H.activeObservations_.push(U)})},C.prototype.broadcastActive=function(){if(!!this.hasActive()){var H=this.callbackCtx_,U=this.activeObservations_.map(function(W){return new ResizeObserverEntry(W.target,W.broadcastRect())});this.callback_.call(H,U,H),this.clearActive()}},C.prototype.clearActive=function(){this.activeObservations_.splice(0)},C.prototype.hasActive=function(){return this.activeObservations_.length>0},C}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function C(H){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var U=ResizeObserverController.getInstance(),W=new ResizeObserverSPI(H,U,this);observers.set(this,W)}return C}();["observe","unobserve","disconnect"].forEach(function(C){ResizeObserver$2.prototype[C]=function(){var H;return(H=observers.get(this))[C].apply(H,arguments)}});var index$s=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$2}();function _arrayWithHoles$2(C){if(Array.isArray(C))return C}function _iterableToArrayLimit$2(C,H){var U=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(U!=null){var W,G,X,Z,Q=[],ee=!0,ie=!1;try{if(X=(U=U.call(C)).next,H===0){if(Object(U)!==U)return;ee=!1}else for(;!(ee=(W=X.call(U)).done)&&(Q.push(W.value),Q.length!==H);ee=!0);}catch(te){ie=!0,G=te}finally{try{if(!ee&&U.return!=null&&(Z=U.return(),Object(Z)!==Z))return}finally{if(ie)throw G}}return Q}}function _arrayLikeToArray$3(C,H){(H==null||H>C.length)&&(H=C.length);for(var U=0,W=new Array(H);U<H;U++)W[U]=C[U];return W}function _unsupportedIterableToArray$3(C,H){if(!!C){if(typeof C=="string")return _arrayLikeToArray$3(C,H);var U=Object.prototype.toString.call(C).slice(8,-1);if(U==="Object"&&C.constructor&&(U=C.constructor.name),U==="Map"||U==="Set")return Array.from(C);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return _arrayLikeToArray$3(C,H)}}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray$2(C,H){return _arrayWithHoles$2(C)||_iterableToArrayLimit$2(C,H)||_unsupportedIterableToArray$3(C,H)||_nonIterableRest$2()}function _arrayWithoutHoles$1(C){if(Array.isArray(C))return _arrayLikeToArray$3(C)}function _iterableToArray$1(C){if(typeof Symbol<"u"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray$1(C){return _arrayWithoutHoles$1(C)||_iterableToArray$1(C)||_unsupportedIterableToArray$3(C)||_nonIterableSpread$1()}var freeGlobal$2=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$3=freeGlobal$2;var freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$a=freeGlobal$3||freeSelf$1||Function("return this")();const root$b=root$a;var Symbol$6=root$b.Symbol;const Symbol$7=Symbol$6;var objectProto$w=Object.prototype,hasOwnProperty$s=objectProto$w.hasOwnProperty,nativeObjectToString$3=objectProto$w.toString,symToStringTag$3=Symbol$7?Symbol$7.toStringTag:void 0;function getRawTag$2(C){var H=hasOwnProperty$s.call(C,symToStringTag$3),U=C[symToStringTag$3];try{C[symToStringTag$3]=void 0;var W=!0}catch{}var G=nativeObjectToString$3.call(C);return W&&(H?C[symToStringTag$3]=U:delete C[symToStringTag$3]),G}var objectProto$v=Object.prototype,nativeObjectToString$2=objectProto$v.toString;function objectToString$3(C){return nativeObjectToString$2.call(C)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$7?Symbol$7.toStringTag:void 0;function baseGetTag$7(C){return C==null?C===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(C)?getRawTag$2(C):objectToString$3(C)}function overArg$3(C,H){return function(U){return C(H(U))}}var getPrototype$3=overArg$3(Object.getPrototypeOf,Object);const getPrototype$4=getPrototype$3;function isObjectLike$8(C){return C!=null&&typeof C=="object"}var objectTag$7="[object Object]",funcProto$4=Function.prototype,objectProto$u=Object.prototype,funcToString$4=funcProto$4.toString,hasOwnProperty$r=objectProto$u.hasOwnProperty,objectCtorString=funcToString$4.call(Object);function isPlainObject$3(C){if(!isObjectLike$8(C)||baseGetTag$7(C)!=objectTag$7)return!1;var H=getPrototype$4(C);if(H===null)return!0;var U=hasOwnProperty$r.call(H,"constructor")&&H.constructor;return typeof U=="function"&&U instanceof U&&funcToString$4.call(U)==objectCtorString}var isValid$4=function(H){return H!=null&&H!==""};const isValid$5=isValid$4;var initDefaultProps=function(H,U){var W=_objectSpread2$1({},H);return Object.keys(U).forEach(function(G){var X=W[G];if(X)X.type||X.default?X.default=U[G]:X.def?X.def(U[G]):W[G]={type:X,default:U[G]};else throw new Error("not have ".concat(G," prop"))}),W};const initDefaultProps$1=initDefaultProps;var splitAttrs=function(H){for(var U=Object.keys(H),W={},G={},X={},Z=0,Q=U.length;Z<Q;Z++){var ee=U[Z];isOn(ee)?(W[ee[2].toLowerCase()+ee.slice(3)]=H[ee],G[ee]=H[ee]):X[ee]=H[ee]}return{onEvents:G,events:W,extraAttrs:X}},parseStyleText=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1?arguments[1]:void 0,W={},G=/;(?![^(]*\))/g,X=/:(.+)/;return _typeof$3(H)==="object"?H:(H.split(G).forEach(function(Z){if(Z){var Q=Z.split(X);if(Q.length>1){var ee=U?camelize(Q[0].trim()):Q[0].trim();W[ee]=Q[1].trim()}}}),W)},hasProp=function(H,U){return H[U]!==void 0},flattenChildren=function C(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=Array.isArray(H)?H:[H],G=[];return W.forEach(function(X){Array.isArray(X)?G.push.apply(G,_toConsumableArray$1(C(X,U))):X&&X.type===Fragment?G.push.apply(G,_toConsumableArray$1(C(X.children,U))):X&&isVNode$1(X)?U&&!isEmptyElement(X)?G.push(X):U||G.push(X):isValid$5(X)&&G.push(X)}),G},getSlot=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(isVNode$1(H))return H.type===Fragment?U==="default"?flattenChildren(H.children):[]:H.children&&H.children[U]?flattenChildren(H.children[U](W)):[];var G=H.$slots[U]&&H.$slots[U](W);return flattenChildren(G)},findDOMNode=function(H){for(var U,W=(H==null||(U=H.vnode)===null||U===void 0?void 0:U.el)||H&&(H.$el||H);W&&!W.tagName;)W=W.nextSibling;return W},getOptionProps=function(H){var U={};if(H.$&&H.$.vnode){var W=H.$.vnode.props||{};Object.keys(H.$props).forEach(function(Q){var ee=H.$props[Q],ie=hyphenate(Q);(ee!==void 0||ie in W)&&(U[Q]=ee)})}else if(isVNode$1(H)&&_typeof$3(H.type)==="object"){var G=H.props||{},X={};Object.keys(G).forEach(function(Q){X[camelize(Q)]=G[Q]});var Z=H.type.props||{};Object.keys(Z).forEach(function(Q){var ee=resolvePropValue(Z,X,Q,X[Q]);(ee!==void 0||Q in X)&&(U[Q]=ee)})}return U},getComponent=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,X=void 0;if(H.$){var Z=H[U];if(Z!==void 0)return typeof Z=="function"&&G?Z(W):Z;X=H.$slots[U],X=G&&X?X(W):X}else if(isVNode$1(H)){var Q=H.props&&H.props[U];if(Q!==void 0&&H.props!==null)return typeof Q=="function"&&G?Q(W):Q;H.type===Fragment?X=H.children:H.children&&H.children[U]&&(X=H.children[U],X=G&&X?X(W):X)}return Array.isArray(X)&&(X=flattenChildren(X),X=X.length===1?X[0]:X,X=X.length===0?void 0:X),X};function getEvents(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,U={};return C.$?U=_objectSpread2$1(_objectSpread2$1({},U),C.$attrs):U=_objectSpread2$1(_objectSpread2$1({},U),C.props),splitAttrs(U)[H?"onEvents":"events"]}function getStyle(C,H){var U=(isVNode$1(C)?C.props:C.$attrs)||{},W=U.style||{};if(typeof W=="string")W=parseStyleText(W,H);else if(H&&W){var G={};return Object.keys(W).forEach(function(X){return G[camelize(X)]=W[X]}),G}return W}function isEmptyElement(C){return C&&(C.type===Comment||C.type===Fragment&&C.children.length===0||C.type===Text&&C.children.trim()==="")}function filterEmpty(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=[];return C.forEach(function(U){Array.isArray(U)?H.push.apply(H,_toConsumableArray$1(U)):(U==null?void 0:U.type)===Fragment?H.push.apply(H,_toConsumableArray$1(filterEmpty(U.children))):H.push(U)}),H.filter(function(U){return!isEmptyElement(U)})}function isValidElement(C){return Array.isArray(C)&&C.length===1&&(C=C[0]),C&&C.__v_isVNode&&_typeof$3(C.type)!=="symbol"}function getPropsSlot(C,H){var U,W,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(U=H[G])!==null&&U!==void 0?U:(W=C[G])===null||W===void 0?void 0:W.call(C)}const ResizeObserver$1=defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(H,U){var W=U.slots,G=reactive({width:0,height:0,offsetHeight:0,offsetWidth:0}),X=null,Z=null,Q=function(){Z&&(Z.disconnect(),Z=null)},ee=function(ae){var oe=H.onResize,se=ae[0].target,le=se.getBoundingClientRect(),ce=le.width,ue=le.height,de=se.offsetWidth,ve=se.offsetHeight,ge=Math.floor(ce),he=Math.floor(ue);if(G.width!==ge||G.height!==he||G.offsetWidth!==de||G.offsetHeight!==ve){var me={width:ge,height:he,offsetWidth:de,offsetHeight:ve};_extends$1(G,me),oe&&Promise.resolve().then(function(){oe(_objectSpread2$1(_objectSpread2$1({},me),{},{offsetWidth:de,offsetHeight:ve}),se)})}},ie=getCurrentInstance(),te=function(){var ae=H.disabled;if(ae){Q();return}var oe=findDOMNode(ie),se=oe!==X;se&&(Q(),X=oe),!Z&&oe&&(Z=new index$s(ee),Z.observe(oe))};return onMounted(function(){te()}),onUpdated(function(){te()}),onUnmounted(function(){Q()}),watch(function(){return H.disabled},function(){te()},{flush:"post"}),function(){var ne;return(ne=W.default)===null||ne===void 0?void 0:ne.call(W)[0]}}});var raf$1=function(H){return setTimeout(H,16)},caf=function(H){return clearTimeout(H)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$1=function(H){return window.requestAnimationFrame(H)},caf=function(H){return window.cancelAnimationFrame(H)});var rafUUID=0,rafIds=new Map;function cleanup$1(C){rafIds.delete(C)}function wrapperRaf(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var U=rafUUID;function W(G){if(G===0)cleanup$1(U),C();else{var X=raf$1(function(){W(G-1)});rafIds.set(U,X)}}return W(H),U}wrapperRaf.cancel=function(C){var H=rafIds.get(C);return cleanup$1(H),caf(H)};var tuple=function(){for(var H=arguments.length,U=new Array(H),W=0;W<H;W++)U[W]=arguments[W];return U},withInstall=function(H){var U=H;return U.install=function(W){W.component(U.displayName||U.name,H)},H},supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch{}const supportsPassive$1=supportsPassive;function addEventListenerWrap(C,H,U,W){if(C&&C.addEventListener){var G=W;G===void 0&&supportsPassive$1&&(H==="touchstart"||H==="touchmove"||H==="wheel")&&(G={passive:!1}),C.addEventListener(H,U,G)}return{remove:function(){C&&C.removeEventListener&&C.removeEventListener(H,U)}}}function _objectWithoutPropertiesLoose$4(C,H){if(C==null)return{};var U={},W=Object.keys(C),G,X;for(X=0;X<W.length;X++)G=W[X],!(H.indexOf(G)>=0)&&(U[G]=C[G]);return U}function _objectWithoutProperties$4(C,H){if(C==null)return{};var U=_objectWithoutPropertiesLoose$4(C,H),W,G;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G<X.length;G++)W=X[G],!(H.indexOf(W)>=0)&&(!Object.prototype.propertyIsEnumerable.call(C,W)||(U[W]=C[W]))}return U}const enUS$1={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var locale$5={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const CalendarLocale=locale$5;var locale$4={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const TimePicker=locale$4;var locale$3={lang:_objectSpread2$1({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},CalendarLocale),timePickerLocale:_objectSpread2$1({},TimePicker)};const enUS=locale$3;var typeTemplate$1="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:enUS$1,DatePicker:enUS,TimePicker,Calendar:enUS,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const defaultLocale$2=localeValues,LocaleReceiver=defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(H,U){var W=U.slots,G=inject("localeData",{}),X=computed(function(){var Q=H.componentName,ee=Q===void 0?"global":Q,ie=H.defaultLocale,te=ie||defaultLocale$2[ee||"global"],ne=G.antLocale,ae=ee&&ne?ne[ee]:{};return _objectSpread2$1(_objectSpread2$1({},typeof te=="function"?te():te),ae||{})}),Z=computed(function(){var Q=G.antLocale,ee=Q&&Q.locale;return Q&&Q.exist&&!ee?defaultLocale$2.locale:ee});return function(){var Q=H.children||W.default,ee=G.antLocale;return Q==null?void 0:Q(X.value,Z.value,ee)}}});function useLocaleReceiver(C,H,U){var W=inject("localeData",{}),G=computed(function(){var X=W.antLocale,Z=unref(H)||defaultLocale$2[C||"global"],Q=C&&X?X[C]:{};return _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},typeof Z=="function"?Z():Z),Q||{}),unref(U)||{})});return[G]}var Empty$2=function(){var H=useConfigInject("empty",{}),U=H.getPrefixCls,W=U("empty-img-default");return createVNode("svg",{class:W,width:"184",height:"152",viewBox:"0 0 184 152"},[createVNode("g",{fill:"none","fill-rule":"evenodd"},[createVNode("g",{transform:"translate(24 31.67)"},[createVNode("ellipse",{class:"".concat(W,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),createVNode("path",{class:"".concat(W,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),createVNode("path",{class:"".concat(W,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),createVNode("path",{class:"".concat(W,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),createVNode("path",{class:"".concat(W,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),createVNode("path",{class:"".concat(W,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),createVNode("g",{class:"".concat(W,"-g"),transform:"translate(149.65 15.383)"},[createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};Empty$2.PRESENTED_IMAGE_DEFAULT=!0;const DefaultEmptyImg=Empty$2;var Simple=function(){var H=useConfigInject("empty",{}),U=H.getPrefixCls,W=U("empty-img-simple");return createVNode("svg",{class:W,width:"64",height:"41",viewBox:"0 0 64 41"},[createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[createVNode("ellipse",{class:"".concat(W,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),createVNode("g",{class:"".concat(W,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(W,"-path")},null)])])])};Simple.PRESENTED_IMAGE_SIMPLE=!0;const SimpleEmptyImg=Simple;function e$1(C,H){for(var U=0;U<H.length;U++){var W=H[U];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(C,W.key,W)}}function t$1(C,H,U){return H&&e$1(C.prototype,H),U&&e$1(C,U),C}function n$1(){return(n$1=Object.assign||function(C){for(var H=1;H<arguments.length;H++){var U=arguments[H];for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&(C[W]=U[W])}return C}).apply(this,arguments)}function r$1(C,H){C.prototype=Object.create(H.prototype),C.prototype.constructor=C,C.__proto__=H}function i$2(C,H){if(C==null)return{};var U,W,G={},X=Object.keys(C);for(W=0;W<X.length;W++)H.indexOf(U=X[W])>=0||(G[U]=C[U]);return G}function o(C){return((H=C)!=null&&typeof H=="object"&&Array.isArray(H)===!1)==1&&Object.prototype.toString.call(C)==="[object Object]";var H}var u=Object.prototype,a=u.toString,f$1=u.hasOwnProperty,c$1=/^\s*function (\w+)/;function l(C){var H,U=(H=C==null?void 0:C.type)!==null&&H!==void 0?H:C;if(U){var W=U.toString().match(c$1);return W?W[1]:""}return""}var s=function(C){var H,U;return o(C)!==!1&&typeof(H=C.constructor)=="function"&&o(U=H.prototype)!==!1&&U.hasOwnProperty("isPrototypeOf")!==!1},v=function(C){return C},y$1=v,d=function(C,H){return f$1.call(C,H)},h=Number.isInteger||function(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C},b=Array.isArray||function(C){return a.call(C)==="[object Array]"},O=function(C){return a.call(C)==="[object Function]"},g=function(C){return s(C)&&d(C,"_vueTypes_name")},m=function(C){return s(C)&&(d(C,"type")||["_vueTypes_name","validator","default","required"].some(function(H){return d(C,H)}))};function j(C,H){return Object.defineProperty(C.bind(H),"__original",{value:C})}function _$1(C,H,U){var W;U===void 0&&(U=!1);var G=!0,X="";W=s(C)?C:{type:C};var Z=g(W)?W._vueTypes_name+" - ":"";if(m(W)&&W.type!==null){if(W.type===void 0||W.type===!0||!W.required&&H===void 0)return G;b(W.type)?(G=W.type.some(function(ne){return _$1(ne,H,!0)===!0}),X=W.type.map(function(ne){return l(ne)}).join(" or ")):G=(X=l(W))==="Array"?b(H):X==="Object"?s(H):X==="String"||X==="Number"||X==="Boolean"||X==="Function"?function(ne){if(ne==null)return"";var ae=ne.constructor.toString().match(c$1);return ae?ae[1]:""}(H)===X:H instanceof W.type}if(!G){var Q=Z+'value "'+H+'" should be of type "'+X+'"';return U===!1?(y$1(Q),!1):Q}if(d(W,"validator")&&O(W.validator)){var ee=y$1,ie=[];if(y$1=function(ne){ie.push(ne)},G=W.validator(H),y$1=ee,!G){var te=(ie.length>1?"* ":"")+ie.join(`
|
||
* `);return ie.length=0,U===!1?(y$1(te),G):te}}return G}function T(C,H){var U=Object.defineProperties(H,{_vueTypes_name:{value:C,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(G){return G!==void 0||this.default?O(G)||_$1(this,G,!0)===!0?(this.default=b(G)?function(){return[].concat(G)}:s(G)?function(){return Object.assign({},G)}:G,this):(y$1(this._vueTypes_name+' - invalid default value: "'+G+'"'),this):this}}}),W=U.validator;return O(W)&&(U.validator=j(W,U)),U}function w$1(C,H){var U=T(C,H);return Object.defineProperty(U,"validate",{value:function(W){return O(this.validator)&&y$1(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
||
`+JSON.stringify(this)),this.validator=j(W,this),this}})}function k(C,H,U){var W,G,X=(W=H,G={},Object.getOwnPropertyNames(W).forEach(function(ne){G[ne]=Object.getOwnPropertyDescriptor(W,ne)}),Object.defineProperties({},G));if(X._vueTypes_name=C,!s(U))return X;var Z,Q,ee=U.validator,ie=i$2(U,["validator"]);if(O(ee)){var te=X.validator;te&&(te=(Q=(Z=te).__original)!==null&&Q!==void 0?Q:Z),X.validator=j(te?function(ne){return te.call(this,ne)&&ee.call(this,ne)}:ee,X)}return Object.assign(X,ie)}function P(C){return C.replace(/^(?!\s*$)/gm," ")}var x$1=function(){return w$1("any",{})},A=function(){return w$1("function",{type:Function})},E=function(){return w$1("boolean",{type:Boolean})},N=function(){return w$1("string",{type:String})},q=function(){return w$1("number",{type:Number})},S=function(){return w$1("array",{type:Array})},V=function(){return w$1("object",{type:Object})},F=function(){return T("integer",{type:Number,validator:function(C){return h(C)}})},D=function(){return T("symbol",{validator:function(C){return typeof C=="symbol"}})};function L(C,H){if(H===void 0&&(H="custom validation failed"),typeof C!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return T(C.name||"<<anonymous function>>",{validator:function(U){var W=C(U);return W||y$1(this._vueTypes_name+" - "+H),W}})}function Y(C){if(!b(C))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var H='oneOf - value should be one of "'+C.join('", "')+'".',U=C.reduce(function(W,G){if(G!=null){var X=G.constructor;W.indexOf(X)===-1&&W.push(X)}return W},[]);return T("oneOf",{type:U.length>0?U:void 0,validator:function(W){var G=C.indexOf(W)!==-1;return G||y$1(H),G}})}function B(C){if(!b(C))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var H=!1,U=[],W=0;W<C.length;W+=1){var G=C[W];if(m(G)){if(g(G)&&G._vueTypes_name==="oneOf"){U=U.concat(G.type);continue}if(O(G.validator)&&(H=!0),G.type!==!0&&G.type){U=U.concat(G.type);continue}}U.push(G)}return U=U.filter(function(X,Z){return U.indexOf(X)===Z}),T("oneOfType",H?{type:U,validator:function(X){var Z=[],Q=C.some(function(ee){var ie=_$1(g(ee)&&ee._vueTypes_name==="oneOf"?ee.type||null:ee,X,!0);return typeof ie=="string"&&Z.push(ie),ie===!0});return Q||y$1("oneOfType - provided value does not match any of the "+Z.length+` passed-in validators:
|
||
`+P(Z.join(`
|
||
`))),Q}}:{type:U})}function I(C){return T("arrayOf",{type:Array,validator:function(H){var U,W=H.every(function(G){return(U=_$1(C,G,!0))===!0});return W||y$1(`arrayOf - value validation error:
|
||
`+P(U)),W}})}function J(C){return T("instanceOf",{type:C})}function M(C){return T("objectOf",{type:Object,validator:function(H){var U,W=Object.keys(H).every(function(G){return(U=_$1(C,H[G],!0))===!0});return W||y$1(`objectOf - value validation error:
|
||
`+P(U)),W}})}function R(C){var H=Object.keys(C),U=H.filter(function(G){var X;return!!(!((X=C[G])===null||X===void 0)&&X.required)}),W=T("shape",{type:Object,validator:function(G){var X=this;if(!s(G))return!1;var Z=Object.keys(G);if(U.length>0&&U.some(function(ee){return Z.indexOf(ee)===-1})){var Q=U.filter(function(ee){return Z.indexOf(ee)===-1});return y$1(Q.length===1?'shape - required property "'+Q[0]+'" is not defined.':'shape - required properties "'+Q.join('", "')+'" are not defined.'),!1}return Z.every(function(ee){if(H.indexOf(ee)===-1)return X._vueTypes_isLoose===!0||(y$1('shape - shape definition does not include a "'+ee+'" property. Allowed keys: "'+H.join('", "')+'".'),!1);var ie=_$1(C[ee],G[ee],!0);return typeof ie=="string"&&y$1('shape - "'+ee+`" property validation error:
|
||
`+P(ie)),ie===!0})}});return Object.defineProperty(W,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(W,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),W}var $=function(){function C(){}return C.extend=function(H){var U=this;if(b(H))return H.forEach(function(ne){return U.extend(ne)}),this;var W=H.name,G=H.validate,X=G!==void 0&&G,Z=H.getter,Q=Z!==void 0&&Z,ee=i$2(H,["name","validate","getter"]);if(d(this,W))throw new TypeError('[VueTypes error]: Type "'+W+'" already defined');var ie,te=ee.type;return g(te)?(delete ee.type,Object.defineProperty(this,W,Q?{get:function(){return k(W,te,ee)}}:{value:function(){var ne,ae=k(W,te,ee);return ae.validator&&(ae.validator=(ne=ae.validator).bind.apply(ne,[ae].concat([].slice.call(arguments)))),ae}})):(ie=Q?{get:function(){var ne=Object.assign({},ee);return X?w$1(W,ne):T(W,ne)},enumerable:!0}:{value:function(){var ne,ae,oe=Object.assign({},ee);return ne=X?w$1(W,oe):T(W,oe),oe.validator&&(ne.validator=(ae=oe.validator).bind.apply(ae,[ne].concat([].slice.call(arguments)))),ne},enumerable:!0},Object.defineProperty(this,W,ie))},t$1(C,null,[{key:"any",get:function(){return x$1()}},{key:"func",get:function(){return A().def(this.defaults.func)}},{key:"bool",get:function(){return E().def(this.defaults.bool)}},{key:"string",get:function(){return N().def(this.defaults.string)}},{key:"number",get:function(){return q().def(this.defaults.number)}},{key:"array",get:function(){return S().def(this.defaults.array)}},{key:"object",get:function(){return V().def(this.defaults.object)}},{key:"integer",get:function(){return F().def(this.defaults.integer)}},{key:"symbol",get:function(){return D()}}]),C}();function z(C){var H;return C===void 0&&(C={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(H=function(U){function W(){return U.apply(this,arguments)||this}return r$1(W,U),t$1(W,null,[{key:"sensibleDefaults",get:function(){return n$1({},this.defaults)},set:function(G){this.defaults=G!==!1?n$1({},G!==!0?G:C):{}}}]),W}($)).defaults=n$1({},C),H}$.defaults={},$.custom=L,$.oneOf=Y,$.instanceOf=J,$.oneOfType=B,$.arrayOf=I,$.objectOf=M,$.shape=R,$.utils={validate:function(C,H){return _$1(H,C,!0)===!0},toType:function(C,H,U){return U===void 0&&(U=!1),U?w$1(C,H):T(C,H)}};(function(C){function H(){return C.apply(this,arguments)||this}return r$1(H,C),H})(z());var PropTypes=z({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});PropTypes.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const PropTypes$1=PropTypes;var _excluded$A=["image","description","imageStyle","class"],defaultEmptyImg=createVNode(DefaultEmptyImg,null,null),simpleEmptyImg=createVNode(SimpleEmptyImg,null,null),Empty=function(H,U){var W,G=U.slots,X=G===void 0?{}:G,Z=U.attrs,Q=useConfigInject("empty",H),ee=Q.direction,ie=Q.prefixCls,te=ie.value,ne=_objectSpread2$1(_objectSpread2$1({},H),Z),ae=ne.image,oe=ae===void 0?defaultEmptyImg:ae,se=ne.description,le=se===void 0?((W=X.description)===null||W===void 0?void 0:W.call(X))||void 0:se,ce=ne.imageStyle,ue=ne.class,de=ue===void 0?"":ue,ve=_objectWithoutProperties$4(ne,_excluded$A);return createVNode(LocaleReceiver,{componentName:"Empty",children:function(he){var me,_e=typeof le<"u"?le:he.description,be=typeof _e=="string"?_e:"empty",pe=null;return typeof oe=="string"?pe=createVNode("img",{alt:be,src:oe},null):pe=oe,createVNode("div",_objectSpread2$1({class:classNames(te,de,(me={},_defineProperty$M(me,"".concat(te,"-normal"),oe===simpleEmptyImg),_defineProperty$M(me,"".concat(te,"-rtl"),ee.value==="rtl"),me))},ve),[createVNode("div",{class:"".concat(te,"-image"),style:ce},[pe]),_e&&createVNode("p",{class:"".concat(te,"-description")},[_e]),X.default&&createVNode("div",{class:"".concat(te,"-footer")},[filterEmpty(X.default())])])}},null)};Empty.displayName="AEmpty";Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;Empty.inheritAttrs=!1;Empty.props={prefixCls:String,image:PropTypes$1.any,description:PropTypes$1.any,imageStyle:{type:Object,default:void 0}};const Empty$1=withInstall(Empty);var RenderEmpty=function(H){var U=useConfigInject("empty",H),W=U.prefixCls,G=function(Z){switch(Z){case"Table":case"List":return createVNode(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return createVNode(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,class:"".concat(W.value,"-small")},null);default:return createVNode(Empty$1,null,null)}};return G(H.componentName)};function renderEmpty(C){return createVNode(RenderEmpty,{componentName:C},null)}var warned={};function warning$3(C,H){}function call(C,H,U){!H&&!warned[U]&&(C(!1,U),warned[U]=!0)}function warningOnce(C,H){call(warning$3,C,H)}const warning$2=function(C,H){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";warningOnce(C,"[antdv: ".concat(H,"] ").concat(U))};var ANT_MARK="internalMark",LocaleProvider=defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(H,U){var W=U.slots;warning$2(H.ANT_MARK__===ANT_MARK,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var G=reactive({antLocale:_objectSpread2$1(_objectSpread2$1({},H.locale),{},{exist:!0}),ANT_MARK__:ANT_MARK});return provide("localeData",G),watch(function(){return H.locale},function(){G.antLocale=_objectSpread2$1(_objectSpread2$1({},H.locale),{},{exist:!0})},{immediate:!0}),function(){var X;return(X=W.default)===null||X===void 0?void 0:X.call(W)}}});LocaleProvider.install=function(C){return C.component(LocaleProvider.name,LocaleProvider),C};const LocaleProvider$1=withInstall(LocaleProvider);tuple("bottomLeft","bottomRight","topLeft","topRight");var getTransitionProps=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=_objectSpread2$1(H?{name:H,appear:!0,enterFromClass:"".concat(H,"-enter ").concat(H,"-enter-prepare"),enterActiveClass:"".concat(H,"-enter ").concat(H,"-enter-prepare"),enterToClass:"".concat(H,"-enter ").concat(H,"-enter-active"),leaveFromClass:" ".concat(H,"-leave"),leaveActiveClass:"".concat(H,"-leave ").concat(H,"-leave-active"),leaveToClass:"".concat(H,"-leave ").concat(H,"-leave-active")}:{css:!1},U);return W},getTransitionGroupProps=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=_objectSpread2$1(H?{name:H,appear:!0,appearActiveClass:"".concat(H),appearToClass:"".concat(H,"-appear ").concat(H,"-appear-active"),enterFromClass:"".concat(H,"-appear ").concat(H,"-enter ").concat(H,"-appear-prepare ").concat(H,"-enter-prepare"),enterActiveClass:"".concat(H),enterToClass:"".concat(H,"-enter ").concat(H,"-appear ").concat(H,"-appear-active ").concat(H,"-enter-active"),leaveActiveClass:"".concat(H," ").concat(H,"-leave"),leaveToClass:"".concat(H,"-leave-active")}:{css:!1},U);return W},getTransitionName$1=function(H,U,W){return W!==void 0?W:"".concat(H,"-").concat(U)};const Notice=defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(H,U){var W=U.attrs,G=U.slots,X,Z=computed(function(){return H.duration===void 0?1.5:H.duration}),Q=function(){Z.value&&(X=setTimeout(function(){ie()},Z.value*1e3))},ee=function(){X&&(clearTimeout(X),X=null)},ie=function(ae){ae&&ae.stopPropagation(),ee();var oe=H.onClose,se=H.noticeKey;oe&&oe(se)},te=function(){ee(),Q()};return onMounted(function(){Q()}),onUnmounted(function(){ee()}),watch([Z,function(){return H.updateMark},function(){return H.visible}],function(ne,ae){var oe=_slicedToArray$2(ne,3),se=oe[0],le=oe[1],ce=oe[2],ue=_slicedToArray$2(ae,3),de=ue[0],ve=ue[1],ge=ue[2];(se!==de||le!==ve||ce!==ge&&ge)&&te()},{flush:"post"}),function(){var ne,ae,oe=H.prefixCls,se=H.closable,le=H.closeIcon,ce=le===void 0?(ne=G.closeIcon)===null||ne===void 0?void 0:ne.call(G):le,ue=H.onClick,de=H.holder,ve=W.class,ge=W.style,he="".concat(oe,"-notice"),me=Object.keys(W).reduce(function(be,pe){return(pe.substr(0,5)==="data-"||pe.substr(0,5)==="aria-"||pe==="role")&&(be[pe]=W[pe]),be},{}),_e=createVNode("div",_objectSpread2$1({class:classNames(he,ve,_defineProperty$M({},"".concat(he,"-closable"),se)),style:ge,onMouseenter:ee,onMouseleave:Q,onClick:ue},me),[createVNode("div",{class:"".concat(he,"-content")},[(ae=G.default)===null||ae===void 0?void 0:ae.call(G)]),se?createVNode("a",{tabindex:0,onClick:ie,class:"".concat(he,"-close")},[ce||createVNode("span",{class:"".concat(he,"-close-x")},null)]):null]);return de?createVNode(Teleport,{to:de},{default:function(){return _e}}):_e}}});var _excluded$z=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],seed=0,now$4=Date.now();function getUuid(){var C=seed;return seed+=1,"rcNotification_".concat(now$4,"_").concat(C)}var Notification=defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(H,U){var W=U.attrs,G=U.expose,X=U.slots,Z=new Map,Q=ref([]),ee=computed(function(){var ne=H.prefixCls,ae=H.animation,oe=ae===void 0?"fade":ae,se=H.transitionName;return!se&&oe&&(se="".concat(ne,"-").concat(oe)),getTransitionGroupProps(se)}),ie=function(ae,oe){var se=ae.key||getUuid(),le=_objectSpread2$1(_objectSpread2$1({},ae),{},{key:se}),ce=H.maxCount,ue=Q.value.map(function(ve){return ve.notice.key}).indexOf(se),de=Q.value.concat();ue!==-1?de.splice(ue,1,{notice:le,holderCallback:oe}):(ce&&Q.value.length>=ce&&(le.key=de[0].notice.key,le.updateMark=getUuid(),le.userPassKey=se,de.shift()),de.push({notice:le,holderCallback:oe})),Q.value=de},te=function(ae){Q.value=Q.value.filter(function(oe){var se=oe.notice,le=se.key,ce=se.userPassKey,ue=ce||le;return ue!==ae})};return G({add:ie,remove:te,notices:Q}),function(){var ne,ae,oe=H.prefixCls,se=H.closeIcon,le=se===void 0?(ne=X.closeIcon)===null||ne===void 0?void 0:ne.call(X,{prefixCls:oe}):se,ce=Q.value.map(function(de,ve){var ge=de.notice,he=de.holderCallback,me=ve===Q.value.length-1?ge.updateMark:void 0,_e=ge.key,be=ge.userPassKey,pe=ge.content,fe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({prefixCls:oe,closeIcon:typeof le=="function"?le({prefixCls:oe}):le},ge),ge.props),{},{key:_e,noticeKey:be||_e,updateMark:me,onClose:function($e){var we;te($e),(we=ge.onClose)===null||we===void 0||we.call(ge)},onClick:ge.onClick});return he?createVNode("div",{key:_e,class:"".concat(oe,"-hook-holder"),ref:function($e){typeof _e>"u"||($e?(Z.set(_e,$e),he($e,fe)):Z.delete(_e))}},null):createVNode(Notice,fe,{default:function(){return[typeof pe=="function"?pe({prefixCls:oe}):pe]}})}),ue=(ae={},_defineProperty$M(ae,oe,1),_defineProperty$M(ae,W.class,!!W.class),ae);return createVNode("div",{class:ue,style:W.style||{top:"65px",left:"50%"}},[createVNode(TransitionGroup,_objectSpread2$1({tag:"div"},ee.value),{default:function(){return[ce]}})])}}});Notification.newInstance=function(H,U){var W=H||{},G=W.name,X=G===void 0?"notification":G,Z=W.getContainer,Q=W.appContext,ee=W.prefixCls,ie=W.rootPrefixCls,te=W.transitionName,ne=W.hasTransitionName,ae=_objectWithoutProperties$4(W,_excluded$z),oe=document.createElement("div");if(Z){var se=Z();se.appendChild(oe)}else document.body.appendChild(oe);var le=defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(de,ve){var ge=ve.attrs,he=ref();return onMounted(function(){U({notice:function(_e){var be;(be=he.value)===null||be===void 0||be.add(_e)},removeNotice:function(_e){var be;(be=he.value)===null||be===void 0||be.remove(_e)},destroy:function(){render$3(null,oe),oe.parentNode&&oe.parentNode.removeChild(oe)},component:he})}),function(){var me=globalConfigForApi,_e=me.getPrefixCls(X,ee),be=me.getRootPrefixCls(ie,_e),pe=ne?te:"".concat(be,"-").concat(te);return createVNode(__unplugin_components_1$4,_objectSpread2$1(_objectSpread2$1({},me),{},{notUpdateGlobalConfig:!0,prefixCls:be}),{default:function(){return[createVNode(Notification,_objectSpread2$1(_objectSpread2$1({ref:he},ge),{},{prefixCls:_e,transitionName:pe}),null)]}})}}}),ce=createVNode(le,ae);ce.appContext=Q||ce.appContext,render$3(ce,oe)};const Notification$1=Notification;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function bound01(C,H){isOnePointZero(C)&&(C="100%");var U=isPercentage(C);return C=H===360?C:Math.min(H,Math.max(0,parseFloat(C))),U&&(C=parseInt(String(C*H),10)/100),Math.abs(C-H)<1e-6?1:(H===360?C=(C<0?C%H+H:C%H)/parseFloat(String(H)):C=C%H/parseFloat(String(H)),C)}function clamp01(C){return Math.min(1,Math.max(0,C))}function isOnePointZero(C){return typeof C=="string"&&C.indexOf(".")!==-1&&parseFloat(C)===1}function isPercentage(C){return typeof C=="string"&&C.indexOf("%")!==-1}function boundAlpha(C){return C=parseFloat(C),(isNaN(C)||C<0||C>1)&&(C=1),C}function convertToPercentage(C){return C<=1?"".concat(Number(C)*100,"%"):C}function pad2(C){return C.length===1?"0"+C:String(C)}function rgbToRgb(C,H,U){return{r:bound01(C,255)*255,g:bound01(H,255)*255,b:bound01(U,255)*255}}function rgbToHsl(C,H,U){C=bound01(C,255),H=bound01(H,255),U=bound01(U,255);var W=Math.max(C,H,U),G=Math.min(C,H,U),X=0,Z=0,Q=(W+G)/2;if(W===G)Z=0,X=0;else{var ee=W-G;switch(Z=Q>.5?ee/(2-W-G):ee/(W+G),W){case C:X=(H-U)/ee+(H<U?6:0);break;case H:X=(U-C)/ee+2;break;case U:X=(C-H)/ee+4;break}X/=6}return{h:X,s:Z,l:Q}}function hue2rgb(C,H,U){return U<0&&(U+=1),U>1&&(U-=1),U<1/6?C+(H-C)*(6*U):U<1/2?H:U<2/3?C+(H-C)*(2/3-U)*6:C}function hslToRgb(C,H,U){var W,G,X;if(C=bound01(C,360),H=bound01(H,100),U=bound01(U,100),H===0)G=U,X=U,W=U;else{var Z=U<.5?U*(1+H):U+H-U*H,Q=2*U-Z;W=hue2rgb(Q,Z,C+1/3),G=hue2rgb(Q,Z,C),X=hue2rgb(Q,Z,C-1/3)}return{r:W*255,g:G*255,b:X*255}}function rgbToHsv(C,H,U){C=bound01(C,255),H=bound01(H,255),U=bound01(U,255);var W=Math.max(C,H,U),G=Math.min(C,H,U),X=0,Z=W,Q=W-G,ee=W===0?0:Q/W;if(W===G)X=0;else{switch(W){case C:X=(H-U)/Q+(H<U?6:0);break;case H:X=(U-C)/Q+2;break;case U:X=(C-H)/Q+4;break}X/=6}return{h:X,s:ee,v:Z}}function hsvToRgb(C,H,U){C=bound01(C,360)*6,H=bound01(H,100),U=bound01(U,100);var W=Math.floor(C),G=C-W,X=U*(1-H),Z=U*(1-G*H),Q=U*(1-(1-G)*H),ee=W%6,ie=[U,Z,X,X,Q,U][ee],te=[Q,U,U,Z,X,X][ee],ne=[X,X,Q,U,U,Z][ee];return{r:ie*255,g:te*255,b:ne*255}}function rgbToHex(C,H,U,W){var G=[pad2(Math.round(C).toString(16)),pad2(Math.round(H).toString(16)),pad2(Math.round(U).toString(16))];return W&&G[0].startsWith(G[0].charAt(1))&&G[1].startsWith(G[1].charAt(1))&&G[2].startsWith(G[2].charAt(1))?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0):G.join("")}function rgbaToHex(C,H,U,W,G){var X=[pad2(Math.round(C).toString(16)),pad2(Math.round(H).toString(16)),pad2(Math.round(U).toString(16)),pad2(convertDecimalToHex(W))];return G&&X[0].startsWith(X[0].charAt(1))&&X[1].startsWith(X[1].charAt(1))&&X[2].startsWith(X[2].charAt(1))&&X[3].startsWith(X[3].charAt(1))?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function convertDecimalToHex(C){return Math.round(parseFloat(C)*255).toString(16)}function convertHexToDecimal(C){return parseIntFromHex(C)/255}function parseIntFromHex(C){return parseInt(C,16)}function numberInputToObject(C){return{r:C>>16,g:(C&65280)>>8,b:C&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(C){var H={r:0,g:0,b:0},U=1,W=null,G=null,X=null,Z=!1,Q=!1;return typeof C=="string"&&(C=stringInputToObject(C)),typeof C=="object"&&(isValidCSSUnit(C.r)&&isValidCSSUnit(C.g)&&isValidCSSUnit(C.b)?(H=rgbToRgb(C.r,C.g,C.b),Z=!0,Q=String(C.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.v)?(W=convertToPercentage(C.s),G=convertToPercentage(C.v),H=hsvToRgb(C.h,W,G),Z=!0,Q="hsv"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.l)&&(W=convertToPercentage(C.s),X=convertToPercentage(C.l),H=hslToRgb(C.h,W,X),Z=!0,Q="hsl"),Object.prototype.hasOwnProperty.call(C,"a")&&(U=C.a)),U=boundAlpha(U),{ok:Z,format:C.format||Q,r:Math.min(255,Math.max(H.r,0)),g:Math.min(255,Math.max(H.g,0)),b:Math.min(255,Math.max(H.b,0)),a:U}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(C){if(C=C.trim().toLowerCase(),C.length===0)return!1;var H=!1;if(names[C])C=names[C],H=!0;else if(C==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U=matchers.rgb.exec(C);return U?{r:U[1],g:U[2],b:U[3]}:(U=matchers.rgba.exec(C),U?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=matchers.hsl.exec(C),U?{h:U[1],s:U[2],l:U[3]}:(U=matchers.hsla.exec(C),U?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=matchers.hsv.exec(C),U?{h:U[1],s:U[2],v:U[3]}:(U=matchers.hsva.exec(C),U?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=matchers.hex8.exec(C),U?{r:parseIntFromHex(U[1]),g:parseIntFromHex(U[2]),b:parseIntFromHex(U[3]),a:convertHexToDecimal(U[4]),format:H?"name":"hex8"}:(U=matchers.hex6.exec(C),U?{r:parseIntFromHex(U[1]),g:parseIntFromHex(U[2]),b:parseIntFromHex(U[3]),format:H?"name":"hex"}:(U=matchers.hex4.exec(C),U?{r:parseIntFromHex(U[1]+U[1]),g:parseIntFromHex(U[2]+U[2]),b:parseIntFromHex(U[3]+U[3]),a:convertHexToDecimal(U[4]+U[4]),format:H?"name":"hex8"}:(U=matchers.hex3.exec(C),U?{r:parseIntFromHex(U[1]+U[1]),g:parseIntFromHex(U[2]+U[2]),b:parseIntFromHex(U[3]+U[3]),format:H?"name":"hex"}:!1)))))))))}function isValidCSSUnit(C){return Boolean(matchers.CSS_UNIT.exec(String(C)))}var TinyColor=function(){function C(H,U){H===void 0&&(H=""),U===void 0&&(U={});var W;if(H instanceof C)return H;typeof H=="number"&&(H=numberInputToObject(H)),this.originalInput=H;var G=inputToRGB(H);this.originalInput=H,this.r=G.r,this.g=G.g,this.b=G.b,this.a=G.a,this.roundA=Math.round(100*this.a)/100,this.format=(W=U.format)!==null&&W!==void 0?W:G.format,this.gradientType=U.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=G.ok}return C.prototype.isDark=function(){return this.getBrightness()<128},C.prototype.isLight=function(){return!this.isDark()},C.prototype.getBrightness=function(){var H=this.toRgb();return(H.r*299+H.g*587+H.b*114)/1e3},C.prototype.getLuminance=function(){var H=this.toRgb(),U,W,G,X=H.r/255,Z=H.g/255,Q=H.b/255;return X<=.03928?U=X/12.92:U=Math.pow((X+.055)/1.055,2.4),Z<=.03928?W=Z/12.92:W=Math.pow((Z+.055)/1.055,2.4),Q<=.03928?G=Q/12.92:G=Math.pow((Q+.055)/1.055,2.4),.2126*U+.7152*W+.0722*G},C.prototype.getAlpha=function(){return this.a},C.prototype.setAlpha=function(H){return this.a=boundAlpha(H),this.roundA=Math.round(100*this.a)/100,this},C.prototype.isMonochrome=function(){var H=this.toHsl().s;return H===0},C.prototype.toHsv=function(){var H=rgbToHsv(this.r,this.g,this.b);return{h:H.h*360,s:H.s,v:H.v,a:this.a}},C.prototype.toHsvString=function(){var H=rgbToHsv(this.r,this.g,this.b),U=Math.round(H.h*360),W=Math.round(H.s*100),G=Math.round(H.v*100);return this.a===1?"hsv(".concat(U,", ").concat(W,"%, ").concat(G,"%)"):"hsva(".concat(U,", ").concat(W,"%, ").concat(G,"%, ").concat(this.roundA,")")},C.prototype.toHsl=function(){var H=rgbToHsl(this.r,this.g,this.b);return{h:H.h*360,s:H.s,l:H.l,a:this.a}},C.prototype.toHslString=function(){var H=rgbToHsl(this.r,this.g,this.b),U=Math.round(H.h*360),W=Math.round(H.s*100),G=Math.round(H.l*100);return this.a===1?"hsl(".concat(U,", ").concat(W,"%, ").concat(G,"%)"):"hsla(".concat(U,", ").concat(W,"%, ").concat(G,"%, ").concat(this.roundA,")")},C.prototype.toHex=function(H){return H===void 0&&(H=!1),rgbToHex(this.r,this.g,this.b,H)},C.prototype.toHexString=function(H){return H===void 0&&(H=!1),"#"+this.toHex(H)},C.prototype.toHex8=function(H){return H===void 0&&(H=!1),rgbaToHex(this.r,this.g,this.b,this.a,H)},C.prototype.toHex8String=function(H){return H===void 0&&(H=!1),"#"+this.toHex8(H)},C.prototype.toHexShortString=function(H){return H===void 0&&(H=!1),this.a===1?this.toHexString(H):this.toHex8String(H)},C.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},C.prototype.toRgbString=function(){var H=Math.round(this.r),U=Math.round(this.g),W=Math.round(this.b);return this.a===1?"rgb(".concat(H,", ").concat(U,", ").concat(W,")"):"rgba(".concat(H,", ").concat(U,", ").concat(W,", ").concat(this.roundA,")")},C.prototype.toPercentageRgb=function(){var H=function(U){return"".concat(Math.round(bound01(U,255)*100),"%")};return{r:H(this.r),g:H(this.g),b:H(this.b),a:this.a}},C.prototype.toPercentageRgbString=function(){var H=function(U){return Math.round(bound01(U,255)*100)};return this.a===1?"rgb(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%)"):"rgba(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%, ").concat(this.roundA,")")},C.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var H="#"+rgbToHex(this.r,this.g,this.b,!1),U=0,W=Object.entries(names);U<W.length;U++){var G=W[U],X=G[0],Z=G[1];if(H===Z)return X}return!1},C.prototype.toString=function(H){var U=Boolean(H);H=H!=null?H:this.format;var W=!1,G=this.a<1&&this.a>=0,X=!U&&G&&(H.startsWith("hex")||H==="name");return X?H==="name"&&this.a===0?this.toName():this.toRgbString():(H==="rgb"&&(W=this.toRgbString()),H==="prgb"&&(W=this.toPercentageRgbString()),(H==="hex"||H==="hex6")&&(W=this.toHexString()),H==="hex3"&&(W=this.toHexString(!0)),H==="hex4"&&(W=this.toHex8String(!0)),H==="hex8"&&(W=this.toHex8String()),H==="name"&&(W=this.toName()),H==="hsl"&&(W=this.toHslString()),H==="hsv"&&(W=this.toHsvString()),W||this.toHexString())},C.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},C.prototype.clone=function(){return new C(this.toString())},C.prototype.lighten=function(H){H===void 0&&(H=10);var U=this.toHsl();return U.l+=H/100,U.l=clamp01(U.l),new C(U)},C.prototype.brighten=function(H){H===void 0&&(H=10);var U=this.toRgb();return U.r=Math.max(0,Math.min(255,U.r-Math.round(255*-(H/100)))),U.g=Math.max(0,Math.min(255,U.g-Math.round(255*-(H/100)))),U.b=Math.max(0,Math.min(255,U.b-Math.round(255*-(H/100)))),new C(U)},C.prototype.darken=function(H){H===void 0&&(H=10);var U=this.toHsl();return U.l-=H/100,U.l=clamp01(U.l),new C(U)},C.prototype.tint=function(H){return H===void 0&&(H=10),this.mix("white",H)},C.prototype.shade=function(H){return H===void 0&&(H=10),this.mix("black",H)},C.prototype.desaturate=function(H){H===void 0&&(H=10);var U=this.toHsl();return U.s-=H/100,U.s=clamp01(U.s),new C(U)},C.prototype.saturate=function(H){H===void 0&&(H=10);var U=this.toHsl();return U.s+=H/100,U.s=clamp01(U.s),new C(U)},C.prototype.greyscale=function(){return this.desaturate(100)},C.prototype.spin=function(H){var U=this.toHsl(),W=(U.h+H)%360;return U.h=W<0?360+W:W,new C(U)},C.prototype.mix=function(H,U){U===void 0&&(U=50);var W=this.toRgb(),G=new C(H).toRgb(),X=U/100,Z={r:(G.r-W.r)*X+W.r,g:(G.g-W.g)*X+W.g,b:(G.b-W.b)*X+W.b,a:(G.a-W.a)*X+W.a};return new C(Z)},C.prototype.analogous=function(H,U){H===void 0&&(H=6),U===void 0&&(U=30);var W=this.toHsl(),G=360/U,X=[this];for(W.h=(W.h-(G*H>>1)+720)%360;--H;)W.h=(W.h+G)%360,X.push(new C(W));return X},C.prototype.complement=function(){var H=this.toHsl();return H.h=(H.h+180)%360,new C(H)},C.prototype.monochromatic=function(H){H===void 0&&(H=6);for(var U=this.toHsv(),W=U.h,G=U.s,X=U.v,Z=[],Q=1/H;H--;)Z.push(new C({h:W,s:G,v:X})),X=(X+Q)%1;return Z},C.prototype.splitcomplement=function(){var H=this.toHsl(),U=H.h;return[this,new C({h:(U+72)%360,s:H.s,l:H.l}),new C({h:(U+216)%360,s:H.s,l:H.l})]},C.prototype.onBackground=function(H){var U=this.toRgb(),W=new C(H).toRgb(),G=U.a+W.a*(1-U.a);return new C({r:(U.r*U.a+W.r*W.a*(1-U.a))/G,g:(U.g*U.a+W.g*W.a*(1-U.a))/G,b:(U.b*U.a+W.b*W.a*(1-U.a))/G,a:G})},C.prototype.triad=function(){return this.polyad(3)},C.prototype.tetrad=function(){return this.polyad(4)},C.prototype.polyad=function(H){for(var U=this.toHsl(),W=U.h,G=[this],X=360/H,Z=1;Z<H;Z++)G.push(new C({h:(W+Z*X)%360,s:U.s,l:U.l}));return G},C.prototype.equals=function(H){return this.toRgbString()===new C(H).toRgbString()},C}(),hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(C){var H=C.r,U=C.g,W=C.b,G=rgbToHsv(H,U,W);return{h:G.h*360,s:G.s,v:G.v}}function toHex(C){var H=C.r,U=C.g,W=C.b;return"#".concat(rgbToHex(H,U,W,!1))}function mix$3(C,H,U){var W=U/100,G={r:(H.r-C.r)*W+C.r,g:(H.g-C.g)*W+C.g,b:(H.b-C.b)*W+C.b};return G}function getHue(C,H,U){var W;return Math.round(C.h)>=60&&Math.round(C.h)<=240?W=U?Math.round(C.h)-hueStep*H:Math.round(C.h)+hueStep*H:W=U?Math.round(C.h)+hueStep*H:Math.round(C.h)-hueStep*H,W<0?W+=360:W>=360&&(W-=360),W}function getSaturation(C,H,U){if(C.h===0&&C.s===0)return C.s;var W;return U?W=C.s-saturationStep*H:H===darkColorCount?W=C.s+saturationStep:W=C.s+saturationStep2*H,W>1&&(W=1),U&&H===lightColorCount&&W>.1&&(W=.1),W<.06&&(W=.06),Number(W.toFixed(2))}function getValue$5(C,H,U){var W;return U?W=C.v+brightnessStep1*H:W=C.v-brightnessStep2*H,W>1&&(W=1),Number(W.toFixed(2))}function generate$2(C){for(var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=[],W=inputToRGB(C),G=lightColorCount;G>0;G-=1){var X=toHsv(W),Z=toHex(inputToRGB({h:getHue(X,G,!0),s:getSaturation(X,G,!0),v:getValue$5(X,G,!0)}));U.push(Z)}U.push(toHex(W));for(var Q=1;Q<=darkColorCount;Q+=1){var ee=toHsv(W),ie=toHex(inputToRGB({h:getHue(ee,Q),s:getSaturation(ee,Q),v:getValue$5(ee,Q)}));U.push(ie)}return H.theme==="dark"?darkColorMap.map(function(te){var ne=te.index,ae=te.opacity,oe=toHex(mix$3(inputToRGB(H.backgroundColor||"#141414"),inputToRGB(U[ne]),ae*100));return oe}):U}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(C){presetPalettes[C]=generate$2(presetPrimaryColors[C]),presetPalettes[C].primary=presetPalettes[C][5],presetDarkPalettes[C]=generate$2(presetPrimaryColors[C],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[C].primary=presetDarkPalettes[C][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var C=document.createElement("style");return C.setAttribute("type","text/css"),C}function insertCss(C,H){if(H=H||{},C===void 0)throw new Error(usage);var U=H.prepend===!0?"prepend":"append",W=H.container!==void 0?H.container:document.querySelector("head"),G=containers.indexOf(W);G===-1&&(G=containers.push(W)-1,styleElements[G]={});var X;return styleElements[G]!==void 0&&styleElements[G][U]!==void 0?X=styleElements[G][U]:(X=styleElements[G][U]=createStyleElement(),U==="prepend"?W.insertBefore(X,W.childNodes[0]):W.appendChild(X)),C.charCodeAt(0)===65279&&(C=C.substr(1,C.length)),X.styleSheet?X.styleSheet.cssText+=C:X.textContent+=C,X}function _objectSpread$J(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$L(C,G,U[G])})}return C}function _defineProperty$L(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}function warning$1(C,H){}function isIconDefinition(C){return typeof C=="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&(typeof C.icon=="object"||typeof C.icon=="function")}function generate$1(C,H,U){return U?h$1(C.tag,_objectSpread$J({key:H},U,C.attrs),(C.children||[]).map(function(W,G){return generate$1(W,"".concat(H,"-").concat(C.tag,"-").concat(G))})):h$1(C.tag,_objectSpread$J({key:H},C.attrs),(C.children||[]).map(function(W,G){return generate$1(W,"".concat(H,"-").concat(C.tag,"-").concat(G))}))}function getSecondaryColor(C){return generate$2(C)[0]}function normalizeTwoToneColors(C){return C?Array.isArray(C)?C:[C]:[]}var svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},iconStyles=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,cssInjectedFlag=!1,useInsertStyles=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles;nextTick$1(function(){cssInjectedFlag||(typeof window<"u"&&window.document&&window.document.documentElement&&insertCss(H,{prepend:!0}),cssInjectedFlag=!0)})},_excluded$y=["icon","primaryColor","secondaryColor"];function _objectWithoutProperties$3(C,H){if(C==null)return{};var U=_objectWithoutPropertiesLoose$3(C,H),W,G;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G<X.length;G++)W=X[G],!(H.indexOf(W)>=0)&&(!Object.prototype.propertyIsEnumerable.call(C,W)||(U[W]=C[W]))}return U}function _objectWithoutPropertiesLoose$3(C,H){if(C==null)return{};var U={},W=Object.keys(C),G,X;for(X=0;X<W.length;X++)G=W[X],!(H.indexOf(G)>=0)&&(U[G]=C[G]);return U}function _objectSpread$I(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$K(C,G,U[G])})}return C}function _defineProperty$K(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(C){var H=C.primaryColor,U=C.secondaryColor;twoToneColorPalette.primaryColor=H,twoToneColorPalette.secondaryColor=U||getSecondaryColor(H),twoToneColorPalette.calculated=!!U}function getTwoToneColors(){return _objectSpread$I({},twoToneColorPalette)}var IconBase=function(H,U){var W=_objectSpread$I({},H,U.attrs),G=W.icon,X=W.primaryColor,Z=W.secondaryColor,Q=_objectWithoutProperties$3(W,_excluded$y),ee=twoToneColorPalette;if(X&&(ee={primaryColor:X,secondaryColor:Z||getSecondaryColor(X)}),useInsertStyles(),isIconDefinition(G),!isIconDefinition(G))return null;var ie=G;return ie&&typeof ie.icon=="function"&&(ie=_objectSpread$I({},ie,{icon:ie.icon(ee.primaryColor,ee.secondaryColor)})),generate$1(ie.icon,"svg-".concat(ie.name),_objectSpread$I({},Q,{"data-icon":ie.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};IconBase.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};IconBase.inheritAttrs=!1;IconBase.displayName="IconBase";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;const VueIcon=IconBase;function _slicedToArray$1(C,H){return _arrayWithHoles$1(C)||_iterableToArrayLimit$1(C,H)||_unsupportedIterableToArray$2(C,H)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(C,H){if(!!C){if(typeof C=="string")return _arrayLikeToArray$2(C,H);var U=Object.prototype.toString.call(C).slice(8,-1);if(U==="Object"&&C.constructor&&(U=C.constructor.name),U==="Map"||U==="Set")return Array.from(C);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return _arrayLikeToArray$2(C,H)}}function _arrayLikeToArray$2(C,H){(H==null||H>C.length)&&(H=C.length);for(var U=0,W=new Array(H);U<H;U++)W[U]=C[U];return W}function _iterableToArrayLimit$1(C,H){var U=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(U!=null){var W=[],G=!0,X=!1,Z,Q;try{for(U=U.call(C);!(G=(Z=U.next()).done)&&(W.push(Z.value),!(H&&W.length===H));G=!0);}catch(ee){X=!0,Q=ee}finally{try{!G&&U.return!=null&&U.return()}finally{if(X)throw Q}}return W}}function _arrayWithHoles$1(C){if(Array.isArray(C))return C}function setTwoToneColor(C){var H=normalizeTwoToneColors(C),U=_slicedToArray$1(H,2),W=U[0],G=U[1];return VueIcon.setTwoToneColors({primaryColor:W,secondaryColor:G})}function getTwoToneColor(){var C=VueIcon.getTwoToneColors();return C.calculated?[C.primaryColor,C.secondaryColor]:C.primaryColor}var _excluded$x=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _slicedToArray(C,H){return _arrayWithHoles(C)||_iterableToArrayLimit(C,H)||_unsupportedIterableToArray$1(C,H)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(C,H){if(!!C){if(typeof C=="string")return _arrayLikeToArray$1(C,H);var U=Object.prototype.toString.call(C).slice(8,-1);if(U==="Object"&&C.constructor&&(U=C.constructor.name),U==="Map"||U==="Set")return Array.from(C);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return _arrayLikeToArray$1(C,H)}}function _arrayLikeToArray$1(C,H){(H==null||H>C.length)&&(H=C.length);for(var U=0,W=new Array(H);U<H;U++)W[U]=C[U];return W}function _iterableToArrayLimit(C,H){var U=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(U!=null){var W=[],G=!0,X=!1,Z,Q;try{for(U=U.call(C);!(G=(Z=U.next()).done)&&(W.push(Z.value),!(H&&W.length===H));G=!0);}catch(ee){X=!0,Q=ee}finally{try{!G&&U.return!=null&&U.return()}finally{if(X)throw Q}}return W}}function _arrayWithHoles(C){if(Array.isArray(C))return C}function _objectSpread$H(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$J(C,G,U[G])})}return C}function _defineProperty$J(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}function _objectWithoutProperties$2(C,H){if(C==null)return{};var U=_objectWithoutPropertiesLoose$2(C,H),W,G;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G<X.length;G++)W=X[G],!(H.indexOf(W)>=0)&&(!Object.prototype.propertyIsEnumerable.call(C,W)||(U[W]=C[W]))}return U}function _objectWithoutPropertiesLoose$2(C,H){if(C==null)return{};var U={},W=Object.keys(C),G,X;for(X=0;X<W.length;X++)G=W[X],!(H.indexOf(G)>=0)&&(U[G]=C[G]);return U}setTwoToneColor("#1890ff");var Icon$2=function(H,U){var W,G=_objectSpread$H({},H,U.attrs),X=G.class,Z=G.icon,Q=G.spin,ee=G.rotate,ie=G.tabindex,te=G.twoToneColor,ne=G.onClick,ae=_objectWithoutProperties$2(G,_excluded$x),oe=(W={anticon:!0},_defineProperty$J(W,"anticon-".concat(Z.name),Boolean(Z.name)),_defineProperty$J(W,X,X),W),se=Q===""||!!Q||Z.name==="loading"?"anticon-spin":"",le=ie;le===void 0&&ne&&(le=-1,ae.tabindex=le);var ce=ee?{msTransform:"rotate(".concat(ee,"deg)"),transform:"rotate(".concat(ee,"deg)")}:void 0,ue=normalizeTwoToneColors(te),de=_slicedToArray(ue,2),ve=de[0],ge=de[1];return createVNode("span",_objectSpread$H({role:"img","aria-label":Z.name},ae,{onClick:ne,class:oe}),[createVNode(VueIcon,{class:se,icon:Z,primaryColor:ve,secondaryColor:ge,style:ce},null)])};Icon$2.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Icon$2.displayName="AntdIcon";Icon$2.inheritAttrs=!1;Icon$2.getTwoToneColor=getTwoToneColor;Icon$2.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$2;function _objectSpread$G(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$I(C,G,U[G])})}return C}function _defineProperty$I(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var LoadingOutlined=function(H,U){var W=_objectSpread$G({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$G({},W,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined";LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var ExclamationCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const ExclamationCircleFilledSvg=ExclamationCircleFilled$2;function _objectSpread$F(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$H(C,G,U[G])})}return C}function _defineProperty$H(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var ExclamationCircleFilled=function(H,U){var W=_objectSpread$F({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$F({},W,{icon:ExclamationCircleFilledSvg}),null)};ExclamationCircleFilled.displayName="ExclamationCircleFilled";ExclamationCircleFilled.inheritAttrs=!1;const ExclamationCircleFilled$1=ExclamationCircleFilled;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$E(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$G(C,G,U[G])})}return C}function _defineProperty$G(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CloseCircleFilled=function(H,U){var W=_objectSpread$E({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$E({},W,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled";CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CheckCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const CheckCircleFilledSvg=CheckCircleFilled$2;function _objectSpread$D(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$F(C,G,U[G])})}return C}function _defineProperty$F(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CheckCircleFilled=function(H,U){var W=_objectSpread$D({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$D({},W,{icon:CheckCircleFilledSvg}),null)};CheckCircleFilled.displayName="CheckCircleFilled";CheckCircleFilled.inheritAttrs=!1;const CheckCircleFilled$1=CheckCircleFilled;var InfoCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const InfoCircleFilledSvg=InfoCircleFilled$2;function _objectSpread$C(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$E(C,G,U[G])})}return C}function _defineProperty$E(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var InfoCircleFilled=function(H,U){var W=_objectSpread$C({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$C({},W,{icon:InfoCircleFilledSvg}),null)};InfoCircleFilled.displayName="InfoCircleFilled";InfoCircleFilled.inheritAttrs=!1;const InfoCircleFilled$1=InfoCircleFilled;var defaultDuration$1=3,defaultTop$1,messageInstance,key$1=1,localPrefixCls="",transitionName="move-up",hasTransitionName=!1,getContainer$1=function(){return document.body},maxCount$1,rtl$1=!1;function getKeyThenIncreaseKey(){return key$1++}function setMessageConfig(C){C.top!==void 0&&(defaultTop$1=C.top,messageInstance=null),C.duration!==void 0&&(defaultDuration$1=C.duration),C.prefixCls!==void 0&&(localPrefixCls=C.prefixCls),C.getContainer!==void 0&&(getContainer$1=C.getContainer,messageInstance=null),C.transitionName!==void 0&&(transitionName=C.transitionName,messageInstance=null,hasTransitionName=!0),C.maxCount!==void 0&&(maxCount$1=C.maxCount,messageInstance=null),C.rtl!==void 0&&(rtl$1=C.rtl)}function getMessageInstance(C,H){if(messageInstance){H(messageInstance);return}Notification$1.newInstance({appContext:C.appContext,prefixCls:C.prefixCls||localPrefixCls,rootPrefixCls:C.rootPrefixCls,transitionName,hasTransitionName,style:{top:defaultTop$1},getContainer:getContainer$1||C.getPopupContainer,maxCount:maxCount$1,name:"message"},function(U){if(messageInstance){H(messageInstance);return}messageInstance=U,H(U)})}var typeToIcon$1={info:InfoCircleFilled$1,success:CheckCircleFilled$1,error:CloseCircleFilled$1,warning:ExclamationCircleFilled$1,loading:LoadingOutlined$1};function notice$1(C){var H=C.duration!==void 0?C.duration:defaultDuration$1,U=C.key||getKeyThenIncreaseKey(),W=new Promise(function(X){var Z=function(){return typeof C.onClose=="function"&&C.onClose(),X(!0)};getMessageInstance(C,function(Q){Q.notice({key:U,duration:H,style:C.style||{},class:C.class,content:function(ie){var te,ne=ie.prefixCls,ae=typeToIcon$1[C.type],oe=ae?createVNode(ae,null,null):"",se=classNames("".concat(ne,"-custom-content"),(te={},_defineProperty$M(te,"".concat(ne,"-").concat(C.type),C.type),_defineProperty$M(te,"".concat(ne,"-rtl"),rtl$1===!0),te));return createVNode("div",{class:se},[typeof C.icon=="function"?C.icon():C.icon||oe,createVNode("span",null,[typeof C.content=="function"?C.content():C.content])])},onClose:Z,onClick:C.onClick})})}),G=function(){messageInstance&&messageInstance.removeNotice(U)};return G.then=function(X,Z){return W.then(X,Z)},G.promise=W,G}function isArgsProps(C){return Object.prototype.toString.call(C)==="[object Object]"&&!!C.content}var api$1={open:notice$1,config:setMessageConfig,destroy:function(H){if(messageInstance)if(H){var U=messageInstance,W=U.removeNotice;W(H)}else{var G=messageInstance,X=G.destroy;X(),messageInstance=null}}};function attachTypeApi(C,H){C[H]=function(U,W,G){return isArgsProps(U)?C.open(_objectSpread2$1(_objectSpread2$1({},U),{},{type:H})):(typeof W=="function"&&(G=W,W=void 0),C.open({content:U,duration:W,type:H,onClose:G}))}}["success","info","warning","error","loading"].forEach(function(C){return attachTypeApi(api$1,C)});api$1.warn=api$1.warning;const message$1=api$1;function asyncGeneratorStep(C,H,U,W,G,X,Z){try{var Q=C[X](Z),ee=Q.value}catch(ie){U(ie);return}Q.done?H(ee):Promise.resolve(ee).then(W,G)}function _asyncToGenerator(C){return function(){var H=this,U=arguments;return new Promise(function(W,G){var X=C.apply(H,U);function Z(ee){asyncGeneratorStep(X,W,G,Z,Q,"next",ee)}function Q(ee){asyncGeneratorStep(X,W,G,Z,Q,"throw",ee)}Z(void 0)})}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}function getAugmentedNamespace(C){var H=C.default;if(typeof H=="function"){var U=function(){return H.apply(this,arguments)};U.prototype=H.prototype}else U={};return Object.defineProperty(U,"__esModule",{value:!0}),Object.keys(C).forEach(function(W){var G=Object.getOwnPropertyDescriptor(C,W);Object.defineProperty(U,W,G.get?G:{enumerable:!0,get:function(){return C[W]}})}),U}var regeneratorRuntime$1={exports:{}},_typeof$2={exports:{}};(function(C){function H(U){return C.exports=H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},C.exports.__esModule=!0,C.exports.default=C.exports,H(U)}C.exports=H,C.exports.__esModule=!0,C.exports.default=C.exports})(_typeof$2);(function(C){var H=_typeof$2.exports.default;function U(){C.exports=U=function(){return W},C.exports.__esModule=!0,C.exports.default=C.exports;var W={},G=Object.prototype,X=G.hasOwnProperty,Z=Object.defineProperty||function(Te,xe,ke){Te[xe]=ke.value},Q=typeof Symbol=="function"?Symbol:{},ee=Q.iterator||"@@iterator",ie=Q.asyncIterator||"@@asyncIterator",te=Q.toStringTag||"@@toStringTag";function ne(Te,xe,ke){return Object.defineProperty(Te,xe,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Te[xe]}try{ne({},"")}catch{ne=function(ke,Ie,Ae){return ke[Ie]=Ae}}function ae(Te,xe,ke,Ie){var Ae=xe&&xe.prototype instanceof le?xe:le,Me=Object.create(Ae.prototype),Fe=new $e(Ie||[]);return Z(Me,"_invoke",{value:be(Te,ke,Fe)}),Me}function oe(Te,xe,ke){try{return{type:"normal",arg:Te.call(xe,ke)}}catch(Ie){return{type:"throw",arg:Ie}}}W.wrap=ae;var se={};function le(){}function ce(){}function ue(){}var de={};ne(de,ee,function(){return this});var ve=Object.getPrototypeOf,ge=ve&&ve(ve(we([])));ge&&ge!==G&&X.call(ge,ee)&&(de=ge);var he=ue.prototype=le.prototype=Object.create(de);function me(Te){["next","throw","return"].forEach(function(xe){ne(Te,xe,function(ke){return this._invoke(xe,ke)})})}function _e(Te,xe){function ke(Ae,Me,Fe,Be){var Ne=oe(Te[Ae],Te,Me);if(Ne.type!=="throw"){var Ve=Ne.arg,Le=Ve.value;return Le&&H(Le)=="object"&&X.call(Le,"__await")?xe.resolve(Le.__await).then(function(De){ke("next",De,Fe,Be)},function(De){ke("throw",De,Fe,Be)}):xe.resolve(Le).then(function(De){Ve.value=De,Fe(Ve)},function(De){return ke("throw",De,Fe,Be)})}Be(Ne.arg)}var Ie;Z(this,"_invoke",{value:function(Me,Fe){function Be(){return new xe(function(Ne,Ve){ke(Me,Fe,Ne,Ve)})}return Ie=Ie?Ie.then(Be,Be):Be()}})}function be(Te,xe,ke){var Ie="suspendedStart";return function(Ae,Me){if(Ie==="executing")throw new Error("Generator is already running");if(Ie==="completed"){if(Ae==="throw")throw Me;return Se()}for(ke.method=Ae,ke.arg=Me;;){var Fe=ke.delegate;if(Fe){var Be=pe(Fe,ke);if(Be){if(Be===se)continue;return Be}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(Ie==="suspendedStart")throw Ie="completed",ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);Ie="executing";var Ne=oe(Te,xe,ke);if(Ne.type==="normal"){if(Ie=ke.done?"completed":"suspendedYield",Ne.arg===se)continue;return{value:Ne.arg,done:ke.done}}Ne.type==="throw"&&(Ie="completed",ke.method="throw",ke.arg=Ne.arg)}}}function pe(Te,xe){var ke=xe.method,Ie=Te.iterator[ke];if(Ie===void 0)return xe.delegate=null,ke==="throw"&&Te.iterator.return&&(xe.method="return",xe.arg=void 0,pe(Te,xe),xe.method==="throw")||ke!=="return"&&(xe.method="throw",xe.arg=new TypeError("The iterator does not provide a '"+ke+"' method")),se;var Ae=oe(Ie,Te.iterator,xe.arg);if(Ae.type==="throw")return xe.method="throw",xe.arg=Ae.arg,xe.delegate=null,se;var Me=Ae.arg;return Me?Me.done?(xe[Te.resultName]=Me.value,xe.next=Te.nextLoc,xe.method!=="return"&&(xe.method="next",xe.arg=void 0),xe.delegate=null,se):Me:(xe.method="throw",xe.arg=new TypeError("iterator result is not an object"),xe.delegate=null,se)}function fe(Te){var xe={tryLoc:Te[0]};1 in Te&&(xe.catchLoc=Te[1]),2 in Te&&(xe.finallyLoc=Te[2],xe.afterLoc=Te[3]),this.tryEntries.push(xe)}function ye(Te){var xe=Te.completion||{};xe.type="normal",delete xe.arg,Te.completion=xe}function $e(Te){this.tryEntries=[{tryLoc:"root"}],Te.forEach(fe,this),this.reset(!0)}function we(Te){if(Te){var xe=Te[ee];if(xe)return xe.call(Te);if(typeof Te.next=="function")return Te;if(!isNaN(Te.length)){var ke=-1,Ie=function Ae(){for(;++ke<Te.length;)if(X.call(Te,ke))return Ae.value=Te[ke],Ae.done=!1,Ae;return Ae.value=void 0,Ae.done=!0,Ae};return Ie.next=Ie}}return{next:Se}}function Se(){return{value:void 0,done:!0}}return ce.prototype=ue,Z(he,"constructor",{value:ue,configurable:!0}),Z(ue,"constructor",{value:ce,configurable:!0}),ce.displayName=ne(ue,te,"GeneratorFunction"),W.isGeneratorFunction=function(Te){var xe=typeof Te=="function"&&Te.constructor;return!!xe&&(xe===ce||(xe.displayName||xe.name)==="GeneratorFunction")},W.mark=function(Te){return Object.setPrototypeOf?Object.setPrototypeOf(Te,ue):(Te.__proto__=ue,ne(Te,te,"GeneratorFunction")),Te.prototype=Object.create(he),Te},W.awrap=function(Te){return{__await:Te}},me(_e.prototype),ne(_e.prototype,ie,function(){return this}),W.AsyncIterator=_e,W.async=function(Te,xe,ke,Ie,Ae){Ae===void 0&&(Ae=Promise);var Me=new _e(ae(Te,xe,ke,Ie),Ae);return W.isGeneratorFunction(xe)?Me:Me.next().then(function(Fe){return Fe.done?Fe.value:Me.next()})},me(he),ne(he,te,"Generator"),ne(he,ee,function(){return this}),ne(he,"toString",function(){return"[object Generator]"}),W.keys=function(Te){var xe=Object(Te),ke=[];for(var Ie in xe)ke.push(Ie);return ke.reverse(),function Ae(){for(;ke.length;){var Me=ke.pop();if(Me in xe)return Ae.value=Me,Ae.done=!1,Ae}return Ae.done=!0,Ae}},W.values=we,$e.prototype={constructor:$e,reset:function(xe){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ye),!xe)for(var ke in this)ke.charAt(0)==="t"&&X.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=void 0)},stop:function(){this.done=!0;var xe=this.tryEntries[0].completion;if(xe.type==="throw")throw xe.arg;return this.rval},dispatchException:function(xe){if(this.done)throw xe;var ke=this;function Ie(Ve,Le){return Fe.type="throw",Fe.arg=xe,ke.next=Ve,Le&&(ke.method="next",ke.arg=void 0),!!Le}for(var Ae=this.tryEntries.length-1;Ae>=0;--Ae){var Me=this.tryEntries[Ae],Fe=Me.completion;if(Me.tryLoc==="root")return Ie("end");if(Me.tryLoc<=this.prev){var Be=X.call(Me,"catchLoc"),Ne=X.call(Me,"finallyLoc");if(Be&&Ne){if(this.prev<Me.catchLoc)return Ie(Me.catchLoc,!0);if(this.prev<Me.finallyLoc)return Ie(Me.finallyLoc)}else if(Be){if(this.prev<Me.catchLoc)return Ie(Me.catchLoc,!0)}else{if(!Ne)throw new Error("try statement without catch or finally");if(this.prev<Me.finallyLoc)return Ie(Me.finallyLoc)}}}},abrupt:function(xe,ke){for(var Ie=this.tryEntries.length-1;Ie>=0;--Ie){var Ae=this.tryEntries[Ie];if(Ae.tryLoc<=this.prev&&X.call(Ae,"finallyLoc")&&this.prev<Ae.finallyLoc){var Me=Ae;break}}Me&&(xe==="break"||xe==="continue")&&Me.tryLoc<=ke&&ke<=Me.finallyLoc&&(Me=null);var Fe=Me?Me.completion:{};return Fe.type=xe,Fe.arg=ke,Me?(this.method="next",this.next=Me.finallyLoc,se):this.complete(Fe)},complete:function(xe,ke){if(xe.type==="throw")throw xe.arg;return xe.type==="break"||xe.type==="continue"?this.next=xe.arg:xe.type==="return"?(this.rval=this.arg=xe.arg,this.method="return",this.next="end"):xe.type==="normal"&&ke&&(this.next=ke),se},finish:function(xe){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Ie=this.tryEntries[ke];if(Ie.finallyLoc===xe)return this.complete(Ie.completion,Ie.afterLoc),ye(Ie),se}},catch:function(xe){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Ie=this.tryEntries[ke];if(Ie.tryLoc===xe){var Ae=Ie.completion;if(Ae.type==="throw"){var Me=Ae.arg;ye(Ie)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(xe,ke,Ie){return this.delegate={iterator:we(xe),resultName:ke,nextLoc:Ie},this.method==="next"&&(this.arg=void 0),se}},W}C.exports=U,C.exports.__esModule=!0,C.exports.default=C.exports})(regeneratorRuntime$1);var runtime=regeneratorRuntime$1.exports(),regenerator=runtime;try{regeneratorRuntime=runtime}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}const _regeneratorRuntime=regenerator;var CheckCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const CheckCircleOutlinedSvg=CheckCircleOutlined$2;function _objectSpread$B(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$D(C,G,U[G])})}return C}function _defineProperty$D(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CheckCircleOutlined=function(H,U){var W=_objectSpread$B({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$B({},W,{icon:CheckCircleOutlinedSvg}),null)};CheckCircleOutlined.displayName="CheckCircleOutlined";CheckCircleOutlined.inheritAttrs=!1;const CheckCircleOutlined$1=CheckCircleOutlined;var InfoCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const InfoCircleOutlinedSvg=InfoCircleOutlined$2;function _objectSpread$A(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$C(C,G,U[G])})}return C}function _defineProperty$C(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var InfoCircleOutlined=function(H,U){var W=_objectSpread$A({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$A({},W,{icon:InfoCircleOutlinedSvg}),null)};InfoCircleOutlined.displayName="InfoCircleOutlined";InfoCircleOutlined.inheritAttrs=!1;const InfoCircleOutlined$1=InfoCircleOutlined;var CloseCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};const CloseCircleOutlinedSvg=CloseCircleOutlined$2;function _objectSpread$z(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$B(C,G,U[G])})}return C}function _defineProperty$B(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CloseCircleOutlined=function(H,U){var W=_objectSpread$z({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$z({},W,{icon:CloseCircleOutlinedSvg}),null)};CloseCircleOutlined.displayName="CloseCircleOutlined";CloseCircleOutlined.inheritAttrs=!1;const CloseCircleOutlined$1=CloseCircleOutlined;var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;function _objectSpread$y(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$A(C,G,U[G])})}return C}function _defineProperty$A(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var ExclamationCircleOutlined=function(H,U){var W=_objectSpread$y({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$y({},W,{icon:ExclamationCircleOutlinedSvg}),null)};ExclamationCircleOutlined.displayName="ExclamationCircleOutlined";ExclamationCircleOutlined.inheritAttrs=!1;const ExclamationCircleOutlined$1=ExclamationCircleOutlined;var CloseOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$x(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$z(C,G,U[G])})}return C}function _defineProperty$z(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CloseOutlined=function(H,U){var W=_objectSpread$x({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$x({},W,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined";CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var notificationInstance={},defaultDuration=4.5,defaultTop="24px",defaultBottom="24px",defaultPrefixCls$1="",defaultPlacement="topRight",defaultGetContainer=function(){return document.body},defaultCloseIcon=null,rtl=!1,maxCount;function setNotificationConfig(C){var H=C.duration,U=C.placement,W=C.bottom,G=C.top,X=C.getContainer,Z=C.closeIcon,Q=C.prefixCls;Q!==void 0&&(defaultPrefixCls$1=Q),H!==void 0&&(defaultDuration=H),U!==void 0&&(defaultPlacement=U),W!==void 0&&(defaultBottom=typeof W=="number"?"".concat(W,"px"):W),G!==void 0&&(defaultTop=typeof G=="number"?"".concat(G,"px"):G),X!==void 0&&(defaultGetContainer=X),Z!==void 0&&(defaultCloseIcon=Z),C.rtl!==void 0&&(rtl=C.rtl),C.maxCount!==void 0&&(maxCount=C.maxCount)}function getPlacementStyle(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:defaultTop,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultBottom,W;switch(C){case"topLeft":W={left:"0px",top:H,bottom:"auto"};break;case"topRight":W={right:"0px",top:H,bottom:"auto"};break;case"bottomLeft":W={left:"0px",top:"auto",bottom:U};break;default:W={right:"0px",top:"auto",bottom:U};break}return W}function getNotificationInstance(C,H){var U=C.prefixCls,W=C.placement,G=W===void 0?defaultPlacement:W,X=C.getContainer,Z=X===void 0?defaultGetContainer:X,Q=C.top,ee=C.bottom,ie=C.closeIcon,te=ie===void 0?defaultCloseIcon:ie,ne=C.appContext,ae=globalConfig(),oe=ae.getPrefixCls,se=oe("notification",U||defaultPrefixCls$1),le="".concat(se,"-").concat(G,"-").concat(rtl),ce=notificationInstance[le];if(ce){Promise.resolve(ce).then(function(de){H(de)});return}var ue=classNames("".concat(se,"-").concat(G),_defineProperty$M({},"".concat(se,"-rtl"),rtl===!0));Notification$1.newInstance({name:"notification",prefixCls:U||defaultPrefixCls$1,class:ue,style:getPlacementStyle(G,Q,ee),appContext:ne,getContainer:Z,closeIcon:function(ve){var ge=ve.prefixCls,he=createVNode("span",{class:"".concat(ge,"-close-x")},[renderHelper(te,{},createVNode(CloseOutlined$1,{class:"".concat(ge,"-close-icon")},null))]);return he},maxCount,hasTransitionName:!0},function(de){notificationInstance[le]=de,H(de)})}var typeToIcon={success:CheckCircleOutlined$1,info:InfoCircleOutlined$1,error:CloseCircleOutlined$1,warning:ExclamationCircleOutlined$1};function notice(C){var H=C.icon,U=C.type,W=C.description,G=C.message,X=C.btn,Z=C.duration===void 0?defaultDuration:C.duration;getNotificationInstance(C,function(Q){Q.notice({content:function(ie){var te=ie.prefixCls,ne="".concat(te,"-notice"),ae=null;if(H)ae=function(){return createVNode("span",{class:"".concat(ne,"-icon")},[renderHelper(H)])};else if(U){var oe=typeToIcon[U];ae=function(){return createVNode(oe,{class:"".concat(ne,"-icon ").concat(ne,"-icon-").concat(U)},null)}}return createVNode("div",{class:ae?"".concat(ne,"-with-icon"):""},[ae&&ae(),createVNode("div",{class:"".concat(ne,"-message")},[!W&&ae?createVNode("span",{class:"".concat(ne,"-message-single-line-auto-margin")},null):null,renderHelper(G)]),createVNode("div",{class:"".concat(ne,"-description")},[renderHelper(W)]),X?createVNode("span",{class:"".concat(ne,"-btn")},[renderHelper(X)]):null])},duration:Z,closable:!0,onClose:C.onClose,onClick:C.onClick,key:C.key,style:C.style||{},class:C.class})})}var api={open:notice,close:function(H){Object.keys(notificationInstance).forEach(function(U){return Promise.resolve(notificationInstance[U]).then(function(W){W.removeNotice(H)})})},config:setNotificationConfig,destroy:function(){Object.keys(notificationInstance).forEach(function(H){Promise.resolve(notificationInstance[H]).then(function(U){U.destroy()}),delete notificationInstance[H]})}},iconTypes=["success","info","warning","error"];iconTypes.forEach(function(C){api[C]=function(H){return api.open(_objectSpread2$1(_objectSpread2$1({},H),{},{type:C}))}});api.warn=api.warning;const notification=api;function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var MARK_KEY="vc-util-key";function getMark(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=C.mark;return H?H.startsWith("data-")?H:"data-".concat(H):MARK_KEY}function getContainer(C){if(C.attachTo)return C.attachTo;var H=document.querySelector("head");return H||document.body}function injectCSS(C){var H,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var W=document.createElement("style");if((H=U.csp)!==null&&H!==void 0&&H.nonce){var G;W.nonce=(G=U.csp)===null||G===void 0?void 0:G.nonce}W.innerHTML=C;var X=getContainer(U),Z=X.firstChild;return U.prepend&&X.prepend?X.prepend(W):U.prepend&&Z?X.insertBefore(W,Z):X.appendChild(W),W}var containerCache=new Map;function findExistNode(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=getContainer(H);return Array.from(containerCache.get(U).children).find(function(W){return W.tagName==="STYLE"&&W.getAttribute(getMark(H))===C})}function updateCSS(C,H){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=getContainer(U);if(!containerCache.has(W)){var G=injectCSS("",U),X=G.parentNode;containerCache.set(W,X),X.removeChild(G)}var Z=findExistNode(H,U);if(Z){var Q,ee;if((Q=U.csp)!==null&&Q!==void 0&&Q.nonce&&Z.nonce!==((ee=U.csp)===null||ee===void 0?void 0:ee.nonce)){var ie;Z.nonce=(ie=U.csp)===null||ie===void 0?void 0:ie.nonce}return Z.innerHTML!==C&&(Z.innerHTML=C),Z}var te=injectCSS(C,U);return te.setAttribute(getMark(U),H),te}const devWarning=function(C,H,U){warningOnce(C,"[ant-design-vue: ".concat(H,"] ").concat(U))};var dynamicStyleMark="-ant-".concat(Date.now(),"-").concat(Math.random());function registerTheme(C,H){var U={},W=function(te,ne){var ae=te.clone();return ae=(ne==null?void 0:ne(ae))||ae,ae.toRgbString()},G=function(te,ne){var ae=new TinyColor(te),oe=generate$2(ae.toRgbString());U["".concat(ne,"-color")]=W(ae),U["".concat(ne,"-color-disabled")]=oe[1],U["".concat(ne,"-color-hover")]=oe[4],U["".concat(ne,"-color-active")]=oe[6],U["".concat(ne,"-color-outline")]=ae.clone().setAlpha(.2).toRgbString(),U["".concat(ne,"-color-deprecated-bg")]=oe[1],U["".concat(ne,"-color-deprecated-border")]=oe[3]};if(H.primaryColor){G(H.primaryColor,"primary");var X=new TinyColor(H.primaryColor),Z=generate$2(X.toRgbString());Z.forEach(function(ie,te){U["primary-".concat(te+1)]=ie}),U["primary-color-deprecated-l-35"]=W(X,function(ie){return ie.lighten(35)}),U["primary-color-deprecated-l-20"]=W(X,function(ie){return ie.lighten(20)}),U["primary-color-deprecated-t-20"]=W(X,function(ie){return ie.tint(20)}),U["primary-color-deprecated-t-50"]=W(X,function(ie){return ie.tint(50)}),U["primary-color-deprecated-f-12"]=W(X,function(ie){return ie.setAlpha(ie.getAlpha()*.12)});var Q=new TinyColor(Z[0]);U["primary-color-active-deprecated-f-30"]=W(Q,function(ie){return ie.setAlpha(ie.getAlpha()*.3)}),U["primary-color-active-deprecated-d-02"]=W(Q,function(ie){return ie.darken(2)})}H.successColor&&G(H.successColor,"success"),H.warningColor&&G(H.warningColor,"warning"),H.errorColor&&G(H.errorColor,"error"),H.infoColor&&G(H.infoColor,"info");var ee=Object.keys(U).map(function(ie){return"--".concat(C,"-").concat(ie,": ").concat(U[ie],";")});canUseDom()?updateCSS(`
|
||
:root {
|
||
`.concat(ee.join(`
|
||
`),`
|
||
}
|
||
`),"".concat(dynamicStyleMark,"-dynamic-theme")):devWarning(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var GlobalFormContextKey=Symbol("GlobalFormContextKey"),useProvideGlobalForm=function(H){provide(GlobalFormContextKey,H)},useInjectGlobalForm=function(){return inject(GlobalFormContextKey,{validateMessages:computed(function(){})})},configProviderProps=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},defaultPrefixCls="ant";function getGlobalPrefixCls(){return globalConfigForApi.prefixCls||defaultPrefixCls}var globalConfigByCom=reactive({}),globalConfigBySet=reactive({}),globalConfigForApi=reactive({});watchEffect(function(){_extends$1(globalConfigForApi,globalConfigByCom,globalConfigBySet),globalConfigForApi.prefixCls=getGlobalPrefixCls(),globalConfigForApi.getPrefixCls=function(C,H){return H||(C?"".concat(globalConfigForApi.prefixCls,"-").concat(C):globalConfigForApi.prefixCls)},globalConfigForApi.getRootPrefixCls=function(C,H){return C||(globalConfigForApi.prefixCls?globalConfigForApi.prefixCls:H&&H.includes("-")?H.replace(/^(.*)-[^-]*$/,"$1"):getGlobalPrefixCls())}});var stopWatchEffect,setGlobalConfig=function(H){stopWatchEffect&&stopWatchEffect(),stopWatchEffect=watchEffect(function(){_extends$1(globalConfigBySet,reactive(H)),_extends$1(globalConfigForApi,reactive(H))}),H.theme&®isterTheme(getGlobalPrefixCls(),H.theme)},globalConfig=function(){return{getPrefixCls:function(U,W){return W||(U?"".concat(getGlobalPrefixCls(),"-").concat(U):getGlobalPrefixCls())},getRootPrefixCls:function(U,W){return U||(globalConfigForApi.prefixCls?globalConfigForApi.prefixCls:W&&W.includes("-")?W.replace(/^(.*)-[^-]*$/,"$1"):getGlobalPrefixCls())}}},ConfigProvider=defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:configProviderProps(),setup:function(H,U){var W=U.slots,G=function(ne,ae){var oe=H.prefixCls,se=oe===void 0?"ant":oe;return ae||(ne?"".concat(se,"-").concat(ne):se)},X=function(ne){var ae=H.renderEmpty||W.renderEmpty||renderEmpty;return ae(ne)},Z=function(ne,ae){var oe=H.prefixCls;if(ae)return ae;var se=oe||G("");return ne?"".concat(se,"-").concat(ne):se},Q=reactive(_objectSpread2$1(_objectSpread2$1({},H),{},{getPrefixCls:Z,renderEmpty:X}));Object.keys(H).forEach(function(te){watch(function(){return H[te]},function(){Q[te]=H[te]})}),H.notUpdateGlobalConfig||(_extends$1(globalConfigByCom,Q),watch(Q,function(){_extends$1(globalConfigByCom,Q)}));var ee=computed(function(){var te={};if(H.locale){var ne,ae;te=((ne=H.locale.Form)===null||ne===void 0?void 0:ne.defaultValidateMessages)||((ae=defaultLocale$2.Form)===null||ae===void 0?void 0:ae.defaultValidateMessages)||{}}return H.form&&H.form.validateMessages&&(te=_objectSpread2$1(_objectSpread2$1({},te),H.form.validateMessages)),te});useProvideGlobalForm({validateMessages:ee}),provide("configProvider",Q);var ie=function(ne){var ae;return createVNode(LocaleProvider$1,{locale:H.locale||ne,ANT_MARK__:ANT_MARK},{default:function(){return[(ae=W.default)===null||ae===void 0?void 0:ae.call(W)]}})};return watchEffect(function(){H.direction&&(message$1.config({rtl:H.direction==="rtl"}),notification.config({rtl:H.direction==="rtl"}))}),function(){return createVNode(LocaleReceiver,{children:function(ne,ae,oe){return ie(oe)}},null)}}}),defaultConfigProvider=reactive({getPrefixCls:function(H,U){return U||(H?"ant-".concat(H):"ant")},renderEmpty,direction:"ltr"});ConfigProvider.config=setGlobalConfig;ConfigProvider.install=function(C){C.component(ConfigProvider.name,ConfigProvider)};const __unplugin_components_1$4=ConfigProvider,useConfigInject=function(C,H){var U=inject("configProvider",defaultConfigProvider),W=computed(function(){return U.getPrefixCls(C,H.prefixCls)}),G=computed(function(){var de;return(de=H.direction)!==null&&de!==void 0?de:U.direction}),X=computed(function(){return U.getPrefixCls()}),Z=computed(function(){return U.autoInsertSpaceInButton}),Q=computed(function(){return U.renderEmpty}),ee=computed(function(){return U.space}),ie=computed(function(){return U.pageHeader}),te=computed(function(){return U.form}),ne=computed(function(){return H.getTargetContainer||U.getTargetContainer}),ae=computed(function(){return H.getPopupContainer||U.getPopupContainer}),oe=computed(function(){var de;return(de=H.dropdownMatchSelectWidth)!==null&&de!==void 0?de:U.dropdownMatchSelectWidth}),se=computed(function(){return(H.virtual===void 0?U.virtual!==!1:H.virtual!==!1)&&oe.value!==!1}),le=computed(function(){return H.size||U.componentSize}),ce=computed(function(){var de;return H.autocomplete||((de=U.input)===null||de===void 0?void 0:de.autocomplete)}),ue=computed(function(){return U.csp});return{configProvider:U,prefixCls:W,direction:G,size:le,getTargetContainer:ne,getPopupContainer:ae,space:ee,pageHeader:ie,form:te,autoInsertSpaceInButton:Z,renderEmpty:Q,virtual:se,dropdownMatchSelectWidth:oe,rootPrefixCls:X,getPrefixCls:U.getPrefixCls,autocomplete:ce,csp:ue}};function omit$2(C,H){for(var U=_extends$1({},C),W=0;W<H.length;W+=1){var G=H[W];delete U[G]}return U}function isWindow$1(C){return C!=null&&C===C.window}function getScroll$2(C,H){if(typeof window>"u")return 0;var U=H?"scrollTop":"scrollLeft",W=0;if(isWindow$1(C)?W=C[H?"pageYOffset":"pageXOffset"]:C instanceof Document?W=C.documentElement[U]:C&&(W=C[U]),C&&!isWindow$1(C)&&typeof W!="number"){var G;W=(G=(C.ownerDocument||C).documentElement)===null||G===void 0?void 0:G[U]}return W}function easeInOutCubic(C,H,U,W){var G=U-H;return C/=W/2,C<1?G/2*C*C*C+H:G/2*((C-=2)*C*C+2)+H}function scrollTo(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=H.getContainer,W=U===void 0?function(){return window}:U,G=H.callback,X=H.duration,Z=X===void 0?450:X,Q=W(),ee=getScroll$2(Q,!0),ie=Date.now(),te=function ne(){var ae=Date.now(),oe=ae-ie,se=easeInOutCubic(oe>Z?Z:oe,ee,C,Z);isWindow$1(Q)?Q.scrollTo(window.pageXOffset,se):Q instanceof HTMLDocument||Q.constructor.name==="HTMLDocument"?Q.documentElement.scrollTop=se:Q.scrollTop=se,oe<Z?wrapperRaf(ne):typeof G=="function"&&G()};wrapperRaf(te)}function _toArray(C){return _arrayWithHoles$2(C)||_iterableToArray$1(C)||_unsupportedIterableToArray$3(C)||_nonIterableRest$2()}function getKey$1(C,H){var U=C.key,W;return"value"in C&&(W=C.value),U!=null?U:W!==void 0?W:"rc-index-key-".concat(H)}function fillFieldNames$1(C,H){var U=C||{},W=U.label,G=U.value,X=U.options;return{label:W||(H?"children":"label"),value:G||"value",options:X||"options"}}function flattenOptions(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=H.fieldNames,W=H.childrenAsData,G=[],X=fillFieldNames$1(U,!1),Z=X.label,Q=X.value,ee=X.options;function ie(te,ne){te.forEach(function(ae){var oe=ae[Z];if(ne||!(ee in ae)){var se=ae[Q];G.push({key:getKey$1(ae,G.length),groupOption:ne,data:ae,label:oe,value:se})}else{var le=oe;le===void 0&&W&&(le=ae.label),G.push({key:getKey$1(ae,G.length),group:!0,data:ae,label:le}),ie(ae[ee],!0)}})}return ie(C,!1),G}function injectPropsWithOption(C){var H=_objectSpread2$1({},C);return"props"in H||Object.defineProperty(H,"props",{get:function(){return H}}),H}function getSeparatedContent(C,H){if(!H||!H.length)return null;var U=!1;function W(X,Z){var Q=_toArray(Z),ee=Q[0],ie=Q.slice(1);if(!ee)return[X];var te=X.split(ee);return U=U||te.length>1,te.reduce(function(ne,ae){return[].concat(_toConsumableArray$1(ne),_toConsumableArray$1(W(ae,ie)))},[]).filter(function(ne){return ne})}var G=W(C,H);return U?G:null}function contains(C,H){return C?C.contains(H):!1}var availablePrefixs=["moz","ms","webkit"];function requestAnimationFramePolyfill(){var C=0;return function(H){var U=new Date().getTime(),W=Math.max(0,16-(U-C)),G=window.setTimeout(function(){H(U+W)},W);return C=U+W,G}}function getRequestAnimationFrame(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var C=availablePrefixs.filter(function(H){return"".concat(H,"RequestAnimationFrame")in window})[0];return C?window["".concat(C,"RequestAnimationFrame")]:requestAnimationFramePolyfill()}function cancelRequestAnimationFrame(C){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(C);var H=availablePrefixs.filter(function(U){return"".concat(U,"CancelAnimationFrame")in window||"".concat(U,"CancelRequestAnimationFrame")in window})[0];return H?(window["".concat(H,"CancelAnimationFrame")]||window["".concat(H,"CancelRequestAnimationFrame")]).call(this,C):clearTimeout(C)}var raf=getRequestAnimationFrame(),cancelAnimationTimeout=function(H){return cancelRequestAnimationFrame(H.id)},requestAnimationTimeout=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=Date.now();function G(){Date.now()-W>=U?H.call():X.id=raf(G)}var X={id:raf(G)};return X},innerProps={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},mobileProps=_objectSpread2$1(_objectSpread2$1({},innerProps),{},{mobile:{type:Object}}),popupProps=_objectSpread2$1(_objectSpread2$1({},innerProps),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function getMotion(C){var H=C.prefixCls,U=C.animation,W=C.transitionName;return U?{name:"".concat(H,"-").concat(U)}:W?{name:W}:{}}function Mask$1(C){var H=C.prefixCls,U=C.visible,W=C.zIndex,G=C.mask,X=C.maskAnimation,Z=C.maskTransitionName;if(!G)return null;var Q={};return(Z||X)&&(Q=getMotion({prefixCls:H,transitionName:Z,animation:X})),createVNode(Transition$1,_objectSpread2$1({appear:!0},Q),{default:function(){return[withDirectives(createVNode("div",{style:{zIndex:W},class:"".concat(H,"-mask")},null),[[resolveDirective("if"),U]])]}})}Mask$1.displayName="Mask";const MobilePopupInner=defineComponent({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:mobileProps,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(H,U){var W=U.expose,G=U.slots,X=ref();return W({forceAlign:function(){},getElement:function(){return X.value}}),function(){var Z,Q=H.zIndex,ee=H.visible,ie=H.prefixCls,te=H.mobile;te=te===void 0?{}:te;var ne=te.popupClassName,ae=te.popupStyle,oe=te.popupMotion,se=oe===void 0?{}:oe,le=te.popupRender,ce=_objectSpread2$1({zIndex:Q},ae),ue=flattenChildren((Z=G.default)===null||Z===void 0?void 0:Z.call(G));ue.length>1&&(ue=createVNode("div",{class:"".concat(ie,"-content")},[ue])),le&&(ue=le(ue));var de=classNames(ie,ne);return createVNode(Transition$1,_objectSpread2$1({ref:X},se),{default:function(){return[ee?createVNode("div",{class:de,style:ce},[ue]):null]}})}}});var StatusQueue=["measure","align",null,"motion"];const useVisibleStatus=function(C,H){var U=ref(null),W=ref(),G=ref(!1);function X(ee){G.value||(U.value=ee)}function Z(){wrapperRaf.cancel(W.value)}function Q(ee){Z(),W.value=wrapperRaf(function(){var ie=U.value;switch(U.value){case"align":ie="motion";break;case"motion":ie="stable";break}X(ie),ee==null||ee()})}return watch(C,function(){X("measure")},{immediate:!0,flush:"post"}),onMounted(function(){watch(U,function(){switch(U.value){case"measure":H();break}U.value&&(W.value=wrapperRaf(_asyncToGenerator(_regeneratorRuntime.mark(function ee(){var ie,te;return _regeneratorRuntime.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:ie=StatusQueue.indexOf(U.value),te=StatusQueue[ie+1],te&&ie!==-1&&X(te);case 3:case"end":return ae.stop()}},ee)}))))},{immediate:!0,flush:"post"})}),onBeforeUnmount(function(){G.value=!0,Z()}),[U,Q]},useStretchStyle=function(C){var H=ref({width:0,height:0});function U(G){H.value={width:G.offsetWidth,height:G.offsetHeight}}var W=computed(function(){var G={};if(C.value){var X=H.value,Z=X.width,Q=X.height;C.value.indexOf("height")!==-1&&Q?G.height="".concat(Q,"px"):C.value.indexOf("minHeight")!==-1&&Q&&(G.minHeight="".concat(Q,"px")),C.value.indexOf("width")!==-1&&Z?G.width="".concat(Z,"px"):C.value.indexOf("minWidth")!==-1&&Z&&(G.minWidth="".concat(Z,"px"))}return G});return[W,U]};function ownKeys(C,H){var U=Object.keys(C);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(C);H&&(W=W.filter(function(G){return Object.getOwnPropertyDescriptor(C,G).enumerable})),U.push.apply(U,W)}return U}function _objectSpread2(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?arguments[H]:{};H%2?ownKeys(Object(U),!0).forEach(function(W){_defineProperty$y(C,W,U[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(U)):ownKeys(Object(U)).forEach(function(W){Object.defineProperty(C,W,Object.getOwnPropertyDescriptor(U,W))})}return C}function _typeof$1(C){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_typeof$1(C)}function _defineProperty$y(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var C=document.createElement("p").style,H="Transform";for(var U in jsCssMap)U+H in C&&(vendorPrefix=U);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(C,H){var U=getTransitionName();U&&(C.style[U]=H,U!=="transitionProperty"&&(C.style.transitionProperty=H))}function setTransform(C,H){var U=getTransformName();U&&(C.style[U]=H,U!=="transform"&&(C.style.transform=H))}function getTransitionProperty(C){return C.style.transitionProperty||C.style[getTransitionName()]}function getTransformXY(C){var H=window.getComputedStyle(C,null),U=H.getPropertyValue("transform")||H.getPropertyValue(getTransformName());if(U&&U!=="none"){var W=U.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(W[12]||W[4],0),y:parseFloat(W[13]||W[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(C,H){var U=window.getComputedStyle(C,null),W=U.getPropertyValue("transform")||U.getPropertyValue(getTransformName());if(W&&W!=="none"){var G,X=W.match(matrix2d);if(X)X=X[1],G=X.split(",").map(function(Q){return parseFloat(Q,10)}),G[4]=H.x,G[5]=H.y,setTransform(C,"matrix(".concat(G.join(","),")"));else{var Z=W.match(matrix3d)[1];G=Z.split(",").map(function(Q){return parseFloat(Q,10)}),G[12]=H.x,G[13]=H.y,setTransform(C,"matrix3d(".concat(G.join(","),")"))}}else setTransform(C,"translateX(".concat(H.x,"px) translateY(").concat(H.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(C){var H=C.style.display;C.style.display="none",C.offsetHeight,C.style.display=H}function css(C,H,U){var W=U;if(_typeof$1(H)==="object"){for(var G in H)H.hasOwnProperty(G)&&css(C,G,H[G]);return}if(typeof W<"u"){typeof W=="number"&&(W="".concat(W,"px")),C.style[H]=W;return}return getComputedStyleX(C,H)}function getClientPosition(C){var H,U,W,G=C.ownerDocument,X=G.body,Z=G&&G.documentElement;return H=C.getBoundingClientRect(),U=Math.floor(H.left),W=Math.floor(H.top),U-=Z.clientLeft||X.clientLeft||0,W-=Z.clientTop||X.clientTop||0,{left:U,top:W}}function getScroll$1(C,H){var U=C["page".concat(H?"Y":"X","Offset")],W="scroll".concat(H?"Top":"Left");if(typeof U!="number"){var G=C.document;U=G.documentElement[W],typeof U!="number"&&(U=G.body[W])}return U}function getScrollLeft(C){return getScroll$1(C)}function getScrollTop(C){return getScroll$1(C,!0)}function getOffset$2(C){var H=getClientPosition(C),U=C.ownerDocument,W=U.defaultView||U.parentWindow;return H.left+=getScrollLeft(W),H.top+=getScrollTop(W),H}function isWindow(C){return C!=null&&C==C.window}function getDocument(C){return isWindow(C)?C.document:C.nodeType===9?C:C.ownerDocument}function _getComputedStyle(C,H,U){var W=U,G="",X=getDocument(C);return W=W||X.defaultView.getComputedStyle(C,null),W&&(G=W.getPropertyValue(H)||W[H]),G}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(C,H){var U=C[CURRENT_STYLE]&&C[CURRENT_STYLE][H];if(_RE_NUM_NO_PX.test(U)&&!RE_POS.test(H)){var W=C.style,G=W[LEFT],X=C[RUNTIME_STYLE][LEFT];C[RUNTIME_STYLE][LEFT]=C[CURRENT_STYLE][LEFT],W[LEFT]=H==="fontSize"?"1em":U||0,U=W.pixelLeft+PX,W[LEFT]=G,C[RUNTIME_STYLE][LEFT]=X}return U===""?"auto":U}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(C,H){return C==="left"?H.useCssRight?"right":C:H.useCssBottom?"bottom":C}function oppositeOffsetDirection(C){if(C==="left")return"right";if(C==="right")return"left";if(C==="top")return"bottom";if(C==="bottom")return"top"}function setLeftTop(C,H,U){css(C,"position")==="static"&&(C.style.position="relative");var W=-999,G=-999,X=getOffsetDirection("left",U),Z=getOffsetDirection("top",U),Q=oppositeOffsetDirection(X),ee=oppositeOffsetDirection(Z);X!=="left"&&(W=999),Z!=="top"&&(G=999);var ie="",te=getOffset$2(C);("left"in H||"top"in H)&&(ie=getTransitionProperty(C)||"",setTransitionProperty(C,"none")),"left"in H&&(C.style[Q]="",C.style[X]="".concat(W,"px")),"top"in H&&(C.style[ee]="",C.style[Z]="".concat(G,"px")),forceRelayout(C);var ne=getOffset$2(C),ae={};for(var oe in H)if(H.hasOwnProperty(oe)){var se=getOffsetDirection(oe,U),le=oe==="left"?W:G,ce=te[oe]-ne[oe];se===oe?ae[se]=le+ce:ae[se]=le-ce}css(C,ae),forceRelayout(C),("left"in H||"top"in H)&&setTransitionProperty(C,ie);var ue={};for(var de in H)if(H.hasOwnProperty(de)){var ve=getOffsetDirection(de,U),ge=H[de]-te[de];de===ve?ue[ve]=ae[ve]+ge:ue[ve]=ae[ve]-ge}css(C,ue)}function setTransform$1(C,H){var U=getOffset$2(C),W=getTransformXY(C),G={x:W.x,y:W.y};"left"in H&&(G.x=W.x+H.left-U.left),"top"in H&&(G.y=W.y+H.top-U.top),setTransformXY(C,G)}function setOffset(C,H,U){if(U.ignoreShake){var W=getOffset$2(C),G=W.left.toFixed(0),X=W.top.toFixed(0),Z=H.left.toFixed(0),Q=H.top.toFixed(0);if(G===Z&&X===Q)return}U.useCssRight||U.useCssBottom?setLeftTop(C,H,U):U.useCssTransform&&getTransformName()in document.body.style?setTransform$1(C,H):setLeftTop(C,H,U)}function each$1(C,H){for(var U=0;U<C.length;U++)H(C[U])}function isBorderBoxFn(C){return getComputedStyleX(C,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(C,H,U){var W={},G=C.style,X;for(X in H)H.hasOwnProperty(X)&&(W[X]=G[X],G[X]=H[X]);U.call(C);for(X in H)H.hasOwnProperty(X)&&(G[X]=W[X])}function getPBMWidth(C,H,U){var W=0,G,X,Z;for(X=0;X<H.length;X++)if(G=H[X],G)for(Z=0;Z<U.length;Z++){var Q=void 0;G==="border"?Q="".concat(G).concat(U[Z],"Width"):Q=G+U[Z],W+=parseFloat(getComputedStyleX(C,Q))||0}return W}var domUtils={getParent:function(H){var U=H;do U.nodeType===11&&U.host?U=U.host:U=U.parentNode;while(U&&U.nodeType!==1&&U.nodeType!==9);return U}};each$1(["Width","Height"],function(C){domUtils["doc".concat(C)]=function(H){var U=H.document;return Math.max(U.documentElement["scroll".concat(C)],U.body["scroll".concat(C)],domUtils["viewport".concat(C)](U))},domUtils["viewport".concat(C)]=function(H){var U="client".concat(C),W=H.document,G=W.body,X=W.documentElement,Z=X[U];return W.compatMode==="CSS1Compat"&&Z||G&&G[U]||Z}});function getWH(C,H,U){var W=U;if(isWindow(C))return H==="width"?domUtils.viewportWidth(C):domUtils.viewportHeight(C);if(C.nodeType===9)return H==="width"?domUtils.docWidth(C):domUtils.docHeight(C);var G=H==="width"?["Left","Right"]:["Top","Bottom"],X=Math.floor(H==="width"?C.getBoundingClientRect().width:C.getBoundingClientRect().height),Z=isBorderBoxFn(C),Q=0;(X==null||X<=0)&&(X=void 0,Q=getComputedStyleX(C,H),(Q==null||Number(Q)<0)&&(Q=C.style[H]||0),Q=Math.floor(parseFloat(Q))||0),W===void 0&&(W=Z?BORDER_INDEX:CONTENT_INDEX);var ee=X!==void 0||Z,ie=X||Q;return W===CONTENT_INDEX?ee?ie-getPBMWidth(C,["border","padding"],G):Q:ee?W===BORDER_INDEX?ie:ie+(W===PADDING_INDEX?-getPBMWidth(C,["border"],G):getPBMWidth(C,["margin"],G)):Q+getPBMWidth(C,BOX_MODELS.slice(W),G)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var C=arguments.length,H=new Array(C),U=0;U<C;U++)H[U]=arguments[U];var W,G=H[0];return G.offsetWidth!==0?W=getWH.apply(void 0,H):swap(G,cssShow,function(){W=getWH.apply(void 0,H)}),W}each$1(["width","height"],function(C){var H=C.charAt(0).toUpperCase()+C.slice(1);domUtils["outer".concat(H)]=function(W,G){return W&&getWHIgnoreDisplay(W,C,G?MARGIN_INDEX:BORDER_INDEX)};var U=C==="width"?["Left","Right"]:["Top","Bottom"];domUtils[C]=function(W,G){var X=G;if(X!==void 0){if(W){var Z=isBorderBoxFn(W);return Z&&(X+=getPBMWidth(W,["padding","border"],U)),css(W,C,X)}return}return W&&getWHIgnoreDisplay(W,C,CONTENT_INDEX)}});function mix$2(C,H){for(var U in H)H.hasOwnProperty(U)&&(C[U]=H[U]);return C}var utils$e={getWindow:function(H){if(H&&H.document&&H.setTimeout)return H;var U=H.ownerDocument||H;return U.defaultView||U.parentWindow},getDocument,offset:function(H,U,W){if(typeof U<"u")setOffset(H,U,W||{});else return getOffset$2(H)},isWindow,each:each$1,css,clone:function(H){var U,W={};for(U in H)H.hasOwnProperty(U)&&(W[U]=H[U]);var G=H.overflow;if(G)for(U in H)H.hasOwnProperty(U)&&(W.overflow[U]=H.overflow[U]);return W},mix:mix$2,getWindowScrollLeft:function(H){return getScrollLeft(H)},getWindowScrollTop:function(H){return getScrollTop(H)},merge:function(){for(var H={},U=0;U<arguments.length;U++)utils$e.mix(H,U<0||arguments.length<=U?void 0:arguments[U]);return H},viewportWidth:0,viewportHeight:0};mix$2(utils$e,domUtils);var getParent$1=utils$e.getParent;function getOffsetParent(C){if(utils$e.isWindow(C)||C.nodeType===9)return null;var H=utils$e.getDocument(C),U=H.body,W,G=utils$e.css(C,"position"),X=G==="fixed"||G==="absolute";if(!X)return C.nodeName.toLowerCase()==="html"?null:getParent$1(C);for(W=getParent$1(C);W&&W!==U&&W.nodeType!==9;W=getParent$1(W))if(G=utils$e.css(W,"position"),G!=="static")return W;return null}var getParent$1$1=utils$e.getParent;function isAncestorFixed(C){if(utils$e.isWindow(C)||C.nodeType===9)return!1;var H=utils$e.getDocument(C),U=H.body,W=null;for(W=getParent$1$1(C);W&&W!==U&&W!==H;W=getParent$1$1(W)){var G=utils$e.css(W,"position");if(G==="fixed")return!0}return!1}function getVisibleRectForElement(C,H){for(var U={left:0,right:1/0,top:0,bottom:1/0},W=getOffsetParent(C),G=utils$e.getDocument(C),X=G.defaultView||G.parentWindow,Z=G.body,Q=G.documentElement;W;){if((navigator.userAgent.indexOf("MSIE")===-1||W.clientWidth!==0)&&W!==Z&&W!==Q&&utils$e.css(W,"overflow")!=="visible"){var ee=utils$e.offset(W);ee.left+=W.clientLeft,ee.top+=W.clientTop,U.top=Math.max(U.top,ee.top),U.right=Math.min(U.right,ee.left+W.clientWidth),U.bottom=Math.min(U.bottom,ee.top+W.clientHeight),U.left=Math.max(U.left,ee.left)}else if(W===Z||W===Q)break;W=getOffsetParent(W)}var ie=null;if(!utils$e.isWindow(C)&&C.nodeType!==9){ie=C.style.position;var te=utils$e.css(C,"position");te==="absolute"&&(C.style.position="fixed")}var ne=utils$e.getWindowScrollLeft(X),ae=utils$e.getWindowScrollTop(X),oe=utils$e.viewportWidth(X),se=utils$e.viewportHeight(X),le=Q.scrollWidth,ce=Q.scrollHeight,ue=window.getComputedStyle(Z);if(ue.overflowX==="hidden"&&(le=X.innerWidth),ue.overflowY==="hidden"&&(ce=X.innerHeight),C.style&&(C.style.position=ie),H||isAncestorFixed(C))U.left=Math.max(U.left,ne),U.top=Math.max(U.top,ae),U.right=Math.min(U.right,ne+oe),U.bottom=Math.min(U.bottom,ae+se);else{var de=Math.max(le,ne+oe);U.right=Math.min(U.right,de);var ve=Math.max(ce,ae+se);U.bottom=Math.min(U.bottom,ve)}return U.top>=0&&U.left>=0&&U.bottom>U.top&&U.right>U.left?U:null}function adjustForViewport(C,H,U,W){var G=utils$e.clone(C),X={width:H.width,height:H.height};return W.adjustX&&G.left<U.left&&(G.left=U.left),W.resizeWidth&&G.left>=U.left&&G.left+X.width>U.right&&(X.width-=G.left+X.width-U.right),W.adjustX&&G.left+X.width>U.right&&(G.left=Math.max(U.right-X.width,U.left)),W.adjustY&&G.top<U.top&&(G.top=U.top),W.resizeHeight&&G.top>=U.top&&G.top+X.height>U.bottom&&(X.height-=G.top+X.height-U.bottom),W.adjustY&&G.top+X.height>U.bottom&&(G.top=Math.max(U.bottom-X.height,U.top)),utils$e.mix(G,X)}function getRegion(C){var H,U,W;if(!utils$e.isWindow(C)&&C.nodeType!==9)H=utils$e.offset(C),U=utils$e.outerWidth(C),W=utils$e.outerHeight(C);else{var G=utils$e.getWindow(C);H={left:utils$e.getWindowScrollLeft(G),top:utils$e.getWindowScrollTop(G)},U=utils$e.viewportWidth(G),W=utils$e.viewportHeight(G)}return H.width=U,H.height=W,H}function getAlignOffset(C,H){var U=H.charAt(0),W=H.charAt(1),G=C.width,X=C.height,Z=C.left,Q=C.top;return U==="c"?Q+=X/2:U==="b"&&(Q+=X),W==="c"?Z+=G/2:W==="r"&&(Z+=G),{left:Z,top:Q}}function getElFuturePos(C,H,U,W,G){var X=getAlignOffset(H,U[1]),Z=getAlignOffset(C,U[0]),Q=[Z.left-X.left,Z.top-X.top];return{left:Math.round(C.left-Q[0]+W[0]-G[0]),top:Math.round(C.top-Q[1]+W[1]-G[1])}}function isFailX(C,H,U){return C.left<U.left||C.left+H.width>U.right}function isFailY(C,H,U){return C.top<U.top||C.top+H.height>U.bottom}function isCompleteFailX(C,H,U){return C.left>U.right||C.left+H.width<U.left}function isCompleteFailY(C,H,U){return C.top>U.bottom||C.top+H.height<U.top}function flip(C,H,U){var W=[];return utils$e.each(C,function(G){W.push(G.replace(H,function(X){return U[X]}))}),W}function flipOffset(C,H){return C[H]=-C[H],C}function convertOffset(C,H){var U;return/%$/.test(C)?U=parseInt(C.substring(0,C.length-1),10)/100*H:U=parseInt(C,10),U||0}function normalizeOffset(C,H){C[0]=convertOffset(C[0],H.width),C[1]=convertOffset(C[1],H.height)}function doAlign(C,H,U,W){var G=U.points,X=U.offset||[0,0],Z=U.targetOffset||[0,0],Q=U.overflow,ee=U.source||C;X=[].concat(X),Z=[].concat(Z),Q=Q||{};var ie={},te=0,ne=!!(Q&&Q.alwaysByViewport),ae=getVisibleRectForElement(ee,ne),oe=getRegion(ee);normalizeOffset(X,oe),normalizeOffset(Z,H);var se=getElFuturePos(oe,H,G,X,Z),le=utils$e.merge(oe,se);if(ae&&(Q.adjustX||Q.adjustY)&&W){if(Q.adjustX&&isFailX(se,oe,ae)){var ce=flip(G,/[lr]/gi,{l:"r",r:"l"}),ue=flipOffset(X,0),de=flipOffset(Z,0),ve=getElFuturePos(oe,H,ce,ue,de);isCompleteFailX(ve,oe,ae)||(te=1,G=ce,X=ue,Z=de)}if(Q.adjustY&&isFailY(se,oe,ae)){var ge=flip(G,/[tb]/gi,{t:"b",b:"t"}),he=flipOffset(X,1),me=flipOffset(Z,1),_e=getElFuturePos(oe,H,ge,he,me);isCompleteFailY(_e,oe,ae)||(te=1,G=ge,X=he,Z=me)}te&&(se=getElFuturePos(oe,H,G,X,Z),utils$e.mix(le,se));var be=isFailX(se,oe,ae),pe=isFailY(se,oe,ae);if(be||pe){var fe=G;be&&(fe=flip(G,/[lr]/gi,{l:"r",r:"l"})),pe&&(fe=flip(G,/[tb]/gi,{t:"b",b:"t"})),G=fe,X=U.offset||[0,0],Z=U.targetOffset||[0,0]}ie.adjustX=Q.adjustX&&be,ie.adjustY=Q.adjustY&&pe,(ie.adjustX||ie.adjustY)&&(le=adjustForViewport(se,oe,ae,ie))}return le.width!==oe.width&&utils$e.css(ee,"width",utils$e.width(ee)+le.width-oe.width),le.height!==oe.height&&utils$e.css(ee,"height",utils$e.height(ee)+le.height-oe.height),utils$e.offset(ee,{left:le.left,top:le.top},{useCssRight:U.useCssRight,useCssBottom:U.useCssBottom,useCssTransform:U.useCssTransform,ignoreShake:U.ignoreShake}),{points:G,offset:X,targetOffset:Z,overflow:ie}}function isOutOfVisibleRect(C,H){var U=getVisibleRectForElement(C,H),W=getRegion(C);return!U||W.left+W.width<=U.left||W.top+W.height<=U.top||W.left>=U.right||W.top>=U.bottom}function alignElement(C,H,U){var W=U.target||H,G=getRegion(W),X=!isOutOfVisibleRect(W,U.overflow&&U.overflow.alwaysByViewport);return doAlign(C,G,U,X)}alignElement.__getOffsetParent=getOffsetParent;alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(C,H,U){var W,G,X=utils$e.getDocument(C),Z=X.defaultView||X.parentWindow,Q=utils$e.getWindowScrollLeft(Z),ee=utils$e.getWindowScrollTop(Z),ie=utils$e.viewportWidth(Z),te=utils$e.viewportHeight(Z);"pageX"in H?W=H.pageX:W=Q+H.clientX,"pageY"in H?G=H.pageY:G=ee+H.clientY;var ne={left:W,top:G,width:0,height:0},ae=W>=0&&W<=Q+ie&&G>=0&&G<=ee+te,oe=[U.points[0],"cc"];return doAlign(C,ne,_objectSpread2(_objectSpread2({},U),{},{points:oe}),ae)}function cloneElement(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,G=C;if(Array.isArray(C)&&(G=filterEmpty(C)[0]),!G)return null;var X=cloneVNode(G,H,W);return X.props=U?_objectSpread2$1(_objectSpread2$1({},X.props),H):X.props,warning$2(_typeof$3(X.props.class)!=="object","class must be string"),X}const isVisible=function(C){if(!C)return!1;if(C.offsetParent)return!0;if(C.getBBox){var H=C.getBBox();if(H.width||H.height)return!0}if(C.getBoundingClientRect){var U=C.getBoundingClientRect();if(U.width||U.height)return!0}return!1};function isSamePoint(C,H){return C===H?!0:!C||!H?!1:"pageX"in H&&"pageY"in H?C.pageX===H.pageX&&C.pageY===H.pageY:"clientX"in H&&"clientY"in H?C.clientX===H.clientX&&C.clientY===H.clientY:!1}function restoreFocus(C,H){C!==document.activeElement&&contains(H,C)&&typeof C.focus=="function"&&C.focus()}function monitorResize(C,H){var U=null,W=null;function G(Z){var Q=_slicedToArray$2(Z,1),ee=Q[0].target;if(!!document.documentElement.contains(ee)){var ie=ee.getBoundingClientRect(),te=ie.width,ne=ie.height,ae=Math.floor(te),oe=Math.floor(ne);(U!==ae||W!==oe)&&Promise.resolve().then(function(){H({width:ae,height:oe})}),U=ae,W=oe}}var X=new index$s(G);return C&&X.observe(C),function(){X.disconnect()}}const useBuffer=function(C,H){var U=!1,W=null;function G(){clearTimeout(W)}function X(Z){if(!U||Z===!0){if(C()===!1)return;U=!0,G(),W=setTimeout(function(){U=!1},H.value)}else G(),W=setTimeout(function(){U=!1,X()},H.value)}return[X,function(){U=!1,G()}]};function listCacheClear$2(){this.__data__=[],this.size=0}function eq$4(C,H){return C===H||C!==C&&H!==H}function assocIndexOf$5(C,H){for(var U=C.length;U--;)if(eq$4(C[U][0],H))return U;return-1}var arrayProto$1=Array.prototype,splice$1=arrayProto$1.splice;function listCacheDelete$2(C){var H=this.__data__,U=assocIndexOf$5(H,C);if(U<0)return!1;var W=H.length-1;return U==W?H.pop():splice$1.call(H,U,1),--this.size,!0}function listCacheGet$2(C){var H=this.__data__,U=assocIndexOf$5(H,C);return U<0?void 0:H[U][1]}function listCacheHas$2(C){return assocIndexOf$5(this.__data__,C)>-1}function listCacheSet$2(C,H){var U=this.__data__,W=assocIndexOf$5(U,C);return W<0?(++this.size,U.push([C,H])):U[W][1]=H,this}function ListCache$5(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}ListCache$5.prototype.clear=listCacheClear$2;ListCache$5.prototype.delete=listCacheDelete$2;ListCache$5.prototype.get=listCacheGet$2;ListCache$5.prototype.has=listCacheHas$2;ListCache$5.prototype.set=listCacheSet$2;function stackClear$2(){this.__data__=new ListCache$5,this.size=0}function stackDelete$2(C){var H=this.__data__,U=H.delete(C);return this.size=H.size,U}function stackGet$2(C){return this.__data__.get(C)}function stackHas$2(C){return this.__data__.has(C)}function isObject$d(C){var H=typeof C;return C!=null&&(H=="object"||H=="function")}var asyncTag$1="[object AsyncFunction]",funcTag$5="[object Function]",genTag$3="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$6(C){if(!isObject$d(C))return!1;var H=baseGetTag$7(C);return H==funcTag$5||H==genTag$3||H==asyncTag$1||H==proxyTag$1}var coreJsData$2=root$b["__core-js_shared__"];const coreJsData$3=coreJsData$2;var maskSrcKey$1=function(){var C=/[^.]+$/.exec(coreJsData$3&&coreJsData$3.keys&&coreJsData$3.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function isMasked$2(C){return!!maskSrcKey$1&&maskSrcKey$1 in C}var funcProto$3=Function.prototype,funcToString$3=funcProto$3.toString;function toSource$3(C){if(C!=null){try{return funcToString$3.call(C)}catch{}try{return C+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$2=Function.prototype,objectProto$t=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$q=objectProto$t.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$2.call(hasOwnProperty$q).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$2(C){if(!isObject$d(C)||isMasked$2(C))return!1;var H=isFunction$6(C)?reIsNative$1:reIsHostCtor$1;return H.test(toSource$3(C))}function getValue$4(C,H){return C==null?void 0:C[H]}function getNative$8(C,H){var U=getValue$4(C,H);return baseIsNative$2(U)?U:void 0}var Map$5=getNative$8(root$b,"Map");const Map$6=Map$5;var nativeCreate$5=getNative$8(Object,"create");const nativeCreate$6=nativeCreate$5;function hashClear$2(){this.__data__=nativeCreate$6?nativeCreate$6(null):{},this.size=0}function hashDelete$2(C){var H=this.has(C)&&delete this.__data__[C];return this.size-=H?1:0,H}var HASH_UNDEFINED$4="__lodash_hash_undefined__",objectProto$s=Object.prototype,hasOwnProperty$p=objectProto$s.hasOwnProperty;function hashGet$2(C){var H=this.__data__;if(nativeCreate$6){var U=H[C];return U===HASH_UNDEFINED$4?void 0:U}return hasOwnProperty$p.call(H,C)?H[C]:void 0}var objectProto$r=Object.prototype,hasOwnProperty$o=objectProto$r.hasOwnProperty;function hashHas$2(C){var H=this.__data__;return nativeCreate$6?H[C]!==void 0:hasOwnProperty$o.call(H,C)}var HASH_UNDEFINED$3="__lodash_hash_undefined__";function hashSet$2(C,H){var U=this.__data__;return this.size+=this.has(C)?0:1,U[C]=nativeCreate$6&&H===void 0?HASH_UNDEFINED$3:H,this}function Hash$2(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}Hash$2.prototype.clear=hashClear$2;Hash$2.prototype.delete=hashDelete$2;Hash$2.prototype.get=hashGet$2;Hash$2.prototype.has=hashHas$2;Hash$2.prototype.set=hashSet$2;function mapCacheClear$2(){this.size=0,this.__data__={hash:new Hash$2,map:new(Map$6||ListCache$5),string:new Hash$2}}function isKeyable$2(C){var H=typeof C;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?C!=="__proto__":C===null}function getMapData$5(C,H){var U=C.__data__;return isKeyable$2(H)?U[typeof H=="string"?"string":"hash"]:U.map}function mapCacheDelete$2(C){var H=getMapData$5(this,C).delete(C);return this.size-=H?1:0,H}function mapCacheGet$2(C){return getMapData$5(this,C).get(C)}function mapCacheHas$2(C){return getMapData$5(this,C).has(C)}function mapCacheSet$2(C,H){var U=getMapData$5(this,C),W=U.size;return U.set(C,H),this.size+=U.size==W?0:1,this}function MapCache$3(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}MapCache$3.prototype.clear=mapCacheClear$2;MapCache$3.prototype.delete=mapCacheDelete$2;MapCache$3.prototype.get=mapCacheGet$2;MapCache$3.prototype.has=mapCacheHas$2;MapCache$3.prototype.set=mapCacheSet$2;var LARGE_ARRAY_SIZE$2=200;function stackSet$2(C,H){var U=this.__data__;if(U instanceof ListCache$5){var W=U.__data__;if(!Map$6||W.length<LARGE_ARRAY_SIZE$2-1)return W.push([C,H]),this.size=++U.size,this;U=this.__data__=new MapCache$3(W)}return U.set(C,H),this.size=U.size,this}function Stack$2(C){var H=this.__data__=new ListCache$5(C);this.size=H.size}Stack$2.prototype.clear=stackClear$2;Stack$2.prototype.delete=stackDelete$2;Stack$2.prototype.get=stackGet$2;Stack$2.prototype.has=stackHas$2;Stack$2.prototype.set=stackSet$2;var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd(C){return this.__data__.set(C,HASH_UNDEFINED$2),this}function setCacheHas(C){return this.__data__.has(C)}function SetCache(C){var H=-1,U=C==null?0:C.length;for(this.__data__=new MapCache$3;++H<U;)this.add(C[H])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(C,H){for(var U=-1,W=C==null?0:C.length;++U<W;)if(H(C[U],U,C))return!0;return!1}function cacheHas(C,H){return C.has(H)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(C,H,U,W,G,X){var Z=U&COMPARE_PARTIAL_FLAG$5,Q=C.length,ee=H.length;if(Q!=ee&&!(Z&&ee>Q))return!1;var ie=X.get(C),te=X.get(H);if(ie&&te)return ie==H&&te==C;var ne=-1,ae=!0,oe=U&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(X.set(C,H),X.set(H,C);++ne<Q;){var se=C[ne],le=H[ne];if(W)var ce=Z?W(le,se,ne,H,C,X):W(se,le,ne,C,H,X);if(ce!==void 0){if(ce)continue;ae=!1;break}if(oe){if(!arraySome(H,function(ue,de){if(!cacheHas(oe,de)&&(se===ue||G(se,ue,U,W,X)))return oe.push(de)})){ae=!1;break}}else if(!(se===le||G(se,le,U,W,X))){ae=!1;break}}return X.delete(C),X.delete(H),ae}var Uint8Array$3=root$b.Uint8Array;const Uint8Array$4=Uint8Array$3;function mapToArray(C){var H=-1,U=Array(C.size);return C.forEach(function(W,G){U[++H]=[G,W]}),U}function setToArray(C){var H=-1,U=Array(C.size);return C.forEach(function(W){U[++H]=W}),U}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$6="[object Boolean]",dateTag$6="[object Date]",errorTag$4="[object Error]",mapTag$b="[object Map]",numberTag$7="[object Number]",regexpTag$6="[object RegExp]",setTag$b="[object Set]",stringTag$6="[object String]",symbolTag$6="[object Symbol]",arrayBufferTag$6="[object ArrayBuffer]",dataViewTag$8="[object DataView]",symbolProto$4=Symbol$7?Symbol$7.prototype:void 0,symbolValueOf$2=symbolProto$4?symbolProto$4.valueOf:void 0;function equalByTag(C,H,U,W,G,X,Z){switch(U){case dataViewTag$8:if(C.byteLength!=H.byteLength||C.byteOffset!=H.byteOffset)return!1;C=C.buffer,H=H.buffer;case arrayBufferTag$6:return!(C.byteLength!=H.byteLength||!X(new Uint8Array$4(C),new Uint8Array$4(H)));case boolTag$6:case dateTag$6:case numberTag$7:return eq$4(+C,+H);case errorTag$4:return C.name==H.name&&C.message==H.message;case regexpTag$6:case stringTag$6:return C==H+"";case mapTag$b:var Q=mapToArray;case setTag$b:var ee=W&COMPARE_PARTIAL_FLAG$4;if(Q||(Q=setToArray),C.size!=H.size&&!ee)return!1;var ie=Z.get(C);if(ie)return ie==H;W|=COMPARE_UNORDERED_FLAG$2,Z.set(C,H);var te=equalArrays(Q(C),Q(H),W,G,X,Z);return Z.delete(C),te;case symbolTag$6:if(symbolValueOf$2)return symbolValueOf$2.call(C)==symbolValueOf$2.call(H)}return!1}function arrayPush$4(C,H){for(var U=-1,W=H.length,G=C.length;++U<W;)C[G+U]=H[U];return C}var isArray$b=Array.isArray;const isArray$c=isArray$b;function baseGetAllKeys$3(C,H,U){var W=H(C);return isArray$c(C)?W:arrayPush$4(W,U(C))}function arrayFilter$2(C,H){for(var U=-1,W=C==null?0:C.length,G=0,X=[];++U<W;){var Z=C[U];H(Z,U,C)&&(X[G++]=Z)}return X}function stubArray$3(){return[]}var objectProto$q=Object.prototype,propertyIsEnumerable$3=objectProto$q.propertyIsEnumerable,nativeGetSymbols$3=Object.getOwnPropertySymbols,getSymbols$4=nativeGetSymbols$3?function(C){return C==null?[]:(C=Object(C),arrayFilter$2(nativeGetSymbols$3(C),function(H){return propertyIsEnumerable$3.call(C,H)}))}:stubArray$3;const getSymbols$5=getSymbols$4;function baseTimes$2(C,H){for(var U=-1,W=Array(C);++U<C;)W[U]=H(U);return W}var argsTag$6="[object Arguments]";function baseIsArguments$2(C){return isObjectLike$8(C)&&baseGetTag$7(C)==argsTag$6}var objectProto$p=Object.prototype,hasOwnProperty$n=objectProto$p.hasOwnProperty,propertyIsEnumerable$2=objectProto$p.propertyIsEnumerable,isArguments$3=baseIsArguments$2(function(){return arguments}())?baseIsArguments$2:function(C){return isObjectLike$8(C)&&hasOwnProperty$n.call(C,"callee")&&!propertyIsEnumerable$2.call(C,"callee")};const isArguments$4=isArguments$3;function stubFalse$1(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$b.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$4=nativeIsBuffer||stubFalse$1;const isBuffer$5=isBuffer$4;var MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$4(C,H){var U=typeof C;return H=H==null?MAX_SAFE_INTEGER$3:H,!!H&&(U=="number"||U!="symbol"&&reIsUint$1.test(C))&&C>-1&&C%1==0&&C<H}var MAX_SAFE_INTEGER$2=9007199254740991;function isLength$4(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=MAX_SAFE_INTEGER$2}var argsTag$5="[object Arguments]",arrayTag$4="[object Array]",boolTag$5="[object Boolean]",dateTag$5="[object Date]",errorTag$3="[object Error]",funcTag$4="[object Function]",mapTag$a="[object Map]",numberTag$6="[object Number]",objectTag$6="[object Object]",regexpTag$5="[object RegExp]",setTag$a="[object Set]",stringTag$5="[object String]",weakMapTag$5="[object WeakMap]",arrayBufferTag$5="[object ArrayBuffer]",dataViewTag$7="[object DataView]",float32Tag$5="[object Float32Array]",float64Tag$5="[object Float64Array]",int8Tag$5="[object Int8Array]",int16Tag$5="[object Int16Array]",int32Tag$5="[object Int32Array]",uint8Tag$5="[object Uint8Array]",uint8ClampedTag$5="[object Uint8ClampedArray]",uint16Tag$5="[object Uint16Array]",uint32Tag$5="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$5]=typedArrayTags$1[float64Tag$5]=typedArrayTags$1[int8Tag$5]=typedArrayTags$1[int16Tag$5]=typedArrayTags$1[int32Tag$5]=typedArrayTags$1[uint8Tag$5]=typedArrayTags$1[uint8ClampedTag$5]=typedArrayTags$1[uint16Tag$5]=typedArrayTags$1[uint32Tag$5]=!0;typedArrayTags$1[argsTag$5]=typedArrayTags$1[arrayTag$4]=typedArrayTags$1[arrayBufferTag$5]=typedArrayTags$1[boolTag$5]=typedArrayTags$1[dataViewTag$7]=typedArrayTags$1[dateTag$5]=typedArrayTags$1[errorTag$3]=typedArrayTags$1[funcTag$4]=typedArrayTags$1[mapTag$a]=typedArrayTags$1[numberTag$6]=typedArrayTags$1[objectTag$6]=typedArrayTags$1[regexpTag$5]=typedArrayTags$1[setTag$a]=typedArrayTags$1[stringTag$5]=typedArrayTags$1[weakMapTag$5]=!1;function baseIsTypedArray$2(C){return isObjectLike$8(C)&&isLength$4(C.length)&&!!typedArrayTags$1[baseGetTag$7(C)]}function baseUnary$4(C){return function(H){return C(H)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$3.process,nodeUtil$3=function(){try{var C=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return C||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$4=nodeUtil$3;var nodeIsTypedArray$1=nodeUtil$4&&nodeUtil$4.isTypedArray,isTypedArray$3=nodeIsTypedArray$1?baseUnary$4(nodeIsTypedArray$1):baseIsTypedArray$2;const isTypedArray$4=isTypedArray$3;var objectProto$o=Object.prototype,hasOwnProperty$m=objectProto$o.hasOwnProperty;function arrayLikeKeys$3(C,H){var U=isArray$c(C),W=!U&&isArguments$4(C),G=!U&&!W&&isBuffer$5(C),X=!U&&!W&&!G&&isTypedArray$4(C),Z=U||W||G||X,Q=Z?baseTimes$2(C.length,String):[],ee=Q.length;for(var ie in C)(H||hasOwnProperty$m.call(C,ie))&&!(Z&&(ie=="length"||G&&(ie=="offset"||ie=="parent")||X&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||isIndex$4(ie,ee)))&&Q.push(ie);return Q}var objectProto$n=Object.prototype;function isPrototype$4(C){var H=C&&C.constructor,U=typeof H=="function"&&H.prototype||objectProto$n;return C===U}var nativeKeys$2=overArg$3(Object.keys,Object);const nativeKeys$3=nativeKeys$2;var objectProto$m=Object.prototype,hasOwnProperty$l=objectProto$m.hasOwnProperty;function baseKeys$2(C){if(!isPrototype$4(C))return nativeKeys$3(C);var H=[];for(var U in Object(C))hasOwnProperty$l.call(C,U)&&U!="constructor"&&H.push(U);return H}function isArrayLike$5(C){return C!=null&&isLength$4(C.length)&&!isFunction$6(C)}function keys$5(C){return isArrayLike$5(C)?arrayLikeKeys$3(C):baseKeys$2(C)}function getAllKeys$2(C){return baseGetAllKeys$3(C,keys$5,getSymbols$5)}var COMPARE_PARTIAL_FLAG$3=1,objectProto$l=Object.prototype,hasOwnProperty$k=objectProto$l.hasOwnProperty;function equalObjects(C,H,U,W,G,X){var Z=U&COMPARE_PARTIAL_FLAG$3,Q=getAllKeys$2(C),ee=Q.length,ie=getAllKeys$2(H),te=ie.length;if(ee!=te&&!Z)return!1;for(var ne=ee;ne--;){var ae=Q[ne];if(!(Z?ae in H:hasOwnProperty$k.call(H,ae)))return!1}var oe=X.get(C),se=X.get(H);if(oe&&se)return oe==H&&se==C;var le=!0;X.set(C,H),X.set(H,C);for(var ce=Z;++ne<ee;){ae=Q[ne];var ue=C[ae],de=H[ae];if(W)var ve=Z?W(de,ue,ae,H,C,X):W(ue,de,ae,C,H,X);if(!(ve===void 0?ue===de||G(ue,de,U,W,X):ve)){le=!1;break}ce||(ce=ae=="constructor")}if(le&&!ce){var ge=C.constructor,he=H.constructor;ge!=he&&"constructor"in C&&"constructor"in H&&!(typeof ge=="function"&&ge instanceof ge&&typeof he=="function"&&he instanceof he)&&(le=!1)}return X.delete(C),X.delete(H),le}var DataView$3=getNative$8(root$b,"DataView");const DataView$4=DataView$3;var Promise$3=getNative$8(root$b,"Promise");const Promise$4=Promise$3;var Set$3=getNative$8(root$b,"Set");const Set$4=Set$3;var WeakMap$3=getNative$8(root$b,"WeakMap");const WeakMap$4=WeakMap$3;var mapTag$9="[object Map]",objectTag$5="[object Object]",promiseTag$1="[object Promise]",setTag$9="[object Set]",weakMapTag$4="[object WeakMap]",dataViewTag$6="[object DataView]",dataViewCtorString$1=toSource$3(DataView$4),mapCtorString$1=toSource$3(Map$6),promiseCtorString$1=toSource$3(Promise$4),setCtorString$1=toSource$3(Set$4),weakMapCtorString$1=toSource$3(WeakMap$4),getTag$4=baseGetTag$7;(DataView$4&&getTag$4(new DataView$4(new ArrayBuffer(1)))!=dataViewTag$6||Map$6&&getTag$4(new Map$6)!=mapTag$9||Promise$4&&getTag$4(Promise$4.resolve())!=promiseTag$1||Set$4&&getTag$4(new Set$4)!=setTag$9||WeakMap$4&&getTag$4(new WeakMap$4)!=weakMapTag$4)&&(getTag$4=function(C){var H=baseGetTag$7(C),U=H==objectTag$5?C.constructor:void 0,W=U?toSource$3(U):"";if(W)switch(W){case dataViewCtorString$1:return dataViewTag$6;case mapCtorString$1:return mapTag$9;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$9;case weakMapCtorString$1:return weakMapTag$4}return H});const getTag$5=getTag$4;var COMPARE_PARTIAL_FLAG$2=1,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",objectTag$4="[object Object]",objectProto$k=Object.prototype,hasOwnProperty$j=objectProto$k.hasOwnProperty;function baseIsEqualDeep(C,H,U,W,G,X){var Z=isArray$c(C),Q=isArray$c(H),ee=Z?arrayTag$3:getTag$5(C),ie=Q?arrayTag$3:getTag$5(H);ee=ee==argsTag$4?objectTag$4:ee,ie=ie==argsTag$4?objectTag$4:ie;var te=ee==objectTag$4,ne=ie==objectTag$4,ae=ee==ie;if(ae&&isBuffer$5(C)){if(!isBuffer$5(H))return!1;Z=!0,te=!1}if(ae&&!te)return X||(X=new Stack$2),Z||isTypedArray$4(C)?equalArrays(C,H,U,W,G,X):equalByTag(C,H,ee,U,W,G,X);if(!(U&COMPARE_PARTIAL_FLAG$2)){var oe=te&&hasOwnProperty$j.call(C,"__wrapped__"),se=ne&&hasOwnProperty$j.call(H,"__wrapped__");if(oe||se){var le=oe?C.value():C,ce=se?H.value():H;return X||(X=new Stack$2),G(le,ce,U,W,X)}}return ae?(X||(X=new Stack$2),equalObjects(C,H,U,W,G,X)):!1}function baseIsEqual(C,H,U,W,G){return C===H?!0:C==null||H==null||!isObjectLike$8(C)&&!isObjectLike$8(H)?C!==C&&H!==H:baseIsEqualDeep(C,H,U,W,baseIsEqual,G)}function isEqual(C,H){return baseIsEqual(C,H)}var alignProps={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function getElement(C){return typeof C!="function"?null:C()}function getPoint(C){return _typeof$3(C)!=="object"||!C?null:C}const Align=defineComponent({compatConfig:{MODE:3},name:"Align",props:alignProps,emits:["align"],setup:function(H,U){var W=U.expose,G=U.slots,X=ref({}),Z=ref(),Q=useBuffer(function(){var le=H.disabled,ce=H.target,ue=H.align,de=H.onAlign;if(!le&&ce&&Z.value){var ve=Z.value,ge,he=getElement(ce),me=getPoint(ce);X.value.element=he,X.value.point=me,X.value.align=ue;var _e=document,be=_e.activeElement;return he&&isVisible(he)?ge=alignElement(ve,he,ue):me&&(ge=alignPoint(ve,me,ue)),restoreFocus(be,ve),de&&ge&&de(ve,ge),!0}return!1},computed(function(){return H.monitorBufferTime})),ee=_slicedToArray$2(Q,2),ie=ee[0],te=ee[1],ne=ref({cancel:function(){}}),ae=ref({cancel:function(){}}),oe=function(){var ce=H.target,ue=getElement(ce),de=getPoint(ce);Z.value!==ae.value.element&&(ae.value.cancel(),ae.value.element=Z.value,ae.value.cancel=monitorResize(Z.value,ie)),(X.value.element!==ue||!isSamePoint(X.value.point,de)||!isEqual(X.value.align,H.align))&&(ie(),ne.value.element!==ue&&(ne.value.cancel(),ne.value.element=ue,ne.value.cancel=monitorResize(ue,ie)))};onMounted(function(){nextTick$1(function(){oe()})}),onUpdated(function(){nextTick$1(function(){oe()})}),watch(function(){return H.disabled},function(le){le?te():ie()},{immediate:!0,flush:"post"});var se=ref(null);return watch(function(){return H.monitorWindowResize},function(le){le?se.value||(se.value=addEventListenerWrap(window,"resize",ie)):se.value&&(se.value.remove(),se.value=null)},{flush:"post"}),onUnmounted(function(){ne.value.cancel(),ae.value.cancel(),se.value&&se.value.remove(),te()}),W({forceAlign:function(){return ie(!0)}}),function(){var le=G==null?void 0:G.default();return le?cloneElement(le[0],{ref:Z},!0,!0):null}}}),PopupInner=defineComponent({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:innerProps,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(H,U){var W=U.expose,G=U.attrs,X=U.slots,Z=ref(),Q=ref(),ee=ref(),ie=useStretchStyle(toRef(H,"stretch")),te=_slicedToArray$2(ie,2),ne=te[0],ae=te[1],oe=function(){H.stretch&&ae(H.getRootDomNode())},se=ref(!1),le;watch(function(){return H.visible},function(ye){clearTimeout(le),ye?le=setTimeout(function(){se.value=H.visible}):se.value=!1},{immediate:!0});var ce=useVisibleStatus(se,oe),ue=_slicedToArray$2(ce,2),de=ue[0],ve=ue[1],ge=ref(),he=function(){return H.point?H.point:H.getRootDomNode},me=function(){var $e;($e=Z.value)===null||$e===void 0||$e.forceAlign()},_e=function($e,we){var Se=H.getClassNameFromAlign(we),Te=ee.value;if(ee.value!==Se&&(ee.value=Se),de.value==="align"){var xe;Te!==Se?Promise.resolve().then(function(){me()}):ve(function(){var ke;(ke=ge.value)===null||ke===void 0||ke.call(ge)}),(xe=H.onAlign)===null||xe===void 0||xe.call(H,$e,we)}},be=computed(function(){var ye=_typeof$3(H.animation)==="object"?H.animation:getMotion(H);return["onAfterEnter","onAfterLeave"].forEach(function($e){var we=ye[$e];ye[$e]=function(Se){ve(),de.value="stable",we==null||we(Se)}}),ye}),pe=function(){return new Promise(function($e){ge.value=$e})};watch([be,de],function(){!be.value&&de.value==="motion"&&ve()},{immediate:!0}),W({forceAlign:me,getElement:function(){return Q.value.$el||Q.value}});var fe=computed(function(){var ye;return!((ye=H.align)!==null&&ye!==void 0&&ye.points&&(de.value==="align"||de.value==="stable"))});return function(){var ye,$e=H.zIndex,we=H.align,Se=H.prefixCls,Te=H.destroyPopupOnHide,xe=H.onMouseenter,ke=H.onMouseleave,Ie=H.onTouchstart,Ae=Ie===void 0?function(){}:Ie,Me=H.onMousedown,Fe=de.value,Be=[_objectSpread2$1(_objectSpread2$1({},ne.value),{},{zIndex:$e,opacity:Fe==="motion"||Fe==="stable"||!se.value?null:0,pointerEvents:!se.value&&Fe!=="stable"?"none":null}),G.style],Ne=flattenChildren((ye=X.default)===null||ye===void 0?void 0:ye.call(X,{visible:H.visible}));Ne.length>1&&(Ne=createVNode("div",{class:"".concat(Se,"-content")},[Ne]));var Ve=classNames(Se,G.class,ee.value),Le=se.value||!H.visible,De=Le?getTransitionProps(be.value.name,be.value):{};return createVNode(Transition$1,_objectSpread2$1(_objectSpread2$1({ref:Q},De),{},{onBeforeEnter:pe}),{default:function(){return!Te||H.visible?withDirectives(createVNode(Align,{target:he(),key:"popup",ref:Z,monitorWindowResize:!0,disabled:fe.value,align:we,onAlign:_e},{default:function(){return createVNode("div",_objectSpread2$1(_objectSpread2$1({class:Ve,onMouseenter:xe,onMouseleave:ke,onMousedown:withModifiers(Me,["capture"])},_defineProperty$M({},supportsPassive$1?"onTouchstartPassive":"onTouchstart",withModifiers(Ae,["capture"]))),{},{style:Be}),[Ne])}}),[[vShow,se.value]]):null}})}}}),Popup=defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:popupProps,setup:function(H,U){var W=U.attrs,G=U.slots,X=U.expose,Z=ref(!1),Q=ref(!1),ee=ref();return watch([function(){return H.visible},function(){return H.mobile}],function(){Z.value=H.visible,H.visible&&H.mobile&&(Q.value=!0)},{immediate:!0,flush:"post"}),X({forceAlign:function(){var te;(te=ee.value)===null||te===void 0||te.forceAlign()},getElement:function(){var te;return(te=ee.value)===null||te===void 0?void 0:te.getElement()}}),function(){var ie=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},H),W),{},{visible:Z.value}),te=Q.value?createVNode(MobilePopupInner,_objectSpread2$1(_objectSpread2$1({},ie),{},{mobile:H.mobile,ref:ee}),{default:G.default}):createVNode(PopupInner,_objectSpread2$1(_objectSpread2$1({},ie),{},{ref:ee}),{default:G.default});return createVNode("div",null,[createVNode(Mask$1,ie,null),te])}}});function isPointsEq(C,H,U){return U?C[0]===H[0]:C[0]===H[0]&&C[1]===H[1]}function getAlignFromPlacement(C,H,U){var W=C[H]||{};return _objectSpread2$1(_objectSpread2$1({},W),U)}function getAlignPopupClassName(C,H,U,W){for(var G=U.points,X=Object.keys(C),Z=0;Z<X.length;Z+=1){var Q=X[Z];if(isPointsEq(C[Q].points,G,W))return"".concat(H,"-placement-").concat(Q)}return""}const BaseMixin={methods:{setState:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=arguments.length>1?arguments[1]:void 0,W=typeof H=="function"?H(this.$data,this.$props):H;if(this.getDerivedStateFromProps){var G=this.getDerivedStateFromProps(getOptionProps(this),_objectSpread2$1(_objectSpread2$1({},this.$data),W));if(G===null)return;W=_objectSpread2$1(_objectSpread2$1({},W),G||{})}_extends$1(this.$data,W),this._.isMounted&&this.$forceUpdate(),nextTick$1(function(){U&&U()})},__emit:function(){var H=[].slice.call(arguments,0),U=H[0];U="on".concat(U[0].toUpperCase()).concat(U.substring(1));var W=this.$props[U]||this.$attrs[U];if(H.length&&W)if(Array.isArray(W))for(var G=0,X=W.length;G<X;G++)W[G].apply(W,_toConsumableArray$1(H.slice(1)));else W.apply(void 0,_toConsumableArray$1(H.slice(1)))}}};var TriggerContextKey=Symbol("TriggerContextKey"),useInjectTrigger=function(H){return H?inject(TriggerContextKey,{setPortal:function(){},popPortal:!1}):{setPortal:function(){},popPortal:!1}},PortalContextKey=Symbol("PortalContextKey"),useProvidePortal=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};provide(PortalContextKey,{inTriggerContext:U.inTriggerContext,shouldRender:computed(function(){var W=H||{},G=W.sPopupVisible,X=W.popupRef,Z=W.forceRender,Q=W.autoDestroy,ee=!1;return(G||X||Z)&&(ee=!0),!G&&Q&&(ee=!1),ee})})},useInjectPortal=function(){useProvidePortal({},{inTriggerContext:!1});var H=inject(PortalContextKey,{shouldRender:computed(function(){return!1}),inTriggerContext:!1});return{shouldRender:computed(function(){return H.shouldRender.value||H.inTriggerContext===!1})}};const Portal$1=defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:PropTypes$1.func.isRequired,didUpdate:Function},setup:function(H,U){var W=U.slots,G=!0,X,Z=useInjectPortal(),Q=Z.shouldRender;onBeforeMount(function(){G=!1,Q.value&&(X=H.getContainer())});var ee=watch(Q,function(){Q.value&&!X&&(X=H.getContainer()),X&&ee()});return onUpdated(function(){nextTick$1(function(){if(Q.value){var ie;(ie=H.didUpdate)===null||ie===void 0||ie.call(H,H)}})}),onBeforeUnmount(function(){X&&X.parentNode&&X.parentNode.removeChild(X)}),function(){if(!Q.value)return null;if(G){var ie;return(ie=W.default)===null||ie===void 0?void 0:ie.call(W)}return X?createVNode(Teleport,{to:X},W):null}}});function noop$7(){}function returnEmptyString(){return""}function returnDocument(C){return C?C.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Trigger=defineComponent({compatConfig:{MODE:3},name:"Trigger",mixins:[BaseMixin],inheritAttrs:!1,props:{action:PropTypes$1.oneOfType([PropTypes$1.string,PropTypes$1.arrayOf(PropTypes$1.string)]).def([]),showAction:PropTypes$1.any.def([]),hideAction:PropTypes$1.any.def([]),getPopupClassNameFromAlign:PropTypes$1.any.def(returnEmptyString),onPopupVisibleChange:Function,afterPopupVisibleChange:PropTypes$1.func.def(noop$7),popup:PropTypes$1.any,popupStyle:{type:Object,default:void 0},prefixCls:PropTypes$1.string.def("rc-trigger-popup"),popupClassName:PropTypes$1.string.def(""),popupPlacement:String,builtinPlacements:PropTypes$1.object,popupTransitionName:String,popupAnimation:PropTypes$1.any,mouseEnterDelay:PropTypes$1.number.def(0),mouseLeaveDelay:PropTypes$1.number.def(.1),zIndex:Number,focusDelay:PropTypes$1.number.def(0),blurDelay:PropTypes$1.number.def(.15),getPopupContainer:Function,getDocument:PropTypes$1.func.def(returnDocument),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:PropTypes$1.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(H){var U=computed(function(){var ee=H.popupPlacement,ie=H.popupAlign,te=H.builtinPlacements;return ee&&te?getAlignFromPlacement(te,ee,ie):ie}),W=useInjectTrigger(H.tryPopPortal),G=W.setPortal,X=W.popPortal,Z=ref(null),Q=function(ie){Z.value=ie};return{popPortal:X,setPortal:G,vcTriggerContext:inject("vcTriggerContext",{}),popupRef:Z,setPopupRef:Q,triggerRef:ref(null),align:U,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var H=this,U,W=this.$props,G;return this.popupVisible!==void 0?G=!!W.popupVisible:G=!!W.defaultPopupVisible,ALL_HANDLERS.forEach(function(X){H["fire".concat(X)]=function(Z){H.fireEvents(X,Z)}}),(U=this.setPortal)===null||U===void 0||U.call(this,createVNode(Portal$1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:G,sPopupVisible:G,point:null}},watch:{popupVisible:function(H){H!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=H)}},created:function(){provide("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),useProvidePortal(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var H=this;this.$nextTick(function(){H.updatedCal()})},updated:function(){var H=this;this.$nextTick(function(){H.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf.cancel(this.attachId)},methods:{updatedCal:function(){var H=this.$props,U=this.$data;if(U.sPopupVisible){var W;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(W=H.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(W,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(W=W||H.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(W,"touchstart",this.onDocumentClick,supportsPassive$1?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(W=W||H.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=addEventListenerWrap(W,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(H){var U=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",H),this.delaySetPopupVisible(!0,U,U?null:H)},onMouseMove:function(H){this.fireEvents("onMousemove",H),this.setPoint(H)},onMouseleave:function(H){this.fireEvents("onMouseleave",H),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(H){var U;H&&H.relatedTarget&&!H.relatedTarget.setTimeout&&contains((U=this.popupRef)===null||U===void 0?void 0:U.getElement(),H.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(H){this.fireEvents("onFocus",H),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(H){this.fireEvents("onMousedown",H),this.preClickTime=Date.now()},onTouchstart:function(H){this.fireEvents("onTouchstart",H),this.preTouchTime=Date.now()},onBlur:function(H){contains(H.target,H.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",H),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(H){H.preventDefault(),this.fireEvents("onContextmenu",H),this.setPopupVisible(!0,H)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(H){if(this.fireEvents("onClick",H),this.focusTime){var U;if(this.preClickTime&&this.preTouchTime?U=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?U=this.preClickTime:this.preTouchTime&&(U=this.preTouchTime),Math.abs(U-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&H&&H.preventDefault&&H.preventDefault(),H&&H.domEvent&&H.domEvent.preventDefault();var W=!this.$data.sPopupVisible;(this.isClickToHide()&&!W||W&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,H)},onPopupMouseDown:function(){var H=this,U=this.vcTriggerContext,W=U===void 0?{}:U;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){H.hasPopupMouseDown=!1},0),W.onPopupMouseDown&&W.onPopupMouseDown.apply(W,arguments)},onDocumentClick:function(H){if(!(this.$props.mask&&!this.$props.maskClosable)){var U=H.target,W=this.getRootDomNode(),G=this.getPopupDomNode();(!contains(W,U)||this.isContextMenuOnly())&&!contains(G,U)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var H;return((H=this.popupRef)===null||H===void 0?void 0:H.getElement())||null},getRootDomNode:function(){var H=this.$props.getTriggerDOMNode;if(H){var U=findDOMNode(this.triggerRef);return findDOMNode(H(U))}try{var W=findDOMNode(this.triggerRef);if(W)return W}catch{}return findDOMNode(this)},handleGetPopupClassFromAlign:function(H){var U=[],W=this.$props,G=W.popupPlacement,X=W.builtinPlacements,Z=W.prefixCls,Q=W.alignPoint,ee=W.getPopupClassNameFromAlign;return G&&X&&U.push(getAlignPopupClassName(X,Z,H,Q)),ee&&U.push(ee(H)),U.join(" ")},getPopupAlign:function(){var H=this.$props,U=H.popupPlacement,W=H.popupAlign,G=H.builtinPlacements;return U&&G?getAlignFromPlacement(G,U,W):W},getComponent:function(){var H=this,U={};this.isMouseEnterToShow()&&(U.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(U.onMouseleave=this.onPopupMouseleave),U.onMousedown=this.onPopupMouseDown,U[supportsPassive$1?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var W=this.handleGetPopupClassFromAlign,G=this.getRootDomNode,X=this.getContainer,Z=this.$attrs,Q=this.$props,ee=Q.prefixCls,ie=Q.destroyPopupOnHide,te=Q.popupClassName,ne=Q.popupAnimation,ae=Q.popupTransitionName,oe=Q.popupStyle,se=Q.mask,le=Q.maskAnimation,ce=Q.maskTransitionName,ue=Q.zIndex,de=Q.stretch,ve=Q.alignPoint,ge=Q.mobile,he=Q.forceRender,me=this.$data,_e=me.sPopupVisible,be=me.point,pe=_objectSpread2$1(_objectSpread2$1({prefixCls:ee,destroyPopupOnHide:ie,visible:_e,point:ve?be:null,align:this.align,animation:ne,getClassNameFromAlign:W,stretch:de,getRootDomNode:G,mask:se,zIndex:ue,transitionName:ae,maskAnimation:le,maskTransitionName:ce,getContainer:X,class:te,style:oe,onAlign:Z.onPopupAlign||noop$7},U),{},{ref:this.setPopupRef,mobile:ge,forceRender:he});return createVNode(Popup,pe,{default:this.$slots.popup||function(){return getComponent(H,"popup")}})},attachParent:function(H){var U=this;wrapperRaf.cancel(this.attachId);var W=this.$props,G=W.getPopupContainer,X=W.getDocument,Z=this.getRootDomNode(),Q;G?(Z||G.length===0)&&(Q=G(Z)):Q=X(this.getRootDomNode()).body,Q?Q.appendChild(H):this.attachId=wrapperRaf(function(){U.attachParent(H)})},getContainer:function(){var H=this.$props,U=H.getDocument,W=U(this.getRootDomNode()).createElement("div");return W.style.position="absolute",W.style.top="0",W.style.left="0",W.style.width="100%",this.attachParent(W),W},setPopupVisible:function(H,U){var W=this.alignPoint,G=this.sPopupVisible,X=this.onPopupVisibleChange;this.clearDelayTimer(),G!==H&&(hasProp(this,"popupVisible")||this.setState({sPopupVisible:H,prevPopupVisible:G}),X&&X(H)),W&&U&&H&&this.setPoint(U)},setPoint:function(H){var U=this.$props.alignPoint;!U||!H||this.setState({point:{pageX:H.pageX,pageY:H.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(H,U,W){var G=this,X=U*1e3;if(this.clearDelayTimer(),X){var Z=W?{pageX:W.pageX,pageY:W.pageY}:null;this.delayTimer=requestAnimationTimeout(function(){G.setPopupVisible(H,Z),G.clearDelayTimer()},X)}else this.setPopupVisible(H,W)},clearDelayTimer:function(){this.delayTimer&&(cancelAnimationTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(H){var U=function(){},W=getEvents(this);return this.childOriginEvents[H]&&W[H]?this["fire".concat(H)]:(U=this.childOriginEvents[H]||W[H]||U,U)},isClickToShow:function(){var H=this.$props,U=H.action,W=H.showAction;return U.indexOf("click")!==-1||W.indexOf("click")!==-1},isContextMenuOnly:function(){var H=this.$props.action;return H==="contextmenu"||H.length===1&&H[0]==="contextmenu"},isContextmenuToShow:function(){var H=this.$props,U=H.action,W=H.showAction;return U.indexOf("contextmenu")!==-1||W.indexOf("contextmenu")!==-1},isClickToHide:function(){var H=this.$props,U=H.action,W=H.hideAction;return U.indexOf("click")!==-1||W.indexOf("click")!==-1},isMouseEnterToShow:function(){var H=this.$props,U=H.action,W=H.showAction;return U.indexOf("hover")!==-1||W.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var H=this.$props,U=H.action,W=H.hideAction;return U.indexOf("hover")!==-1||W.indexOf("mouseleave")!==-1},isFocusToShow:function(){var H=this.$props,U=H.action,W=H.showAction;return U.indexOf("focus")!==-1||W.indexOf("focus")!==-1},isBlurToHide:function(){var H=this.$props,U=H.action,W=H.hideAction;return U.indexOf("focus")!==-1||W.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var H;(H=this.popupRef)===null||H===void 0||H.forceAlign()}},fireEvents:function(H,U){this.childOriginEvents[H]&&this.childOriginEvents[H](U);var W=this.$props[H]||this.$attrs[H];W&&W(U)},close:function(){this.setPopupVisible(!1)}},render:function(){var H=this,U=this.$attrs,W=filterEmpty(getSlot(this)),G=this.$props.alignPoint,X=W[0];this.childOriginEvents=getEvents(X);var Z={key:"trigger"};this.isContextmenuToShow()?Z.onContextmenu=this.onContextmenu:Z.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(Z.onClick=this.onClick,Z.onMousedown=this.onMousedown,Z[supportsPassive$1?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(Z.onClick=this.createTwoChains("onClick"),Z.onMousedown=this.createTwoChains("onMousedown"),Z[supportsPassive$1?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(Z.onMouseenter=this.onMouseenter,G&&(Z.onMousemove=this.onMouseMove)):Z.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?Z.onMouseleave=this.onMouseleave:Z.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(Z.onFocus=this.onFocus,Z.onBlur=this.onBlur):(Z.onFocus=this.createTwoChains("onFocus"),Z.onBlur=function(te){te&&(!te.relatedTarget||!contains(te.target,te.relatedTarget))&&H.createTwoChains("onBlur")(te)});var Q=classNames(X&&X.props&&X.props.class,U.class);Q&&(Z.class=Q);var ee=cloneElement(X,_objectSpread2$1(_objectSpread2$1({},Z),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return ee;var ie=createVNode(Portal$1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return createVNode(Fragment,null,[ie,ee])}});var _excluded$w=["empty"],getBuiltInPlacements=function(H){var U=H===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:U,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:U,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:U,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:U,adjustY:1}}}},SelectTrigger=defineComponent({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:PropTypes$1.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:PropTypes$1.oneOfType([Number,Boolean]).def(!0),popupElement:PropTypes$1.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose,Z=computed(function(){var ee=H.dropdownMatchSelectWidth;return getBuiltInPlacements(ee)}),Q=ref();return X({getPopupElement:function(){return Q.value}}),function(){var ee=_objectSpread2$1(_objectSpread2$1({},H),G),ie=ee.empty,te=ie===void 0?!1:ie,ne=_objectWithoutProperties$4(ee,_excluded$w),ae=ne.visible,oe=ne.dropdownAlign,se=ne.prefixCls,le=ne.popupElement,ce=ne.dropdownClassName,ue=ne.dropdownStyle,de=ne.direction,ve=de===void 0?"ltr":de,ge=ne.placement,he=ne.dropdownMatchSelectWidth,me=ne.containerWidth,_e=ne.dropdownRender,be=ne.animation,pe=ne.transitionName,fe=ne.getPopupContainer,ye=ne.getTriggerDOMNode,$e=ne.onPopupVisibleChange,we=ne.onPopupMouseEnter,Se="".concat(se,"-dropdown"),Te=le;_e&&(Te=_e({menuNode:le,props:H}));var xe=be?"".concat(Se,"-").concat(be):pe,ke=_objectSpread2$1({minWidth:"".concat(me,"px")},ue);return typeof he=="number"?ke.width="".concat(he,"px"):he&&(ke.width="".concat(me,"px")),createVNode(Trigger,_objectSpread2$1(_objectSpread2$1({},H),{},{showAction:$e?["click"]:[],hideAction:$e?["click"]:[],popupPlacement:ge||(ve==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Z.value,prefixCls:Se,popupTransitionName:xe,popupAlign:oe,popupVisible:ae,getPopupContainer:fe,popupClassName:classNames(ce,_defineProperty$M({},"".concat(Se,"-empty"),te)),popupStyle:ke,getTriggerDOMNode:ye,onPopupVisibleChange:$e}),{default:W.default,popup:function(){return createVNode("div",{ref:Q,onMouseenter:we},[Te])}})}}});const SelectTrigger$1=SelectTrigger;var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(H){var U=H.keyCode;if(H.altKey&&!H.ctrlKey||H.metaKey||U>=KeyCode.F1&&U<=KeyCode.F12)return!1;switch(U){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(H){if(H>=KeyCode.ZERO&&H<=KeyCode.NINE||H>=KeyCode.NUM_ZERO&&H<=KeyCode.NUM_MULTIPLY||H>=KeyCode.A&&H<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&H===0)return!0;switch(H){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const KeyCode$1=KeyCode;var TransBtn=function(H,U){var W,G=U.slots,X=H.class,Z=H.customizeIcon,Q=H.customizeIconProps,ee=H.onMousedown,ie=H.onClick,te;return typeof Z=="function"?te=Z(Q):te=Z,createVNode("span",{class:X,onMousedown:function(ae){ae.preventDefault(),ee&&ee(ae)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ie,"aria-hidden":!0},[te!==void 0?te:createVNode("span",{class:X.split(/\s+/).map(function(ne){return"".concat(ne,"-icon")})},[(W=G.default)===null||W===void 0?void 0:W.call(G)])])};TransBtn.inheritAttrs=!1;TransBtn.displayName="TransBtn";TransBtn.props={class:String,customizeIcon:PropTypes$1.any,customizeIconProps:PropTypes$1.any,onMousedown:Function,onClick:Function};const TransBtn$1=TransBtn;function onCompositionStart(C){C.target.composing=!0}function onCompositionEnd(C){!C.target.composing||(C.target.composing=!1,trigger(C.target,"input"))}function trigger(C,H){var U=document.createEvent("HTMLEvents");U.initEvent(H,!0,!0),C.dispatchEvent(U)}function addEventListener$1(C,H,U,W){C.addEventListener(H,U,W)}var antInput={created:function(H,U){(!U.modifiers||!U.modifiers.lazy)&&(addEventListener$1(H,"compositionstart",onCompositionStart),addEventListener$1(H,"compositionend",onCompositionEnd),addEventListener$1(H,"change",onCompositionEnd))}};const antInputDirective=antInput;var inputProps$2={inputRef:PropTypes$1.any,prefixCls:String,id:String,inputElement:PropTypes$1.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),attrs:PropTypes$1.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Input$1=defineComponent({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:inputProps$2,setup:function(H){var U=null,W=inject("VCSelectContainerEvent");return function(){var G,X,Z=H.prefixCls,Q=H.id,ee=H.inputElement,ie=H.disabled,te=H.tabindex,ne=H.autofocus,ae=H.autocomplete,oe=H.editable,se=H.activeDescendantId,le=H.value,ce=H.onKeydown,ue=H.onMousedown,de=H.onChange,ve=H.onPaste,ge=H.onCompositionstart,he=H.onCompositionend,me=H.onFocus,_e=H.onBlur,be=H.open,pe=H.inputRef,fe=H.attrs,ye=ee||withDirectives(createVNode("input",null,null),[[antInputDirective]]),$e=ye.props||{},we=$e.onKeydown,Se=$e.onInput,Te=$e.onFocus,xe=$e.onBlur,ke=$e.onMousedown,Ie=$e.onCompositionstart,Ae=$e.onCompositionend,Me=$e.style;return ye=cloneElement(ye,_extends$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({type:"search"},$e),{},{id:Q,ref:pe,disabled:ie,tabindex:te,autocomplete:ae||"off",autofocus:ne,class:classNames("".concat(Z,"-selection-search-input"),(G=ye)===null||G===void 0||(X=G.props)===null||X===void 0?void 0:X.class),role:"combobox","aria-expanded":be,"aria-haspopup":"listbox","aria-owns":"".concat(Q,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Q,"_list"),"aria-activedescendant":se},fe),{},{value:oe?le:"",readonly:!oe,unselectable:oe?null:"on",style:_objectSpread2$1(_objectSpread2$1({},Me),{},{opacity:oe?null:0}),onKeydown:function(Be){ce(Be),we&&we(Be)},onMousedown:function(Be){ue(Be),ke&&ke(Be)},onInput:function(Be){de(Be),Se&&Se(Be)},onCompositionstart:function(Be){ge(Be),Ie&&Ie(Be)},onCompositionend:function(Be){he(Be),Ae&&Ae(Be)},onPaste:ve,onFocus:function(){clearTimeout(U),Te&&Te(arguments.length<=0?void 0:arguments[0]),me&&me(arguments.length<=0?void 0:arguments[0]),W==null||W.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var Be=arguments.length,Ne=new Array(Be),Ve=0;Ve<Be;Ve++)Ne[Ve]=arguments[Ve];U=setTimeout(function(){xe&&xe(Ne[0]),_e&&_e(Ne[0]),W==null||W.blur(Ne[0])},100)}}),ye.type==="textarea"?{}:{type:"search"}),!0,!0),ye}}});const Input$2=Input$1;var attributes=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
||
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
||
charset checked classid classname colspan cols content contenteditable contextmenu
|
||
controls coords crossorigin data datetime default defer dir disabled download draggable
|
||
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
||
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
||
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
||
mediagroup method min minlength multiple muted name novalidate nonce open
|
||
optimum pattern placeholder poster preload radiogroup readonly rel required
|
||
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
||
summary tabindex target title type usemap value width wmode wrap`,eventsName=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
||
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
||
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
||
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
||
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
||
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
||
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(C,H){return C.indexOf(H)===0}function pickAttrs(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U;H===!1?U={aria:!0,data:!0,attr:!0}:H===!0?U={aria:!0}:U=_objectSpread2$1({},H);var W={};return Object.keys(C).forEach(function(G){(U.aria&&(G==="role"||match$1(G,ariaPrefix))||U.data&&match$1(G,dataPrefix)||U.attr&&(propList.includes(G)||propList.includes(G.toLowerCase())))&&(W[G]=C[G])}),W}var OverflowContextProviderKey=Symbol("OverflowContextProviderKey"),OverflowContextProvider=defineComponent({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(H,U){var W=U.slots;return provide(OverflowContextProviderKey,computed(function(){return H.value})),function(){var G;return(G=W.default)===null||G===void 0?void 0:G.call(W)}}}),useInjectOverflowContext=function(){return inject(OverflowContextProviderKey,computed(function(){return null}))},_excluded$v=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],UNDEFINED=void 0;const Item$2=defineComponent({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:PropTypes$1.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:PropTypes$1.any,invalidate:Boolean},setup:function(H,U){var W=U.slots,G=U.expose,X=computed(function(){return H.responsive&&!H.display}),Z=ref();G({itemNodeRef:Z});function Q(ee){H.registerSize(H.itemKey,ee)}return onUnmounted(function(){Q(null)}),function(){var ee,ie=H.prefixCls,te=H.invalidate,ne=H.item,ae=H.renderItem,oe=H.responsive;H.registerSize,H.itemKey,H.display;var se=H.order,le=H.component,ce=le===void 0?"div":le,ue=_objectWithoutProperties$4(H,_excluded$v),de=(ee=W.default)===null||ee===void 0?void 0:ee.call(W),ve=ae&&ne!==UNDEFINED?ae(ne):de,ge;te||(ge={opacity:X.value?0:1,height:X.value?0:UNDEFINED,overflowY:X.value?"hidden":UNDEFINED,order:oe?se:UNDEFINED,pointerEvents:X.value?"none":UNDEFINED,position:X.value?"absolute":UNDEFINED});var he={};return X.value&&(he["aria-hidden"]=!0),createVNode(ResizeObserver$1,{disabled:!oe,onResize:function(_e){var be=_e.offsetWidth;Q(be)}},{default:function(){return createVNode(ce,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({class:classNames(!te&&ie),style:ge},he),ue),{},{ref:Z}),{default:function(){return[ve]}})}})}}});var _excluded$u=["component"],_excluded2$1=["className"],_excluded3=["class"];const RawItem=defineComponent({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:PropTypes$1.any,title:PropTypes$1.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(H,U){var W=U.slots,G=U.attrs,X=useInjectOverflowContext();return function(){if(!X.value){var Z,Q=H.component,ee=Q===void 0?"div":Q,ie=_objectWithoutProperties$4(H,_excluded$u);return createVNode(ee,_objectSpread2$1(_objectSpread2$1({},ie),G),{default:function(){return[(Z=W.default)===null||Z===void 0?void 0:Z.call(W)]}})}var te=X.value,ne=te.className,ae=_objectWithoutProperties$4(te,_excluded2$1),oe=G.class,se=_objectWithoutProperties$4(G,_excluded3);return createVNode(OverflowContextProvider,{value:null},{default:function(){return[createVNode(Item$2,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({class:classNames(ne,oe)},ae),se),H),W)]}})}}});var _excluded$t=["class","style"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(C){return"+ ".concat(C.length," ...")}var overflowProps=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:PropTypes$1.any,component:String,itemComponent:PropTypes$1.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Overflow=defineComponent({name:"Overflow",inheritAttrs:!1,props:overflowProps(),emits:["visibleChange"],setup:function(H,U){var W=U.attrs,G=U.emit,X=U.slots,Z=computed(function(){return H.ssr==="full"}),Q=ref(null),ee=computed(function(){return Q.value||0}),ie=ref(new Map),te=ref(0),ne=ref(0),ae=ref(0),oe=ref(null),se=ref(null),le=computed(function(){return se.value===null&&Z.value?Number.MAX_SAFE_INTEGER:se.value||0}),ce=ref(!1),ue=computed(function(){return"".concat(H.prefixCls,"-item")}),de=computed(function(){return Math.max(te.value,ne.value)}),ve=computed(function(){return!!(H.data.length&&H.maxCount===RESPONSIVE)}),ge=computed(function(){return H.maxCount===INVALIDATE}),he=computed(function(){return ve.value||typeof H.maxCount=="number"&&H.data.length>H.maxCount}),me=computed(function(){var xe=H.data;return ve.value?Q.value===null&&Z.value?xe=H.data:xe=H.data.slice(0,Math.min(H.data.length,ee.value/H.itemWidth)):typeof H.maxCount=="number"&&(xe=H.data.slice(0,H.maxCount)),xe}),_e=computed(function(){return ve.value?H.data.slice(le.value+1):H.data.slice(me.value.length)}),be=function(ke,Ie){var Ae;return typeof H.itemKey=="function"?H.itemKey(ke):(Ae=H.itemKey&&(ke==null?void 0:ke[H.itemKey]))!==null&&Ae!==void 0?Ae:Ie},pe=computed(function(){return H.renderItem||function(xe){return xe}}),fe=function(ke,Ie){se.value=ke,Ie||(ce.value=ke<H.data.length-1,G("visibleChange",ke))},ye=function(ke,Ie){Q.value=Ie.clientWidth},$e=function(ke,Ie){var Ae=new Map(ie.value);Ie===null?Ae.delete(ke):Ae.set(ke,Ie),ie.value=Ae},we=function(ke,Ie){te.value=ne.value,ne.value=Ie},Se=function(ke,Ie){ae.value=Ie},Te=function(ke){return ie.value.get(be(me.value[ke],ke))};return watch([ee,ie,ne,ae,function(){return H.itemKey},me],function(){if(ee.value&&de.value&&me.value){var xe=ae.value,ke=me.value.length,Ie=ke-1;if(!ke){fe(0),oe.value=null;return}for(var Ae=0;Ae<ke;Ae+=1){var Me=Te(Ae);if(Me===void 0){fe(Ae-1,!0);break}if(xe+=Me,Ie===0&&xe<=ee.value||Ae===Ie-1&&xe+Te(Ie)<=ee.value){fe(Ie),oe.value=null;break}else if(xe+de.value>ee.value){fe(Ae-1),oe.value=xe-Me-ae.value+ne.value;break}}H.suffix&&Te(0)+ae.value>ee.value&&(oe.value=null)}}),function(){var xe=ce.value&&!!_e.value.length,ke=H.itemComponent,Ie=H.renderRawItem,Ae=H.renderRawRest,Me=H.renderRest,Fe=H.prefixCls,Be=Fe===void 0?"rc-overflow":Fe,Ne=H.suffix,Ve=H.component,Le=Ve===void 0?"div":Ve,De=H.id,Je=H.onMousedown,ze=W.class,Ge=W.style,qe=_objectWithoutProperties$4(W,_excluded$t),Ke={};oe.value!==null&&ve.value&&(Ke={position:"absolute",left:"".concat(oe.value,"px"),top:0});var Ee={prefixCls:ue.value,responsive:ve.value,component:ke,invalidate:ge.value},Ce=Ie?function(Qe,Xe){var et=be(Qe,Xe);return createVNode(OverflowContextProvider,{key:et,value:_objectSpread2$1(_objectSpread2$1({},Ee),{},{order:Xe,item:Qe,itemKey:et,registerSize:$e,display:Xe<=le.value})},{default:function(){return[Ie(Qe,Xe)]}})}:function(Qe,Xe){var et=be(Qe,Xe);return createVNode(Item$2,_objectSpread2$1(_objectSpread2$1({},Ee),{},{order:Xe,key:et,item:Qe,renderItem:pe.value,itemKey:et,registerSize:$e,display:Xe<=le.value}),null)},Pe=function(){return null},Re={order:xe?le.value:Number.MAX_SAFE_INTEGER,className:"".concat(ue.value," ").concat(ue.value,"-rest"),registerSize:we,display:xe};if(Ae)Ae&&(Pe=function(){return createVNode(OverflowContextProvider,{value:_objectSpread2$1(_objectSpread2$1({},Ee),Re)},{default:function(){return[Ae(_e.value)]}})});else{var Ze=Me||defaultRenderRest;Pe=function(){return createVNode(Item$2,_objectSpread2$1(_objectSpread2$1({},Ee),Re),{default:function(){return typeof Ze=="function"?Ze(_e.value):Ze}})}}var Oe=function(){var Xe;return createVNode(Le,_objectSpread2$1({id:De,class:classNames(!ge.value&&Be,ze),style:Ge,onMousedown:Je},qe),{default:function(){return[me.value.map(Ce),he.value?Pe():null,Ne&&createVNode(Item$2,_objectSpread2$1(_objectSpread2$1({},Ee),{},{order:le.value,class:"".concat(ue.value,"-suffix"),registerSize:Se,display:!0,style:Ke}),{default:function(){return Ne}}),(Xe=X.default)===null||Xe===void 0?void 0:Xe.call(X)]}})};return createVNode(ResizeObserver$1,{disabled:!ve.value,onResize:ye},{default:Oe})}}});Overflow.Item=RawItem;Overflow.RESPONSIVE=RESPONSIVE;Overflow.INVALIDATE=INVALIDATE;const Overflow$1=Overflow;var TreeSelectLegacyContextPropsKey=Symbol("TreeSelectLegacyContextPropsKey");function useInjectLegacySelectContext(){return inject(TreeSelectLegacyContextPropsKey,{})}var props$1={id:String,prefixCls:String,values:PropTypes$1.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:PropTypes$1.any,placeholder:PropTypes$1.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),removeIcon:PropTypes$1.any,choiceTransitionName:String,maxTagCount:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),maxTagTextLength:Number,maxTagPlaceholder:PropTypes$1.any.def(function(){return function(C){return"+ ".concat(C.length," ...")}}),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},onPreventMouseDown=function(H){H.preventDefault(),H.stopPropagation()},SelectSelector=defineComponent({name:"MultipleSelectSelector",inheritAttrs:!1,props:props$1,setup:function(H){var U=ref(),W=ref(0),G=ref(!1),X=useInjectLegacySelectContext(),Z=computed(function(){return"".concat(H.prefixCls,"-selection")}),Q=computed(function(){return H.open||H.mode==="tags"?H.searchValue:""}),ee=computed(function(){return H.mode==="tags"||H.showSearch&&(H.open||G.value)});onMounted(function(){watch(Q,function(){W.value=U.value.scrollWidth},{flush:"post",immediate:!0})});function ie(oe,se,le,ce,ue){return createVNode("span",{class:classNames("".concat(Z.value,"-item"),_defineProperty$M({},"".concat(Z.value,"-item-disabled"),le)),title:typeof oe=="string"||typeof oe=="number"?oe.toString():void 0},[createVNode("span",{class:"".concat(Z.value,"-item-content")},[se]),ce&&createVNode(TransBtn$1,{class:"".concat(Z.value,"-item-remove"),onMousedown:onPreventMouseDown,onClick:ue,customizeIcon:H.removeIcon},{default:function(){return[createTextVNode("\xD7")]}})])}function te(oe,se,le,ce,ue,de){var ve=function(_e){onPreventMouseDown(_e),H.onToggleOpen(!open)},ge=de;if(X.keyEntities){var he;ge=((he=X.keyEntities[oe])===null||he===void 0?void 0:he.node)||{}}return createVNode("span",{key:oe,onMousedown:ve},[H.tagRender({label:se,value:oe,disabled:le,closable:ce,onClose:ue,option:ge})])}function ne(oe){var se=oe.disabled,le=oe.label,ce=oe.value,ue=oe.option,de=!H.disabled&&!se,ve=le;if(typeof H.maxTagTextLength=="number"&&(typeof le=="string"||typeof le=="number")){var ge=String(ve);ge.length>H.maxTagTextLength&&(ve="".concat(ge.slice(0,H.maxTagTextLength),"..."))}var he=function(_e){var be;_e&&_e.stopPropagation(),(be=H.onRemove)===null||be===void 0||be.call(H,oe)};return typeof H.tagRender=="function"?te(ce,ve,se,de,he,ue):ie(le,ve,se,de,he)}function ae(oe){var se=H.maxTagPlaceholder,le=se===void 0?function(ue){return"+ ".concat(ue.length," ...")}:se,ce=typeof le=="function"?le(oe):le;return ie(ce,ce,!1)}return function(){var oe=H.id,se=H.prefixCls,le=H.values,ce=H.open,ue=H.inputRef,de=H.placeholder,ve=H.disabled,ge=H.autofocus,he=H.autocomplete,me=H.activeDescendantId,_e=H.tabindex,be=H.onInputChange,pe=H.onInputPaste,fe=H.onInputKeyDown,ye=H.onInputMouseDown,$e=H.onInputCompositionStart,we=H.onInputCompositionEnd,Se=createVNode("div",{class:"".concat(Z.value,"-search"),style:{width:W.value+"px"},key:"input"},[createVNode(Input$2,{inputRef:ue,open:ce,prefixCls:se,id:oe,inputElement:null,disabled:ve,autofocus:ge,autocomplete:he,editable:ee.value,activeDescendantId:me,value:Q.value,onKeydown:fe,onMousedown:ye,onChange:be,onPaste:pe,onCompositionstart:$e,onCompositionend:we,tabindex:_e,attrs:pickAttrs(H,!0),onFocus:function(){return G.value=!0},onBlur:function(){return G.value=!1}},null),createVNode("span",{ref:U,class:"".concat(Z.value,"-search-mirror"),"aria-hidden":!0},[Q.value,createTextVNode("\xA0")])]),Te=createVNode(Overflow$1,{prefixCls:"".concat(Z.value,"-overflow"),data:le,renderItem:ne,renderRest:ae,suffix:Se,itemKey:"key",maxCount:H.maxTagCount,key:"overflow"},null);return createVNode(Fragment,null,[Te,!le.length&&!Q.value&&createVNode("span",{class:"".concat(Z.value,"-placeholder")},[de])])}}});const MultipleSelector=SelectSelector;var props={inputElement:PropTypes$1.any,id:String,prefixCls:String,values:PropTypes$1.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:PropTypes$1.any,placeholder:PropTypes$1.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},SingleSelector=defineComponent({name:"SingleSelector",setup:function(H){var U=ref(!1),W=computed(function(){return H.mode==="combobox"}),G=computed(function(){return W.value||H.showSearch}),X=computed(function(){var te=H.searchValue||"";return W.value&&H.activeValue&&!U.value&&(te=H.activeValue),te}),Z=useInjectLegacySelectContext();watch([W,function(){return H.activeValue}],function(){W.value&&(U.value=!1)},{immediate:!0});var Q=computed(function(){return H.mode!=="combobox"&&!H.open&&!H.showSearch?!1:!!X.value}),ee=computed(function(){var te=H.values[0];return te&&(typeof te.label=="string"||typeof te.label=="number")?te.label.toString():void 0}),ie=function(){if(H.values[0])return null;var ne=Q.value?{visibility:"hidden"}:void 0;return createVNode("span",{class:"".concat(H.prefixCls,"-selection-placeholder"),style:ne},[H.placeholder])};return function(){var te,ne=H.inputElement,ae=H.prefixCls,oe=H.id,se=H.values,le=H.inputRef,ce=H.disabled,ue=H.autofocus,de=H.autocomplete,ve=H.activeDescendantId,ge=H.open,he=H.tabindex,me=H.optionLabelRender,_e=H.onInputKeyDown,be=H.onInputMouseDown,pe=H.onInputChange,fe=H.onInputPaste,ye=H.onInputCompositionStart,$e=H.onInputCompositionEnd,we=se[0],Se=null;if(we&&Z.customSlots){var Te,xe,ke,Ie=(Te=we.key)!==null&&Te!==void 0?Te:we.value,Ae=((xe=Z.keyEntities[Ie])===null||xe===void 0?void 0:xe.node)||{};Se=Z.customSlots[(ke=Ae.slots)===null||ke===void 0?void 0:ke.title]||Z.customSlots.title||we.label,typeof Se=="function"&&(Se=Se(Ae))}else Se=me&&we?me(we.option):we==null?void 0:we.label;return createVNode(Fragment,null,[createVNode("span",{class:"".concat(ae,"-selection-search")},[createVNode(Input$2,{inputRef:le,prefixCls:ae,id:oe,open:ge,inputElement:ne,disabled:ce,autofocus:ue,autocomplete:de,editable:G.value,activeDescendantId:ve,value:X.value,onKeydown:_e,onMousedown:be,onChange:function(Fe){U.value=!0,pe(Fe)},onPaste:fe,onCompositionstart:ye,onCompositionend:$e,tabindex:he,attrs:pickAttrs(H,!0)},null)]),!W.value&&we&&!Q.value&&createVNode("span",{class:"".concat(ae,"-selection-item"),title:ee.value},[createVNode(Fragment,{key:(te=we.key)!==null&&te!==void 0?te:we.value},[Se])]),ie()])}}});SingleSelector.props=props;SingleSelector.inheritAttrs=!1;const SingleSelector$1=SingleSelector;function isValidateOpenKey(C){return![KeyCode$1.ESC,KeyCode$1.SHIFT,KeyCode$1.BACKSPACE,KeyCode$1.TAB,KeyCode$1.WIN_KEY,KeyCode$1.ALT,KeyCode$1.META,KeyCode$1.WIN_KEY_RIGHT,KeyCode$1.CTRL,KeyCode$1.SEMICOLON,KeyCode$1.EQUALS,KeyCode$1.CAPS_LOCK,KeyCode$1.CONTEXT_MENU,KeyCode$1.F1,KeyCode$1.F2,KeyCode$1.F3,KeyCode$1.F4,KeyCode$1.F5,KeyCode$1.F6,KeyCode$1.F7,KeyCode$1.F8,KeyCode$1.F9,KeyCode$1.F10,KeyCode$1.F11,KeyCode$1.F12].includes(C)}function useLock(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,H=null,U;onBeforeUnmount(function(){clearTimeout(U)});function W(G){(G||H===null)&&(H=G),clearTimeout(U),U=setTimeout(function(){H=null},C)}return[function(){return H},W]}function createRef(){var C=function H(U){H.current=U};return C}var Selector=defineComponent({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:PropTypes$1.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:PropTypes$1.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),disabled:{type:Boolean,default:void 0},placeholder:PropTypes$1.any,removeIcon:PropTypes$1.any,maxTagCount:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),maxTagTextLength:Number,maxTagPlaceholder:PropTypes$1.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(H,U){var W=U.expose,G=createRef(),X=!1,Z=useLock(0),Q=_slicedToArray$2(Z,2),ee=Q[0],ie=Q[1],te=function(he){var me=he.which;(me===KeyCode$1.UP||me===KeyCode$1.DOWN)&&he.preventDefault(),H.onInputKeyDown&&H.onInputKeyDown(he),me===KeyCode$1.ENTER&&H.mode==="tags"&&!X&&!H.open&&H.onSearchSubmit(he.target.value),isValidateOpenKey(me)&&H.onToggleOpen(!0)},ne=function(){ie(!0)},ae=null,oe=function(he){H.onSearch(he,!0,X)!==!1&&H.onToggleOpen(!0)},se=function(){X=!0},le=function(he){X=!1,H.mode!=="combobox"&&oe(he.target.value)},ce=function(he){var me=he.target.value;if(H.tokenWithEnter&&ae&&/[\r\n]/.test(ae)){var _e=ae.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");me=me.replace(_e,ae)}ae=null,oe(me)},ue=function(he){var me=he.clipboardData,_e=me.getData("text");ae=_e},de=function(he){var me=he.target;if(me!==G.current){var _e=document.body.style.msTouchAction!==void 0;_e?setTimeout(function(){G.current.focus()}):G.current.focus()}},ve=function(he){var me=ee();he.target!==G.current&&!me&&he.preventDefault(),(H.mode!=="combobox"&&(!H.showSearch||!me)||!H.open)&&(H.open&&H.onSearch("",!0,!1),H.onToggleOpen())};return W({focus:function(){G.current.focus()},blur:function(){G.current.blur()}}),function(){var ge=H.prefixCls,he=H.domRef,me=H.mode,_e={inputRef:G,onInputKeyDown:te,onInputMouseDown:ne,onInputChange:ce,onInputPaste:ue,onInputCompositionStart:se,onInputCompositionEnd:le},be=me==="multiple"||me==="tags"?createVNode(MultipleSelector,_objectSpread2$1(_objectSpread2$1({},H),_e),null):createVNode(SingleSelector$1,_objectSpread2$1(_objectSpread2$1({},H),_e),null);return createVNode("div",{ref:he,class:"".concat(ge,"-selector"),onClick:de,onMousedown:ve},[be])}}});const Selector$1=Selector;function useSelectTriggerControl(C,H,U){function W(G){var X,Z,Q,ee=G.target;ee.shadowRoot&&G.composed&&(ee=G.composedPath()[0]||ee);var ie=[(X=C[0])===null||X===void 0?void 0:X.value,(Z=C[1])===null||Z===void 0||(Q=Z.value)===null||Q===void 0?void 0:Q.getPopupElement()];H.value&&ie.every(function(te){return te&&!te.contains(ee)&&te!==ee})&&U(!1)}onMounted(function(){window.addEventListener("mousedown",W)}),onBeforeUnmount(function(){window.removeEventListener("mousedown",W)})}function useDelayReset(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,H=ref(!1),U,W=function(){clearTimeout(U)};onMounted(function(){W()});var G=function(Z,Q){W(),U=setTimeout(function(){H.value=Z,Q&&Q()},C)};return[H,G,W]}var BaseSelectContextKey=Symbol("BaseSelectContextKey");function useProvideBaseSelectProps(C){return provide(BaseSelectContextKey,C)}function useBaseProps(){return inject(BaseSelectContextKey,{})}const isMobile$2=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var C=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(C)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(C==null?void 0:C.substr(0,4)))};function toReactive(C){if(!isRef(C))return reactive(C);var H=new Proxy({},{get:function(W,G,X){return Reflect.get(C.value,G,X)},set:function(W,G,X){return C.value[G]=X,!0},deleteProperty:function(W,G){return Reflect.deleteProperty(C.value,G)},has:function(W,G){return Reflect.has(C.value,G)},ownKeys:function(){return Object.keys(C.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return reactive(H)}var _excluded$s=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],baseSelectPrivateProps=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:PropTypes$1.any,emptyOptions:Boolean}},baseSelectPropsWithoutPrivate=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:PropTypes$1.any,placeholder:PropTypes$1.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:PropTypes$1.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:PropTypes$1.any,clearIcon:PropTypes$1.any,removeIcon:PropTypes$1.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},baseSelectProps=function(){return _objectSpread2$1(_objectSpread2$1({},baseSelectPrivateProps()),baseSelectPropsWithoutPrivate())};function isMultiple(C){return C==="tags"||C==="multiple"}const BaseSelect=defineComponent({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:initDefaultProps$1(baseSelectProps(),{showAction:[],notFoundContent:"Not Found"}),setup:function(H,U){var W=U.attrs,G=U.expose,X=U.slots,Z=computed(function(){return isMultiple(H.mode)}),Q=computed(function(){return H.showSearch!==void 0?H.showSearch:Z.value||H.mode==="combobox"}),ee=ref(!1);onMounted(function(){ee.value=isMobile$2()});var ie=useInjectLegacySelectContext(),te=ref(null),ne=createRef(),ae=ref(null),oe=ref(null),se=ref(null),le=useDelayReset(),ce=_slicedToArray$2(le,3),ue=ce[0],de=ce[1],ve=ce[2],ge=function(){var Ce;(Ce=oe.value)===null||Ce===void 0||Ce.focus()},he=function(){var Ce;(Ce=oe.value)===null||Ce===void 0||Ce.blur()};G({focus:ge,blur:he,scrollTo:function(Ce){var Pe;return(Pe=se.value)===null||Pe===void 0?void 0:Pe.scrollTo(Ce)}});var me=computed(function(){var Ee;if(H.mode!=="combobox")return H.searchValue;var Ce=(Ee=H.displayValues[0])===null||Ee===void 0?void 0:Ee.value;return typeof Ce=="string"||typeof Ce=="number"?String(Ce):""}),_e=H.open!==void 0?H.open:H.defaultOpen,be=ref(_e),pe=ref(_e),fe=function(Ce){be.value=H.open!==void 0?H.open:Ce,pe.value=be.value};watch(function(){return H.open},function(){fe(H.open)});var ye=computed(function(){return!H.notFoundContent&&H.emptyOptions});watchEffect(function(){pe.value=be.value,(H.disabled||ye.value&&pe.value&&H.mode==="combobox")&&(pe.value=!1)});var $e=computed(function(){return ye.value?!1:pe.value}),we=function(Ce){var Pe=Ce!==void 0?Ce:!pe.value;be.value!==Pe&&!H.disabled&&(fe(Pe),H.onDropdownVisibleChange&&H.onDropdownVisibleChange(Pe))},Se=computed(function(){return(H.tokenSeparators||[]).some(function(Ee){return[`
|
||
`,`\r
|
||
`].includes(Ee)})}),Te=function(Ce,Pe,Re){var Ze,Oe=!0,Qe=Ce;(Ze=H.onActiveValueChange)===null||Ze===void 0||Ze.call(H,null);var Xe=Re?null:getSeparatedContent(Ce,H.tokenSeparators);if(H.mode!=="combobox"&&Xe){var et;Qe="",(et=H.onSearchSplit)===null||et===void 0||et.call(H,Xe),we(!1),Oe=!1}return H.onSearch&&me.value!==Qe&&H.onSearch(Qe,{source:Pe?"typing":"effect"}),Oe},xe=function(Ce){var Pe;!Ce||!Ce.trim()||(Pe=H.onSearch)===null||Pe===void 0||Pe.call(H,Ce,{source:"submit"})};watch(pe,function(){!pe.value&&!Z.value&&H.mode!=="combobox"&&Te("",!1,!1)},{immediate:!0,flush:"post"}),watch(function(){return H.disabled},function(){be.value&&!!H.disabled&&fe(!1)},{immediate:!0});var ke=useLock(),Ie=_slicedToArray$2(ke,2),Ae=Ie[0],Me=Ie[1],Fe=function(Ce){var Pe,Re=Ae(),Ze=Ce.which;if(Ze===KeyCode$1.ENTER&&(H.mode!=="combobox"&&Ce.preventDefault(),pe.value||we(!0)),Me(!!me.value),Ze===KeyCode$1.BACKSPACE&&!Re&&Z.value&&!me.value&&H.displayValues.length){for(var Oe=_toConsumableArray$1(H.displayValues),Qe=null,Xe=Oe.length-1;Xe>=0;Xe-=1){var et=Oe[Xe];if(!et.disabled){Oe.splice(Xe,1),Qe=et;break}}Qe&&H.onDisplayValuesChange(Oe,{type:"remove",values:[Qe]})}for(var We=arguments.length,He=new Array(We>1?We-1:0),Ye=1;Ye<We;Ye++)He[Ye-1]=arguments[Ye];if(pe.value&&se.value){var nt;(nt=se.value).onKeydown.apply(nt,[Ce].concat(He))}(Pe=H.onKeydown)===null||Pe===void 0||Pe.call.apply(Pe,[H,Ce].concat(He))},Be=function(Ce){for(var Pe=arguments.length,Re=new Array(Pe>1?Pe-1:0),Ze=1;Ze<Pe;Ze++)Re[Ze-1]=arguments[Ze];if(pe.value&&se.value){var Oe;(Oe=se.value).onKeyup.apply(Oe,[Ce].concat(Re))}H.onKeyup&&H.onKeyup.apply(H,[Ce].concat(Re))},Ne=function(Ce){var Pe=H.displayValues.filter(function(Re){return Re!==Ce});H.onDisplayValuesChange(Pe,{type:"remove",values:[Ce]})},Ve=ref(!1),Le=function(){de(!0),H.disabled||(H.onFocus&&!Ve.value&&H.onFocus.apply(H,arguments),H.showAction&&H.showAction.includes("focus")&&we(!0)),Ve.value=!0},De=function(){if(de(!1,function(){Ve.value=!1,we(!1)}),!H.disabled){var Ce=me.value;Ce&&(H.mode==="tags"?H.onSearch(Ce,{source:"submit"}):H.mode==="multiple"&&H.onSearch("",{source:"blur"})),H.onBlur&&H.onBlur.apply(H,arguments)}};provide("VCSelectContainerEvent",{focus:Le,blur:De});var Je=[];onMounted(function(){Je.forEach(function(Ee){return clearTimeout(Ee)}),Je.splice(0,Je.length)}),onBeforeUnmount(function(){Je.forEach(function(Ee){return clearTimeout(Ee)}),Je.splice(0,Je.length)});var ze=function(Ce){var Pe,Re,Ze=Ce.target,Oe=(Pe=ae.value)===null||Pe===void 0?void 0:Pe.getPopupElement();if(Oe&&Oe.contains(Ze)){var Qe=setTimeout(function(){var He=Je.indexOf(Qe);if(He!==-1&&Je.splice(He,1),ve(),!ee.value&&!Oe.contains(document.activeElement)){var Ye;(Ye=oe.value)===null||Ye===void 0||Ye.focus()}});Je.push(Qe)}for(var Xe=arguments.length,et=new Array(Xe>1?Xe-1:0),We=1;We<Xe;We++)et[We-1]=arguments[We];(Re=H.onMousedown)===null||Re===void 0||Re.call.apply(Re,[H,Ce].concat(et))},Ge=ref(null),qe=getCurrentInstance(),Ke=function(){qe.update()};return onMounted(function(){watch($e,function(){if($e.value){var Ee,Ce=Math.ceil((Ee=te.value)===null||Ee===void 0?void 0:Ee.offsetWidth);Ge.value!==Ce&&!Number.isNaN(Ce)&&(Ge.value=Ce)}},{immediate:!0,flush:"post"})}),useSelectTriggerControl([te,ae],$e,we),useProvideBaseSelectProps(toReactive(_objectSpread2$1(_objectSpread2$1({},toRefs(H)),{},{open:pe,triggerOpen:$e,showSearch:Q,multiple:Z,toggleOpen:we}))),function(){var Ee,Ce=_objectSpread2$1(_objectSpread2$1({},H),W),Pe=Ce.prefixCls,Re=Ce.id;Ce.open,Ce.defaultOpen;var Ze=Ce.mode;Ce.showSearch,Ce.searchValue,Ce.onSearch;var Oe=Ce.allowClear,Qe=Ce.clearIcon,Xe=Ce.showArrow,et=Ce.inputIcon,We=Ce.disabled,He=Ce.loading,Ye=Ce.getInputElement,nt=Ce.getPopupContainer,tt=Ce.placement,at=Ce.animation,St=Ce.transitionName,st=Ce.dropdownStyle,it=Ce.dropdownClassName,pt=Ce.dropdownMatchSelectWidth,wt=Ce.dropdownRender,xt=Ce.dropdownAlign;Ce.showAction;var mt=Ce.direction;Ce.tokenSeparators;var gt=Ce.tagRender,lt=Ce.optionLabelRender;Ce.onPopupScroll,Ce.onDropdownVisibleChange,Ce.onFocus,Ce.onBlur,Ce.onKeyup,Ce.onKeydown,Ce.onMousedown;var ct=Ce.onClear,vt=Ce.omitDomProps,_t=Ce.getRawInputElement,rt=Ce.displayValues,ut=Ce.onDisplayValuesChange,ot=Ce.emptyOptions,Tt=Ce.activeDescendantId,ft=Ce.activeValue,Ct=Ce.OptionList,At=_objectWithoutProperties$4(Ce,_excluded$s),Rt=Ze==="combobox"&&Ye&&Ye()||null,It=typeof _t=="function"&&_t(),Ft=_objectSpread2$1({},At),Pt;It&&(Pt=function(Xt){we(Xt)}),DEFAULT_OMIT_PROPS.forEach(function(Zt){delete Ft[Zt]}),vt==null||vt.forEach(function(Zt){delete Ft[Zt]});var Ht=Xe!==void 0?Xe:He||!Z.value&&Ze!=="combobox",Dt;Ht&&(Dt=createVNode(TransBtn$1,{class:classNames("".concat(Pe,"-arrow"),_defineProperty$M({},"".concat(Pe,"-arrow-loading"),He)),customizeIcon:et,customizeIconProps:{loading:He,searchValue:me.value,open:pe.value,focused:ue.value,showSearch:Q.value}},null));var jt,on=function(){ct==null||ct(),ut([],{type:"clear",values:rt}),Te("",!1,!1)};!We&&Oe&&(rt.length||me.value)&&(jt=createVNode(TransBtn$1,{class:"".concat(Pe,"-clear"),onMousedown:on,customizeIcon:Qe},{default:function(){return[createTextVNode("\xD7")]}}));var un=createVNode(Ct,{ref:se},_objectSpread2$1(_objectSpread2$1({},ie.customSlots),{},{option:X.option})),Yt=classNames(Pe,W.class,(Ee={},_defineProperty$M(Ee,"".concat(Pe,"-focused"),ue.value),_defineProperty$M(Ee,"".concat(Pe,"-multiple"),Z.value),_defineProperty$M(Ee,"".concat(Pe,"-single"),!Z.value),_defineProperty$M(Ee,"".concat(Pe,"-allow-clear"),Oe),_defineProperty$M(Ee,"".concat(Pe,"-show-arrow"),Ht),_defineProperty$M(Ee,"".concat(Pe,"-disabled"),We),_defineProperty$M(Ee,"".concat(Pe,"-loading"),He),_defineProperty$M(Ee,"".concat(Pe,"-open"),pe.value),_defineProperty$M(Ee,"".concat(Pe,"-customize-input"),Rt),_defineProperty$M(Ee,"".concat(Pe,"-show-search"),Q.value),Ee)),Wt=createVNode(SelectTrigger$1,{ref:ae,disabled:We,prefixCls:Pe,visible:$e.value,popupElement:un,containerWidth:Ge.value,animation:at,transitionName:St,dropdownStyle:st,dropdownClassName:it,direction:mt,dropdownMatchSelectWidth:pt,dropdownRender:wt,dropdownAlign:xt,placement:tt,getPopupContainer:nt,empty:ot,getTriggerDOMNode:function(){return ne.current},onPopupVisibleChange:Pt,onPopupMouseEnter:Ke},{default:function(){return It?isValidElement(It)&&cloneElement(It,{ref:ne},!1,!0):createVNode(Selector$1,_objectSpread2$1(_objectSpread2$1({},H),{},{domRef:ne,prefixCls:Pe,inputElement:Rt,ref:oe,id:Re,showSearch:Q.value,mode:Ze,activeDescendantId:Tt,tagRender:gt,optionLabelRender:lt,values:rt,open:pe.value,onToggleOpen:we,activeValue:ft,searchValue:me.value,onSearch:Te,onSearchSubmit:xe,onRemove:Ne,tokenWithEnter:Se.value}),null)}}),Qt;return It?Qt=Wt:Qt=createVNode("div",_objectSpread2$1(_objectSpread2$1({},Ft),{},{class:Yt,ref:te,onMousedown:ze,onKeydown:Fe,onKeyup:Be}),[ue.value&&!pe.value&&createVNode("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},["".concat(rt.map(function(Zt){var Xt=Zt.label,Jt=Zt.value;return["number","string"].includes(_typeof$3(Xt))?Xt:Jt}).join(", "))]),Wt,Dt,jt]),Qt}}});var Filter=function(H,U){var W,G=H.height,X=H.offset,Z=H.prefixCls,Q=H.onInnerResize,ee=U.slots,ie={},te={display:"flex",flexDirection:"column"};return X!==void 0&&(ie={height:"".concat(G,"px"),position:"relative",overflow:"hidden"},te=_objectSpread2$1(_objectSpread2$1({},te),{},{transform:"translateY(".concat(X,"px)"),position:"absolute",left:0,right:0,top:0})),createVNode("div",{style:ie},[createVNode(ResizeObserver$1,{onResize:function(ae){var oe=ae.offsetHeight;oe&&Q&&Q()}},{default:function(){return[createVNode("div",{style:te,class:classNames(_defineProperty$M({},"".concat(Z,"-holder-inner"),Z))},[(W=ee.default)===null||W===void 0?void 0:W.call(ee)])]}})])};Filter.displayName="Filter";Filter.inheritAttrs=!1;Filter.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Filler=Filter;var Item=function(H,U){var W,G=H.setRef,X=U.slots,Z=flattenChildren((W=X.default)===null||W===void 0?void 0:W.call(X));return Z&&Z.length?cloneVNode(Z[0],{ref:G}):Z};Item.props={setRef:{type:Function,default:function(){}}};const Item$1=Item;var MIN_SIZE=20;function getPageY(C){return"touches"in C?C.touches[0].pageY:C.pageY}const ScrollBar=defineComponent({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:function(){return{moveRaf:null,scrollbarRef:createRef(),thumbRef:createRef(),visibleTimeout:null,state:reactive({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler:function(){this.delayHidden()},flush:"post"}},mounted:function(){var H,U;(H=this.scrollbarRef.current)===null||H===void 0||H.addEventListener("touchstart",this.onScrollbarTouchStart,supportsPassive$1?{passive:!1}:!1),(U=this.thumbRef.current)===null||U===void 0||U.addEventListener("touchstart",this.onMouseDown,supportsPassive$1?{passive:!1}:!1)},beforeUnmount:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden:function(){var H=this;clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(function(){H.state.visible=!1},2e3)},onScrollbarTouchStart:function(H){H.preventDefault()},onContainerMouseDown:function(H){H.stopPropagation(),H.preventDefault()},patchEvents:function(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,supportsPassive$1?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents:function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,supportsPassive$1?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,supportsPassive$1?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,supportsPassive$1?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp),wrapperRaf.cancel(this.moveRaf)},onMouseDown:function(H){var U=this.$props.onStartMove;_extends$1(this.state,{dragging:!0,pageY:getPageY(H),startTop:this.getTop()}),U(),this.patchEvents(),H.stopPropagation(),H.preventDefault()},onMouseMove:function(H){var U=this.state,W=U.dragging,G=U.pageY,X=U.startTop,Z=this.$props.onScroll;if(wrapperRaf.cancel(this.moveRaf),W){var Q=getPageY(H)-G,ee=X+Q,ie=this.getEnableScrollRange(),te=this.getEnableHeightRange(),ne=te?ee/te:0,ae=Math.ceil(ne*ie);this.moveRaf=wrapperRaf(function(){Z(ae)})}},onMouseUp:function(){var H=this.$props.onStopMove;this.state.dragging=!1,H(),this.removeEvents()},getSpinHeight:function(){var H=this.$props,U=H.height,W=H.count,G=U/W*10;return G=Math.max(G,MIN_SIZE),G=Math.min(G,U/2),Math.floor(G)},getEnableScrollRange:function(){var H=this.$props,U=H.scrollHeight,W=H.height;return U-W||0},getEnableHeightRange:function(){var H=this.$props.height,U=this.getSpinHeight();return H-U||0},getTop:function(){var H=this.$props.scrollTop,U=this.getEnableScrollRange(),W=this.getEnableHeightRange();if(H===0||U===0)return 0;var G=H/U;return G*W},showScroll:function(){var H=this.$props,U=H.height,W=H.scrollHeight;return W>U}},render:function(){var H=this.state,U=H.dragging,W=H.visible,G=this.$props.prefixCls,X=this.getSpinHeight()+"px",Z=this.getTop()+"px",Q=this.showScroll(),ee=Q&&W;return createVNode("div",{ref:this.scrollbarRef,class:classNames("".concat(G,"-scrollbar"),_defineProperty$M({},"".concat(G,"-scrollbar-show"),Q)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:ee?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[createVNode("div",{ref:this.thumbRef,class:classNames("".concat(G,"-scrollbar-thumb"),_defineProperty$M({},"".concat(G,"-scrollbar-thumb-moving"),U)),style:{width:"100%",height:X,top:Z,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function useHeights(C,H,U,W){var G=new Map,X=new Map,Z=ref(Symbol("update"));watch(C,function(){Z.value=Symbol("update")});var Q=0;function ee(){Q+=1;var te=Q;Promise.resolve().then(function(){te===Q&&G.forEach(function(ne,ae){if(ne&&ne.offsetParent){var oe=ne.offsetHeight;X.get(ae)!==oe&&(Z.value=Symbol("update"),X.set(ae,ne.offsetHeight))}})})}function ie(te,ne){var ae=H(te),oe=G.get(ae);ne?(G.set(ae,ne.$el||ne),ee()):G.delete(ae),!oe!=!ne&&(ne?U==null||U(te):W==null||W(te))}return[ie,ee,X,Z]}function useScrollTo(C,H,U,W,G,X,Z,Q){var ee;return function(ie){if(ie==null){Q();return}wrapperRaf.cancel(ee);var te=H.value,ne=W.itemHeight;if(typeof ie=="number")Z(ie);else if(ie&&_typeof$3(ie)==="object"){var ae,oe=ie.align;"index"in ie?ae=ie.index:ae=te.findIndex(function(ue){return G(ue)===ie.key});var se=ie.offset,le=se===void 0?0:se,ce=function ue(de,ve){if(!(de<0||!C.value)){var ge=C.value.clientHeight,he=!1,me=ve;if(ge){for(var _e=ve||oe,be=0,pe=0,fe=0,ye=Math.min(te.length,ae),$e=0;$e<=ye;$e+=1){var we=G(te[$e]);pe=be;var Se=U.get(we);fe=pe+(Se===void 0?ne:Se),be=fe,$e===ae&&Se===void 0&&(he=!0)}var Te=C.value.scrollTop,xe=null;switch(_e){case"top":xe=pe-le;break;case"bottom":xe=fe-ge+le;break;default:{var ke=Te+ge;pe<Te?me="top":fe>ke&&(me="bottom")}}xe!==null&&xe!==Te&&Z(xe)}ee=wrapperRaf(function(){he&&X(),ue(de-1,me)})}};ce(5)}}}var isFF=(typeof navigator>"u"?"undefined":_typeof$3(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const isFF$1=isFF,useOriginScroll=function(C,H){var U=!1,W=null;function G(){clearTimeout(W),U=!0,W=setTimeout(function(){U=!1},50)}return function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=X<0&&C.value||X>0&&H.value;return Z&&Q?(clearTimeout(W),U=!1):(!Q||U)&&G(),!U&&Q}};function useFrameWheel(C,H,U,W){var G=0,X=null,Z=null,Q=!1,ee=useOriginScroll(H,U);function ie(ne){if(!!C.value){wrapperRaf.cancel(X);var ae=ne.deltaY;G+=ae,Z=ae,!ee(ae)&&(isFF$1||ne.preventDefault(),X=wrapperRaf(function(){var oe=Q?10:1;W(G*oe),G=0}))}}function te(ne){!C.value||(Q=ne.detail===Z)}return[ie,te]}var SMOOTH_PTG=14/15;function useMobileTouchMove(C,H,U){var W=!1,G=0,X=null,Z=null,Q=function(){X&&(X.removeEventListener("touchmove",ee),X.removeEventListener("touchend",ie))},ee=function(oe){if(W){var se=Math.ceil(oe.touches[0].pageY),le=G-se;G=se,U(le)&&oe.preventDefault(),clearInterval(Z),Z=setInterval(function(){le*=SMOOTH_PTG,(!U(le,!0)||Math.abs(le)<=.1)&&clearInterval(Z)},16)}},ie=function(){W=!1,Q()},te=function(oe){Q(),oe.touches.length===1&&!W&&(W=!0,G=Math.ceil(oe.touches[0].pageY),X=oe.target,X.addEventListener("touchmove",ee,{passive:!1}),X.addEventListener("touchend",ie))},ne=function(){};onMounted(function(){document.addEventListener("touchmove",ne,{passive:!1}),watch(C,function(ae){H.value.removeEventListener("touchstart",te),Q(),clearInterval(Z),ae&&H.value.addEventListener("touchstart",te,{passive:!1})},{immediate:!0})}),onBeforeUnmount(function(){document.removeEventListener("touchmove",ne)})}var _excluded$r=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],EMPTY_DATA$1=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function renderChildren(C,H,U,W,G,X){var Z=X.getKey;return C.slice(H,U+1).map(function(Q,ee){var ie=H+ee,te=G(Q,ie,{}),ne=Z(Q);return createVNode(Item$1,{key:ne,setRef:function(oe){return W(Q,oe)}},{default:function(){return[te]}})})}var List$1=defineComponent({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:PropTypes$1.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(H,U){var W=U.expose,G=computed(function(){var Ne=H.height,Ve=H.itemHeight,Le=H.virtual;return!!(Le!==!1&&Ne&&Ve)}),X=computed(function(){var Ne=H.height,Ve=H.itemHeight,Le=H.data;return G.value&&Le&&Ve*Le.length>Ne}),Z=reactive({scrollTop:0,scrollMoving:!1}),Q=computed(function(){return H.data||EMPTY_DATA$1}),ee=shallowRef([]);watch(Q,function(){ee.value=toRaw(Q.value).slice()},{immediate:!0});var ie=shallowRef(function(Ne){});watch(function(){return H.itemKey},function(Ne){typeof Ne=="function"?ie.value=Ne:ie.value=function(Ve){return Ve==null?void 0:Ve[Ne]}},{immediate:!0});var te=ref(),ne=ref(),ae=ref(),oe=function(Ve){return ie.value(Ve)},se={getKey:oe};function le(Ne){var Ve;typeof Ne=="function"?Ve=Ne(Z.scrollTop):Ve=Ne;var Le=pe(Ve);te.value&&(te.value.scrollTop=Le),Z.scrollTop=Le}var ce=useHeights(ee,oe,null,null),ue=_slicedToArray$2(ce,4),de=ue[0],ve=ue[1],ge=ue[2],he=ue[3],me=reactive({scrollHeight:void 0,start:0,end:0,offset:void 0}),_e=ref(0);onMounted(function(){nextTick$1(function(){var Ne;_e.value=((Ne=ne.value)===null||Ne===void 0?void 0:Ne.offsetHeight)||0})}),onUpdated(function(){nextTick$1(function(){var Ne;_e.value=((Ne=ne.value)===null||Ne===void 0?void 0:Ne.offsetHeight)||0})}),watch([G,ee],function(){G.value||_extends$1(me,{scrollHeight:void 0,start:0,end:ee.value.length-1,offset:void 0})},{immediate:!0}),watch([G,ee,_e,X],function(){G.value&&!X.value&&_extends$1(me,{scrollHeight:_e.value,start:0,end:ee.value.length-1,offset:void 0})},{immediate:!0}),watch([X,G,function(){return Z.scrollTop},ee,he,function(){return H.height},_e],function(){if(!(!G.value||!X.value)){for(var Ne=0,Ve,Le,De,Je=ee.value.length,ze=ee.value,Ge=Z.scrollTop,qe=H.itemHeight,Ke=H.height,Ee=Ge+Ke,Ce=0;Ce<Je;Ce+=1){var Pe=ze[Ce],Re=oe(Pe),Ze=ge.get(Re);Ze===void 0&&(Ze=qe);var Oe=Ne+Ze;Ve===void 0&&Oe>=Ge&&(Ve=Ce,Le=Ne),De===void 0&&Oe>Ee&&(De=Ce),Ne=Oe}Ve===void 0&&(Ve=0,Le=0),De===void 0&&(De=Je-1),De=Math.min(De+1,Je),_extends$1(me,{scrollHeight:Ne,start:Ve,end:De,offset:Le})}},{immediate:!0});var be=computed(function(){return me.scrollHeight-H.height});function pe(Ne){var Ve=Ne;return Number.isNaN(be.value)||(Ve=Math.min(Ve,be.value)),Ve=Math.max(Ve,0),Ve}var fe=computed(function(){return Z.scrollTop<=0}),ye=computed(function(){return Z.scrollTop>=be.value}),$e=useOriginScroll(fe,ye);function we(Ne){var Ve=Ne;le(Ve)}function Se(Ne){var Ve,Le=Ne.currentTarget.scrollTop;Math.abs(Le-Z.scrollTop)>=1&&le(Le),(Ve=H.onScroll)===null||Ve===void 0||Ve.call(H,Ne)}var Te=useFrameWheel(G,fe,ye,function(Ne){le(function(Ve){var Le=Ve+Ne;return Le})}),xe=_slicedToArray$2(Te,2),ke=xe[0],Ie=xe[1];useMobileTouchMove(G,te,function(Ne,Ve){return $e(Ne,Ve)?!1:(ke({preventDefault:function(){},deltaY:Ne}),!0)});function Ae(Ne){G.value&&Ne.preventDefault()}var Me=function(){te.value&&(te.value.removeEventListener("wheel",ke,supportsPassive$1?{passive:!1}:!1),te.value.removeEventListener("DOMMouseScroll",Ie),te.value.removeEventListener("MozMousePixelScroll",Ae))};watchEffect(function(){nextTick$1(function(){te.value&&(Me(),te.value.addEventListener("wheel",ke,supportsPassive$1?{passive:!1}:!1),te.value.addEventListener("DOMMouseScroll",Ie),te.value.addEventListener("MozMousePixelScroll",Ae))})}),onBeforeUnmount(function(){Me()});var Fe=useScrollTo(te,ee,ge,H,oe,ve,le,function(){var Ne;(Ne=ae.value)===null||Ne===void 0||Ne.delayHidden()});W({scrollTo:Fe});var Be=computed(function(){var Ne=null;return H.height&&(Ne=_objectSpread2$1(_defineProperty$M({},H.fullHeight?"height":"maxHeight",H.height+"px"),ScrollStyle),G.value&&(Ne.overflowY="hidden",Z.scrollMoving&&(Ne.pointerEvents="none"))),Ne});return watch([function(){return me.start},function(){return me.end},ee],function(){if(H.onVisibleChange){var Ne=ee.value.slice(me.start,me.end+1);H.onVisibleChange(Ne,ee.value)}},{flush:"post"}),{state:Z,mergedData:ee,componentStyle:Be,onFallbackScroll:Se,onScrollBar:we,componentRef:te,useVirtual:G,calRes:me,collectHeight:ve,setInstance:de,sharedConfig:se,scrollBarRef:ae,fillerInnerRef:ne}},render:function(){var H=this,U=_objectSpread2$1(_objectSpread2$1({},this.$props),this.$attrs),W=U.prefixCls,G=W===void 0?"rc-virtual-list":W,X=U.height;U.itemHeight,U.fullHeight,U.data,U.itemKey,U.virtual;var Z=U.component,Q=Z===void 0?"div":Z;U.onScroll;var ee=U.children,ie=ee===void 0?this.$slots.default:ee,te=U.style,ne=U.class,ae=_objectWithoutProperties$4(U,_excluded$r),oe=classNames(G,ne),se=this.state.scrollTop,le=this.calRes,ce=le.scrollHeight,ue=le.offset,de=le.start,ve=le.end,ge=this.componentStyle,he=this.onFallbackScroll,me=this.onScrollBar,_e=this.useVirtual,be=this.collectHeight,pe=this.sharedConfig,fe=this.setInstance,ye=this.mergedData;return createVNode("div",_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},te),{},{position:"relative"}),class:oe},ae),[createVNode(Q,{class:"".concat(G,"-holder"),style:ge,ref:"componentRef",onScroll:he},{default:function(){return[createVNode(Filler,{prefixCls:G,height:ce,offset:ue,onInnerResize:be,ref:"fillerInnerRef"},{default:function(){return renderChildren(ye,de,ve,fe,ie,pe)}})]}}),_e&&createVNode(ScrollBar,{ref:"scrollBarRef",prefixCls:G,scrollTop:se,height:X,scrollHeight:ce,count:ye.length,onScroll:me,onStartMove:function(){H.state.scrollMoving=!0},onStopMove:function(){H.state.scrollMoving=!1}},null)])}});const List$2=List$1;function useMemo(C,H,U){var W=ref(C());return watch(H,function(G,X){U?U(G,X)&&(W.value=C()):W.value=C()}),W}function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var SelectContextKey=Symbol("SelectContextKey");function useProvideSelectProps(C){return provide(SelectContextKey,C)}function useSelectProps(){return inject(SelectContextKey,{})}var _excluded$q=["disabled","title","children","style","class","className"];function isTitleType(C){return typeof C=="string"||typeof C=="number"}var OptionList=defineComponent({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(H,U){var W=U.expose,G=U.slots,X=useBaseProps(),Z=useSelectProps(),Q=computed(function(){return"".concat(X.prefixCls,"-item")}),ee=useMemo(function(){return Z.flattenOptions},[function(){return X.open},function(){return Z.flattenOptions}],function(me){return me[0]}),ie=createRef(),te=function(_e){_e.preventDefault()},ne=function(_e){ie.current&&ie.current.scrollTo(typeof _e=="number"?{index:_e}:_e)},ae=function(_e){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pe=ee.value.length,fe=0;fe<pe;fe+=1){var ye=(_e+fe*be+pe)%pe,$e=ee.value[ye],we=$e.group,Se=$e.data;if(!we&&!Se.disabled)return ye}return-1},oe=reactive({activeIndex:ae(0)}),se=function(_e){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;oe.activeIndex=_e;var pe={source:be?"keyboard":"mouse"},fe=ee.value[_e];if(!fe){Z.onActiveValue(null,-1,pe);return}Z.onActiveValue(fe.value,_e,pe)};watch([function(){return ee.value.length},function(){return X.searchValue}],function(){se(Z.defaultActiveFirstOption!==!1?ae(0):-1)},{immediate:!0});var le=function(_e){return Z.rawValues.has(_e)&&X.mode!=="combobox"};watch([function(){return X.open},function(){return X.searchValue}],function(){if(!X.multiple&&X.open&&Z.rawValues.size===1){var me=Array.from(Z.rawValues)[0],_e=toRaw(ee.value).findIndex(function(be){var pe=be.data;return pe[Z.fieldNames.value]===me});_e!==-1&&(se(_e),nextTick$1(function(){ne(_e)}))}X.open&&nextTick$1(function(){var be;(be=ie.current)===null||be===void 0||be.scrollTo(void 0)})},{immediate:!0,flush:"post"});var ce=function(_e){_e!==void 0&&Z.onSelect(_e,{selected:!Z.rawValues.has(_e)}),X.multiple||X.toggleOpen(!1)},ue=function(_e){return typeof _e.label=="function"?_e.label():_e.label};function de(me){var _e=ee.value[me];if(!_e)return null;var be=_e.data||{},pe=be.value,fe=_e.group,ye=pickAttrs(be,!0),$e=ue(_e);return _e?createVNode("div",_objectSpread2$1(_objectSpread2$1({"aria-label":typeof $e=="string"&&!fe?$e:null},ye),{},{key:me,role:fe?"presentation":"option",id:"".concat(X.id,"_list_").concat(me),"aria-selected":le(pe)}),[pe]):null}var ve=function(_e){var be=_e.which,pe=_e.ctrlKey;switch(be){case KeyCode$1.N:case KeyCode$1.P:case KeyCode$1.UP:case KeyCode$1.DOWN:{var fe=0;if(be===KeyCode$1.UP?fe=-1:be===KeyCode$1.DOWN?fe=1:isPlatformMac()&&pe&&(be===KeyCode$1.N?fe=1:be===KeyCode$1.P&&(fe=-1)),fe!==0){var ye=ae(oe.activeIndex+fe,fe);ne(ye),se(ye,!0)}break}case KeyCode$1.ENTER:{var $e=ee.value[oe.activeIndex];$e&&!$e.data.disabled?ce($e.value):ce(void 0),X.open&&_e.preventDefault();break}case KeyCode$1.ESC:X.toggleOpen(!1),X.open&&_e.stopPropagation()}},ge=function(){},he=function(_e){ne(_e)};return W({onKeydown:ve,onKeyup:ge,scrollTo:he}),function(){var me=X.id,_e=X.notFoundContent,be=X.onPopupScroll,pe=Z.menuItemSelectedIcon,fe=Z.fieldNames,ye=Z.virtual,$e=Z.listHeight,we=Z.listItemHeight,Se=G.option,Te=oe.activeIndex,xe=Object.keys(fe).map(function(ke){return fe[ke]});return ee.value.length===0?createVNode("div",{role:"listbox",id:"".concat(me,"_list"),class:"".concat(Q.value,"-empty"),onMousedown:te},[_e]):createVNode(Fragment,null,[createVNode("div",{role:"listbox",id:"".concat(me,"_list"),style:{height:0,width:0,overflow:"hidden"}},[de(Te-1),de(Te),de(Te+1)]),createVNode(List$2,{itemKey:"key",ref:ie,data:ee.value,height:$e,itemHeight:we,fullHeight:!1,onMousedown:te,onScroll:be,virtual:ye},{default:function(Ie,Ae){var Me,Fe=Ie.group,Be=Ie.groupOption,Ne=Ie.data,Ve=Ie.value,Le=Ne.key,De=typeof Ie.label=="function"?Ie.label():Ie.label;if(Fe){var Je,ze=(Je=Ne.title)!==null&&Je!==void 0?Je:isTitleType(De)&&De;return createVNode("div",{class:classNames(Q.value,"".concat(Q.value,"-group")),title:ze},[Se?Se(Ne):De!==void 0?De:Le])}var Ge=Ne.disabled,qe=Ne.title;Ne.children;var Ke=Ne.style,Ee=Ne.class,Ce=Ne.className,Pe=_objectWithoutProperties$4(Ne,_excluded$q),Re=omit$2(Pe,xe),Ze=le(Ve),Oe="".concat(Q.value,"-option"),Qe=classNames(Q.value,Oe,Ee,Ce,(Me={},_defineProperty$M(Me,"".concat(Oe,"-grouped"),Be),_defineProperty$M(Me,"".concat(Oe,"-active"),Te===Ae&&!Ge),_defineProperty$M(Me,"".concat(Oe,"-disabled"),Ge),_defineProperty$M(Me,"".concat(Oe,"-selected"),Ze),Me)),Xe=ue(Ie),et=!pe||typeof pe=="function"||Ze,We=typeof Xe=="number"?Xe:Xe||Ve,He=isTitleType(We)?We.toString():void 0;return qe!==void 0&&(He=qe),createVNode("div",_objectSpread2$1(_objectSpread2$1({},Re),{},{"aria-selected":Ze,class:Qe,title:He,onMousemove:function(nt){Pe.onMousemove&&Pe.onMousemove(nt),!(Te===Ae||Ge)&&se(Ae)},onClick:function(nt){Ge||ce(Ve),Pe.onClick&&Pe.onClick(nt)},style:Ke}),[createVNode("div",{class:"".concat(Oe,"-content")},[Se?Se(Ne):We]),isValidElement(pe)||Ze,et&&createVNode(TransBtn$1,{class:"".concat(Q.value,"-option-state"),customizeIcon:pe,customizeIconProps:{isSelected:Ze}},{default:function(){return[Ze?"\u2713":null]}})])}})])}}});const OptionList$1=OptionList;var _excluded$p=["value","disabled"];function convertNodeToOption(C){var H=C.key,U=C.children,W=C.props,G=W.value,X=W.disabled,Z=_objectWithoutProperties$4(W,_excluded$p),Q=U==null?void 0:U.default;return _objectSpread2$1({key:H,value:G!==void 0?G:H,children:Q,disabled:X||X===""},Z)}function convertChildrenToData(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=flattenChildren(C).map(function(W,G){var X;if(!isValidElement(W)||!W.type)return null;var Z=W.type.isSelectOptGroup,Q=W.key,ee=W.children,ie=W.props;if(H||!Z)return convertNodeToOption(W);var te=ee&&ee.default?ee.default():void 0,ne=(ie==null?void 0:ie.label)||((X=ee.label)===null||X===void 0?void 0:X.call(ee))||Q;return _objectSpread2$1(_objectSpread2$1({key:"__RC_SELECT_GRP__".concat(Q===null?G:String(Q),"__")},ie),{},{label:ne,options:convertChildrenToData(te||[])})}).filter(function(W){return W});return U}function useOptions(C,H,U){var W=shallowRef(),G=shallowRef(),X=shallowRef(),Z=shallowRef([]);return watch([C,H],function(){C.value?Z.value=toRaw(C.value).slice():Z.value=convertChildrenToData(H.value)},{immediate:!0,deep:!0}),watchEffect(function(){var Q=Z.value,ee=new Map,ie=new Map,te=U.value;function ne(ae){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=0;se<ae.length;se+=1){var le=ae[se];!le[te.options]||oe?(ee.set(le[te.value],le),ie.set(le[te.label],le)):ne(le[te.options],!0)}}ne(Q),W.value=Q,G.value=ee,X.value=ie}),{options:W,valueOptions:G,labelOptions:X}}var uuid$3=0,isBrowserClient=canUseDom();function getUUID$1(){var C;return isBrowserClient?(C=uuid$3,uuid$3+=1):C="TEST_OR_SSR",C}function useId(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ref(""),H="rc_select_".concat(getUUID$1());return C.value||H}function toArray$6(C){return Array.isArray(C)?C:C!==void 0?[C]:[]}function includes$1(C,H){return toArray$6(C).join("").toUpperCase().includes(H)}const useFilterOptions=function(C,H,U,W,G){return computed(function(){var X=U.value,Z=G==null?void 0:G.value,Q=W==null?void 0:W.value;if(!X||Q===!1)return C.value;var ee=H.value,ie=ee.options,te=ee.label,ne=ee.value,ae=[],oe=typeof Q=="function",se=X.toUpperCase(),le=oe?Q:function(ue,de){return Z?includes$1(de[Z],se):de[ie]?includes$1(de[te!=="children"?te:"label"],se):includes$1(de[ne],se)},ce=oe?function(ue){return injectPropsWithOption(ue)}:function(ue){return ue};return C.value.forEach(function(ue){if(ue[ie]){var de=le(X,ce(ue));if(de)ae.push(ue);else{var ve=ue[ie].filter(function(ge){return le(X,ce(ge))});ve.length&&ae.push(_objectSpread2$1(_objectSpread2$1({},ue),{},_defineProperty$M({},ie,ve)))}return}le(X,ce(ue))&&ae.push(ue)}),ae})},useCache=function(C,H){var U=shallowRef({values:new Map,options:new Map}),W=computed(function(){var X=U.value,Z=X.values,Q=X.options,ee=C.value.map(function(ne){if(ne.label===void 0){var ae;return _objectSpread2$1(_objectSpread2$1({},ne),{},{label:(ae=Z.get(ne.value))===null||ae===void 0?void 0:ae.label})}return ne}),ie=new Map,te=new Map;return ee.forEach(function(ne){ie.set(ne.value,ne),te.set(ne.value,H.value.get(ne.value)||Q.get(ne.value))}),U.value.values=ie,U.value.options=te,ee}),G=function(Z){return H.value.get(Z)||U.value.options.get(Z)};return[W,G]};function useMergedState(C,H){var U=H||{},W=U.defaultValue,G=U.value,X=G===void 0?ref():G,Z=typeof C=="function"?C():C;X.value!==void 0&&(Z=unref(X)),W!==void 0&&(Z=typeof W=="function"?W():W);var Q=ref(Z),ee=ref(Z);watchEffect(function(){var te=X.value!==void 0?X.value:Q.value;H.postState&&(te=H.postState(te)),ee.value=te});function ie(te){var ne=ee.value;Q.value=te,toRaw(ee.value)!==te&&H.onChange&&H.onChange(te,ne)}return watch(X,function(){Q.value=X.value}),[ee,ie]}function useState(C){var H=typeof C=="function"?C():C,U=ref(H);function W(G){U.value=G}return[U,W]}var OMIT_DOM_PROPS=["inputValue"];function selectProps$1(){return _objectSpread2$1(_objectSpread2$1({},baseSelectPropsWithoutPrivate()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:PropTypes$1.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:PropTypes$1.any,defaultValue:PropTypes$1.any,onChange:Function,children:Array})}function isRawValue(C){return!C||_typeof$3(C)!=="object"}const Select$1=defineComponent({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:initDefaultProps$1(selectProps$1(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(H,U){var W=U.expose,G=U.attrs,X=U.slots,Z=useId(toRef(H,"id")),Q=computed(function(){return isMultiple(H.mode)}),ee=computed(function(){return!!(!H.options&&H.children)}),ie=computed(function(){return H.filterOption===void 0&&H.mode==="combobox"?!1:H.filterOption}),te=computed(function(){return fillFieldNames$1(H.fieldNames,ee.value)}),ne=useMergedState("",{value:computed(function(){return H.searchValue!==void 0?H.searchValue:H.inputValue}),postState:function(We){return We||""}}),ae=_slicedToArray$2(ne,2),oe=ae[0],se=ae[1],le=useOptions(toRef(H,"options"),toRef(H,"children"),te),ce=le.valueOptions,ue=le.labelOptions,de=le.options,ve=function(We){var He=toArray$6(We);return He.map(function(Ye){var nt,tt,at,St;if(isRawValue(Ye))nt=Ye;else{var st;at=Ye.key,tt=Ye.label,nt=(st=Ye.value)!==null&&st!==void 0?st:at}var it=ce.value.get(nt);if(it){var pt;tt===void 0&&(tt=it==null?void 0:it[H.optionLabelProp||te.value.label]),at===void 0&&(at=(pt=it==null?void 0:it.key)!==null&&pt!==void 0?pt:nt),St=it==null?void 0:it.disabled}return{label:tt,value:nt,key:at,disabled:St,option:it}})},ge=useMergedState(H.defaultValue,{value:toRef(H,"value")}),he=_slicedToArray$2(ge,2),me=he[0],_e=he[1],be=computed(function(){var et,We=ve(me.value);return H.mode==="combobox"&&!((et=We[0])!==null&&et!==void 0&&et.value)?[]:We}),pe=useCache(be,ce),fe=_slicedToArray$2(pe,2),ye=fe[0],$e=fe[1],we=computed(function(){if(!H.mode&&ye.value.length===1){var et=ye.value[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return ye.value.map(function(We){var He;return _objectSpread2$1(_objectSpread2$1({},We),{},{label:(He=typeof We.label=="function"?We.label():We.label)!==null&&He!==void 0?He:We.value})})}),Se=computed(function(){return new Set(ye.value.map(function(et){return et.value}))});watchEffect(function(){if(H.mode==="combobox"){var et,We=(et=ye.value[0])===null||et===void 0?void 0:et.value;We!=null&&se(String(We))}},{flush:"post"});var Te=function(We,He){var Ye,nt=He!=null?He:We;return Ye={},_defineProperty$M(Ye,te.value.value,We),_defineProperty$M(Ye,te.value.label,nt),Ye},xe=shallowRef();watchEffect(function(){if(H.mode!=="tags"){xe.value=de.value;return}var et=de.value.slice(),We=function(Ye){return ce.value.has(Ye)};_toConsumableArray$1(ye.value).sort(function(He,Ye){return He.value<Ye.value?-1:1}).forEach(function(He){var Ye=He.value;We(Ye)||et.push(Te(Ye,He.label))}),xe.value=et});var ke=useFilterOptions(xe,te,oe,ie,toRef(H,"optionFilterProp")),Ie=computed(function(){return H.mode!=="tags"||!oe.value||ke.value.some(function(et){return et[H.optionFilterProp||"value"]===oe.value})?ke.value:[Te(oe.value)].concat(_toConsumableArray$1(ke.value))}),Ae=computed(function(){return H.filterSort?_toConsumableArray$1(Ie.value).sort(function(et,We){return H.filterSort(et,We)}):Ie.value}),Me=computed(function(){return flattenOptions(Ae.value,{fieldNames:te.value,childrenAsData:ee.value})}),Fe=function(We){var He=ve(We);if(_e(He),H.onChange&&(He.length!==ye.value.length||He.some(function(tt,at){var St;return((St=ye.value[at])===null||St===void 0?void 0:St.value)!==(tt==null?void 0:tt.value)}))){var Ye=H.labelInValue?He.map(function(tt){return _objectSpread2$1(_objectSpread2$1({},tt),{},{originLabel:tt.label,label:typeof tt.label=="function"?tt.label():tt.label})}):He.map(function(tt){return tt.value}),nt=He.map(function(tt){return injectPropsWithOption($e(tt.value))});H.onChange(Q.value?Ye:Ye[0],Q.value?nt:nt[0])}},Be=useState(null),Ne=_slicedToArray$2(Be,2),Ve=Ne[0],Le=Ne[1],De=useState(0),Je=_slicedToArray$2(De,2),ze=Je[0],Ge=Je[1],qe=computed(function(){return H.defaultActiveFirstOption!==void 0?H.defaultActiveFirstOption:H.mode!=="combobox"}),Ke=function(We,He){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=Ye.source,tt=nt===void 0?"keyboard":nt;Ge(He),H.backfill&&H.mode==="combobox"&&We!==null&&tt==="keyboard"&&Le(String(We))},Ee=function(We,He){var Ye=function(){var mt,gt=$e(We),lt=gt==null?void 0:gt[te.value.label];return[H.labelInValue?{label:typeof lt=="function"?lt():lt,originLabel:lt,value:We,key:(mt=gt==null?void 0:gt.key)!==null&&mt!==void 0?mt:We}:We,injectPropsWithOption(gt)]};if(He&&H.onSelect){var nt=Ye(),tt=_slicedToArray$2(nt,2),at=tt[0],St=tt[1];H.onSelect(at,St)}else if(!He&&H.onDeselect){var st=Ye(),it=_slicedToArray$2(st,2),pt=it[0],wt=it[1];H.onDeselect(pt,wt)}},Ce=function(We,He){var Ye,nt=Q.value?He.selected:!0;nt?Ye=Q.value?[].concat(_toConsumableArray$1(ye.value),[We]):[We]:Ye=ye.value.filter(function(tt){return tt.value!==We}),Fe(Ye),Ee(We,nt),H.mode==="combobox"?Le(""):(!Q.value||H.autoClearSearchValue)&&(se(""),Le(""))},Pe=function(We,He){Fe(We),(He.type==="remove"||He.type==="clear")&&He.values.forEach(function(Ye){Ee(Ye.value,!1)})},Re=function(We,He){if(se(We),Le(null),He.source==="submit"){var Ye=(We||"").trim();if(Ye){var nt=Array.from(new Set([].concat(_toConsumableArray$1(Se.value),[Ye])));Fe(nt),Ee(Ye,!0),se("")}return}if(He.source!=="blur"){var tt;H.mode==="combobox"&&Fe(We),(tt=H.onSearch)===null||tt===void 0||tt.call(H,We)}},Ze=function(We){var He=We;H.mode!=="tags"&&(He=We.map(function(nt){var tt=ue.value.get(nt);return tt==null?void 0:tt.value}).filter(function(nt){return nt!==void 0}));var Ye=Array.from(new Set([].concat(_toConsumableArray$1(Se.value),_toConsumableArray$1(He))));Fe(Ye),Ye.forEach(function(nt){Ee(nt,!0)})},Oe=computed(function(){return H.virtual!==!1&&H.dropdownMatchSelectWidth!==!1});useProvideSelectProps(toReactive(_objectSpread2$1(_objectSpread2$1({},le),{},{flattenOptions:Me,onActiveValue:Ke,defaultActiveFirstOption:qe,onSelect:Ce,menuItemSelectedIcon:toRef(H,"menuItemSelectedIcon"),rawValues:Se,fieldNames:te,virtual:Oe,listHeight:toRef(H,"listHeight"),listItemHeight:toRef(H,"listItemHeight"),childrenAsData:ee})));var Qe=ref();W({focus:function(){var We;(We=Qe.value)===null||We===void 0||We.focus()},blur:function(){var We;(We=Qe.value)===null||We===void 0||We.blur()},scrollTo:function(We){var He;(He=Qe.value)===null||He===void 0||He.scrollTo(We)}});var Xe=computed(function(){return omit$2(H,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return createVNode(BaseSelect,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},Xe.value),G),{},{id:Z,prefixCls:H.prefixCls,ref:Qe,omitDomProps:OMIT_DOM_PROPS,mode:H.mode,displayValues:we.value,onDisplayValuesChange:Pe,searchValue:oe.value,onSearch:Re,onSearchSplit:Ze,dropdownMatchSelectWidth:H.dropdownMatchSelectWidth,OptionList:OptionList$1,emptyOptions:!Me.value.length,activeValue:Ve.value,activeDescendantId:"".concat(Z,"_list_").concat(ze.value)}),X)}}});var Option$3=function(){return null};Option$3.isSelectOption=!0;Option$3.displayName="ASelectOption";const Option$4=Option$3;var OptGroup$2=function(){return null};OptGroup$2.isSelectOptGroup=!0;OptGroup$2.displayName="ASelectOptGroup";const OptGroup$3=OptGroup$2;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$w(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$x(C,G,U[G])})}return C}function _defineProperty$x(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var DownOutlined=function(H,U){var W=_objectSpread$w({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$w({},W,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined";DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var CheckOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const CheckOutlinedSvg=CheckOutlined$2;function _objectSpread$v(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$w(C,G,U[G])})}return C}function _defineProperty$w(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CheckOutlined=function(H,U){var W=_objectSpread$v({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$v({},W,{icon:CheckOutlinedSvg}),null)};CheckOutlined.displayName="CheckOutlined";CheckOutlined.inheritAttrs=!1;const CheckOutlined$1=CheckOutlined;var SearchOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const SearchOutlinedSvg=SearchOutlined$2;function _objectSpread$u(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$v(C,G,U[G])})}return C}function _defineProperty$v(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var SearchOutlined=function(H,U){var W=_objectSpread$u({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$u({},W,{icon:SearchOutlinedSvg}),null)};SearchOutlined.displayName="SearchOutlined";SearchOutlined.inheritAttrs=!1;const SearchOutlined$1=SearchOutlined;function getIcons(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=C.loading,W=C.multiple,G=C.prefixCls,X=C.suffixIcon||H.suffixIcon&&H.suffixIcon(),Z=C.clearIcon||H.clearIcon&&H.clearIcon(),Q=C.menuItemSelectedIcon||H.menuItemSelectedIcon&&H.menuItemSelectedIcon(),ee=C.removeIcon||H.removeIcon&&H.removeIcon(),ie=Z;Z||(ie=createVNode(CloseCircleFilled$1,null,null));var te=null;if(X!==void 0)te=X;else if(U)te=createVNode(LoadingOutlined$1,{spin:!0},null);else{var ne="".concat(G,"-suffix");te=function(le){var ce=le.open,ue=le.showSearch;return ce&&ue?createVNode(SearchOutlined$1,{class:ne},null):createVNode(DownOutlined$1,{class:ne},null)}}var ae=null;Q!==void 0?ae=Q:W?ae=createVNode(CheckOutlined$1,null,null):ae=null;var oe=null;return ee!==void 0?oe=ee:oe=createVNode(CloseOutlined$1,null,null),{clearIcon:ie,suffixIcon:te,itemIcon:ae,removeIcon:oe}}var ContextKey$1=Symbol("ContextProps"),InternalContextKey=Symbol("InternalContextProps"),useProvideFormItemContext=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:computed(function(){return!0}),W=ref(new Map),G=function(Q,ee){W.value.set(Q,ee),W.value=new Map(W.value)},X=function(Q){W.value.delete(Q),W.value=new Map(W.value)};watch([U,W],function(){}),provide(ContextKey$1,H),provide(InternalContextKey,{addFormItemField:G,removeFormItemField:X})},defaultContext={id:computed(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},defaultInternalContext={addFormItemField:function(){},removeFormItemField:function(){}},useInjectFormItemContext=function(){var H=inject(InternalContextKey,defaultInternalContext),U=Symbol("FormItemFieldKey"),W=getCurrentInstance();return H.addFormItemField(U,W.type),onBeforeUnmount(function(){H.removeFormItemField(U)}),provide(InternalContextKey,defaultInternalContext),provide(ContextKey$1,defaultContext),inject(ContextKey$1,defaultContext)};const FormItemRest=defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(H,U){var W=U.slots;return provide(InternalContextKey,defaultInternalContext),provide(ContextKey$1,defaultContext),function(){var G;return(G=W.default)===null||G===void 0?void 0:G.call(W)}}});var selectProps=function(){return _objectSpread2$1(_objectSpread2$1({},omit$2(selectProps$1(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:PropTypes$1.any,suffixIcon:PropTypes$1.any,itemIcon:PropTypes$1.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Select=defineComponent({compatConfig:{MODE:3},name:"ASelect",Option:Option$4,OptGroup:OptGroup$3,inheritAttrs:!1,props:initDefaultProps$1(selectProps(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(H,U){var W=U.attrs,G=U.emit,X=U.slots,Z=U.expose,Q=ref(),ee=useInjectFormItemContext(),ie=function(){var fe;(fe=Q.value)===null||fe===void 0||fe.focus()},te=function(){var fe;(fe=Q.value)===null||fe===void 0||fe.blur()},ne=function(fe){var ye;(ye=Q.value)===null||ye===void 0||ye.scrollTo(fe)},ae=computed(function(){var pe=H.mode;if(pe!=="combobox")return pe===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":pe}),oe=useConfigInject("select",H),se=oe.prefixCls,le=oe.direction,ce=oe.configProvider,ue=oe.size,de=oe.getPrefixCls,ve=computed(function(){return de()}),ge=computed(function(){return getTransitionName$1(ve.value,"slide-up",H.transitionName)}),he=computed(function(){var pe;return classNames((pe={},_defineProperty$M(pe,"".concat(se.value,"-lg"),ue.value==="large"),_defineProperty$M(pe,"".concat(se.value,"-sm"),ue.value==="small"),_defineProperty$M(pe,"".concat(se.value,"-rtl"),le.value==="rtl"),_defineProperty$M(pe,"".concat(se.value,"-borderless"),!H.bordered),pe))}),me=function(){for(var fe=arguments.length,ye=new Array(fe),$e=0;$e<fe;$e++)ye[$e]=arguments[$e];G("update:value",ye[0]),G.apply(void 0,["change"].concat(ye)),ee.onFieldChange()},_e=function(fe){G("blur",fe),ee.onFieldBlur()};Z({blur:te,focus:ie,scrollTo:ne});var be=computed(function(){return ae.value==="multiple"||ae.value==="tags"});return function(){var pe,fe,ye=H.notFoundContent,$e=H.listHeight,we=$e===void 0?256:$e,Se=H.listItemHeight,Te=Se===void 0?24:Se,xe=H.getPopupContainer,ke=H.dropdownClassName,Ie=H.virtual,Ae=H.dropdownMatchSelectWidth,Me=H.id,Fe=Me===void 0?ee.id.value:Me,Be=H.placeholder,Ne=Be===void 0?(pe=X.placeholder)===null||pe===void 0?void 0:pe.call(X):Be,Ve=ce.renderEmpty,Le=ce.getPopupContainer,De;ye!==void 0?De=ye:X.notFoundContent?De=X.notFoundContent():ae.value==="combobox"?De=null:De=Ve("Select");var Je=getIcons(_objectSpread2$1(_objectSpread2$1({},H),{},{multiple:be.value,prefixCls:se.value}),X),ze=Je.suffixIcon,Ge=Je.itemIcon,qe=Je.removeIcon,Ke=Je.clearIcon,Ee=omit$2(H,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ce=classNames(ke,_defineProperty$M({},"".concat(se.value,"-dropdown-").concat(le.value),le.value==="rtl"));return createVNode(Select$1,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({ref:Q,virtual:Ie,dropdownMatchSelectWidth:Ae},Ee),W),{},{placeholder:Ne,listHeight:we,listItemHeight:Te,mode:ae.value,prefixCls:se.value,direction:le.value,inputIcon:ze,menuItemSelectedIcon:Ge,removeIcon:qe,clearIcon:Ke,notFoundContent:De,class:[he.value,W.class],getPopupContainer:xe||Le,dropdownClassName:Ce,onChange:me,onBlur:_e,id:Fe,dropdownRender:Ee.dropdownRender||X.dropdownRender,transitionName:ge.value,children:(fe=X.default)===null||fe===void 0?void 0:fe.call(X),tagRender:H.tagRender||X.tagRender,optionLabelRender:X.optionLabel,maxTagPlaceholder:H.maxTagPlaceholder||X.maxTagPlaceholder}),{option:X.option})}}});Select.install=function(C){return C.component(Select.name,Select),C.component(Select.Option.displayName,Select.Option),C.component(Select.OptGroup.displayName,Select.OptGroup),C};var SelectOption=Select.Option;Select.OptGroup;const __unplugin_components_1$3=Select;var Option$1=function(){return null};Option$1.isSelectOption=!0;Option$1.displayName="AAutoCompleteOption";const Option$2=Option$1;var OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;OptGroup.displayName="AAutoCompleteOptGroup";const OptGroup$1=OptGroup;function isSelectOptionOrSelectOptGroup(C){var H,U;return(C==null||(H=C.type)===null||H===void 0?void 0:H.isSelectOption)||(C==null||(U=C.type)===null||U===void 0?void 0:U.isSelectOptGroup)}var autoCompleteProps=function(){return _objectSpread2$1(_objectSpread2$1({},omit$2(selectProps(),["loading","mode","optionLabelProp","labelInValue"])),{},{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0}})},AutoComplete=defineComponent({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:autoCompleteProps(),slots:["option"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose;warning$2(!("dataSource"in W),"AutoComplete","`dataSource` slot is deprecated, please use props `options` instead."),warning$2(!("options"in W),"AutoComplete","`options` slot is deprecated, please use props `options` instead.");var Z=ref(),Q=function(){var oe,se=flattenChildren((oe=W.default)===null||oe===void 0?void 0:oe.call(W)),le=se.length?se[0]:void 0;return le},ee=function(){var oe;(oe=Z.value)===null||oe===void 0||oe.focus()},ie=function(){var oe;(oe=Z.value)===null||oe===void 0||oe.blur()};X({focus:ee,blur:ie});var te=useConfigInject("select",H),ne=te.prefixCls;return function(){var ae,oe,se=H.size,le=H.dataSource,ce=H.notFoundContent,ue=ce===void 0?(ae=W.notFoundContent)===null||ae===void 0?void 0:ae.call(W):ce,de,ve=G.class,ge=(oe={},_defineProperty$M(oe,ve,!!ve),_defineProperty$M(oe,"".concat(ne.value,"-lg"),se==="large"),_defineProperty$M(oe,"".concat(ne.value,"-sm"),se==="small"),_defineProperty$M(oe,"".concat(ne.value,"-show-search"),!0),_defineProperty$M(oe,"".concat(ne.value,"-auto-complete"),!0),oe);if(H.options===void 0){var he,me,_e=((he=W.dataSource)===null||he===void 0?void 0:he.call(W))||((me=W.options)===null||me===void 0?void 0:me.call(W))||[];_e.length&&isSelectOptionOrSelectOptGroup(_e[0])?de=_e:de=le?le.map(function(pe){if(isValidElement(pe))return pe;switch(_typeof$3(pe)){case"string":return createVNode(Option$2,{key:pe,value:pe},{default:function(){return[pe]}});case"object":return createVNode(Option$2,{key:pe.value,value:pe.value},{default:function(){return[pe.text]}});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}var be=omit$2(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},H),G),{},{mode:__unplugin_components_1$3.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:Q,notFoundContent:ue,class:ge,ref:Z}),["dataSource","loading"]);return createVNode(__unplugin_components_1$3,be,_objectSpread2$1({default:function(){return[de]}},omit$2(W,["default","dataSource","options"])))}}});const __unplugin_components_8=_extends$1(AutoComplete,{Option:Option$2,OptGroup:OptGroup$1,install:function(H){return H.component(AutoComplete.name,AutoComplete),H.component(Option$2.displayName,Option$2),H.component(OptGroup$1.displayName,OptGroup$1),H}});var responsiveArray=["xxxl","xxl","xl","lg","md","sm","xs"],responsiveMap={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},subscribers=new Map,subUid=-1,screens={},responsiveObserve={matchHandlers:{},dispatch:function(H){return screens=H,subscribers.forEach(function(U){return U(screens)}),subscribers.size>=1},subscribe:function(H){return subscribers.size||this.register(),subUid+=1,subscribers.set(subUid,H),H(screens),subUid},unsubscribe:function(H){subscribers.delete(H),subscribers.size||this.unregister()},unregister:function(){var H=this;Object.keys(responsiveMap).forEach(function(U){var W=responsiveMap[U],G=H.matchHandlers[W];G==null||G.mql.removeListener(G==null?void 0:G.listener)}),subscribers.clear()},register:function(){var H=this;Object.keys(responsiveMap).forEach(function(U){var W=responsiveMap[U],G=function(Q){var ee=Q.matches;H.dispatch(_objectSpread2$1(_objectSpread2$1({},screens),{},_defineProperty$M({},U,ee)))},X=window.matchMedia(W);X.addListener(G),H.matchHandlers[W]={mql:X,listener:G},G(X)})}};const ResponsiveObserve=responsiveObserve;function useBreakpoint(){var C=ref({}),H=null;return onMounted(function(){H=ResponsiveObserve.subscribe(function(U){C.value=U})}),onUnmounted(function(){ResponsiveObserve.unsubscribe(H)}),C}var sizeProvider=Symbol("SizeProvider"),useInjectSize=function(H){var U=H?computed(function(){return H.size}):inject(sizeProvider,computed(function(){return"default"}));return U};function eagerComputed(C){var H=shallowRef();return watchEffect(function(){H.value=C()},{flush:"sync"}),H}var autoAdjustOverflow$2={adjustX:1,adjustY:1},targetOffset$2=[0,0],placements$3={left:{points:["cr","cl"],overflow:autoAdjustOverflow$2,offset:[-4,0],targetOffset:targetOffset$2},right:{points:["cl","cr"],overflow:autoAdjustOverflow$2,offset:[4,0],targetOffset:targetOffset$2},top:{points:["bc","tc"],overflow:autoAdjustOverflow$2,offset:[0,-4],targetOffset:targetOffset$2},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow$2,offset:[0,4],targetOffset:targetOffset$2},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow$2,offset:[0,-4],targetOffset:targetOffset$2},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow$2,offset:[-4,0],targetOffset:targetOffset$2},topRight:{points:["br","tr"],overflow:autoAdjustOverflow$2,offset:[0,-4],targetOffset:targetOffset$2},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow$2,offset:[4,0],targetOffset:targetOffset$2},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow$2,offset:[0,4],targetOffset:targetOffset$2},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow$2,offset:[4,0],targetOffset:targetOffset$2},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow$2,offset:[0,4],targetOffset:targetOffset$2},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow$2,offset:[-4,0],targetOffset:targetOffset$2}},tooltipContentProps={prefixCls:String,id:String,overlayInnerStyle:PropTypes$1.any};const Content$2=defineComponent({compatConfig:{MODE:3},name:"Content",props:tooltipContentProps,slots:["overlay"],setup:function(H,U){var W=U.slots;return function(){var G;return createVNode("div",{class:"".concat(H.prefixCls,"-inner"),id:H.id,role:"tooltip",style:H.overlayInnerStyle},[(G=W.overlay)===null||G===void 0?void 0:G.call(W)])}}});var _excluded$o=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function noop$6(){}const Tooltip=defineComponent({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:PropTypes$1.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:PropTypes$1.string.def("right"),transitionName:String,animation:PropTypes$1.any,afterVisibleChange:PropTypes$1.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:PropTypes$1.string.def("rc-tooltip"),mouseEnterDelay:PropTypes$1.number.def(.1),mouseLeaveDelay:PropTypes$1.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:PropTypes$1.object.def(function(){return{}}),arrowContent:PropTypes$1.any.def(null),tipId:String,builtinPlacements:PropTypes$1.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose,Z=ref(),Q=function(){var ae=H.prefixCls,oe=H.tipId,se=H.overlayInnerStyle;return[createVNode("div",{class:"".concat(ae,"-arrow"),key:"arrow"},[getPropsSlot(W,H,"arrowContent")]),createVNode(Content$2,{key:"content",prefixCls:ae,id:oe,overlayInnerStyle:se},{overlay:W.overlay})]},ee=function(){return Z.value.getPopupDomNode()};X({getPopupDomNode:ee,triggerDOM:Z,forcePopupAlign:function(){var ae;return(ae=Z.value)===null||ae===void 0?void 0:ae.forcePopupAlign()}});var ie=ref(!1),te=ref(!1);return watchEffect(function(){var ne=H.destroyTooltipOnHide;if(typeof ne=="boolean")ie.value=ne;else if(ne&&_typeof$3(ne)==="object"){var ae=ne.keepParent;ie.value=ae===!0,te.value=ae===!1}}),function(){var ne=H.overlayClassName,ae=H.trigger,oe=H.mouseEnterDelay,se=H.mouseLeaveDelay,le=H.overlayStyle,ce=H.prefixCls,ue=H.afterVisibleChange,de=H.transitionName,ve=H.animation,ge=H.placement,he=H.align;H.destroyTooltipOnHide;var me=H.defaultVisible,_e=_objectWithoutProperties$4(H,_excluded$o),be=_objectSpread2$1({},_e);H.visible!==void 0&&(be.popupVisible=H.visible);var pe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({popupClassName:ne,prefixCls:ce,action:ae,builtinPlacements:placements$3,popupPlacement:ge,popupAlign:he,afterPopupVisibleChange:ue,popupTransitionName:de,popupAnimation:ve,defaultPopupVisible:me,destroyPopupOnHide:ie.value,autoDestroy:te.value,mouseLeaveDelay:se,popupStyle:le,mouseEnterDelay:oe},be),G),{},{onPopupVisibleChange:H.onVisibleChange||noop$6,onPopupAlign:H.onPopupAlign||noop$6,ref:Z,popup:Q()});return createVNode(Trigger,pe,{default:W.default})}}});var PresetStatusColorTypes=tuple("success","processing","error","default","warning"),PresetColorTypes=tuple("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const abstractTooltipProps=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var autoAdjustOverflowEnabled={adjustX:1,adjustY:1},autoAdjustOverflowDisabled={adjustX:0,adjustY:0},targetOffset$1=[0,0];function getOverflowOptions(C){return typeof C=="boolean"?C?autoAdjustOverflowEnabled:autoAdjustOverflowDisabled:_objectSpread2$1(_objectSpread2$1({},autoAdjustOverflowDisabled),C)}function getPlacements(C){var H=C.arrowWidth,U=H===void 0?4:H,W=C.horizontalArrowShift,G=W===void 0?16:W,X=C.verticalArrowShift,Z=X===void 0?8:X,Q=C.autoAdjustOverflow,ee=C.arrowPointAtCenter,ie={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(G+U),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Z+U)]},topRight:{points:["br","tc"],offset:[G+U,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Z+U)]},bottomRight:{points:["tr","bc"],offset:[G+U,4]},rightBottom:{points:["bl","cr"],offset:[4,Z+U]},bottomLeft:{points:["tl","bc"],offset:[-(G+U),4]},leftBottom:{points:["br","cl"],offset:[-4,Z+U]}};return Object.keys(ie).forEach(function(te){ie[te]=ee?_objectSpread2$1(_objectSpread2$1({},ie[te]),{},{overflow:getOverflowOptions(Q),targetOffset:targetOffset$1}):_objectSpread2$1(_objectSpread2$1({},placements$3[te]),{},{overflow:getOverflowOptions(Q)}),ie[te].ignoreShake=!0}),ie}function firstNotUndefined(){for(var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=0,U=C.length;H<U;H++)if(C[H]!==void 0)return C[H]}var splitObject=function(H,U){var W={},G=_objectSpread2$1({},H);return U.forEach(function(X){H&&X in H&&(W[X]=H[X],delete G[X])}),{picked:W,omitted:G}},PresetColorRegex$1=new RegExp("^(".concat(PresetColorTypes.join("|"),")(-inverse)?$")),tooltipProps=function(){return _objectSpread2$1(_objectSpread2$1({},abstractTooltipProps()),{},{title:PropTypes$1.any})};const ToolTip=defineComponent({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:initDefaultProps$1(tooltipProps(),{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:["title"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.attrs,Z=U.expose,Q=useConfigInject("tooltip",H),ee=Q.prefixCls,ie=Q.getPopupContainer,te=ref(firstNotUndefined([H.visible,H.defaultVisible])),ne=ref();onMounted(function(){warning$2(H.defaultVisible===void 0,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")});var ae;watch(function(){return H.visible},function(he){wrapperRaf.cancel(ae),ae=wrapperRaf(function(){te.value=!!he})});var oe=function(){var me,_e=(me=H.title)!==null&&me!==void 0?me:W.title;return!_e&&_e!==0},se=function(me){var _e=oe();H.visible===void 0&&(te.value=_e?!1:me),_e||(G("update:visible",me),G("visibleChange",me))},le=function(){return ne.value.getPopupDomNode()};Z({getPopupDomNode:le,visible:te,forcePopupAlign:function(){var me;return(me=ne.value)===null||me===void 0?void 0:me.forcePopupAlign()}});var ce=computed(function(){var he=H.builtinPlacements,me=H.arrowPointAtCenter,_e=H.autoAdjustOverflow;return he||getPlacements({arrowPointAtCenter:me,autoAdjustOverflow:_e})}),ue=function(me){return me||me===""},de=function(me){var _e=me.type;if(_typeof$3(_e)==="object"&&me.props&&((_e.__ANT_BUTTON===!0||_e==="button")&&ue(me.props.disabled)||_e.__ANT_SWITCH===!0&&(ue(me.props.disabled)||ue(me.props.loading)))){var be=splitObject(getStyle(me),["position","left","right","top","bottom","float","display","zIndex"]),pe=be.picked,fe=be.omitted,ye=_objectSpread2$1(_objectSpread2$1({display:"inline-block"},pe),{},{cursor:"not-allowed",lineHeight:1,width:me.props&&me.props.block?"100%":null}),$e=_objectSpread2$1(_objectSpread2$1({},fe),{},{pointerEvents:"none"}),we=cloneElement(me,{style:$e},!0);return createVNode("span",{style:ye,class:"".concat(ee.value,"-disabled-compatible-wrapper")},[we])}return me},ve=function(){var me,_e;return(me=H.title)!==null&&me!==void 0?me:(_e=W.title)===null||_e===void 0?void 0:_e.call(W)},ge=function(me,_e){var be=ce.value,pe=Object.keys(be).filter(function($e){return be[$e].points[0]===_e.points[0]&&be[$e].points[1]===_e.points[1]})[0];if(!!pe){var fe=me.getBoundingClientRect(),ye={top:"50%",left:"50%"};pe.indexOf("top")>=0||pe.indexOf("Bottom")>=0?ye.top="".concat(fe.height-_e.offset[1],"px"):(pe.indexOf("Top")>=0||pe.indexOf("bottom")>=0)&&(ye.top="".concat(-_e.offset[1],"px")),pe.indexOf("left")>=0||pe.indexOf("Right")>=0?ye.left="".concat(fe.width-_e.offset[0],"px"):(pe.indexOf("right")>=0||pe.indexOf("Left")>=0)&&(ye.left="".concat(-_e.offset[0],"px")),me.style.transformOrigin="".concat(ye.left," ").concat(ye.top)}};return function(){var he,me,_e,be=H.openClassName,pe=H.color,fe=H.overlayClassName,ye=(he=filterEmpty((me=W.default)===null||me===void 0?void 0:me.call(W)))!==null&&he!==void 0?he:null;ye=ye.length===1?ye[0]:ye;var $e=te.value;if(H.visible===void 0&&oe()&&($e=!1),!ye)return null;var we=de(isValidElement(ye)?ye:createVNode("span",null,[ye])),Se=classNames((_e={},_defineProperty$M(_e,be||"".concat(ee.value,"-open"),!0),_defineProperty$M(_e,we.props&&we.props.class,we.props&&we.props.class),_e)),Te=classNames(fe,_defineProperty$M({},"".concat(ee.value,"-").concat(pe),pe&&PresetColorRegex$1.test(pe))),xe,ke;pe&&!PresetColorRegex$1.test(pe)&&(xe={backgroundColor:pe},ke={backgroundColor:pe});var Ie=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},X),H),{},{prefixCls:ee.value,getPopupContainer:ie.value,builtinPlacements:ce.value,visible:$e,ref:ne,overlayClassName:Te,overlayInnerStyle:xe,onVisibleChange:se,onPopupAlign:ge});return createVNode(Tooltip,Ie,{default:function(){return[te.value?cloneElement(we,{class:Se}):we]},arrowContent:function(){return createVNode("span",{class:"".concat(ee.value,"-arrow-content"),style:ke},null)},overlay:ve})}}}),__unplugin_components_0$3=withInstall(ToolTip);function UnitNumber(C){var H=C.prefixCls,U=C.value,W=C.current,G=C.offset,X=G===void 0?0:G,Z;return X&&(Z={position:"absolute",top:"".concat(X,"00%"),left:0}),createVNode("p",{style:Z,class:classNames("".concat(H,"-only-unit"),{current:W})},[U])}function getOffset$1(C,H,U){for(var W=C,G=0;(W+10)%10!==H;)W+=U,G+=U;return G}const SingleNumber=defineComponent({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(H){var U=computed(function(){return Number(H.value)}),W=computed(function(){return Math.abs(H.count)}),G=reactive({prevValue:U.value,prevCount:W.value}),X=function(){G.prevValue=U.value,G.prevCount=W.value},Z=ref();return watch(U,function(){clearTimeout(Z.value),Z.value=setTimeout(function(){X()},1e3)},{flush:"post"}),onUnmounted(function(){clearTimeout(Z.value)}),function(){var Q,ee={},ie=U.value;if(G.prevValue===ie||Number.isNaN(ie)||Number.isNaN(G.prevValue))Q=[UnitNumber(_objectSpread2$1(_objectSpread2$1({},H),{},{current:!0}))],ee={transition:"none"};else{Q=[];for(var te=ie+10,ne=[],ae=ie;ae<=te;ae+=1)ne.push(ae);var oe=ne.findIndex(function(le){return le%10===G.prevValue});Q=ne.map(function(le,ce){var ue=le%10;return UnitNumber(_objectSpread2$1(_objectSpread2$1({},H),{},{value:ue,offset:ce-oe,current:ce===oe}))});var se=G.prevCount<W.value?1:-1;ee={transform:"translateY(".concat(-getOffset$1(G.prevValue,ie,se),"00%)")}}return createVNode("span",{class:"".concat(H.prefixCls,"-only"),style:ee,onTransitionend:function(){return X()}},[Q])}}});var _excluded$n=["prefixCls","count","title","show","component","class","style"],scrollNumberProps={prefixCls:String,count:PropTypes$1.any,component:String,title:PropTypes$1.any,show:Boolean};const ScrollNumber=defineComponent({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:scrollNumberProps,setup:function(H,U){var W=U.attrs,G=U.slots,X=useConfigInject("scroll-number",H),Z=X.prefixCls;return function(){var Q,ee=_objectSpread2$1(_objectSpread2$1({},H),W);ee.prefixCls;var ie=ee.count,te=ee.title;ee.show;var ne=ee.component,ae=ne===void 0?"sup":ne,oe=ee.class,se=ee.style,le=_objectWithoutProperties$4(ee,_excluded$n),ce=_objectSpread2$1(_objectSpread2$1({},le),{},{style:se,"data-show":H.show,class:classNames(Z.value,oe),title:te}),ue=ie;if(ie&&Number(ie)%1===0){var de=String(ie).split("");ue=de.map(function(ge,he){return createVNode(SingleNumber,{prefixCls:Z.value,count:Number(ie),value:ge,key:de.length-he},null)})}se&&se.borderColor&&(ce.style=_objectSpread2$1(_objectSpread2$1({},se),{},{boxShadow:"0 0 0 1px ".concat(se.borderColor," inset")}));var ve=filterEmpty((Q=G.default)===null||Q===void 0?void 0:Q.call(G));return ve&&ve.length?cloneElement(ve,{class:classNames("".concat(Z.value,"-custom-component"))},!1):createVNode(ae,ce,{default:function(){return[ue]}})}}});function isPresetColor(C){return PresetColorTypes.indexOf(C)!==-1}var _excluded$m=["class","style"],ribbonProps=function(){return{prefix:String,color:{type:String},text:PropTypes$1.any,placement:{type:String,default:"end"}}};const Ribbon=defineComponent({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:ribbonProps(),slots:["text"],setup:function(H,U){var W=U.attrs,G=U.slots,X=useConfigInject("ribbon",H),Z=X.prefixCls,Q=X.direction,ee=computed(function(){return isPresetColor(H.color)}),ie=computed(function(){var te;return[Z.value,"".concat(Z.value,"-placement-").concat(H.placement),(te={},_defineProperty$M(te,"".concat(Z.value,"-rtl"),Q.value==="rtl"),_defineProperty$M(te,"".concat(Z.value,"-color-").concat(H.color),ee.value),te)]});return function(){var te,ne,ae=W.class,oe=W.style,se=_objectWithoutProperties$4(W,_excluded$m),le={},ce={};return H.color&&!ee.value&&(le.background=H.color,ce.color=H.color),createVNode("div",_objectSpread2$1({class:"".concat(Z.value,"-wrapper")},se),[(te=G.default)===null||te===void 0?void 0:te.call(G),createVNode("div",{class:[ie.value,ae],style:_objectSpread2$1(_objectSpread2$1({},le),oe)},[createVNode("span",{class:"".concat(Z.value,"-text")},[H.text||((ne=G.text)===null||ne===void 0?void 0:ne.call(G))]),createVNode("div",{class:"".concat(Z.value,"-corner"),style:ce},null)])])}}});var isNumeric=function(H){return!isNaN(parseFloat(H))&&isFinite(H)};const isNumeric$1=isNumeric;var badgeProps=function(){return{count:PropTypes$1.any,showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:PropTypes$1.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}};const Badge=defineComponent({compatConfig:{MODE:3},name:"ABadge",Ribbon,inheritAttrs:!1,props:badgeProps(),slots:["text","count"],setup:function(H,U){var W=U.slots,G=U.attrs,X=useConfigInject("badge",H),Z=X.prefixCls,Q=X.direction,ee=computed(function(){return H.count>H.overflowCount?"".concat(H.overflowCount,"+"):H.count}),ie=computed(function(){return H.status!==null&&H.status!==void 0||H.color!==null&&H.color!==void 0}),te=computed(function(){return ee.value==="0"||ee.value===0}),ne=computed(function(){return H.dot&&!te.value}),ae=computed(function(){return ne.value?"":ee.value}),oe=computed(function(){var ge=ae.value===null||ae.value===void 0||ae.value==="";return(ge||te.value&&!H.showZero)&&!ne.value}),se=ref(H.count),le=ref(ae.value),ce=ref(ne.value);watch([function(){return H.count},ae,ne],function(){oe.value||(se.value=H.count,le.value=ae.value,ce.value=ne.value)},{immediate:!0});var ue=computed(function(){var ge;return ge={},_defineProperty$M(ge,"".concat(Z.value,"-status-dot"),ie.value),_defineProperty$M(ge,"".concat(Z.value,"-status-").concat(H.status),!!H.status),_defineProperty$M(ge,"".concat(Z.value,"-status-").concat(H.color),isPresetColor(H.color)),ge}),de=computed(function(){return H.color&&!isPresetColor(H.color)?{background:H.color}:{}}),ve=computed(function(){var ge;return ge={},_defineProperty$M(ge,"".concat(Z.value,"-dot"),ce.value),_defineProperty$M(ge,"".concat(Z.value,"-count"),!ce.value),_defineProperty$M(ge,"".concat(Z.value,"-count-sm"),H.size==="small"),_defineProperty$M(ge,"".concat(Z.value,"-multiple-words"),!ce.value&&le.value&&le.value.toString().length>1),_defineProperty$M(ge,"".concat(Z.value,"-status-").concat(H.status),!!H.status),_defineProperty$M(ge,"".concat(Z.value,"-status-").concat(H.color),isPresetColor(H.color)),ge});return function(){var ge,he,me,_e=H.offset,be=H.title,pe=H.color,fe=G.style,ye=getPropsSlot(W,H,"text"),$e=Z.value,we=se.value,Se=flattenChildren((ge=W.default)===null||ge===void 0?void 0:ge.call(W));Se=Se.length?Se:null;var Te=!!(!oe.value||W.count),xe=function(){if(!_e)return _objectSpread2$1({},fe);var Ve={marginTop:isNumeric$1(_e[1])?"".concat(_e[1],"px"):_e[1]};return Q.value==="rtl"?Ve.left="".concat(parseInt(_e[0],10),"px"):Ve.right="".concat(-parseInt(_e[0],10),"px"),_objectSpread2$1(_objectSpread2$1({},Ve),fe)}(),ke=be!=null?be:typeof we=="string"||typeof we=="number"?we:void 0,Ie=Te||!ye?null:createVNode("span",{class:"".concat($e,"-status-text")},[ye]),Ae=_typeof$3(we)==="object"||we===void 0&&W.count?cloneElement(we!=null?we:(he=W.count)===null||he===void 0?void 0:he.call(W),{style:xe},!1):null,Me=classNames($e,(me={},_defineProperty$M(me,"".concat($e,"-status"),ie.value),_defineProperty$M(me,"".concat($e,"-not-a-wrapper"),!Se),_defineProperty$M(me,"".concat($e,"-rtl"),Q.value==="rtl"),me),G.class);if(!Se&&ie.value){var Fe=xe.color;return createVNode("span",_objectSpread2$1(_objectSpread2$1({},G),{},{class:Me,style:xe}),[createVNode("span",{class:ue.value,style:de.value},null),createVNode("span",{style:{color:Fe},class:"".concat($e,"-status-text")},[ye])])}var Be=getTransitionProps(Se?"".concat($e,"-zoom"):"",{appear:!1}),Ne=_objectSpread2$1(_objectSpread2$1({},xe),H.numberStyle);return pe&&!isPresetColor(pe)&&(Ne=Ne||{},Ne.background=pe),createVNode("span",_objectSpread2$1(_objectSpread2$1({},G),{},{class:Me}),[Se,createVNode(Transition$1,Be,{default:function(){return[withDirectives(createVNode(ScrollNumber,{prefixCls:H.scrollNumberPrefixCls,show:Te,class:ve.value,count:le.value,title:ke,style:Ne,key:"scrollNumber"},{default:function(){return[Ae]}}),[[vShow,Te]])]}}),Ie])}}});Badge.install=function(C){return C.component(Badge.name,Badge),C.component(Ribbon.name,Ribbon),C};var autoAdjustOverflow$1={adjustX:1,adjustY:1},targetOffset=[0,0],placements$1={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},topCenter:{points:["bc","tc"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottomCenter:{points:["tc","bc"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset}};const placements$2=placements$1;var _excluded$l=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const Dropdown$2=defineComponent({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:PropTypes$1.string.def("rc-dropdown"),transitionName:String,overlayClassName:PropTypes$1.string.def(""),openClassName:String,animation:PropTypes$1.any,align:PropTypes$1.object,overlayStyle:{type:Object,default:void 0},placement:PropTypes$1.string.def("bottomLeft"),overlay:PropTypes$1.any,trigger:PropTypes$1.oneOfType([PropTypes$1.string,PropTypes$1.arrayOf(PropTypes$1.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:PropTypes$1.array,hideAction:PropTypes$1.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:PropTypes$1.number.def(.15),mouseLeaveDelay:PropTypes$1.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.expose,Z=ref(!!H.visible);watch(function(){return H.visible},function(se){se!==void 0&&(Z.value=se)});var Q=ref();X({triggerRef:Q});var ee=function(le){H.visible===void 0&&(Z.value=!1),G("overlayClick",le)},ie=function(le){H.visible===void 0&&(Z.value=le),G("visibleChange",le)},te=function(){var le,ce=(le=W.overlay)===null||le===void 0?void 0:le.call(W),ue={prefixCls:"".concat(H.prefixCls,"-menu"),onClick:ee,getPopupContainer:function(){return Q.value.getPopupDomNode()}};return createVNode(Fragment,null,[H.arrow&&createVNode("div",{class:"".concat(H.prefixCls,"-arrow")},null),cloneElement(ce,ue,!1)])},ne=computed(function(){var se=H.minOverlayWidthMatchTrigger,le=se===void 0?!H.alignPoint:se;return le}),ae=function(){var le,ce=(le=W.default)===null||le===void 0?void 0:le.call(W);return Z.value&&ce?cloneElement(ce[0],{class:H.openClassName||"".concat(H.prefixCls,"-open")},!1):ce},oe=computed(function(){return!H.hideAction&&H.trigger.indexOf("contextmenu")!==-1?["click"]:H.hideAction});return function(){var se=H.prefixCls,le=H.arrow,ce=H.showAction,ue=H.overlayStyle,de=H.trigger,ve=H.placement,ge=H.align,he=H.getPopupContainer,me=H.transitionName,_e=H.animation,be=H.overlayClassName,pe=_objectWithoutProperties$4(H,_excluded$l);return createVNode(Trigger,_objectSpread2$1(_objectSpread2$1({},pe),{},{prefixCls:se,ref:Q,popupClassName:classNames(be,_defineProperty$M({},"".concat(se,"-show-arrow"),le)),popupStyle:ue,builtinPlacements:placements$2,action:de,showAction:ce,hideAction:oe.value||[],popupPlacement:ve,popupAlign:ge,popupTransitionName:me,popupAnimation:_e,popupVisible:Z.value,stretch:ne.value?"minWidth":"",onPopupVisibleChange:ie,getPopupContainer:he}),{popup:te,default:ae})}}});var START_EVENT_NAME_MAP={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},END_EVENT_NAME_MAP={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},startEvents=[],endEvents=[];function detectEvents(){var C=document.createElement("div"),H=C.style;"AnimationEvent"in window||(delete START_EVENT_NAME_MAP.animationstart.animation,delete END_EVENT_NAME_MAP.animationend.animation),"TransitionEvent"in window||(delete START_EVENT_NAME_MAP.transitionstart.transition,delete END_EVENT_NAME_MAP.transitionend.transition);function U(W,G){for(var X in W)if(W.hasOwnProperty(X)){var Z=W[X];for(var Q in Z)if(Q in H){G.push(Z[Q]);break}}}U(START_EVENT_NAME_MAP,startEvents),U(END_EVENT_NAME_MAP,endEvents)}typeof window<"u"&&typeof document<"u"&&detectEvents();function addEventListener(C,H,U){C.addEventListener(H,U,!1)}function removeEventListener(C,H,U){C.removeEventListener(H,U,!1)}var TransitionEvents={startEvents,addStartEventListener:function(H,U){if(startEvents.length===0){setTimeout(U,0);return}startEvents.forEach(function(W){addEventListener(H,W,U)})},removeStartEventListener:function(H,U){startEvents.length!==0&&startEvents.forEach(function(W){removeEventListener(H,W,U)})},endEvents,addEndEventListener:function(H,U){if(endEvents.length===0){setTimeout(U,0);return}endEvents.forEach(function(W){addEventListener(H,W,U)})},removeEndEventListener:function(H,U){endEvents.length!==0&&endEvents.forEach(function(W){removeEventListener(H,W,U)})}};const TransitionEvents$1=TransitionEvents;var styleForPesudo;function isHidden(C){return!C||C.offsetParent===null}function isNotGrey(C){var H=(C||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return H&&H[1]&&H[2]&&H[3]?!(H[1]===H[2]&&H[2]===H[3]):!0}const Wave=defineComponent({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(H,U){var W=U.slots,G=U.expose,X=getCurrentInstance(),Z=useConfigInject("",H),Q=Z.csp,ee=Z.prefixCls;G({csp:Q});var ie=null,te=null,ne=null,ae=!1,oe=null,se=!1,le=function(me){if(!se){var _e=findDOMNode(X);!me||me.target!==_e||ae||ve(_e)}},ce=function(me){!me||me.animationName!=="fadeEffect"||ve(me.target)},ue=function(){var me=H.insertExtraNode;return me?"".concat(ee.value,"-click-animating"):"".concat(ee.value,"-click-animating-without-extra-node")},de=function(me,_e){var be=H.insertExtraNode,pe=H.disabled;if(!(pe||!me||isHidden(me)||me.className.indexOf("-leave")>=0)){oe=document.createElement("div"),oe.className="".concat(ee.value,"-click-animating-node");var fe=ue();if(me.removeAttribute(fe),me.setAttribute(fe,"true"),styleForPesudo=styleForPesudo||document.createElement("style"),_e&&_e!=="#ffffff"&&_e!=="rgb(255, 255, 255)"&&isNotGrey(_e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(_e)&&_e!=="transparent"){var ye;(ye=Q.value)!==null&&ye!==void 0&&ye.nonce&&(styleForPesudo.nonce=Q.value.nonce),oe.style.borderColor=_e,styleForPesudo.innerHTML=`
|
||
[`.concat(ee.value,"-click-animating-without-extra-node='true']::after, .").concat(ee.value,`-click-animating-node {
|
||
--antd-wave-shadow-color: `).concat(_e,`;
|
||
}`),document.body.contains(styleForPesudo)||document.body.appendChild(styleForPesudo)}be&&me.appendChild(oe),TransitionEvents$1.addStartEventListener(me,le),TransitionEvents$1.addEndEventListener(me,ce)}},ve=function(me){if(!(!me||me===oe||!(me instanceof Element))){var _e=H.insertExtraNode,be=ue();me.setAttribute(be,"false"),styleForPesudo&&(styleForPesudo.innerHTML=""),_e&&oe&&me.contains(oe)&&me.removeChild(oe),TransitionEvents$1.removeStartEventListener(me,le),TransitionEvents$1.removeEndEventListener(me,ce)}},ge=function(me){if(!(!me||!me.getAttribute||me.getAttribute("disabled")||me.className.indexOf("disabled")>=0)){var _e=function(pe){if(!(pe.target.tagName==="INPUT"||isHidden(pe.target))){ve(me);var fe=getComputedStyle(me).getPropertyValue("border-top-color")||getComputedStyle(me).getPropertyValue("border-color")||getComputedStyle(me).getPropertyValue("background-color");te=setTimeout(function(){return de(me,fe)},0),wrapperRaf.cancel(ne),ae=!0,ne=wrapperRaf(function(){ae=!1},10)}};return me.addEventListener("click",_e,!0),{cancel:function(){me.removeEventListener("click",_e,!0)}}}};return onMounted(function(){nextTick$1(function(){var he=findDOMNode(X);he.nodeType===1&&(ie=ge(he))})}),onBeforeUnmount(function(){ie&&ie.cancel(),clearTimeout(te),se=!0}),function(){var he;return(he=W.default)===null||he===void 0?void 0:he.call(W)[0]}}});function convertLegacyProps(C){return C==="danger"?{danger:!0}:{type:C}}var buttonProps=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:PropTypes$1.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const buttonTypes=buttonProps;var getCollapsedWidth=function(H){H&&(H.style.width="0px",H.style.opacity="0",H.style.transform="scale(0)")},getRealWidth=function(H){nextTick$1(function(){H&&(H.style.width="".concat(H.scrollWidth,"px"),H.style.opacity="1",H.style.transform="scale(1)")})},resetStyle=function(H){H&&H.style&&(H.style.width=null,H.style.opacity=null,H.style.transform=null)};const LoadingIcon=defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(H){return function(){var U=H.existIcon,W=H.prefixCls,G=H.loading;if(U)return createVNode("span",{class:"".concat(W,"-loading-icon")},[createVNode(LoadingOutlined$1,null,null)]);var X=!!G;return createVNode(Transition$1,{name:"".concat(W,"-loading-icon-motion"),onBeforeEnter:getCollapsedWidth,onEnter:getRealWidth,onAfterEnter:resetStyle,onBeforeLeave:getRealWidth,onLeave:function(Q){setTimeout(function(){getCollapsedWidth(Q)})},onAfterLeave:resetStyle},{default:function(){return[X?createVNode("span",{class:"".concat(W,"-loading-icon")},[createVNode(LoadingOutlined$1,null,null)]):null]}})}}});var rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function isUnborderedButtonType(C){return C==="text"||C==="link"}const Button$1=defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:initDefaultProps$1(buttonTypes(),{type:"default"}),slots:["icon"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.emit,Z=useConfigInject("btn",H),Q=Z.prefixCls,ee=Z.autoInsertSpaceInButton,ie=Z.direction,te=Z.size,ne=ref(null),ae=ref(void 0),oe=!1,se=ref(!1),le=ref(!1),ce=computed(function(){return ee.value!==!1}),ue=computed(function(){return _typeof$3(H.loading)==="object"&&H.loading.delay?H.loading.delay||!0:!!H.loading});watch(ue,function(me){clearTimeout(ae.value),typeof ue.value=="number"?ae.value=setTimeout(function(){se.value=me},ue.value):se.value=me},{immediate:!0});var de=computed(function(){var me,_e=H.type,be=H.shape,pe=be===void 0?"default":be,fe=H.ghost,ye=H.block,$e=H.danger,we=Q.value,Se={large:"lg",small:"sm",middle:void 0},Te=te.value,xe=Te&&Se[Te]||"";return me={},_defineProperty$M(me,"".concat(we),!0),_defineProperty$M(me,"".concat(we,"-").concat(_e),_e),_defineProperty$M(me,"".concat(we,"-").concat(pe),pe!=="default"&&pe),_defineProperty$M(me,"".concat(we,"-").concat(xe),xe),_defineProperty$M(me,"".concat(we,"-loading"),se.value),_defineProperty$M(me,"".concat(we,"-background-ghost"),fe&&!isUnborderedButtonType(_e)),_defineProperty$M(me,"".concat(we,"-two-chinese-chars"),le.value&&ce.value),_defineProperty$M(me,"".concat(we,"-block"),ye),_defineProperty$M(me,"".concat(we,"-dangerous"),!!$e),_defineProperty$M(me,"".concat(we,"-rtl"),ie.value==="rtl"),me}),ve=function(){var _e=ne.value;if(!(!_e||ee.value===!1)){var be=_e.textContent;oe&&isTwoCNChar(be)?le.value||(le.value=!0):le.value&&(le.value=!1)}},ge=function(_e){if(se.value||H.disabled){_e.preventDefault();return}X("click",_e)},he=function(_e,be){var pe=be?" ":"";if(_e.type===Text){var fe=_e.children.trim();return isTwoCNChar(fe)&&(fe=fe.split("").join(pe)),createVNode("span",null,[fe])}return _e};return watchEffect(function(){devWarning(!(H.ghost&&isUnborderedButtonType(H.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),onMounted(ve),onUpdated(ve),onBeforeUnmount(function(){ae.value&&clearTimeout(ae.value)}),function(){var me,_e,be=H.icon,pe=be===void 0?(me=W.icon)===null||me===void 0?void 0:me.call(W):be,fe=flattenChildren((_e=W.default)===null||_e===void 0?void 0:_e.call(W));oe=fe.length===1&&!pe&&!isUnborderedButtonType(H.type);var ye=H.type,$e=H.htmlType,we=H.disabled,Se=H.href,Te=H.title,xe=H.target,ke=H.onMousedown,Ie=se.value?"loading":pe,Ae=_objectSpread2$1(_objectSpread2$1({},G),{},{title:Te,disabled:we,class:[de.value,G.class,_defineProperty$M({},"".concat(Q.value,"-icon-only"),fe.length===0&&!!Ie)],onClick:ge,onMousedown:ke});we||delete Ae.disabled;var Me=pe&&!se.value?pe:createVNode(LoadingIcon,{existIcon:!!pe,prefixCls:Q.value,loading:!!se.value},null),Fe=fe.map(function(Ne){return he(Ne,oe&&ce.value)});if(Se!==void 0)return createVNode("a",_objectSpread2$1(_objectSpread2$1({},Ae),{},{href:Se,target:xe,ref:ne}),[Me,Fe]);var Be=createVNode("button",_objectSpread2$1(_objectSpread2$1({},Ae),{},{ref:ne,type:$e}),[Me,Fe]);return isUnborderedButtonType(ye)?Be:createVNode(Wave,{ref:"wave",disabled:!!se.value},{default:function(){return[Be]}})}}});function _defineProperties(C,H){for(var U=0;U<H.length;U++){var W=H[U];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(C,_toPropertyKey(W.key),W)}}function _createClass(C,H,U){return H&&_defineProperties(C.prototype,H),U&&_defineProperties(C,U),Object.defineProperty(C,"prototype",{writable:!1}),C}function _classCallCheck(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}var UnreachableException=_createClass(function C(H){_classCallCheck(this,C),this.error=new Error("unreachable case: ".concat(JSON.stringify(H)))}),buttonGroupProps=function(){return{prefixCls:String,size:{type:String}}};const ButtonGroup$1=defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:buttonGroupProps(),setup:function(H,U){var W=U.slots,G=useConfigInject("btn-group",H),X=G.prefixCls,Z=G.direction,Q=computed(function(){var ee,ie=H.size,te="";switch(ie){case"large":te="lg";break;case"small":te="sm";break;case"middle":case void 0:break;default:console.warn(new UnreachableException(ie).error)}return ee={},_defineProperty$M(ee,"".concat(X.value),!0),_defineProperty$M(ee,"".concat(X.value,"-").concat(te),te),_defineProperty$M(ee,"".concat(X.value,"-rtl"),Z.value==="rtl"),ee});return function(){var ee;return createVNode("div",{class:Q.value},[flattenChildren((ee=W.default)===null||ee===void 0?void 0:ee.call(W))])}}});Button$1.Group=ButtonGroup$1;Button$1.install=function(C){return C.component(Button$1.name,Button$1),C.component(ButtonGroup$1.name,ButtonGroup$1),C};var dropdownProps=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:PropTypes$1.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},buttonTypesProps=buttonTypes(),dropdownButtonProps=function(){return _objectSpread2$1(_objectSpread2$1({},dropdownProps()),{},{type:buttonTypesProps.type,size:String,htmlType:buttonTypesProps.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:PropTypes$1.any,title:String,loading:buttonTypesProps.loading,onClick:{type:Function}})},EllipsisOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const EllipsisOutlinedSvg=EllipsisOutlined$2;function _objectSpread$t(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$u(C,G,U[G])})}return C}function _defineProperty$u(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var EllipsisOutlined=function(H,U){var W=_objectSpread$t({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$t({},W,{icon:EllipsisOutlinedSvg}),null)};EllipsisOutlined.displayName="EllipsisOutlined";EllipsisOutlined.inheritAttrs=!1;const EllipsisOutlined$1=EllipsisOutlined;var _excluded$k=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],ButtonGroup=Button$1.Group;const DropdownButton=defineComponent({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:initDefaultProps$1(dropdownButtonProps(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.emit,Z=function(ae){X("update:visible",ae),X("visibleChange",ae)},Q=useConfigInject("dropdown-button",H),ee=Q.prefixCls,ie=Q.direction,te=Q.getPopupContainer;return function(){var ne,ae,oe=_objectSpread2$1(_objectSpread2$1({},H),G),se=oe.type,le=se===void 0?"default":se,ce=oe.disabled,ue=oe.loading,de=oe.htmlType,ve=oe.class,ge=ve===void 0?"":ve,he=oe.overlay,me=he===void 0?(ne=W.overlay)===null||ne===void 0?void 0:ne.call(W):he,_e=oe.trigger,be=oe.align,pe=oe.visible;oe.onVisibleChange;var fe=oe.placement,ye=fe===void 0?ie.value==="rtl"?"bottomLeft":"bottomRight":fe,$e=oe.href,we=oe.title,Se=oe.icon,Te=Se===void 0?((ae=W.icon)===null||ae===void 0?void 0:ae.call(W))||createVNode(EllipsisOutlined$1,null,null):Se,xe=oe.mouseEnterDelay,ke=oe.mouseLeaveDelay,Ie=oe.overlayClassName,Ae=oe.overlayStyle,Me=oe.destroyPopupOnHide,Fe=oe.onClick;oe["onUpdate:visible"];var Be=_objectWithoutProperties$4(oe,_excluded$k),Ne={align:be,disabled:ce,trigger:ce?[]:_e,placement:ye,getPopupContainer:te.value,onVisibleChange:Z,mouseEnterDelay:xe,mouseLeaveDelay:ke,visible:pe,overlayClassName:Ie,overlayStyle:Ae,destroyPopupOnHide:Me},Ve=createVNode(Button$1,{type:le,disabled:ce,loading:ue,onClick:Fe,htmlType:de,href:$e,title:we},{default:W.default}),Le=createVNode(Button$1,{type:le,icon:Te},null);return createVNode(ButtonGroup,_objectSpread2$1(_objectSpread2$1({},Be),{},{class:classNames(ee.value,ge)}),{default:function(){return[W.leftButton?W.leftButton({button:Ve}):Ve,createVNode(Dropdown$1,Ne,{default:function(){return[W.rightButton?W.rightButton({button:Le}):Le]},overlay:function(){return me}})]}})}}});var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread$s(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$t(C,G,U[G])})}return C}function _defineProperty$t(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var RightOutlined=function(H,U){var W=_objectSpread$s({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$s({},W,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined";RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined;var Dropdown=defineComponent({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:initDefaultProps$1(dropdownProps(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.emit,Z=useConfigInject("dropdown",H),Q=Z.prefixCls,ee=Z.rootPrefixCls,ie=Z.direction,te=Z.getPopupContainer,ne=computed(function(){var le=H.placement,ce=le===void 0?"":le,ue=H.transitionName;return ue!==void 0?ue:ce.indexOf("top")>=0?"".concat(ee.value,"-slide-down"):"".concat(ee.value,"-slide-up")}),ae=function(){var ce,ue,de,ve=H.overlay||((ce=W.overlay)===null||ce===void 0?void 0:ce.call(W)),ge=Array.isArray(ve)?ve[0]:ve;if(!ge)return null;var he=ge.props||{};devWarning(!he.mode||he.mode==="vertical","Dropdown",'mode="'.concat(he.mode,`" is not supported for Dropdown's Menu.`));var me=he.selectable,_e=me===void 0?!1:me,be=he.expandIcon,pe=be===void 0?(ue=ge.children)===null||ue===void 0||(de=ue.expandIcon)===null||de===void 0?void 0:de.call(ue):be,fe=typeof pe<"u"&&isValidElement(pe)?pe:createVNode("span",{class:"".concat(Q.value,"-menu-submenu-arrow")},[createVNode(RightOutlined$1,{class:"".concat(Q.value,"-menu-submenu-arrow-icon")},null)]),ye=isValidElement(ge)?cloneElement(ge,{mode:"vertical",selectable:_e,expandIcon:function(){return fe}}):ge;return ye},oe=computed(function(){var le=H.placement;if(!le)return ie.value==="rtl"?"bottomRight":"bottomLeft";if(le.includes("Center")){var ce=le.slice(0,le.indexOf("Center"));return devWarning(!le.includes("Center"),"Dropdown","You are using '".concat(le,"' placement in Dropdown, which is deprecated. Try to use '").concat(ce,"' instead.")),ce}return le}),se=function(ce){X("update:visible",ce),X("visibleChange",ce)};return function(){var le,ce,ue=H.arrow,de=H.trigger,ve=H.disabled,ge=H.overlayClassName,he=(le=W.default)===null||le===void 0?void 0:le.call(W)[0],me=cloneElement(he,_extends$1({class:classNames(he==null||(ce=he.props)===null||ce===void 0?void 0:ce.class,_defineProperty$M({},"".concat(Q.value,"-rtl"),ie.value==="rtl"),"".concat(Q.value,"-trigger"))},ve?{disabled:ve}:{})),_e=classNames(ge,_defineProperty$M({},"".concat(Q.value,"-rtl"),ie.value==="rtl")),be=ve?[]:de,pe;be&&be.indexOf("contextmenu")!==-1&&(pe=!0);var fe=getPlacements({arrowPointAtCenter:_typeof$3(ue)==="object"&&ue.pointAtCenter,autoAdjustOverflow:!0}),ye=omit$2(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},H),G),{},{builtinPlacements:fe,overlayClassName:_e,arrow:ue,alignPoint:pe,prefixCls:Q.value,getPopupContainer:te.value,transitionName:ne.value,trigger:be,onVisibleChange:se,placement:oe.value}),["overlay","onUpdate:visible"]);return createVNode(Dropdown$2,ye,{default:function(){return[me]},overlay:ae})}}});Dropdown.Button=DropdownButton;const Dropdown$1=Dropdown;function shallowEqual(C,H,U,W){var G=U?U.call(W,C,H):void 0;if(G!==void 0)return!!G;if(C===H)return!0;if(_typeof$3(C)!=="object"||!C||_typeof$3(H)!=="object"||!H)return!1;var X=Object.keys(C),Z=Object.keys(H);if(X.length!==Z.length)return!1;for(var Q=Object.prototype.hasOwnProperty.bind(H),ee=0;ee<X.length;ee++){var ie=X[ee];if(!Q(ie))return!1;var te=C[ie],ne=H[ie];if(G=U?U.call(W,te,ne,ie):void 0,G===!1||G===void 0&&te!==ne)return!1}return!0}function shallowequal(C,H,U,W){return shallowEqual(toRaw(C),toRaw(H),U,W)}var MenuContextKey=Symbol("menuContextKey"),useProvideMenu=function(H){provide(MenuContextKey,H)},useInjectMenu=function(){return inject(MenuContextKey)},ForceRenderKey=Symbol("ForceRenderKey"),useProvideForceRender=function(H){provide(ForceRenderKey,H)},useInjectForceRender=function(){return inject(ForceRenderKey,!1)},MenuFirstLevelContextKey=Symbol("menuFirstLevelContextKey"),useProvideFirstLevel=function(H){provide(MenuFirstLevelContextKey,H)},useInjectFirstLevel=function(){return inject(MenuFirstLevelContextKey,!0)},MenuContextProvider=defineComponent({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0},isRootMenu:{type:Boolean,default:void 0}},setup:function(H,U){var W=U.slots,G=useInjectMenu(),X=_objectSpread2$1({},G);return H.mode!==void 0&&(X.mode=toRef(H,"mode")),H.isRootMenu!==void 0&&(X.isRootMenu=toRef(H,"isRootMenu")),H.overflowDisabled!==void 0&&(X.overflowDisabled=toRef(H,"overflowDisabled")),useProvideMenu(X),function(){var Z;return(Z=W.default)===null||Z===void 0?void 0:Z.call(W)}}});const useProvideMenu$1=useProvideMenu;function baseFindIndex(C,H,U,W){for(var G=C.length,X=U+(W?1:-1);W?X--:++X<G;)if(H(C[X],X,C))return X;return-1}function baseIsNaN(C){return C!==C}function strictIndexOf(C,H,U){for(var W=U-1,G=C.length;++W<G;)if(C[W]===H)return W;return-1}function baseIndexOf(C,H,U){return H===H?strictIndexOf(C,H,U):baseFindIndex(C,baseIsNaN,U)}function arrayIncludes(C,H){var U=C==null?0:C.length;return!!U&&baseIndexOf(C,H,0)>-1}function arrayIncludesWith(C,H,U){for(var W=-1,G=C==null?0:C.length;++W<G;)if(U(H,C[W]))return!0;return!1}function noop$5(){}var INFINITY$6=1/0,createSet=Set$4&&1/setToArray(new Set$4([,-0]))[1]==INFINITY$6?function(C){return new Set$4(C)}:noop$5;const createSet$1=createSet;var LARGE_ARRAY_SIZE$1=200;function baseUniq(C,H,U){var W=-1,G=arrayIncludes,X=C.length,Z=!0,Q=[],ee=Q;if(U)Z=!1,G=arrayIncludesWith;else if(X>=LARGE_ARRAY_SIZE$1){var ie=H?null:createSet$1(C);if(ie)return setToArray(ie);Z=!1,G=cacheHas,ee=new SetCache}else ee=H?[]:Q;e:for(;++W<X;){var te=C[W],ne=H?H(te):te;if(te=U||te!==0?te:0,Z&&ne===ne){for(var ae=ee.length;ae--;)if(ee[ae]===ne)continue e;H&&ee.push(ne),Q.push(te)}else G(ee,ne,U)||(ee!==Q&&ee.push(ne),Q.push(te))}return Q}function uniq(C){return C&&C.length?baseUniq(C):[]}var SiderCollapsedKey=Symbol("siderCollapsed"),SiderHookProviderKey=Symbol("siderHookProvider"),OVERFLOW_KEY="$$__vc-menu-more__key",KeyPathContext=Symbol("KeyPathContext"),useInjectKeyPath=function(){return inject(KeyPathContext,{parentEventKeys:computed(function(){return[]}),parentKeys:computed(function(){return[]}),parentInfo:{}})},useProvideKeyPath=function(H,U,W){var G=useInjectKeyPath(),X=G.parentEventKeys,Z=G.parentKeys,Q=computed(function(){return[].concat(_toConsumableArray$1(X.value),[H])}),ee=computed(function(){return[].concat(_toConsumableArray$1(Z.value),[U])});return provide(KeyPathContext,{parentEventKeys:Q,parentKeys:ee,parentInfo:W}),ee},measure=Symbol("measure"),PathContext=defineComponent({compatConfig:{MODE:3},setup:function(H,U){var W=U.slots;return provide(measure,!0),function(){var G;return(G=W.default)===null||G===void 0?void 0:G.call(W)}}}),useMeasure=function(){return inject(measure,!1)};const useProvideKeyPath$1=useProvideKeyPath;function useDirectionStyle(C){var H=useInjectMenu(),U=H.mode,W=H.rtl,G=H.inlineIndent;return computed(function(){return U.value!=="inline"?null:W.value?{paddingRight:"".concat(C.value*G.value,"px")}:{paddingLeft:"".concat(C.value*G.value,"px")}})}var indexGuid$3=0,menuItemProps=function(){return{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:PropTypes$1.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function}};const __unplugin_components_13=defineComponent({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:menuItemProps(),slots:["icon","title"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.attrs,Z=getCurrentInstance(),Q=useMeasure(),ee=_typeof$3(Z.vnode.key)==="symbol"?String(Z.vnode.key):Z.vnode.key;devWarning(_typeof$3(Z.vnode.key)!=="symbol","MenuItem",'MenuItem `:key="'.concat(String(ee),'"` not support Symbol type'));var ie="menu_item_".concat(++indexGuid$3,"_$$_").concat(ee),te=useInjectKeyPath(),ne=te.parentEventKeys,ae=te.parentKeys,oe=useInjectMenu(),se=oe.prefixCls,le=oe.activeKeys,ce=oe.disabled,ue=oe.changeActiveKeys,de=oe.rtl,ve=oe.inlineCollapsed,ge=oe.siderCollapsed,he=oe.onItemClick,me=oe.selectedKeys,_e=oe.registerMenuInfo,be=oe.unRegisterMenuInfo,pe=useInjectFirstLevel(),fe=ref(!1),ye=computed(function(){return[].concat(_toConsumableArray$1(ae.value),[ee])}),$e={eventKey:ie,key:ee,parentEventKeys:ne,parentKeys:ae,isLeaf:!0};_e(ie,$e),onBeforeUnmount(function(){be(ie)}),watch(le,function(){fe.value=!!le.value.find(function(Ve){return Ve===ee})},{immediate:!0});var we=computed(function(){return ce.value||H.disabled}),Se=computed(function(){return me.value.includes(ee)}),Te=computed(function(){var Ve,Le="".concat(se.value,"-item");return Ve={},_defineProperty$M(Ve,"".concat(Le),!0),_defineProperty$M(Ve,"".concat(Le,"-danger"),H.danger),_defineProperty$M(Ve,"".concat(Le,"-active"),fe.value),_defineProperty$M(Ve,"".concat(Le,"-selected"),Se.value),_defineProperty$M(Ve,"".concat(Le,"-disabled"),we.value),Ve}),xe=function(Le){return{key:ee,eventKey:ie,keyPath:ye.value,eventKeyPath:[].concat(_toConsumableArray$1(ne.value),[ie]),domEvent:Le,item:_objectSpread2$1(_objectSpread2$1({},H),X)}},ke=function(Le){if(!we.value){var De=xe(Le);G("click",Le),he(De)}},Ie=function(Le){we.value||(ue(ye.value),G("mouseenter",Le))},Ae=function(Le){we.value||(ue([]),G("mouseleave",Le))},Me=function(Le){if(G("keydown",Le),Le.which===KeyCode$1.ENTER){var De=xe(Le);G("click",Le),he(De)}},Fe=function(Le){ue(ye.value),G("focus",Le)},Be=function(Le,De){var Je=createVNode("span",{class:"".concat(se.value,"-title-content")},[De]);return(!Le||isValidElement(De)&&De.type==="span")&&De&&ve.value&&pe&&typeof De=="string"?createVNode("div",{class:"".concat(se.value,"-inline-collapsed-noicon")},[De.charAt(0)]):Je},Ne=useDirectionStyle(computed(function(){return ye.value.length}));return function(){var Ve,Le,De,Je;if(Q)return null;var ze=(Ve=H.title)!==null&&Ve!==void 0?Ve:(Le=W.title)===null||Le===void 0?void 0:Le.call(W),Ge=flattenChildren((De=W.default)===null||De===void 0?void 0:De.call(W)),qe=Ge.length,Ke=ze;typeof ze>"u"?Ke=pe&&qe?Ge:"":ze===!1&&(Ke="");var Ee={title:Ke};!ge.value&&!ve.value&&(Ee.title=null,Ee.visible=!1);var Ce={};H.role==="option"&&(Ce["aria-selected"]=Se.value);var Pe=getPropsSlot(W,H,"icon");return createVNode(__unplugin_components_0$3,_objectSpread2$1(_objectSpread2$1({},Ee),{},{placement:de.value?"left":"right",overlayClassName:"".concat(se.value,"-inline-collapsed-tooltip")}),{default:function(){return[createVNode(Overflow$1.Item,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({component:"li"},X),{},{id:H.id,style:_objectSpread2$1(_objectSpread2$1({},X.style||{}),Ne.value),class:[Te.value,(Je={},_defineProperty$M(Je,"".concat(X.class),!!X.class),_defineProperty$M(Je,"".concat(se.value,"-item-only-child"),(Pe?qe+1:qe)===1),Je)],role:H.role||"menuitem",tabindex:H.disabled?null:-1,"data-menu-id":ee,"aria-disabled":H.disabled},Ce),{},{onMouseenter:Ie,onMouseleave:Ae,onClick:ke,onKeydown:Me,onFocus:Fe,title:typeof ze=="string"?ze:void 0}),{default:function(){return[cloneElement(Pe,{class:"".concat(se.value,"-item-icon")},!1),Be(Pe,Ge)]}})]}})}}});var autoAdjustOverflow={adjustX:1,adjustY:1},placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}},placementsRtl={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0]}},popupPlacementMap={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const PopupTrigger=defineComponent({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(H,U){var W=U.slots,G=U.emit,X=ref(!1),Z=useInjectMenu(),Q=Z.getPopupContainer,ee=Z.rtl,ie=Z.subMenuOpenDelay,te=Z.subMenuCloseDelay,ne=Z.builtinPlacements,ae=Z.triggerSubMenuAction,oe=Z.isRootMenu,se=Z.forceSubMenuRender,le=Z.motion,ce=Z.defaultMotions,ue=useInjectForceRender(),de=computed(function(){return ee.value?_objectSpread2$1(_objectSpread2$1({},placementsRtl),ne.value):_objectSpread2$1(_objectSpread2$1({},placements),ne.value)}),ve=computed(function(){return popupPlacementMap[H.mode]}),ge=ref();watch(function(){return H.visible},function(_e){wrapperRaf.cancel(ge.value),ge.value=wrapperRaf(function(){X.value=_e})},{immediate:!0}),onBeforeUnmount(function(){wrapperRaf.cancel(ge.value)});var he=function(be){G("visibleChange",be)},me=computed(function(){var _e,be,pe=le.value||((_e=ce.value)===null||_e===void 0?void 0:_e[H.mode])||((be=ce.value)===null||be===void 0?void 0:be.other),fe=typeof pe=="function"?pe():pe;return fe?getTransitionProps(fe.name,{css:!0}):void 0});return function(){var _e=H.prefixCls,be=H.popupClassName,pe=H.mode,fe=H.popupOffset,ye=H.disabled;return createVNode(Trigger,{prefixCls:_e,popupClassName:classNames("".concat(_e,"-popup"),_defineProperty$M({},"".concat(_e,"-rtl"),ee.value),be),stretch:pe==="horizontal"?"minWidth":null,getPopupContainer:oe.value?Q.value:function($e){return $e.parentNode},builtinPlacements:de.value,popupPlacement:ve.value,popupVisible:X.value,popupAlign:fe&&{offset:fe},action:ye?[]:[ae.value],mouseEnterDelay:ie.value,mouseLeaveDelay:te.value,onPopupVisibleChange:he,forceRender:ue||se.value,popupAnimation:me.value},{popup:W.popup,default:W.default})}}});var InternalSubMenuList=function(H,U){var W,G=U.slots,X=U.attrs,Z=useInjectMenu(),Q=Z.prefixCls,ee=Z.mode;return createVNode("ul",_objectSpread2$1(_objectSpread2$1({},X),{},{class:classNames(Q.value,"".concat(Q.value,"-sub"),"".concat(Q.value,"-").concat(ee.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(W=G.default)===null||W===void 0?void 0:W.call(G)])};InternalSubMenuList.displayName="SubMenuList";const SubMenuList=InternalSubMenuList,InlineSubMenuList=defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(H,U){var W=U.slots,G=computed(function(){return"inline"}),X=useInjectMenu(),Z=X.motion,Q=X.mode,ee=X.defaultMotions,ie=computed(function(){return Q.value===G.value}),te=ref(!ie.value),ne=computed(function(){return ie.value?H.open:!1});watch(Q,function(){ie.value&&(te.value=!1)},{flush:"post"});var ae=computed(function(){var oe,se,le=Z.value||((oe=ee.value)===null||oe===void 0?void 0:oe[G.value])||((se=ee.value)===null||se===void 0?void 0:se.other),ce=typeof le=="function"?le():le;return _objectSpread2$1(_objectSpread2$1({},ce),{},{appear:H.keyPath.length<=1})});return function(){var oe;return te.value?null:createVNode(MenuContextProvider,{mode:G.value},{default:function(){return[createVNode(Transition$1,ae.value,{default:function(){return[withDirectives(createVNode(SubMenuList,{id:H.id},{default:function(){return[(oe=W.default)===null||oe===void 0?void 0:oe.call(W)]}}),[[vShow,ne.value]])]}})]}})}}});var indexGuid$2=0,subMenuProps=function(){return{icon:PropTypes$1.any,title:PropTypes$1.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const __unplugin_components_1$2=defineComponent({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:subMenuProps(),slots:["icon","title","expandIcon"],setup:function(H,U){var W,G,X=U.slots,Z=U.attrs,Q=U.emit;useProvideFirstLevel(!1);var ee=useMeasure(),ie=getCurrentInstance(),te=_typeof$3(ie.vnode.key)==="symbol"?String(ie.vnode.key):ie.vnode.key;devWarning(_typeof$3(ie.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(te),'"` not support Symbol type'));var ne=isValid$5(te)?te:"sub_menu_".concat(++indexGuid$2,"_$$_not_set_key"),ae=(W=H.eventKey)!==null&&W!==void 0?W:isValid$5(te)?"sub_menu_".concat(++indexGuid$2,"_$$_").concat(te):ne,oe=useInjectKeyPath(),se=oe.parentEventKeys,le=oe.parentInfo,ce=oe.parentKeys,ue=computed(function(){return[].concat(_toConsumableArray$1(ce.value),[ne])}),de=ref([]),ve={eventKey:ae,key:ne,parentEventKeys:se,childrenEventKeys:de,parentKeys:ce};(G=le.childrenEventKeys)===null||G===void 0||G.value.push(ae),onBeforeUnmount(function(){if(le.childrenEventKeys){var He;le.childrenEventKeys.value=(He=le.childrenEventKeys)===null||He===void 0?void 0:He.value.filter(function(Ye){return Ye!=ae})}}),useProvideKeyPath$1(ae,ne,ve);var ge=useInjectMenu(),he=ge.prefixCls,me=ge.activeKeys,_e=ge.disabled,be=ge.changeActiveKeys,pe=ge.mode,fe=ge.inlineCollapsed,ye=ge.antdMenuTheme,$e=ge.openKeys,we=ge.overflowDisabled,Se=ge.onOpenChange,Te=ge.registerMenuInfo,xe=ge.unRegisterMenuInfo,ke=ge.selectedSubMenuKeys,Ie=ge.expandIcon,Ae=te!=null,Me=!ee&&(useInjectForceRender()||!Ae);useProvideForceRender(Me),(ee&&Ae||!ee&&!Ae||Me)&&(Te(ae,ve),onBeforeUnmount(function(){xe(ae)}));var Fe=computed(function(){return"".concat(he.value,"-submenu")}),Be=computed(function(){return _e.value||H.disabled}),Ne=ref(),Ve=ref(),Le=computed(function(){return $e.value.includes(ne)}),De=computed(function(){return!we.value&&Le.value}),Je=computed(function(){return ke.value.includes(ne)}),ze=ref(!1);watch(me,function(){ze.value=!!me.value.find(function(He){return He===ne})},{immediate:!0});var Ge=function(Ye){Be.value||(Q("titleClick",Ye,ne),pe.value==="inline"&&Se(ne,!Le.value))},qe=function(Ye){Be.value||(be(ue.value),Q("mouseenter",Ye))},Ke=function(Ye){Be.value||(be([]),Q("mouseleave",Ye))},Ee=useDirectionStyle(computed(function(){return ue.value.length})),Ce=function(Ye){pe.value!=="inline"&&Se(ne,Ye)},Pe=function(){be(ue.value)},Re=ae&&"".concat(ae,"-popup"),Ze=computed(function(){return classNames(he.value,"".concat(he.value,"-").concat(ye.value),H.popupClassName)}),Oe=function(Ye,nt){if(!nt)return fe.value&&!ce.value.length&&Ye&&typeof Ye=="string"?createVNode("div",{class:"".concat(he.value,"-inline-collapsed-noicon")},[Ye.charAt(0)]):createVNode("span",{class:"".concat(he.value,"-title-content")},[Ye]);var tt=isValidElement(Ye)&&Ye.type==="span";return createVNode(Fragment,null,[cloneElement(nt,{class:"".concat(he.value,"-item-icon")},!1),tt?Ye:createVNode("span",{class:"".concat(he.value,"-title-content")},[Ye])])},Qe=computed(function(){return pe.value!=="inline"&&ue.value.length>1?"vertical":pe.value}),Xe=computed(function(){return pe.value==="horizontal"?"vertical":pe.value}),et=computed(function(){return Qe.value==="horizontal"?"vertical":Qe.value}),We=function(){var Ye=Fe.value,nt=getPropsSlot(X,H,"icon"),tt=H.expandIcon||X.expandIcon||Ie.value,at=Oe(getPropsSlot(X,H,"title"),nt);return createVNode("div",{style:Ee.value,class:"".concat(Ye,"-title"),tabindex:Be.value?null:-1,ref:Ne,title:typeof at=="string"?at:null,"data-menu-id":ne,"aria-expanded":De.value,"aria-haspopup":!0,"aria-controls":Re,"aria-disabled":Be.value,onClick:Ge,onFocus:Pe},[at,pe.value!=="horizontal"&&tt?tt(_objectSpread2$1(_objectSpread2$1({},H),{},{isOpen:De.value})):createVNode("i",{class:"".concat(Ye,"-arrow")},null)])};return function(){var He;if(ee){var Ye;return Ae?(Ye=X.default)===null||Ye===void 0?void 0:Ye.call(X):null}var nt=Fe.value,tt=function(){return null};return!we.value&&pe.value!=="inline"?tt=function(){return createVNode(PopupTrigger,{mode:Qe.value,prefixCls:nt,visible:!H.internalPopupClose&&De.value,popupClassName:Ze.value,popupOffset:H.popupOffset,disabled:Be.value,onVisibleChange:Ce},{default:function(){return[We()]},popup:function(){return createVNode(MenuContextProvider,{mode:et.value,isRootMenu:!1},{default:function(){return[createVNode(SubMenuList,{id:Re,ref:Ve},{default:X.default})]}})}})}:tt=function(){return createVNode(PopupTrigger,null,{default:We})},createVNode(MenuContextProvider,{mode:Xe.value},{default:function(){return[createVNode(Overflow$1.Item,_objectSpread2$1(_objectSpread2$1({component:"li"},Z),{},{role:"none",class:classNames(nt,"".concat(nt,"-").concat(pe.value),Z.class,(He={},_defineProperty$M(He,"".concat(nt,"-open"),De.value),_defineProperty$M(He,"".concat(nt,"-active"),ze.value),_defineProperty$M(He,"".concat(nt,"-selected"),Je.value),_defineProperty$M(He,"".concat(nt,"-disabled"),Be.value),He)),onMouseenter:qe,onMouseleave:Ke,"data-submenu-id":ne}),{default:function(){return createVNode(Fragment,null,[tt(),!we.value&&createVNode(InlineSubMenuList,{id:Re,open:De.value,keyPath:ue.value},{default:X.default})])}})]}})}}});function hasClass(C,H){if(C.classList)return C.classList.contains(H);var U=C.className;return" ".concat(U," ").indexOf(" ".concat(H," "))>-1}function addClass$2(C,H){C.classList?C.classList.add(H):hasClass(C,H)||(C.className="".concat(C.className," ").concat(H))}function removeClass(C,H){if(C.classList)C.classList.remove(H);else if(hasClass(C,H)){var U=C.className;C.className=" ".concat(U," ").replace(" ".concat(H," ")," ")}}var collapseMotion=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:H,appear:U,css:!0,onBeforeEnter:function(G){G.style.height="0px",G.style.opacity="0",addClass$2(G,H)},onEnter:function(G){nextTick$1(function(){G.style.height="".concat(G.scrollHeight,"px"),G.style.opacity="1"})},onAfterEnter:function(G){G&&(removeClass(G,H),G.style.height=null,G.style.opacity=null)},onBeforeLeave:function(G){addClass$2(G,H),G.style.height="".concat(G.offsetHeight,"px"),G.style.opacity=null},onLeave:function(G){setTimeout(function(){G.style.height="0px",G.style.opacity="0"})},onAfterLeave:function(G){G&&(removeClass(G,H),G.style&&(G.style.height=null,G.style.opacity=null))}}};const collapseMotion$1=collapseMotion;var menuProps=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},EMPTY_LIST$2=[];const Menu=defineComponent({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:menuProps(),slots:["expandIcon","overflowedIndicator"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.attrs,Z=useConfigInject("menu",H),Q=Z.prefixCls,ee=Z.direction,ie=Z.getPrefixCls,te=ref({}),ne=inject(SiderCollapsedKey,ref(void 0)),ae=computed(function(){return ne.value!==void 0?ne.value:H.inlineCollapsed}),oe=ref(!1);onMounted(function(){oe.value=!0}),watchEffect(function(){devWarning(!(H.inlineCollapsed===!0&&H.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),devWarning(!(ne.value!==void 0&&H.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var se=ref([]),le=ref([]),ce=ref({});watch(te,function(){for(var Ve={},Le=0,De=Object.values(te.value);Le<De.length;Le++){var Je=De[Le];Ve[Je.key]=Je}ce.value=Ve},{flush:"post"}),watchEffect(function(){if(H.activeKey!==void 0){var Ve=[],Le=H.activeKey?ce.value[H.activeKey]:void 0;Le&&H.activeKey!==void 0?Ve=uniq([].concat(unref(Le.parentKeys),H.activeKey)):Ve=[],shallowequal(se.value,Ve)||(se.value=Ve)}}),watch(function(){return H.selectedKeys},function(Ve){Ve&&(le.value=Ve.slice())},{immediate:!0,deep:!0});var ue=ref([]);watch([ce,le],function(){var Ve=[];le.value.forEach(function(Le){var De=ce.value[Le];De&&(Ve=Ve.concat(unref(De.parentKeys)))}),Ve=uniq(Ve),shallowequal(ue.value,Ve)||(ue.value=Ve)},{immediate:!0});var de=function(Le){if(!!H.selectable){var De=Le.key,Je=le.value.includes(De),ze;H.multiple?Je?ze=le.value.filter(function(qe){return qe!==De}):ze=[].concat(_toConsumableArray$1(le.value),[De]):ze=[De];var Ge=_objectSpread2$1(_objectSpread2$1({},Le),{},{selectedKeys:ze});shallowequal(ze,le.value)||(H.selectedKeys===void 0&&(le.value=ze),G("update:selectedKeys",ze),Je&&H.multiple?G("deselect",Ge):G("select",Ge)),be.value!=="inline"&&!H.multiple&&ve.value.length&&ye(EMPTY_LIST$2)}},ve=ref([]);watch(function(){return H.openKeys},function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ve.value;shallowequal(ve.value,Ve)||(ve.value=Ve.slice())},{immediate:!0,deep:!0});var ge,he=function(Le){clearTimeout(ge),ge=setTimeout(function(){H.activeKey===void 0&&(se.value=Le),G("update:activeKey",Le[Le.length-1])})},me=computed(function(){return!!H.disabled}),_e=computed(function(){return ee.value==="rtl"}),be=ref("vertical"),pe=ref(!1);watchEffect(function(){(H.mode==="inline"||H.mode==="vertical")&&ae.value?(be.value="vertical",pe.value=ae.value):(be.value=H.mode,pe.value=!1)});var fe=computed(function(){return be.value==="inline"}),ye=function(Le){ve.value=Le,G("update:openKeys",Le),G("openChange",Le)},$e=ref(ve.value),we=ref(!1);watch(ve,function(){fe.value&&($e.value=ve.value)},{immediate:!0}),watch(fe,function(){if(!we.value){we.value=!0;return}fe.value?ve.value=$e.value:ye(EMPTY_LIST$2)},{immediate:!0});var Se=computed(function(){var Ve;return Ve={},_defineProperty$M(Ve,"".concat(Q.value),!0),_defineProperty$M(Ve,"".concat(Q.value,"-root"),!0),_defineProperty$M(Ve,"".concat(Q.value,"-").concat(be.value),!0),_defineProperty$M(Ve,"".concat(Q.value,"-inline-collapsed"),pe.value),_defineProperty$M(Ve,"".concat(Q.value,"-rtl"),_e.value),_defineProperty$M(Ve,"".concat(Q.value,"-").concat(H.theme),!0),Ve}),Te=computed(function(){return ie()}),xe=computed(function(){return{horizontal:{name:"".concat(Te.value,"-slide-up")},inline:collapseMotion$1,other:{name:"".concat(Te.value,"-zoom-big")}}});useProvideFirstLevel(!0);var ke=function Ve(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=[],Je=te.value;return Le.forEach(function(ze){var Ge=Je[ze],qe=Ge.key,Ke=Ge.childrenEventKeys;De.push.apply(De,[qe].concat(_toConsumableArray$1(Ve(unref(Ke)))))}),De},Ie=function(Le){G("click",Le),de(Le)},Ae=function(Le,De){var Je,ze=((Je=ce.value[Le])===null||Je===void 0?void 0:Je.childrenEventKeys)||[],Ge=ve.value.filter(function(Ke){return Ke!==Le});if(De)Ge.push(Le);else if(be.value!=="inline"){var qe=ke(unref(ze));Ge=uniq(Ge.filter(function(Ke){return!qe.includes(Ke)}))}shallowequal(ve,Ge)||ye(Ge)},Me=function(Le,De){te.value=_objectSpread2$1(_objectSpread2$1({},te.value),{},_defineProperty$M({},Le,De))},Fe=function(Le){delete te.value[Le],te.value=_objectSpread2$1({},te.value)},Be=ref(0),Ne=computed(function(){return H.expandIcon||W.expandIcon?function(Ve){var Le=H.expandIcon||W.expandIcon;return Le=typeof Le=="function"?Le(Ve):Le,cloneElement(Le,{class:"".concat(Q.value,"-submenu-expand-icon")},!1)}:null});return useProvideMenu$1({store:te,prefixCls:Q,activeKeys:se,openKeys:ve,selectedKeys:le,changeActiveKeys:he,disabled:me,rtl:_e,mode:be,inlineIndent:computed(function(){return H.inlineIndent}),subMenuCloseDelay:computed(function(){return H.subMenuCloseDelay}),subMenuOpenDelay:computed(function(){return H.subMenuOpenDelay}),builtinPlacements:computed(function(){return H.builtinPlacements}),triggerSubMenuAction:computed(function(){return H.triggerSubMenuAction}),getPopupContainer:computed(function(){return H.getPopupContainer}),inlineCollapsed:pe,antdMenuTheme:computed(function(){return H.theme}),siderCollapsed:ne,defaultMotions:computed(function(){return oe.value?xe.value:null}),motion:computed(function(){return oe.value?H.motion:null}),overflowDisabled:ref(void 0),onOpenChange:Ae,onItemClick:Ie,registerMenuInfo:Me,unRegisterMenuInfo:Fe,selectedSubMenuKeys:ue,isRootMenu:ref(!0),expandIcon:Ne,forceSubMenuRender:computed(function(){return H.forceSubMenuRender})}),function(){var Ve,Le,De=flattenChildren((Ve=W.default)===null||Ve===void 0?void 0:Ve.call(W)),Je=Be.value>=De.length-1||be.value!=="horizontal"||H.disabledOverflow,ze=be.value!=="horizontal"||H.disabledOverflow?De:De.map(function(qe,Ke){return createVNode(MenuContextProvider,{key:qe.key,overflowDisabled:Ke>Be.value},{default:function(){return qe}})}),Ge=((Le=W.overflowedIndicator)===null||Le===void 0?void 0:Le.call(W))||createVNode(EllipsisOutlined$1,null,null);return createVNode(Overflow$1,_objectSpread2$1(_objectSpread2$1({},X),{},{onMousedown:H.onMousedown,prefixCls:"".concat(Q.value,"-overflow"),component:"ul",itemComponent:__unplugin_components_13,class:[Se.value,X.class],role:"menu",id:H.id,data:ze,renderRawItem:function(Ke){return Ke},renderRawRest:function(Ke){var Ee=Ke.length,Ce=Ee?De.slice(-Ee):null;return createVNode(Fragment,null,[createVNode(__unplugin_components_1$2,{eventKey:OVERFLOW_KEY,key:OVERFLOW_KEY,title:Ge,disabled:Je,internalPopupClose:Ee===0},{default:function(){return Ce}}),createVNode(PathContext,null,{default:function(){return[createVNode(__unplugin_components_1$2,{eventKey:OVERFLOW_KEY,key:OVERFLOW_KEY,title:Ge,disabled:Je,internalPopupClose:Ee===0},{default:function(){return Ce}})]}})])},maxCount:be.value!=="horizontal"||H.disabledOverflow?Overflow$1.INVALIDATE:Overflow$1.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ke){Be.value=Ke}}),{default:function(){return[createVNode(Teleport,{to:"body"},{default:function(){return[createVNode("div",{style:{display:"none"},"aria-hidden":!0},[createVNode(PathContext,null,{default:function(){return[ze]}})])]}})]}})}}});var menuItemGroupProps=function(){return{title:PropTypes$1.any}};const ItemGroup=defineComponent({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:menuItemGroupProps(),slots:["title"],setup:function(H,U){var W=U.slots,G=U.attrs,X=useInjectMenu(),Z=X.prefixCls,Q=computed(function(){return"".concat(Z.value,"-item-group")}),ee=useMeasure();return function(){var ie,te;return ee?(ie=W.default)===null||ie===void 0?void 0:ie.call(W):createVNode("li",_objectSpread2$1(_objectSpread2$1({},G),{},{onClick:function(ae){return ae.stopPropagation()},class:Q.value}),[createVNode("div",{title:typeof H.title=="string"?H.title:void 0,class:"".concat(Q.value,"-title")},[getPropsSlot(W,H,"title")]),createVNode("ul",{class:"".concat(Q.value,"-list")},[(te=W.default)===null||te===void 0?void 0:te.call(W)])])}}});var menuDividerProps=function(){return{prefixCls:String,dashed:Boolean}};const __unplugin_components_2$2=defineComponent({compatConfig:{MODE:3},name:"AMenuDivider",props:menuDividerProps(),setup:function(H){var U=useConfigInject("menu",H),W=U.prefixCls,G=computed(function(){var X;return X={},_defineProperty$M(X,"".concat(W.value,"-item-divider"),!0),_defineProperty$M(X,"".concat(W.value,"-item-divider-dashed"),!!H.dashed),X});return function(){return createVNode("li",{class:G.value},null)}}});Menu.install=function(C){return C.component(Menu.name,Menu),C.component(__unplugin_components_13.name,__unplugin_components_13),C.component(__unplugin_components_1$2.name,__unplugin_components_1$2),C.component(__unplugin_components_2$2.name,__unplugin_components_2$2),C.component(ItemGroup.name,ItemGroup),C};Menu.Item=__unplugin_components_13;Menu.Divider=__unplugin_components_2$2;Menu.SubMenu=__unplugin_components_1$2;Menu.ItemGroup=ItemGroup;function arrayMap$2(C,H){for(var U=-1,W=C==null?0:C.length,G=Array(W);++U<W;)G[U]=H(C[U],U,C);return G}var symbolTag$5="[object Symbol]";function isSymbol$5(C){return typeof C=="symbol"||isObjectLike$8(C)&&baseGetTag$7(C)==symbolTag$5}var INFINITY$5=1/0,symbolProto$3=Symbol$7?Symbol$7.prototype:void 0,symbolToString$1=symbolProto$3?symbolProto$3.toString:void 0;function baseToString$2(C){if(typeof C=="string")return C;if(isArray$c(C))return arrayMap$2(C,baseToString$2)+"";if(isSymbol$5(C))return symbolToString$1?symbolToString$1.call(C):"";var H=C+"";return H=="0"&&1/C==-INFINITY$5?"-0":H}function baseSlice$2(C,H,U){var W=-1,G=C.length;H<0&&(H=-H>G?0:G+H),U=U>G?G:U,U<0&&(U+=G),G=H>U?0:U-H>>>0,H>>>=0;for(var X=Array(G);++W<G;)X[W]=C[W+H];return X}function baseProperty(C){return function(H){return H==null?void 0:H[C]}}var reWhitespace$1=/\s/;function trimmedEndIndex$2(C){for(var H=C.length;H--&&reWhitespace$1.test(C.charAt(H)););return H}var reTrimStart$1=/^\s+/;function baseTrim$2(C){return C&&C.slice(0,trimmedEndIndex$2(C)+1).replace(reTrimStart$1,"")}var NAN$1=0/0,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$2(C){if(typeof C=="number")return C;if(isSymbol$5(C))return NAN$1;if(isObject$d(C)){var H=typeof C.valueOf=="function"?C.valueOf():C;C=isObject$d(H)?H+"":H}if(typeof C!="string")return C===0?C:+C;C=baseTrim$2(C);var U=reIsBinary$1.test(C);return U||reIsOctal$1.test(C)?freeParseInt$1(C.slice(2),U?2:8):reIsBadHex$1.test(C)?NAN$1:+C}var INFINITY$4=1/0,MAX_INTEGER$1=17976931348623157e292;function toFinite$2(C){if(!C)return C===0?C:0;if(C=toNumber$2(C),C===INFINITY$4||C===-INFINITY$4){var H=C<0?-1:1;return H*MAX_INTEGER$1}return C===C?C:0}function toInteger(C){var H=toFinite$2(C),U=H%1;return H===H?U?H-U:H:0}function toString$5(C){return C==null?"":baseToString$2(C)}var _excluded$j=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],checkboxProps$1={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:PropTypes$1.any,required:Boolean};const VcCheckbox=defineComponent({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:initDefaultProps$1(checkboxProps$1,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(H,U){var W=U.attrs,G=U.emit,X=U.expose,Z=ref(H.checked===void 0?H.defaultChecked:H.checked),Q=ref();watch(function(){return H.checked},function(){Z.value=H.checked}),X({focus:function(){var ae;(ae=Q.value)===null||ae===void 0||ae.focus()},blur:function(){var ae;(ae=Q.value)===null||ae===void 0||ae.blur()}});var ee=ref(),ie=function(ae){if(!H.disabled){H.checked===void 0&&(Z.value=ae.target.checked),ae.shiftKey=ee.value;var oe={target:_objectSpread2$1(_objectSpread2$1({},H),{},{checked:ae.target.checked}),stopPropagation:function(){ae.stopPropagation()},preventDefault:function(){ae.preventDefault()},nativeEvent:ae};H.checked!==void 0&&(Q.value.checked=!!H.checked),G("change",oe),ee.value=!1}},te=function(ae){G("click",ae),ee.value=ae.shiftKey};return function(){var ne,ae=H.prefixCls,oe=H.name,se=H.id,le=H.type,ce=H.disabled,ue=H.readonly,de=H.tabindex,ve=H.autofocus,ge=H.value,he=H.required,me=_objectWithoutProperties$4(H,_excluded$j),_e=W.class,be=W.onFocus,pe=W.onBlur,fe=W.onKeydown,ye=W.onKeypress,$e=W.onKeyup,we=_objectSpread2$1(_objectSpread2$1({},me),W),Se=Object.keys(we).reduce(function(ke,Ie){return(Ie.substr(0,5)==="aria-"||Ie.substr(0,5)==="data-"||Ie==="role")&&(ke[Ie]=we[Ie]),ke},{}),Te=classNames(ae,_e,(ne={},_defineProperty$M(ne,"".concat(ae,"-checked"),Z.value),_defineProperty$M(ne,"".concat(ae,"-disabled"),ce),ne)),xe=_objectSpread2$1(_objectSpread2$1({name:oe,id:se,type:le,readonly:ue,disabled:ce,tabindex:de,class:"".concat(ae,"-input"),checked:!!Z.value,autofocus:ve,value:ge},Se),{},{onChange:ie,onClick:te,onFocus:be,onBlur:pe,onKeydown:fe,onKeypress:ye,onKeyup:$e,required:he});return createVNode("span",{class:Te},[createVNode("input",_objectSpread2$1({ref:Q},xe),null),createVNode("span",{class:"".concat(ae,"-inner")},null)])}}});var _excluded$i=["prefixCls","id"],radioProps=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:PropTypes$1.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const Radio=defineComponent({compatConfig:{MODE:3},name:"ARadio",props:radioProps(),setup:function(H,U){var W=U.emit,G=U.expose,X=U.slots,Z=useInjectFormItemContext(),Q=ref(),ee=inject("radioGroupContext",void 0),ie=useConfigInject("radio",H),te=ie.prefixCls,ne=ie.direction,ae=function(){Q.value.focus()},oe=function(){Q.value.blur()};G({focus:ae,blur:oe});var se=function(ue){var de=ue.target.checked;W("update:checked",de),W("update:value",de),W("change",ue),Z.onFieldChange()},le=function(ue){W("change",ue),ee&&ee.onRadioChange&&ee.onRadioChange(ue)};return function(){var ce,ue=ee;H.prefixCls;var de=H.id,ve=de===void 0?Z.id.value:de,ge=_objectWithoutProperties$4(H,_excluded$i),he=_objectSpread2$1({prefixCls:te.value,id:ve},omit$2(ge,["onUpdate:checked","onUpdate:value"]));ue?(he.name=ue.props.name,he.onChange=le,he.checked=H.value===ue.stateValue.value,he.disabled=H.disabled||ue.props.disabled):he.onChange=se;var me=classNames((ce={},_defineProperty$M(ce,"".concat(te.value,"-wrapper"),!0),_defineProperty$M(ce,"".concat(te.value,"-wrapper-checked"),he.checked),_defineProperty$M(ce,"".concat(te.value,"-wrapper-disabled"),he.disabled),_defineProperty$M(ce,"".concat(te.value,"-wrapper-rtl"),ne.value==="rtl"),ce));return createVNode("label",{class:me},[createVNode(VcCheckbox,_objectSpread2$1(_objectSpread2$1({},he),{},{type:"radio",ref:Q}),null),X.default&&createVNode("span",null,[X.default()])])}}});var RadioGroupSizeTypes=tuple("large","default","small"),radioGroupProps=function(){return{prefixCls:String,value:PropTypes$1.any,size:PropTypes$1.oneOf(RadioGroupSizeTypes),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const __unplugin_components_12=defineComponent({compatConfig:{MODE:3},name:"ARadioGroup",props:radioGroupProps(),setup:function(H,U){var W=U.slots,G=U.emit,X=useInjectFormItemContext(),Z=useConfigInject("radio",H),Q=Z.prefixCls,ee=Z.direction,ie=Z.size,te=ref(H.value),ne=ref(!1);watch(function(){return H.value},function(oe){te.value=oe,ne.value=!1});var ae=function(se){var le=te.value,ce=se.target.value;"value"in H||(te.value=ce),!ne.value&&ce!==le&&(ne.value=!0,G("update:value",ce),G("change",se),X.onFieldChange()),nextTick$1(function(){ne.value=!1})};return provide("radioGroupContext",{onRadioChange:ae,stateValue:te,props:H}),function(){var oe,se=H.options,le=H.optionType,ce=H.buttonStyle,ue=H.id,de=ue===void 0?X.id.value:ue,ve="".concat(Q.value,"-group"),ge=classNames(ve,"".concat(ve,"-").concat(ce),(oe={},_defineProperty$M(oe,"".concat(ve,"-").concat(ie.value),ie.value),_defineProperty$M(oe,"".concat(ve,"-rtl"),ee.value==="rtl"),oe)),he=null;if(se&&se.length>0){var me=le==="button"?"".concat(Q.value,"-button"):Q.value;he=se.map(function(be){if(typeof be=="string"||typeof be=="number")return createVNode(Radio,{key:be,prefixCls:me,disabled:H.disabled,value:be,checked:te.value===be},{default:function(){return[be]}});var pe=be.value,fe=be.disabled,ye=be.label;return createVNode(Radio,{key:"radio-group-value-options-".concat(pe),prefixCls:me,disabled:fe||H.disabled,value:pe,checked:te.value===pe},{default:function(){return[ye]}})})}else{var _e;he=(_e=W.default)===null||_e===void 0?void 0:_e.call(W)}return createVNode("div",{class:ge,id:de},[he])}}}),Button=defineComponent({compatConfig:{MODE:3},name:"ARadioButton",props:radioProps(),setup:function(H,U){var W=U.slots,G=useConfigInject("radio-button",H),X=G.prefixCls,Z=inject("radioGroupContext",void 0);return function(){var Q,ee=_objectSpread2$1(_objectSpread2$1({},H),{},{prefixCls:X.value});return Z&&(ee.onChange=Z.onRadioChange,ee.checked=ee.value===Z.stateValue.value,ee.disabled=ee.disabled||Z.props.disabled),createVNode(Radio,ee,{default:function(){return[(Q=W.default)===null||Q===void 0?void 0:Q.call(W)]}})}}});Radio.Group=__unplugin_components_12;Radio.Button=Button;Radio.install=function(C){return C.component(Radio.name,Radio),C.component(Radio.Group.name,Radio.Group),C.component(Radio.Button.name,Radio.Button),C};function useRaf(C){var H=ref(),U=ref(!1);function W(){for(var G=arguments.length,X=new Array(G),Z=0;Z<G;Z++)X[Z]=arguments[Z];U.value||(wrapperRaf.cancel(H.value),H.value=wrapperRaf(function(){C.apply(void 0,X)}))}return onBeforeUnmount(function(){U.value=!0,wrapperRaf.cancel(H.value)}),W}function useRafState(C){var H=ref([]),U=ref(typeof C=="function"?C():C),W=useRaf(function(){var X=U.value;H.value.forEach(function(Z){X=Z(X)}),H.value=[],U.value=X});function G(X){H.value.push(X),W()}return[U,G]}const TabNode=defineComponent({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup:function(H,U){var W=U.expose,G=U.attrs,X=ref();function Z(ie){var te;(te=H.tab)!==null&&te!==void 0&&te.disabled||H.onClick(ie)}W({domRef:X});function Q(ie){var te;ie.preventDefault(),ie.stopPropagation(),H.editable.onEdit("remove",{key:(te=H.tab)===null||te===void 0?void 0:te.key,event:ie})}var ee=computed(function(){var ie;return H.editable&&H.closable!==!1&&!((ie=H.tab)!==null&&ie!==void 0&&ie.disabled)});return function(){var ie,te,ne=H.prefixCls,ae=H.id,oe=H.active,se=H.tab,le=se.key,ce=se.tab,ue=se.disabled,de=se.closeIcon,ve=H.renderWrapper,ge=H.removeAriaLabel,he=H.editable,me=H.onFocus,_e="".concat(ne,"-tab"),be=createVNode("div",{key:le,ref:X,class:classNames(_e,(ie={},_defineProperty$M(ie,"".concat(_e,"-with-remove"),ee.value),_defineProperty$M(ie,"".concat(_e,"-active"),oe),_defineProperty$M(ie,"".concat(_e,"-disabled"),ue),ie)),style:G.style,onClick:Z},[createVNode("div",{role:"tab","aria-selected":oe,id:ae&&"".concat(ae,"-tab-").concat(le),class:"".concat(_e,"-btn"),"aria-controls":ae&&"".concat(ae,"-panel-").concat(le),"aria-disabled":ue,tabindex:ue?null:0,onClick:function(fe){fe.stopPropagation(),Z(fe)},onKeydown:function(fe){[KeyCode$1.SPACE,KeyCode$1.ENTER].includes(fe.which)&&(fe.preventDefault(),Z(fe))},onFocus:me},[typeof ce=="function"?ce():ce]),ee.value&&createVNode("button",{type:"button","aria-label":ge||"remove",tabindex:0,class:"".concat(_e,"-remove"),onClick:function(fe){fe.stopPropagation(),Q(fe)}},[(de==null?void 0:de())||((te=he.removeIcon)===null||te===void 0?void 0:te.call(he))||"\xD7"])]);return ve?ve(be):be}}});var DEFAULT_SIZE$1={width:0,height:0,left:0,top:0};function useOffsets(C,H){var U=ref(new Map);return watchEffect(function(){for(var W,G=new Map,X=C.value,Z=H.value.get((W=X[0])===null||W===void 0?void 0:W.key)||DEFAULT_SIZE$1,Q=Z.left+Z.width,ee=0;ee<X.length;ee+=1){var ie=X[ee].key,te=H.value.get(ie);if(!te){var ne;te=H.value.get((ne=X[ee-1])===null||ne===void 0?void 0:ne.key)||DEFAULT_SIZE$1}var ae=G.get(ie)||_objectSpread2$1({},te);ae.right=Q-ae.left-ae.width,G.set(ie,ae)}U.value=new Map(G)}),U}const AddButton=defineComponent({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup:function(H,U){var W=U.expose,G=U.attrs,X=ref();return W({domRef:X}),function(){var Z=H.prefixCls,Q=H.editable,ee=H.locale;return!Q||Q.showAdd===!1?null:createVNode("button",{ref:X,type:"button",class:"".concat(Z,"-nav-add"),style:G.style,"aria-label":(ee==null?void 0:ee.addAriaLabel)||"Add tab",onClick:function(te){Q.onEdit("add",{event:te})}},[Q.addIcon?Q.addIcon():"+"])}}});var operationNodeProps={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:PropTypes$1.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function}};const OperationNode=defineComponent({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:operationNodeProps,emits:["tabClick"],slots:["moreIcon"],setup:function(H,U){var W=U.attrs,G=U.slots,X=useState(!1),Z=_slicedToArray$2(X,2),Q=Z[0],ee=Z[1],ie=useState(null),te=_slicedToArray$2(ie,2),ne=te[0],ae=te[1],oe=function(ve){for(var ge=H.tabs.filter(function(pe){return!pe.disabled}),he=ge.findIndex(function(pe){return pe.key===ne.value})||0,me=ge.length,_e=0;_e<me;_e+=1){he=(he+ve+me)%me;var be=ge[he];if(!be.disabled){ae(be.key);return}}},se=function(ve){var ge=ve.which;if(!Q.value){[KeyCode$1.DOWN,KeyCode$1.SPACE,KeyCode$1.ENTER].includes(ge)&&(ee(!0),ve.preventDefault());return}switch(ge){case KeyCode$1.UP:oe(-1),ve.preventDefault();break;case KeyCode$1.DOWN:oe(1),ve.preventDefault();break;case KeyCode$1.ESC:ee(!1);break;case KeyCode$1.SPACE:case KeyCode$1.ENTER:ne.value!==null&&H.onTabClick(ne.value,ve);break}},le=computed(function(){return"".concat(H.id,"-more-popup")}),ce=computed(function(){return ne.value!==null?"".concat(le.value,"-").concat(ne.value):null}),ue=function(ve,ge){ve.preventDefault(),ve.stopPropagation(),H.editable.onEdit("remove",{key:ge,event:ve})};return onMounted(function(){watch(ne,function(){var de=document.getElementById(ce.value);de&&de.scrollIntoView&&de.scrollIntoView(!1)},{flush:"post",immediate:!0})}),watch(Q,function(){Q.value||ae(null)}),function(){var de,ve=H.prefixCls,ge=H.id,he=H.tabs,me=H.locale,_e=H.mobile,be=H.moreIcon,pe=be===void 0?((de=G.moreIcon)===null||de===void 0?void 0:de.call(G))||createVNode(EllipsisOutlined$1,null,null):be,fe=H.moreTransitionName,ye=H.editable,$e=H.tabBarGutter,we=H.rtl,Se=H.onTabClick,Te="".concat(ve,"-dropdown"),xe=me==null?void 0:me.dropdownAriaLabel,ke=_defineProperty$M({},we?"marginRight":"marginLeft",$e);he.length||(ke.visibility="hidden",ke.order=1);var Ie=classNames(_defineProperty$M({},"".concat(Te,"-rtl"),we)),Ae=_e?null:createVNode(Dropdown$2,{prefixCls:Te,trigger:["hover"],visible:Q.value,transitionName:fe,onVisibleChange:ee,overlayClassName:Ie,mouseEnterDelay:.1,mouseLeaveDelay:.1},{overlay:function(){return createVNode(Menu,{onClick:function(Be){var Ne=Be.key,Ve=Be.domEvent;Se(Ne,Ve),ee(!1)},id:le.value,tabindex:-1,role:"listbox","aria-activedescendant":ce.value,selectedKeys:[ne.value],"aria-label":xe!==void 0?xe:"expanded dropdown"},{default:function(){return[he.map(function(Be){var Ne,Ve,Le=ye&&Be.closable!==!1&&!Be.disabled;return createVNode(__unplugin_components_13,{key:Be.key,id:"".concat(le.value,"-").concat(Be.key),role:"option","aria-controls":ge&&"".concat(ge,"-panel-").concat(Be.key),disabled:Be.disabled},{default:function(){return[createVNode("span",null,[typeof Be.tab=="function"?Be.tab():Be.tab]),Le&&createVNode("button",{type:"button","aria-label":H.removeAriaLabel||"remove",tabindex:0,class:"".concat(Te,"-menu-item-remove"),onClick:function(ze){ze.stopPropagation(),ue(ze,Be.key)}},[((Ne=Be.closeIcon)===null||Ne===void 0?void 0:Ne.call(Be))||((Ve=ye.removeIcon)===null||Ve===void 0?void 0:Ve.call(ye))||"\xD7"])]}})})]}})},default:function(){return createVNode("button",{type:"button",class:"".concat(ve,"-nav-more"),style:ke,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":le.value,id:"".concat(ge,"-more"),"aria-expanded":Q.value,onKeydown:se},[pe])}});return createVNode("div",{class:classNames("".concat(ve,"-nav-operations"),W.class),style:W.style},[Ae,createVNode(AddButton,{prefixCls:ve,locale:me,editable:ye},null)])}}});var TabsContextKey=Symbol("tabsContextKey"),useProvideTabs=function(H){provide(TabsContextKey,H)},useInjectTabs=function(){return inject(TabsContextKey,{tabs:ref([]),prefixCls:ref()})};defineComponent({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup:function(H,U){var W=U.slots;return useProvideTabs(toRefs(H)),function(){var G;return(G=W.default)===null||G===void 0?void 0:G.call(W)}}});var MIN_SWIPE_DISTANCE=.1,STOP_SWIPE_DISTANCE=.01,REFRESH_INTERVAL=20,SPEED_OFF_MULTIPLE=Math.pow(.995,REFRESH_INTERVAL);function useTouchMove(C,H){var U=useState(),W=_slicedToArray$2(U,2),G=W[0],X=W[1],Z=useState(0),Q=_slicedToArray$2(Z,2),ee=Q[0],ie=Q[1],te=useState(0),ne=_slicedToArray$2(te,2),ae=ne[0],oe=ne[1],se=useState(),le=_slicedToArray$2(se,2),ce=le[0],ue=le[1],de=ref();function ve(we){var Se=we.touches[0],Te=Se.screenX,xe=Se.screenY;X({x:Te,y:xe}),clearInterval(de.value)}function ge(we){if(!!G.value){we.preventDefault();var Se=we.touches[0],Te=Se.screenX,xe=Se.screenY,ke=Te-G.value.x,Ie=xe-G.value.y;H(ke,Ie),X({x:Te,y:xe});var Ae=Date.now();oe(Ae-ee.value),ie(Ae),ue({x:ke,y:Ie})}}function he(){if(!!G.value){var we=ce.value;if(X(null),ue(null),we){var Se=we.x/ae.value,Te=we.y/ae.value,xe=Math.abs(Se),ke=Math.abs(Te);if(Math.max(xe,ke)<MIN_SWIPE_DISTANCE)return;var Ie=Se,Ae=Te;de.value=setInterval(function(){if(Math.abs(Ie)<STOP_SWIPE_DISTANCE&&Math.abs(Ae)<STOP_SWIPE_DISTANCE){clearInterval(de.value);return}Ie*=SPEED_OFF_MULTIPLE,Ae*=SPEED_OFF_MULTIPLE,H(Ie*REFRESH_INTERVAL,Ae*REFRESH_INTERVAL)},REFRESH_INTERVAL)}}}var me=ref();function _e(we){var Se=we.deltaX,Te=we.deltaY,xe=0,ke=Math.abs(Se),Ie=Math.abs(Te);ke===Ie?xe=me.value==="x"?Se:Te:ke>Ie?(xe=Se,me.value="x"):(xe=Te,me.value="y"),H(-xe,-xe)&&we.preventDefault()}var be=ref({onTouchStart:ve,onTouchMove:ge,onTouchEnd:he,onWheel:_e});function pe(we){be.value.onTouchStart(we)}function fe(we){be.value.onTouchMove(we)}function ye(we){be.value.onTouchEnd(we)}function $e(we){be.value.onWheel(we)}onMounted(function(){var we,Se;document.addEventListener("touchmove",fe,{passive:!1}),document.addEventListener("touchend",ye,{passive:!1}),(we=C.value)===null||we===void 0||we.addEventListener("touchstart",pe,{passive:!1}),(Se=C.value)===null||Se===void 0||Se.addEventListener("wheel",$e,{passive:!1})}),onBeforeUnmount(function(){document.removeEventListener("touchmove",fe),document.removeEventListener("touchend",ye)})}function useSyncState(C,H){var U=ref(C);function W(G){var X=typeof G=="function"?G(U.value):G;X!==U.value&&H(X,U.value),U.value=X}return[U,W]}var useRefs=function(){var H=ref(new Map),U=function(G){return function(X){H.value.set(G,X)}};return onBeforeUpdate(function(){H.value=new Map}),[U,H]};const useRefs$1=useRefs;var reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$2(C,H){if(isArray$c(C))return!1;var U=typeof C;return U=="number"||U=="symbol"||U=="boolean"||C==null||isSymbol$5(C)?!0:reIsPlainProp$1.test(C)||!reIsDeepProp$1.test(C)||H!=null&&C in Object(H)}var FUNC_ERROR_TEXT$2="Expected a function";function memoize$3(C,H){if(typeof C!="function"||H!=null&&typeof H!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var U=function(){var W=arguments,G=H?H.apply(this,W):W[0],X=U.cache;if(X.has(G))return X.get(G);var Z=C.apply(this,W);return U.cache=X.set(G,Z)||X,Z};return U.cache=new(memoize$3.Cache||MapCache$3),U}memoize$3.Cache=MapCache$3;var MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(C){var H=memoize$3(C,function(W){return U.size===MAX_MEMOIZE_SIZE$1&&U.clear(),W}),U=H.cache;return H}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=memoizeCapped$2(function(C){var H=[];return C.charCodeAt(0)===46&&H.push(""),C.replace(rePropName$1,function(U,W,G,X){H.push(G?X.replace(reEscapeChar$1,"$1"):W||U)}),H});const stringToPath$3=stringToPath$2;function castPath$4(C,H){return isArray$c(C)?C:isKey$2(C,H)?[C]:stringToPath$3(toString$5(C))}var INFINITY$3=1/0;function toKey$4(C){if(typeof C=="string"||isSymbol$5(C))return C;var H=C+"";return H=="0"&&1/C==-INFINITY$3?"-0":H}function baseGet$2(C,H){H=castPath$4(H,C);for(var U=0,W=H.length;C!=null&&U<W;)C=C[toKey$4(H[U++])];return U&&U==W?C:void 0}var defineProperty$2=function(){try{var C=getNative$8(Object,"defineProperty");return C({},"",{}),C}catch{}}();const defineProperty$3=defineProperty$2;function baseAssignValue$3(C,H,U){H=="__proto__"&&defineProperty$3?defineProperty$3(C,H,{configurable:!0,enumerable:!0,value:U,writable:!0}):C[H]=U}var objectProto$j=Object.prototype,hasOwnProperty$i=objectProto$j.hasOwnProperty;function assignValue$3(C,H,U){var W=C[H];(!(hasOwnProperty$i.call(C,H)&&eq$4(W,U))||U===void 0&&!(H in C))&&baseAssignValue$3(C,H,U)}function baseSet(C,H,U,W){if(!isObject$d(C))return C;H=castPath$4(H,C);for(var G=-1,X=H.length,Z=X-1,Q=C;Q!=null&&++G<X;){var ee=toKey$4(H[G]),ie=U;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return C;if(G!=Z){var te=Q[ee];ie=W?W(te,ee,Q):void 0,ie===void 0&&(ie=isObject$d(te)?te:isIndex$4(H[G+1])?[]:{})}assignValue$3(Q,ee,ie),Q=Q[ee]}return C}function basePickBy(C,H,U){for(var W=-1,G=H.length,X={};++W<G;){var Z=H[W],Q=baseGet$2(C,Z);U(Q,Z)&&baseSet(X,castPath$4(Z,C),Q)}return X}function baseHasIn(C,H){return C!=null&&H in Object(C)}function hasPath$2(C,H,U){H=castPath$4(H,C);for(var W=-1,G=H.length,X=!1;++W<G;){var Z=toKey$4(H[W]);if(!(X=C!=null&&U(C,Z)))break;C=C[Z]}return X||++W!=G?X:(G=C==null?0:C.length,!!G&&isLength$4(G)&&isIndex$4(Z,G)&&(isArray$c(C)||isArguments$4(C)))}function hasIn(C,H){return C!=null&&hasPath$2(C,H,baseHasIn)}function basePick(C,H){return basePickBy(C,H,function(U,W){return hasIn(C,W)})}var spreadableSymbol=Symbol$7?Symbol$7.isConcatSpreadable:void 0;function isFlattenable(C){return isArray$c(C)||isArguments$4(C)||!!(spreadableSymbol&&C&&C[spreadableSymbol])}function baseFlatten(C,H,U,W,G){var X=-1,Z=C.length;for(U||(U=isFlattenable),G||(G=[]);++X<Z;){var Q=C[X];H>0&&U(Q)?H>1?baseFlatten(Q,H-1,U,W,G):arrayPush$4(G,Q):W||(G[G.length]=Q)}return G}function flatten(C){var H=C==null?0:C.length;return H?baseFlatten(C,1):[]}function apply$4(C,H,U){switch(U.length){case 0:return C.call(H);case 1:return C.call(H,U[0]);case 2:return C.call(H,U[0],U[1]);case 3:return C.call(H,U[0],U[1],U[2])}return C.apply(H,U)}var nativeMax$3=Math.max;function overRest(C,H,U){return H=nativeMax$3(H===void 0?C.length-1:H,0),function(){for(var W=arguments,G=-1,X=nativeMax$3(W.length-H,0),Z=Array(X);++G<X;)Z[G]=W[H+G];G=-1;for(var Q=Array(H+1);++G<H;)Q[G]=W[G];return Q[H]=U(Z),apply$4(C,this,Q)}}function constant$5(C){return function(){return C}}function identity$5(C){return C}var baseSetToString=defineProperty$3?function(C,H){return defineProperty$3(C,"toString",{configurable:!0,enumerable:!1,value:constant$5(H),writable:!0})}:identity$5;const baseSetToString$1=baseSetToString;var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(C){var H=0,U=0;return function(){var W=nativeNow(),G=HOT_SPAN-(W-U);if(U=W,G>0){if(++H>=HOT_COUNT)return arguments[0]}else H=0;return C.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function flatRest(C){return setToString$1(overRest(C,void 0,flatten),C+"")}var pick=flatRest(function(C,H){return C==null?{}:basePick(C,H)});const pick$1=pick;var DEFAULT_SIZE={width:0,height:0,left:0,top:0,right:0},tabNavListProps=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:PropTypes$1.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const TabNavList=defineComponent({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:tabNavListProps(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(H,U){var W=U.attrs,G=U.slots,X=useInjectTabs(),Z=X.tabs,Q=X.prefixCls,ee=ref(),ie=ref(),te=ref(),ne=ref(),ae=useRefs$1(),oe=_slicedToArray$2(ae,2),se=oe[0],le=oe[1],ce=computed(function(){return H.tabPosition==="top"||H.tabPosition==="bottom"}),ue=useSyncState(0,function(ft,Ct){ce.value&&H.onTabScroll&&H.onTabScroll({direction:ft>Ct?"left":"right"})}),de=_slicedToArray$2(ue,2),ve=de[0],ge=de[1],he=useSyncState(0,function(ft,Ct){!ce.value&&H.onTabScroll&&H.onTabScroll({direction:ft>Ct?"top":"bottom"})}),me=_slicedToArray$2(he,2),_e=me[0],be=me[1],pe=useState(0),fe=_slicedToArray$2(pe,2),ye=fe[0],$e=fe[1],we=useState(0),Se=_slicedToArray$2(we,2),Te=Se[0],xe=Se[1],ke=useState(null),Ie=_slicedToArray$2(ke,2),Ae=Ie[0],Me=Ie[1],Fe=useState(null),Be=_slicedToArray$2(Fe,2),Ne=Be[0],Ve=Be[1],Le=useState(0),De=_slicedToArray$2(Le,2),Je=De[0],ze=De[1],Ge=useState(0),qe=_slicedToArray$2(Ge,2),Ke=qe[0],Ee=qe[1],Ce=useRafState(new Map),Pe=_slicedToArray$2(Ce,2),Re=Pe[0],Ze=Pe[1],Oe=useOffsets(Z,Re),Qe=computed(function(){return"".concat(Q.value,"-nav-operations-hidden")}),Xe=ref(0),et=ref(0);watchEffect(function(){ce.value?H.rtl?(Xe.value=0,et.value=Math.max(0,ye.value-Ae.value)):(Xe.value=Math.min(0,Ae.value-ye.value),et.value=0):(Xe.value=Math.min(0,Ne.value-Te.value),et.value=0)});var We=function(Ct){return Ct<Xe.value?Xe.value:Ct>et.value?et.value:Ct},He=ref(),Ye=useState(),nt=_slicedToArray$2(Ye,2),tt=nt[0],at=nt[1],St=function(){at(Date.now())},st=function(){clearTimeout(He.value)},it=function(Ct,At){Ct(function(Rt){var It=We(Rt+At);return It})};useTouchMove(ee,function(ft,Ct){if(ce.value){if(Ae.value>=ye.value)return!1;it(ge,ft)}else{if(Ne.value>=Te.value)return!1;it(be,Ct)}return st(),St(),!0}),watch(tt,function(){st(),tt.value&&(He.value=setTimeout(function(){at(0)},100))});var pt=function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H.activeKey,At=Oe.value.get(Ct)||{width:0,height:0,left:0,right:0,top:0};if(ce.value){var Rt=ve.value;H.rtl?At.right<ve.value?Rt=At.right:At.right+At.width>ve.value+Ae.value&&(Rt=At.right+At.width-Ae.value):At.left<-ve.value?Rt=-At.left:At.left+At.width>-ve.value+Ae.value&&(Rt=-(At.left+At.width-Ae.value)),be(0),ge(We(Rt))}else{var It=_e.value;At.top<-_e.value?It=-At.top:At.top+At.height>-_e.value+Ne.value&&(It=-(At.top+At.height-Ne.value)),ge(0),be(We(It))}},wt=ref(0),xt=ref(0);watchEffect(function(){var ft,Ct,At,Rt,It,Ft,Pt,Ht=Oe.value;["top","bottom"].includes(H.tabPosition)?(Ct="width",It=Ae.value,Ft=ye.value,Pt=Je.value,At=H.rtl?"right":"left",Rt=Math.abs(ve.value)):(Ct="height",It=Ne.value,Ft=ye.value,Pt=Ke.value,At="top",Rt=-_e.value);var Dt=It;Ft+Pt>It&&Ft<It&&(Dt=It-Pt);var jt=Z.value;if(!jt.length){var on;return on=[0,0],wt.value=on[0],xt.value=on[1],on}for(var un=jt.length,Yt=un,Wt=0;Wt<un;Wt+=1){var Qt=Ht.get(jt[Wt].key)||DEFAULT_SIZE;if(Qt[At]+Qt[Ct]>Rt+Dt){Yt=Wt-1;break}}for(var Zt=0,Xt=un-1;Xt>=0;Xt-=1){var Jt=Ht.get(jt[Xt].key)||DEFAULT_SIZE;if(Jt[At]<Rt){Zt=Xt+1;break}}return ft=[Zt,Yt],wt.value=ft[0],xt.value=ft[1],ft});var mt=function(){var Ct,At,Rt,It,Ft,Pt=((Ct=ee.value)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,Ht=((At=ee.value)===null||At===void 0?void 0:At.offsetHeight)||0,Dt=((Rt=ne.value)===null||Rt===void 0?void 0:Rt.$el)||{},jt=Dt.offsetWidth||0,on=Dt.offsetHeight||0;Me(Pt),Ve(Ht),ze(jt),Ee(on);var un=(((It=ie.value)===null||It===void 0?void 0:It.offsetWidth)||0)-jt,Yt=(((Ft=ie.value)===null||Ft===void 0?void 0:Ft.offsetHeight)||0)-on;$e(un),xe(Yt),Ze(function(){var Wt=new Map;return Z.value.forEach(function(Qt){var Zt=Qt.key,Xt=le.value.get(Zt),Jt=(Xt==null?void 0:Xt.$el)||Xt;Jt&&Wt.set(Zt,{width:Jt.offsetWidth,height:Jt.offsetHeight,left:Jt.offsetLeft,top:Jt.offsetTop})}),Wt})},gt=computed(function(){return[].concat(_toConsumableArray$1(Z.value.slice(0,wt.value)),_toConsumableArray$1(Z.value.slice(xt.value+1)))}),lt=useState(),ct=_slicedToArray$2(lt,2),vt=ct[0],_t=ct[1],rt=computed(function(){return Oe.value.get(H.activeKey)}),ut=ref(),ot=function(){wrapperRaf.cancel(ut.value)};watch([rt,ce,function(){return H.rtl}],function(){var ft={};rt.value&&(ce.value?(H.rtl?ft.right=toPx(rt.value.right):ft.left=toPx(rt.value.left),ft.width=toPx(rt.value.width)):(ft.top=toPx(rt.value.top),ft.height=toPx(rt.value.height))),ot(),ut.value=wrapperRaf(function(){_t(ft)})}),watch([function(){return H.activeKey},rt,Oe,ce],function(){pt()},{flush:"post"}),watch([function(){return H.rtl},function(){return H.tabBarGutter},function(){return H.activeKey},function(){return Z.value}],function(){mt()},{flush:"post"});var Tt=function(Ct){var At=Ct.position,Rt=Ct.prefixCls,It=Ct.extra;if(!It)return null;var Ft=It==null?void 0:It({position:At});return Ft?createVNode("div",{class:"".concat(Rt,"-extra-content")},[Ft]):null};return onBeforeUnmount(function(){st(),ot()}),function(){var ft,Ct=H.id,At=H.animated,Rt=H.activeKey,It=H.rtl,Ft=H.editable,Pt=H.locale,Ht=H.tabPosition,Dt=H.tabBarGutter,jt=H.onTabClick,on=W.class,un=W.style,Yt=Q.value,Wt=!!gt.value.length,Qt="".concat(Yt,"-nav-wrap"),Zt,Xt,Jt,sn;ce.value?It?(Xt=ve.value>0,Zt=ve.value+Ae.value<ye.value):(Zt=ve.value<0,Xt=-ve.value+Ae.value<ye.value):(Jt=_e.value<0,sn=-_e.value+Ne.value<Te.value);var en={};Ht==="top"||Ht==="bottom"?en[It?"marginRight":"marginLeft"]=typeof Dt=="number"?"".concat(Dt,"px"):Dt:en.marginTop=typeof Dt=="number"?"".concat(Dt,"px"):Dt;var dn=Z.value.map(function(Vt,ht){var kt=Vt.key;return createVNode(TabNode,{id:Ct,prefixCls:Yt,key:kt,tab:Vt,style:ht===0?void 0:en,closable:Vt.closable,editable:Ft,active:kt===Rt,removeAriaLabel:Pt==null?void 0:Pt.removeAriaLabel,ref:se(kt),onClick:function(zt){jt(kt,zt)},onFocus:function(){pt(kt),St(),ee.value&&(It||(ee.value.scrollLeft=0),ee.value.scrollTop=0)}},G)});return createVNode("div",{role:"tablist",class:classNames("".concat(Yt,"-nav"),on),style:un,onKeydown:function(){St()}},[createVNode(Tt,{position:"left",prefixCls:Yt,extra:G.leftExtra},null),createVNode(ResizeObserver$1,{onResize:mt},{default:function(){return[createVNode("div",{class:classNames(Qt,(ft={},_defineProperty$M(ft,"".concat(Qt,"-ping-left"),Zt),_defineProperty$M(ft,"".concat(Qt,"-ping-right"),Xt),_defineProperty$M(ft,"".concat(Qt,"-ping-top"),Jt),_defineProperty$M(ft,"".concat(Qt,"-ping-bottom"),sn),ft)),ref:ee},[createVNode(ResizeObserver$1,{onResize:mt},{default:function(){return[createVNode("div",{ref:ie,class:"".concat(Yt,"-nav-list"),style:{transform:"translate(".concat(ve.value,"px, ").concat(_e.value,"px)"),transition:tt.value?"none":void 0}},[dn,createVNode(AddButton,{ref:ne,prefixCls:Yt,locale:Pt,editable:Ft,style:_objectSpread2$1(_objectSpread2$1({},dn.length===0?void 0:en),{},{visibility:Wt?"hidden":null})},null),createVNode("div",{class:classNames("".concat(Yt,"-ink-bar"),_defineProperty$M({},"".concat(Yt,"-ink-bar-animated"),At.inkBar)),style:vt.value},null)])]}})])]}}),createVNode(OperationNode,_objectSpread2$1(_objectSpread2$1({},H),{},{removeAriaLabel:Pt==null?void 0:Pt.removeAriaLabel,ref:te,prefixCls:Yt,tabs:gt.value,class:!Wt&&Qe.value}),pick$1(G,["moreIcon"])),createVNode(Tt,{position:"right",prefixCls:Yt,extra:G.rightExtra},null),createVNode(Tt,{position:"right",prefixCls:Yt,extra:G.tabBarExtraContent},null)])}}}),TabPanelList=defineComponent({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup:function(H){var U=useInjectTabs(),W=U.tabs,G=U.prefixCls;return function(){var X=H.id,Z=H.activeKey,Q=H.animated,ee=H.tabPosition,ie=H.rtl,te=H.destroyInactiveTabPane,ne=Q.tabPane,ae=G.value,oe=W.value.findIndex(function(se){return se.key===Z});return createVNode("div",{class:"".concat(ae,"-content-holder")},[createVNode("div",{class:["".concat(ae,"-content"),"".concat(ae,"-content-").concat(ee),_defineProperty$M({},"".concat(ae,"-content-animated"),ne)],style:oe&&ne?_defineProperty$M({},ie?"marginRight":"marginLeft","-".concat(oe,"00%")):null},[W.value.map(function(se){return cloneElement(se.node,{key:se.key,prefixCls:ae,tabKey:se.key,id:X,animated:ne,active:se.key===Z,destroyInactiveTabPane:te})})])])}}});var PlusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const PlusOutlinedSvg=PlusOutlined$2;function _objectSpread$r(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$s(C,G,U[G])})}return C}function _defineProperty$s(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var PlusOutlined=function(H,U){var W=_objectSpread$r({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$r({},W,{icon:PlusOutlinedSvg}),null)};PlusOutlined.displayName="PlusOutlined";PlusOutlined.inheritAttrs=!1;const PlusOutlined$1=PlusOutlined;var uuid$2=0,tabsProps=function(){return{prefixCls:{type:String},id:{type:String},activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:{type:String},animated:{type:[Boolean,Object]},renderTabBar:{type:Function},tabBarGutter:{type:Number},tabBarStyle:{type:Object},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean},hideAdd:Boolean,type:{type:String},size:{type:String},centered:Boolean,onEdit:{type:Function},onChange:{type:Function},onTabClick:{type:Function},onTabScroll:{type:Function},"onUpdate:activeKey":{type:Function},locale:{type:Object,default:void 0},onPrevClick:Function,onNextClick:Function,tabBarExtraContent:PropTypes$1.any}};function parseTabList(C){return C.map(function(H){if(isValidElement(H)){for(var U=_objectSpread2$1({},H.props||{}),W=0,G=Object.entries(U);W<G.length;W++){var X=_slicedToArray$2(G[W],2),Z=X[0],Q=X[1];delete U[Z],U[camelize$1(Z)]=Q}var ee=H.children||{},ie=H.key!==void 0?H.key:void 0,te=U.tab,ne=te===void 0?ee.tab:te,ae=U.disabled,oe=U.forceRender,se=U.closable,le=U.animated,ce=U.active,ue=U.destroyInactiveTabPane;return _objectSpread2$1(_objectSpread2$1({key:ie},U),{},{node:H,closeIcon:ee.closeIcon,tab:ne,disabled:ae===""||ae,forceRender:oe===""||oe,closable:se===""||se,animated:le===""||le,active:ce===""||ce,destroyInactiveTabPane:ue===""||ue})}return null}).filter(function(H){return H})}var InternalTabs=defineComponent({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:_objectSpread2$1(_objectSpread2$1({},initDefaultProps$1(tabsProps(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{},{tabs:{type:Array}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(H,U){var W=U.attrs,G=U.slots;devWarning(H.onPrevClick===void 0&&H.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),devWarning(H.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),devWarning(G.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");var X=useConfigInject("tabs",H),Z=X.prefixCls,Q=X.direction,ee=X.size,ie=X.rootPrefixCls,te=computed(function(){return Q.value==="rtl"}),ne=computed(function(){var Se=H.animated,Te=H.tabPosition;return Se===!1||["left","right"].includes(Te)?{inkBar:!1,tabPane:!1}:Se===!0?{inkBar:!0,tabPane:!0}:_objectSpread2$1({inkBar:!0,tabPane:!1},_typeof$3(Se)==="object"?Se:{})}),ae=useState(!1),oe=_slicedToArray$2(ae,2),se=oe[0],le=oe[1];onMounted(function(){le(isMobile$2())});var ce=useMergedState(function(){var Se;return(Se=H.tabs[0])===null||Se===void 0?void 0:Se.key},{value:computed(function(){return H.activeKey}),defaultValue:H.defaultActiveKey}),ue=_slicedToArray$2(ce,2),de=ue[0],ve=ue[1],ge=useState(function(){return H.tabs.findIndex(function(Se){return Se.key===de.value})}),he=_slicedToArray$2(ge,2),me=he[0],_e=he[1];watchEffect(function(){var Se=H.tabs.findIndex(function(xe){return xe.key===de.value});if(Se===-1){var Te;Se=Math.max(0,Math.min(me.value,H.tabs.length-1)),ve((Te=H.tabs[Se])===null||Te===void 0?void 0:Te.key)}_e(Se)});var be=useMergedState(null,{value:computed(function(){return H.id})}),pe=_slicedToArray$2(be,2),fe=pe[0],ye=pe[1],$e=computed(function(){return se.value&&!["left","right"].includes(H.tabPosition)?"top":H.tabPosition});onMounted(function(){H.id||(ye("rc-tabs-".concat(uuid$2)),uuid$2+=1)});var we=function(Te,xe){var ke;(ke=H.onTabClick)===null||ke===void 0||ke.call(H,Te,xe);var Ie=Te!==de.value;if(ve(Te),Ie){var Ae;(Ae=H.onChange)===null||Ae===void 0||Ae.call(H,Te)}};return useProvideTabs({tabs:computed(function(){return H.tabs}),prefixCls:Z}),function(){var Se,Te=H.id,xe=H.type,ke=H.tabBarGutter,Ie=H.tabBarStyle,Ae=H.locale,Me=H.destroyInactiveTabPane,Fe=H.renderTabBar,Be=Fe===void 0?G.renderTabBar:Fe,Ne=H.onTabScroll,Ve=H.hideAdd,Le=H.centered,De={id:fe.value,activeKey:de.value,animated:ne.value,tabPosition:$e.value,rtl:te.value,mobile:se.value},Je;xe==="editable-card"&&(Je={onEdit:function(Ee,Ce){var Pe,Re=Ce.key,Ze=Ce.event;(Pe=H.onEdit)===null||Pe===void 0||Pe.call(H,Ee==="add"?Ze:Re,Ee)},removeIcon:function(){return createVNode(CloseOutlined$1,null,null)},addIcon:G.addIcon?G.addIcon:function(){return createVNode(PlusOutlined$1,null,null)},showAdd:Ve!==!0});var ze,Ge=_objectSpread2$1(_objectSpread2$1({},De),{},{moreTransitionName:"".concat(ie.value,"-slide-up"),editable:Je,locale:Ae,tabBarGutter:ke,onTabClick:we,onTabScroll:Ne,style:Ie});Be?ze=Be(_objectSpread2$1(_objectSpread2$1({},Ge),{},{DefaultTabBar:TabNavList})):ze=createVNode(TabNavList,Ge,pick$1(G,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));var qe=Z.value;return createVNode("div",_objectSpread2$1(_objectSpread2$1({},W),{},{id:Te,class:classNames(qe,"".concat(qe,"-").concat($e.value),(Se={},_defineProperty$M(Se,"".concat(qe,"-").concat(ee.value),ee.value),_defineProperty$M(Se,"".concat(qe,"-card"),["card","editable-card"].includes(xe)),_defineProperty$M(Se,"".concat(qe,"-editable-card"),xe==="editable-card"),_defineProperty$M(Se,"".concat(qe,"-centered"),Le),_defineProperty$M(Se,"".concat(qe,"-mobile"),se.value),_defineProperty$M(Se,"".concat(qe,"-editable"),xe==="editable-card"),_defineProperty$M(Se,"".concat(qe,"-rtl"),te.value),Se),W.class)}),[ze,createVNode(TabPanelList,_objectSpread2$1(_objectSpread2$1({destroyInactiveTabPane:Me},De),{},{animated:ne.value}),null)])}}});const Tabs=defineComponent({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:initDefaultProps$1(tabsProps(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.emit,Z=function(ee){X("update:activeKey",ee),X("change",ee)};return function(){var Q,ee=parseTabList(flattenChildren((Q=G.default)===null||Q===void 0?void 0:Q.call(G)));return createVNode(InternalTabs,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},omit$2(H,["onUpdate:activeKey"])),W),{},{onChange:Z,tabs:ee}),G)}}});var tabPaneProps=function(){return{tab:PropTypes$1.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}};const __unplugin_components_3=defineComponent({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:tabPaneProps(),slots:["closeIcon","tab"],setup:function(H,U){var W=U.attrs,G=U.slots,X=ref(H.forceRender);watch([function(){return H.active},function(){return H.destroyInactiveTabPane}],function(){H.active?X.value=!0:H.destroyInactiveTabPane&&(X.value=!1)},{immediate:!0});var Z=computed(function(){return H.active?{}:H.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}});return function(){var Q,ee=H.prefixCls,ie=H.forceRender,te=H.id,ne=H.active,ae=H.tabKey;return createVNode("div",{id:te&&"".concat(te,"-panel-").concat(ae),role:"tabpanel",tabindex:ne?0:-1,"aria-labelledby":te&&"".concat(te,"-tab-").concat(ae),"aria-hidden":!ne,style:[Z.value,W.style],class:["".concat(ee,"-tabpane"),ne&&"".concat(ee,"-tabpane-active"),W.class]},[(ne||X.value||ie)&&((Q=G.default)===null||Q===void 0?void 0:Q.call(G))])}}});Tabs.TabPane=__unplugin_components_3;Tabs.install=function(C){return C.component(Tabs.name,Tabs),C.component(__unplugin_components_3.name,__unplugin_components_3),C};var canUseDocElement=function(){return canUseDom()&&window.document.documentElement},isStyleNameSupport=function(H){if(canUseDom()&&window.document.documentElement){var U=Array.isArray(H)?H:[H],W=window.document.documentElement;return U.some(function(G){return G in W.style})}return!1},isStyleValueSupport=function(H,U){if(!isStyleNameSupport(H))return!1;var W=document.createElement("div"),G=W.style[H];return W.style[H]=U,W.style[H]!==G};function isStyleSupport(C,H){return!Array.isArray(C)&&H!==void 0?isStyleValueSupport(C,H):isStyleNameSupport(C)}var flexGapSupported,detectFlexGapSupported=function(){if(!canUseDocElement())return!1;if(flexGapSupported!==void 0)return flexGapSupported;var H=document.createElement("div");return H.style.display="flex",H.style.flexDirection="column",H.style.rowGap="1px",H.appendChild(document.createElement("div")),H.appendChild(document.createElement("div")),document.body.appendChild(H),flexGapSupported=H.scrollHeight===1,document.body.removeChild(H),flexGapSupported};const useFlexGapSupport=function(){var C=ref(!1);return onMounted(function(){C.value=detectFlexGapSupported()}),C};var RowContextKey=Symbol("rowContextKey"),useProvideRow=function(H){provide(RowContextKey,H)},useInjectRow=function(){return inject(RowContextKey,{gutter:computed(function(){}),wrap:computed(function(){}),supportFlexGap:computed(function(){})})};tuple("top","middle","bottom","stretch");tuple("start","end","center","space-around","space-between");var rowProps=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},ARow=defineComponent({compatConfig:{MODE:3},name:"ARow",props:rowProps(),setup:function(H,U){var W=U.slots,G=useConfigInject("row",H),X=G.prefixCls,Z=G.direction,Q,ee=ref({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),ie=useFlexGapSupport();onMounted(function(){Q=ResponsiveObserve.subscribe(function(oe){var se=H.gutter||0;(!Array.isArray(se)&&_typeof$3(se)==="object"||Array.isArray(se)&&(_typeof$3(se[0])==="object"||_typeof$3(se[1])==="object"))&&(ee.value=oe)})}),onBeforeUnmount(function(){ResponsiveObserve.unsubscribe(Q)});var te=computed(function(){var oe=[0,0],se=H.gutter,le=se===void 0?0:se,ce=Array.isArray(le)?le:[le,0];return ce.forEach(function(ue,de){if(_typeof$3(ue)==="object")for(var ve=0;ve<responsiveArray.length;ve++){var ge=responsiveArray[ve];if(ee.value[ge]&&ue[ge]!==void 0){oe[de]=ue[ge];break}}else oe[de]=ue||0}),oe});useProvideRow({gutter:te,supportFlexGap:ie,wrap:computed(function(){return H.wrap})});var ne=computed(function(){var oe;return classNames(X.value,(oe={},_defineProperty$M(oe,"".concat(X.value,"-no-wrap"),H.wrap===!1),_defineProperty$M(oe,"".concat(X.value,"-").concat(H.justify),H.justify),_defineProperty$M(oe,"".concat(X.value,"-").concat(H.align),H.align),_defineProperty$M(oe,"".concat(X.value,"-rtl"),Z.value==="rtl"),oe))}),ae=computed(function(){var oe=te.value,se={},le=oe[0]>0?"".concat(oe[0]/-2,"px"):void 0,ce=oe[1]>0?"".concat(oe[1]/-2,"px"):void 0;return le&&(se.marginLeft=le,se.marginRight=le),ie.value?se.rowGap="".concat(oe[1],"px"):ce&&(se.marginTop=ce,se.marginBottom=ce),se});return function(){var oe;return createVNode("div",{class:ne.value,style:ae.value},[(oe=W.default)===null||oe===void 0?void 0:oe.call(W)])}}});const Row=ARow;function parseFlex(C){return typeof C=="number"?"".concat(C," ").concat(C," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(C)?"0 0 ".concat(C):C}var colProps=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Col=defineComponent({compatConfig:{MODE:3},name:"ACol",props:colProps(),setup:function(H,U){var W=U.slots,G=useInjectRow(),X=G.gutter,Z=G.supportFlexGap,Q=G.wrap,ee=useConfigInject("col",H),ie=ee.prefixCls,te=ee.direction,ne=computed(function(){var oe,se=H.span,le=H.order,ce=H.offset,ue=H.push,de=H.pull,ve=ie.value,ge={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(he){var me,_e={},be=H[he];typeof be=="number"?_e.span=be:_typeof$3(be)==="object"&&(_e=be||{}),ge=_objectSpread2$1(_objectSpread2$1({},ge),{},(me={},_defineProperty$M(me,"".concat(ve,"-").concat(he,"-").concat(_e.span),_e.span!==void 0),_defineProperty$M(me,"".concat(ve,"-").concat(he,"-order-").concat(_e.order),_e.order||_e.order===0),_defineProperty$M(me,"".concat(ve,"-").concat(he,"-offset-").concat(_e.offset),_e.offset||_e.offset===0),_defineProperty$M(me,"".concat(ve,"-").concat(he,"-push-").concat(_e.push),_e.push||_e.push===0),_defineProperty$M(me,"".concat(ve,"-").concat(he,"-pull-").concat(_e.pull),_e.pull||_e.pull===0),_defineProperty$M(me,"".concat(ve,"-rtl"),te.value==="rtl"),me))}),classNames(ve,(oe={},_defineProperty$M(oe,"".concat(ve,"-").concat(se),se!==void 0),_defineProperty$M(oe,"".concat(ve,"-order-").concat(le),le),_defineProperty$M(oe,"".concat(ve,"-offset-").concat(ce),ce),_defineProperty$M(oe,"".concat(ve,"-push-").concat(ue),ue),_defineProperty$M(oe,"".concat(ve,"-pull-").concat(de),de),oe),ge)}),ae=computed(function(){var oe=H.flex,se=X.value,le={};if(se&&se[0]>0){var ce="".concat(se[0]/2,"px");le.paddingLeft=ce,le.paddingRight=ce}if(se&&se[1]>0&&!Z.value){var ue="".concat(se[1]/2,"px");le.paddingTop=ue,le.paddingBottom=ue}return oe&&(le.flex=parseFlex(oe),Q.value===!1&&!le.minWidth&&(le.minWidth=0)),le});return function(){var oe;return createVNode("div",{class:ne.value,style:ae.value},[(oe=W.default)===null||oe===void 0?void 0:oe.call(W)])}}}),__unplugin_components_1$1=withInstall(Row),__unplugin_components_5$1=withInstall(Col);var collapseProps=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:PropTypes$1.object,expandIconPosition:PropTypes$1.oneOf(tuple("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},collapsePanelProps=function(){return{openAnimation:PropTypes$1.object,prefixCls:String,header:PropTypes$1.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:PropTypes$1.any,panelKey:PropTypes$1.oneOfType([PropTypes$1.string,PropTypes$1.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function getActiveKeysArray(C){var H=C;if(!Array.isArray(H)){var U=_typeof$3(H);H=U==="number"||U==="string"?[H]:[]}return H.map(function(W){return String(W)})}const Collapse=defineComponent({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:initDefaultProps$1(collapseProps(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:collapseMotion$1("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.emit,Z=ref(getActiveKeysArray(firstNotUndefined([H.activeKey,H.defaultActiveKey])));watch(function(){return H.activeKey},function(){Z.value=getActiveKeysArray(H.activeKey)},{deep:!0});var Q=useConfigInject("collapse",H),ee=Q.prefixCls,ie=Q.direction,te=computed(function(){var ce=H.expandIconPosition;return ce!==void 0?ce:ie.value==="rtl"?"right":"left"}),ne=function(ue){var de=H.expandIcon,ve=de===void 0?G.expandIcon:de,ge=ve?ve(ue):createVNode(RightOutlined$1,{rotate:ue.isActive?90:void 0},null);return createVNode("div",null,[isValidElement(Array.isArray(ve)?ge[0]:ge)?cloneElement(ge,{class:"".concat(ee.value,"-arrow")},!1):ge])},ae=function(ue){H.activeKey===void 0&&(Z.value=ue);var de=H.accordion?ue[0]:ue;X("update:activeKey",de),X("change",de)},oe=function(ue){var de=Z.value;if(H.accordion)de=de[0]===ue?[]:[ue];else{de=_toConsumableArray$1(de);var ve=de.indexOf(ue),ge=ve>-1;ge?de.splice(ve,1):de.push(ue)}ae(de)},se=function(ue,de){var ve,ge,he;if(!isEmptyElement(ue)){var me=Z.value,_e=H.accordion,be=H.destroyInactivePanel,pe=H.collapsible,fe=H.openAnimation,ye=String((ve=ue.key)!==null&&ve!==void 0?ve:de),$e=ue.props||{},we=$e.header,Se=we===void 0?(ge=ue.children)===null||ge===void 0||(he=ge.header)===null||he===void 0?void 0:he.call(ge):we,Te=$e.headerClass,xe=$e.collapsible,ke=$e.disabled,Ie=!1;_e?Ie=me[0]===ye:Ie=me.indexOf(ye)>-1;var Ae=xe!=null?xe:pe;(ke||ke==="")&&(Ae="disabled");var Me={key:ye,panelKey:ye,header:Se,headerClass:Te,isActive:Ie,prefixCls:ee.value,destroyInactivePanel:be,openAnimation:fe,accordion:_e,onItemClick:Ae==="disabled"?null:oe,expandIcon:ne,collapsible:Ae};return cloneElement(ue,Me)}},le=function(){var ue;return flattenChildren((ue=G.default)===null||ue===void 0?void 0:ue.call(G)).map(se)};return function(){var ce,ue=H.accordion,de=H.bordered,ve=H.ghost,ge=classNames((ce={},_defineProperty$M(ce,ee.value,!0),_defineProperty$M(ce,"".concat(ee.value,"-borderless"),!de),_defineProperty$M(ce,"".concat(ee.value,"-icon-position-").concat(te.value),!0),_defineProperty$M(ce,"".concat(ee.value,"-rtl"),ie.value==="rtl"),_defineProperty$M(ce,"".concat(ee.value,"-ghost"),!!ve),_defineProperty$M(ce,W.class,!!W.class),ce));return createVNode("div",_objectSpread2$1(_objectSpread2$1({class:ge},getDataAndAriaProps(W)),{},{style:W.style,role:ue?"tablist":null}),[le()])}}}),PanelContent=defineComponent({compatConfig:{MODE:3},name:"PanelContent",props:collapsePanelProps(),setup:function(H,U){var W=U.slots,G=ref(!1);return watchEffect(function(){(H.isActive||H.forceRender)&&(G.value=!0)}),function(){var X,Z;if(!G.value)return null;var Q=H.prefixCls,ee=H.isActive,ie=H.role;return createVNode("div",{ref,class:classNames("".concat(Q,"-content"),(X={},_defineProperty$M(X,"".concat(Q,"-content-active"),ee),_defineProperty$M(X,"".concat(Q,"-content-inactive"),!ee),X)),role:ie},[createVNode("div",{class:"".concat(Q,"-content-box")},[(Z=W.default)===null||Z===void 0?void 0:Z.call(W)])])}}}),__unplugin_components_1=defineComponent({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:initDefaultProps$1(collapsePanelProps(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.attrs;devWarning(H.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var Z=useConfigInject("collapse",H),Q=Z.prefixCls,ee=function(){G("itemClick",H.panelKey)},ie=function(ne){(ne.key==="Enter"||ne.keyCode===13||ne.which===13)&&ee()};return function(){var te,ne,ae,oe,se=H.header,le=se===void 0?(te=W.header)===null||te===void 0?void 0:te.call(W):se,ce=H.headerClass,ue=H.isActive,de=H.showArrow,ve=H.destroyInactivePanel,ge=H.accordion,he=H.forceRender,me=H.openAnimation,_e=H.expandIcon,be=_e===void 0?W.expandIcon:_e,pe=H.extra,fe=pe===void 0?(ne=W.extra)===null||ne===void 0?void 0:ne.call(W):pe,ye=H.collapsible,$e=ye==="disabled",we=Q.value,Se=classNames("".concat(we,"-header"),(ae={},_defineProperty$M(ae,ce,ce),_defineProperty$M(ae,"".concat(we,"-header-collapsible-only"),ye==="header"),ae)),Te=classNames((oe={},_defineProperty$M(oe,"".concat(we,"-item"),!0),_defineProperty$M(oe,"".concat(we,"-item-active"),ue),_defineProperty$M(oe,"".concat(we,"-item-disabled"),$e),_defineProperty$M(oe,"".concat(we,"-no-arrow"),!de),_defineProperty$M(oe,"".concat(X.class),!!X.class),oe)),xe=createVNode("i",{class:"arrow"},null);de&&typeof be=="function"&&(xe=be(H));var ke=withDirectives(createVNode(PanelContent,{prefixCls:we,isActive:ue,forceRender:he,role:ge?"tabpanel":null},{default:W.default}),[[vShow,ue]]),Ie=_objectSpread2$1({appear:!1,css:!1},me);return createVNode("div",_objectSpread2$1(_objectSpread2$1({},X),{},{class:Te}),[createVNode("div",{class:Se,onClick:function(){return ye!=="header"&&ee()},role:ge?"tab":"button",tabindex:$e?-1:0,"aria-expanded":ue,onKeypress:ie},[de&&xe,ye==="header"?createVNode("span",{onClick:ee,class:"".concat(we,"-header-text")},[le]):le,fe&&createVNode("div",{class:"".concat(we,"-extra")},[fe])]),createVNode(Transition$1,Ie,{default:function(){return[!ve||ue?ke:null]}})])}}});Collapse.Panel=__unplugin_components_1;Collapse.install=function(C){return C.component(Collapse.name,Collapse),C.component(__unplugin_components_1.name,__unplugin_components_1),C};var now$2=function(){return root$b.Date.now()};const now$3=now$2;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax$2=Math.max,nativeMin$2=Math.min;function debounce(C,H,U){var W,G,X,Z,Q,ee,ie=0,te=!1,ne=!1,ae=!0;if(typeof C!="function")throw new TypeError(FUNC_ERROR_TEXT$1);H=toNumber$2(H)||0,isObject$d(U)&&(te=!!U.leading,ne="maxWait"in U,X=ne?nativeMax$2(toNumber$2(U.maxWait)||0,H):X,ae="trailing"in U?!!U.trailing:ae);function oe(me){var _e=W,be=G;return W=G=void 0,ie=me,Z=C.apply(be,_e),Z}function se(me){return ie=me,Q=setTimeout(ue,H),te?oe(me):Z}function le(me){var _e=me-ee,be=me-ie,pe=H-_e;return ne?nativeMin$2(pe,X-be):pe}function ce(me){var _e=me-ee,be=me-ie;return ee===void 0||_e>=H||_e<0||ne&&be>=X}function ue(){var me=now$3();if(ce(me))return de(me);Q=setTimeout(ue,le(me))}function de(me){return Q=void 0,ae&&W?oe(me):(W=G=void 0,Z)}function ve(){Q!==void 0&&clearTimeout(Q),ie=0,W=ee=G=Q=void 0}function ge(){return Q===void 0?Z:de(now$3())}function he(){var me=now$3(),_e=ce(me);if(W=arguments,G=this,ee=me,_e){if(Q===void 0)return se(ee);if(ne)return clearTimeout(Q),Q=setTimeout(ue,H),oe(ee)}return Q===void 0&&(Q=setTimeout(ue,H)),Z}return he.cancel=ve,he.flush=ge,he}var TreeContextKey=Symbol("TreeContextKey"),TreeContext=defineComponent({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(H,U){var W=U.slots;return provide(TreeContextKey,computed(function(){return H.value})),function(){var G;return(G=W.default)===null||G===void 0?void 0:G.call(W)}}}),useInjectTreeContext=function(){return inject(TreeContextKey,computed(function(){return{}}))},KeysStateKey=Symbol("KeysStateKey"),useProvideKeysState=function(H){provide(KeysStateKey,H)},useInjectKeysState=function(){return inject(KeysStateKey,{expandedKeys:shallowRef([]),selectedKeys:shallowRef([]),loadedKeys:shallowRef([]),loadingKeys:shallowRef([]),checkedKeys:shallowRef([]),halfCheckedKeys:shallowRef([]),expandedKeysSet:computed(function(){return new Set}),selectedKeysSet:computed(function(){return new Set}),loadedKeysSet:computed(function(){return new Set}),loadingKeysSet:computed(function(){return new Set}),checkedKeysSet:computed(function(){return new Set}),halfCheckedKeysSet:computed(function(){return new Set}),flattenNodes:shallowRef([])})},Indent=function(H){for(var U=H.prefixCls,W=H.level,G=H.isStart,X=H.isEnd,Z="".concat(U,"-indent-unit"),Q=[],ee=0;ee<W;ee+=1){var ie;Q.push(createVNode("span",{key:ee,class:(ie={},_defineProperty$M(ie,Z,!0),_defineProperty$M(ie,"".concat(Z,"-start"),G[ee]),_defineProperty$M(ie,"".concat(Z,"-end"),X[ee]),ie)},null))}return createVNode("span",{"aria-hidden":"true",class:"".concat(U,"-indent")},[Q])};const Indent$1=Indent;var treeNodeProps={eventKey:[String,Number],prefixCls:String,title:PropTypes$1.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:PropTypes$1.any,switcherIcon:PropTypes$1.any,domRef:{type:Function}},nodeListProps={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},treeProps$1=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:PropTypes$1.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:PropTypes$1.any,selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:PropTypes$1.any,switcherIcon:PropTypes$1.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String}}},_excluded$h=["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---";const VcTreeNode=defineComponent({compatConfig:{MODE:3},name:"TreeNode",inheritAttrs:!1,props:treeNodeProps,isTreeNode:1,slots:["title","icon","switcherIcon"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.expose;"slots"in H.data,"treeData slots is deprecated, please use ".concat(Object.keys(H.data.slots||{}).map(function(st){return"`v-slot:"+st+"` "}),"instead");var Z=ref(!1),Q=useInjectTreeContext(),ee=useInjectKeysState(),ie=ee.expandedKeysSet,te=ee.selectedKeysSet,ne=ee.loadedKeysSet,ae=ee.loadingKeysSet,oe=ee.checkedKeysSet,se=ee.halfCheckedKeysSet,le=Q.value,ce=le.dragOverNodeKey,ue=le.dropPosition,de=le.keyEntities,ve=computed(function(){return getTreeNodeProps(H.eventKey,{expandedKeysSet:ie.value,selectedKeysSet:te.value,loadedKeysSet:ne.value,loadingKeysSet:ae.value,checkedKeysSet:oe.value,halfCheckedKeysSet:se.value,dragOverNodeKey:ce,dropPosition:ue,keyEntities:de})}),ge=eagerComputed(function(){return ve.value.expanded}),he=eagerComputed(function(){return ve.value.selected}),me=eagerComputed(function(){return ve.value.checked}),_e=eagerComputed(function(){return ve.value.loaded}),be=eagerComputed(function(){return ve.value.loading}),pe=eagerComputed(function(){return ve.value.halfChecked}),fe=eagerComputed(function(){return ve.value.dragOver}),ye=eagerComputed(function(){return ve.value.dragOverGapTop}),$e=eagerComputed(function(){return ve.value.dragOverGapBottom}),we=eagerComputed(function(){return ve.value.pos}),Se=ref(),Te=computed(function(){var st=H.eventKey,it=Q.value.keyEntities,pt=it[st]||{},wt=pt.children;return!!(wt||[]).length}),xe=computed(function(){var st=H.isLeaf,it=Q.value.loadData,pt=Te.value;return st===!1?!1:st||!it&&!pt||it&&_e.value&&!pt}),ke=computed(function(){return xe.value?null:ge.value?ICON_OPEN:ICON_CLOSE}),Ie=computed(function(){var st=H.disabled,it=Q.value.disabled;return!!(it||st)}),Ae=computed(function(){var st=H.checkable,it=Q.value.checkable;return!it||st===!1?!1:it}),Me=computed(function(){var st=H.selectable,it=Q.value.selectable;return typeof st=="boolean"?st:it}),Fe=computed(function(){var st=H.data,it=H.active,pt=H.checkable,wt=H.disableCheckbox,xt=H.disabled,mt=H.selectable;return _objectSpread2$1(_objectSpread2$1({active:it,checkable:pt,disableCheckbox:wt,disabled:xt,selectable:mt},st),{},{dataRef:st,data:st,isLeaf:xe.value,checked:me.value,expanded:ge.value,loading:be.value,selected:he.value,halfChecked:pe.value})}),Be=getCurrentInstance(),Ne=computed(function(){var st=H.eventKey,it=Q.value.keyEntities,pt=it[st]||{},wt=pt.parent;return _objectSpread2$1(_objectSpread2$1({},convertNodePropsToEventData(_extends$1({},H,ve.value))),{},{parent:wt})}),Ve=reactive({eventData:Ne,eventKey:computed(function(){return H.eventKey}),selectHandle:Se,pos:we,key:Be.vnode.key});X(Ve);var Le=function(it){var pt=Q.value.onNodeDoubleClick;pt(it,Ne.value)},De=function(it){if(!Ie.value){var pt=Q.value.onNodeSelect;it.preventDefault(),pt(it,Ne.value)}},Je=function(it){if(!Ie.value){var pt=H.disableCheckbox,wt=Q.value.onNodeCheck;if(!(!Ae.value||pt)){it.preventDefault();var xt=!me.value;wt(it,Ne.value,xt)}}},ze=function(it){var pt=Q.value.onNodeClick;pt(it,Ne.value),Me.value?De(it):Je(it)},Ge=function(it){var pt=Q.value.onNodeMouseEnter;pt(it,Ne.value)},qe=function(it){var pt=Q.value.onNodeMouseLeave;pt(it,Ne.value)},Ke=function(it){var pt=Q.value.onNodeContextMenu;pt(it,Ne.value)},Ee=function(it){var pt=Q.value.onNodeDragStart;it.stopPropagation(),Z.value=!0,pt(it,Ve);try{it.dataTransfer.setData("text/plain","")}catch{}},Ce=function(it){var pt=Q.value.onNodeDragEnter;it.preventDefault(),it.stopPropagation(),pt(it,Ve)},Pe=function(it){var pt=Q.value.onNodeDragOver;it.preventDefault(),it.stopPropagation(),pt(it,Ve)},Re=function(it){var pt=Q.value.onNodeDragLeave;it.stopPropagation(),pt(it,Ve)},Ze=function(it){var pt=Q.value.onNodeDragEnd;it.stopPropagation(),Z.value=!1,pt(it,Ve)},Oe=function(it){var pt=Q.value.onNodeDrop;it.preventDefault(),it.stopPropagation(),Z.value=!1,pt(it,Ve)},Qe=function(it){var pt=Q.value.onNodeExpand;be.value||pt(it,Ne.value)},Xe=function(){var it=H.data,pt=Q.value.draggable;return!!(pt&&(!pt.nodeDraggable||pt.nodeDraggable(it)))},et=function(){var it=Q.value,pt=it.draggable,wt=it.prefixCls;return pt!=null&&pt.icon?createVNode("span",{class:"".concat(wt,"-draggable-icon")},[pt.icon]):null},We=function(){var it,pt,wt,xt=H.switcherIcon,mt=xt===void 0?G.switcherIcon||((it=Q.value.slots)===null||it===void 0?void 0:it[(pt=H.data)===null||pt===void 0||(wt=pt.slots)===null||wt===void 0?void 0:wt.switcherIcon]):xt,gt=Q.value.switcherIcon,lt=mt||gt;return typeof lt=="function"?lt(Fe.value):lt},He=function(){var it=Q.value,pt=it.loadData,wt=it.onNodeLoad;be.value||pt&&ge.value&&!xe.value&&!Te.value&&!_e.value&&wt(Ne.value)};onMounted(function(){He()}),onUpdated(function(){He()});var Ye=function(){var it=Q.value.prefixCls,pt=We();if(xe.value)return pt!==!1?createVNode("span",{class:classNames("".concat(it,"-switcher"),"".concat(it,"-switcher-noop"))},[pt]):null;var wt=classNames("".concat(it,"-switcher"),"".concat(it,"-switcher_").concat(ge.value?ICON_OPEN:ICON_CLOSE));return pt!==!1?createVNode("span",{onClick:Qe,class:wt},[pt]):null},nt=function(){var it,pt,wt=H.disableCheckbox,xt=Q.value.prefixCls,mt=Ie.value,gt=Ae.value;return gt?createVNode("span",{class:classNames("".concat(xt,"-checkbox"),me.value&&"".concat(xt,"-checkbox-checked"),!me.value&&pe.value&&"".concat(xt,"-checkbox-indeterminate"),(mt||wt)&&"".concat(xt,"-checkbox-disabled")),onClick:Je},[(it=(pt=Q.value).customCheckable)===null||it===void 0?void 0:it.call(pt)]):null},tt=function(){var it=Q.value.prefixCls;return createVNode("span",{class:classNames("".concat(it,"-iconEle"),"".concat(it,"-icon__").concat(ke.value||"docu"),be.value&&"".concat(it,"-icon_loading"))},null)},at=function(){var it=H.disabled,pt=H.eventKey,wt=Q.value,xt=wt.draggable,mt=wt.dropLevelOffset,gt=wt.dropPosition,lt=wt.prefixCls,ct=wt.indent,vt=wt.dropIndicatorRender,_t=wt.dragOverNodeKey,rt=wt.direction,ut=xt!==!1,ot=!it&&ut&&_t===pt;return ot?vt({dropPosition:gt,dropLevelOffset:mt,indent:ct,prefixCls:lt,direction:rt}):null},St=function(){var it,pt,wt,xt,mt=H.icon,gt=mt===void 0?G.icon:mt,lt=H.data,ct=G.title||((it=Q.value.slots)===null||it===void 0?void 0:it[(pt=H.data)===null||pt===void 0||(wt=pt.slots)===null||wt===void 0?void 0:wt.title])||((xt=Q.value.slots)===null||xt===void 0?void 0:xt.title)||H.title,vt=Q.value,_t=vt.prefixCls,rt=vt.showIcon,ut=vt.icon,ot=vt.loadData,Tt=Ie.value,ft="".concat(_t,"-node-content-wrapper"),Ct;if(rt){var At,Rt,It=gt||((At=Q.value.slots)===null||At===void 0?void 0:At[lt==null||(Rt=lt.slots)===null||Rt===void 0?void 0:Rt.icon])||ut;Ct=It?createVNode("span",{class:classNames("".concat(_t,"-iconEle"),"".concat(_t,"-icon__customize"))},[typeof It=="function"?It(Fe.value):It]):tt()}else ot&&be.value&&(Ct=tt());var Ft;typeof ct=="function"?Ft=ct(Fe.value):Ft=ct,Ft=Ft===void 0?defaultTitle:Ft;var Pt=createVNode("span",{class:"".concat(_t,"-title")},[Ft]);return createVNode("span",{ref:Se,title:typeof ct=="string"?ct:"",class:classNames("".concat(ft),"".concat(ft,"-").concat(ke.value||"normal"),!Tt&&(he.value||Z.value)&&"".concat(_t,"-node-selected")),onMouseenter:Ge,onMouseleave:qe,onContextmenu:Ke,onClick:ze,onDblclick:Le},[Ct,Pt,at()])};return function(){var st,it=_objectSpread2$1(_objectSpread2$1({},H),W),pt=it.eventKey,wt=it.isLeaf,xt=it.isStart,mt=it.isEnd,gt=it.domRef,lt=it.active;it.data;var ct=it.onMousemove,vt=it.selectable,_t=_objectWithoutProperties$4(it,_excluded$h),rt=Q.value,ut=rt.prefixCls,ot=rt.filterTreeNode,Tt=rt.keyEntities,ft=rt.dropContainerKey,Ct=rt.dropTargetKey,At=rt.draggingNodeKey,Rt=Ie.value,It=pickAttrs(_t,{aria:!0,data:!0}),Ft=Tt[pt]||{},Pt=Ft.level,Ht=mt[mt.length-1],Dt=Xe(),jt=!Rt&&Dt,on=At===pt,un=vt!==void 0?{"aria-selected":!!vt}:void 0;return createVNode("div",_objectSpread2$1(_objectSpread2$1({ref:gt,class:classNames(W.class,"".concat(ut,"-treenode"),(st={},_defineProperty$M(st,"".concat(ut,"-treenode-disabled"),Rt),_defineProperty$M(st,"".concat(ut,"-treenode-switcher-").concat(ge.value?"open":"close"),!wt),_defineProperty$M(st,"".concat(ut,"-treenode-checkbox-checked"),me.value),_defineProperty$M(st,"".concat(ut,"-treenode-checkbox-indeterminate"),pe.value),_defineProperty$M(st,"".concat(ut,"-treenode-selected"),he.value),_defineProperty$M(st,"".concat(ut,"-treenode-loading"),be.value),_defineProperty$M(st,"".concat(ut,"-treenode-active"),lt),_defineProperty$M(st,"".concat(ut,"-treenode-leaf-last"),Ht),_defineProperty$M(st,"".concat(ut,"-treenode-draggable"),jt),_defineProperty$M(st,"dragging",on),_defineProperty$M(st,"drop-target",Ct===pt),_defineProperty$M(st,"drop-container",ft===pt),_defineProperty$M(st,"drag-over",!Rt&&fe.value),_defineProperty$M(st,"drag-over-gap-top",!Rt&&ye.value),_defineProperty$M(st,"drag-over-gap-bottom",!Rt&&$e.value),_defineProperty$M(st,"filter-node",ot&&ot(Ne.value)),st)),style:W.style,draggable:jt,"aria-grabbed":on,onDragstart:jt?Ee:void 0,onDragenter:Dt?Ce:void 0,onDragover:Dt?Pe:void 0,onDragleave:Dt?Re:void 0,onDrop:Dt?Oe:void 0,onDragend:Dt?Ze:void 0,onMousemove:ct},un),It),[createVNode(Indent$1,{prefixCls:ut,level:Pt,isStart:xt,isEnd:mt},null),et(),Ye(),nt(),St()])}}});function arrDel(C,H){if(!C)return[];var U=C.slice(),W=U.indexOf(H);return W>=0&&U.splice(W,1),U}function arrAdd(C,H){var U=(C||[]).slice();return U.indexOf(H)===-1&&U.push(H),U}function posToArr(C){return C.split("-")}function getPosition(C,H){return"".concat(C,"-").concat(H)}function isTreeNode(C){return C&&C.type&&C.type.isTreeNode}function getDragChildrenKeys(C,H){var U=[],W=H[C];function G(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];X.forEach(function(Z){var Q=Z.key,ee=Z.children;U.push(Q),G(ee)})}return G(W.children),U}function isLastChild(C){if(C.parent){var H=posToArr(C.pos);return Number(H[H.length-1])===C.parent.children.length-1}return!1}function isFirstChild(C){var H=posToArr(C.pos);return Number(H[H.length-1])===0}function calcDropPosition(C,H,U,W,G,X,Z,Q,ee,ie){var te,ne=C.clientX,ae=C.clientY,oe=C.target.getBoundingClientRect(),se=oe.top,le=oe.height,ce=(ie==="rtl"?-1:1)*(((G==null?void 0:G.x)||0)-ne),ue=(ce-12)/W,de=Q[U.eventKey];if(ae<se+le/2){var ve=Z.findIndex(function(Te){return Te.key===de.key}),ge=ve<=0?0:ve-1,he=Z[ge].key;de=Q[he]}var me=de.key,_e=de,be=de.key,pe=0,fe=0;if(!ee.has(me))for(var ye=0;ye<ue&&isLastChild(de);ye+=1)de=de.parent,fe+=1;var $e=H.eventData,we=de.node,Se=!0;return isFirstChild(de)&&de.level===0&&ae<se+le/2&&X({dragNode:$e,dropNode:we,dropPosition:-1})&&de.key===U.eventKey?pe=-1:(_e.children||[]).length&&ee.has(be)?X({dragNode:$e,dropNode:we,dropPosition:0})?pe=0:Se=!1:fe===0?ue>-1.5?X({dragNode:$e,dropNode:we,dropPosition:1})?pe=1:Se=!1:X({dragNode:$e,dropNode:we,dropPosition:0})?pe=0:X({dragNode:$e,dropNode:we,dropPosition:1})?pe=1:Se=!1:X({dragNode:$e,dropNode:we,dropPosition:1})?pe=1:Se=!1,{dropPosition:pe,dropLevelOffset:fe,dropTargetKey:de.key,dropTargetPos:de.pos,dragOverNodeKey:be,dropContainerKey:pe===0?null:((te=de.parent)===null||te===void 0?void 0:te.key)||null,dropAllowed:Se}}function calcSelectedKeys(C,H){if(!!C){var U=H.multiple;return U?C.slice():C.length?[C[0]]:C}}function parseCheckedKeys(C){if(!C)return null;var H;if(Array.isArray(C))H={checkedKeys:C,halfCheckedKeys:void 0};else if(_typeof$3(C)==="object")H={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return null;return H}function conductExpandParent(C,H){var U=new Set;function W(G){if(!U.has(G)){var X=H[G];if(!!X){U.add(G);var Z=X.parent,Q=X.node;Q.disabled||Z&&W(Z.key)}}}return(C||[]).forEach(function(G){W(G)}),_toConsumableArray$1(U)}var _excluded$g=["title","icon","switcherIcon"];function getKey(C,H){return C!=null?C:H}function fillFieldNames(C){var H=C||{},U=H.title,W=H._title,G=H.key,X=H.children,Z=U||"title";return{title:Z,_title:W||[Z],key:G||"key",children:X||"children"}}function convertTreeToData(C){function H(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],W=filterEmpty(U);return W.map(function(G){var X,Z,Q,ee;if(!isTreeNode(G))return null;for(var ie=G.children||{},te=G.key,ne={},ae=0,oe=Object.entries(G.props);ae<oe.length;ae++){var se=_slicedToArray$2(oe[ae],2),le=se[0],ce=se[1];ne[camelize$1(le)]=ce}var ue=ne.isLeaf,de=ne.checkable,ve=ne.selectable,ge=ne.disabled,he=ne.disableCheckbox,me={isLeaf:ue||ue===""||void 0,checkable:de||de===""||void 0,selectable:ve||ve===""||void 0,disabled:ge||ge===""||void 0,disableCheckbox:he||he===""||void 0},_e=_objectSpread2$1(_objectSpread2$1({},ne),me),be=ne.title,pe=be===void 0?(X=ie.title)===null||X===void 0?void 0:X.call(ie,_e):be,fe=ne.icon,ye=fe===void 0?(Z=ie.icon)===null||Z===void 0?void 0:Z.call(ie,_e):fe,$e=ne.switcherIcon,we=$e===void 0?(Q=ie.switcherIcon)===null||Q===void 0?void 0:Q.call(ie,_e):$e,Se=_objectWithoutProperties$4(ne,_excluded$g),Te=(ee=ie.default)===null||ee===void 0?void 0:ee.call(ie),xe=_objectSpread2$1(_objectSpread2$1({},Se),{},{title:pe,icon:ye,switcherIcon:we,key:te,isLeaf:ue},me),ke=H(Te);return ke.length&&(xe.children=ke),xe})}return H(C)}function flattenTreeData(C,H,U){var W=fillFieldNames(U),G=W._title,X=W.key,Z=W.children,Q=new Set(H===!0?[]:H),ee=[];function ie(te){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return te.map(function(ae,oe){for(var se=getPosition(ne?ne.pos:"0",oe),le=getKey(ae[X],se),ce,ue=0;ue<G.length;ue+=1){var de=G[ue];if(ae[de]!==void 0){ce=ae[de];break}}var ve=_objectSpread2$1(_objectSpread2$1({},omit$2(ae,[].concat(_toConsumableArray$1(G),[X,Z]))),{},{title:ce,key:le,parent:ne,pos:se,children:null,data:ae,isStart:[].concat(_toConsumableArray$1(ne?ne.isStart:[]),[oe===0]),isEnd:[].concat(_toConsumableArray$1(ne?ne.isEnd:[]),[oe===te.length-1])});return ee.push(ve),H===!0||Q.has(le)?ve.children=ie(ae[Z]||[],ve):ve.children=[],ve})}return ie(C),ee}function traverseDataNodes(C,H,U){var W={};_typeof$3(U)==="object"?W=U:W={externalGetKey:U},W=W||{};var G=W,X=G.childrenPropName,Z=G.externalGetKey,Q=G.fieldNames,ee=fillFieldNames(Q),ie=ee.key,te=ee.children,ne=X||te,ae;Z?typeof Z=="string"?ae=function(le){return le[Z]}:typeof Z=="function"&&(ae=function(le){return Z(le)}):ae=function(le,ce){return getKey(le[ie],ce)};function oe(se,le,ce,ue){var de=se?se[ne]:C,ve=se?getPosition(ce.pos,le):"0",ge=se?[].concat(_toConsumableArray$1(ue),[se]):[];if(se){var he=ae(se,ve),me={node:se,index:le,pos:ve,key:he,parentPos:ce.node?ce.pos:null,level:ce.level+1,nodes:ge};H(me)}de&&de.forEach(function(_e,be){oe(_e,be,{node:se,pos:ve,level:ce?ce.level+1:-1},ge)})}oe(null)}function convertDataToEntities(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=H.initWrapper,W=H.processEntity,G=H.onProcessFinished,X=H.externalGetKey,Z=H.childrenPropName,Q=H.fieldNames,ee=arguments.length>2?arguments[2]:void 0,ie=X||ee,te={},ne={},ae={posEntities:te,keyEntities:ne};return U&&(ae=U(ae)||ae),traverseDataNodes(C,function(oe){var se=oe.node,le=oe.index,ce=oe.pos,ue=oe.key,de=oe.parentPos,ve=oe.level,ge=oe.nodes,he={node:se,nodes:ge,index:le,key:ue,pos:ce,level:ve},me=getKey(ue,ce);te[ce]=he,ne[me]=he,he.parent=te[de],he.parent&&(he.parent.children=he.parent.children||[],he.parent.children.push(he)),W&&W(he,ae)},{externalGetKey:ie,childrenPropName:Z,fieldNames:Q}),G&&G(ae),ae}function getTreeNodeProps(C,H){var U=H.expandedKeysSet,W=H.selectedKeysSet,G=H.loadedKeysSet,X=H.loadingKeysSet,Z=H.checkedKeysSet,Q=H.halfCheckedKeysSet,ee=H.dragOverNodeKey,ie=H.dropPosition,te=H.keyEntities,ne=te[C],ae={eventKey:C,expanded:U.has(C),selected:W.has(C),loaded:G.has(C),loading:X.has(C),checked:Z.has(C),halfChecked:Q.has(C),pos:String(ne?ne.pos:""),parent:ne.parent,dragOver:ee===C&&ie===0,dragOverGapTop:ee===C&&ie===-1,dragOverGapBottom:ee===C&&ie===1};return ae}function convertNodePropsToEventData(C){var H=C.data,U=C.expanded,W=C.selected,G=C.checked,X=C.loaded,Z=C.loading,Q=C.halfChecked,ee=C.dragOver,ie=C.dragOverGapTop,te=C.dragOverGapBottom,ne=C.pos,ae=C.active,oe=C.eventKey,se=_objectSpread2$1(_objectSpread2$1({dataRef:H},H),{},{expanded:U,selected:W,checked:G,loaded:X,loading:Z,halfChecked:Q,dragOver:ee,dragOverGapTop:ie,dragOverGapBottom:te,pos:ne,active:ae,eventKey:oe,key:oe});return"props"in se||Object.defineProperty(se,"props",{get:function(){return C}}),se}function removeFromCheckedKeys(C,H){var U=new Set;return C.forEach(function(W){H.has(W)||U.add(W)}),U}function isCheckDisabled(C){var H=C||{},U=H.disabled,W=H.disableCheckbox,G=H.checkable;return!!(U||W)||G===!1}function fillConductCheck(C,H,U,W){for(var G=new Set(C),X=new Set,Z=0;Z<=U;Z+=1){var Q=H.get(Z)||new Set;Q.forEach(function(ne){var ae=ne.key,oe=ne.node,se=ne.children,le=se===void 0?[]:se;G.has(ae)&&!W(oe)&&le.filter(function(ce){return!W(ce.node)}).forEach(function(ce){G.add(ce.key)})})}for(var ee=new Set,ie=U;ie>=0;ie-=1){var te=H.get(ie)||new Set;te.forEach(function(ne){var ae=ne.parent,oe=ne.node;if(!(W(oe)||!ne.parent||ee.has(ne.parent.key))){if(W(ne.parent.node)){ee.add(ae.key);return}var se=!0,le=!1;(ae.children||[]).filter(function(ce){return!W(ce.node)}).forEach(function(ce){var ue=ce.key,de=G.has(ue);se&&!de&&(se=!1),!le&&(de||X.has(ue))&&(le=!0)}),se&&G.add(ae.key),le&&X.add(ae.key),ee.add(ae.key)}})}return{checkedKeys:Array.from(G),halfCheckedKeys:Array.from(removeFromCheckedKeys(X,G))}}function cleanConductCheck(C,H,U,W,G){for(var X=new Set(C),Z=new Set(H),Q=0;Q<=W;Q+=1){var ee=U.get(Q)||new Set;ee.forEach(function(ae){var oe=ae.key,se=ae.node,le=ae.children,ce=le===void 0?[]:le;!X.has(oe)&&!Z.has(oe)&&!G(se)&&ce.filter(function(ue){return!G(ue.node)}).forEach(function(ue){X.delete(ue.key)})})}Z=new Set;for(var ie=new Set,te=W;te>=0;te-=1){var ne=U.get(te)||new Set;ne.forEach(function(ae){var oe=ae.parent,se=ae.node;if(!(G(se)||!ae.parent||ie.has(ae.parent.key))){if(G(ae.parent.node)){ie.add(oe.key);return}var le=!0,ce=!1;(oe.children||[]).filter(function(ue){return!G(ue.node)}).forEach(function(ue){var de=ue.key,ve=X.has(de);le&&!ve&&(le=!1),!ce&&(ve||Z.has(de))&&(ce=!0)}),le||X.delete(oe.key),ce&&Z.add(oe.key),ie.add(oe.key)}})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(removeFromCheckedKeys(Z,X))}}function conductCheck(C,H,U,W,G,X){var Z;X?Z=X:Z=isCheckDisabled;var Q=new Set(C.filter(function(ie){var te=!!U[ie];return te})),ee;return H===!0?ee=fillConductCheck(Q,G,W,Z):ee=cleanConductCheck(Q,H.halfCheckedKeys,G,W,Z),ee}function useMaxLevel(C){var H=ref(0),U=shallowRef();return watchEffect(function(){var W=new Map,G=0,X=C.value||{};for(var Z in X)if(Object.prototype.hasOwnProperty.call(X,Z)){var Q=X[Z],ee=Q.level,ie=W.get(ee);ie||(ie=new Set,W.set(ee,ie)),ie.add(Q),G=Math.max(G,ee)}H.value=G,U.value=W}),{maxLevel:H,levelEntities:U}}var LeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const LeftOutlinedSvg=LeftOutlined$2;function _objectSpread$q(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$r(C,G,U[G])})}return C}function _defineProperty$r(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var LeftOutlined=function(H,U){var W=_objectSpread$q({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$q({},W,{icon:LeftOutlinedSvg}),null)};LeftOutlined.displayName="LeftOutlined";LeftOutlined.inheritAttrs=!1;const LeftOutlined$1=LeftOutlined;function arrayEach$2(C,H){for(var U=-1,W=C==null?0:C.length;++U<W&&H(C[U],U,C)!==!1;);return C}function copyObject$5(C,H,U,W){var G=!U;U||(U={});for(var X=-1,Z=H.length;++X<Z;){var Q=H[X],ee=W?W(U[Q],C[Q],Q,U,C):void 0;ee===void 0&&(ee=C[Q]),G?baseAssignValue$3(U,Q,ee):assignValue$3(U,Q,ee)}return U}function baseAssign$2(C,H){return C&©Object$5(H,keys$5(H),C)}function nativeKeysIn$2(C){var H=[];if(C!=null)for(var U in Object(C))H.push(U);return H}var objectProto$i=Object.prototype,hasOwnProperty$h=objectProto$i.hasOwnProperty;function baseKeysIn$2(C){if(!isObject$d(C))return nativeKeysIn$2(C);var H=isPrototype$4(C),U=[];for(var W in C)W=="constructor"&&(H||!hasOwnProperty$h.call(C,W))||U.push(W);return U}function keysIn$4(C){return isArrayLike$5(C)?arrayLikeKeys$3(C,!0):baseKeysIn$2(C)}function baseAssignIn$2(C,H){return C&©Object$5(H,keysIn$4(H),C)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$b.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer$1(C,H){if(H)return C.slice();var U=C.length,W=allocUnsafe?allocUnsafe(U):new C.constructor(U);return C.copy(W),W}function copyArray$2(C,H){var U=-1,W=C.length;for(H||(H=Array(W));++U<W;)H[U]=C[U];return H}function copySymbols$2(C,H){return copyObject$5(C,getSymbols$5(C),H)}var nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbolsIn$3=nativeGetSymbols$2?function(C){for(var H=[];C;)arrayPush$4(H,getSymbols$5(C)),C=getPrototype$4(C);return H}:stubArray$3;const getSymbolsIn$4=getSymbolsIn$3;function copySymbolsIn$2(C,H){return copyObject$5(C,getSymbolsIn$4(C),H)}function getAllKeysIn$2(C){return baseGetAllKeys$3(C,keysIn$4,getSymbolsIn$4)}var objectProto$h=Object.prototype,hasOwnProperty$g=objectProto$h.hasOwnProperty;function initCloneArray$2(C){var H=C.length,U=new C.constructor(H);return H&&typeof C[0]=="string"&&hasOwnProperty$g.call(C,"index")&&(U.index=C.index,U.input=C.input),U}function cloneArrayBuffer$4(C){var H=new C.constructor(C.byteLength);return new Uint8Array$4(H).set(new Uint8Array$4(C)),H}function cloneDataView$2(C,H){var U=H?cloneArrayBuffer$4(C.buffer):C.buffer;return new C.constructor(U,C.byteOffset,C.byteLength)}var reFlags$1=/\w*$/;function cloneRegExp$2(C){var H=new C.constructor(C.source,reFlags$1.exec(C));return H.lastIndex=C.lastIndex,H}var symbolProto$2=Symbol$7?Symbol$7.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function cloneSymbol$2(C){return symbolValueOf$1?Object(symbolValueOf$1.call(C)):{}}function cloneTypedArray$2(C,H){var U=H?cloneArrayBuffer$4(C.buffer):C.buffer;return new C.constructor(U,C.byteOffset,C.length)}var boolTag$4="[object Boolean]",dateTag$4="[object Date]",mapTag$8="[object Map]",numberTag$5="[object Number]",regexpTag$4="[object RegExp]",setTag$8="[object Set]",stringTag$4="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$5="[object DataView]",float32Tag$4="[object Float32Array]",float64Tag$4="[object Float64Array]",int8Tag$4="[object Int8Array]",int16Tag$4="[object Int16Array]",int32Tag$4="[object Int32Array]",uint8Tag$4="[object Uint8Array]",uint8ClampedTag$4="[object Uint8ClampedArray]",uint16Tag$4="[object Uint16Array]",uint32Tag$4="[object Uint32Array]";function initCloneByTag$2(C,H,U){var W=C.constructor;switch(H){case arrayBufferTag$4:return cloneArrayBuffer$4(C);case boolTag$4:case dateTag$4:return new W(+C);case dataViewTag$5:return cloneDataView$2(C,U);case float32Tag$4:case float64Tag$4:case int8Tag$4:case int16Tag$4:case int32Tag$4:case uint8Tag$4:case uint8ClampedTag$4:case uint16Tag$4:case uint32Tag$4:return cloneTypedArray$2(C,U);case mapTag$8:return new W;case numberTag$5:case stringTag$4:return new W(C);case regexpTag$4:return cloneRegExp$2(C);case setTag$8:return new W;case symbolTag$4:return cloneSymbol$2(C)}}var objectCreate$1=Object.create,baseCreate$2=function(){function C(){}return function(H){if(!isObject$d(H))return{};if(objectCreate$1)return objectCreate$1(H);C.prototype=H;var U=new C;return C.prototype=void 0,U}}();const baseCreate$3=baseCreate$2;function initCloneObject$2(C){return typeof C.constructor=="function"&&!isPrototype$4(C)?baseCreate$3(getPrototype$4(C)):{}}var mapTag$7="[object Map]";function baseIsMap$2(C){return isObjectLike$8(C)&&getTag$5(C)==mapTag$7}var nodeIsMap$1=nodeUtil$4&&nodeUtil$4.isMap,isMap$2=nodeIsMap$1?baseUnary$4(nodeIsMap$1):baseIsMap$2;const isMap$3=isMap$2;var setTag$7="[object Set]";function baseIsSet$2(C){return isObjectLike$8(C)&&getTag$5(C)==setTag$7}var nodeIsSet$1=nodeUtil$4&&nodeUtil$4.isSet,isSet$2=nodeIsSet$1?baseUnary$4(nodeIsSet$1):baseIsSet$2;const isSet$3=isSet$2;var CLONE_DEEP_FLAG$4=1,CLONE_FLAT_FLAG$2=2,CLONE_SYMBOLS_FLAG$5=4,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$3="[object Function]",genTag$2="[object GeneratorFunction]",mapTag$6="[object Map]",numberTag$4="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",symbolTag$3="[object Symbol]",weakMapTag$3="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",cloneableTags$1={};cloneableTags$1[argsTag$3]=cloneableTags$1[arrayTag$2]=cloneableTags$1[arrayBufferTag$3]=cloneableTags$1[dataViewTag$4]=cloneableTags$1[boolTag$3]=cloneableTags$1[dateTag$3]=cloneableTags$1[float32Tag$3]=cloneableTags$1[float64Tag$3]=cloneableTags$1[int8Tag$3]=cloneableTags$1[int16Tag$3]=cloneableTags$1[int32Tag$3]=cloneableTags$1[mapTag$6]=cloneableTags$1[numberTag$4]=cloneableTags$1[objectTag$3]=cloneableTags$1[regexpTag$3]=cloneableTags$1[setTag$6]=cloneableTags$1[stringTag$3]=cloneableTags$1[symbolTag$3]=cloneableTags$1[uint8Tag$3]=cloneableTags$1[uint8ClampedTag$3]=cloneableTags$1[uint16Tag$3]=cloneableTags$1[uint32Tag$3]=!0;cloneableTags$1[errorTag$2]=cloneableTags$1[funcTag$3]=cloneableTags$1[weakMapTag$3]=!1;function baseClone$2(C,H,U,W,G,X){var Z,Q=H&CLONE_DEEP_FLAG$4,ee=H&CLONE_FLAT_FLAG$2,ie=H&CLONE_SYMBOLS_FLAG$5;if(U&&(Z=G?U(C,W,G,X):U(C)),Z!==void 0)return Z;if(!isObject$d(C))return C;var te=isArray$c(C);if(te){if(Z=initCloneArray$2(C),!Q)return copyArray$2(C,Z)}else{var ne=getTag$5(C),ae=ne==funcTag$3||ne==genTag$2;if(isBuffer$5(C))return cloneBuffer$1(C,Q);if(ne==objectTag$3||ne==argsTag$3||ae&&!G){if(Z=ee||ae?{}:initCloneObject$2(C),!Q)return ee?copySymbolsIn$2(C,baseAssignIn$2(Z,C)):copySymbols$2(C,baseAssign$2(Z,C))}else{if(!cloneableTags$1[ne])return G?C:{};Z=initCloneByTag$2(C,ne,Q)}}X||(X=new Stack$2);var oe=X.get(C);if(oe)return oe;X.set(C,Z),isSet$3(C)?C.forEach(function(ce){Z.add(baseClone$2(ce,H,U,ce,C,X))}):isMap$3(C)&&C.forEach(function(ce,ue){Z.set(ue,baseClone$2(ce,H,U,ue,C,X))});var se=ie?ee?getAllKeysIn$2:getAllKeys$2:ee?keysIn$4:keys$5,le=te?void 0:se(C);return arrayEach$2(le||C,function(ce,ue){le&&(ue=ce,ce=C[ue]),assignValue$3(Z,ue,baseClone$2(ce,H,U,ue,C,X))}),Z}var CLONE_DEEP_FLAG$3=1,CLONE_SYMBOLS_FLAG$4=4;function cloneDeep$1(C){return baseClone$2(C,CLONE_DEEP_FLAG$3|CLONE_SYMBOLS_FLAG$4)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(C){for(var H=1;H<arguments.length;H++){var U=arguments[H];for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&(C[W]=U[W])}return C},_extends.apply(this,arguments)}function _inheritsLoose(C,H){C.prototype=Object.create(H.prototype),C.prototype.constructor=C,_setPrototypeOf$1(C,H)}function _getPrototypeOf(C){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},_getPrototypeOf(C)}function _setPrototypeOf$1(C,H){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,G){return W.__proto__=G,W},_setPrototypeOf$1(C,H)}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct$1(C,H,U){return _isNativeReflectConstruct$1()?_construct$1=Reflect.construct.bind():_construct$1=function(G,X,Z){var Q=[null];Q.push.apply(Q,X);var ee=Function.bind.apply(G,Q),ie=new ee;return Z&&_setPrototypeOf$1(ie,Z.prototype),ie},_construct$1.apply(null,arguments)}function _isNativeFunction(C){return Function.toString.call(C).indexOf("[native code]")!==-1}function _wrapNativeSuper(C){var H=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(W){if(W===null||!_isNativeFunction(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof H<"u"){if(H.has(W))return H.get(W);H.set(W,G)}function G(){return _construct$1(W,arguments,_getPrototypeOf(this).constructor)}return G.prototype=Object.create(W.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(G,W)},_wrapNativeSuper(C)}var formatRegExp=/%[sdj%]/g,warning=function(){};typeof process<"u"&&process.env;function convertFieldsError(C){if(!C||!C.length)return null;var H={};return C.forEach(function(U){var W=U.field;H[W]=H[W]||[],H[W].push(U)}),H}function format$3(C){for(var H=arguments.length,U=new Array(H>1?H-1:0),W=1;W<H;W++)U[W-1]=arguments[W];var G=0,X=U.length;if(typeof C=="function")return C.apply(null,U);if(typeof C=="string"){var Z=C.replace(formatRegExp,function(Q){if(Q==="%%")return"%";if(G>=X)return Q;switch(Q){case"%s":return String(U[G++]);case"%d":return Number(U[G++]);case"%j":try{return JSON.stringify(U[G++])}catch{return"[Circular]"}break;default:return Q}});return Z}return C}function isNativeStringType(C){return C==="string"||C==="url"||C==="hex"||C==="email"||C==="date"||C==="pattern"}function isEmptyValue(C,H){return!!(C==null||H==="array"&&Array.isArray(C)&&!C.length||isNativeStringType(H)&&typeof C=="string"&&!C)}function asyncParallelArray(C,H,U){var W=[],G=0,X=C.length;function Z(Q){W.push.apply(W,Q||[]),G++,G===X&&U(W)}C.forEach(function(Q){H(Q,Z)})}function asyncSerialArray(C,H,U){var W=0,G=C.length;function X(Z){if(Z&&Z.length){U(Z);return}var Q=W;W=W+1,Q<G?H(C[Q],X):U([])}X([])}function flattenObjArr(C){var H=[];return Object.keys(C).forEach(function(U){H.push.apply(H,C[U]||[])}),H}var AsyncValidationError=function(C){_inheritsLoose(H,C);function H(U,W){var G;return G=C.call(this,"Async Validation Error")||this,G.errors=U,G.fields=W,G}return H}(_wrapNativeSuper(Error));function asyncMap(C,H,U,W,G){if(H.first){var X=new Promise(function(ae,oe){var se=function(ue){return W(ue),ue.length?oe(new AsyncValidationError(ue,convertFieldsError(ue))):ae(G)},le=flattenObjArr(C);asyncSerialArray(le,U,se)});return X.catch(function(ae){return ae}),X}var Z=H.firstFields===!0?Object.keys(C):H.firstFields||[],Q=Object.keys(C),ee=Q.length,ie=0,te=[],ne=new Promise(function(ae,oe){var se=function(ce){if(te.push.apply(te,ce),ie++,ie===ee)return W(te),te.length?oe(new AsyncValidationError(te,convertFieldsError(te))):ae(G)};Q.length||(W(te),ae(G)),Q.forEach(function(le){var ce=C[le];Z.indexOf(le)!==-1?asyncSerialArray(ce,U,se):asyncParallelArray(ce,U,se)})});return ne.catch(function(ae){return ae}),ne}function isErrorObj(C){return!!(C&&C.message!==void 0)}function getValue$3(C,H){for(var U=C,W=0;W<H.length;W++){if(U==null)return U;U=U[H[W]]}return U}function complementError(C,H){return function(U){var W;return C.fullFields?W=getValue$3(H,C.fullFields):W=H[U.field||C.fullField],isErrorObj(U)?(U.field=U.field||C.fullField,U.fieldValue=W,U):{message:typeof U=="function"?U():U,fieldValue:W,field:U.field||C.fullField}}}function deepMerge(C,H){if(H){for(var U in H)if(H.hasOwnProperty(U)){var W=H[U];typeof W=="object"&&typeof C[U]=="object"?C[U]=_extends({},C[U],W):C[U]=W}}return C}var required$1=function(H,U,W,G,X,Z){H.required&&(!W.hasOwnProperty(H.field)||isEmptyValue(U,Z||H.type))&&G.push(format$3(X.messages.required,H.fullField))},whitespace$1=function(H,U,W,G,X){(/^\s+$/.test(U)||U==="")&&G.push(format$3(X.messages.whitespace,H.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var C="[a-fA-F\\d:]",H=function(ge){return ge&&ge.includeBoundaries?"(?:(?<=\\s|^)(?="+C+")|(?<="+C+")(?=\\s|$))":""},U="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",W="[a-fA-F\\d]{1,4}",G=(`
|
||
(?:
|
||
(?:`+W+":){7}(?:"+W+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+W+":){6}(?:"+U+"|:"+W+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+W+":){5}(?::"+U+"|(?::"+W+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+W+":){4}(?:(?::"+W+"){0,1}:"+U+"|(?::"+W+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+W+":){3}(?:(?::"+W+"){0,2}:"+U+"|(?::"+W+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+W+":){2}(?:(?::"+W+"){0,3}:"+U+"|(?::"+W+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+W+":){1}(?:(?::"+W+"){0,4}:"+U+"|(?::"+W+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+W+"){0,5}:"+U+"|(?::"+W+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),X=new RegExp("(?:^"+U+"$)|(?:^"+G+"$)"),Z=new RegExp("^"+U+"$"),Q=new RegExp("^"+G+"$"),ee=function(ge){return ge&&ge.exact?X:new RegExp("(?:"+H(ge)+U+H(ge)+")|(?:"+H(ge)+G+H(ge)+")","g")};ee.v4=function(ve){return ve&&ve.exact?Z:new RegExp(""+H(ve)+U+H(ve),"g")},ee.v6=function(ve){return ve&&ve.exact?Q:new RegExp(""+H(ve)+G+H(ve),"g")};var ie="(?:(?:[a-z]+:)?//)",te="(?:\\S+(?::\\S*)?@)?",ne=ee.v4().source,ae=ee.v6().source,oe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",se="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",le="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",ce="(?::\\d{2,5})?",ue='(?:[/?#][^\\s"]*)?',de="(?:"+ie+"|www\\.)"+te+"(?:localhost|"+ne+"|"+ae+"|"+oe+se+le+")"+ce+ue;return urlReg=new RegExp("(?:^"+de+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(H){return types$1.number(H)&&parseInt(H,10)===H},float:function(H){return types$1.number(H)&&!types$1.integer(H)},array:function(H){return Array.isArray(H)},regexp:function(H){if(H instanceof RegExp)return!0;try{return!!new RegExp(H)}catch{return!1}},date:function(H){return typeof H.getTime=="function"&&typeof H.getMonth=="function"&&typeof H.getYear=="function"&&!isNaN(H.getTime())},number:function(H){return isNaN(H)?!1:typeof H=="number"},object:function(H){return typeof H=="object"&&!types$1.array(H)},method:function(H){return typeof H=="function"},email:function(H){return typeof H=="string"&&H.length<=320&&!!H.match(pattern$2.email)},url:function(H){return typeof H=="string"&&H.length<=2048&&!!H.match(getUrlRegex())},hex:function(H){return typeof H=="string"&&!!H.match(pattern$2.hex)}},type$1=function(H,U,W,G,X){if(H.required&&U===void 0){required$1(H,U,W,G,X);return}var Z=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Q=H.type;Z.indexOf(Q)>-1?types$1[Q](U)||G.push(format$3(X.messages.types[Q],H.fullField,H.type)):Q&&typeof U!==H.type&&G.push(format$3(X.messages.types[Q],H.fullField,H.type))},range$3=function(H,U,W,G,X){var Z=typeof H.len=="number",Q=typeof H.min=="number",ee=typeof H.max=="number",ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,te=U,ne=null,ae=typeof U=="number",oe=typeof U=="string",se=Array.isArray(U);if(ae?ne="number":oe?ne="string":se&&(ne="array"),!ne)return!1;se&&(te=U.length),oe&&(te=U.replace(ie,"_").length),Z?te!==H.len&&G.push(format$3(X.messages[ne].len,H.fullField,H.len)):Q&&!ee&&te<H.min?G.push(format$3(X.messages[ne].min,H.fullField,H.min)):ee&&!Q&&te>H.max?G.push(format$3(X.messages[ne].max,H.fullField,H.max)):Q&&ee&&(te<H.min||te>H.max)&&G.push(format$3(X.messages[ne].range,H.fullField,H.min,H.max))},ENUM$1="enum",enumerable$1=function(H,U,W,G,X){H[ENUM$1]=Array.isArray(H[ENUM$1])?H[ENUM$1]:[],H[ENUM$1].indexOf(U)===-1&&G.push(format$3(X.messages[ENUM$1],H.fullField,H[ENUM$1].join(", ")))},pattern$1=function(H,U,W,G,X){if(H.pattern){if(H.pattern instanceof RegExp)H.pattern.lastIndex=0,H.pattern.test(U)||G.push(format$3(X.messages.pattern.mismatch,H.fullField,U,H.pattern));else if(typeof H.pattern=="string"){var Z=new RegExp(H.pattern);Z.test(U)||G.push(format$3(X.messages.pattern.mismatch,H.fullField,U,H.pattern))}}},rules={required:required$1,whitespace:whitespace$1,type:type$1,range:range$3,enum:enumerable$1,pattern:pattern$1},string=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U,"string")&&!H.required)return W();rules.required(H,U,G,Z,X,"string"),isEmptyValue(U,"string")||(rules.type(H,U,G,Z,X),rules.range(H,U,G,Z,X),rules.pattern(H,U,G,Z,X),H.whitespace===!0&&rules.whitespace(H,U,G,Z,X))}W(Z)},method=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&rules.type(H,U,G,Z,X)}W(Z)},number$5=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(U===""&&(U=void 0),isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&(rules.type(H,U,G,Z,X),rules.range(H,U,G,Z,X))}W(Z)},_boolean=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&rules.type(H,U,G,Z,X)}W(Z)},regexp=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),isEmptyValue(U)||rules.type(H,U,G,Z,X)}W(Z)},integer=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&(rules.type(H,U,G,Z,X),rules.range(H,U,G,Z,X))}W(Z)},floatFn=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&(rules.type(H,U,G,Z,X),rules.range(H,U,G,Z,X))}W(Z)},array$2=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(U==null&&!H.required)return W();rules.required(H,U,G,Z,X,"array"),U!=null&&(rules.type(H,U,G,Z,X),rules.range(H,U,G,Z,X))}W(Z)},object$1=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&rules.type(H,U,G,Z,X)}W(Z)},ENUM="enum",enumerable=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X),U!==void 0&&rules[ENUM](H,U,G,Z,X)}W(Z)},pattern=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U,"string")&&!H.required)return W();rules.required(H,U,G,Z,X),isEmptyValue(U,"string")||rules.pattern(H,U,G,Z,X)}W(Z)},date$2=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U,"date")&&!H.required)return W();if(rules.required(H,U,G,Z,X),!isEmptyValue(U,"date")){var ee;U instanceof Date?ee=U:ee=new Date(U),rules.type(H,ee,G,Z,X),ee&&rules.range(H,ee.getTime(),G,Z,X)}}W(Z)},required=function(H,U,W,G,X){var Z=[],Q=Array.isArray(U)?"array":typeof U;rules.required(H,U,G,Z,X,Q),W(Z)},type$2=function(H,U,W,G,X){var Z=H.type,Q=[],ee=H.required||!H.required&&G.hasOwnProperty(H.field);if(ee){if(isEmptyValue(U,Z)&&!H.required)return W();rules.required(H,U,G,Q,X,Z),isEmptyValue(U,Z)||rules.type(H,U,G,Q,X)}W(Q)},any=function(H,U,W,G,X){var Z=[],Q=H.required||!H.required&&G.hasOwnProperty(H.field);if(Q){if(isEmptyValue(U)&&!H.required)return W();rules.required(H,U,G,Z,X)}W(Z)},validators$2={string,method,number:number$5,boolean:_boolean,regexp,integer,float:floatFn,array:array$2,object:object$1,enum:enumerable,pattern,date:date$2,url:type$2,hex:type$2,email:type$2,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var H=JSON.parse(JSON.stringify(this));return H.clone=this.clone,H}}}var messages$2=newMessages(),Schema=function(){function C(U){this.rules=null,this._messages=messages$2,this.define(U)}var H=C.prototype;return H.define=function(W){var G=this;if(!W)throw new Error("Cannot configure a schema with no rules");if(typeof W!="object"||Array.isArray(W))throw new Error("Rules must be an object");this.rules={},Object.keys(W).forEach(function(X){var Z=W[X];G.rules[X]=Array.isArray(Z)?Z:[Z]})},H.messages=function(W){return W&&(this._messages=deepMerge(newMessages(),W)),this._messages},H.validate=function(W,G,X){var Z=this;G===void 0&&(G={}),X===void 0&&(X=function(){});var Q=W,ee=G,ie=X;if(typeof ee=="function"&&(ie=ee,ee={}),!this.rules||Object.keys(this.rules).length===0)return ie&&ie(null,Q),Promise.resolve(Q);function te(le){var ce=[],ue={};function de(ge){if(Array.isArray(ge)){var he;ce=(he=ce).concat.apply(he,ge)}else ce.push(ge)}for(var ve=0;ve<le.length;ve++)de(le[ve]);ce.length?(ue=convertFieldsError(ce),ie(ce,ue)):ie(null,Q)}if(ee.messages){var ne=this.messages();ne===messages$2&&(ne=newMessages()),deepMerge(ne,ee.messages),ee.messages=ne}else ee.messages=this.messages();var ae={},oe=ee.keys||Object.keys(this.rules);oe.forEach(function(le){var ce=Z.rules[le],ue=Q[le];ce.forEach(function(de){var ve=de;typeof ve.transform=="function"&&(Q===W&&(Q=_extends({},Q)),ue=Q[le]=ve.transform(ue)),typeof ve=="function"?ve={validator:ve}:ve=_extends({},ve),ve.validator=Z.getValidationMethod(ve),ve.validator&&(ve.field=le,ve.fullField=ve.fullField||le,ve.type=Z.getType(ve),ae[le]=ae[le]||[],ae[le].push({rule:ve,value:ue,source:Q,field:le}))})});var se={};return asyncMap(ae,ee,function(le,ce){var ue=le.rule,de=(ue.type==="object"||ue.type==="array")&&(typeof ue.fields=="object"||typeof ue.defaultField=="object");de=de&&(ue.required||!ue.required&&le.value),ue.field=le.field;function ve(me,_e){return _extends({},_e,{fullField:ue.fullField+"."+me,fullFields:ue.fullFields?[].concat(ue.fullFields,[me]):[me]})}function ge(me){me===void 0&&(me=[]);var _e=Array.isArray(me)?me:[me];!ee.suppressWarning&&_e.length&&C.warning("async-validator:",_e),_e.length&&ue.message!==void 0&&(_e=[].concat(ue.message));var be=_e.map(complementError(ue,Q));if(ee.first&&be.length)return se[ue.field]=1,ce(be);if(!de)ce(be);else{if(ue.required&&!le.value)return ue.message!==void 0?be=[].concat(ue.message).map(complementError(ue,Q)):ee.error&&(be=[ee.error(ue,format$3(ee.messages.required,ue.field))]),ce(be);var pe={};ue.defaultField&&Object.keys(le.value).map(function($e){pe[$e]=ue.defaultField}),pe=_extends({},pe,le.rule.fields);var fe={};Object.keys(pe).forEach(function($e){var we=pe[$e],Se=Array.isArray(we)?we:[we];fe[$e]=Se.map(ve.bind(null,$e))});var ye=new C(fe);ye.messages(ee.messages),le.rule.options&&(le.rule.options.messages=ee.messages,le.rule.options.error=ee.error),ye.validate(le.value,le.rule.options||ee,function($e){var we=[];be&&be.length&&we.push.apply(we,be),$e&&$e.length&&we.push.apply(we,$e),ce(we.length?we:null)})}}var he;if(ue.asyncValidator)he=ue.asyncValidator(ue,le.value,ge,le.source,ee);else if(ue.validator){try{he=ue.validator(ue,le.value,ge,le.source,ee)}catch(me){console.error==null||console.error(me),ee.suppressValidatorError||setTimeout(function(){throw me},0),ge(me.message)}he===!0?ge():he===!1?ge(typeof ue.message=="function"?ue.message(ue.fullField||ue.field):ue.message||(ue.fullField||ue.field)+" fails"):he instanceof Array?ge(he):he instanceof Error&&ge(he.message)}he&&he.then&&he.then(function(){return ge()},function(me){return ge(me)})},function(le){te(le)},Q)},H.getType=function(W){if(W.type===void 0&&W.pattern instanceof RegExp&&(W.type="pattern"),typeof W.validator!="function"&&W.type&&!validators$2.hasOwnProperty(W.type))throw new Error(format$3("Unknown rule type %s",W.type));return W.type||"string"},H.getValidationMethod=function(W){if(typeof W.validator=="function")return W.validator;var G=Object.keys(W),X=G.indexOf("message");return X!==-1&&G.splice(X,1),G.length===1&&G[0]==="required"?validators$2.required:validators$2[this.getType(W)]||void 0},C}();Schema.register=function(H,U){if(typeof U!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[H]=U};Schema.warning=warning;Schema.messages=messages$2;Schema.validators=validators$2;function toArray$5(C){return C==null?[]:Array.isArray(C)?C:[C]}function get$4(C,H){for(var U=C,W=0;W<H.length;W+=1){if(U==null)return;U=U[H[W]]}return U}function internalSet(C,H,U,W){if(!H.length)return U;var G=_toArray(H),X=G[0],Z=G.slice(1),Q;return!C&&typeof X=="number"?Q=[]:Array.isArray(C)?Q=_toConsumableArray$1(C):Q=_objectSpread2$1({},C),W&&U===void 0&&Z.length===1?delete Q[X][Z[0]]:Q[X]=internalSet(Q[X],Z,U,W),Q}function set$4(C,H,U){var W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return H.length&&W&&U===void 0&&!get$4(C,H.slice(0,-1))?C:internalSet(C,H,U,W)}function getNamePath(C){return toArray$5(C)}function getValue$2(C,H){var U=get$4(C,H);return U}function setValue(C,H,U){var W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,G=set$4(C,H,U,W);return G}function containsNamePath(C,H){return C&&C.some(function(U){return matchNamePath(U,H)})}function isObject$c(C){return _typeof$3(C)==="object"&&C!==null&&Object.getPrototypeOf(C)===Object.prototype}function internalSetValues(C,H){var U=Array.isArray(C)?_toConsumableArray$1(C):_objectSpread2$1({},C);return H&&Object.keys(H).forEach(function(W){var G=U[W],X=H[W],Z=isObject$c(G)&&isObject$c(X);U[W]=Z?internalSetValues(G,X||{}):X}),U}function setValues(C){for(var H=arguments.length,U=new Array(H>1?H-1:0),W=1;W<H;W++)U[W-1]=arguments[W];return U.reduce(function(G,X){return internalSetValues(G,X)},C)}function cloneByNamePathList(C,H){var U={};return H.forEach(function(W){var G=getValue$2(C,W);U=setValue(U,W,G)}),U}function matchNamePath(C,H){return!C||!H||C.length!==H.length?!1:C.every(function(U,W){return H[W]===U})}var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(C,H){return C.replace(/\$\{\w+\}/g,function(U){var W=U.slice(2,-1);return H[W]})}function validateRule(C,H,U,W,G){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(_regeneratorRuntime.mark(function C(H,U,W,G,X){var Z,Q,ee,ie,te,ne,ae,oe;return _regeneratorRuntime.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Z=_objectSpread2$1({},W),delete Z.ruleIndex,delete Z.trigger,Q=null,Z&&Z.type==="array"&&Z.defaultField&&(Q=Z.defaultField,delete Z.defaultField),ee=new AsyncValidator(_defineProperty$M({},H,[Z])),ie=setValues({},defaultValidateMessages,G.validateMessages),ee.messages(ie),te=[],le.prev=9,le.next=12,Promise.resolve(ee.validate(_defineProperty$M({},H,U),_objectSpread2$1({},G)));case 12:le.next=17;break;case 14:le.prev=14,le.t0=le.catch(9),le.t0.errors?te=le.t0.errors.map(function(ce,ue){var de=ce.message;return isValidElement(de)?cloneVNode(de,{key:"error_".concat(ue)}):de}):(console.error(le.t0),te=[ie.default()]);case 17:if(!(!te.length&&Q)){le.next=22;break}return le.next=20,Promise.all(U.map(function(ce,ue){return validateRule("".concat(H,".").concat(ue),ce,Q,G,X)}));case 20:return ne=le.sent,le.abrupt("return",ne.reduce(function(ce,ue){return[].concat(_toConsumableArray$1(ce),_toConsumableArray$1(ue))},[]));case 22:return ae=_objectSpread2$1(_objectSpread2$1({},W),{},{name:H,enum:(W.enum||[]).join(", ")},X),oe=te.map(function(ce){return typeof ce=="string"?replaceMessage(ce,ae):ce}),le.abrupt("return",oe);case 25:case"end":return le.stop()}},C,null,[[9,14]])})),_validateRule.apply(this,arguments)}function validateRules(C,H,U,W,G,X){var Z=C.join("."),Q=U.map(function(te,ne){var ae=te.validator,oe=_objectSpread2$1(_objectSpread2$1({},te),{},{ruleIndex:ne});return ae&&(oe.validator=function(se,le,ce){var ue=!1,de=function(){for(var he=arguments.length,me=new Array(he),_e=0;_e<he;_e++)me[_e]=arguments[_e];Promise.resolve().then(function(){ue||ce.apply(void 0,me)})},ve=ae(se,le,de);ue=ve&&typeof ve.then=="function"&&typeof ve.catch=="function",ue&&ve.then(function(){ce()}).catch(function(ge){ce(ge||" ")})}),oe}).sort(function(te,ne){var ae=te.warningOnly,oe=te.ruleIndex,se=ne.warningOnly,le=ne.ruleIndex;return!!ae==!!se?oe-le:ae?1:-1}),ee;if(G===!0)ee=new Promise(function(){var te=_asyncToGenerator(_regeneratorRuntime.mark(function ne(ae,oe){var se,le,ce;return _regeneratorRuntime.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:se=0;case 1:if(!(se<Q.length)){de.next=12;break}return le=Q[se],de.next=5,validateRule(Z,H,le,W,X);case 5:if(ce=de.sent,!ce.length){de.next=9;break}return oe([{errors:ce,rule:le}]),de.abrupt("return");case 9:se+=1,de.next=1;break;case 12:ae([]);case 13:case"end":return de.stop()}},ne)}));return function(ne,ae){return te.apply(this,arguments)}}());else{var ie=Q.map(function(te){return validateRule(Z,H,te,W,X).then(function(ne){return{errors:ne,rule:te}})});ee=(G?finishOnFirstFailed(ie):finishOnAllFailed(ie)).then(function(te){return Promise.reject(te)})}return ee.catch(function(te){return te}),ee}function finishOnAllFailed(C){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(_regeneratorRuntime.mark(function C(H){return _regeneratorRuntime.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Promise.all(H).then(function(G){var X,Z=(X=[]).concat.apply(X,_toConsumableArray$1(G));return Z}));case 1:case"end":return W.stop()}},C)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(C){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(_regeneratorRuntime.mark(function C(H){var U;return _regeneratorRuntime.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return U=0,G.abrupt("return",new Promise(function(X){H.forEach(function(Z){Z.then(function(Q){Q.errors.length&&X([Q]),U+=1,U===H.length&&X([])})})}));case 2:case"end":return G.stop()}},C)})),_finishOnFirstFailed.apply(this,arguments)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(C,H,U,W){var G=U.length,X=G,Z=!W;if(C==null)return!X;for(C=Object(C);G--;){var Q=U[G];if(Z&&Q[2]?Q[1]!==C[Q[0]]:!(Q[0]in C))return!1}for(;++G<X;){Q=U[G];var ee=Q[0],ie=C[ee],te=Q[1];if(Z&&Q[2]){if(ie===void 0&&!(ee in C))return!1}else{var ne=new Stack$2;if(W)var ae=W(ie,te,ee,C,H,ne);if(!(ae===void 0?baseIsEqual(te,ie,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,W,ne):ae))return!1}}return!0}function isStrictComparable(C){return C===C&&!isObject$d(C)}function getMatchData(C){for(var H=keys$5(C),U=H.length;U--;){var W=H[U],G=C[W];H[U]=[W,G,isStrictComparable(G)]}return H}function matchesStrictComparable(C,H){return function(U){return U==null?!1:U[C]===H&&(H!==void 0||C in Object(U))}}function baseMatches(C){var H=getMatchData(C);return H.length==1&&H[0][2]?matchesStrictComparable(H[0][0],H[0][1]):function(U){return U===C||baseIsMatch(U,C,H)}}function get$3(C,H,U){var W=C==null?void 0:baseGet$2(C,H);return W===void 0?U:W}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(C,H){return isKey$2(C)&&isStrictComparable(H)?matchesStrictComparable(toKey$4(C),H):function(U){var W=get$3(U,C);return W===void 0&&W===H?hasIn(U,C):baseIsEqual(H,W,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function basePropertyDeep(C){return function(H){return baseGet$2(H,C)}}function property(C){return isKey$2(C)?baseProperty(toKey$4(C)):basePropertyDeep(C)}function baseIteratee(C){return typeof C=="function"?C:C==null?identity$5:typeof C=="object"?isArray$c(C)?baseMatchesProperty(C[0],C[1]):baseMatches(C):property(C)}function createFind(C){return function(H,U,W){var G=Object(H);if(!isArrayLike$5(H)){var X=baseIteratee(U);H=keys$5(H),U=function(Q){return X(G[Q],Q,G)}}var Z=C(H,U,W);return Z>-1?G[X?H[Z]:Z]:void 0}}var nativeMax$1=Math.max;function findIndex(C,H,U){var W=C==null?0:C.length;if(!W)return-1;var G=U==null?0:toInteger(U);return G<0&&(G=nativeMax$1(W+G,0)),baseFindIndex(C,baseIteratee(H),G)}var find$1=createFind(findIndex);const find$2=find$1;var FormContextKey=Symbol("formContextKey"),useProvideForm=function(H){provide(FormContextKey,H)},useInjectForm=function(){return inject(FormContextKey,{name:computed(function(){}),labelAlign:computed(function(){return"right"}),vertical:computed(function(){return!1}),addField:function(U,W){},removeField:function(U){},model:computed(function(){}),rules:computed(function(){}),colon:computed(function(){}),labelWrap:computed(function(){}),labelCol:computed(function(){}),requiredMark:computed(function(){return!1}),validateTrigger:computed(function(){}),onValidate:function(){},validateMessages:computed(function(){return defaultValidateMessages})})},FormItemPrefixContextKey=Symbol("formItemPrefixContextKey"),useProvideFormItemPrefix=function(H){provide(FormItemPrefixContextKey,H)},useInjectFormItemPrefix=function(){return inject(FormItemPrefixContextKey,{prefixCls:computed(function(){return""})})},FormItemLabel=function(H,U){var W,G,X,Z,Q=U.slots,ee=U.emit,ie=U.attrs,te=_objectSpread2$1(_objectSpread2$1({},H),ie),ne=te.prefixCls,ae=te.htmlFor,oe=te.labelCol,se=te.labelAlign,le=te.colon,ce=te.required,ue=te.requiredMark,de=useLocaleReceiver("Form"),ve=_slicedToArray$2(de,1),ge=ve[0],he=(W=H.label)!==null&&W!==void 0?W:(G=Q.label)===null||G===void 0?void 0:G.call(Q);if(!he)return null;var me=useInjectForm(),_e=me.vertical,be=me.labelAlign,pe=me.labelCol,fe=me.labelWrap,ye=me.colon,$e=oe||(pe==null?void 0:pe.value)||{},we=se||(be==null?void 0:be.value),Se="".concat(ne,"-item-label"),Te=classNames(Se,we==="left"&&"".concat(Se,"-left"),$e.class,_defineProperty$M({},"".concat(Se,"-wrap"),!!fe.value)),xe=he,ke=le===!0||(ye==null?void 0:ye.value)!==!1&&le!==!1,Ie=ke&&!_e.value;if(Ie&&typeof he=="string"&&he.trim()!==""&&(xe=he.replace(/[:|:]\s*$/,"")),xe=createVNode(Fragment,null,[xe,(X=Q.tooltip)===null||X===void 0?void 0:X.call(Q,{class:"".concat(ne,"-item-tooltip")})]),ue==="optional"&&!ce){var Ae,Me;xe=createVNode(Fragment,null,[xe,createVNode("span",{class:"".concat(ne,"-item-optional")},[((Ae=ge.value)===null||Ae===void 0?void 0:Ae.optional)||((Me=defaultLocale$2.Form)===null||Me===void 0?void 0:Me.optional)])])}var Fe=classNames((Z={},_defineProperty$M(Z,"".concat(ne,"-item-required"),ce),_defineProperty$M(Z,"".concat(ne,"-item-required-mark-optional"),ue==="optional"),_defineProperty$M(Z,"".concat(ne,"-item-no-colon"),!ke),Z));return createVNode(Col,_objectSpread2$1(_objectSpread2$1({},$e),{},{class:Te}),{default:function(){return[createVNode("label",{for:ae,class:Fe,title:typeof he=="string"?he:"",onClick:function(Ve){return ee("click",Ve)}},[xe])]}})};FormItemLabel.displayName="FormItemLabel";FormItemLabel.inheritAttrs=!1;const FormItemLabel$1=FormItemLabel,ErrorList=defineComponent({compatConfig:{MODE:3},name:"ErrorList",props:["errors","help","onDomErrorVisibleChange","helpStatus","warnings"],setup:function(H){var U=useConfigInject("",H),W=U.prefixCls,G=useInjectFormItemPrefix(),X=G.prefixCls,Z=G.status,Q=computed(function(){return"".concat(X.value,"-item-explain")}),ee=computed(function(){return!!(H.errors&&H.errors.length)}),ie=ref(Z.value);return watch([ee,Z],function(){ee.value&&(ie.value=Z.value)}),function(){var te,ne,ae=collapseMotion$1("".concat(W.value,"-show-help-item")),oe=getTransitionGroupProps("".concat(W.value,"-show-help-item"),ae);return oe.class=Q.value,(te=H.errors)!==null&&te!==void 0&&te.length?createVNode(TransitionGroup,_objectSpread2$1(_objectSpread2$1({},oe),{},{tag:"div"}),{default:function(){return[(ne=H.errors)===null||ne===void 0?void 0:ne.map(function(le,ce){return createVNode("div",{key:ce,role:"alert",class:ie.value?"".concat(Q.value,"-").concat(ie.value):""},[le])})]}}):null}}});var iconMap={success:CheckCircleFilled$1,warning:ExclamationCircleFilled$1,error:CloseCircleFilled$1,validating:LoadingOutlined$1},FormItemInput=defineComponent({compatConfig:{MODE:3},slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(H,U){var W=U.slots,G=useInjectForm(),X=G.wrapperCol,Z=_objectSpread2$1({},G);return delete Z.labelCol,delete Z.wrapperCol,useProvideForm(Z),useProvideFormItemPrefix({prefixCls:computed(function(){return H.prefixCls}),status:computed(function(){return H.status})}),function(){var Q,ee,ie,te=H.prefixCls,ne=H.wrapperCol,ae=H.help,oe=ae===void 0?(Q=W.help)===null||Q===void 0?void 0:Q.call(W):ae,se=H.errors,le=se===void 0?(ee=W.errors)===null||ee===void 0?void 0:ee.call(W):se,ce=H.hasFeedback,ue=H.status,de=H.extra,ve=de===void 0?(ie=W.extra)===null||ie===void 0?void 0:ie.call(W):de,ge="".concat(te,"-item"),he=ne||(X==null?void 0:X.value)||{},me=classNames("".concat(ge,"-control"),he.class),_e=ue&&iconMap[ue];return createVNode(Col,_objectSpread2$1(_objectSpread2$1({},he),{},{class:me}),{default:function(){var pe;return createVNode(Fragment,null,[createVNode("div",{class:"".concat(ge,"-control-input")},[createVNode("div",{class:"".concat(ge,"-control-input-content")},[(pe=W.default)===null||pe===void 0?void 0:pe.call(W)]),ce&&_e?createVNode("span",{class:"".concat(ge,"-children-icon")},[createVNode(_e,null,null)]):null]),createVNode(ErrorList,{errors:le,help:oe,class:"".concat(ge,"-explain-connected")},null),ve?createVNode("div",{class:"".concat(ge,"-extra")},[ve]):null])}})}}});const FormItemInput$1=FormItemInput;function useDebounce(C){var H=shallowRef(C.value.slice()),U=null;return watchEffect(function(){clearTimeout(U),U=setTimeout(function(){H.value=C.value},C.value.length?0:10)}),H}tuple("success","warning","error","validating","");function getPropByPath$1(C,H,U){var W=C,G=H,X=0;try{for(var Z=G.length;X<Z-1&&!(!W&&!U);++X){var Q=G[X];if(Q in W)W=W[Q];else{if(U)throw Error("please transfer a valid name path to form item!");break}}if(U&&!W)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:W,k:G[X],v:W?W[G[X]]:void 0}}var formItemProps=function(){return{htmlFor:String,prefixCls:String,label:PropTypes$1.any,help:PropTypes$1.any,extra:PropTypes$1.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:PropTypes$1.oneOf(tuple("left","right")),prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:PropTypes$1.oneOf(tuple("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean}},indexGuid$1=0,defaultItemNamePrefixCls="form_item";const __unplugin_components_7$2=defineComponent({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:formItemProps(),slots:["help","label","extra"],setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose;H.prop;var Z="form-item-".concat(++indexGuid$1),Q=useConfigInject("form",H),ee=Q.prefixCls,ie=useInjectForm(),te=computed(function(){return H.name||H.prop}),ne=ref([]),ae=ref(!1),oe=ref(),se=computed(function(){var Ae=te.value;return getNamePath(Ae)}),le=computed(function(){if(se.value.length){var Ae=ie.name.value,Me=se.value.join("_");return Ae?"".concat(Ae,"_").concat(Me):"".concat(defaultItemNamePrefixCls,"_").concat(Me)}else return}),ce=function(){var Me=ie.model.value;if(!(!Me||!te.value))return getPropByPath$1(Me,se.value,!0).v},ue=computed(function(){return ce()}),de=ref(cloneDeep$1(ue.value)),ve=computed(function(){var Ae=H.validateTrigger!==void 0?H.validateTrigger:ie.validateTrigger.value;return Ae=Ae===void 0?"change":Ae,toArray$5(Ae)}),ge=computed(function(){var Ae=ie.rules.value,Me=H.rules,Fe=H.required!==void 0?{required:!!H.required,trigger:ve.value}:[],Be=getPropByPath$1(Ae,se.value);Ae=Ae?Be.o[Be.k]||Be.v:[];var Ne=[].concat(Me||Ae||[]);return find$2(Ne,function(Ve){return Ve.required})?Ne:Ne.concat(Fe)}),he=computed(function(){var Ae=ge.value,Me=!1;return Ae&&Ae.length&&Ae.every(function(Fe){return Fe.required?(Me=!0,!1):!0}),Me||H.required}),me=ref();watchEffect(function(){me.value=H.validateStatus});var _e=computed(function(){var Ae={};return typeof H.label=="string"?Ae.label=H.label:H.name&&(Ae.label=String(name)),H.messageVariables&&(Ae=_objectSpread2$1(_objectSpread2$1({},Ae),H.messageVariables)),Ae}),be=function(Me){if(se.value.length!==0){var Fe=H.validateFirst,Be=Fe===void 0?!1:Fe,Ne=Me||{},Ve=Ne.triggerName,Le=ge.value;if(Ve&&(Le=Le.filter(function(Je){var ze=Je.trigger;if(!ze&&!ve.value.length)return!0;var Ge=toArray$5(ze||ve.value);return Ge.includes(Ve)})),!Le.length)return Promise.resolve();var De=validateRules(se.value,ue.value,Le,_objectSpread2$1({validateMessages:ie.validateMessages.value},Me),Be,_e.value);return me.value="validating",ne.value=[],De.catch(function(Je){return Je}).then(function(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(me.value==="validating"){var ze=Je.filter(function(Ge){return Ge&&Ge.errors.length});me.value=ze.length?"error":"success",ne.value=ze.map(function(Ge){return Ge.errors}),ie.onValidate(te.value,!ne.value.length,ne.value.length?toRaw(ne.value[0]):null)}}),De}},pe=function(){be({triggerName:"blur"})},fe=function(){if(ae.value){ae.value=!1;return}be({triggerName:"change"})},ye=function(){me.value=H.validateStatus,ae.value=!1,ne.value=[]},$e=function(){me.value=H.validateStatus,ae.value=!0,ne.value=[];var Me=ie.model.value||{},Fe=ue.value,Be=getPropByPath$1(Me,se.value,!0);Array.isArray(Fe)?Be.o[Be.k]=[].concat(de.value):Be.o[Be.k]=de.value,nextTick$1(function(){ae.value=!1})},we=computed(function(){return H.htmlFor===void 0?le.value:H.htmlFor}),Se=function(){var Me=we.value;if(!(!Me||!oe.value)){var Fe=oe.value.$el.querySelector('[id="'.concat(Me,'"]'));Fe&&Fe.focus&&Fe.focus()}};X({onFieldBlur:pe,onFieldChange:fe,clearValidate:ye,resetField:$e}),useProvideFormItemContext({id:le,onFieldBlur:function(){H.autoLink&&pe()},onFieldChange:function(){H.autoLink&&fe()},clearValidate:ye},computed(function(){return!!(H.autoLink&&ie.model.value&&te.value)}));var Te=!1;watch(te,function(Ae){Ae?Te||(Te=!0,ie.addField(Z,{fieldValue:ue,fieldId:le,fieldName:te,resetField:$e,clearValidate:ye,namePath:se,validateRules:be,rules:ge})):(Te=!1,ie.removeField(Z))},{immediate:!0}),onBeforeUnmount(function(){ie.removeField(Z)});var xe=useDebounce(ne),ke=computed(function(){return H.validateStatus!==void 0?H.validateStatus:xe.value.length?"error":me.value}),Ie=computed(function(){var Ae;return Ae={},_defineProperty$M(Ae,"".concat(ee.value,"-item"),!0),_defineProperty$M(Ae,"".concat(ee.value,"-item-has-feedback"),ke.value&&H.hasFeedback),_defineProperty$M(Ae,"".concat(ee.value,"-item-has-success"),ke.value==="success"),_defineProperty$M(Ae,"".concat(ee.value,"-item-has-warning"),ke.value==="warning"),_defineProperty$M(Ae,"".concat(ee.value,"-item-has-error"),ke.value==="error"),_defineProperty$M(Ae,"".concat(ee.value,"-item-is-validating"),ke.value==="validating"),_defineProperty$M(Ae,"".concat(ee.value,"-item-hidden"),H.hidden),Ae});return function(){var Ae,Me;if(H.noStyle)return(Ae=W.default)===null||Ae===void 0?void 0:Ae.call(W);var Fe=(Me=H.help)!==null&&Me!==void 0?Me:W.help?filterEmpty(W.help()):null;return createVNode(Row,_objectSpread2$1(_objectSpread2$1({},G),{},{class:[Ie.value,Fe!=null||xe.value.length?"".concat(ee.value,"-item-with-help"):"",G.class],key:"row"}),{default:function(){var Ne,Ve,Le,De;return createVNode(Fragment,null,[createVNode(FormItemLabel$1,_objectSpread2$1(_objectSpread2$1({},H),{},{htmlFor:we.value,required:he.value,requiredMark:ie.requiredMark.value,prefixCls:ee.value,onClick:Se,label:(Ne=H.label)!==null&&Ne!==void 0?Ne:(Ve=W.label)===null||Ve===void 0?void 0:Ve.call(W)}),null),createVNode(FormItemInput$1,_objectSpread2$1(_objectSpread2$1({},H),{},{errors:Fe!=null?toArray$5(Fe):xe.value,prefixCls:ee.value,status:ke.value,ref:oe,help:Fe,extra:(Le=H.extra)!==null&&Le!==void 0?Le:(De=W.extra)===null||De===void 0?void 0:De.call(W)}),{default:W.default})])}})}}});function allPromiseFinish(C){var H=!1,U=C.length,W=[];return C.length?new Promise(function(G,X){C.forEach(function(Z,Q){Z.catch(function(ee){return H=!0,ee}).then(function(ee){U-=1,W[Q]=ee,!(U>0)&&(H&&X(W),G(W))})})}):Promise.resolve([])}function t(C){return typeof C=="object"&&C!=null&&C.nodeType===1}function e(C,H){return(!H||C!=="hidden")&&C!=="visible"&&C!=="clip"}function n(C,H){if(C.clientHeight<C.scrollHeight||C.clientWidth<C.scrollWidth){var U=getComputedStyle(C,null);return e(U.overflowY,H)||e(U.overflowX,H)||function(W){var G=function(X){if(!X.ownerDocument||!X.ownerDocument.defaultView)return null;try{return X.ownerDocument.defaultView.frameElement}catch{return null}}(W);return!!G&&(G.clientHeight<W.scrollHeight||G.clientWidth<W.scrollWidth)}(C)}return!1}function r(C,H,U,W,G,X,Z,Q){return X<C&&Z>H||X>C&&Z<H?0:X<=C&&Q<=U||Z>=H&&Q>=U?X-C-W:Z>H&&Q<U||X<C&&Q>U?Z-H+G:0}var i$1=function(C,H){var U=window,W=H.scrollMode,G=H.block,X=H.inline,Z=H.boundary,Q=H.skipOverflowHiddenElements,ee=typeof Z=="function"?Z:function(Pe){return Pe!==Z};if(!t(C))throw new TypeError("Invalid target");for(var ie,te,ne=document.scrollingElement||document.documentElement,ae=[],oe=C;t(oe)&&ee(oe);){if((oe=(te=(ie=oe).parentElement)==null?ie.getRootNode().host||null:te)===ne){ae.push(oe);break}oe!=null&&oe===document.body&&n(oe)&&!n(document.documentElement)||oe!=null&&n(oe,Q)&&ae.push(oe)}for(var se=U.visualViewport?U.visualViewport.width:innerWidth,le=U.visualViewport?U.visualViewport.height:innerHeight,ce=window.scrollX||pageXOffset,ue=window.scrollY||pageYOffset,de=C.getBoundingClientRect(),ve=de.height,ge=de.width,he=de.top,me=de.right,_e=de.bottom,be=de.left,pe=G==="start"||G==="nearest"?he:G==="end"?_e:he+ve/2,fe=X==="center"?be+ge/2:X==="end"?me:be,ye=[],$e=0;$e<ae.length;$e++){var we=ae[$e],Se=we.getBoundingClientRect(),Te=Se.height,xe=Se.width,ke=Se.top,Ie=Se.right,Ae=Se.bottom,Me=Se.left;if(W==="if-needed"&&he>=0&&be>=0&&_e<=le&&me<=se&&he>=ke&&_e<=Ae&&be>=Me&&me<=Ie)return ye;var Fe=getComputedStyle(we),Be=parseInt(Fe.borderLeftWidth,10),Ne=parseInt(Fe.borderTopWidth,10),Ve=parseInt(Fe.borderRightWidth,10),Le=parseInt(Fe.borderBottomWidth,10),De=0,Je=0,ze="offsetWidth"in we?we.offsetWidth-we.clientWidth-Be-Ve:0,Ge="offsetHeight"in we?we.offsetHeight-we.clientHeight-Ne-Le:0,qe="offsetWidth"in we?we.offsetWidth===0?0:xe/we.offsetWidth:0,Ke="offsetHeight"in we?we.offsetHeight===0?0:Te/we.offsetHeight:0;if(ne===we)De=G==="start"?pe:G==="end"?pe-le:G==="nearest"?r(ue,ue+le,le,Ne,Le,ue+pe,ue+pe+ve,ve):pe-le/2,Je=X==="start"?fe:X==="center"?fe-se/2:X==="end"?fe-se:r(ce,ce+se,se,Be,Ve,ce+fe,ce+fe+ge,ge),De=Math.max(0,De+ue),Je=Math.max(0,Je+ce);else{De=G==="start"?pe-ke-Ne:G==="end"?pe-Ae+Le+Ge:G==="nearest"?r(ke,Ae,Te,Ne,Le+Ge,pe,pe+ve,ve):pe-(ke+Te/2)+Ge/2,Je=X==="start"?fe-Me-Be:X==="center"?fe-(Me+xe/2)+ze/2:X==="end"?fe-Ie+Ve+ze:r(Me,Ie,xe,Be,Ve+ze,fe,fe+ge,ge);var Ee=we.scrollLeft,Ce=we.scrollTop;pe+=Ce-(De=Math.max(0,Math.min(Ce+De/Ke,we.scrollHeight-Te/Ke+Ge))),fe+=Ee-(Je=Math.max(0,Math.min(Ee+Je/qe,we.scrollWidth-xe/qe+ze)))}ye.push({el:we,top:De,left:Je})}return ye};function isOptionsObject(C){return C===Object(C)&&Object.keys(C).length!==0}function defaultBehavior(C,H){H===void 0&&(H="auto");var U="scrollBehavior"in document.body.style;C.forEach(function(W){var G=W.el,X=W.top,Z=W.left;G.scroll&&U?G.scroll({top:X,left:Z,behavior:H}):(G.scrollTop=X,G.scrollLeft=Z)})}function getOptions$1(C){return C===!1?{block:"end",inline:"nearest"}:isOptionsObject(C)?C:{block:"start",inline:"nearest"}}function scrollIntoView(C,H){var U=C.isConnected||C.ownerDocument.documentElement.contains(C);if(isOptionsObject(H)&&typeof H.behavior=="function")return H.behavior(U?i$1(C,H):[]);if(!!U){var W=getOptions$1(H);return defaultBehavior(i$1(C,W),W.behavior)}}var nativeMin$1=Math.min;function baseIntersection(C,H,U){for(var W=U?arrayIncludesWith:arrayIncludes,G=C[0].length,X=C.length,Z=X,Q=Array(X),ee=1/0,ie=[];Z--;){var te=C[Z];Z&&H&&(te=arrayMap$2(te,baseUnary$4(H))),ee=nativeMin$1(te.length,ee),Q[Z]=!U&&(H||G>=120&&te.length>=120)?new SetCache(Z&&te):void 0}te=C[0];var ne=-1,ae=Q[0];e:for(;++ne<G&&ie.length<ee;){var oe=te[ne],se=H?H(oe):oe;if(oe=U||oe!==0?oe:0,!(ae?cacheHas(ae,se):W(ie,se,U))){for(Z=X;--Z;){var le=Q[Z];if(!(le?cacheHas(le,se):W(C[Z],se,U)))continue e}ae&&ae.push(se),ie.push(oe)}}return ie}function baseRest(C,H){return setToString$1(overRest(C,H,identity$5),C+"")}function isArrayLikeObject(C){return isObjectLike$8(C)&&isArrayLike$5(C)}function castArrayLikeObject(C){return isArrayLikeObject(C)?C:[]}var intersection$1=baseRest(function(C){var H=arrayMap$2(C,castArrayLikeObject);return H.length&&H[0]===C[0]?baseIntersection(H):[]});const intersection$2=intersection$1;function last$2(C){var H=C==null?0:C.length;return H?C[H-1]:void 0}function parent$3(C,H){return H.length<2?C:baseGet$2(C,baseSlice$2(H,0,-1))}function baseUnset$2(C,H){return H=castPath$4(H,C),C=parent$3(C,H),C==null||delete C[toKey$4(last$2(H))]}function customOmitClone(C){return isPlainObject$3(C)?void 0:C}var CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$3=4,omit=flatRest(function(C,H){var U={};if(C==null)return U;var W=!1;H=arrayMap$2(H,function(X){return X=castPath$4(X,C),W||(W=X.length>1),X}),copyObject$5(C,getAllKeysIn$2(C),U),W&&(U=baseClone$2(U,CLONE_DEEP_FLAG$2|CLONE_FLAT_FLAG$1|CLONE_SYMBOLS_FLAG$3,customOmitClone));for(var G=H.length;G--;)baseUnset$2(U,H[G]);return U});const omit$1=omit;function isRequired(C){var H=!1;return C&&C.length&&C.every(function(U){return U.required?(H=!0,!1):!0}),H}function toArray$4(C){return C==null?[]:Array.isArray(C)?C:[C]}function getPropByPath(C,H,U){var W=C;H=H.replace(/\[(\w+)\]/g,".$1"),H=H.replace(/^\./,"");for(var G=H.split("."),X=0,Z=G.length;X<Z-1&&!(!W&&!U);++X){var Q=G[X];if(Q in W)W=W[Q];else{if(U)throw new Error("please transfer a valid name path to validate!");break}}return{o:W,k:G[X],v:W?W[G[X]]:null,isValid:W&&G[X]in W}}function useForm(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ref({}),U=arguments.length>2?arguments[2]:void 0,W=cloneDeep$1(unref(C)),G=reactive({}),X=shallowRef([]),Z=function(ge){_extends$1(unref(C),_objectSpread2$1(_objectSpread2$1({},cloneDeep$1(W)),ge)),nextTick$1(function(){Object.keys(G).forEach(function(he){G[he]={autoLink:!1,required:isRequired(unref(H)[he])}})})},Q=function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],he=arguments.length>1?arguments[1]:void 0;return he.length?ge.filter(function(me){var _e=toArray$4(me.trigger||"change");return intersection$2(_e,he).length}):ge},ee=null,ie=function(ge){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=arguments.length>2?arguments[2]:void 0,_e=[],be={},pe=function(Te){var xe=ge[Te],ke=getPropByPath(unref(C),xe,me);if(!ke.isValid)return"continue";be[xe]=ke.v;var Ie=Q(unref(H)[xe],toArray$4(he&&he.trigger));Ie.length&&_e.push(te(xe,ke.v,Ie,he||{}).then(function(){return{name:xe,errors:[],warnings:[]}}).catch(function(Ae){var Me=[],Fe=[];return Ae.forEach(function(Be){var Ne=Be.rule.warningOnly,Ve=Be.errors;Ne?Fe.push.apply(Fe,_toConsumableArray$1(Ve)):Me.push.apply(Me,_toConsumableArray$1(Ve))}),Me.length?Promise.reject({name:xe,errors:Me,warnings:Fe}):{name:xe,errors:Me,warnings:Fe}}))},fe=0;fe<ge.length;fe++)var ye=pe(fe);var $e=allPromiseFinish(_e);ee=$e;var we=$e.then(function(){return ee===$e?Promise.resolve(be):Promise.reject([])}).catch(function(Se){var Te=Se.filter(function(xe){return xe&&xe.errors.length});return Promise.reject({values:be,errorFields:Te,outOfDate:ee!==$e})});return we.catch(function(Se){return Se}),we},te=function(ge,he,me){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},be=validateRules([ge],he,me,_objectSpread2$1({validateMessages:defaultValidateMessages},_e),!!_e.validateFirst);return G[ge]?(G[ge].validateStatus="validating",be.catch(function(pe){return pe}).then(function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(G[ge].validateStatus==="validating"){var fe,ye=pe.filter(function($e){return $e&&$e.errors.length});G[ge].validateStatus=ye.length?"error":"success",G[ge].help=ye.length?ye.map(function($e){return $e.errors}):null,U==null||(fe=U.onValidate)===null||fe===void 0||fe.call(U,ge,!ye.length,ye.length?toRaw(G[ge].help[0]):null)}}),be):be.catch(function(pe){return pe})},ne=function(ge,he){var me=[],_e=!0;ge?Array.isArray(ge)?me=ge:me=[ge]:(_e=!1,me=X.value);var be=ie(me,he||{},_e);return be.catch(function(pe){return pe}),be},ae=function(ge){var he=[];ge?Array.isArray(ge)?he=ge:he=[ge]:he=X.value,he.forEach(function(me){G[me]&&_extends$1(G[me],{validateStatus:"",help:null})})},oe=function(ge){for(var he={autoLink:!1},me=[],_e=Array.isArray(ge)?ge:[ge],be=0;be<_e.length;be++){var pe=_e[be];(pe==null?void 0:pe.validateStatus)==="error"&&(he.validateStatus="error",pe.help&&me.push(pe.help)),he.required=he.required||(pe==null?void 0:pe.required)}return he.help=me,he},se=W,le=!0,ce=function(ge){var he=[];X.value.forEach(function(me){var _e=getPropByPath(ge,me,!1),be=getPropByPath(se,me,!1),pe=le&&(U==null?void 0:U.immediate)&&_e.isValid;(pe||!isEqual(_e.v,be.v))&&he.push(me)}),ne(he,{trigger:"change"}),le=!1,se=cloneDeep$1(toRaw(ge))},ue=U==null?void 0:U.debounce,de=!0;return watch(H,function(){X.value=H?Object.keys(unref(H)):[],!de&&U&&U.validateOnRuleChange&&ne(),de=!1},{deep:!0,immediate:!0}),watch(X,function(){var ve={};X.value.forEach(function(he){ve[he]=_extends$1({},G[he],{autoLink:!1,required:isRequired(unref(H)[he])}),delete G[he]});for(var ge in G)Object.prototype.hasOwnProperty.call(G,ge)&&delete G[ge];_extends$1(G,ve)},{immediate:!0}),watch(C,ue&&ue.wait?debounce(ce,ue.wait,omit$1(ue,["wait"])):ce,{immediate:U&&!!U.immediate,deep:!0}),{modelRef:C,rulesRef:H,initialModel:W,validateInfos:G,resetFields:Z,validate:ne,validateField:te,mergeValidateInfo:oe,clearValidate:ae}}var formProps=function(){return{layout:PropTypes$1.oneOf(tuple("horizontal","inline","vertical")),labelCol:{type:Object},wrapperCol:{type:Object},colon:{type:Boolean,default:void 0},labelAlign:PropTypes$1.oneOf(tuple("left","right")),labelWrap:{type:Boolean,default:void 0},prefixCls:String,requiredMark:{type:[String,Boolean],default:void 0},hideRequiredMark:{type:Boolean,default:void 0},model:PropTypes$1.object,rules:{type:Object},validateMessages:{type:Object,default:void 0},validateOnRuleChange:{type:Boolean,default:void 0},scrollToFirstError:{type:[Boolean,Object]},onSubmit:Function,name:String,validateTrigger:{type:[String,Array]},size:{type:String},onValuesChange:{type:Function},onFieldsChange:{type:Function},onFinish:{type:Function},onFinishFailed:{type:Function},onValidate:{type:Function}}};function isEqualName(C,H){return isEqual(toArray$5(C),toArray$5(H))}var Form=defineComponent({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:initDefaultProps$1(formProps(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:__unplugin_components_7$2,useForm,setup:function(H,U){var W=U.emit,G=U.slots,X=U.expose,Z=U.attrs,Q=useInjectSize(H),ee=useConfigInject("form",H),ie=ee.prefixCls,te=ee.direction,ne=ee.form,ae=computed(function(){return H.requiredMark===""||H.requiredMark}),oe=computed(function(){var ke;return ae.value!==void 0?ae.value:ne&&((ke=ne.value)===null||ke===void 0?void 0:ke.requiredMark)!==void 0?ne.value.requiredMark:!H.hideRequiredMark}),se=computed(function(){var ke,Ie;return(ke=H.colon)!==null&&ke!==void 0?ke:(Ie=ne.value)===null||Ie===void 0?void 0:Ie.colon}),le=useInjectGlobalForm(),ce=le.validateMessages,ue=computed(function(){return _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),ce.value),H.validateMessages)}),de=computed(function(){var ke;return classNames(ie.value,(ke={},_defineProperty$M(ke,"".concat(ie.value,"-").concat(H.layout),!0),_defineProperty$M(ke,"".concat(ie.value,"-hide-required-mark"),oe.value===!1),_defineProperty$M(ke,"".concat(ie.value,"-rtl"),te.value==="rtl"),_defineProperty$M(ke,"".concat(ie.value,"-").concat(Q.value),Q.value),ke))}),ve=ref(),ge={},he=function(Ie,Ae){ge[Ie]=Ae},me=function(Ie){delete ge[Ie]},_e=function(Ie){var Ae=!!Ie,Me=Ae?toArray$5(Ie).map(getNamePath):[];return Ae?Object.values(ge).filter(function(Fe){return Me.findIndex(function(Be){return isEqualName(Be,Fe.fieldName.value)})>-1}):Object.values(ge)},be=function(Ie){if(!H.model){warning$2(!1,"Form","model is required for resetFields to work.");return}_e(Ie).forEach(function(Ae){Ae.resetField()})},pe=function(Ie){_e(Ie).forEach(function(Ae){Ae.clearValidate()})},fe=function(Ie){var Ae=H.scrollToFirstError;if(W("finishFailed",Ie),Ae&&Ie.errorFields.length){var Me={};_typeof$3(Ae)==="object"&&(Me=Ae),$e(Ie.errorFields[0].name,Me)}},ye=function(){return Te.apply(void 0,arguments)},$e=function(Ie){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=_e(Ie?[Ie]:void 0);if(Me.length){var Fe=Me[0].fieldId.value,Be=Fe?document.getElementById(Fe):null;Be&&scrollIntoView(Be,_objectSpread2$1({scrollMode:"if-needed",block:"nearest"},Ae))}},we=function(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(Ie===!0){var Ae=[];return Object.values(ge).forEach(function(Me){var Fe=Me.namePath;Ae.push(Fe.value)}),cloneByNamePathList(H.model,Ae)}else return cloneByNamePathList(H.model,Ie)},Se=function(Ie,Ae){if(warning$2(!(Ie instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!H.model)return warning$2(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var Me=!!Ie,Fe=Me?toArray$5(Ie).map(getNamePath):[],Be=[];Object.values(ge).forEach(function(Le){var De;if(Me||Fe.push(Le.namePath.value),!!((De=Le.rules)!==null&&De!==void 0&&De.value.length)){var Je=Le.namePath.value;if(!Me||containsNamePath(Fe,Je)){var ze=Le.validateRules(_objectSpread2$1({validateMessages:ue.value},Ae));Be.push(ze.then(function(){return{name:Je,errors:[],warnings:[]}}).catch(function(Ge){var qe=[],Ke=[];return Ge.forEach(function(Ee){var Ce=Ee.rule.warningOnly,Pe=Ee.errors;Ce?Ke.push.apply(Ke,_toConsumableArray$1(Pe)):qe.push.apply(qe,_toConsumableArray$1(Pe))}),qe.length?Promise.reject({name:Je,errors:qe,warnings:Ke}):{name:Je,errors:qe,warnings:Ke}}))}}});var Ne=allPromiseFinish(Be);ve.value=Ne;var Ve=Ne.then(function(){return ve.value===Ne?Promise.resolve(we(Fe)):Promise.reject([])}).catch(function(Le){var De=Le.filter(function(Je){return Je&&Je.errors.length});return Promise.reject({values:we(Fe),errorFields:De,outOfDate:ve.value!==Ne})});return Ve.catch(function(Le){return Le}),Ve},Te=function(){return Se.apply(void 0,arguments)},xe=function(Ie){if(Ie.preventDefault(),Ie.stopPropagation(),W("submit",Ie),H.model){var Ae=Se();Ae.then(function(Me){W("finish",Me)}).catch(function(Me){fe(Me)})}};return X({resetFields:be,clearValidate:pe,validateFields:Se,getFieldsValue:we,validate:ye,scrollToField:$e}),useProvideForm({model:computed(function(){return H.model}),name:computed(function(){return H.name}),labelAlign:computed(function(){return H.labelAlign}),labelCol:computed(function(){return H.labelCol}),labelWrap:computed(function(){return H.labelWrap}),wrapperCol:computed(function(){return H.wrapperCol}),vertical:computed(function(){return H.layout==="vertical"}),colon:se,requiredMark:oe,validateTrigger:computed(function(){return H.validateTrigger}),rules:computed(function(){return H.rules}),addField:he,removeField:me,onValidate:function(Ie,Ae,Me){W("validate",Ie,Ae,Me)},validateMessages:ue}),watch(function(){return H.rules},function(){H.validateOnRuleChange&&Se()}),function(){var ke;return createVNode("form",_objectSpread2$1(_objectSpread2$1({},Z),{},{onSubmit:xe,class:[de.value,Z.class]}),[(ke=G.default)===null||ke===void 0?void 0:ke.call(G)])}}});const Form$1=Form;Form$1.useInjectFormItemContext=useInjectFormItemContext;Form$1.ItemRest=FormItemRest;Form$1.install=function(C){return C.component(Form$1.name,Form$1),C.component(Form$1.Item.name,Form$1.Item),C.component(FormItemRest.name,FormItemRest),C};var abstractCheckboxGroupProps=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},checkboxGroupProps=function(){return _objectSpread2$1(_objectSpread2$1({},abstractCheckboxGroupProps()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},abstractCheckboxProps=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:PropTypes$1.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},checkboxProps=function(){return _objectSpread2$1(_objectSpread2$1({},abstractCheckboxProps()),{},{indeterminate:{type:Boolean,default:!1}})},CheckboxGroupContextKey=Symbol("CheckboxGroupContext"),_excluded$f=["indeterminate","skipGroup","id"],_excluded2=["onMouseenter","onMouseleave","onInput","class","style"];const Checkbox=defineComponent({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:checkboxProps(),setup:function(H,U){var W=U.emit,G=U.attrs,X=U.slots,Z=U.expose,Q=useInjectFormItemContext(),ee=useConfigInject("checkbox",H),ie=ee.prefixCls,te=ee.direction,ne=inject(CheckboxGroupContextKey,void 0),ae=Symbol("checkboxUniId");watchEffect(function(){!H.skipGroup&&ne&&ne.registerValue(ae,H.value)}),onBeforeUnmount(function(){ne&&ne.cancelValue(ae)}),onMounted(function(){warning$2(H.checked!==void 0||ne||H.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var oe=function(de){var ve=de.target.checked;W("update:checked",ve),W("change",de)},se=ref(),le=function(){var de;(de=se.value)===null||de===void 0||de.focus()},ce=function(){var de;(de=se.value)===null||de===void 0||de.blur()};return Z({focus:le,blur:ce}),function(){var ue,de,ve=flattenChildren((ue=X.default)===null||ue===void 0?void 0:ue.call(X)),ge=H.indeterminate,he=H.skipGroup,me=H.id,_e=me===void 0?Q.id.value:me,be=_objectWithoutProperties$4(H,_excluded$f),pe=G.onMouseenter,fe=G.onMouseleave;G.onInput;var ye=G.class,$e=G.style,we=_objectWithoutProperties$4(G,_excluded2),Se=_objectSpread2$1(_objectSpread2$1({},be),{},{id:_e,prefixCls:ie.value},we);ne&&!he?(Se.onChange=function(){for(var ke=arguments.length,Ie=new Array(ke),Ae=0;Ae<ke;Ae++)Ie[Ae]=arguments[Ae];W.apply(void 0,["change"].concat(Ie)),ne.toggleOption({label:ve,value:H.value})},Se.name=ne.name.value,Se.checked=ne.mergedValue.value.indexOf(H.value)!==-1,Se.disabled=H.disabled||ne.disabled.value,Se.indeterminate=ge):Se.onChange=oe;var Te=classNames((de={},_defineProperty$M(de,"".concat(ie.value,"-wrapper"),!0),_defineProperty$M(de,"".concat(ie.value,"-rtl"),te.value==="rtl"),_defineProperty$M(de,"".concat(ie.value,"-wrapper-checked"),Se.checked),_defineProperty$M(de,"".concat(ie.value,"-wrapper-disabled"),Se.disabled),de),ye),xe=classNames(_defineProperty$M({},"".concat(ie.value,"-indeterminate"),ge));return createVNode("label",{class:Te,style:$e,onMouseenter:pe,onMouseleave:fe},[createVNode(VcCheckbox,_objectSpread2$1(_objectSpread2$1({},Se),{},{class:xe,ref:se}),null),ve.length?createVNode("span",null,[ve]):null])}}});function _createForOfIteratorHelper(C,H){var U=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(!U){if(Array.isArray(C)||(U=_unsupportedIterableToArray$3(C))||H&&C&&typeof C.length=="number"){U&&(C=U);var W=0,G=function(){};return{s:G,n:function(){return W>=C.length?{done:!0}:{done:!1,value:C[W++]}},e:function(ie){throw ie},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X=!0,Z=!1,Q;return{s:function(){U=U.call(C)},n:function(){var ie=U.next();return X=ie.done,ie},e:function(ie){Z=!0,Q=ie},f:function(){try{!X&&U.return!=null&&U.return()}finally{if(Z)throw Q}}}}const CheckboxGroup=defineComponent({compatConfig:{MODE:3},name:"ACheckboxGroup",props:checkboxGroupProps(),setup:function(H,U){var W=U.slots,G=U.emit,X=U.expose,Z=useInjectFormItemContext(),Q=useConfigInject("checkbox",H),ee=Q.prefixCls,ie=Q.direction,te=ref((H.value===void 0?H.defaultValue:H.value)||[]);watch(function(){return H.value},function(){te.value=H.value||[]});var ne=computed(function(){return H.options.map(function(de){return typeof de=="string"||typeof de=="number"?{label:de,value:de}:de})}),ae=ref(Symbol()),oe=ref(new Map),se=function(ve){oe.value.delete(ve),ae.value=Symbol()},le=function(ve,ge){oe.value.set(ve,ge),ae.value=Symbol()},ce=ref(new Map);watch(ae,function(){var de=new Map,ve=_createForOfIteratorHelper(oe.value.values()),ge;try{for(ve.s();!(ge=ve.n()).done;){var he=ge.value;de.set(he,!0)}}catch(me){ve.e(me)}finally{ve.f()}ce.value=de});var ue=function(ve){var ge=te.value.indexOf(ve.value),he=_toConsumableArray$1(te.value);ge===-1?he.push(ve.value):he.splice(ge,1),H.value===void 0&&(te.value=he);var me=he.filter(function(_e){return ce.value.has(_e)}).sort(function(_e,be){var pe=ne.value.findIndex(function(ye){return ye.value===_e}),fe=ne.value.findIndex(function(ye){return ye.value===be});return pe-fe});G("update:value",me),G("change",me),Z.onFieldChange()};return provide(CheckboxGroupContextKey,{cancelValue:se,registerValue:le,toggleOption:ue,mergedValue:te,name:computed(function(){return H.name}),disabled:computed(function(){return H.disabled})}),X({mergedValue:te}),function(){var de,ve=H.id,ge=ve===void 0?Z.id.value:ve,he=null,me="".concat(ee.value,"-group");return ne.value&&ne.value.length>0&&(he=ne.value.map(function(_e){var be;return createVNode(Checkbox,{prefixCls:ee.value,key:_e.value.toString(),disabled:"disabled"in _e?_e.disabled:H.disabled,indeterminate:_e.indeterminate,value:_e.value,checked:te.value.indexOf(_e.value)!==-1,onChange:_e.onChange,class:"".concat(me,"-item")},{default:function(){return[_e.label===void 0?(be=W.label)===null||be===void 0?void 0:be.call(W,_e):_e.label]}})})),createVNode("div",{class:[me,_defineProperty$M({},"".concat(me,"-rtl"),ie.value==="rtl")],id:ge},[he||((de=W.default)===null||de===void 0?void 0:de.call(W))])}}});Checkbox.Group=CheckboxGroup;Checkbox.install=function(C){return C.component(Checkbox.name,Checkbox),C.component(CheckboxGroup.name,CheckboxGroup),C};var checkableTagProps=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},CheckableTag=defineComponent({compatConfig:{MODE:3},name:"ACheckableTag",props:checkableTagProps(),setup:function(H,U){var W=U.slots,G=U.emit,X=useConfigInject("tag",H),Z=X.prefixCls,Q=function(te){var ne=H.checked;G("update:checked",!ne),G("change",!ne),G("click",te)},ee=computed(function(){var ie;return classNames(Z.value,(ie={},_defineProperty$M(ie,"".concat(Z.value,"-checkable"),!0),_defineProperty$M(ie,"".concat(Z.value,"-checkable-checked"),H.checked),ie))});return function(){var ie;return createVNode("span",{class:ee.value,onClick:Q},[(ie=W.default)===null||ie===void 0?void 0:ie.call(W)])}}});const CheckableTag$1=CheckableTag;var PresetColorRegex=new RegExp("^(".concat(PresetColorTypes.join("|"),")(-inverse)?$")),PresetStatusColorRegex=new RegExp("^(".concat(PresetStatusColorTypes.join("|"),")$")),tagProps=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:PropTypes$1.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:PropTypes$1.any}},Tag=defineComponent({compatConfig:{MODE:3},name:"ATag",props:tagProps(),slots:["closeIcon","icon"],setup:function(H,U){var W=U.slots,G=U.emit,X=U.attrs,Z=useConfigInject("tag",H),Q=Z.prefixCls,ee=Z.direction,ie=ref(!0);watchEffect(function(){H.visible!==void 0&&(ie.value=H.visible)});var te=function(se){se.stopPropagation(),G("update:visible",!1),G("close",se),!se.defaultPrevented&&H.visible===void 0&&(ie.value=!1)},ne=computed(function(){var oe=H.color;return oe?PresetColorRegex.test(oe)||PresetStatusColorRegex.test(oe):!1}),ae=computed(function(){var oe;return classNames(Q.value,(oe={},_defineProperty$M(oe,"".concat(Q.value,"-").concat(H.color),ne.value),_defineProperty$M(oe,"".concat(Q.value,"-has-color"),H.color&&!ne.value),_defineProperty$M(oe,"".concat(Q.value,"-hidden"),!ie.value),_defineProperty$M(oe,"".concat(Q.value,"-rtl"),ee.value==="rtl"),oe))});return function(){var oe,se,le,ce=H.icon,ue=ce===void 0?(oe=W.icon)===null||oe===void 0?void 0:oe.call(W):ce,de=H.color,ve=H.closeIcon,ge=ve===void 0?(se=W.closeIcon)===null||se===void 0?void 0:se.call(W):ve,he=H.closable,me=he===void 0?!1:he,_e=function(){return me?ge?createVNode("span",{class:"".concat(Q.value,"-close-icon"),onClick:te},[ge]):createVNode(CloseOutlined$1,{class:"".concat(Q.value,"-close-icon"),onClick:te},null):null},be={backgroundColor:de&&!ne.value?de:void 0},pe=ue||null,fe=(le=W.default)===null||le===void 0?void 0:le.call(W),ye=pe?createVNode(Fragment,null,[pe,createVNode("span",null,[fe])]):fe,$e="onClick"in X,we=createVNode("span",{class:ae.value,style:be},[ye,_e()]);return $e?createVNode(Wave,null,{default:function(){return[we]}}):we}}});Tag.CheckableTag=CheckableTag$1;Tag.install=function(C){return C.component(Tag.name,Tag),C.component(CheckableTag$1.name,CheckableTag$1),C};const __unplugin_components_7$1=Tag;var dividerProps=function(){return{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}},Divider=defineComponent({compatConfig:{MODE:3},name:"ADivider",props:dividerProps(),setup:function(H,U){var W=U.slots,G=useConfigInject("divider",H),X=G.prefixCls,Z=G.direction,Q=computed(function(){return H.orientation==="left"&&H.orientationMargin!=null}),ee=computed(function(){return H.orientation==="right"&&H.orientationMargin!=null}),ie=computed(function(){var ae,oe=H.type,se=H.dashed,le=H.plain,ce=X.value;return ae={},_defineProperty$M(ae,ce,!0),_defineProperty$M(ae,"".concat(ce,"-").concat(oe),!0),_defineProperty$M(ae,"".concat(ce,"-dashed"),!!se),_defineProperty$M(ae,"".concat(ce,"-plain"),!!le),_defineProperty$M(ae,"".concat(ce,"-rtl"),Z.value==="rtl"),_defineProperty$M(ae,"".concat(ce,"-no-default-orientation-margin-left"),Q.value),_defineProperty$M(ae,"".concat(ce,"-no-default-orientation-margin-right"),ee.value),ae}),te=computed(function(){var ae=typeof H.orientationMargin=="number"?"".concat(H.orientationMargin,"px"):H.orientationMargin;return _objectSpread2$1(_objectSpread2$1({},Q.value&&{marginLeft:ae}),ee.value&&{marginRight:ae})}),ne=computed(function(){return H.orientation.length>0?"-"+H.orientation:H.orientation});return function(){var ae,oe=flattenChildren((ae=W.default)===null||ae===void 0?void 0:ae.call(W));return createVNode("div",{class:[ie.value,oe.length?"".concat(X.value,"-with-text ").concat(X.value,"-with-text").concat(ne.value):""],role:"separator"},[oe.length?createVNode("span",{class:"".concat(X.value,"-inner-text"),style:te.value},[oe]):null])}}});const __unplugin_components_2$1=withInstall(Divider);Dropdown$1.Button=DropdownButton;Dropdown$1.install=function(C){return C.component(Dropdown$1.name,Dropdown$1),C.component(DropdownButton.name,DropdownButton),C};var cached;function getScrollBarSize(C){if(typeof document>"u")return 0;if(C||cached===void 0){var H=document.createElement("div");H.style.width="100%",H.style.height="200px";var U=document.createElement("div"),W=U.style;W.position="absolute",W.top="0",W.left="0",W.pointerEvents="none",W.visibility="hidden",W.width="200px",W.height="150px",W.overflow="hidden",U.appendChild(H),document.body.appendChild(U);var G=H.offsetWidth;U.style.overflow="scroll";var X=H.offsetWidth;G===X&&(X=U.clientWidth),document.body.removeChild(U),cached=G-X}return cached}function ensureSize(C){var H=C.match(/^(.*)px$/),U=Number(H==null?void 0:H[1]);return Number.isNaN(U)?getScrollBarSize():U}function getTargetScrollBarSize(C){if(typeof document>"u"||!C||!(C instanceof Element))return{width:0,height:0};var H=getComputedStyle(C,"::-webkit-scrollbar"),U=H.width,W=H.height;return{width:ensureSize(U),height:ensureSize(W)}}function setStyle$1(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=H.element,W=U===void 0?document.body:U,G={},X=Object.keys(C);return X.forEach(function(Z){G[Z]=W.style[Z]}),X.forEach(function(Z){W.style[Z]=C[Z]}),G}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cacheStyle$1={};const switchScrollingEffect=function(C){if(!(!isBodyOverflowing()&&!C)){var H="ant-scrolling-effect",U=new RegExp("".concat(H),"g"),W=document.body.className;if(C){if(!U.test(W))return;setStyle$1(cacheStyle$1),cacheStyle$1={},document.body.className=W.replace(U,"").trim();return}var G=getScrollBarSize();if(G&&(cacheStyle$1=setStyle$1({position:"relative",width:"calc(100% - ".concat(G,"px)")}),!U.test(W))){var X="".concat(W," ").concat(H);document.body.className=X.trim()}}};var locks=[],scrollingEffectClassName="ant-scrolling-effect",scrollingEffectClassNameReg=new RegExp("".concat(scrollingEffectClassName),"g"),uuid$1=0,cacheStyle=new Map,ScrollLocker=_createClass(function C(H){var U=this;_classCallCheck(this,C),_defineProperty$M(this,"getContainer",function(){var W;return(W=U.options)===null||W===void 0?void 0:W.container}),_defineProperty$M(this,"reLock",function(W){var G=locks.find(function(X){var Z=X.target;return Z===U.lockTarget});G&&U.unLock(),U.options=W,G&&(G.options=W,U.lock())}),_defineProperty$M(this,"lock",function(){var W;if(!locks.some(function(ee){var ie=ee.target;return ie===U.lockTarget})){if(locks.some(function(ee){var ie,te=ee.options;return(te==null?void 0:te.container)===((ie=U.options)===null||ie===void 0?void 0:ie.container)})){locks=[].concat(_toConsumableArray$1(locks),[{target:U.lockTarget,options:U.options}]);return}var G=0,X=((W=U.options)===null||W===void 0?void 0:W.container)||document.body;(X===document.body&&window.innerWidth-document.documentElement.clientWidth>0||X.scrollHeight>X.clientHeight)&&(G=getScrollBarSize());var Z=X.className;if(locks.filter(function(ee){var ie,te=ee.options;return(te==null?void 0:te.container)===((ie=U.options)===null||ie===void 0?void 0:ie.container)}).length===0&&cacheStyle.set(X,setStyle$1({width:G!==0?"calc(100% - ".concat(G,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:X})),!scrollingEffectClassNameReg.test(Z)){var Q="".concat(Z," ").concat(scrollingEffectClassName);X.className=Q.trim()}locks=[].concat(_toConsumableArray$1(locks),[{target:U.lockTarget,options:U.options}])}}),_defineProperty$M(this,"unLock",function(){var W,G=locks.find(function(Q){var ee=Q.target;return ee===U.lockTarget});if(locks=locks.filter(function(Q){var ee=Q.target;return ee!==U.lockTarget}),!(!G||locks.some(function(Q){var ee,ie=Q.options;return(ie==null?void 0:ie.container)===((ee=G.options)===null||ee===void 0?void 0:ee.container)}))){var X=((W=U.options)===null||W===void 0?void 0:W.container)||document.body,Z=X.className;!scrollingEffectClassNameReg.test(Z)||(setStyle$1(cacheStyle.get(X),{element:X}),cacheStyle.delete(X),X.className=X.className.replace(scrollingEffectClassNameReg,"").trim())}}),this.lockTarget=uuid$1++,this.options=H}),openCount=0,supportDom=canUseDom(),cacheOverflow={},getParent=function(H){if(!supportDom)return null;if(H){if(typeof H=="string")return document.querySelectorAll(H)[0];if(typeof H=="function")return H();if(_typeof$3(H)==="object"&&H instanceof window.HTMLElement)return H}return document.body};const Portal=defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:PropTypes$1.any,visible:{type:Boolean,default:void 0}},setup:function(H,U){var W=U.slots,G=ref(),X=ref(),Z=ref(),Q=new ScrollLocker({container:getParent(H.getContainer)}),ee=function(){var le,ce;(le=G.value)===null||le===void 0||(ce=le.parentNode)===null||ce===void 0||ce.removeChild(G.value)},ie=function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(le||G.value&&!G.value.parentNode){var ce=getParent(H.getContainer);return ce?(ce.appendChild(G.value),!0):!1}return!0},te=function(){return supportDom?(G.value||(G.value=document.createElement("div"),ie(!0)),ne(),G.value):null},ne=function(){var le=H.wrapperClassName;G.value&&le&&le!==G.value.className&&(G.value.className=le)};onUpdated(function(){ne(),ie()});var ae=function(){openCount===1&&!Object.keys(cacheOverflow).length?(switchScrollingEffect(),cacheOverflow=setStyle$1({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):openCount||(setStyle$1(cacheOverflow),cacheOverflow={},switchScrollingEffect(!0))},oe=getCurrentInstance();return onMounted(function(){var se=!1;watch([function(){return H.visible},function(){return H.getContainer}],function(le,ce){var ue=_slicedToArray$2(le,2),de=ue[0],ve=ue[1],ge=_slicedToArray$2(ce,2),he=ge[0],me=ge[1];if(supportDom&&getParent(H.getContainer)===document.body&&(de&&!he?openCount+=1:se&&(openCount-=1)),se){var _e=typeof ve=="function"&&typeof me=="function";(_e?ve.toString()!==me.toString():ve!==me)&&ee(),de&&de!==he&&supportDom&&getParent(ve)!==Q.getContainer()&&Q.reLock({container:getParent(ve)})}se=!0},{immediate:!0,flush:"post"}),nextTick$1(function(){ie()||(Z.value=wrapperRaf(function(){oe.update()}))})}),onBeforeUnmount(function(){var se=H.visible,le=H.getContainer;supportDom&&getParent(le)===document.body&&(openCount=se&&openCount?openCount-1:openCount),ee(),wrapperRaf.cancel(Z.value)}),function(){var se=H.forceRender,le=H.visible,ce=null,ue={getOpenCount:function(){return openCount},getContainer:te,switchScrollingEffect:ae,scrollLocker:Q};return(se||le||X.value)&&(ce=createVNode(Portal$1,{getContainer:te,ref:X},{default:function(){var ve;return(ve=W.default)===null||ve===void 0?void 0:ve.call(W,ue)}})),ce}}});var inputProps=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:PropTypes$1.oneOfType([PropTypes$1.string,PropTypes$1.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:PropTypes$1.any,addonAfter:PropTypes$1.any,prefix:PropTypes$1.any,suffix:PropTypes$1.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const inputProps$1=inputProps;var textAreaProps=function(){return _objectSpread2$1(_objectSpread2$1({},omit$2(inputProps(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function getInputClassName(C,H,U,W,G){var X;return classNames(C,(X={},_defineProperty$M(X,"".concat(C,"-sm"),U==="small"),_defineProperty$M(X,"".concat(C,"-lg"),U==="large"),_defineProperty$M(X,"".concat(C,"-disabled"),W),_defineProperty$M(X,"".concat(C,"-rtl"),G==="rtl"),_defineProperty$M(X,"".concat(C,"-borderless"),!H),X))}var isValid$3=function(H){return H!=null&&(Array.isArray(H)?filterEmpty(H).length:!0)};function hasPrefixSuffix(C){return isValid$3(C.prefix)||isValid$3(C.suffix)||isValid$3(C.allowClear)}function hasAddon(C){return isValid$3(C.addonBefore)||isValid$3(C.addonAfter)}var ClearableInputType=["text","input"];const ClearableLabeledInput=defineComponent({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:PropTypes$1.oneOf(tuple("text","input")),value:PropTypes$1.any,defaultValue:PropTypes$1.any,allowClear:{type:Boolean,default:void 0},element:PropTypes$1.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:PropTypes$1.any,prefix:PropTypes$1.any,addonBefore:PropTypes$1.any,addonAfter:PropTypes$1.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(H,U){var W=U.slots,G=U.attrs,X=ref(),Z=function(oe){var se;if((se=X.value)!==null&&se!==void 0&&se.contains(oe.target)){var le=H.triggerFocus;le==null||le()}},Q=function(oe){var se,le=H.allowClear,ce=H.value,ue=H.disabled,de=H.readonly,ve=H.handleReset,ge=H.suffix,he=ge===void 0?W.suffix:ge;if(!le)return null;var me=!ue&&!de&&ce,_e="".concat(oe,"-clear-icon");return createVNode(CloseCircleFilled$1,{onClick:ve,onMousedown:function(pe){return pe.preventDefault()},class:classNames((se={},_defineProperty$M(se,"".concat(_e,"-hidden"),!me),_defineProperty$M(se,"".concat(_e,"-has-suffix"),!!he),se),_e),role:"button"},null)},ee=function(oe){var se,le=H.suffix,ce=le===void 0?(se=W.suffix)===null||se===void 0?void 0:se.call(W):le,ue=H.allowClear;return ce||ue?createVNode("span",{class:"".concat(oe,"-suffix")},[Q(oe),ce]):null},ie=function(oe,se){var le,ce,ue,de=H.focused,ve=H.value,ge=H.prefix,he=ge===void 0?(le=W.prefix)===null||le===void 0?void 0:le.call(W):ge,me=H.size,_e=H.suffix,be=_e===void 0?(ce=W.suffix)===null||ce===void 0?void 0:ce.call(W):_e,pe=H.disabled,fe=H.allowClear,ye=H.direction,$e=H.readonly,we=H.bordered,Se=H.hidden,Te=H.addonAfter,xe=Te===void 0?W.addonAfter:Te,ke=H.addonBefore,Ie=ke===void 0?W.addonBefore:ke,Ae=ee(oe);if(!hasPrefixSuffix({prefix:he,suffix:be,allowClear:fe}))return cloneElement(se,{value:ve});var Me=he?createVNode("span",{class:"".concat(oe,"-prefix")},[he]):null,Fe=classNames("".concat(oe,"-affix-wrapper"),(ue={},_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-focused"),de),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-disabled"),pe),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-sm"),me==="small"),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-lg"),me==="large"),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-input-with-clear-btn"),be&&fe&&ve),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-rtl"),ye==="rtl"),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-readonly"),$e),_defineProperty$M(ue,"".concat(oe,"-affix-wrapper-borderless"),!we),_defineProperty$M(ue,"".concat(G.class),!hasAddon({addonAfter:xe,addonBefore:Ie})&&G.class),ue));return createVNode("span",{ref:X,class:Fe,style:G.style,onMouseup:Z,hidden:Se},[Me,cloneElement(se,{style:null,value:ve,class:getInputClassName(oe,we,me,pe)}),Ae])},te=function(oe,se){var le,ce,ue,de=H.addonBefore,ve=de===void 0?(le=W.addonBefore)===null||le===void 0?void 0:le.call(W):de,ge=H.addonAfter,he=ge===void 0?(ce=W.addonAfter)===null||ce===void 0?void 0:ce.call(W):ge,me=H.size,_e=H.direction,be=H.hidden;if(!hasAddon({addonBefore:ve,addonAfter:he}))return se;var pe="".concat(oe,"-group"),fe="".concat(pe,"-addon"),ye=ve?createVNode("span",{class:fe},[ve]):null,$e=he?createVNode("span",{class:fe},[he]):null,we=classNames("".concat(oe,"-wrapper"),pe,_defineProperty$M({},"".concat(pe,"-rtl"),_e==="rtl")),Se=classNames("".concat(oe,"-group-wrapper"),(ue={},_defineProperty$M(ue,"".concat(oe,"-group-wrapper-sm"),me==="small"),_defineProperty$M(ue,"".concat(oe,"-group-wrapper-lg"),me==="large"),_defineProperty$M(ue,"".concat(oe,"-group-wrapper-rtl"),_e==="rtl"),ue),G.class);return createVNode("span",{class:Se,style:G.style,hidden:be},[createVNode("span",{class:we},[ye,cloneElement(se,{style:null}),$e])])},ne=function(oe,se){var le,ce=H.value,ue=H.allowClear,de=H.direction,ve=H.bordered,ge=H.hidden,he=H.addonAfter,me=he===void 0?W.addonAfter:he,_e=H.addonBefore,be=_e===void 0?W.addonBefore:_e;if(!ue)return cloneElement(se,{value:ce});var pe=classNames("".concat(oe,"-affix-wrapper"),"".concat(oe,"-affix-wrapper-textarea-with-clear-btn"),(le={},_defineProperty$M(le,"".concat(oe,"-affix-wrapper-rtl"),de==="rtl"),_defineProperty$M(le,"".concat(oe,"-affix-wrapper-borderless"),!ve),_defineProperty$M(le,"".concat(G.class),!hasAddon({addonAfter:me,addonBefore:be})&&G.class),le));return createVNode("span",{class:pe,style:G.style,hidden:ge},[cloneElement(se,{style:null,value:ce}),Q(oe)])};return function(){var ae,oe=H.prefixCls,se=H.inputType,le=H.element,ce=le===void 0?(ae=W.element)===null||ae===void 0?void 0:ae.call(W):le;return se===ClearableInputType[0]?ne(oe,ce):te(oe,ie(oe,ce))}}});function fixControlledValue(C){return typeof C>"u"||C===null?"":String(C)}function resolveOnChange(C,H,U,W){if(!!U){var G=H;if(H.type==="click"){Object.defineProperty(G,"target",{writable:!0}),Object.defineProperty(G,"currentTarget",{writable:!0});var X=C.cloneNode(!0);G.target=X,G.currentTarget=X,X.value="",U(G);return}if(W!==void 0){Object.defineProperty(G,"target",{writable:!0}),Object.defineProperty(G,"currentTarget",{writable:!0}),G.target=C,G.currentTarget=C,C.value=W,U(G);return}U(G)}}function triggerFocus(C,H){if(!!C){C.focus(H);var U=H||{},W=U.cursor;if(W){var G=C.value.length;switch(W){case"start":C.setSelectionRange(0,0);break;case"end":C.setSelectionRange(G,G);break;default:C.setSelectionRange(0,G)}}}}const Input=defineComponent({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:inputProps$1(),setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose,Z=U.emit,Q=ref(),ee=ref(),ie,te=useInjectFormItemContext(),ne=useConfigInject("input",H),ae=ne.direction,oe=ne.prefixCls,se=ne.size,le=ne.autocomplete,ce=ref(H.value===void 0?H.defaultValue:H.value),ue=ref(!1);watch(function(){return H.value},function(){ce.value=H.value}),watch(function(){return H.disabled},function(){H.value!==void 0&&(ce.value=H.value),H.disabled&&(ue.value=!1)});var de=function(){ie=setTimeout(function(){var Ie;((Ie=Q.value)===null||Ie===void 0?void 0:Ie.getAttribute("type"))==="password"&&Q.value.hasAttribute("value")&&Q.value.removeAttribute("value")})},ve=function(Ie){triggerFocus(Q.value,Ie)},ge=function(){var Ie;(Ie=Q.value)===null||Ie===void 0||Ie.blur()},he=function(Ie,Ae,Me){var Fe;(Fe=Q.value)===null||Fe===void 0||Fe.setSelectionRange(Ie,Ae,Me)},me=function(){var Ie;(Ie=Q.value)===null||Ie===void 0||Ie.select()};X({focus:ve,blur:ge,input:Q,stateValue:ce,setSelectionRange:he,select:me});var _e=function(Ie){var Ae=H.onFocus;ue.value=!0,Ae==null||Ae(Ie),nextTick$1(function(){de()})},be=function(Ie){var Ae=H.onBlur;ue.value=!1,Ae==null||Ae(Ie),te.onFieldBlur(),nextTick$1(function(){de()})},pe=function(Ie){Z("update:value",Ie.target.value),Z("change",Ie),Z("input",Ie),te.onFieldChange()},fe=getCurrentInstance(),ye=function(Ie,Ae){ce.value!==Ie&&(H.value===void 0?ce.value=Ie:nextTick$1(function(){Q.value.value!==ce.value&&fe.update()}),nextTick$1(function(){Ae&&Ae()}))},$e=function(Ie){resolveOnChange(Q.value,Ie,pe),ye("",function(){ve()})},we=function(Ie){var Ae=Ie.target,Me=Ae.value,Fe=Ae.composing;if(!((Ie.isComposing||Fe)&&H.lazy||ce.value===Me)){var Be=Ie.target.value;resolveOnChange(Q.value,Ie,pe),ye(Be,function(){de()})}},Se=function(Ie){Ie.keyCode===13&&Z("pressEnter",Ie),Z("keydown",Ie)};onMounted(function(){de()}),onBeforeUnmount(function(){clearTimeout(ie)});var Te=function(){var Ie,Ae=H.addonBefore,Me=Ae===void 0?W.addonBefore:Ae,Fe=H.addonAfter,Be=Fe===void 0?W.addonAfter:Fe,Ne=H.disabled,Ve=H.bordered,Le=Ve===void 0?!0:Ve,De=H.valueModifiers,Je=De===void 0?{}:De,ze=H.htmlSize,Ge=omit$2(H,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),qe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},Ge),G),{},{autocomplete:le.value,onChange:we,onInput:we,onFocus:_e,onBlur:be,onKeydown:Se,class:classNames(getInputClassName(oe.value,Le,se.value,Ne,ae.value),_defineProperty$M({},G.class,G.class&&!Me&&!Be)),ref:Q,key:"ant-input",size:ze,id:(Ie=Ge.id)!==null&&Ie!==void 0?Ie:te.id.value});Je.lazy&&delete qe.onInput,qe.autofocus||delete qe.autofocus;var Ke=createVNode("input",omit$2(qe,["size"]),null);return withDirectives(Ke,[[antInputDirective]])},xe=function(){var Ie,Ae=ce.value,Me=H.maxlength,Fe=H.suffix,Be=Fe===void 0?(Ie=W.suffix)===null||Ie===void 0?void 0:Ie.call(W):Fe,Ne=H.showCount,Ve=Number(Me)>0;if(Be||Ne){var Le=_toConsumableArray$1(fixControlledValue(Ae)).length,De=null;return _typeof$3(Ne)==="object"?De=Ne.formatter({count:Le,maxlength:Me}):De="".concat(Le).concat(Ve?" / ".concat(Me):""),createVNode(Fragment,null,[!!Ne&&createVNode("span",{class:classNames("".concat(oe.value,"-show-count-suffix"),_defineProperty$M({},"".concat(oe.value,"-show-count-has-suffix"),!!Be))},[De]),Be])}return null};return function(){var ke=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},G),H),{},{prefixCls:oe.value,inputType:"input",value:fixControlledValue(ce.value),handleReset:$e,focused:ue.value&&!H.disabled});return createVNode(ClearableLabeledInput,_objectSpread2$1(_objectSpread2$1({},omit$2(ke,["element","valueModifiers","suffix","showCount"])),{},{ref:ee}),_objectSpread2$1(_objectSpread2$1({},W),{},{element:Te,suffix:xe}))}}}),__unplugin_components_4$1=defineComponent({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(H,U){var W=U.slots,G=useConfigInject("input-group",H),X=G.prefixCls,Z=G.direction,Q=computed(function(){var ee,ie=X.value;return ee={},_defineProperty$M(ee,"".concat(ie),!0),_defineProperty$M(ee,"".concat(ie,"-lg"),H.size==="large"),_defineProperty$M(ee,"".concat(ie,"-sm"),H.size==="small"),_defineProperty$M(ee,"".concat(ie,"-compact"),H.compact),_defineProperty$M(ee,"".concat(ie,"-rtl"),Z.value==="rtl"),ee});return function(){var ee;return createVNode("span",{class:Q.value,onMouseenter:H.onMouseenter,onMouseleave:H.onMouseleave,onFocus:H.onFocus,onBlur:H.onBlur},[(ee=W.default)===null||ee===void 0?void 0:ee.call(W)])}}});var applePhone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/\bAndroid(?:.+)SD4930UR\b/i,amazonTablet=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackberry=/BlackBerry/i,otherBlackberry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i;function match(C,H){return C.test(H)}function isMobile(C){var H=C||(typeof navigator<"u"?navigator.userAgent:""),U=H.split("[FBAN");if(typeof U[1]<"u"){var W=U,G=_slicedToArray$2(W,1);H=G[0]}if(U=H.split("Twitter"),typeof U[1]<"u"){var X=U,Z=_slicedToArray$2(X,1);H=Z[0]}var Q={apple:{phone:match(applePhone,H)&&!match(windowsPhone,H),ipod:match(appleIpod,H),tablet:!match(applePhone,H)&&match(appleTablet,H)&&!match(windowsPhone,H),device:(match(applePhone,H)||match(appleIpod,H)||match(appleTablet,H))&&!match(windowsPhone,H)},amazon:{phone:match(amazonPhone,H),tablet:!match(amazonPhone,H)&&match(amazonTablet,H),device:match(amazonPhone,H)||match(amazonTablet,H)},android:{phone:!match(windowsPhone,H)&&match(amazonPhone,H)||!match(windowsPhone,H)&&match(androidPhone,H),tablet:!match(windowsPhone,H)&&!match(amazonPhone,H)&&!match(androidPhone,H)&&(match(amazonTablet,H)||match(androidTablet,H)),device:!match(windowsPhone,H)&&(match(amazonPhone,H)||match(amazonTablet,H)||match(androidPhone,H)||match(androidTablet,H))||match(/\bokhttp\b/i,H)},windows:{phone:match(windowsPhone,H),tablet:match(windowsTablet,H),device:match(windowsPhone,H)||match(windowsTablet,H)},other:{blackberry:match(otherBlackberry,H),blackberry10:match(otherBlackberry10,H),opera:match(otherOpera,H),firefox:match(otherFirefox,H),chrome:match(otherChrome,H),device:match(otherBlackberry,H)||match(otherBlackberry10,H)||match(otherOpera,H)||match(otherFirefox,H)||match(otherChrome,H)},any:null,phone:null,tablet:null};return Q.any=Q.apple.device||Q.android.device||Q.windows.device||Q.other.device,Q.phone=Q.apple.phone||Q.android.phone||Q.windows.phone,Q.tablet=Q.apple.tablet||Q.android.tablet||Q.windows.tablet,Q}var defaultResult=_objectSpread2$1(_objectSpread2$1({},isMobile()),{},{isMobile});const isMobile$1=defaultResult;var _excluded$e=["disabled","loading","addonAfter","suffix"];const Search=defineComponent({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:_objectSpread2$1(_objectSpread2$1({},inputProps$1()),{},{inputPrefixCls:String,enterButton:PropTypes$1.any,onSearch:{type:Function}}),setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose,Z=U.emit,Q=ref(),ee=function(){var ge;(ge=Q.value)===null||ge===void 0||ge.focus()},ie=function(){var ge;(ge=Q.value)===null||ge===void 0||ge.blur()};X({focus:ee,blur:ie});var te=function(ge){Z("update:value",ge.target.value),ge&&ge.target&&ge.type==="click"&&Z("search",ge.target.value,ge),Z("change",ge)},ne=function(ge){var he;document.activeElement===((he=Q.value)===null||he===void 0?void 0:he.input)&&ge.preventDefault()},ae=function(ge){var he;Z("search",(he=Q.value)===null||he===void 0?void 0:he.stateValue,ge),isMobile$1.tablet||Q.value.focus()},oe=useConfigInject("input-search",H),se=oe.prefixCls,le=oe.getPrefixCls,ce=oe.direction,ue=oe.size,de=computed(function(){return le("input",H.inputPrefixCls)});return function(){var ve,ge,he,me,_e,be=H.disabled,pe=H.loading,fe=H.addonAfter,ye=fe===void 0?(ve=W.addonAfter)===null||ve===void 0?void 0:ve.call(W):fe,$e=H.suffix,we=$e===void 0?(ge=W.suffix)===null||ge===void 0?void 0:ge.call(W):$e,Se=_objectWithoutProperties$4(H,_excluded$e),Te=H.enterButton,xe=Te===void 0?(he=(me=W.enterButton)===null||me===void 0?void 0:me.call(W))!==null&&he!==void 0?he:!1:Te;xe=xe||xe==="";var ke=typeof xe=="boolean"?createVNode(SearchOutlined$1,null,null):null,Ie="".concat(se.value,"-button"),Ae=Array.isArray(xe)?xe[0]:xe,Me,Fe=Ae.type&&isPlainObject$3(Ae.type)&&Ae.type.__ANT_BUTTON;if(Fe||Ae.tagName==="button")Me=cloneElement(Ae,_objectSpread2$1({onMousedown:ne,onClick:ae,key:"enterButton"},Fe?{class:Ie,size:ue.value}:{}),!1);else{var Be=ke&&!xe;Me=createVNode(Button$1,{class:Ie,type:xe?"primary":void 0,size:ue.value,disabled:be,key:"enterButton",onMousedown:ne,onClick:ae,loading:pe,icon:Be?ke:null},{default:function(){return[Be?null:ke||xe]}})}ye&&(Me=[Me,ye]);var Ne=classNames(se.value,(_e={},_defineProperty$M(_e,"".concat(se.value,"-rtl"),ce.value==="rtl"),_defineProperty$M(_e,"".concat(se.value,"-").concat(ue.value),!!ue.value),_defineProperty$M(_e,"".concat(se.value,"-with-button"),!!xe),_e),G.class);return createVNode(Input,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({ref:Q},omit$2(Se,["onUpdate:value","onSearch","enterButton"])),G),{},{onPressEnter:ae,size:ue.value,prefixCls:de.value,addonAfter:Me,suffix:we,onChange:te,class:Ne,disabled:be}),W)}}});var HIDDEN_TEXTAREA_STYLE=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important
|
||
`,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=C.getAttribute("id")||C.getAttribute("data-reactid")||C.getAttribute("name");if(H&&computedStyleCache[U])return computedStyleCache[U];var W=window.getComputedStyle(C),G=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),X=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),Z=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),Q=SIZING_STYLE.map(function(ie){return"".concat(ie,":").concat(W.getPropertyValue(ie))}).join(";"),ee={sizingStyle:Q,paddingSize:X,borderSize:Z,boxSizing:G};return H&&U&&(computedStyleCache[U]=ee),ee}function calculateNodeHeight(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),C.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",C.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var G=calculateNodeStyling(C,H),X=G.paddingSize,Z=G.borderSize,Q=G.boxSizing,ee=G.sizingStyle;hiddenTextarea.setAttribute("style","".concat(ee,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=C.value||C.placeholder||"";var ie=Number.MIN_SAFE_INTEGER,te=Number.MAX_SAFE_INTEGER,ne=hiddenTextarea.scrollHeight,ae;if(Q==="border-box"?ne+=Z:Q==="content-box"&&(ne-=X),U!==null||W!==null){hiddenTextarea.value=" ";var oe=hiddenTextarea.scrollHeight-X;U!==null&&(ie=oe*U,Q==="border-box"&&(ie=ie+X+Z),ne=Math.max(ie,ne)),W!==null&&(te=oe*W,Q==="border-box"&&(te=te+X+Z),ae=ne>te?"":"hidden",ne=Math.min(te,ne))}return{height:"".concat(ne,"px"),minHeight:"".concat(ie,"px"),maxHeight:"".concat(te,"px"),overflowY:ae,resize:"none"}}var RESIZE_STATUS_NONE=0,RESIZE_STATUS_RESIZING=1,RESIZE_STATUS_RESIZED=2,ResizableTextArea=defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:textAreaProps(),setup:function(H,U){var W=U.attrs,G=U.emit,X=U.expose,Z,Q,ee=ref(),ie=ref({}),te=ref(RESIZE_STATUS_NONE);onBeforeUnmount(function(){wrapperRaf.cancel(Z),wrapperRaf.cancel(Q)});var ne=function(){try{if(document.activeElement===ee.value){var de=ee.value.selectionStart,ve=ee.value.selectionEnd;ee.value.setSelectionRange(de,ve)}}catch{}},ae=function(){var de=H.autoSize||H.autosize;if(!(!de||!ee.value)){var ve=de.minRows,ge=de.maxRows;ie.value=calculateNodeHeight(ee.value,!1,ve,ge),te.value=RESIZE_STATUS_RESIZING,wrapperRaf.cancel(Q),Q=wrapperRaf(function(){te.value=RESIZE_STATUS_RESIZED,Q=wrapperRaf(function(){te.value=RESIZE_STATUS_NONE,ne()})})}},oe=function(){wrapperRaf.cancel(Z),Z=wrapperRaf(ae)},se=function(de){if(te.value===RESIZE_STATUS_NONE){G("resize",de);var ve=H.autoSize||H.autosize;ve&&oe()}};warning$2(H.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var le=function(){var de=H.prefixCls,ve=H.autoSize,ge=H.autosize,he=H.disabled,me=omit$2(H,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),_e=classNames(de,W.class,_defineProperty$M({},"".concat(de,"-disabled"),he)),be=[W.style,ie.value,te.value===RESIZE_STATUS_RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null],pe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},me),W),{},{style:be,class:_e});return pe.autofocus||delete pe.autofocus,pe.rows===0&&delete pe.rows,createVNode(ResizeObserver$1,{onResize:se,disabled:!(ve||ge)},{default:function(){return[withDirectives(createVNode("textarea",_objectSpread2$1(_objectSpread2$1({},pe),{},{ref:ee}),null),[[antInputDirective]])]}})};watch(function(){return H.value},function(){nextTick$1(function(){ae()})}),onMounted(function(){nextTick$1(function(){ae()})});var ce=getCurrentInstance();return X({resizeTextarea:ae,textArea:ee,instance:ce}),function(){return le()}}});const ResizableTextArea$1=ResizableTextArea;function fixEmojiLength(C,H){return _toConsumableArray$1(C||"").slice(0,H).join("")}function setTriggerValue(C,H,U,W){var G=U;return C?G=fixEmojiLength(U,W):_toConsumableArray$1(H||"").length<U.length&&_toConsumableArray$1(U||"").length>W&&(G=H),G}const __unplugin_components_4=defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:textAreaProps(),setup:function(H,U){var W=U.attrs,G=U.expose,X=U.emit,Z=useInjectFormItemContext(),Q=ref(H.value===void 0?H.defaultValue:H.value),ee=ref(),ie=ref(""),te=useConfigInject("input",H),ne=te.prefixCls,ae=te.size,oe=te.direction,se=computed(function(){return H.showCount===""||H.showCount||!1}),le=computed(function(){return Number(H.maxlength)>0}),ce=ref(!1),ue=ref(),de=ref(0),ve=function(xe){ce.value=!0,ue.value=ie.value,de.value=xe.currentTarget.selectionStart,X("compositionstart",xe)},ge=function(xe){ce.value=!1;var ke=xe.currentTarget.value;if(le.value){var Ie,Ae=de.value>=H.maxlength+1||de.value===((Ie=ue.value)===null||Ie===void 0?void 0:Ie.length);ke=setTriggerValue(Ae,ue.value,ke,H.maxlength)}ke!==ie.value&&(be(ke),resolveOnChange(xe.currentTarget,xe,ye,ke)),X("compositionend",xe)},he=getCurrentInstance();watch(function(){return H.value},function(){"value"in he.vnode.props;var Te;Q.value=(Te=H.value)!==null&&Te!==void 0?Te:""});var me=function(xe){var ke;triggerFocus((ke=ee.value)===null||ke===void 0?void 0:ke.textArea,xe)},_e=function(){var xe,ke;(xe=ee.value)===null||xe===void 0||(ke=xe.textArea)===null||ke===void 0||ke.blur()},be=function(xe,ke){Q.value!==xe&&(H.value===void 0?Q.value=xe:nextTick$1(function(){if(ee.value.textArea.value!==ie.value){var Ie,Ae,Me;(Ie=ee.value)===null||Ie===void 0||(Ae=(Me=Ie.instance).update)===null||Ae===void 0||Ae.call(Me)}}),nextTick$1(function(){ke&&ke()}))},pe=function(xe){xe.keyCode===13&&X("pressEnter",xe),X("keydown",xe)},fe=function(xe){var ke=H.onBlur;ke==null||ke(xe),Z.onFieldBlur()},ye=function(xe){X("update:value",xe.target.value),X("change",xe),X("input",xe),Z.onFieldChange()},$e=function(xe){resolveOnChange(ee.value.textArea,xe,ye),be("",function(){me()})},we=function(xe){var ke=xe.target.composing,Ie=xe.target.value;if(ce.value=!!(xe.isComposing||ke),!(ce.value&&H.lazy||Q.value===Ie)){if(le.value){var Ae=xe.target,Me=Ae.selectionStart>=H.maxlength+1||Ae.selectionStart===Ie.length||!Ae.selectionStart;Ie=setTriggerValue(Me,ie.value,Ie,H.maxlength)}resolveOnChange(xe.currentTarget,xe,ye,Ie),be(Ie)}},Se=function(){var xe,ke,Ie,Ae=W.style,Me=W.class,Fe=H.bordered,Be=Fe===void 0?!0:Fe,Ne=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},omit$2(H,["allowClear"])),W),{},{style:se.value?{}:Ae,class:(xe={},_defineProperty$M(xe,"".concat(ne.value,"-borderless"),!Be),_defineProperty$M(xe,"".concat(Me),Me&&!se.value),_defineProperty$M(xe,"".concat(ne.value,"-sm"),ae.value==="small"),_defineProperty$M(xe,"".concat(ne.value,"-lg"),ae.value==="large"),xe),showCount:null,prefixCls:ne.value,onInput:we,onChange:we,onBlur:fe,onKeydown:pe,onCompositionstart:ve,onCompositionend:ge});return(ke=H.valueModifiers)!==null&&ke!==void 0&&ke.lazy&&delete Ne.onInput,createVNode(ResizableTextArea$1,_objectSpread2$1(_objectSpread2$1({},Ne),{},{id:(Ie=Ne.id)!==null&&Ie!==void 0?Ie:Z.id.value,ref:ee,maxlength:H.maxlength}),null)};return G({focus:me,blur:_e,resizableTextArea:ee}),watchEffect(function(){var Te=fixControlledValue(Q.value);!ce.value&&le.value&&(H.value===null||H.value===void 0)&&(Te=fixEmojiLength(Te,H.maxlength)),ie.value=Te}),function(){var Te=H.maxlength,xe=H.bordered,ke=xe===void 0?!0:xe,Ie=H.hidden,Ae=W.style,Me=W.class,Fe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},H),W),{},{prefixCls:ne.value,inputType:"text",handleReset:$e,direction:oe.value,bordered:ke,style:se.value?void 0:Ae}),Be=createVNode(ClearableLabeledInput,_objectSpread2$1(_objectSpread2$1({},Fe),{},{value:ie.value}),{element:Se});if(se.value){var Ne=_toConsumableArray$1(ie.value).length,Ve="";_typeof$3(se.value)==="object"?Ve=se.value.formatter({count:Ne,maxlength:Te}):Ve="".concat(Ne).concat(le.value?" / ".concat(Te):""),Be=createVNode("div",{hidden:Ie,class:classNames("".concat(ne.value,"-textarea"),_defineProperty$M({},"".concat(ne.value,"-textarea-rtl"),oe.value==="rtl"),"".concat(ne.value,"-textarea-show-count"),Me),style:Ae,"data-count":_typeof$3(Ve)!=="object"?Ve:void 0},[Be])}return Be}}});var EyeOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const EyeOutlinedSvg=EyeOutlined$2;function _objectSpread$p(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$q(C,G,U[G])})}return C}function _defineProperty$q(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var EyeOutlined=function(H,U){var W=_objectSpread$p({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$p({},W,{icon:EyeOutlinedSvg}),null)};EyeOutlined.displayName="EyeOutlined";EyeOutlined.inheritAttrs=!1;const EyeOutlined$1=EyeOutlined;var EyeInvisibleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const EyeInvisibleOutlinedSvg=EyeInvisibleOutlined$2;function _objectSpread$o(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$p(C,G,U[G])})}return C}function _defineProperty$p(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var EyeInvisibleOutlined=function(H,U){var W=_objectSpread$o({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$o({},W,{icon:EyeInvisibleOutlinedSvg}),null)};EyeInvisibleOutlined.displayName="EyeInvisibleOutlined";EyeInvisibleOutlined.inheritAttrs=!1;const EyeInvisibleOutlined$1=EyeInvisibleOutlined;var _excluded$d=["size","visibilityToggle"],ActionMap={click:"onClick",hover:"onMouseover"},defaultIconRender=function(H){return createVNode(H?EyeOutlined$1:EyeInvisibleOutlined$1,null,null)};const Password=defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:_objectSpread2$1(_objectSpread2$1({},inputProps$1()),{},{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},iconRender:Function}),setup:function(H,U){var W=U.slots,G=U.attrs,X=U.expose,Z=ref(!1),Q=function(){var de=H.disabled;de||(Z.value=!Z.value)},ee=ref(),ie=function(){var de;(de=ee.value)===null||de===void 0||de.focus()},te=function(){var de;(de=ee.value)===null||de===void 0||de.blur()};X({focus:ie,blur:te});var ne=function(de){var ve,ge=H.action,he=H.iconRender,me=he===void 0?W.iconRender||defaultIconRender:he,_e=ActionMap[ge]||"",be=me(Z.value),pe=(ve={},_defineProperty$M(ve,_e,Q),_defineProperty$M(ve,"class","".concat(de,"-icon")),_defineProperty$M(ve,"key","passwordIcon"),_defineProperty$M(ve,"onMousedown",function(ye){ye.preventDefault()}),_defineProperty$M(ve,"onMouseup",function(ye){ye.preventDefault()}),ve);return cloneElement(isValidElement(be)?be:createVNode("span",null,[be]),pe)},ae=useConfigInject("input-password",H),oe=ae.prefixCls,se=ae.getPrefixCls,le=computed(function(){return se("input",H.inputPrefixCls)}),ce=function(){var de=H.size,ve=H.visibilityToggle,ge=_objectWithoutProperties$4(H,_excluded$d),he=ve&&ne(oe.value),me=classNames(oe.value,G.class,_defineProperty$M({},"".concat(oe.value,"-").concat(de),!!de)),_e=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},omit$2(ge,["suffix","iconRender","action"])),G),{},{type:Z.value?"text":"password",class:me,prefixCls:le.value,suffix:he});return de&&(_e.size=de),createVNode(Input,_objectSpread2$1({ref:ee},_e),W)};return function(){return ce()}}});Input.Group=__unplugin_components_4$1;Input.Search=Search;Input.TextArea=__unplugin_components_4;Input.Password=Password;Input.install=function(C){return C.component(Input.name,Input),C.component(Input.Group.name,Input.Group),C.component(Input.Search.name,Input.Search),C.component(Input.TextArea.name,Input.TextArea),C.component(Input.Password.name,Input.Password),C};function getOffset(C){var H=C.getBoundingClientRect(),U=document.documentElement;return{left:H.left+(window.pageXOffset||U.scrollLeft)-(U.clientLeft||document.body.clientLeft||0),top:H.top+(window.pageYOffset||U.scrollTop)-(U.clientTop||document.body.clientTop||0)}}function dialogPropTypes(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:PropTypes$1.shape({x:Number,y:Number}).loose,title:PropTypes$1.any,footer:PropTypes$1.any,transitionName:String,maskTransitionName:String,animation:PropTypes$1.any,maskAnimation:PropTypes$1.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:PropTypes$1.any,maskProps:PropTypes$1.any,wrapProps:PropTypes$1.any,getContainer:PropTypes$1.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:PropTypes$1.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function getMotionName(C,H,U){var W=H;return!W&&U&&(W="".concat(C,"-").concat(U)),W}var uuid=-1;function getUUID(){return uuid+=1,uuid}function getScroll(C,H){var U=C["page".concat(H?"Y":"X","Offset")],W="scroll".concat(H?"Top":"Left");if(typeof U!="number"){var G=C.document;U=G.documentElement[W],typeof U!="number"&&(U=G.body[W])}return U}function offset$2(C){var H=C.getBoundingClientRect(),U={left:H.left,top:H.top},W=C.ownerDocument,G=W.defaultView||W.parentWindow;return U.left+=getScroll(G),U.top+=getScroll(G,!0),U}var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"};const Content$1=defineComponent({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:_objectSpread2$1(_objectSpread2$1({},dialogPropTypes()),{},{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup:function(H,U){var W=U.expose,G=U.slots,X=U.attrs,Z=ref(),Q=ref(),ee=ref();W({focus:function(){var se;(se=Z.value)===null||se===void 0||se.focus()},changeActive:function(se){var le=document,ce=le.activeElement;se&&ce===Q.value?Z.value.focus():!se&&ce===Z.value&&Q.value.focus()}});var ie=ref(),te=computed(function(){var oe=H.width,se=H.height,le={};return oe!==void 0&&(le.width=typeof oe=="number"?"".concat(oe,"px"):oe),se!==void 0&&(le.height=typeof se=="number"?"".concat(se,"px"):se),ie.value&&(le.transformOrigin=ie.value),le}),ne=function(){nextTick$1(function(){if(ee.value){var se=offset$2(ee.value);ie.value=H.mousePosition?"".concat(H.mousePosition.x-se.left,"px ").concat(H.mousePosition.y-se.top,"px"):""}})},ae=function(se){H.onVisibleChanged(se)};return function(){var oe,se,le,ce,ue=H.prefixCls,de=H.footer,ve=de===void 0?(oe=G.footer)===null||oe===void 0?void 0:oe.call(G):de,ge=H.title,he=ge===void 0?(se=G.title)===null||se===void 0?void 0:se.call(G):ge,me=H.ariaId,_e=H.closable,be=H.closeIcon,pe=be===void 0?(le=G.closeIcon)===null||le===void 0?void 0:le.call(G):be,fe=H.onClose,ye=H.bodyStyle,$e=H.bodyProps,we=H.onMousedown,Se=H.onMouseup,Te=H.visible,xe=H.modalRender,ke=xe===void 0?G.modalRender:xe,Ie=H.destroyOnClose,Ae=H.motionName,Me;ve&&(Me=createVNode("div",{class:"".concat(ue,"-footer")},[ve]));var Fe;he&&(Fe=createVNode("div",{class:"".concat(ue,"-header")},[createVNode("div",{class:"".concat(ue,"-title"),id:me},[he])]));var Be;_e&&(Be=createVNode("button",{type:"button",onClick:fe,"aria-label":"Close",class:"".concat(ue,"-close")},[pe||createVNode("span",{class:"".concat(ue,"-close-x")},null)]));var Ne=createVNode("div",{class:"".concat(ue,"-content")},[Be,Fe,createVNode("div",_objectSpread2$1({class:"".concat(ue,"-body"),style:ye},$e),[(ce=G.default)===null||ce===void 0?void 0:ce.call(G)]),Me]),Ve=getTransitionProps(Ae);return createVNode(Transition$1,_objectSpread2$1(_objectSpread2$1({},Ve),{},{onBeforeEnter:ne,onAfterEnter:function(){return ae(!0)},onAfterLeave:function(){return ae(!1)}}),{default:function(){return[Te||!Ie?withDirectives(createVNode("div",_objectSpread2$1(_objectSpread2$1({},X),{},{ref:ee,key:"dialog-element",role:"document",style:[te.value,X.style],class:[ue,X.class],onMousedown:we,onMouseup:Se}),[createVNode("div",{tabindex:0,ref:Z,style:sentinelStyle,"aria-hidden":"true"},null),ke?ke({originVNode:Ne}):Ne,createVNode("div",{tabindex:0,ref:Q,style:sentinelStyle,"aria-hidden":"true"},null)]),[[vShow,Te]]):null]}})}}});function _objectDestructuringEmpty(C){if(C==null)throw new TypeError("Cannot destructure "+C)}const Mask=defineComponent({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:function(H,U){return _objectDestructuringEmpty(U),function(){var W=H.prefixCls,G=H.visible,X=H.maskProps,Z=H.motionName,Q=getTransitionProps(Z);return createVNode(Transition$1,Q,{default:function(){return[withDirectives(createVNode("div",_objectSpread2$1({class:"".concat(W,"-mask")},X),null),[[vShow,G]])]}})}}}),Dialog=defineComponent({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:initDefaultProps$1(_objectSpread2$1(_objectSpread2$1({},dialogPropTypes()),{},{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),setup:function(H,U){var W=U.attrs,G=U.slots,X=ref(),Z=ref(),Q=ref(),ee=ref(H.visible),ie=ref("vcDialogTitle".concat(getUUID())),te=function(ve){if(ve){if(!contains(Z.value,document.activeElement)){var ge;X.value=document.activeElement,(ge=Q.value)===null||ge===void 0||ge.focus()}}else{var he=ee.value;if(ee.value=!1,H.mask&&X.value&&H.focusTriggerAfterClose){try{X.value.focus({preventScroll:!0})}catch{}X.value=null}if(he){var me;(me=H.afterClose)===null||me===void 0||me.call(H)}}},ne=function(ve){var ge;(ge=H.onClose)===null||ge===void 0||ge.call(H,ve)},ae=ref(!1),oe=ref(),se=function(){clearTimeout(oe.value),ae.value=!0},le=function(){oe.value=setTimeout(function(){ae.value=!1})},ce=function(ve){if(!H.maskClosable)return null;ae.value?ae.value=!1:Z.value===ve.target&&ne(ve)},ue=function(ve){if(H.keyboard&&ve.keyCode===KeyCode$1.ESC){ve.stopPropagation(),ne(ve);return}H.visible&&ve.keyCode===KeyCode$1.TAB&&Q.value.changeActive(!ve.shiftKey)};return watch(function(){return H.visible},function(){H.visible&&(ee.value=!0)},{flush:"post"}),onBeforeUnmount(function(){var de;clearTimeout(oe.value),(de=H.scrollLocker)===null||de===void 0||de.unLock()}),watchEffect(function(){var de;if((de=H.scrollLocker)===null||de===void 0||de.unLock(),ee.value){var ve;(ve=H.scrollLocker)===null||ve===void 0||ve.lock()}}),function(){var de=H.prefixCls,ve=H.mask,ge=H.visible,he=H.maskTransitionName,me=H.maskAnimation,_e=H.zIndex,be=H.wrapClassName,pe=H.rootClassName,fe=H.wrapStyle,ye=H.closable,$e=H.maskProps,we=H.maskStyle,Se=H.transitionName,Te=H.animation,xe=H.wrapProps,ke=H.title,Ie=ke===void 0?G.title:ke,Ae=W.style,Me=W.class;return createVNode("div",_objectSpread2$1({class:["".concat(de,"-root"),pe]},pickAttrs(H,{data:!0})),[createVNode(Mask,{prefixCls:de,visible:ve&&ge,motionName:getMotionName(de,he,me),style:_objectSpread2$1({zIndex:_e},we),maskProps:$e},null),createVNode("div",_objectSpread2$1({tabIndex:-1,onKeydown:ue,class:classNames("".concat(de,"-wrap"),be),ref:Z,onClick:ce,role:"dialog","aria-labelledby":Ie?ie.value:null,style:_objectSpread2$1(_objectSpread2$1({zIndex:_e},fe),{},{display:ee.value?null:"none"})},xe),[createVNode(Content$1,_objectSpread2$1(_objectSpread2$1({},omit$2(H,["scrollLocker"])),{},{style:Ae,class:Me,onMousedown:se,onMouseup:le,ref:Q,closable:ye,ariaId:ie.value,prefixCls:de,visible:ge,onClose:ne,onVisibleChanged:te,motionName:getMotionName(de,Se,Te)}),G)])])}}});var IDialogPropTypes=dialogPropTypes(),DialogWrap=defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:initDefaultProps$1(IDialogPropTypes,{visible:!1}),setup:function(H,U){var W=U.attrs,G=U.slots,X=ref(H.visible);return useProvidePortal({},{inTriggerContext:!1}),watch(function(){return H.visible},function(){H.visible&&(X.value=!0)},{flush:"post"}),function(){var Z=H.visible,Q=H.getContainer,ee=H.forceRender,ie=H.destroyOnClose,te=ie===void 0?!1:ie,ne=H.afterClose,ae=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},H),W),{},{ref:"_component",key:"dialog"});return Q===!1?createVNode(Dialog,_objectSpread2$1(_objectSpread2$1({},ae),{},{getOpenCount:function(){return 2}}),G):!ee&&te&&!X.value?null:createVNode(Portal,{visible:Z,forceRender:ee,getContainer:Q},{default:function(se){return ae=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},ae),se),{},{afterClose:function(){ne==null||ne(),X.value=!1}}),createVNode(Dialog,ae,G)}})}}});const DialogWrap$1=DialogWrap;var basicProps=function(){return{prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String}};function generator(C){var H=C.suffixCls,U=C.tagName,W=C.name;return function(G){var X=defineComponent({compatConfig:{MODE:3},name:W,props:basicProps(),setup:function(Q,ee){var ie=ee.slots,te=useConfigInject(H,Q),ne=te.prefixCls;return function(){var ae=_objectSpread2$1(_objectSpread2$1({},Q),{},{prefixCls:ne.value,tagName:U});return createVNode(G,ae,ie)}}});return X}}var Basic=defineComponent({compatConfig:{MODE:3},props:basicProps(),setup:function(H,U){var W=U.slots;return function(){return createVNode(H.tagName,{class:H.prefixCls},W)}}}),BasicLayout=defineComponent({compatConfig:{MODE:3},props:basicProps(),setup:function(H,U){var W=U.slots,G=useConfigInject("",H),X=G.direction,Z=ref([]),Q={addSider:function(te){Z.value=[].concat(_toConsumableArray$1(Z.value),[te])},removeSider:function(te){Z.value=Z.value.filter(function(ne){return ne!==te})}};provide(SiderHookProviderKey,Q);var ee=computed(function(){var ie,te=H.prefixCls,ne=H.hasSider;return ie={},_defineProperty$M(ie,"".concat(te),!0),_defineProperty$M(ie,"".concat(te,"-has-sider"),typeof ne=="boolean"?ne:Z.value.length>0),_defineProperty$M(ie,"".concat(te,"-rtl"),X.value==="rtl"),ie});return function(){var ie=H.tagName;return createVNode(ie,{class:ee.value},W)}}}),Layout=generator({suffixCls:"layout",tagName:"section",name:"ALayout"})(BasicLayout),Header$1=generator({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(Basic),Footer$1=generator({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(Basic),Content=generator({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(Basic);const Layout$1=Layout;var BarsOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const BarsOutlinedSvg=BarsOutlined$2;function _objectSpread$n(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$o(C,G,U[G])})}return C}function _defineProperty$o(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var BarsOutlined=function(H,U){var W=_objectSpread$n({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$n({},W,{icon:BarsOutlinedSvg}),null)};BarsOutlined.displayName="BarsOutlined";BarsOutlined.inheritAttrs=!1;const BarsOutlined$1=BarsOutlined;var dimensionMaxMap={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},siderProps=function(){return{prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:PropTypes$1.any,width:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),collapsedWidth:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),breakpoint:PropTypes$1.oneOf(tuple("xs","sm","md","lg","xl","xxl","xxxl")),theme:PropTypes$1.oneOf(tuple("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}},generateId$2=function(){var C=0;return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return C+=1,"".concat(H).concat(C)}}();const Sider=defineComponent({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:initDefaultProps$1(siderProps(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup:function(H,U){var W=U.emit,G=U.attrs,X=U.slots,Z=useConfigInject("layout-sider",H),Q=Z.prefixCls,ee=inject(SiderHookProviderKey,void 0),ie=ref(!!(H.collapsed!==void 0?H.collapsed:H.defaultCollapsed)),te=ref(!1);watch(function(){return H.collapsed},function(){ie.value=!!H.collapsed}),provide(SiderCollapsedKey,ie);var ne=function(de,ve){H.collapsed===void 0&&(ie.value=de),W("update:collapsed",de),W("collapse",de,ve)},ae=ref(function(ue){te.value=ue.matches,W("breakpoint",ue.matches),ie.value!==ue.matches&&ne(ue.matches,"responsive")}),oe;function se(ue){return ae.value(ue)}var le=generateId$2("ant-sider-");ee&&ee.addSider(le),onMounted(function(){watch(function(){return H.breakpoint},function(){try{var ue;(ue=oe)===null||ue===void 0||ue.removeEventListener("change",se)}catch{var de;(de=oe)===null||de===void 0||de.removeListener(se)}if(typeof window<"u"){var ve=window,ge=ve.matchMedia;if(ge&&H.breakpoint&&H.breakpoint in dimensionMaxMap){oe=ge("(max-width: ".concat(dimensionMaxMap[H.breakpoint],")"));try{oe.addEventListener("change",se)}catch{oe.addListener(se)}se(oe)}}},{immediate:!0})}),onBeforeUnmount(function(){try{var ue;(ue=oe)===null||ue===void 0||ue.removeEventListener("change",se)}catch{var de;(de=oe)===null||de===void 0||de.removeListener(se)}ee&&ee.removeSider(le)});var ce=function(){ne(!ie.value,"clickTrigger")};return function(){var ue,de,ve,ge=Q.value,he=H.collapsedWidth,me=H.width,_e=H.reverseArrow,be=H.zeroWidthTriggerStyle,pe=H.trigger,fe=pe===void 0?(ue=X.trigger)===null||ue===void 0?void 0:ue.call(X):pe,ye=H.collapsible,$e=H.theme,we=ie.value?he:me,Se=isNumeric$1(we)?"".concat(we,"px"):String(we),Te=parseFloat(String(he||0))===0?createVNode("span",{onClick:ce,class:classNames("".concat(ge,"-zero-width-trigger"),"".concat(ge,"-zero-width-trigger-").concat(_e?"right":"left")),style:be},[fe||createVNode(BarsOutlined$1,null,null)]):null,xe={expanded:createVNode(_e?RightOutlined$1:LeftOutlined$1,null,null),collapsed:createVNode(_e?LeftOutlined$1:RightOutlined$1,null,null)},ke=ie.value?"collapsed":"expanded",Ie=xe[ke],Ae=fe!==null?Te||createVNode("div",{class:"".concat(ge,"-trigger"),onClick:ce,style:{width:Se}},[fe||Ie]):null,Me=[G.style,{flex:"0 0 ".concat(Se),maxWidth:Se,minWidth:Se,width:Se}],Fe=classNames(ge,"".concat(ge,"-").concat($e),(de={},_defineProperty$M(de,"".concat(ge,"-collapsed"),!!ie.value),_defineProperty$M(de,"".concat(ge,"-has-trigger"),ye&&fe!==null&&!Te),_defineProperty$M(de,"".concat(ge,"-below"),!!te.value),_defineProperty$M(de,"".concat(ge,"-zero-width"),parseFloat(Se)===0),de),G.class);return createVNode("aside",_objectSpread2$1(_objectSpread2$1({},G),{},{class:Fe,style:Me}),[createVNode("div",{class:"".concat(ge,"-children")},[(ve=X.default)===null||ve===void 0?void 0:ve.call(X)]),ye||te.value&&Te?Ae:null])}}});var LayoutHeader=Header$1,LayoutFooter=Footer$1,LayoutSider=Sider,LayoutContent=Content;const __unplugin_components_7=_extends$1(Layout$1,{Header:Header$1,Footer:Footer$1,Content,Sider,install:function(H){return H.component(Layout$1.name,Layout$1),H.component(Header$1.name,Header$1),H.component(Footer$1.name,Footer$1),H.component(Sider.name,Sider),H.component(Content.name,Content),H}});var _excluded$c=["class","style"],spinProps=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:PropTypes$1.any,delay:Number,indicator:PropTypes$1.any}},defaultIndicator=null;function shouldDelay(C,H){return!!C&&!!H&&!isNaN(Number(H))}function setDefaultIndicator(C){var H=C.indicator;defaultIndicator=typeof H=="function"?H:function(){return createVNode(H,null,null)}}const Spin=defineComponent({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:initDefaultProps$1(spinProps(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:inject("configProvider",defaultConfigProvider)}},data:function(){var H=this.spinning,U=this.delay,W=shouldDelay(H,U);return{sSpinning:H&&!W}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var H=this;nextTick$1(function(){H.debouncifyUpdateSpinning(),H.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(H){var U=H||this.$props,W=U.delay;W&&(this.cancelExistingSpin(),this.updateSpinning=debounce(this.originalUpdateSpinning,W))},updateSpinning:function(){var H=this.spinning,U=this.sSpinning;U!==H&&(this.sSpinning=H)},cancelExistingSpin:function(){var H=this.updateSpinning;H&&H.cancel&&H.cancel()},renderIndicator:function(H){var U="".concat(H,"-dot"),W=getComponent(this,"indicator");return W===null?null:(Array.isArray(W)&&(W=W.length===1?W[0]:W),isVNode$1(W)?cloneVNode(W,{class:U}):defaultIndicator&&isVNode$1(defaultIndicator())?cloneVNode(defaultIndicator(),{class:U}):createVNode("span",{class:"".concat(U," ").concat(H,"-dot-spin")},[createVNode("i",{class:"".concat(H,"-dot-item")},null),createVNode("i",{class:"".concat(H,"-dot-item")},null),createVNode("i",{class:"".concat(H,"-dot-item")},null),createVNode("i",{class:"".concat(H,"-dot-item")},null)]))}},render:function(){var H,U,W,G=this.$props,X=G.size,Z=G.prefixCls,Q=G.tip,ee=Q===void 0?(H=(U=this.$slots).tip)===null||H===void 0?void 0:H.call(U):Q,ie=G.wrapperClassName,te=this.$attrs,ne=te.class,ae=te.style,oe=_objectWithoutProperties$4(te,_excluded$c),se=this.configProvider,le=se.getPrefixCls,ce=se.direction,ue=le("spin",Z),de=this.sSpinning,ve=(W={},_defineProperty$M(W,ue,!0),_defineProperty$M(W,"".concat(ue,"-sm"),X==="small"),_defineProperty$M(W,"".concat(ue,"-lg"),X==="large"),_defineProperty$M(W,"".concat(ue,"-spinning"),de),_defineProperty$M(W,"".concat(ue,"-show-text"),!!ee),_defineProperty$M(W,"".concat(ue,"-rtl"),ce==="rtl"),_defineProperty$M(W,ne,!!ne),W),ge=createVNode("div",_objectSpread2$1(_objectSpread2$1({},oe),{},{style:ae,class:ve}),[this.renderIndicator(ue),ee?createVNode("div",{class:"".concat(ue,"-text")},[ee]):null]),he=getSlot(this);if(he&&he.length){var me,_e=(me={},_defineProperty$M(me,"".concat(ue,"-container"),!0),_defineProperty$M(me,"".concat(ue,"-blur"),de),me);return createVNode("div",{class:["".concat(ue,"-nested-loading"),ie]},[de&&createVNode("div",{key:"loading"},[ge]),createVNode("div",{class:_e,key:"container"},[he])])}return ge}});Spin.setDefaultIndicator=setDefaultIndicator;Spin.install=function(C){return C.component(Spin.name,Spin),C};var DoubleLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const DoubleLeftOutlinedSvg=DoubleLeftOutlined$2;function _objectSpread$m(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$n(C,G,U[G])})}return C}function _defineProperty$n(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var DoubleLeftOutlined=function(H,U){var W=_objectSpread$m({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$m({},W,{icon:DoubleLeftOutlinedSvg}),null)};DoubleLeftOutlined.displayName="DoubleLeftOutlined";DoubleLeftOutlined.inheritAttrs=!1;const DoubleLeftOutlined$1=DoubleLeftOutlined;var DoubleRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const DoubleRightOutlinedSvg=DoubleRightOutlined$2;function _objectSpread$l(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$m(C,G,U[G])})}return C}function _defineProperty$m(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var DoubleRightOutlined=function(H,U){var W=_objectSpread$l({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$l({},W,{icon:DoubleRightOutlinedSvg}),null)};DoubleRightOutlined.displayName="DoubleRightOutlined";DoubleRightOutlined.inheritAttrs=!1;const DoubleRightOutlined$1=DoubleRightOutlined,MiniSelect=defineComponent({compatConfig:{MODE:3},inheritAttrs:!1,props:selectProps(),Option:__unplugin_components_1$3.Option,setup:function(H,U){var W=U.attrs,G=U.slots;return function(){var X=_objectSpread2$1(_objectSpread2$1({},H),{},{size:"small"},W);return createVNode(__unplugin_components_1$3,X,G)}}}),Pager=defineComponent({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:PropTypes$1.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:function(){}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup:function(H,U){var W=U.emit,G=U.attrs,X=function(){W("click",H.page)},Z=function(ee){W("keypress",ee,X,H.page)};return function(){var Q,ee=H.showTitle,ie=H.page,te=H.itemRender,ne=G.class,ae=G.style,oe="".concat(H.rootPrefixCls,"-item"),se=classNames(oe,"".concat(oe,"-").concat(H.page),(Q={},_defineProperty$M(Q,"".concat(oe,"-active"),H.active),_defineProperty$M(Q,"".concat(oe,"-disabled"),!H.page),Q),ne);return createVNode("li",{onClick:X,onKeypress:Z,title:ee?String(ie):null,tabindex:"0",class:se,style:ae},[te({page:ie,type:"page",originalElement:createVNode("a",{rel:"nofollow"},[ie])})])}}}),KEYCODE={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Options=defineComponent({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:PropTypes$1.any,current:Number,pageSizeOptions:PropTypes$1.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:PropTypes$1.object,rootPrefixCls:String,selectPrefixCls:String,goButton:PropTypes$1.any},setup:function(H){var U=ref(""),W=computed(function(){return!U.value||isNaN(U.value)?void 0:Number(U.value)}),G=function(te){return"".concat(te.value," ").concat(H.locale.items_per_page)},X=function(te){var ne=te.target,ae=ne.value,oe=ne.composing;te.isComposing||oe||U.value===ae||(U.value=ae)},Z=function(te){var ne=H.goButton,ae=H.quickGo,oe=H.rootPrefixCls;if(!(ne||U.value===""))if(te.relatedTarget&&(te.relatedTarget.className.indexOf("".concat(oe,"-item-link"))>=0||te.relatedTarget.className.indexOf("".concat(oe,"-item"))>=0)){U.value="";return}else ae(W.value),U.value=""},Q=function(te){U.value!==""&&(te.keyCode===KEYCODE.ENTER||te.type==="click")&&(H.quickGo(W.value),U.value="")},ee=computed(function(){var ie=H.pageSize,te=H.pageSizeOptions;return te.some(function(ne){return ne.toString()===ie.toString()})?te:te.concat([ie.toString()]).sort(function(ne,ae){var oe=isNaN(Number(ne))?0:Number(ne),se=isNaN(Number(ae))?0:Number(ae);return oe-se})});return function(){var ie=H.rootPrefixCls,te=H.locale,ne=H.changeSize,ae=H.quickGo,oe=H.goButton,se=H.selectComponentClass,le=H.selectPrefixCls,ce=H.pageSize,ue=H.disabled,de="".concat(ie,"-options"),ve=null,ge=null,he=null;if(!ne&&!ae)return null;if(ne&&se){var me=H.buildOptionText||G,_e=ee.value.map(function(be,pe){return createVNode(se.Option,{key:pe,value:be},{default:function(){return[me({value:be})]}})});ve=createVNode(se,{disabled:ue,prefixCls:le,showSearch:!1,class:"".concat(de,"-size-changer"),optionLabelProp:"children",value:(ce||ee.value[0]).toString(),onChange:function(pe){return ne(Number(pe))},getPopupContainer:function(pe){return pe.parentNode}},{default:function(){return[_e]}})}return ae&&(oe&&(he=typeof oe=="boolean"?createVNode("button",{type:"button",onClick:Q,onKeyup:Q,disabled:ue,class:"".concat(de,"-quick-jumper-button")},[te.jump_to_confirm]):createVNode("span",{onClick:Q,onKeyup:Q},[oe])),ge=createVNode("div",{class:"".concat(de,"-quick-jumper")},[te.jump_to,withDirectives(createVNode("input",{disabled:ue,type:"text",value:U.value,onInput:X,onChange:X,onKeyup:Q,onBlur:Z},null),[[antInputDirective]]),te.page,he])),createVNode("li",{class:"".concat(de)},[ve,ge])}}}),LOCALE={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875"};var _excluded$b=["class"];function isInteger$1(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C}function defaultItemRender(C){var H=C.originalElement;return H}function calculatePage(C,H,U){var W=typeof C>"u"?H.statePageSize:C;return Math.floor((U.total-1)/W)+1}const VcPagination=defineComponent({compatConfig:{MODE:3},name:"Pagination",mixins:[BaseMixin],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:PropTypes$1.string.def("rc-pagination"),selectPrefixCls:PropTypes$1.string.def("rc-select"),current:Number,defaultCurrent:PropTypes$1.number.def(1),total:PropTypes$1.number.def(0),pageSize:Number,defaultPageSize:PropTypes$1.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:PropTypes$1.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:PropTypes$1.oneOfType([PropTypes$1.looseBool,PropTypes$1.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:PropTypes$1.arrayOf(PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:PropTypes$1.object.def(LOCALE),itemRender:PropTypes$1.func.def(defaultItemRender),prevIcon:PropTypes$1.any,nextIcon:PropTypes$1.any,jumpPrevIcon:PropTypes$1.any,jumpNextIcon:PropTypes$1.any,totalBoundaryShowSizeChanger:PropTypes$1.number.def(50)},data:function(){var H=this.$props,U=firstNotUndefined([this.current,this.defaultCurrent]),W=firstNotUndefined([this.pageSize,this.defaultPageSize]);return U=Math.min(U,calculatePage(W,void 0,H)),{stateCurrent:U,stateCurrentInputValue:U,statePageSize:W}},watch:{current:function(H){this.setState({stateCurrent:H,stateCurrentInputValue:H})},pageSize:function(H){var U={},W=this.stateCurrent,G=calculatePage(H,this.$data,this.$props);W=W>G?G:W,hasProp(this,"current")||(U.stateCurrent=W,U.stateCurrentInputValue=W),U.statePageSize=H,this.setState(U)},stateCurrent:function(H,U){var W=this;this.$nextTick(function(){if(W.$refs.paginationNode){var G=W.$refs.paginationNode.querySelector(".".concat(W.prefixCls,"-item-").concat(U));G&&document.activeElement===G&&G.blur()}})},total:function(){var H={},U=calculatePage(this.pageSize,this.$data,this.$props);if(hasProp(this,"current")){var W=Math.min(this.current,U);H.stateCurrent=W,H.stateCurrentInputValue=W}else{var G=this.stateCurrent;G===0&&U>0?G=1:G=Math.min(this.stateCurrent,U),H.stateCurrent=G}this.setState(H)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(calculatePage(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(H,U){var W=this.$props.prefixCls,G=getComponent(this,H,this.$props)||createVNode("button",{type:"button","aria-label":U,class:"".concat(W,"-item-link")},null);return G},getValidValue:function(H){var U=H.target.value,W=calculatePage(void 0,this.$data,this.$props),G=this.$data.stateCurrentInputValue,X;return U===""?X=U:isNaN(Number(U))?X=G:U>=W?X=W:X=Number(U),X},isValid:function(H){return isInteger$1(H)&&H!==this.stateCurrent},shouldDisplayQuickJumper:function(){var H=this.$props,U=H.showQuickJumper,W=H.pageSize,G=H.total;return G<=W?!1:U},handleKeyDown:function(H){(H.keyCode===KEYCODE.ARROW_UP||H.keyCode===KEYCODE.ARROW_DOWN)&&H.preventDefault()},handleKeyUp:function(H){if(!(H.isComposing||H.target.composing)){var U=this.getValidValue(H),W=this.stateCurrentInputValue;U!==W&&this.setState({stateCurrentInputValue:U}),H.keyCode===KEYCODE.ENTER?this.handleChange(U):H.keyCode===KEYCODE.ARROW_UP?this.handleChange(U-1):H.keyCode===KEYCODE.ARROW_DOWN&&this.handleChange(U+1)}},changePageSize:function(H){var U=this.stateCurrent,W=U,G=calculatePage(H,this.$data,this.$props);U=U>G?G:U,G===0&&(U=this.stateCurrent),typeof H=="number"&&(hasProp(this,"pageSize")||this.setState({statePageSize:H}),hasProp(this,"current")||this.setState({stateCurrent:U,stateCurrentInputValue:U})),this.__emit("update:pageSize",H),U!==W&&this.__emit("update:current",U),this.__emit("showSizeChange",U,H),this.__emit("change",U,H)},handleChange:function(H){var U=this.$props.disabled,W=H;if(this.isValid(W)&&!U){var G=calculatePage(void 0,this.$data,this.$props);return W>G?W=G:W<1&&(W=1),hasProp(this,"current")||this.setState({stateCurrent:W,stateCurrentInputValue:W}),this.__emit("update:current",W),this.__emit("change",W,this.statePageSize),W}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrent<calculatePage(void 0,this.$data,this.$props)},getShowSizeChanger:function(){var H=this.$props,U=H.showSizeChanger,W=H.total,G=H.totalBoundaryShowSizeChanger;return typeof U<"u"?U:W>G},runIfEnter:function(H,U){if(H.key==="Enter"||H.charCode===13){for(var W=arguments.length,G=new Array(W>2?W-2:0),X=2;X<W;X++)G[X-2]=arguments[X];U.apply(void 0,G)}},runIfEnterPrev:function(H){this.runIfEnter(H,this.prev)},runIfEnterNext:function(H){this.runIfEnter(H,this.next)},runIfEnterJumpPrev:function(H){this.runIfEnter(H,this.jumpPrev)},runIfEnterJumpNext:function(H){this.runIfEnter(H,this.jumpNext)},handleGoTO:function(H){(H.keyCode===KEYCODE.ENTER||H.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev:function(H){var U=this.$props.itemRender,W=U({page:H,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),G=!this.hasPrev();return isValidElement(W)?cloneElement(W,G?{disabled:G}:{}):W},renderNext:function(H){var U=this.$props.itemRender,W=U({page:H,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),G=!this.hasNext();return isValidElement(W)?cloneElement(W,G?{disabled:G}:{}):W}},render:function(){var H,U=this.$props,W=U.prefixCls,G=U.disabled,X=U.hideOnSinglePage,Z=U.total,Q=U.locale,ee=U.showQuickJumper,ie=U.showLessItems,te=U.showTitle,ne=U.showTotal,ae=U.simple,oe=U.itemRender,se=U.showPrevNextJumpers,le=U.jumpPrevIcon,ce=U.jumpNextIcon,ue=U.selectComponentClass,de=U.selectPrefixCls,ve=U.pageSizeOptions,ge=this.stateCurrent,he=this.statePageSize,me=splitAttrs(this.$attrs).extraAttrs,_e=me.class,be=_objectWithoutProperties$4(me,_excluded$b);if(X===!0&&this.total<=he)return null;var pe=calculatePage(void 0,this.$data,this.$props),fe=[],ye=null,$e=null,we=null,Se=null,Te=null,xe=ee&&ee.goButton,ke=ie?1:2,Ie=ge-1>0?ge-1:0,Ae=ge+1<pe?ge+1:pe,Me=this.hasPrev(),Fe=this.hasNext();if(ae)return xe&&(typeof xe=="boolean"?Te=createVNode("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[Q.jump_to_confirm]):Te=createVNode("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[xe]),Te=createVNode("li",{title:te?"".concat(Q.jump_to).concat(ge,"/").concat(pe):null,class:"".concat(W,"-simple-pager")},[Te])),createVNode("ul",_objectSpread2$1({class:classNames("".concat(W," ").concat(W,"-simple"),_defineProperty$M({},"".concat(W,"-disabled"),G),_e)},be),[createVNode("li",{title:te?Q.prev_page:null,onClick:this.prev,tabindex:Me?0:null,onKeypress:this.runIfEnterPrev,class:classNames("".concat(W,"-prev"),_defineProperty$M({},"".concat(W,"-disabled"),!Me)),"aria-disabled":!Me},[this.renderPrev(Ie)]),createVNode("li",{title:te?"".concat(ge,"/").concat(pe):null,class:"".concat(W,"-simple-pager")},[withDirectives(createVNode("input",{type:"text",value:this.stateCurrentInputValue,disabled:G,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),[[antInputDirective]]),createVNode("span",{class:"".concat(W,"-slash")},[createTextVNode("\uFF0F")]),pe]),createVNode("li",{title:te?Q.next_page:null,onClick:this.next,tabindex:Fe?0:null,onKeypress:this.runIfEnterNext,class:classNames("".concat(W,"-next"),_defineProperty$M({},"".concat(W,"-disabled"),!Fe)),"aria-disabled":!Fe},[this.renderNext(Ae)]),Te]);if(pe<=3+ke*2){var Be={locale:Q,rootPrefixCls:W,showTitle:te,itemRender:oe,onClick:this.handleChange,onKeypress:this.runIfEnter};pe||fe.push(createVNode(Pager,_objectSpread2$1(_objectSpread2$1({},Be),{},{key:"noPager",page:1,class:"".concat(W,"-item-disabled")}),null));for(var Ne=1;Ne<=pe;Ne+=1){var Ve=ge===Ne;fe.push(createVNode(Pager,_objectSpread2$1(_objectSpread2$1({},Be),{},{key:Ne,page:Ne,active:Ve}),null))}}else{var Le=ie?Q.prev_3:Q.prev_5,De=ie?Q.next_3:Q.next_5;se&&(ye=createVNode("li",{title:this.showTitle?Le:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:classNames("".concat(W,"-jump-prev"),_defineProperty$M({},"".concat(W,"-jump-prev-custom-icon"),!!le))},[oe({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),$e=createVNode("li",{title:this.showTitle?De:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:classNames("".concat(W,"-jump-next"),_defineProperty$M({},"".concat(W,"-jump-next-custom-icon"),!!ce))},[oe({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),Se=createVNode(Pager,{locale:Q,last:!0,rootPrefixCls:W,onClick:this.handleChange,onKeypress:this.runIfEnter,key:pe,page:pe,active:!1,showTitle:te,itemRender:oe},null),we=createVNode(Pager,{locale:Q,rootPrefixCls:W,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:te,itemRender:oe},null);var Je=Math.max(1,ge-ke),ze=Math.min(ge+ke,pe);ge-1<=ke&&(ze=1+ke*2),pe-ge<=ke&&(Je=pe-ke*2);for(var Ge=Je;Ge<=ze;Ge+=1){var qe=ge===Ge;fe.push(createVNode(Pager,{locale:Q,rootPrefixCls:W,onClick:this.handleChange,onKeypress:this.runIfEnter,key:Ge,page:Ge,active:qe,showTitle:te,itemRender:oe},null))}ge-1>=ke*2&&ge!==1+2&&(fe[0]=createVNode(Pager,{locale:Q,rootPrefixCls:W,onClick:this.handleChange,onKeypress:this.runIfEnter,key:Je,page:Je,class:"".concat(W,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:oe},null),fe.unshift(ye)),pe-ge>=ke*2&&ge!==pe-2&&(fe[fe.length-1]=createVNode(Pager,{locale:Q,rootPrefixCls:W,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ze,page:ze,class:"".concat(W,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:oe},null),fe.push($e)),Je!==1&&fe.unshift(we),ze!==pe&&fe.push(Se)}var Ke=null;ne&&(Ke=createVNode("li",{class:"".concat(W,"-total-text")},[ne(Z,[Z===0?0:(ge-1)*he+1,ge*he>Z?Z:ge*he])]));var Ee=!Me||!pe,Ce=!Fe||!pe,Pe=this.buildOptionText||this.$slots.buildOptionText;return createVNode("ul",_objectSpread2$1(_objectSpread2$1({unselectable:"on",ref:"paginationNode"},be),{},{class:classNames((H={},_defineProperty$M(H,"".concat(W),!0),_defineProperty$M(H,"".concat(W,"-disabled"),G),H),_e)}),[Ke,createVNode("li",{title:te?Q.prev_page:null,onClick:this.prev,tabindex:Ee?null:0,onKeypress:this.runIfEnterPrev,class:classNames("".concat(W,"-prev"),_defineProperty$M({},"".concat(W,"-disabled"),Ee)),"aria-disabled":Ee},[this.renderPrev(Ie)]),fe,createVNode("li",{title:te?Q.next_page:null,onClick:this.next,tabindex:Ce?null:0,onKeypress:this.runIfEnterNext,class:classNames("".concat(W,"-next"),_defineProperty$M({},"".concat(W,"-disabled"),Ce)),"aria-disabled":Ce},[this.renderNext(Ae)]),createVNode(Options,{disabled:G,locale:Q,rootPrefixCls:W,selectComponentClass:ue,selectPrefixCls:de,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ge,pageSize:he,pageSizeOptions:ve,buildOptionText:Pe||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:xe},null)])}});var _excluded$a=["size","itemRender","buildOptionText","selectComponentClass","responsive"],paginationProps=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}};const Pagination$1=defineComponent({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:paginationProps(),setup:function(H,U){var W=U.slots,G=U.attrs,X=useConfigInject("pagination",H),Z=X.prefixCls,Q=X.configProvider,ee=X.direction,ie=computed(function(){return Q.getPrefixCls("select",H.selectPrefixCls)}),te=useBreakpoint(),ne=useLocaleReceiver("Pagination",enUS$1,toRef(H,"locale")),ae=_slicedToArray$2(ne,1),oe=ae[0],se=function(ce){var ue=createVNode("span",{class:"".concat(ce,"-item-ellipsis")},[createTextVNode("\u2022\u2022\u2022")]),de=createVNode("button",{class:"".concat(ce,"-item-link"),type:"button",tabindex:-1},[createVNode(LeftOutlined$1,null,null)]),ve=createVNode("button",{class:"".concat(ce,"-item-link"),type:"button",tabindex:-1},[createVNode(RightOutlined$1,null,null)]),ge=createVNode("a",{rel:"nofollow",class:"".concat(ce,"-item-link")},[createVNode("div",{class:"".concat(ce,"-item-container")},[createVNode(DoubleLeftOutlined$1,{class:"".concat(ce,"-item-link-icon")},null),ue])]),he=createVNode("a",{rel:"nofollow",class:"".concat(ce,"-item-link")},[createVNode("div",{class:"".concat(ce,"-item-container")},[createVNode(DoubleRightOutlined$1,{class:"".concat(ce,"-item-link-icon")},null),ue])]);if(ee.value==="rtl"){var me=[ve,de];de=me[0],ve=me[1];var _e=[he,ge];ge=_e[0],he=_e[1]}return{prevIcon:de,nextIcon:ve,jumpPrevIcon:ge,jumpNextIcon:he}};return function(){var le,ce=H.size,ue=H.itemRender,de=ue===void 0?W.itemRender:ue,ve=H.buildOptionText,ge=ve===void 0?W.buildOptionText:ve,he=H.selectComponentClass,me=H.responsive,_e=_objectWithoutProperties$4(H,_excluded$a),be=ce==="small"||!!((le=te.value)!==null&&le!==void 0&&le.xs&&!ce&&me),pe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},_e),se(Z.value)),{},{prefixCls:Z.value,selectPrefixCls:ie.value,selectComponentClass:he||(be?MiniSelect:__unplugin_components_1$3),locale:oe.value,buildOptionText:ge},G),{},{class:classNames(_defineProperty$M({mini:be},"".concat(Z.value,"-rtl"),ee.value==="rtl"),G.class),itemRender:de});return createVNode(VcPagination,pe,null)}}}),Pagination=withInstall(Pagination$1);var _excluded$9=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],mousePosition=null,getClickPosition=function(H){mousePosition={x:H.pageX,y:H.pageY},setTimeout(function(){return mousePosition=null},100)};canUseDocElement()&&addEventListenerWrap(document.documentElement,"click",getClickPosition,!0);var modalProps=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:PropTypes$1.any,closable:{type:Boolean,default:void 0},closeIcon:PropTypes$1.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:PropTypes$1.any,okText:PropTypes$1.any,okType:String,cancelText:PropTypes$1.any,icon:PropTypes$1.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},destroyFns=[];const Modal=defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:initDefaultProps$1(modalProps(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(H,U){var W=U.emit,G=U.slots,X=U.attrs,Z=useLocaleReceiver("Modal"),Q=_slicedToArray$2(Z,1),ee=Q[0],ie=useConfigInject("modal",H),te=ie.prefixCls,ne=ie.rootPrefixCls,ae=ie.direction,oe=ie.getPopupContainer,se=function(de){W("update:visible",!1),W("cancel",de),W("change",!1)},le=function(de){W("ok",de)},ce=function(){var de,ve,ge=H.okText,he=ge===void 0?(de=G.okText)===null||de===void 0?void 0:de.call(G):ge,me=H.okType,_e=H.cancelText,be=_e===void 0?(ve=G.cancelText)===null||ve===void 0?void 0:ve.call(G):_e,pe=H.confirmLoading;return createVNode(Fragment,null,[createVNode(Button$1,_objectSpread2$1({onClick:se},H.cancelButtonProps),{default:function(){return[be||ee.value.cancelText]}}),createVNode(Button$1,_objectSpread2$1(_objectSpread2$1({},convertLegacyProps(me)),{},{loading:pe,onClick:le},H.okButtonProps),{default:function(){return[he||ee.value.okText]}})])};return function(){var ue,de;H.prefixCls;var ve=H.visible,ge=H.wrapClassName,he=H.centered,me=H.getContainer,_e=H.closeIcon,be=_e===void 0?(ue=G.closeIcon)===null||ue===void 0?void 0:ue.call(G):_e,pe=H.focusTriggerAfterClose,fe=pe===void 0?!0:pe,ye=_objectWithoutProperties$4(H,_excluded$9),$e=classNames(ge,(de={},_defineProperty$M(de,"".concat(te.value,"-centered"),!!he),_defineProperty$M(de,"".concat(te.value,"-wrap-rtl"),ae.value==="rtl"),de));return createVNode(DialogWrap$1,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},ye),X),{},{getContainer:me||oe.value,prefixCls:te.value,wrapClassName:$e,visible:ve,mousePosition,onClose:se,focusTriggerAfterClose:fe,transitionName:getTransitionName$1(ne.value,"zoom",H.transitionName),maskTransitionName:getTransitionName$1(ne.value,"fade",H.maskTransitionName)}),_objectSpread2$1(_objectSpread2$1({},G),{},{footer:G.footer||ce,closeIcon:function(){return createVNode("span",{class:"".concat(te.value,"-close-x")},[be||createVNode(CloseOutlined$1,{class:"".concat(te.value,"-close-icon")},null)])}}))}}});var useDestroyed=function(){var H=ref(!1);return onBeforeUnmount(function(){H.value=!0}),H};const useDestroyed$1=useDestroyed;var actionButtonProps={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function isThenable(C){return!!(C&&!!C.then)}const ActionButton=defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:actionButtonProps,setup:function(H,U){var W=U.slots,G=ref(!1),X=ref(),Z=ref(!1),Q,ee=useDestroyed$1();onMounted(function(){H.autofocus&&(Q=setTimeout(function(){var ne;return(ne=X.value.$el)===null||ne===void 0?void 0:ne.focus()}))}),onBeforeUnmount(function(){clearTimeout(Q)});var ie=function(ae){var oe=H.close;!isThenable(ae)||(Z.value=!0,ae.then(function(){ee.value||(Z.value=!1),oe.apply(void 0,arguments),G.value=!1},function(se){console.error(se),ee.value||(Z.value=!1),G.value=!1}))},te=function(ae){var oe=H.actionFn,se=H.close,le=se===void 0?function(){}:se;if(!G.value){if(G.value=!0,!oe){le();return}var ce;if(H.emitEvent){if(ce=oe(ae),H.quitOnNullishReturnValue&&!isThenable(ce)){G.value=!1,le(ae);return}}else if(oe.length)ce=oe(le),G.value=!1;else if(ce=oe(),!ce){le();return}ie(ce)}};return function(){var ne=H.type,ae=H.prefixCls,oe=H.buttonProps;return createVNode(Button$1,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},convertLegacyProps(ne)),{},{onClick:te,loading:Z.value,prefixCls:ae},oe),{},{ref:X}),W)}}});function renderSomeContent(C){return typeof C=="function"?C():C}const ConfirmDialog=defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(H,U){var W=U.attrs,G=useLocaleReceiver("Modal"),X=_slicedToArray$2(G,1),Z=X[0];return function(){var Q=H.icon,ee=H.onCancel,ie=H.onOk,te=H.close,ne=H.closable,ae=ne===void 0?!1:ne,oe=H.zIndex,se=H.afterClose,le=H.visible,ce=H.keyboard,ue=H.centered,de=H.getContainer,ve=H.maskStyle,ge=H.okButtonProps,he=H.cancelButtonProps,me=H.okCancel,_e=me===void 0?!0:me,be=H.width,pe=be===void 0?416:be,fe=H.mask,ye=fe===void 0?!0:fe,$e=H.maskClosable,we=$e===void 0?!1:$e,Se=H.type,Te=H.title,xe=H.content,ke=H.direction,Ie=H.closeIcon,Ae=H.modalRender,Me=H.focusTriggerAfterClose,Fe=H.rootPrefixCls,Be=H.bodyStyle,Ne=H.wrapClassName,Ve=H.okType||"primary",Le=H.prefixCls||"ant-modal",De="".concat(Le,"-confirm"),Je=W.style||{},ze=renderSomeContent(H.okText)||(_e?Z.value.okText:Z.value.justOkText),Ge=renderSomeContent(H.cancelText)||Z.value.cancelText,qe=H.autoFocusButton===null?!1:H.autoFocusButton||"ok",Ke=classNames(De,"".concat(De,"-").concat(Se),"".concat(Le,"-").concat(Se),_defineProperty$M({},"".concat(De,"-rtl"),ke==="rtl"),W.class),Ee=_e&&createVNode(ActionButton,{actionFn:ee,close:te,autofocus:qe==="cancel",buttonProps:he,prefixCls:"".concat(Fe,"-btn")},{default:function(){return[Ge]}});return createVNode(Modal,{prefixCls:Le,class:Ke,wrapClassName:classNames(_defineProperty$M({},"".concat(De,"-centered"),!!ue),Ne),onCancel:function(Pe){return te({triggerCancel:!0},Pe)},visible:le,title:"",footer:"",transitionName:getTransitionName$1(Fe,"zoom",H.transitionName),maskTransitionName:getTransitionName$1(Fe,"fade",H.maskTransitionName),mask:ye,maskClosable:we,maskStyle:ve,style:Je,bodyStyle:Be,width:pe,zIndex:oe,afterClose:se,keyboard:ce,centered:ue,getContainer:de,closable:ae,closeIcon:Ie,modalRender:Ae,focusTriggerAfterClose:Me},{default:function(){return[createVNode("div",{class:"".concat(De,"-body-wrapper")},[createVNode("div",{class:"".concat(De,"-body")},[renderSomeContent(Q),Te===void 0?null:createVNode("span",{class:"".concat(De,"-title")},[renderSomeContent(Te)]),createVNode("div",{class:"".concat(De,"-content")},[renderSomeContent(xe)])]),createVNode("div",{class:"".concat(De,"-btns")},[Ee,createVNode(ActionButton,{type:Ve,actionFn:ie,close:te,autofocus:qe==="ok",buttonProps:ge,prefixCls:"".concat(Fe,"-btn")},{default:function(){return[ze]}})])])]}})}}});var confirm=function(H){var U=document.createDocumentFragment(),W=_objectSpread2$1(_objectSpread2$1({},omit$2(H,["parentContext","appContext"])),{},{close:Z,visible:!0}),G=null;function X(){G&&(render$3(null,U),G.component.update(),G=null);for(var te=arguments.length,ne=new Array(te),ae=0;ae<te;ae++)ne[ae]=arguments[ae];var oe=ne.some(function(ce){return ce&&ce.triggerCancel});H.onCancel&&oe&&H.onCancel.apply(H,ne);for(var se=0;se<destroyFns.length;se++){var le=destroyFns[se];if(le===Z){destroyFns.splice(se,1);break}}}function Z(){for(var te=this,ne=arguments.length,ae=new Array(ne),oe=0;oe<ne;oe++)ae[oe]=arguments[oe];W=_objectSpread2$1(_objectSpread2$1({},W),{},{visible:!1,afterClose:function(){typeof H.afterClose=="function"&&H.afterClose(),X.apply(te,ae)}}),Q(W)}function Q(te){typeof te=="function"?W=te(W):W=_objectSpread2$1(_objectSpread2$1({},W),te),G&&(_extends$1(G.component.props,W),G.component.update())}var ee=function(ne){var ae=globalConfigForApi,oe=ae.prefixCls,se=ne.prefixCls||"".concat(oe,"-modal");return createVNode(__unplugin_components_1$4,_objectSpread2$1(_objectSpread2$1({},ae),{},{notUpdateGlobalConfig:!0,prefixCls:oe}),{default:function(){return[createVNode(ConfirmDialog,_objectSpread2$1(_objectSpread2$1({},ne),{},{rootPrefixCls:oe,prefixCls:se}),null)]}})};function ie(te){var ne=createVNode(ee,_objectSpread2$1({},te));return ne.appContext=H.parentContext||H.appContext||ne.appContext,render$3(ne,U),ne}return G=ie(W),destroyFns.push(Z),{destroy:Z,update:Q}};const confirm$1=confirm;function withWarn(C){return _objectSpread2$1(_objectSpread2$1({icon:function(){return createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!1},C),{},{type:"warning"})}function withInfo(C){return _objectSpread2$1(_objectSpread2$1({icon:function(){return createVNode(InfoCircleOutlined$1,null,null)},okCancel:!1},C),{},{type:"info"})}function withSuccess(C){return _objectSpread2$1(_objectSpread2$1({icon:function(){return createVNode(CheckCircleOutlined$1,null,null)},okCancel:!1},C),{},{type:"success"})}function withError(C){return _objectSpread2$1(_objectSpread2$1({icon:function(){return createVNode(CloseCircleOutlined$1,null,null)},okCancel:!1},C),{},{type:"error"})}function withConfirm(C){return _objectSpread2$1(_objectSpread2$1({icon:function(){return createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!0},C),{},{type:"confirm"})}function modalWarn(C){return confirm$1(withWarn(C))}Modal.info=function(H){return confirm$1(withInfo(H))};Modal.success=function(H){return confirm$1(withSuccess(H))};Modal.error=function(H){return confirm$1(withError(H))};Modal.warning=modalWarn;Modal.warn=modalWarn;Modal.confirm=function(H){return confirm$1(withConfirm(H))};Modal.destroyAll=function(){for(;destroyFns.length;){var H=destroyFns.pop();H&&H()}};Modal.install=function(C){return C.component(Modal.name,Modal),C};var TableContextKey=Symbol("TableContextProps"),useProvideTable=function(H){provide(TableContextKey,H)},useInjectTable=function(){return inject(TableContextKey,{})},INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray$3(C){return C==null?[]:Array.isArray(C)?C:[C]}function getPathValue(C,H){if(!H&&typeof H!="number")return C;for(var U=toArray$3(H),W=C,G=0;G<U.length;G+=1){if(!W)return null;var X=U[G];W=W[X]}return W}function getColumnsKey(C){var H=[],U={};return C.forEach(function(W){for(var G=W||{},X=G.key,Z=G.dataIndex,Q=X||toArray$3(Z).join("-")||INTERNAL_KEY_PREFIX;U[Q];)Q="".concat(Q,"_next");U[Q]=!0,H.push(Q)}),H}function mergeObject(){var C={};function H(X,Z){Z&&Object.keys(Z).forEach(function(Q){var ee=Z[Q];ee&&_typeof$3(ee)==="object"?(X[Q]=X[Q]||{},H(X[Q],ee)):X[Q]=ee})}for(var U=arguments.length,W=new Array(U),G=0;G<U;G++)W[G]=arguments[G];return W.forEach(function(X){H(C,X)}),C}function validateValue(C){return C!=null}var SlotsContextKey=Symbol("SlotsContextProps"),useProvideSlots=function(H){provide(SlotsContextKey,H)},useInjectSlots=function(){return inject(SlotsContextKey,computed(function(){return{}}))},ContextKey=Symbol("ContextProps"),useProvideTableContext=function(H){provide(ContextKey,H)},useInjectTableContext=function(){return inject(ContextKey,{onResizeColumn:function(){}})},INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE",HoverContextKey=Symbol("HoverContextProps"),useProvideHover=function(H){provide(HoverContextKey,H)},useInjectHover=function(){return inject(HoverContextKey,{startRow:ref(-1),endRow:ref(-1),onHover:function(){}})},supportSticky=ref(!1),useProvideSticky=function(){onMounted(function(){supportSticky.value=supportSticky.value||isStyleSupport("position","sticky")})},useInjectSticky=function(){return supportSticky},_excluded$8=["colSpan","rowSpan","style","class"];function inHoverRange(C,H,U,W){var G=C+H-1;return C<=W&&G>=U}function isRenderCell(C){return C&&_typeof$3(C)==="object"&&!Array.isArray(C)&&!isVNode$1(C)}const Cell=defineComponent({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(H,U){var W=U.slots,G=useInjectSlots(),X=useInjectHover(),Z=X.onHover,Q=X.startRow,ee=X.endRow,ie=computed(function(){var ce,ue,de,ve;return(ce=(ue=H.colSpan)!==null&&ue!==void 0?ue:(de=H.additionalProps)===null||de===void 0?void 0:de.colSpan)!==null&&ce!==void 0?ce:(ve=H.additionalProps)===null||ve===void 0?void 0:ve.colspan}),te=computed(function(){var ce,ue,de,ve;return(ce=(ue=H.rowSpan)!==null&&ue!==void 0?ue:(de=H.additionalProps)===null||de===void 0?void 0:de.rowSpan)!==null&&ce!==void 0?ce:(ve=H.additionalProps)===null||ve===void 0?void 0:ve.rowspan}),ne=eagerComputed(function(){var ce=H.index;return inHoverRange(ce,te.value||1,Q.value,ee.value)}),ae=useInjectSticky(),oe=function(ue,de){var ve,ge=H.record,he=H.index,me=H.additionalProps;ge&&Z(he,he+de-1),me==null||(ve=me.onMouseenter)===null||ve===void 0||ve.call(me,ue)},se=function(ue){var de,ve=H.record,ge=H.additionalProps;ve&&Z(-1,-1),ge==null||(de=ge.onMouseleave)===null||de===void 0||de.call(ge,ue)},le=function ce(ue){var de=filterEmpty(ue)[0];return isVNode$1(de)?de.type===Text?de.children:Array.isArray(de.children)?ce(de.children):void 0:de};return function(){var ce,ue,de,ve,ge,he,me=H.prefixCls,_e=H.record,be=H.index,pe=H.renderIndex,fe=H.dataIndex,ye=H.customRender,$e=H.component,we=$e===void 0?"td":$e,Se=H.fixLeft,Te=H.fixRight,xe=H.firstFixLeft,ke=H.lastFixLeft,Ie=H.firstFixRight,Ae=H.lastFixRight,Me=H.appendNode,Fe=Me===void 0?(ce=W.appendNode)===null||ce===void 0?void 0:ce.call(W):Me,Be=H.additionalProps,Ne=Be===void 0?{}:Be,Ve=H.ellipsis,Le=H.align,De=H.rowType,Je=H.isSticky,ze=H.column,Ge=ze===void 0?{}:ze,qe=H.cellType,Ke="".concat(me,"-cell"),Ee,Ce,Pe=(ue=W.default)===null||ue===void 0?void 0:ue.call(W);if(validateValue(Pe)||qe==="header")Ce=Pe;else{var Re,Ze=getPathValue(_e,fe);if(Ce=Ze,ye){var Oe=ye({text:Ze,value:Ze,record:_e,index:be,renderIndex:pe,column:Ge.__originColumn__});isRenderCell(Oe)?(Ce=Oe.children,Ee=Oe.props):Ce=Oe}if(!(INTERNAL_COL_DEFINE in Ge)&&qe==="body"&&G.value.bodyCell&&!((Re=Ge.slots)!==null&&Re!==void 0&&Re.customRender)){var Qe=renderSlot(G.value,"bodyCell",{text:Ze,value:Ze,record:_e,index:be,column:Ge.__originColumn__},function(){var gt=Ce===void 0?Ze:Ce;return[_typeof$3(gt)==="object"&&isValidElement(gt)||_typeof$3(gt)!=="object"?gt:null]});Ce=flattenChildren(Qe)}H.transformCellText&&(Ce=H.transformCellText({text:Ce,record:_e,index:be,column:Ge.__originColumn__}))}_typeof$3(Ce)==="object"&&!Array.isArray(Ce)&&!isVNode$1(Ce)&&(Ce=null),Ve&&(ke||Ie)&&(Ce=createVNode("span",{class:"".concat(Ke,"-content")},[Ce])),Array.isArray(Ce)&&Ce.length===1&&(Ce=Ce[0]);var Xe=Ee||{},et=Xe.colSpan,We=Xe.rowSpan,He=Xe.style,Ye=Xe.class,nt=_objectWithoutProperties$4(Xe,_excluded$8),tt=(de=et!==void 0?et:ie.value)!==null&&de!==void 0?de:1,at=(ve=We!==void 0?We:te.value)!==null&&ve!==void 0?ve:1;if(tt===0||at===0)return null;var St={},st=typeof Se=="number"&&ae.value,it=typeof Te=="number"&&ae.value;st&&(St.position="sticky",St.left="".concat(Se,"px")),it&&(St.position="sticky",St.right="".concat(Te,"px"));var pt={};Le&&(pt.textAlign=Le);var wt,xt=Ve===!0?{showTitle:!0}:Ve;xt&&(xt.showTitle||De==="header")&&(typeof Ce=="string"||typeof Ce=="number"?wt=Ce.toString():isVNode$1(Ce)&&(wt=le([Ce])));var mt=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:wt},nt),Ne),{},{colSpan:tt!==1?tt:null,rowSpan:at!==1?at:null,class:classNames(Ke,(ge={},_defineProperty$M(ge,"".concat(Ke,"-fix-left"),st&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-fix-left-first"),xe&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-fix-left-last"),ke&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-fix-right"),it&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-fix-right-first"),Ie&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-fix-right-last"),Ae&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-ellipsis"),Ve),_defineProperty$M(ge,"".concat(Ke,"-with-append"),Fe),_defineProperty$M(ge,"".concat(Ke,"-fix-sticky"),(st||it)&&Je&&ae.value),_defineProperty$M(ge,"".concat(Ke,"-row-hover"),!Ee&&ne.value),ge),Ne.class,Ye),onMouseenter:function(lt){oe(lt,at)},onMouseleave:se,style:_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},parseStyleText(Ne.style)),pt),St),He)});return createVNode(we,mt,{default:function(){return[Fe,Ce,(he=W.dragHandle)===null||he===void 0?void 0:he.call(W)]}})}}});function getCellFixedInfo(C,H,U,W,G){var X=U[C]||{},Z=U[H]||{},Q,ee;X.fixed==="left"?Q=W.left[C]:Z.fixed==="right"&&(ee=W.right[H]);var ie=!1,te=!1,ne=!1,ae=!1,oe=U[H+1],se=U[C-1];if(G==="rtl"){if(Q!==void 0){var le=se&&se.fixed==="left";ae=!le}else if(ee!==void 0){var ce=oe&&oe.fixed==="right";ne=!ce}}else if(Q!==void 0){var ue=oe&&oe.fixed==="left";ie=!ue}else if(ee!==void 0){var de=se&&se.fixed==="right";te=!de}return{fixLeft:Q,fixRight:ee,lastFixLeft:ie,firstFixRight:te,lastFixRight:ne,firstFixLeft:ae,isSticky:W.isSticky}}var events={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},defaultMinWidth=50;const DragHandleVue=defineComponent({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:defaultMinWidth},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(H){var U=0,W={remove:function(){}},G={remove:function(){}},X=function(){W.remove(),G.remove()};onUnmounted(function(){X()}),watchEffect(function(){devWarning(!isNaN(H.width),"Table","width must be a number when use resizable")});var Z=useInjectTableContext(),Q=Z.onResizeColumn,ee=computed(function(){return typeof H.minWidth=="number"&&!isNaN(H.minWidth)?H.minWidth:defaultMinWidth}),ie=computed(function(){return typeof H.maxWidth=="number"&&!isNaN(H.maxWidth)?H.maxWidth:1/0}),te=getCurrentInstance(),ne=0,ae=ref(!1),oe,se=function(me){var _e=0;me.touches?me.touches.length?_e=me.touches[0].pageX:_e=me.changedTouches[0].pageX:_e=me.pageX;var be=U-_e,pe=Math.max(ne-be,ee.value);pe=Math.min(pe,ie.value),wrapperRaf.cancel(oe),oe=wrapperRaf(function(){Q(pe,H.column.__originColumn__)})},le=function(me){se(me)},ce=function(me){ae.value=!1,se(me),X()},ue=function(me,_e){ae.value=!0,X(),ne=te.vnode.el.parentNode.getBoundingClientRect().width,!(me instanceof MouseEvent&&me.which!==1)&&(me.stopPropagation&&me.stopPropagation(),U=me.touches?me.touches[0].pageX:me.pageX,W=addEventListenerWrap(document.documentElement,_e.move,le),G=addEventListenerWrap(document.documentElement,_e.stop,ce))},de=function(me){me.stopPropagation(),me.preventDefault(),ue(me,events.mouse)},ve=function(me){me.stopPropagation(),me.preventDefault(),ue(me,events.touch)},ge=function(me){me.stopPropagation(),me.preventDefault()};return function(){var he=H.prefixCls,me=_defineProperty$M({},supportsPassive$1?"onTouchstartPassive":"onTouchstart",function(_e){return ve(_e)});return createVNode("div",_objectSpread2$1(_objectSpread2$1({class:"".concat(he,"-resize-handle ").concat(ae.value?"dragging":""),onMousedown:de},me),{},{onClick:ge}),[createVNode("div",{class:"".concat(he,"-resize-handle-line")},null)])}}}),HeaderRow=defineComponent({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(H){var U=useInjectTable();return function(){var W=U.prefixCls,G=U.direction,X=H.cells,Z=H.stickyOffsets,Q=H.flattenColumns,ee=H.rowComponent,ie=H.cellComponent,te=H.customHeaderRow,ne=H.index,ae;te&&(ae=te(X.map(function(se){return se.column}),ne));var oe=getColumnsKey(X.map(function(se){return se.column}));return createVNode(ee,ae,{default:function(){return[X.map(function(le,ce){var ue=le.column,de=getCellFixedInfo(le.colStart,le.colEnd,Q,Z,G),ve;ue&&ue.customHeaderCell&&(ve=le.column.customHeaderCell(ue));var ge=ue;return createVNode(Cell,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},le),{},{cellType:"header",ellipsis:ue.ellipsis,align:ue.align,component:ie,prefixCls:W,key:oe[ce]},de),{},{additionalProps:ve,rowType:"header",column:ue}),{default:function(){return ue.title},dragHandle:function(){return ge.resizable?createVNode(DragHandleVue,{prefixCls:W,width:ge.width,minWidth:ge.minWidth,maxWidth:ge.maxWidth,column:ge},null):null}})})]}})}}});function parseHeaderRows(C){var H=[];function U(Z,Q){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;H[ee]=H[ee]||[];var ie=Q,te=Z.filter(Boolean).map(function(ne){var ae={key:ne.key,class:classNames(ne.className,ne.class),column:ne,colStart:ie},oe=1,se=ne.children;return se&&se.length>0&&(oe=U(se,ie,ee+1).reduce(function(le,ce){return le+ce},0),ae.hasSubColumns=!0),"colSpan"in ne&&(oe=ne.colSpan),"rowSpan"in ne&&(ae.rowSpan=ne.rowSpan),ae.colSpan=oe,ae.colEnd=ae.colStart+oe-1,H[ee].push(ae),ie+=oe,oe});return te}U(C,0);for(var W=H.length,G=function(Q){H[Q].forEach(function(ee){!("rowSpan"in ee)&&!ee.hasSubColumns&&(ee.rowSpan=W-Q)})},X=0;X<W;X+=1)G(X);return H}const Header=defineComponent({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup:function(H){var U=useInjectTable(),W=computed(function(){return parseHeaderRows(H.columns)});return function(){var G=U.prefixCls,X=U.getComponent,Z=H.stickyOffsets,Q=H.flattenColumns,ee=H.customHeaderRow,ie=X(["header","wrapper"],"thead"),te=X(["header","row"],"tr"),ne=X(["header","cell"],"th");return createVNode(ie,{class:"".concat(G,"-thead")},{default:function(){return[W.value.map(function(oe,se){var le=createVNode(HeaderRow,{key:se,flattenColumns:Q,cells:oe,stickyOffsets:Z,rowComponent:te,cellComponent:ne,customHeaderRow:ee,index:se},null);return le})]}})}}});var ExpandedRowContextKey=Symbol("ExpandedRowProps"),useProvideExpandedRow=function(H){provide(ExpandedRowContextKey,H)},useInjectExpandedRow=function(){return inject(ExpandedRowContextKey,{})};const ExpandedRow=defineComponent({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup:function(H,U){var W=U.slots,G=U.attrs,X=useInjectTable(),Z=useInjectExpandedRow(),Q=Z.fixHeader,ee=Z.fixColumn,ie=Z.componentWidth,te=Z.horizonScroll;return function(){var ne=H.prefixCls,ae=H.component,oe=H.cellComponent,se=H.expanded,le=H.colSpan,ce=H.isEmpty;return createVNode(ae,{class:G.class,style:{display:se?null:"none"}},{default:function(){return[createVNode(Cell,{component:oe,prefixCls:ne,colSpan:le},{default:function(){var ve,ge=(ve=W.default)===null||ve===void 0?void 0:ve.call(W);return(ce?te.value:ee.value)&&(ge=createVNode("div",{style:{width:"".concat(ie.value-(Q.value?X.scrollbarSize:0),"px"),position:"sticky",left:0,overflow:"hidden"},class:"".concat(ne,"-expanded-row-fixed")},[ge])),ge}})]}})}}}),MeasureCell=defineComponent({name:"MeasureCell",props:["columnKey"],setup:function(H,U){var W=U.emit,G=ref();return onMounted(function(){G.value&&W("columnResize",H.columnKey,G.value.offsetWidth)}),function(){return createVNode(ResizeObserver$1,{onResize:function(Z){var Q=Z.offsetWidth;W("columnResize",H.columnKey,Q)}},{default:function(){return[createVNode("td",{ref:G,style:{padding:0,border:0,height:0}},[createVNode("div",{style:{height:0,overflow:"hidden"}},[createTextVNode("\xA0")])])]}})}}});var BodyContextKey=Symbol("BodyContextProps"),useProvideBody=function(H){provide(BodyContextKey,H)},useInjectBody=function(){return inject(BodyContextKey,{})};const BodyRow=defineComponent({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup:function(H,U){var W=U.attrs,G=useInjectTable(),X=useInjectBody(),Z=ref(!1),Q=computed(function(){return H.expandedKeys&&H.expandedKeys.has(H.recordKey)});watchEffect(function(){Q.value&&(Z.value=!0)});var ee=computed(function(){return X.expandableType==="row"&&(!H.rowExpandable||H.rowExpandable(H.record))}),ie=computed(function(){return X.expandableType==="nest"}),te=computed(function(){return H.childrenColumnName&&H.record&&H.record[H.childrenColumnName]}),ne=computed(function(){return ee.value||ie.value}),ae=function(de,ve){X.onTriggerExpand(de,ve)},oe=computed(function(){var ue;return((ue=H.customRow)===null||ue===void 0?void 0:ue.call(H,H.record,H.index))||{}}),se=function(de){var ve,ge;X.expandRowByClick&&ne.value&&ae(H.record,de);for(var he=arguments.length,me=new Array(he>1?he-1:0),_e=1;_e<he;_e++)me[_e-1]=arguments[_e];(ve=oe.value)===null||ve===void 0||(ge=ve.onClick)===null||ge===void 0||ge.call.apply(ge,[ve,de].concat(me))},le=computed(function(){var ue=H.record,de=H.index,ve=H.indent,ge=X.rowClassName;return typeof ge=="string"?ge:typeof ge=="function"?ge(ue,de,ve):""}),ce=computed(function(){return getColumnsKey(X.flattenColumns)});return function(){var ue=W.class,de=W.style,ve=H.record,ge=H.index,he=H.rowKey,me=H.indent,_e=me===void 0?0:me,be=H.rowComponent,pe=H.cellComponent,fe=G.prefixCls,ye=G.fixedInfoList,$e=G.transformCellText,we=X.flattenColumns,Se=X.expandedRowClassName,Te=X.indentSize,xe=X.expandIcon,ke=X.expandedRowRender,Ie=X.expandIconColumnIndex,Ae=createVNode(be,_objectSpread2$1(_objectSpread2$1({},oe.value),{},{"data-row-key":he,class:classNames(ue,"".concat(fe,"-row"),"".concat(fe,"-row-level-").concat(_e),le.value,oe.value.class),style:_objectSpread2$1(_objectSpread2$1({},de),parseStyleText(oe.value.style)),onClick:se}),{default:function(){return[we.map(function(Ve,Le){var De=Ve.customRender,Je=Ve.dataIndex,ze=Ve.className,Ge=ce[Le],qe=ye[Le],Ke;Ve.customCell&&(Ke=Ve.customCell(ve,ge,Ve));var Ee=Le===(Ie||0)&&ie.value?createVNode(Fragment,null,[createVNode("span",{style:{paddingLeft:"".concat(Te*_e,"px")},class:"".concat(fe,"-row-indent indent-level-").concat(_e)},null),xe({prefixCls:fe,expanded:Q.value,expandable:te.value,record:ve,onExpand:ae})]):null;return createVNode(Cell,_objectSpread2$1(_objectSpread2$1({cellType:"body",class:ze,ellipsis:Ve.ellipsis,align:Ve.align,component:pe,prefixCls:fe,key:Ge,record:ve,index:ge,renderIndex:H.renderIndex,dataIndex:Je,customRender:De},qe),{},{additionalProps:Ke,column:Ve,transformCellText:$e,appendNode:Ee}),null)})]}}),Me;if(ee.value&&(Z.value||Q.value)){var Fe=ke({record:ve,index:ge,indent:_e+1,expanded:Q.value}),Be=Se&&Se(ve,ge,_e);Me=createVNode(ExpandedRow,{expanded:Q.value,class:classNames("".concat(fe,"-expanded-row"),"".concat(fe,"-expanded-row-level-").concat(_e+1),Be),prefixCls:fe,component:be,cellComponent:pe,colSpan:we.length,isEmpty:!1},{default:function(){return[Fe]}})}return createVNode(Fragment,null,[Ae,Me])}}});function flatRecord(C,H,U,W,G,X){var Z=[];Z.push({record:C,indent:H,index:X});var Q=G(C),ee=W==null?void 0:W.has(Q);if(C&&Array.isArray(C[U])&&ee)for(var ie=0;ie<C[U].length;ie+=1){var te=flatRecord(C[U][ie],H+1,U,W,G,ie);Z.push.apply(Z,_toConsumableArray$1(te))}return Z}function useFlattenRecords(C,H,U,W){var G=computed(function(){var X=H.value,Z=U.value,Q=C.value;if(Z!=null&&Z.size){for(var ee=[],ie=0;ie<(Q==null?void 0:Q.length);ie+=1){var te=Q[ie];ee.push.apply(ee,_toConsumableArray$1(flatRecord(te,0,X,Z,W.value,ie)))}return ee}return Q==null?void 0:Q.map(function(ne,ae){return{record:ne,indent:0,index:ae}})});return G}var ResizeContextKey=Symbol("ResizeContextProps"),useProvideResize=function(H){provide(ResizeContextKey,H)},useInjectResize=function(){return inject(ResizeContextKey,{onColumnResize:function(){}})};const Body=defineComponent({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],slots:["emptyNode"],setup:function(H,U){var W=U.slots,G=useInjectResize(),X=useInjectTable(),Z=useInjectBody(),Q=useFlattenRecords(toRef(H,"data"),toRef(H,"childrenColumnName"),toRef(H,"expandedKeys"),toRef(H,"getRowKey")),ee=ref(-1),ie=ref(-1),te;return useProvideHover({startRow:ee,endRow:ie,onHover:function(ae,oe){clearTimeout(te),te=setTimeout(function(){ee.value=ae,ie.value=oe},100)}}),function(){var ne=H.data,ae=H.getRowKey,oe=H.measureColumnWidth,se=H.expandedKeys,le=H.customRow,ce=H.rowExpandable,ue=H.childrenColumnName,de=G.onColumnResize,ve=X.prefixCls,ge=X.getComponent,he=Z.flattenColumns,me=ge(["body","wrapper"],"tbody"),_e=ge(["body","row"],"tr"),be=ge(["body","cell"],"td"),pe;if(ne.length)pe=Q.value.map(function($e,we){var Se=$e.record,Te=$e.indent,xe=$e.index,ke=ae(Se,we);return createVNode(BodyRow,{key:ke,rowKey:ke,record:Se,recordKey:ke,index:we,renderIndex:xe,rowComponent:_e,cellComponent:be,expandedKeys:se,customRow:le,getRowKey:ae,rowExpandable:ce,childrenColumnName:ue,indent:Te},null)});else{var fe;pe=createVNode(ExpandedRow,{expanded:!0,class:"".concat(ve,"-placeholder"),prefixCls:ve,component:_e,cellComponent:be,colSpan:he.length,isEmpty:!0},{default:function(){return[(fe=W.emptyNode)===null||fe===void 0?void 0:fe.call(W)]}})}var ye=getColumnsKey(he);return createVNode(me,{class:"".concat(ve,"-tbody")},{default:function(){return[oe&&createVNode("tr",{"aria-hidden":"true",class:"".concat(ve,"-measure-row"),style:{height:0,fontSize:0}},[ye.map(function(we){return createVNode(MeasureCell,{key:we,columnKey:we,onColumnResize:de},null)})]),pe]}})}}});var EXPAND_COLUMN={},_excluded$7=["fixed"];function flatColumns(C){return C.reduce(function(H,U){var W=U.fixed,G=W===!0?"left":W,X=U.children;return X&&X.length>0?[].concat(_toConsumableArray$1(H),_toConsumableArray$1(flatColumns(X).map(function(Z){return _objectSpread2$1({fixed:G},Z)}))):[].concat(_toConsumableArray$1(H),[_objectSpread2$1(_objectSpread2$1({},U),{},{fixed:G})])},[])}function revertForRtl(C){return C.map(function(H){var U=H.fixed,W=_objectWithoutProperties$4(H,_excluded$7),G=U;return U==="left"?G="right":U==="right"&&(G="left"),_objectSpread2$1({fixed:G},W)})}function useColumns$1(C,H){var U=C.prefixCls,W=C.columns,G=C.expandable,X=C.expandedKeys,Z=C.getRowKey,Q=C.onTriggerExpand,ee=C.expandIcon,ie=C.rowExpandable,te=C.expandIconColumnIndex,ne=C.direction,ae=C.expandRowByClick,oe=C.expandColumnWidth,se=C.expandFixed,le=computed(function(){if(G.value){var de,ve=W.value.slice();if(!ve.includes(EXPAND_COLUMN)){var ge=te.value||0;ge>=0&&ve.splice(ge,0,EXPAND_COLUMN)}var he=ve.indexOf(EXPAND_COLUMN);ve=ve.filter(function(Se,Te){return Se!==EXPAND_COLUMN||Te===he});var me=W.value[he],_e;(se.value==="left"||se.value)&&!te.value?_e="left":(se.value==="right"||se.value)&&te.value===W.value.length?_e="right":_e=me?me.fixed:null;var be=X.value,pe=ie.value,fe=ee.value,ye=U.value,$e=ae.value,we=(de={},_defineProperty$M(de,INTERNAL_COL_DEFINE,{class:"".concat(U.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),_defineProperty$M(de,"title",""),_defineProperty$M(de,"fixed",_e),_defineProperty$M(de,"class","".concat(U.value,"-row-expand-icon-cell")),_defineProperty$M(de,"width",oe.value),_defineProperty$M(de,"customRender",function(Te){var xe=Te.record,ke=Te.index,Ie=Z.value(xe,ke),Ae=be.has(Ie),Me=pe?pe(xe):!0,Fe=fe({prefixCls:ye,expanded:Ae,expandable:Me,record:xe,onExpand:Q});return $e?createVNode("span",{onClick:function(Ne){return Ne.stopPropagation()}},[Fe]):Fe}),de);return ve.map(function(Se){return Se===EXPAND_COLUMN?we:Se})}return W.value.filter(function(Se){return Se!==EXPAND_COLUMN})}),ce=computed(function(){var de=le.value;return H.value&&(de=H.value(de)),de.length||(de=[{customRender:function(){return null}}]),de}),ue=computed(function(){return ne.value==="rtl"?revertForRtl(flatColumns(ce.value)):flatColumns(ce.value)});return[ce,ue]}function useLayoutState(C){var H=shallowRef(C),U,W=shallowRef([]);function G(X){W.value.push(X),wrapperRaf.cancel(U),U=wrapperRaf(function(){var Z=W.value;W.value=[],Z.forEach(function(Q){H.value=Q(H.value)})})}return onBeforeUnmount(function(){wrapperRaf.cancel(U)}),[H,G]}function useTimeoutLock(C){var H=ref(C||null),U=ref();function W(){clearTimeout(U.value)}function G(Z){H.value=Z,W(),U.value=setTimeout(function(){H.value=null,U.value=void 0},100)}function X(){return H.value}return onBeforeUnmount(function(){W()}),[G,X]}function useStickyOffsets(C,H,U){var W=computed(function(){for(var G=[],X=[],Z=0,Q=0,ee=C.value,ie=H.value,te=U.value,ne=0;ne<ie;ne+=1)if(te==="rtl"){X[ne]=Q,Q+=ee[ne]||0;var ae=ie-ne-1;G[ae]=Z,Z+=ee[ae]||0}else{G[ne]=Z,Z+=ee[ne]||0;var oe=ie-ne-1;X[oe]=Q,Q+=ee[oe]||0}return{left:G,right:X}});return W}var _excluded$6=["columnType"];function ColGroup(C){for(var H=C.colWidths,U=C.columns,W=C.columCount,G=[],X=W||U.length,Z=!1,Q=X-1;Q>=0;Q-=1){var ee=H[Q],ie=U&&U[Q],te=ie&&ie[INTERNAL_COL_DEFINE];if(ee||te||Z){var ne=te||{};ne.columnType;var ae=_objectWithoutProperties$4(ne,_excluded$6);G.unshift(createVNode("col",_objectSpread2$1({key:Q,style:{width:typeof ee=="number"?"".concat(ee,"px"):ee}},ae),null)),Z=!0}}return createVNode("colgroup",null,[G])}function Panel(C,H){var U,W=H.slots;return createVNode("div",null,[(U=W.default)===null||U===void 0?void 0:U.call(W)])}Panel.displayName="Panel";var indexGuid=0,Summary=defineComponent({name:"Summary",props:["fixed"],setup:function(H,U){var W=U.slots,G=useInjectTable(),X="table-summary-uni-key-".concat(++indexGuid),Z=computed(function(){return H.fixed===""||H.fixed});return watchEffect(function(){G.summaryCollect(X,Z.value)}),onBeforeUnmount(function(){G.summaryCollect(X,!1)}),function(){var Q;return(Q=W.default)===null||Q===void 0?void 0:Q.call(W)}}});const Summary$1=Summary,SummaryRow=defineComponent({compatConfig:{MODE:3},name:"FooterRow",setup:function(H,U){var W=U.slots;return function(){var G;return createVNode("tr",null,[(G=W.default)===null||G===void 0?void 0:G.call(W)])}}});var SummaryContextKey=Symbol("SummaryContextProps"),useProvideSummary=function(H){provide(SummaryContextKey,H)},useInjectSummary=function(){return inject(SummaryContextKey,{})};const SummaryCell=defineComponent({name:"SummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(H,U){var W=U.attrs,G=U.slots,X=useInjectTable(),Z=useInjectSummary();return function(){var Q=H.index,ee=H.colSpan,ie=ee===void 0?1:ee,te=H.rowSpan,ne=H.align,ae=X.prefixCls,oe=X.direction,se=Z.scrollColumnIndex,le=Z.stickyOffsets,ce=Z.flattenColumns,ue=Q+ie-1,de=ue+1===se?ie+1:ie,ve=getCellFixedInfo(Q,Q+de-1,ce,le,oe);return createVNode(Cell,_objectSpread2$1({class:W.class,index:Q,component:"td",prefixCls:ae,record:null,dataIndex:null,align:ne,colSpan:de,rowSpan:te,customRender:function(){var he;return(he=G.default)===null||he===void 0?void 0:he.call(G)}},ve),null)}}}),Footer=defineComponent({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(H,U){var W=U.slots,G=useInjectTable();return useProvideSummary(reactive({stickyOffsets:toRef(H,"stickyOffsets"),flattenColumns:toRef(H,"flattenColumns"),scrollColumnIndex:computed(function(){var X=H.flattenColumns.length-1,Z=H.flattenColumns[X];return Z!=null&&Z.scrollbar?X:null})})),function(){var X,Z=G.prefixCls;return createVNode("tfoot",{class:"".concat(Z,"-summary")},[(X=W.default)===null||X===void 0?void 0:X.call(W)])}}});var FooterComponents=Summary$1;function renderExpandIcon$1(C){var H,U=C.prefixCls,W=C.record,G=C.onExpand,X=C.expanded,Z=C.expandable,Q="".concat(U,"-row-expand-icon");if(!Z)return createVNode("span",{class:[Q,"".concat(U,"-row-spaced")]},null);var ee=function(te){G(W,te),te.stopPropagation()};return createVNode("span",{class:(H={},_defineProperty$M(H,Q,!0),_defineProperty$M(H,"".concat(U,"-row-expanded"),X),_defineProperty$M(H,"".concat(U,"-row-collapsed"),!X),H),onClick:ee},null)}function findAllChildrenKeys(C,H,U){var W=[];function G(X){(X||[]).forEach(function(Z,Q){W.push(H(Z,Q)),G(Z[U])})}return G(C),W}const StickyScrollBar=defineComponent({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(H,U){var W=U.emit,G=U.expose,X=useInjectTable(),Z=ref(0),Q=ref(0),ee=ref(0);watchEffect(function(){Z.value=H.scrollBodySizeInfo.scrollWidth||0,Q.value=H.scrollBodySizeInfo.clientWidth||0,ee.value=Z.value&&Q.value*(Q.value/Z.value)},{flush:"post"});var ie=ref(),te=useLayoutState({scrollLeft:0,isHiddenScrollBar:!0}),ne=_slicedToArray$2(te,2),ae=ne[0],oe=ne[1],se=ref({delta:0,x:0}),le=ref(!1),ce=function(){le.value=!1},ue=function(ye){se.value={delta:ye.pageX-ae.value.scrollLeft,x:0},le.value=!0,ye.preventDefault()},de=function(ye){var $e,we=ye||(($e=window)===null||$e===void 0?void 0:$e.event),Se=we.buttons;if(!le.value||Se===0){le.value&&(le.value=!1);return}var Te=se.value.x+ye.pageX-se.value.x-se.value.delta;Te<=0&&(Te=0),Te+ee.value>=Q.value&&(Te=Q.value-ee.value),W("scroll",{scrollLeft:Te/Q.value*(Z.value+2)}),se.value.x=ye.pageX},ve=function(){if(!!H.scrollBodyRef.value){var ye=getOffset(H.scrollBodyRef.value).top,$e=ye+H.scrollBodyRef.value.offsetHeight,we=H.container===window?document.documentElement.scrollTop+window.innerHeight:getOffset(H.container).top+H.container.clientHeight;$e-getScrollBarSize()<=we||ye>=we-H.offsetScroll?oe(function(Se){return _objectSpread2$1(_objectSpread2$1({},Se),{},{isHiddenScrollBar:!0})}):oe(function(Se){return _objectSpread2$1(_objectSpread2$1({},Se),{},{isHiddenScrollBar:!1})})}},ge=function(ye){oe(function($e){return _objectSpread2$1(_objectSpread2$1({},$e),{},{scrollLeft:ye/Z.value*Q.value||0})})};G({setScrollLeft:ge});var he=null,me=null,_e=null,be=null;onMounted(function(){he=addEventListenerWrap(document.body,"mouseup",ce,!1),me=addEventListenerWrap(document.body,"mousemove",de,!1),_e=addEventListenerWrap(window,"resize",ve,!1)}),onActivated(function(){nextTick$1(function(){ve()})}),onMounted(function(){setTimeout(function(){watch([ee,le],function(){ve()},{immediate:!0,flush:"post"})})}),watch(function(){return H.container},function(){var fe;(fe=be)===null||fe===void 0||fe.remove(),be=addEventListenerWrap(H.container,"scroll",ve,!1)},{immediate:!0,flush:"post"}),onBeforeUnmount(function(){var fe,ye,$e,we;(fe=he)===null||fe===void 0||fe.remove(),(ye=me)===null||ye===void 0||ye.remove(),($e=be)===null||$e===void 0||$e.remove(),(we=_e)===null||we===void 0||we.remove()}),watch(function(){return _objectSpread2$1({},ae.value)},function(fe,ye){fe.isHiddenScrollBar!==(ye==null?void 0:ye.isHiddenScrollBar)&&!fe.isHiddenScrollBar&&oe(function($e){var we=H.scrollBodyRef.value;return we?_objectSpread2$1(_objectSpread2$1({},$e),{},{scrollLeft:we.scrollLeft/we.scrollWidth*we.clientWidth}):$e})},{immediate:!0});var pe=getScrollBarSize();return function(){if(Z.value<=Q.value||!ee.value||ae.value.isHiddenScrollBar)return null;var fe=X.prefixCls;return createVNode("div",{style:{height:"".concat(pe,"px"),width:"".concat(Q.value,"px"),bottom:"".concat(H.offsetScroll,"px")},class:"".concat(fe,"-sticky-scroll")},[createVNode("div",{onMousedown:ue,ref:ie,class:classNames("".concat(fe,"-sticky-scroll-bar"),_defineProperty$M({},"".concat(fe,"-sticky-scroll-bar-active"),le)),style:{width:"".concat(ee.value,"px"),transform:"translate3d(".concat(ae.value.scrollLeft,"px, 0, 0)")}},null)])}}});var defaultContainer=canUseDom()?window:null;function useSticky(C,H){return computed(function(){var U=_typeof$3(C.value)==="object"?C.value:{},W=U.offsetHeader,G=W===void 0?0:W,X=U.offsetSummary,Z=X===void 0?0:X,Q=U.offsetScroll,ee=Q===void 0?0:Q,ie=U.getContainer,te=ie===void 0?function(){return defaultContainer}:ie,ne=te()||defaultContainer,ae=!!C.value;return{isSticky:ae,stickyClassName:ae?"".concat(H.value,"-sticky-holder"):"",offsetHeader:G,offsetSummary:Z,offsetScroll:ee,container:ne}})}function useColumnWidth(C,H){return computed(function(){for(var U=[],W=C.value,G=H.value,X=0;X<G;X+=1){var Z=W[X];if(Z!==void 0)U[X]=Z;else return null}return U})}const FixedHolder=defineComponent({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.emit,Z=useInjectTable(),Q=computed(function(){return Z.isSticky&&!H.fixHeader?0:Z.scrollbarSize}),ee=ref(),ie=function(ue){var de=ue.currentTarget,ve=ue.deltaX;ve&&(X("scroll",{currentTarget:de,scrollLeft:de.scrollLeft+ve}),ue.preventDefault())},te=ref();onMounted(function(){nextTick$1(function(){te.value=addEventListenerWrap(ee.value,"wheel",ie)})}),onBeforeUnmount(function(){var ce;(ce=te.value)===null||ce===void 0||ce.remove()});var ne=computed(function(){return H.flattenColumns.every(function(ce){return ce.width&&ce.width!==0&&ce.width!=="0px"})}),ae=ref([]),oe=ref([]);watchEffect(function(){var ce=H.flattenColumns[H.flattenColumns.length-1],ue={fixed:ce?ce.fixed:null,scrollbar:!0,customHeaderCell:function(){return{class:"".concat(Z.prefixCls,"-cell-scrollbar")}}};ae.value=Q.value?[].concat(_toConsumableArray$1(H.columns),[ue]):H.columns,oe.value=Q.value?[].concat(_toConsumableArray$1(H.flattenColumns),[ue]):H.flattenColumns});var se=computed(function(){var ce=H.stickyOffsets,ue=H.direction,de=ce.right,ve=ce.left;return _objectSpread2$1(_objectSpread2$1({},ce),{},{left:ue==="rtl"?[].concat(_toConsumableArray$1(ve.map(function(ge){return ge+Q.value})),[0]):ve,right:ue==="rtl"?de:[].concat(_toConsumableArray$1(de.map(function(ge){return ge+Q.value})),[0]),isSticky:Z.isSticky})}),le=useColumnWidth(toRef(H,"colWidths"),toRef(H,"columCount"));return function(){var ce,ue=H.noData,de=H.columCount,ve=H.stickyTopOffset,ge=H.stickyBottomOffset,he=H.stickyClassName,me=H.maxContentScroll,_e=Z.isSticky;return createVNode("div",{style:_objectSpread2$1({overflow:"hidden"},_e?{top:"".concat(ve,"px"),bottom:"".concat(ge,"px")}:{}),ref:ee,class:classNames(W.class,_defineProperty$M({},he,!!he))},[createVNode("table",{style:{tableLayout:"fixed",visibility:ue||le.value?null:"hidden"}},[(!ue||!me||ne.value)&&createVNode(ColGroup,{colWidths:le.value?[].concat(_toConsumableArray$1(le.value),[Q.value]):[],columCount:de+1,columns:oe.value},null),(ce=G.default)===null||ce===void 0?void 0:ce.call(G,_objectSpread2$1(_objectSpread2$1({},H),{},{stickyOffsets:se.value,columns:ae.value,flattenColumns:oe.value}))])])}}});function fromPairs(C){for(var H=-1,U=C==null?0:C.length,W={};++H<U;){var G=C[H];W[G[0]]=G[1]}return W}function reactivePick(C){for(var H=arguments.length,U=new Array(H>1?H-1:0),W=1;W<H;W++)U[W-1]=arguments[W];return reactive(fromPairs(U.map(function(G){return[G,toRef(C,G)]})))}var EMPTY_DATA=[],EMPTY_SCROLL_TARGET={},INTERNAL_HOOKS="rc-table-internal-hook";const Table$2=defineComponent({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],slots:["title","footer","summary","emptyText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.emit,Z=computed(function(){return H.data||EMPTY_DATA}),Q=computed(function(){return!!Z.value.length}),ee=computed(function(){return mergeObject(H.components,{})}),ie=function(ut,ot){return getPathValue(ee.value,ut)||ot},te=computed(function(){var rt=H.rowKey;return typeof rt=="function"?rt:function(ut){var ot=ut&&ut[rt];return ot}}),ne=computed(function(){return H.expandIcon||renderExpandIcon$1}),ae=computed(function(){return H.childrenColumnName||"children"}),oe=computed(function(){return H.expandedRowRender?"row":H.canExpandable||Z.value.some(function(rt){return rt&&_typeof$3(rt)==="object"&&rt[ae.value]})?"nest":!1}),se=shallowRef([]),le=watchEffect(function(){H.defaultExpandedRowKeys&&(se.value=H.defaultExpandedRowKeys),H.defaultExpandAllRows&&(se.value=findAllChildrenKeys(Z.value,te.value,ae.value))});le();var ce=computed(function(){return new Set(H.expandedRowKeys||se.value||[])}),ue=function(ut){var ot=te.value(ut,Z.value.indexOf(ut)),Tt,ft=ce.value.has(ot);ft?(ce.value.delete(ot),Tt=_toConsumableArray$1(ce.value)):Tt=[].concat(_toConsumableArray$1(ce.value),[ot]),se.value=Tt,X("expand",!ft,ut),X("update:expandedRowKeys",Tt),X("expandedRowsChange",Tt)},de=ref(0),ve=useColumns$1(_objectSpread2$1(_objectSpread2$1({},toRefs(H)),{},{expandable:computed(function(){return!!H.expandedRowRender}),expandedKeys:ce,getRowKey:te,onTriggerExpand:ue,expandIcon:ne}),computed(function(){return H.internalHooks===INTERNAL_HOOKS?H.transformColumns:null})),ge=_slicedToArray$2(ve,2),he=ge[0],me=ge[1],_e=computed(function(){return{columns:he.value,flattenColumns:me.value}}),be=ref(),pe=ref(),fe=ref(),ye=ref({scrollWidth:0,clientWidth:0}),$e=ref(),we=useState(!1),Se=_slicedToArray$2(we,2),Te=Se[0],xe=Se[1],ke=useState(!1),Ie=_slicedToArray$2(ke,2),Ae=Ie[0],Me=Ie[1],Fe=useLayoutState(new Map),Be=_slicedToArray$2(Fe,2),Ne=Be[0],Ve=Be[1],Le=computed(function(){return getColumnsKey(me.value)}),De=computed(function(){return Le.value.map(function(rt){return Ne.value.get(rt)})}),Je=computed(function(){return me.value.length}),ze=useStickyOffsets(De,Je,toRef(H,"direction")),Ge=computed(function(){return H.scroll&&validateValue(H.scroll.y)}),qe=computed(function(){return H.scroll&&validateValue(H.scroll.x)||Boolean(H.expandFixed)}),Ke=computed(function(){return qe.value&&me.value.some(function(rt){var ut=rt.fixed;return ut})}),Ee=ref(),Ce=useSticky(toRef(H,"sticky"),toRef(H,"prefixCls")),Pe=reactive({}),Re=computed(function(){var rt=Object.values(Pe)[0];return(Ge.value||Ce.value.isSticky)&&rt}),Ze=function(ut,ot){ot?Pe[ut]=ot:delete Pe[ut]},Oe=ref({}),Qe=ref({}),Xe=ref({});watchEffect(function(){Ge.value&&(Qe.value={overflowY:"scroll",maxHeight:toPx(H.scroll.y)}),qe.value&&(Oe.value={overflowX:"auto"},Ge.value||(Qe.value={overflowY:"hidden"}),Xe.value={width:H.scroll.x===!0?"auto":toPx(H.scroll.x),minWidth:"100%"})});var et=function(ut,ot){isVisible(be.value)&&Ve(function(Tt){if(Tt.get(ut)!==ot){var ft=new Map(Tt);return ft.set(ut,ot),ft}return Tt})},We=useTimeoutLock(null),He=_slicedToArray$2(We,2),Ye=He[0],nt=He[1];function tt(rt,ut){if(!!ut){if(typeof ut=="function"){ut(rt);return}var ot=ut.$el||ut;ot.scrollLeft!==rt&&(ot.scrollLeft=rt)}}var at=function(ut){var ot=ut.currentTarget,Tt=ut.scrollLeft,ft=H.direction==="rtl",Ct=typeof Tt=="number"?Tt:ot.scrollLeft,At=ot||EMPTY_SCROLL_TARGET;if(!nt()||nt()===At){var Rt;Ye(At),tt(Ct,pe.value),tt(Ct,fe.value),tt(Ct,$e.value),tt(Ct,(Rt=Ee.value)===null||Rt===void 0?void 0:Rt.setScrollLeft)}if(ot){var It=ot.scrollWidth,Ft=ot.clientWidth;ft?(xe(-Ct<It-Ft),Me(-Ct>0)):(xe(Ct>0),Me(Ct<It-Ft))}},St=function(){qe.value&&fe.value?at({currentTarget:fe.value}):(xe(!1),Me(!1))},st,it=function(ut){ut!==de.value&&(St(),de.value=be.value?be.value.offsetWidth:ut)},pt=function(ut){var ot=ut.width;if(clearTimeout(st),de.value===0){it(ot);return}st=setTimeout(function(){it(ot)},100)};watch([qe,function(){return H.data},function(){return H.columns}],function(){qe.value&&St()},{flush:"post"});var wt=useState(0),xt=_slicedToArray$2(wt,2),mt=xt[0],gt=xt[1];useProvideSticky(),onMounted(function(){nextTick$1(function(){var rt,ut;St(),gt(getTargetScrollBarSize(fe.value).width),ye.value={scrollWidth:((rt=fe.value)===null||rt===void 0?void 0:rt.scrollWidth)||0,clientWidth:((ut=fe.value)===null||ut===void 0?void 0:ut.clientWidth)||0}})}),onUpdated(function(){nextTick$1(function(){var rt,ut,ot=((rt=fe.value)===null||rt===void 0?void 0:rt.scrollWidth)||0,Tt=((ut=fe.value)===null||ut===void 0?void 0:ut.clientWidth)||0;(ye.value.scrollWidth!==ot||ye.value.clientWidth!==Tt)&&(ye.value={scrollWidth:ot,clientWidth:Tt})})}),watchEffect(function(){H.internalHooks===INTERNAL_HOOKS&&H.internalRefs&&H.onUpdateInternalRefs({body:fe.value?fe.value.$el||fe.value:null})},{flush:"post"});var lt=computed(function(){return H.tableLayout?H.tableLayout:Ke.value?H.scroll.x==="max-content"?"auto":"fixed":Ge.value||Ce.value.isSticky||me.value.some(function(rt){var ut=rt.ellipsis;return ut})?"fixed":"auto"}),ct=function(){var ut;return Q.value?null:((ut=G.emptyText)===null||ut===void 0?void 0:ut.call(G))||"No Data"};useProvideTable(reactive(_objectSpread2$1(_objectSpread2$1({},toRefs(reactivePick(H,"prefixCls","direction","transformCellText"))),{},{getComponent:ie,scrollbarSize:mt,fixedInfoList:computed(function(){return me.value.map(function(rt,ut){return getCellFixedInfo(ut,ut,me.value,ze.value,H.direction)})}),isSticky:computed(function(){return Ce.value.isSticky}),summaryCollect:Ze}))),useProvideBody(reactive(_objectSpread2$1(_objectSpread2$1({},toRefs(reactivePick(H,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{},{columns:he,flattenColumns:me,tableLayout:lt,expandIcon:ne,expandableType:oe,onTriggerExpand:ue}))),useProvideResize({onColumnResize:et}),useProvideExpandedRow({componentWidth:de,fixHeader:Ge,fixColumn:Ke,horizonScroll:qe});var vt=function(){return createVNode(Body,{data:Z.value,measureColumnWidth:Ge.value||qe.value||Ce.value.isSticky,expandedKeys:ce.value,rowExpandable:H.rowExpandable,getRowKey:te.value,customRow:H.customRow,childrenColumnName:ae.value},{emptyNode:ct})},_t=function(){return createVNode(ColGroup,{colWidths:me.value.map(function(ut){var ot=ut.width;return ot}),columns:me.value},null)};return function(){var rt,ut=H.prefixCls,ot=H.scroll,Tt=H.tableLayout,ft=H.direction,Ct=H.title,At=Ct===void 0?G.title:Ct,Rt=H.footer,It=Rt===void 0?G.footer:Rt,Ft=H.id,Pt=H.showHeader,Ht=H.customHeaderRow,Dt=Ce.value,jt=Dt.isSticky,on=Dt.offsetHeader,un=Dt.offsetSummary,Yt=Dt.offsetScroll,Wt=Dt.stickyClassName,Qt=Dt.container,Zt=ie(["table"],"table"),Xt=ie(["body"]),Jt=(rt=G.summary)===null||rt===void 0?void 0:rt.call(G,{pageData:Z.value}),sn=function(){return null},en={colWidths:De.value,columCount:me.value.length,stickyOffsets:ze.value,customHeaderRow:Ht,fixHeader:Ge.value,scroll:ot};if(Ge.value||jt){var dn=function(){return null};typeof Xt=="function"?(dn=function(){return Xt(Z.value,{scrollbarSize:mt.value,ref:fe,onScroll:at})},en.colWidths=me.value.map(function(Mt,zt){var rn=Mt.width,ln=zt===he.value.length-1?rn-mt.value:rn;return typeof ln=="number"&&!Number.isNaN(ln)?ln:0})):dn=function(){return createVNode("div",{style:_objectSpread2$1(_objectSpread2$1({},Oe.value),Qe.value),onScroll:at,ref:fe,class:classNames("".concat(ut,"-body"))},[createVNode(Zt,{style:_objectSpread2$1(_objectSpread2$1({},Xe.value),{},{tableLayout:lt.value})},{default:function(){return[_t(),vt(),!Re.value&&Jt&&createVNode(Footer,{stickyOffsets:ze.value,flattenColumns:me.value},{default:function(){return[Jt]}})]}})])};var Vt=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({noData:!Z.value.length,maxContentScroll:qe.value&&ot.x==="max-content"},en),_e.value),{},{direction:ft,stickyClassName:Wt,onScroll:at});sn=function(){return createVNode(Fragment,null,[Pt!==!1&&createVNode(FixedHolder,_objectSpread2$1(_objectSpread2$1({},Vt),{},{stickyTopOffset:on,class:"".concat(ut,"-header"),ref:pe}),{default:function(rn){return createVNode(Fragment,null,[createVNode(Header,rn,null),Re.value==="top"&&createVNode(Footer,rn,{default:function(){return[Jt]}})])}}),dn(),Re.value&&Re.value!=="top"&&createVNode(FixedHolder,_objectSpread2$1(_objectSpread2$1({},Vt),{},{stickyBottomOffset:un,class:"".concat(ut,"-summary"),ref:$e}),{default:function(rn){return createVNode(Footer,rn,{default:function(){return[Jt]}})}}),jt&&fe.value&&createVNode(StickyScrollBar,{ref:Ee,offsetScroll:Yt,scrollBodyRef:fe,onScroll:at,container:Qt,scrollBodySizeInfo:ye.value},null)])}}else sn=function(){return createVNode("div",{style:_objectSpread2$1(_objectSpread2$1({},Oe.value),Qe.value),class:classNames("".concat(ut,"-content")),onScroll:at,ref:fe},[createVNode(Zt,{style:_objectSpread2$1(_objectSpread2$1({},Xe.value),{},{tableLayout:lt.value})},{default:function(){return[_t(),Pt!==!1&&createVNode(Header,_objectSpread2$1(_objectSpread2$1({},en),_e.value),null),vt(),Jt&&createVNode(Footer,{stickyOffsets:ze.value,flattenColumns:me.value},{default:function(){return[Jt]}})]}})])};var ht=pickAttrs(W,{aria:!0,data:!0}),kt=function(){var zt;return createVNode("div",_objectSpread2$1(_objectSpread2$1({},ht),{},{class:classNames(ut,(zt={},_defineProperty$M(zt,"".concat(ut,"-rtl"),ft==="rtl"),_defineProperty$M(zt,"".concat(ut,"-ping-left"),Te.value),_defineProperty$M(zt,"".concat(ut,"-ping-right"),Ae.value),_defineProperty$M(zt,"".concat(ut,"-layout-fixed"),Tt==="fixed"),_defineProperty$M(zt,"".concat(ut,"-fixed-header"),Ge.value),_defineProperty$M(zt,"".concat(ut,"-fixed-column"),Ke.value),_defineProperty$M(zt,"".concat(ut,"-scroll-horizontal"),qe.value),_defineProperty$M(zt,"".concat(ut,"-has-fix-left"),me.value[0]&&me.value[0].fixed),_defineProperty$M(zt,"".concat(ut,"-has-fix-right"),me.value[Je.value-1]&&me.value[Je.value-1].fixed==="right"),_defineProperty$M(zt,W.class,W.class),zt)),style:W.style,id:Ft,ref:be}),[At&&createVNode(Panel,{class:"".concat(ut,"-title")},{default:function(){return[At(Z.value)]}}),createVNode("div",{class:"".concat(ut,"-container")},[sn()]),It&&createVNode(Panel,{class:"".concat(ut,"-footer")},{default:function(){return[It(Z.value)]}})])};return qe.value?createVNode(ResizeObserver$1,{onResize:pt},{default:kt}):kt()}}});var DEFAULT_PAGE_SIZE=10;function getPaginationParam(C,H){var U={current:H.current,pageSize:H.pageSize},W=C&&_typeof$3(C)==="object"?C:{};return Object.keys(W).forEach(function(G){var X=H[G];typeof X!="function"&&(U[G]=X)}),U}function extendsObject(){for(var C={},H=arguments.length,U=new Array(H),W=0;W<H;W++)U[W]=arguments[W];return U.forEach(function(G){G&&Object.keys(G).forEach(function(X){var Z=G[X];Z!==void 0&&(C[X]=Z)})}),C}function usePagination(C,H,U){var W=computed(function(){return H.value&&_typeof$3(H.value)==="object"?H.value:{}}),G=computed(function(){return W.value.total||0}),X=useState(function(){return{current:"defaultCurrent"in W.value?W.value.defaultCurrent:1,pageSize:"defaultPageSize"in W.value?W.value.defaultPageSize:DEFAULT_PAGE_SIZE}}),Z=_slicedToArray$2(X,2),Q=Z[0],ee=Z[1],ie=computed(function(){var ae=extendsObject(Q.value,W.value,{total:G.value>0?G.value:C.value}),oe=Math.ceil((G.value||C.value)/ae.pageSize);return ae.current>oe&&(ae.current=oe||1),ae}),te=function(oe,se){W.value!==!1&&ee({current:oe!=null?oe:1,pageSize:se||ie.value.pageSize})},ne=function(oe,se){if(W.value){var le,ce;(le=(ce=W.value).onChange)===null||le===void 0||le.call(ce,oe,se)}te(oe,se),U(oe,se||ie.value.pageSize)};return[computed(function(){return W.value===!1?{}:_objectSpread2$1(_objectSpread2$1({},ie.value),{},{onChange:ne})}),te]}function useLazyKVMap(C,H,U){var W=shallowRef({});watch([C,H,U],function(){var X=new Map,Z=U.value,Q=H.value;function ee(ie){ie.forEach(function(te,ne){var ae=Z(te,ne);X.set(ae,te),te&&_typeof$3(te)==="object"&&Q in te&&ee(te[Q]||[])})}ee(C.value),W.value={kvMap:X}},{deep:!0,immediate:!0});function G(X){return W.value.kvMap.get(X)}return[G]}var SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[];function flattenData(C,H){var U=[];return(C||[]).forEach(function(W){U.push(W),W&&_typeof$3(W)==="object"&&H in W&&(U=[].concat(_toConsumableArray$1(U),_toConsumableArray$1(flattenData(W[H],H))))}),U}function useSelection(C,H){var U=computed(function(){var Se=C.value||{},Te=Se.checkStrictly,xe=Te===void 0?!0:Te;return _objectSpread2$1(_objectSpread2$1({},Se),{},{checkStrictly:xe})}),W=useMergedState(U.value.selectedRowKeys||U.value.defaultSelectedRowKeys||EMPTY_LIST$1,{value:computed(function(){return U.value.selectedRowKeys})}),G=_slicedToArray$2(W,2),X=G[0],Z=G[1],Q=shallowRef(new Map),ee=function(Te){if(U.value.preserveSelectedRowKeys){var xe=new Map;Te.forEach(function(ke){var Ie=H.getRecordByKey(ke);!Ie&&Q.value.has(ke)&&(Ie=Q.value.get(ke)),xe.set(ke,Ie)}),Q.value=xe}};watchEffect(function(){ee(X.value)});var ie=computed(function(){return U.value.checkStrictly?null:convertDataToEntities(H.data.value,{externalGetKey:H.getRowKey.value,childrenPropName:H.childrenColumnName.value}).keyEntities}),te=computed(function(){return flattenData(H.pageData.value,H.childrenColumnName.value)}),ne=computed(function(){var Se=new Map,Te=H.getRowKey.value,xe=U.value.getCheckboxProps;return te.value.forEach(function(ke,Ie){var Ae=Te(ke,Ie),Me=(xe?xe(ke):null)||{};Se.set(Ae,Me)}),Se}),ae=useMaxLevel(ie),oe=ae.maxLevel,se=ae.levelEntities,le=function(Te){var xe;return!!((xe=ne.value.get(H.getRowKey.value(Te)))!==null&&xe!==void 0&&xe.disabled)},ce=computed(function(){if(U.value.checkStrictly)return[X.value||[],[]];var Se=conductCheck(X.value,!0,ie.value,oe.value,se.value,le),Te=Se.checkedKeys,xe=Se.halfCheckedKeys;return[Te||[],xe]}),ue=computed(function(){return ce.value[0]}),de=computed(function(){return ce.value[1]}),ve=computed(function(){var Se=U.value.type==="radio"?ue.value.slice(0,1):ue.value;return new Set(Se)}),ge=computed(function(){return U.value.type==="radio"?new Set:new Set(de.value)}),he=useState(null),me=_slicedToArray$2(he,2),_e=me[0],be=me[1],pe=function(Te){var xe,ke;ee(Te);var Ie=U.value,Ae=Ie.preserveSelectedRowKeys,Me=Ie.onChange,Fe=H.getRecordByKey;Ae?(xe=Te,ke=Te.map(function(Be){return Q.value.get(Be)})):(xe=[],ke=[],Te.forEach(function(Be){var Ne=Fe(Be);Ne!==void 0&&(xe.push(Be),ke.push(Ne))})),Z(xe),Me==null||Me(xe,ke)},fe=function(Te,xe,ke,Ie){var Ae=U.value.onSelect,Me=H||{},Fe=Me.getRecordByKey;if(Ae){var Be=ke.map(function(Ne){return Fe(Ne)});Ae(Fe(Te),xe,Be,Ie)}pe(ke)},ye=computed(function(){var Se=U.value,Te=Se.onSelectInvert,xe=Se.onSelectNone,ke=Se.selections,Ie=Se.hideSelectAll,Ae=H.data,Me=H.pageData,Fe=H.getRowKey,Be=H.locale;if(!ke||Ie)return null;var Ne=ke===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:ke;return Ne.map(function(Ve){return Ve===SELECTION_ALL?{key:"all",text:Be.value.selectionAll,onSelect:function(){pe(Ae.value.map(function(De,Je){return Fe.value(De,Je)}).filter(function(De){var Je=ne.value.get(De);return!(Je!=null&&Je.disabled)||ve.value.has(De)}))}}:Ve===SELECTION_INVERT?{key:"invert",text:Be.value.selectInvert,onSelect:function(){var De=new Set(ve.value);Me.value.forEach(function(ze,Ge){var qe=Fe.value(ze,Ge),Ke=ne.value.get(qe);Ke!=null&&Ke.disabled||(De.has(qe)?De.delete(qe):De.add(qe))});var Je=Array.from(De);Te&&(devWarning(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Te(Je)),pe(Je)}}:Ve===SELECTION_NONE?{key:"none",text:Be.value.selectNone,onSelect:function(){xe==null||xe(),pe(Array.from(ve.value).filter(function(De){var Je=ne.value.get(De);return Je==null?void 0:Je.disabled}))}}:Ve})}),$e=computed(function(){return te.value.length}),we=function(Te){var xe,ke=U.value,Ie=ke.onSelectAll,Ae=ke.onSelectMultiple,Me=ke.columnWidth,Fe=ke.type,Be=ke.fixed,Ne=ke.renderCell,Ve=ke.hideSelectAll,Le=ke.checkStrictly,De=H.prefixCls,Je=H.getRecordByKey,ze=H.getRowKey,Ge=H.expandType,qe=H.getPopupContainer;if(!C.value)return Te.filter(function(lt){return lt!==SELECTION_COLUMN});var Ke=Te.slice(),Ee=new Set(ve.value),Ce=te.value.map(ze.value).filter(function(lt){return!ne.value.get(lt).disabled}),Pe=Ce.every(function(lt){return Ee.has(lt)}),Re=Ce.some(function(lt){return Ee.has(lt)}),Ze=function(){var ct=[];Pe?Ce.forEach(function(_t){Ee.delete(_t),ct.push(_t)}):Ce.forEach(function(_t){Ee.has(_t)||(Ee.add(_t),ct.push(_t))});var vt=Array.from(Ee);Ie==null||Ie(!Pe,vt.map(function(_t){return Je(_t)}),ct.map(function(_t){return Je(_t)})),pe(vt)},Oe;if(Fe!=="radio"){var Qe;if(ye.value){var Xe=createVNode(Menu,{getPopupContainer:qe.value},{default:function(){return[ye.value.map(function(ct,vt){var _t=ct.key,rt=ct.text,ut=ct.onSelect;return createVNode(Menu.Item,{key:_t||vt,onClick:function(){ut==null||ut(Ce)}},{default:function(){return[rt]}})})]}});Qe=createVNode("div",{class:"".concat(De.value,"-selection-extra")},[createVNode(Dropdown$1,{overlay:Xe,getPopupContainer:qe.value},{default:function(){return[createVNode("span",null,[createVNode(DownOutlined$1,null,null)])]}})])}var et=te.value.map(function(lt,ct){var vt=ze.value(lt,ct),_t=ne.value.get(vt)||{};return _objectSpread2$1({checked:Ee.has(vt)},_t)}).filter(function(lt){var ct=lt.disabled;return ct}),We=!!et.length&&et.length===$e.value,He=We&&et.every(function(lt){var ct=lt.checked;return ct}),Ye=We&&et.some(function(lt){var ct=lt.checked;return ct});Oe=!Ve&&createVNode("div",{class:"".concat(De.value,"-selection")},[createVNode(Checkbox,{checked:We?He:!!$e.value&&Pe,indeterminate:We?!He&&Ye:!Pe&&Re,onChange:Ze,disabled:$e.value===0||We,skipGroup:!0},null),Qe])}var nt;Fe==="radio"?nt=function(ct){var vt=ct.record,_t=ct.index,rt=ze.value(vt,_t),ut=Ee.has(rt);return{node:createVNode(Radio,_objectSpread2$1(_objectSpread2$1({},ne.value.get(rt)),{},{checked:ut,onClick:function(Tt){return Tt.stopPropagation()},onChange:function(Tt){Ee.has(rt)||fe(rt,!0,[rt],Tt.nativeEvent)}}),null),checked:ut}}:nt=function(ct){var vt=ct.record,_t=ct.index,rt=ze.value(vt,_t),ut=Ee.has(rt),ot=ge.value.has(rt),Tt=ne.value.get(rt),ft;if(Ge.value==="nest")ft=ot,devWarning(typeof(Tt==null?void 0:Tt.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");else{var Ct;ft=(Ct=Tt==null?void 0:Tt.indeterminate)!==null&&Ct!==void 0?Ct:ot}return{node:createVNode(Checkbox,_objectSpread2$1(_objectSpread2$1({},Tt),{},{indeterminate:ft,checked:ut,skipGroup:!0,onClick:function(Rt){return Rt.stopPropagation()},onChange:function(Rt){var It=Rt.nativeEvent,Ft=It.shiftKey,Pt=-1,Ht=-1;if(Ft&&Le){var Dt=new Set([_e.value,rt]);Ce.some(function(en,dn){if(Dt.has(en))if(Pt===-1)Pt=dn;else return Ht=dn,!0;return!1})}if(Ht!==-1&&Pt!==Ht&&Le){var jt=Ce.slice(Pt,Ht+1),on=[];ut?jt.forEach(function(en){Ee.has(en)&&(on.push(en),Ee.delete(en))}):jt.forEach(function(en){Ee.has(en)||(on.push(en),Ee.add(en))});var un=Array.from(Ee);Ae==null||Ae(!ut,un.map(function(en){return Je(en)}),on.map(function(en){return Je(en)})),pe(un)}else{var Yt=ue.value;if(Le){var Wt=ut?arrDel(Yt,rt):arrAdd(Yt,rt);fe(rt,!ut,Wt,It)}else{var Qt=conductCheck([].concat(_toConsumableArray$1(Yt),[rt]),!0,ie.value,oe.value,se.value,le),Zt=Qt.checkedKeys,Xt=Qt.halfCheckedKeys,Jt=Zt;if(ut){var sn=new Set(Zt);sn.delete(rt),Jt=conductCheck(Array.from(sn),{checked:!1,halfCheckedKeys:Xt},ie.value,oe.value,se.value,le).checkedKeys}fe(rt,!ut,Jt,It)}}be(rt)}}),null),checked:ut}};var tt=function(ct){var vt=ct.record,_t=ct.index,rt=nt({record:vt,index:_t}),ut=rt.node,ot=rt.checked;return Ne?Ne(ot,vt,_t,ut):ut};if(!Ke.includes(SELECTION_COLUMN))if(Ke.findIndex(function(lt){var ct;return((ct=lt[INTERNAL_COL_DEFINE])===null||ct===void 0?void 0:ct.columnType)==="EXPAND_COLUMN"})===0){var at=Ke,St=_toArray(at),st=St[0],it=St.slice(1);Ke=[st,SELECTION_COLUMN].concat(_toConsumableArray$1(it))}else Ke=[SELECTION_COLUMN].concat(_toConsumableArray$1(Ke));var pt=Ke.indexOf(SELECTION_COLUMN);Ke=Ke.filter(function(lt,ct){return lt!==SELECTION_COLUMN||ct===pt});var wt=Ke[pt-1],xt=Ke[pt+1],mt=Be;mt===void 0&&((xt==null?void 0:xt.fixed)!==void 0?mt=xt.fixed:(wt==null?void 0:wt.fixed)!==void 0&&(mt=wt.fixed)),mt&&wt&&((xe=wt[INTERNAL_COL_DEFINE])===null||xe===void 0?void 0:xe.columnType)==="EXPAND_COLUMN"&&wt.fixed===void 0&&(wt.fixed=mt);var gt=_defineProperty$M({fixed:mt,width:Me,className:"".concat(De.value,"-selection-column"),title:U.value.columnTitle||Oe,customRender:tt},INTERNAL_COL_DEFINE,{class:"".concat(De.value,"-selection-col")});return Ke.map(function(lt){return lt===SELECTION_COLUMN?gt:lt})};return[we,ve]}var CaretDownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const CaretDownOutlinedSvg=CaretDownOutlined$2;function _objectSpread$k(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$l(C,G,U[G])})}return C}function _defineProperty$l(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CaretDownOutlined=function(H,U){var W=_objectSpread$k({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$k({},W,{icon:CaretDownOutlinedSvg}),null)};CaretDownOutlined.displayName="CaretDownOutlined";CaretDownOutlined.inheritAttrs=!1;const CaretDownOutlined$1=CaretDownOutlined;var CaretUpOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const CaretUpOutlinedSvg=CaretUpOutlined$2;function _objectSpread$j(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$k(C,G,U[G])})}return C}function _defineProperty$k(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CaretUpOutlined=function(H,U){var W=_objectSpread$j({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$j({},W,{icon:CaretUpOutlinedSvg}),null)};CaretUpOutlined.displayName="CaretUpOutlined";CaretUpOutlined.inheritAttrs=!1;const CaretUpOutlined$1=CaretUpOutlined;var _excluded$5=["default"];function getColumnKey(C,H){return"key"in C&&C.key!==void 0&&C.key!==null?C.key:C.dataIndex?Array.isArray(C.dataIndex)?C.dataIndex.join("."):C.dataIndex:H}function getColumnPos(C,H){return H?"".concat(H,"-").concat(C):"".concat(C)}function renderColumnTitle(C,H){return typeof C=="function"?C(H):C}function convertChildrenToColumns(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=flattenChildren(C),U=[];return H.forEach(function(W){var G,X,Z;if(!!W){for(var Q=W.key,ee=((G=W.props)===null||G===void 0?void 0:G.style)||{},ie=((X=W.props)===null||X===void 0?void 0:X.class)||"",te=W.props||{},ne=0,ae=Object.entries(te);ne<ae.length;ne++){var oe=_slicedToArray$2(ae[ne],2),se=oe[0],le=oe[1];te[camelize$1(se)]=le}var ce=W.children||{},ue=ce.default,de=_objectWithoutProperties$4(ce,_excluded$5),ve=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},de),te),{},{style:ee,class:ie});if(Q&&(ve.key=Q),(Z=W.type)!==null&&Z!==void 0&&Z.__ANT_TABLE_COLUMN_GROUP)ve.children=convertChildrenToColumns(typeof ue=="function"?ue():ue);else{var ge,he=(ge=W.children)===null||ge===void 0?void 0:ge.default;ve.customRender=ve.customRender||he}U.push(ve)}}),U}var ASCEND="ascend",DESCEND="descend";function getMultiplePriority(C){return _typeof$3(C.sorter)==="object"&&typeof C.sorter.multiple=="number"?C.sorter.multiple:!1}function getSortFunction(C){return typeof C=="function"?C:C&&_typeof$3(C)==="object"&&C.compare?C.compare:!1}function nextSortDirection(C,H){return H?C[C.indexOf(H)+1]:C[0]}function collectSortStates(C,H,U){var W=[];function G(X,Z){W.push({column:X,key:getColumnKey(X,Z),multiplePriority:getMultiplePriority(X),sortOrder:X.sortOrder})}return(C||[]).forEach(function(X,Z){var Q=getColumnPos(Z,U);X.children?("sortOrder"in X&&G(X,Q),W=[].concat(_toConsumableArray$1(W),_toConsumableArray$1(collectSortStates(X.children,H,Q)))):X.sorter&&("sortOrder"in X?G(X,Q):H&&X.defaultSortOrder&&W.push({column:X,key:getColumnKey(X,Q),multiplePriority:getMultiplePriority(X),sortOrder:X.defaultSortOrder}))}),W}function injectSorter(C,H,U,W,G,X,Z,Q){return(H||[]).map(function(ee,ie){var te=getColumnPos(ie,Q),ne=ee;if(ne.sorter){var ae=ne.sortDirections||G,oe=ne.showSorterTooltip===void 0?Z:ne.showSorterTooltip,se=getColumnKey(ne,te),le=U.find(function(fe){var ye=fe.key;return ye===se}),ce=le?le.sortOrder:null,ue=nextSortDirection(ae,ce),de=ae.includes(ASCEND)&&createVNode(CaretUpOutlined$1,{class:classNames("".concat(C,"-column-sorter-up"),{active:ce===ASCEND})},null),ve=ae.includes(DESCEND)&&createVNode(CaretDownOutlined$1,{class:classNames("".concat(C,"-column-sorter-down"),{active:ce===DESCEND})},null),ge=X||{},he=ge.cancelSort,me=ge.triggerAsc,_e=ge.triggerDesc,be=he;ue===DESCEND?be=_e:ue===ASCEND&&(be=me);var pe=_typeof$3(oe)==="object"?oe:{title:be};ne=_objectSpread2$1(_objectSpread2$1({},ne),{},{className:classNames(ne.className,_defineProperty$M({},"".concat(C,"-column-sort"),ce)),title:function(ye){var $e=createVNode("div",{class:"".concat(C,"-column-sorters")},[createVNode("span",{class:"".concat(C,"-column-title")},[renderColumnTitle(ee.title,ye)]),createVNode("span",{class:classNames("".concat(C,"-column-sorter"),_defineProperty$M({},"".concat(C,"-column-sorter-full"),!!(de&&ve)))},[createVNode("span",{class:"".concat(C,"-column-sorter-inner")},[de,ve])])]);return oe?createVNode(__unplugin_components_0$3,pe,{default:function(){return[$e]}}):$e},customHeaderCell:function(ye){var $e=ee.customHeaderCell&&ee.customHeaderCell(ye)||{},we=$e.onClick;return $e.onClick=function(Se){W({column:ee,key:se,sortOrder:ue,multiplePriority:getMultiplePriority(ee)}),we&&we(Se)},$e.class=classNames($e.class,"".concat(C,"-column-has-sorters")),$e}})}return"children"in ne&&(ne=_objectSpread2$1(_objectSpread2$1({},ne),{},{children:injectSorter(C,ne.children,U,W,G,X,Z,te)})),ne})}function stateToInfo(C){var H=C.column,U=C.sortOrder;return{column:H,order:U,field:H.dataIndex,columnKey:H.key}}function generateSorterInfo(C){var H=C.filter(function(U){var W=U.sortOrder;return W}).map(stateToInfo);return H.length===0&&C.length?_objectSpread2$1(_objectSpread2$1({},stateToInfo(C[C.length-1])),{},{column:void 0}):H.length<=1?H[0]||{}:H}function getSortData(C,H,U){var W=H.slice().sort(function(Z,Q){return Q.multiplePriority-Z.multiplePriority}),G=C.slice(),X=W.filter(function(Z){var Q=Z.column.sorter,ee=Z.sortOrder;return getSortFunction(Q)&&ee});return X.length?G.sort(function(Z,Q){for(var ee=0;ee<X.length;ee+=1){var ie=X[ee],te=ie.column.sorter,ne=ie.sortOrder,ae=getSortFunction(te);if(ae&&ne){var oe=ae(Z,Q,ne);if(oe!==0)return ne===ASCEND?oe:-oe}}return 0}).map(function(Z){var Q=Z[U];return Q?_objectSpread2$1(_objectSpread2$1({},Z),{},_defineProperty$M({},U,getSortData(Q,H,U))):Z}):G}function useFilterSorter(C){var H=C.prefixCls,U=C.mergedColumns,W=C.onSorterChange,G=C.sortDirections,X=C.tableLocale,Z=C.showSorterTooltip,Q=useState(collectSortStates(U.value,!0)),ee=_slicedToArray$2(Q,2),ie=ee[0],te=ee[1],ne=computed(function(){var ce=!0,ue=collectSortStates(U.value,!1);if(!ue.length)return ie.value;var de=[];function ve(he){ce?de.push(he):de.push(_objectSpread2$1(_objectSpread2$1({},he),{},{sortOrder:null}))}var ge=null;return ue.forEach(function(he){ge===null?(ve(he),he.sortOrder&&(he.multiplePriority===!1?ce=!1:ge=!0)):(ge&&he.multiplePriority!==!1||(ce=!1),ve(he))}),de}),ae=computed(function(){var ce=ne.value.map(function(ue){var de=ue.column,ve=ue.sortOrder;return{column:de,order:ve}});return{sortColumns:ce,sortColumn:ce[0]&&ce[0].column,sortOrder:ce[0]&&ce[0].order}});function oe(ce){var ue;ce.multiplePriority===!1||!ne.value.length||ne.value[0].multiplePriority===!1?ue=[ce]:ue=[].concat(_toConsumableArray$1(ne.value.filter(function(de){var ve=de.key;return ve!==ce.key})),[ce]),te(ue),W(generateSorterInfo(ue),ue)}var se=function(ue){return injectSorter(H.value,ue,ne.value,oe,G.value,X.value,Z.value)},le=computed(function(){return generateSorterInfo(ne.value)});return[se,ne,ae,le]}var FilterFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const FilterFilledSvg=FilterFilled$2;function _objectSpread$i(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$j(C,G,U[G])})}return C}function _defineProperty$j(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FilterFilled=function(H,U){var W=_objectSpread$i({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$i({},W,{icon:FilterFilledSvg}),null)};FilterFilled.displayName="FilterFilled";FilterFilled.inheritAttrs=!1;const FilterFilled$1=FilterFilled;var FilterDropdownMenuWrapper=function(H,U){var W,G=U.slots;return createVNode("div",{onClick:function(Z){return Z.stopPropagation()}},[(W=G.default)===null||W===void 0?void 0:W.call(G)])};const FilterDropdownMenuWrapper$1=FilterDropdownMenuWrapper,FilterSearch=defineComponent({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:String,onChange:Function,filterSearch:Boolean,tablePrefixCls:String,locale:{type:Object,default:void 0}},setup:function(H){return function(){var U=H.value,W=H.onChange,G=H.filterSearch,X=H.tablePrefixCls,Z=H.locale;return G?createVNode("div",{class:"".concat(X,"-filter-dropdown-search")},[createVNode(Input,{placeholder:Z.filterSearchPlaceholder,onChange:W,value:U,htmlSize:1,class:"".concat(X,"-filter-dropdown-search-input")},{prefix:function(){return createVNode(SearchOutlined$1,null,null)}})]):null}}});var _excluded$4=["motion","motionNodes","motionType","active","eventKey"];const MotionTreeNode=defineComponent({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:_objectSpread2$1(_objectSpread2$1({},treeNodeProps),{},{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),slots:["title","icon","switcherIcon","checkable"],setup:function(H,U){var W=U.attrs,G=U.slots,X=ref(!0),Z=useInjectTreeContext(),Q=ref(!1),ee=computed(function(){return H.motion?H.motion:collapseMotion$1()}),ie=function(ne,ae){if(ae==="appear"){var oe,se;(oe=ee.value)===null||oe===void 0||(se=oe.onAfterEnter)===null||se===void 0||se.call(oe,ne)}else if(ae==="leave"){var le,ce;(le=ee.value)===null||le===void 0||(ce=le.onAfterLeave)===null||ce===void 0||ce.call(le,ne)}Q.value||H.onMotionEnd(),Q.value=!0};return watch(function(){return H.motionNodes},function(){H.motionNodes&&H.motionType==="hide"&&X.value&&nextTick$1(function(){X.value=!1})},{immediate:!0,flush:"post"}),onMounted(function(){H.motionNodes&&H.onMotionStart()}),onBeforeUnmount(function(){H.motionNodes&&ie()}),function(){H.motion;var te=H.motionNodes,ne=H.motionType,ae=H.active,oe=H.eventKey,se=_objectWithoutProperties$4(H,_excluded$4);return te?createVNode(Transition$1,_objectSpread2$1(_objectSpread2$1({},ee.value),{},{appear:ne==="show",onAfterAppear:function(ce){return ie(ce,"appear")},onAfterLeave:function(ce){return ie(ce,"leave")}}),{default:function(){return[withDirectives(createVNode("div",{class:"".concat(Z.value.prefixCls,"-treenode-motion")},[te.map(function(ce){var ue=_extends$1({},(_objectDestructuringEmpty(ce.data),ce.data)),de=ce.title,ve=ce.key,ge=ce.isStart,he=ce.isEnd;return delete ue.children,createVNode(VcTreeNode,_objectSpread2$1(_objectSpread2$1({},ue),{},{title:de,active:ae,data:ce.data,key:ve,eventKey:ve,isStart:ge,isEnd:he}),G)})]),[[vShow,X.value]])]}}):createVNode(VcTreeNode,_objectSpread2$1(_objectSpread2$1({domRef:ref,class:W.class,style:W.style},se),{},{active:ae,eventKey:oe}),G)}}});function findExpandedKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=C.length,W=H.length;if(Math.abs(U-W)!==1)return{add:!1,key:null};function G(X,Z){var Q=new Map;X.forEach(function(ie){Q.set(ie,!0)});var ee=Z.filter(function(ie){return!Q.has(ie)});return ee.length===1?ee[0]:null}return U<W?{add:!0,key:G(C,H)}:{add:!1,key:G(H,C)}}function getExpandRange(C,H,U){var W=C.findIndex(function(Q){return Q.key===U}),G=C[W+1],X=H.findIndex(function(Q){return Q.key===U});if(G){var Z=H.findIndex(function(Q){return Q.key===G.key});return H.slice(X+1,Z)}return H.slice(X+1)}var _excluded$3=["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop$4=function(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(C,H,U,W){return H===!1||!U?C:C.slice(0,Math.ceil(U/W)+1)}function itemKey(C){var H=C.key,U=C.pos;return getKey(H,U)}function getAccessibilityPath(C){for(var H=String(C.key),U=C;U.parent;)U=U.parent,H="".concat(U.key," > ").concat(H);return H}const NodeList$1=defineComponent({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:nodeListProps,setup:function(H,U){var W=U.expose,G=U.attrs,X=ref(),Z=ref(),Q=useInjectKeysState(),ee=Q.expandedKeys,ie=Q.flattenNodes;W({scrollTo:function(de){X.value.scrollTo(de)},getIndentWidth:function(){return Z.value.offsetWidth}});var te=shallowRef(ie.value),ne=shallowRef([]),ae=ref(null);function oe(){te.value=ie.value,ne.value=[],ae.value=null,H.onListChangeEnd()}var se=useInjectTreeContext();watch([function(){return ee.value.slice()},ie],function(ue,de){var ve=_slicedToArray$2(ue,2),ge=ve[0],he=ve[1],me=_slicedToArray$2(de,2),_e=me[0],be=me[1],pe=findExpandedKeys(_e,ge);if(pe.key!==null){var fe=H.virtual,ye=H.height,$e=H.itemHeight;if(pe.add){var we=be.findIndex(function(Ae){var Me=Ae.key;return Me===pe.key}),Se=getMinimumRangeTransitionRange(getExpandRange(be,he,pe.key),fe,ye,$e),Te=be.slice();Te.splice(we+1,0,MotionFlattenData),te.value=Te,ne.value=Se,ae.value="show"}else{var xe=he.findIndex(function(Ae){var Me=Ae.key;return Me===pe.key}),ke=getMinimumRangeTransitionRange(getExpandRange(he,be,pe.key),fe,ye,$e),Ie=he.slice();Ie.splice(xe+1,0,MotionFlattenData),te.value=Ie,ne.value=ke,ae.value="hide"}}else be!==he&&(te.value=he)}),watch(function(){return se.value.dragging},function(ue){ue||oe()});var le=computed(function(){return H.motion===void 0?te.value:ie.value}),ce=function(){H.onActiveChange(null)};return function(){var ue=_objectSpread2$1(_objectSpread2$1({},H),G),de=ue.prefixCls;ue.selectable,ue.checkable;var ve=ue.disabled,ge=ue.motion,he=ue.height,me=ue.itemHeight,_e=ue.virtual,be=ue.focusable,pe=ue.activeItem,fe=ue.focused,ye=ue.tabindex,$e=ue.onKeydown,we=ue.onFocus,Se=ue.onBlur,Te=ue.onListChangeStart;ue.onListChangeEnd;var xe=_objectWithoutProperties$4(ue,_excluded$3);return createVNode(Fragment,null,[fe&&pe&&createVNode("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},[getAccessibilityPath(pe)]),createVNode("div",null,[createVNode("input",{style:HIDDEN_STYLE,disabled:be===!1||ve,tabindex:be!==!1?ye:null,onKeydown:$e,onFocus:we,onBlur:Se,value:"",onChange:noop$4,"aria-label":"for screen reader"},null)]),createVNode("div",{class:"".concat(de,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[createVNode("div",{class:"".concat(de,"-indent")},[createVNode("div",{ref:Z,class:"".concat(de,"-indent-unit")},null)])]),createVNode(List$2,_objectSpread2$1(_objectSpread2$1({},omit$2(xe,["onActiveChange"])),{},{data:le.value,itemKey,height:he,fullHeight:!1,virtual:_e,itemHeight:me,prefixCls:"".concat(de,"-list"),ref:X,onVisibleChange:function(Ie,Ae){var Me=new Set(Ie),Fe=Ae.filter(function(Be){return!Me.has(Be)});Fe.some(function(Be){return itemKey(Be)===MOTION_KEY})&&oe()}}),{default:function(Ie){var Ae=Ie.pos,Me=_extends$1({},(_objectDestructuringEmpty(Ie.data),Ie.data)),Fe=Ie.title,Be=Ie.key,Ne=Ie.isStart,Ve=Ie.isEnd,Le=getKey(Be,Ae);return delete Me.key,delete Me.children,createVNode(MotionTreeNode,_objectSpread2$1(_objectSpread2$1({},Me),{},{eventKey:Le,title:Fe,active:!!pe&&Be===pe.key,data:Ie.data,isStart:Ne,isEnd:Ve,motion:ge,motionNodes:Be===MOTION_KEY?ne.value:null,motionType:ae.value,onMotionStart:Te,onMotionEnd:oe,onMousemove:ce}),null)}})])}}});function DropIndicator(C){var H=C.dropPosition,U=C.dropLevelOffset,W=C.indent,G={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(H){case-1:G.top=0,G.left="".concat(-U*W,"px");break;case 1:G.bottom=0,G.left="".concat(-U*W,"px");break;case 0:G.bottom=0,G.left="".concat(W);break}return createVNode("div",{style:G},null)}var MAX_RETRY_TIMES=10;const Tree$2=defineComponent({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:initDefaultProps$1(treeProps$1(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:DropIndicator,allowDrop:function(){return!0}}),setup:function(H,U){var W=U.attrs,G=U.slots,X=U.expose,Z=ref(!1),Q={},ee=ref(),ie=shallowRef([]),te=shallowRef([]),ne=shallowRef([]),ae=shallowRef([]),oe=shallowRef([]),se=shallowRef([]),le={},ce=reactive({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),ue=shallowRef([]);watch([function(){return H.treeData},function(){return H.children}],function(){ue.value=H.treeData!==void 0?toRaw(H.treeData).slice():convertTreeToData(toRaw(H.children))},{immediate:!0,deep:!0});var de=shallowRef({}),ve=ref(!1),ge=ref(null),he=ref(!1),me=computed(function(){return fillFieldNames(H.fieldNames)}),_e=ref(),be=null,pe=null,fe=null,ye=computed(function(){return{expandedKeysSet:$e.value,selectedKeysSet:we.value,loadedKeysSet:Se.value,loadingKeysSet:Te.value,checkedKeysSet:xe.value,halfCheckedKeysSet:ke.value,dragOverNodeKey:ce.dragOverNodeKey,dropPosition:ce.dropPosition,keyEntities:de.value}}),$e=computed(function(){return new Set(se.value)}),we=computed(function(){return new Set(ie.value)}),Se=computed(function(){return new Set(ae.value)}),Te=computed(function(){return new Set(oe.value)}),xe=computed(function(){return new Set(te.value)}),ke=computed(function(){return new Set(ne.value)});watchEffect(function(){if(ue.value){var xt=convertDataToEntities(ue.value,{fieldNames:me.value});de.value=_objectSpread2$1(_defineProperty$M({},MOTION_KEY,MotionEntity),xt.keyEntities)}});var Ie=!1;watch([function(){return H.expandedKeys},function(){return H.autoExpandParent},de],function(xt,mt){var gt=_slicedToArray$2(xt,2);gt[0];var lt=gt[1],ct=_slicedToArray$2(mt,2);ct[0];var vt=ct[1],_t=se.value;if(H.expandedKeys!==void 0||Ie&<!==vt)_t=H.autoExpandParent||!Ie&&H.defaultExpandParent?conductExpandParent(H.expandedKeys,de.value):H.expandedKeys;else if(!Ie&&H.defaultExpandAll){var rt=_objectSpread2$1({},de.value);delete rt[MOTION_KEY],_t=Object.keys(rt).map(function(ut){return rt[ut].key})}else!Ie&&H.defaultExpandedKeys&&(_t=H.autoExpandParent||H.defaultExpandParent?conductExpandParent(H.defaultExpandedKeys,de.value):H.defaultExpandedKeys);_t&&(se.value=_t),Ie=!0},{immediate:!0});var Ae=shallowRef([]);watchEffect(function(){Ae.value=flattenTreeData(ue.value,se.value,me.value)}),watchEffect(function(){H.selectable&&(H.selectedKeys!==void 0?ie.value=calcSelectedKeys(H.selectedKeys,H):!Ie&&H.defaultSelectedKeys&&(ie.value=calcSelectedKeys(H.defaultSelectedKeys,H)))});var Me=useMaxLevel(de),Fe=Me.maxLevel,Be=Me.levelEntities;watchEffect(function(){if(H.checkable){var xt;if(H.checkedKeys!==void 0?xt=parseCheckedKeys(H.checkedKeys)||{}:!Ie&&H.defaultCheckedKeys?xt=parseCheckedKeys(H.defaultCheckedKeys)||{}:ue.value&&(xt=parseCheckedKeys(H.checkedKeys)||{checkedKeys:te.value,halfCheckedKeys:ne.value}),xt){var mt=xt,gt=mt.checkedKeys,lt=gt===void 0?[]:gt,ct=mt.halfCheckedKeys,vt=ct===void 0?[]:ct;if(!H.checkStrictly){var _t=conductCheck(lt,!0,de.value,Fe.value,Be.value);lt=_t.checkedKeys,vt=_t.halfCheckedKeys}te.value=lt,ne.value=vt}}}),watchEffect(function(){H.loadedKeys&&(ae.value=H.loadedKeys)});var Ne=function(){_extends$1(ce,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},Ve=function(mt){_e.value.scrollTo(mt)};watch(function(){return H.activeKey},function(){H.activeKey!==void 0&&(ge.value=H.activeKey)},{immediate:!0}),watch(ge,function(xt){nextTick$1(function(){xt!==null&&Ve({key:xt})})},{immediate:!0,flush:"post"});var Le=function(mt){H.expandedKeys===void 0&&(se.value=mt)},De=function(){ce.draggingNodeKey!==null&&_extends$1(ce,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),be=null,fe=null},Je=function(mt,gt){var lt=H.onDragend;ce.dragOverNodeKey=null,De(),lt==null||lt({event:mt,node:gt.eventData}),pe=null},ze=function xt(mt){Je(mt,null),window.removeEventListener("dragend",xt)},Ge=function(mt,gt){var lt=H.onDragstart,ct=gt.eventKey,vt=gt.eventData;pe=gt,be={x:mt.clientX,y:mt.clientY};var _t=arrDel(se.value,ct);ce.draggingNodeKey=ct,ce.dragChildrenKeys=getDragChildrenKeys(ct,de.value),ee.value=_e.value.getIndentWidth(),Le(_t),window.addEventListener("dragend",ze),lt&<({event:mt,node:vt})},qe=function(mt,gt){var lt=H.onDragenter,ct=H.onExpand,vt=H.allowDrop,_t=H.direction,rt=gt.pos,ut=gt.eventKey;if(fe!==ut&&(fe=ut),!pe){Ne();return}var ot=calcDropPosition(mt,pe,gt,ee.value,be,vt,Ae.value,de.value,$e.value,_t),Tt=ot.dropPosition,ft=ot.dropLevelOffset,Ct=ot.dropTargetKey,At=ot.dropContainerKey,Rt=ot.dropTargetPos,It=ot.dropAllowed,Ft=ot.dragOverNodeKey;if(ce.dragChildrenKeys.indexOf(Ct)!==-1||!It){Ne();return}if(Q||(Q={}),Object.keys(Q).forEach(function(Pt){clearTimeout(Q[Pt])}),pe.eventKey!==gt.eventKey&&(Q[rt]=window.setTimeout(function(){if(ce.draggingNodeKey!==null){var Pt=se.value.slice(),Ht=de.value[gt.eventKey];Ht&&(Ht.children||[]).length&&(Pt=arrAdd(se.value,gt.eventKey)),Le(Pt),ct&&ct(Pt,{node:gt.eventData,expanded:!0,nativeEvent:mt})}},800)),pe.eventKey===Ct&&ft===0){Ne();return}_extends$1(ce,{dragOverNodeKey:Ft,dropPosition:Tt,dropLevelOffset:ft,dropTargetKey:Ct,dropContainerKey:At,dropTargetPos:Rt,dropAllowed:It}),lt&<({event:mt,node:gt.eventData,expandedKeys:se.value})},Ke=function(mt,gt){var lt=H.onDragover,ct=H.allowDrop,vt=H.direction;if(!!pe){var _t=calcDropPosition(mt,pe,gt,ee.value,be,ct,Ae.value,de.value,$e.value,vt),rt=_t.dropPosition,ut=_t.dropLevelOffset,ot=_t.dropTargetKey,Tt=_t.dropContainerKey,ft=_t.dropAllowed,Ct=_t.dropTargetPos,At=_t.dragOverNodeKey;ce.dragChildrenKeys.indexOf(ot)!==-1||!ft||(pe.eventKey===ot&&ut===0?ce.dropPosition===null&&ce.dropLevelOffset===null&&ce.dropTargetKey===null&&ce.dropContainerKey===null&&ce.dropTargetPos===null&&ce.dropAllowed===!1&&ce.dragOverNodeKey===null||Ne():rt===ce.dropPosition&&ut===ce.dropLevelOffset&&ot===ce.dropTargetKey&&Tt===ce.dropContainerKey&&Ct===ce.dropTargetPos&&ft===ce.dropAllowed&&At===ce.dragOverNodeKey||_extends$1(ce,{dropPosition:rt,dropLevelOffset:ut,dropTargetKey:ot,dropContainerKey:Tt,dropTargetPos:Ct,dropAllowed:ft,dragOverNodeKey:At}),lt&<({event:mt,node:gt.eventData}))}},Ee=function(mt,gt){fe===gt.eventKey&&!mt.currentTarget.contains(mt.relatedTarget)&&(Ne(),fe=null);var lt=H.onDragleave;lt&<({event:mt,node:gt.eventData})},Ce=function(mt,gt){var lt,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,vt=ce.dragChildrenKeys,_t=ce.dropPosition,rt=ce.dropTargetKey,ut=ce.dropTargetPos,ot=ce.dropAllowed;if(!!ot){var Tt=H.onDrop;if(ce.dragOverNodeKey=null,De(),rt!==null){var ft=_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(rt,toRaw(ye.value))),{},{active:((lt=st.value)===null||lt===void 0?void 0:lt.key)===rt,data:de.value[rt].node});vt.indexOf(rt);var Ct=posToArr(ut),At={event:mt,node:convertNodePropsToEventData(ft),dragNode:pe?pe.eventData:null,dragNodesKeys:[pe.eventKey].concat(vt),dropToGap:_t!==0,dropPosition:_t+Number(Ct[Ct.length-1])};ct||Tt==null||Tt(At),pe=null}}},Pe=function(mt,gt){var lt=H.onClick;lt&<(mt,gt)},Re=function(mt,gt){var lt=H.onDblclick;lt&<(mt,gt)},Ze=function(mt,gt){var lt=ie.value,ct=H.onSelect,vt=H.multiple,_t=gt.selected,rt=gt[me.value.key],ut=!_t;ut?vt?lt=arrAdd(lt,rt):lt=[rt]:lt=arrDel(lt,rt);var ot=de.value,Tt=lt.map(function(ft){var Ct=ot[ft];return Ct?Ct.node:null}).filter(function(ft){return ft});H.selectedKeys===void 0&&(ie.value=lt),ct&&ct(lt,{event:"select",selected:ut,node:gt,selectedNodes:Tt,nativeEvent:mt})},Oe=function(mt,gt,lt){var ct=H.checkStrictly,vt=H.onCheck,_t=gt[me.value.key],rt,ut={event:"check",node:gt,checked:lt,nativeEvent:mt},ot=de.value;if(ct){var Tt=lt?arrAdd(te.value,_t):arrDel(te.value,_t),ft=arrDel(ne.value,_t);rt={checked:Tt,halfChecked:ft},ut.checkedNodes=Tt.map(function(Pt){return ot[Pt]}).filter(function(Pt){return Pt}).map(function(Pt){return Pt.node}),H.checkedKeys===void 0&&(te.value=Tt)}else{var Ct=conductCheck([].concat(_toConsumableArray$1(te.value),[_t]),!0,ot,Fe.value,Be.value),At=Ct.checkedKeys,Rt=Ct.halfCheckedKeys;if(!lt){var It=new Set(At);It.delete(_t);var Ft=conductCheck(Array.from(It),{checked:!1,halfCheckedKeys:Rt},ot,Fe.value,Be.value);At=Ft.checkedKeys,Rt=Ft.halfCheckedKeys}rt=At,ut.checkedNodes=[],ut.checkedNodesPositions=[],ut.halfCheckedKeys=Rt,At.forEach(function(Pt){var Ht=ot[Pt];if(!!Ht){var Dt=Ht.node,jt=Ht.pos;ut.checkedNodes.push(Dt),ut.checkedNodesPositions.push({node:Dt,pos:jt})}}),H.checkedKeys===void 0&&(te.value=At,ne.value=Rt)}vt&&vt(rt,ut)},Qe=function(mt){var gt=mt[me.value.key],lt=new Promise(function(ct,vt){var _t=H.loadData,rt=H.onLoad;if(!_t||Se.value.has(gt)||Te.value.has(gt))return null;var ut=_t(mt);ut.then(function(){var ot=arrAdd(ae.value,gt),Tt=arrDel(oe.value,gt);rt&&rt(ot,{event:"load",node:mt}),H.loadedKeys===void 0&&(ae.value=ot),oe.value=Tt,ct()}).catch(function(ot){var Tt=arrDel(oe.value,gt);if(oe.value=Tt,le[gt]=(le[gt]||0)+1,le[gt]>=MAX_RETRY_TIMES){var ft=arrAdd(ae.value,gt);H.loadedKeys===void 0&&(ae.value=ft),ct()}vt(ot)}),oe.value=arrAdd(oe.value,gt)});return lt.catch(function(){}),lt},Xe=function(mt,gt){var lt=H.onMouseenter;lt&<({event:mt,node:gt})},et=function(mt,gt){var lt=H.onMouseleave;lt&<({event:mt,node:gt})},We=function(mt,gt){var lt=H.onRightClick;lt&&(mt.preventDefault(),lt({event:mt,node:gt}))},He=function(mt){var gt=H.onFocus;ve.value=!0,gt&>(mt)},Ye=function(mt){var gt=H.onBlur;ve.value=!1,St(null),gt&>(mt)},nt=function(mt,gt){var lt=se.value,ct=H.onExpand,vt=H.loadData,_t=gt.expanded,rt=gt[me.value.key];if(!he.value){lt.indexOf(rt);var ut=!_t;if(ut?lt=arrAdd(lt,rt):lt=arrDel(lt,rt),Le(lt),ct&&ct(lt,{node:gt,expanded:ut,nativeEvent:mt}),ut&&vt){var ot=Qe(gt);ot&&ot.then(function(){}).catch(function(Tt){var ft=arrDel(se.value,rt);Le(ft),Promise.reject(Tt)})}}},tt=function(){he.value=!0},at=function(){setTimeout(function(){he.value=!1})},St=function(mt){var gt=H.onActiveChange;ge.value!==mt&&(H.activeKey!==void 0&&(ge.value=mt),mt!==null&&Ve({key:mt}),gt&>(mt))},st=computed(function(){return ge.value===null?null:Ae.value.find(function(xt){var mt=xt.key;return mt===ge.value})||null}),it=function(mt){var gt=Ae.value.findIndex(function(vt){var _t=vt.key;return _t===ge.value});gt===-1&&mt<0&&(gt=Ae.value.length),gt=(gt+mt+Ae.value.length)%Ae.value.length;var lt=Ae.value[gt];if(lt){var ct=lt.key;St(ct)}else St(null)},pt=computed(function(){return convertNodePropsToEventData(_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(ge.value,ye.value)),{},{data:st.value.data,active:!0}))}),wt=function(mt){var gt=H.onKeydown,lt=H.checkable,ct=H.selectable;switch(mt.which){case KeyCode$1.UP:{it(-1),mt.preventDefault();break}case KeyCode$1.DOWN:{it(1),mt.preventDefault();break}}var vt=st.value;if(vt&&vt.data){var _t=vt.data.isLeaf===!1||!!(vt.data.children||[]).length,rt=pt.value;switch(mt.which){case KeyCode$1.LEFT:{_t&&$e.value.has(ge.value)?nt({},rt):vt.parent&&St(vt.parent.key),mt.preventDefault();break}case KeyCode$1.RIGHT:{_t&&!$e.value.has(ge.value)?nt({},rt):vt.children&&vt.children.length&&St(vt.children[0].key),mt.preventDefault();break}case KeyCode$1.ENTER:case KeyCode$1.SPACE:{lt&&!rt.disabled&&rt.checkable!==!1&&!rt.disableCheckbox?Oe({},rt,!xe.value.has(ge.value)):!lt&&ct&&!rt.disabled&&rt.selectable!==!1&&Ze({},rt);break}}}gt&>(mt)};return X({onNodeExpand:nt,scrollTo:Ve,onKeydown:wt,selectedKeys:computed(function(){return ie.value}),checkedKeys:computed(function(){return te.value}),halfCheckedKeys:computed(function(){return ne.value}),loadedKeys:computed(function(){return ae.value}),loadingKeys:computed(function(){return oe.value}),expandedKeys:computed(function(){return se.value})}),onUnmounted(function(){window.removeEventListener("dragend",ze),Z.value=!0}),useProvideKeysState({expandedKeys:se,selectedKeys:ie,loadedKeys:ae,loadingKeys:oe,checkedKeys:te,halfCheckedKeys:ne,expandedKeysSet:$e,selectedKeysSet:we,loadedKeysSet:Se,loadingKeysSet:Te,checkedKeysSet:xe,halfCheckedKeysSet:ke,flattenNodes:Ae}),function(){var xt,mt=ce.draggingNodeKey,gt=ce.dropLevelOffset,lt=ce.dropContainerKey,ct=ce.dropTargetKey,vt=ce.dropPosition,_t=ce.dragOverNodeKey,rt=H.prefixCls,ut=H.showLine,ot=H.focusable,Tt=H.tabindex,ft=Tt===void 0?0:Tt,Ct=H.selectable,At=H.showIcon,Rt=H.icon,It=Rt===void 0?G.icon:Rt,Ft=H.switcherIcon,Pt=H.draggable,Ht=H.checkable,Dt=H.checkStrictly,jt=H.disabled,on=H.motion,un=H.loadData,Yt=H.filterTreeNode,Wt=H.height,Qt=H.itemHeight,Zt=H.virtual,Xt=H.dropIndicatorRender,Jt=H.onContextmenu,sn=H.onScroll,en=H.direction,dn=W.class,Vt=W.style,ht=pickAttrs(_objectSpread2$1(_objectSpread2$1({},H),W),{aria:!0,data:!0}),kt;return Pt&&(_typeof$3(Pt)==="object"?kt=Pt:typeof Pt=="function"?kt={nodeDraggable:Pt}:kt={}),createVNode(TreeContext,{value:{prefixCls:rt,selectable:Ct,showIcon:At,icon:It,switcherIcon:Ft,draggable:kt,draggingNodeKey:mt,checkable:Ht,customCheckable:G.checkable,checkStrictly:Dt,disabled:jt,keyEntities:de.value,dropLevelOffset:gt,dropContainerKey:lt,dropTargetKey:ct,dropPosition:vt,dragOverNodeKey:_t,dragging:mt!==null,indent:ee.value,direction:en,dropIndicatorRender:Xt,loadData:un,filterTreeNode:Yt,onNodeClick:Pe,onNodeDoubleClick:Re,onNodeExpand:nt,onNodeSelect:Ze,onNodeCheck:Oe,onNodeLoad:Qe,onNodeMouseEnter:Xe,onNodeMouseLeave:et,onNodeContextMenu:We,onNodeDragStart:Ge,onNodeDragEnter:qe,onNodeDragOver:Ke,onNodeDragLeave:Ee,onNodeDragEnd:Je,onNodeDrop:Ce,slots:G}},{default:function(){return[createVNode("div",{role:"tree",class:classNames(rt,dn,(xt={},_defineProperty$M(xt,"".concat(rt,"-show-line"),ut),_defineProperty$M(xt,"".concat(rt,"-focused"),ve.value),_defineProperty$M(xt,"".concat(rt,"-active-focused"),ge.value!==null),xt))},[createVNode(NodeList$1,_objectSpread2$1({ref:_e,prefixCls:rt,style:Vt,disabled:jt,selectable:Ct,checkable:!!Ht,motion:on,height:Wt,itemHeight:Qt,virtual:Zt,focusable:ot,focused:ve.value,tabindex:ft,activeItem:st.value,onFocus:He,onBlur:Ye,onKeydown:wt,onActiveChange:St,onListChangeStart:tt,onListChangeEnd:at,onContextmenu:Jt,onScroll:sn},ht),null)])]}})}}});var FileOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const FileOutlinedSvg=FileOutlined$2;function _objectSpread$h(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$i(C,G,U[G])})}return C}function _defineProperty$i(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FileOutlined=function(H,U){var W=_objectSpread$h({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$h({},W,{icon:FileOutlinedSvg}),null)};FileOutlined.displayName="FileOutlined";FileOutlined.inheritAttrs=!1;const FileOutlined$1=FileOutlined;var MinusSquareOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const MinusSquareOutlinedSvg=MinusSquareOutlined$2;function _objectSpread$g(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$h(C,G,U[G])})}return C}function _defineProperty$h(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var MinusSquareOutlined=function(H,U){var W=_objectSpread$g({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$g({},W,{icon:MinusSquareOutlinedSvg}),null)};MinusSquareOutlined.displayName="MinusSquareOutlined";MinusSquareOutlined.inheritAttrs=!1;const MinusSquareOutlined$1=MinusSquareOutlined;var PlusSquareOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const PlusSquareOutlinedSvg=PlusSquareOutlined$2;function _objectSpread$f(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$g(C,G,U[G])})}return C}function _defineProperty$g(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var PlusSquareOutlined=function(H,U){var W=_objectSpread$f({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$f({},W,{icon:PlusSquareOutlinedSvg}),null)};PlusSquareOutlined.displayName="PlusSquareOutlined";PlusSquareOutlined.inheritAttrs=!1;const PlusSquareOutlined$1=PlusSquareOutlined;var CaretDownFilled$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const CaretDownFilledSvg=CaretDownFilled$2;function _objectSpread$e(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$f(C,G,U[G])})}return C}function _defineProperty$f(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CaretDownFilled=function(H,U){var W=_objectSpread$e({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$e({},W,{icon:CaretDownFilledSvg}),null)};CaretDownFilled.displayName="CaretDownFilled";CaretDownFilled.inheritAttrs=!1;const CaretDownFilled$1=CaretDownFilled;function renderSwitcherIcon(C,H,U,W){var G=W.isLeaf,X=W.expanded,Z=W.loading,Q=H;if(Z)return createVNode(LoadingOutlined$1,{class:"".concat(C,"-switcher-loading-icon")},null);var ee;U&&_typeof$3(U)==="object"&&(ee=U.showLeafIcon);var ie=null,te="".concat(C,"-switcher-icon");return G?(U&&(_typeof$3(U)==="object"&&!ee?ie=createVNode("span",{class:"".concat(C,"-switcher-leaf-line")},null):ie=createVNode(FileOutlined$1,{class:"".concat(C,"-switcher-line-icon")},null)),ie):(ie=createVNode(CaretDownFilled$1,{class:te},null),U&&(ie=X?createVNode(MinusSquareOutlined$1,{class:"".concat(C,"-switcher-line-icon")},null):createVNode(PlusSquareOutlined$1,{class:"".concat(C,"-switcher-line-icon")},null)),typeof H=="function"?Q=H(_objectSpread2$1(_objectSpread2$1({},W),{},{defaultIcon:ie,switcherCls:te})):isValidElement(Q)&&(Q=cloneVNode(Q,{class:te})),Q||ie)}var offset$1=4;function dropIndicatorRender(C){var H,U=C.dropPosition,W=C.dropLevelOffset,G=C.prefixCls,X=C.indent,Z=C.direction,Q=Z===void 0?"ltr":Z,ee=Q==="ltr"?"left":"right",ie=Q==="ltr"?"right":"left",te=(H={},_defineProperty$M(H,ee,"".concat(-W*X+offset$1,"px")),_defineProperty$M(H,ie,0),H);switch(U){case-1:te.top="".concat(-3,"px");break;case 1:te.bottom="".concat(-3,"px");break;default:te.bottom="".concat(-3,"px"),te[ee]="".concat(X+offset$1,"px");break}return createVNode("div",{style:te,class:"".concat(G,"-drop-indicator")},null)}var treeProps=function(){var H=treeProps$1();return _objectSpread2$1(_objectSpread2$1({},H),{},{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:PropTypes$1.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:PropTypes$1.any,onDoubleclick:H.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})};const Tree$1=defineComponent({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:initDefaultProps$1(treeProps(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(H,U){var W=U.attrs,G=U.expose,X=U.emit,Z=U.slots;H.treeData===void 0&&Z.default;var Q=useConfigInject("tree",H),ee=Q.prefixCls,ie=Q.direction,te=Q.virtual,ne=ref(),ae=function(ue){var de;(de=ne.value)===null||de===void 0||de.scrollTo(ue)};G({treeRef:ne,onNodeExpand:function(){for(var ue,de=arguments.length,ve=new Array(de),ge=0;ge<de;ge++)ve[ge]=arguments[ge];(ue=ne.value)===null||ue===void 0||ue.onNodeExpand.apply(ue,ve)},scrollTo:ae,selectedKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.selectedKeys}),checkedKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.checkedKeys}),halfCheckedKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.halfCheckedKeys}),loadedKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.loadedKeys}),loadingKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.loadingKeys}),expandedKeys:computed(function(){var ce;return(ce=ne.value)===null||ce===void 0?void 0:ce.expandedKeys})}),watchEffect(function(){devWarning(H.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});var oe=function(ue,de){X("update:checkedKeys",ue),X("check",ue,de)},se=function(ue,de){X("update:expandedKeys",ue),X("expand",ue,de)},le=function(ue,de){X("update:selectedKeys",ue),X("select",ue,de)};return function(){var ce,ue=H.showIcon,de=H.showLine,ve=H.switcherIcon,ge=ve===void 0?Z.switcherIcon:ve,he=H.icon,me=he===void 0?Z.icon:he,_e=H.blockNode,be=H.checkable,pe=H.selectable,fe=H.fieldNames,ye=fe===void 0?H.replaceFields:fe,$e=H.motion,we=$e===void 0?H.openAnimation:$e,Se=H.itemHeight,Te=Se===void 0?28:Se,xe=H.onDoubleclick,ke=H.onDblclick,Ie=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},W),omit$2(H,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{},{showLine:Boolean(de),dropIndicatorRender,fieldNames:ye,icon:me,itemHeight:Te}),Ae=Z.default?filterEmpty(Z.default()):void 0;return createVNode(Tree$2,_objectSpread2$1(_objectSpread2$1({},Ie),{},{virtual:te.value,motion:we,ref:ne,prefixCls:ee.value,class:classNames((ce={},_defineProperty$M(ce,"".concat(ee.value,"-icon-hide"),!ue),_defineProperty$M(ce,"".concat(ee.value,"-block-node"),_e),_defineProperty$M(ce,"".concat(ee.value,"-unselectable"),!pe),_defineProperty$M(ce,"".concat(ee.value,"-rtl"),ie.value==="rtl"),ce),W.class),direction:ie.value,checkable:be,selectable:pe,switcherIcon:function(Fe){return renderSwitcherIcon(ee.value,ge,de,Fe)},onCheck:oe,onExpand:se,onSelect:le,onDblclick:ke||xe,children:Ae}),_objectSpread2$1(_objectSpread2$1({},Z),{},{checkable:function(){return createVNode("span",{class:"".concat(ee.value,"-checkbox-inner")},null)}}))}}});var FolderOpenOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const FolderOpenOutlinedSvg=FolderOpenOutlined$2;function _objectSpread$d(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$e(C,G,U[G])})}return C}function _defineProperty$e(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FolderOpenOutlined=function(H,U){var W=_objectSpread$d({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$d({},W,{icon:FolderOpenOutlinedSvg}),null)};FolderOpenOutlined.displayName="FolderOpenOutlined";FolderOpenOutlined.inheritAttrs=!1;const FolderOpenOutlined$1=FolderOpenOutlined;var FolderOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const FolderOutlinedSvg=FolderOutlined$2;function _objectSpread$c(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$d(C,G,U[G])})}return C}function _defineProperty$d(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FolderOutlined=function(H,U){var W=_objectSpread$c({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$c({},W,{icon:FolderOutlinedSvg}),null)};FolderOutlined.displayName="FolderOutlined";FolderOutlined.inheritAttrs=!1;const FolderOutlined$1=FolderOutlined;var Record;(function(C){C[C.None=0]="None",C[C.Start=1]="Start",C[C.End=2]="End"})(Record||(Record={}));function traverseNodesKey(C,H,U){function W(G){var X=G[H.key],Z=G[H.children];U(X,G)!==!1&&traverseNodesKey(Z||[],H,U)}C.forEach(W)}function calcRangeKeys(C){var H=C.treeData,U=C.expandedKeys,W=C.startKey,G=C.endKey,X=C.fieldNames,Z=X===void 0?{title:"title",key:"key",children:"children"}:X,Q=[],ee=Record.None;if(W&&W===G)return[W];if(!W||!G)return[];function ie(te){return te===W||te===G}return traverseNodesKey(H,Z,function(te){if(ee===Record.End)return!1;if(ie(te)){if(Q.push(te),ee===Record.None)ee=Record.Start;else if(ee===Record.Start)return ee=Record.End,!1}else ee===Record.Start&&Q.push(te);return U.indexOf(te)!==-1}),Q}function convertDirectoryKeysToNodes(C,H,U){var W=_toConsumableArray$1(H),G=[];return traverseNodesKey(C,U,function(X,Z){var Q=W.indexOf(X);return Q!==-1&&(G.push(Z),W.splice(Q,1)),!!W.length}),G}var _excluded$2=["icon","blockNode"],directoryTreeProps=function(){return _objectSpread2$1(_objectSpread2$1({},treeProps()),{},{expandAction:{type:[Boolean,String]}})};function getIcon(C){var H=C.isLeaf,U=C.expanded;return createVNode(H?FileOutlined$1:U?FolderOpenOutlined$1:FolderOutlined$1,null,null)}const DirectoryTree=defineComponent({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:initDefaultProps$1(directoryTreeProps(),{showIcon:!0,expandAction:"click"}),slots:["icon","title","switcherIcon","titleRender"],setup:function(H,U){var W,G=U.attrs,X=U.slots,Z=U.emit,Q=U.expose,ee=ref(H.treeData||convertTreeToData(filterEmpty((W=X.default)===null||W===void 0?void 0:W.call(X))));watch(function(){return H.treeData},function(){ee.value=H.treeData}),onUpdated(function(){nextTick$1(function(){if(H.treeData===void 0&&X.default){var ye;ee.value=convertTreeToData(filterEmpty((ye=X.default)===null||ye===void 0?void 0:ye.call(X)))}})});var ie=ref(),te=ref(),ne=computed(function(){return fillFieldNames(H.fieldNames)}),ae=ref(),oe=function($e){var we;(we=ae.value)===null||we===void 0||we.scrollTo($e)};Q({scrollTo:oe,selectedKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.selectedKeys}),checkedKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.checkedKeys}),halfCheckedKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.halfCheckedKeys}),loadedKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.loadedKeys}),loadingKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.loadingKeys}),expandedKeys:computed(function(){var ye;return(ye=ae.value)===null||ye===void 0?void 0:ye.expandedKeys})});var se=function(){var $e=convertDataToEntities(ee.value,{fieldNames:ne.value}),we=$e.keyEntities,Se;return H.defaultExpandAll?Se=Object.keys(we):H.defaultExpandParent?Se=conductExpandParent(H.expandedKeys||H.defaultExpandedKeys||[],we):Se=H.expandedKeys||H.defaultExpandedKeys,Se},le=ref(H.selectedKeys||H.defaultSelectedKeys||[]),ce=ref(se());watch(function(){return H.selectedKeys},function(){H.selectedKeys!==void 0&&(le.value=H.selectedKeys)},{immediate:!0}),watch(function(){return H.expandedKeys},function(){H.expandedKeys!==void 0&&(ce.value=H.expandedKeys)},{immediate:!0});var ue=function($e,we){var Se=we.isLeaf;Se||$e.shiftKey||$e.metaKey||$e.ctrlKey||ae.value.onNodeExpand($e,we)},de=debounce(ue,200,{leading:!0}),ve=function($e,we){H.expandedKeys===void 0&&(ce.value=$e),Z("update:expandedKeys",$e),Z("expand",$e,we)},ge=function($e,we){var Se=H.expandAction;Se==="click"&&de($e,we),Z("click",$e,we)},he=function($e,we){var Se=H.expandAction;(Se==="dblclick"||Se==="doubleclick")&&de($e,we),Z("doubleclick",$e,we),Z("dblclick",$e,we)},me=function($e,we){var Se=H.multiple,Te=we.node,xe=we.nativeEvent,ke=Te[ne.value.key],Ie=_objectSpread2$1(_objectSpread2$1({},we),{},{selected:!0}),Ae=(xe==null?void 0:xe.ctrlKey)||(xe==null?void 0:xe.metaKey),Me=xe==null?void 0:xe.shiftKey,Fe;Se&&Ae?(Fe=$e,ie.value=ke,te.value=Fe,Ie.selectedNodes=convertDirectoryKeysToNodes(ee.value,Fe,ne.value)):Se&&Me?(Fe=Array.from(new Set([].concat(_toConsumableArray$1(te.value||[]),_toConsumableArray$1(calcRangeKeys({treeData:ee.value,expandedKeys:ce.value,startKey:ke,endKey:ie.value,fieldNames:ne.value}))))),Ie.selectedNodes=convertDirectoryKeysToNodes(ee.value,Fe,ne.value)):(Fe=[ke],ie.value=ke,te.value=Fe,Ie.selectedNodes=convertDirectoryKeysToNodes(ee.value,Fe,ne.value)),Z("update:selectedKeys",Fe),Z("select",Fe,Ie),H.selectedKeys===void 0&&(le.value=Fe)},_e=function($e,we){Z("update:checkedKeys",$e),Z("check",$e,we)},be=useConfigInject("tree",H),pe=be.prefixCls,fe=be.direction;return function(){var ye=classNames("".concat(pe.value,"-directory"),_defineProperty$M({},"".concat(pe.value,"-directory-rtl"),fe.value==="rtl"),G.class),$e=H.icon,we=$e===void 0?X.icon:$e,Se=H.blockNode,Te=Se===void 0?!0:Se,xe=_objectWithoutProperties$4(H,_excluded$2);return createVNode(Tree$1,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},G),{},{icon:we||getIcon,ref:ae,blockNode:Te},xe),{},{prefixCls:pe.value,class:ye,expandedKeys:ce.value,selectedKeys:le.value,onSelect:me,onClick:ge,onDblclick:he,onExpand:ve,onCheck:_e}),X)}}});var TreeNode=defineComponent(_objectSpread2$1(_objectSpread2$1({},VcTreeNode),{},{name:"ATreeNode",props:treeNodeProps}));const Tree=_extends$1(Tree$1,{DirectoryTree,TreeNode,install:function(H){return H.component(Tree$1.name,Tree$1),H.component(TreeNode.name,TreeNode),H.component(DirectoryTree.name,DirectoryTree),H}});var SubMenu=Menu.SubMenu,MenuItem=Menu.Item;function hasSubMenu(C){return C.some(function(H){var U=H.children;return U&&U.length>0})}function searchValueMatched(C,H){return typeof H=="string"||typeof H=="number"?H==null?void 0:H.toString().toLowerCase().includes(C.trim().toLowerCase()):!1}function renderFilterItems(C){var H=C.filters,U=C.prefixCls,W=C.filteredKeys,G=C.filterMultiple,X=C.searchValue,Z=C.filterSearch;return H.map(function(Q,ee){var ie=String(Q.value);if(Q.children)return createVNode(SubMenu,{key:ie||ee,title:Q.text,popupClassName:"".concat(U,"-dropdown-submenu")},{default:function(){return[renderFilterItems({filters:Q.children,prefixCls:U,filteredKeys:W,filterMultiple:G,searchValue:X,filterSearch:Z})]}});var te=G?Checkbox:Radio,ne=createVNode(MenuItem,{key:Q.value!==void 0?ie:ee},{default:function(){return[createVNode(te,{checked:W.includes(ie)},null),createVNode("span",null,[Q.text])]}});return X.trim()?typeof Z=="function"?Z(X,Q)?ne:void 0:searchValueMatched(X,Q.text)?ne:void 0:ne})}const FilterDropdown=defineComponent({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup:function(H,U){var W=U.slots,G=useInjectSlots(),X=computed(function(){var Fe;return(Fe=H.filterMode)!==null&&Fe!==void 0?Fe:"menu"}),Z=computed(function(){var Fe;return(Fe=H.filterSearch)!==null&&Fe!==void 0?Fe:!1}),Q=computed(function(){return H.column.filterDropdownVisible}),ee=ref(!1),ie=computed(function(){var Fe;return!!(H.filterState&&((Fe=H.filterState.filteredKeys)!==null&&Fe!==void 0&&Fe.length||H.filterState.forceFiltered))}),te=computed(function(){var Fe;return flattenKeys((Fe=H.column)===null||Fe===void 0?void 0:Fe.filters)}),ne=computed(function(){var Fe=H.column,Be=Fe.filterDropdown,Ne=Fe.slots,Ve=Ne===void 0?{}:Ne,Le=Fe.customFilterDropdown;return Be||Ve.filterDropdown&&G.value[Ve.filterDropdown]||Le&&G.value.customFilterDropdown}),ae=computed(function(){var Fe=H.column,Be=Fe.filterIcon,Ne=Fe.slots,Ve=Ne===void 0?{}:Ne;return Be||Ve.filterIcon&&G.value[Ve.filterIcon]||G.value.customFilterIcon}),oe=function(Be){var Ne,Ve;ee.value=Be,(Ne=(Ve=H.column).onFilterDropdownVisibleChange)===null||Ne===void 0||Ne.call(Ve,Be)},se=computed(function(){return typeof Q.value=="boolean"?Q.value:ee.value}),le=computed(function(){var Fe;return(Fe=H.filterState)===null||Fe===void 0?void 0:Fe.filteredKeys}),ce=shallowRef([]),ue=function(Be){var Ne=Be.selectedKeys;ce.value=Ne},de=function(Be,Ne){var Ve=Ne.node,Le=Ne.checked;H.filterMultiple?ue({selectedKeys:Be}):ue({selectedKeys:Le&&Ve.key?[Ve.key]:[]})};watch(le,function(){!ee.value||ue({selectedKeys:le.value||[]})},{immediate:!0});var ve=shallowRef([]),ge=ref(),he=function(Be){ge.value=setTimeout(function(){ve.value=Be})},me=function(){clearTimeout(ge.value)};onBeforeUnmount(function(){clearTimeout(ge.value)});var _e=ref(""),be=function(Be){var Ne=Be.target.value;_e.value=Ne};watch(ee,function(){ee.value||(_e.value="")});var pe=function(Be){var Ne=H.column,Ve=H.columnKey,Le=H.filterState,De=Be&&Be.length?Be:null;if(De===null&&(!Le||!Le.filteredKeys)||isEqual(De,Le==null?void 0:Le.filteredKeys))return null;H.triggerFilter({column:Ne,key:Ve,filteredKeys:De})},fe=function(){oe(!1),pe(ce.value)},ye=function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Ne=Be.confirm,Ve=Be.closeDropdown;Ne&&pe([]),Ve&&oe(!1),_e.value="",ce.value=[]},$e=function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Ne=Be.closeDropdown;Ne&&oe(!1),pe(ce.value)},we=function(Be){Be&&le.value!==void 0&&(ce.value=le.value||[]),oe(Be),!Be&&!ne.value&&fe()},Se=useConfigInject("",H),Te=Se.direction,xe=function(Be){if(Be.target.checked){var Ne=te.value;ce.value=Ne}else ce.value=[]},ke=function Fe(Be){var Ne=Be.filters;return(Ne||[]).map(function(Ve,Le){var De=String(Ve.value),Je={title:Ve.text,key:Ve.value!==void 0?De:Le};return Ve.children&&(Je.children=Fe({filters:Ve.children})),Je})},Ie=computed(function(){return ke({filters:H.column.filters})}),Ae=computed(function(){return classNames(_defineProperty$M({},"".concat(H.dropdownPrefixCls,"-menu-without-submenu"),!hasSubMenu(H.column.filters||[])))}),Me=function(){var Be=ce.value,Ne=H.column,Ve=H.locale,Le=H.tablePrefixCls,De=H.filterMultiple,Je=H.dropdownPrefixCls,ze=H.getPopupContainer,Ge=H.prefixCls;return(Ne.filters||[]).length===0?createVNode(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,description:Ve.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):X.value==="tree"?createVNode(Fragment,null,[createVNode(FilterSearch,{filterSearch:Z.value,value:_e.value,onChange:be,tablePrefixCls:Le,locale:Ve},null),createVNode("div",{class:"".concat(Le,"-filter-dropdown-tree")},[De?createVNode(Checkbox,{class:"".concat(Le,"-filter-dropdown-checkall"),onChange:xe,checked:Be.length===te.value.length,indeterminate:Be.length>0&&Be.length<te.value.length},{default:function(){return[Ve.filterCheckall]}}):null,createVNode(Tree,{checkable:!0,selectable:!1,blockNode:!0,multiple:De,checkStrictly:!De,class:"".concat(Je,"-menu"),onCheck:de,checkedKeys:Be,selectedKeys:Be,showIcon:!1,treeData:Ie.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_e.value.trim()?function(qe){return searchValueMatched(_e.value,qe.title)}:void 0},null)])]):createVNode(Fragment,null,[createVNode(FilterSearch,{filterSearch:Z.value,value:_e.value,onChange:be,tablePrefixCls:Le,locale:Ve},null),createVNode(Menu,{multiple:De,prefixCls:"".concat(Je,"-menu"),class:Ae.value,onClick:me,onSelect:ue,onDeselect:ue,selectedKeys:Be,getPopupContainer:ze,openKeys:ve.value,onOpenChange:he},{default:function(){return renderFilterItems({filters:Ne.filters||[],filterSearch:Z.value,prefixCls:Ge,filteredKeys:ce.value,filterMultiple:De,searchValue:_e.value})}})])};return function(){var Fe,Be=H.tablePrefixCls,Ne=H.prefixCls,Ve=H.column,Le=H.dropdownPrefixCls,De=H.locale,Je=H.getPopupContainer,ze;if(typeof ne.value=="function")ze=ne.value({prefixCls:"".concat(Le,"-custom"),setSelectedKeys:function(Ce){return ue({selectedKeys:Ce})},selectedKeys:ce.value,confirm:$e,clearFilters:ye,filters:Ve.filters,visible:se.value,column:Ve.__originColumn__});else if(ne.value)ze=ne.value;else{var Ge=ce.value;ze=createVNode(Fragment,null,[Me(),createVNode("div",{class:"".concat(Ne,"-dropdown-btns")},[createVNode(Button$1,{type:"link",size:"small",disabled:Ge.length===0,onClick:function(){return ye()}},{default:function(){return[De.filterReset]}}),createVNode(Button$1,{type:"primary",size:"small",onClick:fe},{default:function(){return[De.filterConfirm]}})])])}var qe=createVNode(FilterDropdownMenuWrapper$1,{class:"".concat(Ne,"-dropdown")},{default:function(){return[ze]}}),Ke;return typeof ae.value=="function"?Ke=ae.value({filtered:ie.value,column:Ve.__originColumn__}):ae.value?Ke=ae.value:Ke=createVNode(FilterFilled$1,null,null),createVNode("div",{class:"".concat(Ne,"-column")},[createVNode("span",{class:"".concat(Be,"-column-title")},[(Fe=W.default)===null||Fe===void 0?void 0:Fe.call(W)]),createVNode(Dropdown$1,{overlay:qe,trigger:["click"],visible:se.value,onVisibleChange:we,getPopupContainer:Je,placement:Te.value==="rtl"?"bottomLeft":"bottomRight"},{default:function(){return[createVNode("span",{role:"button",tabindex:-1,class:classNames("".concat(Ne,"-trigger"),{active:ie.value}),onClick:function(Pe){Pe.stopPropagation()}},[Ke])]}})])}}});function collectFilterStates(C,H,U){var W=[];return(C||[]).forEach(function(G,X){var Z,Q=getColumnPos(X,U),ee=G.filterDropdown||(G==null||(Z=G.slots)===null||Z===void 0?void 0:Z.filterDropdown)||G.customFilterDropdown;if(G.filters||ee||"onFilter"in G)if("filteredValue"in G){var ie=G.filteredValue;if(!ee){var te,ne;ie=(te=(ne=ie)===null||ne===void 0?void 0:ne.map(String))!==null&&te!==void 0?te:ie}W.push({column:G,key:getColumnKey(G,Q),filteredKeys:ie,forceFiltered:G.filtered})}else W.push({column:G,key:getColumnKey(G,Q),filteredKeys:H&&G.defaultFilteredValue?G.defaultFilteredValue:void 0,forceFiltered:G.filtered});"children"in G&&(W=[].concat(_toConsumableArray$1(W),_toConsumableArray$1(collectFilterStates(G.children,H,Q))))}),W}function injectFilter(C,H,U,W,G,X,Z,Q){return U.map(function(ee,ie){var te,ne=getColumnPos(ie,Q),ae=ee.filterMultiple,oe=ae===void 0?!0:ae,se=ee.filterMode,le=ee.filterSearch,ce=ee,ue=ee.filterDropdown||(ee==null||(te=ee.slots)===null||te===void 0?void 0:te.filterDropdown)||ee.customFilterDropdown;if(ce.filters||ue){var de=getColumnKey(ce,ne),ve=W.find(function(ge){var he=ge.key;return de===he});ce=_objectSpread2$1(_objectSpread2$1({},ce),{},{title:function(he){return createVNode(FilterDropdown,{tablePrefixCls:C,prefixCls:"".concat(C,"-filter"),dropdownPrefixCls:H,column:ce,columnKey:de,filterState:ve,filterMultiple:oe,filterMode:se,filterSearch:le,triggerFilter:G,locale:Z,getPopupContainer:X},{default:function(){return[renderColumnTitle(ee.title,he)]}})}})}return"children"in ce&&(ce=_objectSpread2$1(_objectSpread2$1({},ce),{},{children:injectFilter(C,H,ce.children,W,G,X,Z,ne)})),ce})}function flattenKeys(C){var H=[];return(C||[]).forEach(function(U){var W=U.value,G=U.children;H.push(W),G&&(H=[].concat(_toConsumableArray$1(H),_toConsumableArray$1(flattenKeys(G))))}),H}function generateFilterInfo(C){var H={};return C.forEach(function(U){var W,G=U.key,X=U.filteredKeys,Z=U.column,Q=Z.filterDropdown||(Z==null||(W=Z.slots)===null||W===void 0?void 0:W.filterDropdown)||Z.customFilterDropdown,ee=Z.filters;if(Q)H[G]=X||null;else if(Array.isArray(X)){var ie=flattenKeys(ee);H[G]=ie.filter(function(te){return X.includes(String(te))})}else H[G]=null}),H}function getFilterData(C,H){return H.reduce(function(U,W){var G=W.column,X=G.onFilter,Z=G.filters,Q=W.filteredKeys;return X&&Q&&Q.length?U.filter(function(ee){return Q.some(function(ie){var te=flattenKeys(Z),ne=te.findIndex(function(oe){return String(oe)===String(ie)}),ae=ne!==-1?te[ne]:ie;return X(ae,ee)})}):U},C)}function useFilter(C){var H=C.prefixCls,U=C.dropdownPrefixCls,W=C.mergedColumns,G=C.locale,X=C.onFilterChange,Z=C.getPopupContainer,Q=useState(collectFilterStates(W.value,!0)),ee=_slicedToArray$2(Q,2),ie=ee[0],te=ee[1],ne=computed(function(){var le=collectFilterStates(W.value,!1),ce=le.every(function(de){var ve=de.filteredKeys;return ve===void 0});if(ce)return ie.value;var ue=le.every(function(de){var ve=de.filteredKeys;return ve!==void 0});return devWarning(ce||ue,"Table","`FilteredKeys` should all be controlled or not controlled."),le}),ae=computed(function(){return generateFilterInfo(ne.value)}),oe=function(ce){var ue=ne.value.filter(function(de){var ve=de.key;return ve!==ce.key});ue.push(ce),te(ue),X(generateFilterInfo(ue),ue)},se=function(ce){return injectFilter(H.value,U.value,ce,ne.value,oe,Z.value,G.value)};return[se,ne,ae]}function fillTitle(C,H){return C.map(function(U){var W=_objectSpread2$1({},U);return W.title=renderColumnTitle(W.title,H),"children"in W&&(W.children=fillTitle(W.children,H)),W})}function useTitleColumns(C){var H=function(W){return fillTitle(W,C.value)};return[H]}function renderExpandIcon(C){return function(U){var W,G=U.prefixCls,X=U.onExpand,Z=U.record,Q=U.expanded,ee=U.expandable,ie="".concat(G,"-row-expand-icon");return createVNode("button",{type:"button",onClick:function(ne){X(Z,ne),ne.stopPropagation()},class:classNames(ie,(W={},_defineProperty$M(W,"".concat(ie,"-spaced"),!ee),_defineProperty$M(W,"".concat(ie,"-expanded"),ee&&Q),_defineProperty$M(W,"".concat(ie,"-collapsed"),ee&&!Q),W)),"aria-label":Q?C.collapse:C.expand},null)}}function fillSlots(C,H){var U=H.value;return C.map(function(W){var G;if(W===SELECTION_COLUMN||W===EXPAND_COLUMN)return W;var X=_objectSpread2$1({},W),Z=X.slots,Q=Z===void 0?{}:Z;return X.__originColumn__=W,devWarning(!("slots"in X),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(Q).forEach(function(ee){var ie=Q[ee];X[ee]===void 0&&U[ie]&&(X[ee]=U[ie])}),H.value.headerCell&&!((G=W.slots)!==null&&G!==void 0&&G.title)&&(X.title=renderSlot(H.value,"headerCell",{title:W.title,column:W},function(){return[W.title]})),"children"in X&&(X.children=fillSlots(X.children,H)),X})}function useColumns(C){var H=function(W){return fillSlots(W,C)};return[H]}var EMPTY_LIST=[],tableProps=function(){return{prefixCls:{type:String,default:void 0},columns:{type:Array,default:void 0},rowKey:{type:[String,Function],default:void 0},tableLayout:{type:String,default:void 0},rowClassName:{type:[String,Function],default:void 0},title:{type:Function,default:void 0},footer:{type:Function,default:void 0},id:{type:String,default:void 0},showHeader:{type:Boolean,default:void 0},components:{type:Object,default:void 0},customRow:{type:Function,default:void 0},customHeaderRow:{type:Function,default:void 0},direction:{type:String,default:void 0},expandFixed:{type:[Boolean,String],default:void 0},expandColumnWidth:{type:Number,default:void 0},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:void 0},expandedRowRender:{type:Function,default:void 0},expandRowByClick:{type:Boolean,default:void 0},expandIcon:{type:Function,default:void 0},onExpand:{type:Function,default:void 0},onExpandedRowsChange:{type:Function,default:void 0},"onUpdate:expandedRowKeys":{type:Function,default:void 0},defaultExpandAllRows:{type:Boolean,default:void 0},indentSize:{type:Number,default:void 0},expandIconColumnIndex:{type:Number,default:void 0},showExpandColumn:{type:Boolean,default:void 0},expandedRowClassName:{type:Function,default:void 0},childrenColumnName:{type:String,default:void 0},rowExpandable:{type:Function,default:void 0},sticky:{type:[Boolean,Object],default:void 0},dropdownPrefixCls:String,dataSource:{type:Array,default:void 0},pagination:{type:[Boolean,Object],default:void 0},loading:{type:[Boolean,Object],default:void 0},size:{type:String,default:void 0},bordered:Boolean,locale:{type:Object,default:void 0},onChange:{type:Function,default:void 0},onResizeColumn:{type:Function,default:void 0},rowSelection:{type:Object,default:void 0},getPopupContainer:{type:Function,default:void 0},scroll:{type:Object,default:void 0},sortDirections:{type:Array,default:void 0},showSorterTooltip:{type:[Boolean,Object],default:!0},contextSlots:{type:Object},transformCellText:{type:Function}}},InteralTable=defineComponent({name:"InteralTable",inheritAttrs:!1,props:initDefaultProps$1(tableProps(),{rowKey:"key"}),slots:["emptyText","expandIcon","title","footer","summary","expandedRowRender","bodyCell","headerCell","customFilterIcon","customFilterDropdown"],setup:function(H,U){var W=U.attrs,G=U.slots,X=U.expose,Z=U.emit;devWarning(!(typeof H.rowKey=="function"&&H.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),useProvideSlots(computed(function(){return H.contextSlots})),useProvideTableContext({onResizeColumn:function(mt,gt){Z("resizeColumn",mt,gt)}});var Q=useBreakpoint(),ee=computed(function(){var xt=new Set(Object.keys(Q.value).filter(function(mt){return Q.value[mt]}));return H.columns.filter(function(mt){return!mt.responsive||mt.responsive.some(function(gt){return xt.has(gt)})})}),ie=useConfigInject("table",H),te=ie.size,ne=ie.renderEmpty,ae=ie.direction,oe=ie.prefixCls,se=ie.configProvider,le=computed(function(){return H.transformCellText||se.transformCellText}),ce=useLocaleReceiver("Table",defaultLocale$2.Table,toRef(H,"locale")),ue=_slicedToArray$2(ce,1),de=ue[0],ve=computed(function(){return H.dataSource||EMPTY_LIST}),ge=computed(function(){return se.getPrefixCls("dropdown",H.dropdownPrefixCls)}),he=computed(function(){return H.childrenColumnName||"children"}),me=computed(function(){return ve.value.some(function(xt){return xt==null?void 0:xt[he.value]})?"nest":H.expandedRowRender?"row":null}),_e=reactive({body:null}),be=function(mt){_extends$1(_e,mt)},pe=computed(function(){return typeof H.rowKey=="function"?H.rowKey:function(xt){return xt==null?void 0:xt[H.rowKey]}}),fe=useLazyKVMap(ve,he,pe),ye=_slicedToArray$2(fe,1),$e=ye[0],we={},Se=function(mt,gt){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ct=H.pagination,vt=H.scroll,_t=H.onChange,rt=_objectSpread2$1(_objectSpread2$1({},we),mt);lt&&(we.resetPagination(),rt.pagination.current&&(rt.pagination.current=1),ct&&ct.onChange&&ct.onChange(1,rt.pagination.pageSize)),vt&&vt.scrollToFirstRowOnChange!==!1&&_e.body&&scrollTo(0,{getContainer:function(){return _e.body}}),_t==null||_t(rt.pagination,rt.filters,rt.sorter,{currentDataSource:getFilterData(getSortData(ve.value,rt.sorterStates,he.value),rt.filterStates),action:gt})},Te=function(mt,gt){Se({sorter:mt,sorterStates:gt},"sort",!1)},xe=useFilterSorter({prefixCls:oe,mergedColumns:ee,onSorterChange:Te,sortDirections:computed(function(){return H.sortDirections||["ascend","descend"]}),tableLocale:de,showSorterTooltip:toRef(H,"showSorterTooltip")}),ke=_slicedToArray$2(xe,4),Ie=ke[0],Ae=ke[1],Me=ke[2],Fe=ke[3],Be=computed(function(){return getSortData(ve.value,Ae.value,he.value)}),Ne=function(mt,gt){Se({filters:mt,filterStates:gt},"filter",!0)},Ve=useFilter({prefixCls:oe,locale:de,dropdownPrefixCls:ge,mergedColumns:ee,onFilterChange:Ne,getPopupContainer:toRef(H,"getPopupContainer")}),Le=_slicedToArray$2(Ve,3),De=Le[0],Je=Le[1],ze=Le[2],Ge=computed(function(){return getFilterData(Be.value,Je.value)}),qe=useColumns(toRef(H,"contextSlots")),Ke=_slicedToArray$2(qe,1),Ee=Ke[0],Ce=computed(function(){return _objectSpread2$1({},Me.value)}),Pe=useTitleColumns(Ce),Re=_slicedToArray$2(Pe,1),Ze=Re[0],Oe=function(mt,gt){Se({pagination:_objectSpread2$1(_objectSpread2$1({},we.pagination),{},{current:mt,pageSize:gt})},"paginate")},Qe=usePagination(computed(function(){return Ge.value.length}),toRef(H,"pagination"),Oe),Xe=_slicedToArray$2(Qe,2),et=Xe[0],We=Xe[1];watchEffect(function(){we.sorter=Fe.value,we.sorterStates=Ae.value,we.filters=ze.value,we.filterStates=Je.value,we.pagination=H.pagination===!1?{}:getPaginationParam(H.pagination,et.value),we.resetPagination=We});var He=computed(function(){if(H.pagination===!1||!et.value.pageSize)return Ge.value;var xt=et.value,mt=xt.current,gt=mt===void 0?1:mt,lt=xt.total,ct=xt.pageSize,vt=ct===void 0?DEFAULT_PAGE_SIZE:ct;return devWarning(gt>0,"Table","`current` should be positive number."),Ge.value.length<lt?Ge.value.length>vt?Ge.value.slice((gt-1)*vt,gt*vt):Ge.value:Ge.value.slice((gt-1)*vt,gt*vt)});watchEffect(function(){nextTick$1(function(){var xt=et.value,mt=xt.total,gt=xt.pageSize,lt=gt===void 0?DEFAULT_PAGE_SIZE:gt;Ge.value.length<mt&&Ge.value.length>lt&&devWarning(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});var Ye=computed(function(){return H.showExpandColumn===!1?-1:me.value==="nest"&&H.expandIconColumnIndex===void 0?H.rowSelection?1:0:H.expandIconColumnIndex>0&&H.rowSelection?H.expandIconColumnIndex-1:H.expandIconColumnIndex}),nt=ref();watch(function(){return H.rowSelection},function(){nt.value=H.rowSelection?_objectSpread2$1({},H.rowSelection):H.rowSelection},{deep:!0,immediate:!0});var tt=useSelection(nt,{prefixCls:oe,data:Ge,pageData:He,getRowKey:pe,getRecordByKey:$e,expandType:me,childrenColumnName:he,locale:de,getPopupContainer:computed(function(){return H.getPopupContainer})}),at=_slicedToArray$2(tt,2),St=at[0],st=at[1],it=function(mt,gt,lt){var ct,vt=H.rowClassName;return typeof vt=="function"?ct=classNames(vt(mt,gt,lt)):ct=classNames(vt),classNames(_defineProperty$M({},"".concat(oe.value,"-row-selected"),st.value.has(pe.value(mt,gt))),ct)};X({selectedKeySet:st});var pt=computed(function(){return typeof H.indentSize=="number"?H.indentSize:15}),wt=function(mt){var gt=Ze(St(De(Ie(Ee(mt)))));return gt};return function(){var xt,mt,gt=H.expandIcon,lt=gt===void 0?G.expandIcon||renderExpandIcon(de.value):gt,ct=H.pagination,vt=H.loading,_t=H.bordered,rt,ut;if(ct!==!1&&(xt=et.value)!==null&&xt!==void 0&&xt.total){var ot;et.value.size?ot=et.value.size:ot=te.value==="small"||te.value==="middle"?"small":void 0;var Tt=function(jt){return createVNode(Pagination,_objectSpread2$1(_objectSpread2$1({},et.value),{},{class:["".concat(oe.value,"-pagination ").concat(oe.value,"-pagination-").concat(jt),et.value.class],size:ot}),null)},ft=ae.value==="rtl"?"left":"right",Ct=et.value.position;if(Ct!==null&&Array.isArray(Ct)){var At=Ct.find(function(Dt){return Dt.indexOf("top")!==-1}),Rt=Ct.find(function(Dt){return Dt.indexOf("bottom")!==-1}),It=Ct.every(function(Dt){return"".concat(Dt)==="none"});!At&&!Rt&&!It&&(ut=Tt(ft)),At&&(rt=Tt(At.toLowerCase().replace("top",""))),Rt&&(ut=Tt(Rt.toLowerCase().replace("bottom","")))}else ut=Tt(ft)}var Ft;typeof vt=="boolean"?Ft={spinning:vt}:_typeof$3(vt)==="object"&&(Ft=_objectSpread2$1({spinning:!0},vt));var Pt=classNames("".concat(oe.value,"-wrapper"),_defineProperty$M({},"".concat(oe.value,"-wrapper-rtl"),ae.value==="rtl"),W.class),Ht=omit$2(H,["columns"]);return createVNode("div",{class:Pt,style:W.style},[createVNode(Spin,_objectSpread2$1({spinning:!1},Ft),{default:function(){return[rt,createVNode(Table$2,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},W),Ht),{},{expandedRowKeys:H.expandedRowKeys,defaultExpandedRowKeys:H.defaultExpandedRowKeys,expandIconColumnIndex:Ye.value,indentSize:pt.value,expandIcon:lt,columns:ee.value,direction:ae.value,prefixCls:oe.value,class:classNames((mt={},_defineProperty$M(mt,"".concat(oe.value,"-middle"),te.value==="middle"),_defineProperty$M(mt,"".concat(oe.value,"-small"),te.value==="small"),_defineProperty$M(mt,"".concat(oe.value,"-bordered"),_t),_defineProperty$M(mt,"".concat(oe.value,"-empty"),ve.value.length===0),mt)),data:He.value,rowKey:pe.value,rowClassName:it,internalHooks:INTERNAL_HOOKS,internalRefs:_e,onUpdateInternalRefs:be,transformColumns:wt,transformCellText:le.value}),_objectSpread2$1(_objectSpread2$1({},G),{},{emptyText:function(){var on,un;return((on=G.emptyText)===null||on===void 0?void 0:on.call(G))||((un=H.locale)===null||un===void 0?void 0:un.emptyText)||ne.value("Table")}})),ut]}})])}}}),Table=defineComponent({name:"ATable",inheritAttrs:!1,setup:function(H,U){var W=U.attrs,G=U.slots,X=U.expose,Z=ref();return X({table:Z}),function(){var Q,ee=W,ie=ee.columns||convertChildrenToColumns((Q=G.default)===null||Q===void 0?void 0:Q.call(G));return createVNode(InteralTable,_objectSpread2$1(_objectSpread2$1({ref:Z},W),{},{columns:ie||[],expandedRowRender:G.expandedRowRender,contextSlots:_objectSpread2$1({},G)}),G)}}});const Table$1=Table,Column=defineComponent({name:"ATableColumn",slots:["title","filterIcon"],render:function(){return null}}),ColumnGroup=defineComponent({name:"ATableColumnGroup",slots:["title"],__ANT_TABLE_COLUMN_GROUP:!0,render:function(){return null}});var TableSummaryRow=defineComponent(_objectSpread2$1(_objectSpread2$1({},SummaryRow),{},{name:"ATableSummaryRow"})),TableSummaryCell=defineComponent(_objectSpread2$1(_objectSpread2$1({},SummaryCell),{},{name:"ATableSummaryCell"})),TableSummary=_extends$1(FooterComponents,{Cell:TableSummaryCell,Row:TableSummaryRow,name:"ATableSummary"});const __unplugin_components_5=_extends$1(Table$1,{SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE,SELECTION_COLUMN,EXPAND_COLUMN,Column,ColumnGroup,Summary:TableSummary,install:function(H){return H.component(TableSummary.name,TableSummary),H.component(TableSummaryCell.name,TableSummaryCell),H.component(TableSummaryRow.name,TableSummaryRow),H.component(Table$1.name,Table$1),H.component(Column.name,Column),H.component(ColumnGroup.name,ColumnGroup),H}});var DeleteOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const DeleteOutlinedSvg=DeleteOutlined$2;function _objectSpread$b(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$c(C,G,U[G])})}return C}function _defineProperty$c(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var DeleteOutlined=function(H,U){var W=_objectSpread$b({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$b({},W,{icon:DeleteOutlinedSvg}),null)};DeleteOutlined.displayName="DeleteOutlined";DeleteOutlined.inheritAttrs=!1;const DeleteOutlined$1=DeleteOutlined;function createBaseFor(C){return function(H,U,W){for(var G=-1,X=Object(H),Z=W(H),Q=Z.length;Q--;){var ee=Z[C?Q:++G];if(U(X[ee],ee,X)===!1)break}return H}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn(C,H){return C&&baseFor$1(C,H,keys$5)}function createBaseEach(C,H){return function(U,W){if(U==null)return U;if(!isArrayLike$5(U))return C(U,W);for(var G=U.length,X=H?G:-1,Z=Object(U);(H?X--:++X<G)&&W(Z[X],X,Z)!==!1;);return U}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach,index$r="",_default$1="",index$q="";var isVue2=!1;/*!
|
||
* pinia v2.0.32
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let activePinia;const setActivePinia=C=>activePinia=C,piniaSymbol=Symbol();function isPlainObject$2(C){return C&&typeof C=="object"&&Object.prototype.toString.call(C)==="[object Object]"&&typeof C.toJSON!="function"}var MutationType;(function(C){C.direct="direct",C.patchObject="patch object",C.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const C=effectScope(!0),H=C.run(()=>ref({}));let U=[],W=[];const G=markRaw({install(X){setActivePinia(G),G._a=X,X.provide(piniaSymbol,G),X.config.globalProperties.$pinia=G,W.forEach(Z=>U.push(Z)),W=[]},use(X){return!this._a&&!isVue2?W.push(X):U.push(X),this},_p:U,_a:null,_e:C,_s:new Map,state:H});return G}const noop$3=()=>{};function addSubscription(C,H,U,W=noop$3){C.push(H);const G=()=>{const X=C.indexOf(H);X>-1&&(C.splice(X,1),W())};return!U&&getCurrentScope()&&onScopeDispose(G),G}function triggerSubscriptions(C,...H){C.slice().forEach(U=>{U(...H)})}function mergeReactiveObjects(C,H){C instanceof Map&&H instanceof Map&&H.forEach((U,W)=>C.set(W,U)),C instanceof Set&&H instanceof Set&&H.forEach(C.add,C);for(const U in H){if(!H.hasOwnProperty(U))continue;const W=H[U],G=C[U];isPlainObject$2(G)&&isPlainObject$2(W)&&C.hasOwnProperty(U)&&!isRef(W)&&!isReactive(W)?C[U]=mergeReactiveObjects(G,W):C[U]=W}return C}const skipHydrateSymbol=Symbol();function shouldHydrate(C){return!isPlainObject$2(C)||!C.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(C){return!!(isRef(C)&&C.effect)}function createOptionsStore(C,H,U,W){const{state:G,actions:X,getters:Z}=H,Q=U.state.value[C];let ee;function ie(){Q||(U.state.value[C]=G?G():{});const te=toRefs(U.state.value[C]);return assign$2(te,X,Object.keys(Z||{}).reduce((ne,ae)=>(ne[ae]=markRaw(computed(()=>{setActivePinia(U);const oe=U._s.get(C);return Z[ae].call(oe,oe)})),ne),{}))}return ee=createSetupStore(C,ie,H,U,W,!0),ee.$reset=function(){const ne=G?G():{};this.$patch(ae=>{assign$2(ae,ne)})},ee}function createSetupStore(C,H,U={},W,G,X){let Z;const Q=assign$2({actions:{}},U),ee={deep:!0};let ie,te,ne=markRaw([]),ae=markRaw([]),oe;const se=W.state.value[C];!X&&!se&&(W.state.value[C]={}),ref({});let le;function ce(_e){let be;ie=te=!1,typeof _e=="function"?(_e(W.state.value[C]),be={type:MutationType.patchFunction,storeId:C,events:oe}):(mergeReactiveObjects(W.state.value[C],_e),be={type:MutationType.patchObject,payload:_e,storeId:C,events:oe});const pe=le=Symbol();nextTick$1().then(()=>{le===pe&&(ie=!0)}),te=!0,triggerSubscriptions(ne,be,W.state.value[C])}const ue=noop$3;function de(){Z.stop(),ne=[],ae=[],W._s.delete(C)}function ve(_e,be){return function(){setActivePinia(W);const pe=Array.from(arguments),fe=[],ye=[];function $e(Te){fe.push(Te)}function we(Te){ye.push(Te)}triggerSubscriptions(ae,{args:pe,name:_e,store:he,after:$e,onError:we});let Se;try{Se=be.apply(this&&this.$id===C?this:he,pe)}catch(Te){throw triggerSubscriptions(ye,Te),Te}return Se instanceof Promise?Se.then(Te=>(triggerSubscriptions(fe,Te),Te)).catch(Te=>(triggerSubscriptions(ye,Te),Promise.reject(Te))):(triggerSubscriptions(fe,Se),Se)}}const ge={_p:W,$id:C,$onAction:addSubscription.bind(null,ae),$patch:ce,$reset:ue,$subscribe(_e,be={}){const pe=addSubscription(ne,_e,be.detached,()=>fe()),fe=Z.run(()=>watch(()=>W.state.value[C],ye=>{(be.flush==="sync"?te:ie)&&_e({storeId:C,type:MutationType.direct,events:oe},ye)},assign$2({},ee,be)));return pe},$dispose:de},he=reactive(ge);W._s.set(C,he);const me=W._e.run(()=>(Z=effectScope(),Z.run(()=>H())));for(const _e in me){const be=me[_e];if(isRef(be)&&!isComputed(be)||isReactive(be))X||(se&&shouldHydrate(be)&&(isRef(be)?be.value=se[_e]:mergeReactiveObjects(be,se[_e])),W.state.value[C][_e]=be);else if(typeof be=="function"){const pe=ve(_e,be);me[_e]=pe,Q.actions[_e]=be}}return assign$2(he,me),assign$2(toRaw(he),me),Object.defineProperty(he,"$state",{get:()=>W.state.value[C],set:_e=>{ce(be=>{assign$2(be,_e)})}}),W._p.forEach(_e=>{assign$2(he,Z.run(()=>_e({store:he,app:W._a,pinia:W,options:Q})))}),se&&X&&U.hydrate&&U.hydrate(he.$state,se),ie=!0,te=!0,he}function defineStore(C,H,U){let W,G;const X=typeof H=="function";typeof C=="string"?(W=C,G=X?U:H):(G=C,W=C.id);function Z(Q,ee){const ie=getCurrentInstance();return Q=Q||ie&&inject(piniaSymbol,null),Q&&setActivePinia(Q),Q=activePinia,Q._s.has(W)||(X?createSetupStore(W,H,G,Q):createOptionsStore(W,G,Q)),Q._s.get(W)}return Z.$id=W,Z}const useGlobalsStore=defineStore("Globals",{state(){return{menuData:[],language:"zh-CN",swagger:null,swaggerCurrentInstance:null,enableVersion:!1,enableAfterScript:!0,enableResponseCode:!0,enableReloadCacheParameter:!1,currentMenuData:[],serviceOptions:[],settings:{},defaultServiceOption:"",loading:{show:!1,text:"\u52A0\u8F7D\u4E2D..."}}},actions:{setSettings(C){this.settings=C},setReloadCacheParameter(C){this.enableReloadCacheParameter=C},setAfterScript(C){this.enableAfterScript=C},setResponseCode(C){this.enableResponseCode=C},setGitVersion(C){this.enableVersion=C},setMenuData(C){this.menuData=this.menuData.concat(C),this.currentMenuData=C},setCurrentMenuData(C){this.currentMenuData=C},setLang(C){this.language=C},setSwagger(C){this.swagger=C},setSwaggerInstance(C){this.swaggerCurrentInstance=C},setServiceOptions(C){this.serviceOptions=C},setDefaultService(C){this.defaultServiceOption=C},showLoading(C){this.loading.show=!0,C&&(this.loading.text=C.text)},destroyLoading(){this.loading.show=!1,this.loading.text="\u52A0\u8F7D\u4E2D..."}}}),_hoisted_1$d={id:"app"},_sfc_main$j={__name:"App",setup(C){const H=useGlobalsStore(),U=computed(()=>H.loading.show),W=computed(()=>H.loading.text);return(G,X)=>{const Z=resolveComponent("router-view"),Q=Spin,ee=__unplugin_components_1$4;return openBlock(),createElementBlock("div",_hoisted_1$d,[createVNode(ee,null,{default:withCtx(()=>[createVNode(Q,{spinning:unref(U),tip:unref(W)},{default:withCtx(()=>[createVNode(Z)]),_:1},8,["spinning","tip"])]),_:1})])}}};function setupStore(C){C.use(createPinia())}const scriptRel="modulepreload",assetsURL=function(C,H){return new URL(C,H).href},seen={},__vitePreload=function(H,U,W){if(!U||U.length===0)return H();const G=document.getElementsByTagName("link");return Promise.all(U.map(X=>{if(X=assetsURL(X,W),X in seen)return;seen[X]=!0;const Z=X.endsWith(".css"),Q=Z?'[rel="stylesheet"]':"";if(!!W)for(let te=G.length-1;te>=0;te--){const ne=G[te];if(ne.href===X&&(!Z||ne.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${X}"]${Q}`))return;const ie=document.createElement("link");if(ie.rel=Z?"stylesheet":scriptRel,Z||(ie.as="script",ie.crossOrigin=""),ie.href=X,document.head.appendChild(ie),Z)return new Promise((te,ne)=>{ie.addEventListener("load",te),ie.addEventListener("error",()=>ne(new Error(`Unable to preload CSS for ${X}`)))})})).then(()=>H())};/*!
|
||
* vue-router v4.0.16
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=C=>hasSymbol?Symbol(C):"_vr_"+C,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window<"u";function isESModule(C){return C.__esModule||hasSymbol&&C[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(C,H){const U={};for(const W in H){const G=H[W];U[W]=Array.isArray(G)?G.map(C):C(G)}return U}const noop$2=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=C=>C.replace(TRAILING_SLASH_RE,"");function parseURL(C,H,U="/"){let W,G={},X="",Z="";const Q=H.indexOf("?"),ee=H.indexOf("#",Q>-1?Q:0);return Q>-1&&(W=H.slice(0,Q),X=H.slice(Q+1,ee>-1?ee:H.length),G=C(X)),ee>-1&&(W=W||H.slice(0,ee),Z=H.slice(ee,H.length)),W=resolveRelativePath(W!=null?W:H,U),{fullPath:W+(X&&"?")+X+Z,path:W,query:G,hash:Z}}function stringifyURL(C,H){const U=H.query?C(H.query):"";return H.path+(U&&"?")+U+(H.hash||"")}function stripBase(C,H){return!H||!C.toLowerCase().startsWith(H.toLowerCase())?C:C.slice(H.length)||"/"}function isSameRouteLocation(C,H,U){const W=H.matched.length-1,G=U.matched.length-1;return W>-1&&W===G&&isSameRouteRecord(H.matched[W],U.matched[G])&&isSameRouteLocationParams(H.params,U.params)&&C(H.query)===C(U.query)&&H.hash===U.hash}function isSameRouteRecord(C,H){return(C.aliasOf||C)===(H.aliasOf||H)}function isSameRouteLocationParams(C,H){if(Object.keys(C).length!==Object.keys(H).length)return!1;for(const U in C)if(!isSameRouteLocationParamsValue(C[U],H[U]))return!1;return!0}function isSameRouteLocationParamsValue(C,H){return Array.isArray(C)?isEquivalentArray(C,H):Array.isArray(H)?isEquivalentArray(H,C):C===H}function isEquivalentArray(C,H){return Array.isArray(H)?C.length===H.length&&C.every((U,W)=>U===H[W]):C.length===1&&C[0]===H}function resolveRelativePath(C,H){if(C.startsWith("/"))return C;if(!C)return H;const U=H.split("/"),W=C.split("/");let G=U.length-1,X,Z;for(X=0;X<W.length;X++)if(Z=W[X],!(G===1||Z==="."))if(Z==="..")G--;else break;return U.slice(0,G).join("/")+"/"+W.slice(X-(X===W.length?1:0)).join("/")}var NavigationType;(function(C){C.pop="pop",C.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(C){C.back="back",C.forward="forward",C.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(C){if(!C)if(isBrowser){const H=document.querySelector("base");C=H&&H.getAttribute("href")||"/",C=C.replace(/^\w+:\/\/[^\/]+/,"")}else C="/";return C[0]!=="/"&&C[0]!=="#"&&(C="/"+C),removeTrailingSlash(C)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(C,H){return C.replace(BEFORE_HASH_RE,"#")+H}function getElementPosition(C,H){const U=document.documentElement.getBoundingClientRect(),W=C.getBoundingClientRect();return{behavior:H.behavior,left:W.left-U.left-(H.left||0),top:W.top-U.top-(H.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(C){let H;if("el"in C){const U=C.el,W=typeof U=="string"&&U.startsWith("#"),G=typeof U=="string"?W?document.getElementById(U.slice(1)):document.querySelector(U):U;if(!G)return;H=getElementPosition(G,C)}else H=C;"scrollBehavior"in document.documentElement.style?window.scrollTo(H):window.scrollTo(H.left!=null?H.left:window.pageXOffset,H.top!=null?H.top:window.pageYOffset)}function getScrollKey(C,H){return(history.state?history.state.position-H:-1)+C}const scrollPositions=new Map;function saveScrollPosition(C,H){scrollPositions.set(C,H)}function getSavedScrollPosition(C){const H=scrollPositions.get(C);return scrollPositions.delete(C),H}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(C,H){const{pathname:U,search:W,hash:G}=H,X=C.indexOf("#");if(X>-1){let Q=G.includes(C.slice(X))?C.slice(X).length:1,ee=G.slice(Q);return ee[0]!=="/"&&(ee="/"+ee),stripBase(ee,"")}return stripBase(U,C)+W+G}function useHistoryListeners(C,H,U,W){let G=[],X=[],Z=null;const Q=({state:ae})=>{const oe=createCurrentLocation(C,location),se=U.value,le=H.value;let ce=0;if(ae){if(U.value=oe,H.value=ae,Z&&Z===se){Z=null;return}ce=le?ae.position-le.position:0}else W(oe);G.forEach(ue=>{ue(U.value,se,{delta:ce,type:NavigationType.pop,direction:ce?ce>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function ee(){Z=U.value}function ie(ae){G.push(ae);const oe=()=>{const se=G.indexOf(ae);se>-1&&G.splice(se,1)};return X.push(oe),oe}function te(){const{history:ae}=window;!ae.state||ae.replaceState(assign$1({},ae.state,{scroll:computeScrollPosition()}),"")}function ne(){for(const ae of X)ae();X=[],window.removeEventListener("popstate",Q),window.removeEventListener("beforeunload",te)}return window.addEventListener("popstate",Q),window.addEventListener("beforeunload",te),{pauseListeners:ee,listen:ie,destroy:ne}}function buildState$1(C,H,U,W=!1,G=!1){return{back:C,current:H,forward:U,replaced:W,position:window.history.length,scroll:G?computeScrollPosition():null}}function useHistoryStateNavigation(C){const{history:H,location:U}=window,W={value:createCurrentLocation(C,U)},G={value:H.state};G.value||X(W.value,{back:null,current:W.value,forward:null,position:H.length-1,replaced:!0,scroll:null},!0);function X(ee,ie,te){const ne=C.indexOf("#"),ae=ne>-1?(U.host&&document.querySelector("base")?C:C.slice(ne))+ee:createBaseLocation()+C+ee;try{H[te?"replaceState":"pushState"](ie,"",ae),G.value=ie}catch(oe){console.error(oe),U[te?"replace":"assign"](ae)}}function Z(ee,ie){const te=assign$1({},H.state,buildState$1(G.value.back,ee,G.value.forward,!0),ie,{position:G.value.position});X(ee,te,!0),W.value=ee}function Q(ee,ie){const te=assign$1({},G.value,H.state,{forward:ee,scroll:computeScrollPosition()});X(te.current,te,!0);const ne=assign$1({},buildState$1(W.value,ee,null),{position:te.position+1},ie);X(ee,ne,!1),W.value=ee}return{location:W,state:G,push:Q,replace:Z}}function createWebHistory(C){C=normalizeBase(C);const H=useHistoryStateNavigation(C),U=useHistoryListeners(C,H.state,H.location,H.replace);function W(X,Z=!0){Z||U.pauseListeners(),history.go(X)}const G=assign$1({location:"",base:C,go:W,createHref:createHref.bind(null,C)},H,U);return Object.defineProperty(G,"location",{enumerable:!0,get:()=>H.location.value}),Object.defineProperty(G,"state",{enumerable:!0,get:()=>H.state.value}),G}function createWebHashHistory(C){return C=location.host?C||location.pathname+location.search:"",C.includes("#")||(C+="#"),createWebHistory(C)}function isRouteLocation(C){return typeof C=="string"||C&&typeof C=="object"}function isRouteName(C){return typeof C=="string"||typeof C=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(C){C[C.aborted=4]="aborted",C[C.cancelled=8]="cancelled",C[C.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(C,H){return assign$1(new Error,{type:C,[NavigationFailureSymbol]:!0},H)}function isNavigationFailure(C,H){return C instanceof Error&&NavigationFailureSymbol in C&&(H==null||!!(C.type&H))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(C,H){const U=assign$1({},BASE_PATH_PARSER_OPTIONS,H),W=[];let G=U.start?"^":"";const X=[];for(const ie of C){const te=ie.length?[]:[90];U.strict&&!ie.length&&(G+="/");for(let ne=0;ne<ie.length;ne++){const ae=ie[ne];let oe=40+(U.sensitive?.25:0);if(ae.type===0)ne||(G+="/"),G+=ae.value.replace(REGEX_CHARS_RE,"\\$&"),oe+=40;else if(ae.type===1){const{value:se,repeatable:le,optional:ce,regexp:ue}=ae;X.push({name:se,repeatable:le,optional:ce});const de=ue||BASE_PARAM_PATTERN;if(de!==BASE_PARAM_PATTERN){oe+=10;try{new RegExp(`(${de})`)}catch(ge){throw new Error(`Invalid custom RegExp for param "${se}" (${de}): `+ge.message)}}let ve=le?`((?:${de})(?:/(?:${de}))*)`:`(${de})`;ne||(ve=ce&&ie.length<2?`(?:/${ve})`:"/"+ve),ce&&(ve+="?"),G+=ve,oe+=20,ce&&(oe+=-8),le&&(oe+=-20),de===".*"&&(oe+=-50)}te.push(oe)}W.push(te)}if(U.strict&&U.end){const ie=W.length-1;W[ie][W[ie].length-1]+=.7000000000000001}U.strict||(G+="/?"),U.end?G+="$":U.strict&&(G+="(?:/|$)");const Z=new RegExp(G,U.sensitive?"":"i");function Q(ie){const te=ie.match(Z),ne={};if(!te)return null;for(let ae=1;ae<te.length;ae++){const oe=te[ae]||"",se=X[ae-1];ne[se.name]=oe&&se.repeatable?oe.split("/"):oe}return ne}function ee(ie){let te="",ne=!1;for(const ae of C){(!ne||!te.endsWith("/"))&&(te+="/"),ne=!1;for(const oe of ae)if(oe.type===0)te+=oe.value;else if(oe.type===1){const{value:se,repeatable:le,optional:ce}=oe,ue=se in ie?ie[se]:"";if(Array.isArray(ue)&&!le)throw new Error(`Provided param "${se}" is an array but it is not repeatable (* or + modifiers)`);const de=Array.isArray(ue)?ue.join("/"):ue;if(!de)if(ce)ae.length<2&&C.length>1&&(te.endsWith("/")?te=te.slice(0,-1):ne=!0);else throw new Error(`Missing required param "${se}"`);te+=de}}return te}return{re:Z,score:W,keys:X,parse:Q,stringify:ee}}function compareScoreArray(C,H){let U=0;for(;U<C.length&&U<H.length;){const W=H[U]-C[U];if(W)return W;U++}return C.length<H.length?C.length===1&&C[0]===40+40?-1:1:C.length>H.length?H.length===1&&H[0]===40+40?1:-1:0}function comparePathParserScore(C,H){let U=0;const W=C.score,G=H.score;for(;U<W.length&&U<G.length;){const X=compareScoreArray(W[U],G[U]);if(X)return X;U++}if(Math.abs(G.length-W.length)===1){if(isLastScoreNegative(W))return 1;if(isLastScoreNegative(G))return-1}return G.length-W.length}function isLastScoreNegative(C){const H=C[C.length-1];return C.length>0&&H[H.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(C){if(!C)return[[]];if(C==="/")return[[ROOT_TOKEN]];if(!C.startsWith("/"))throw new Error(`Invalid path "${C}"`);function H(oe){throw new Error(`ERR (${U})/"${ie}": ${oe}`)}let U=0,W=U;const G=[];let X;function Z(){X&&G.push(X),X=[]}let Q=0,ee,ie="",te="";function ne(){!ie||(U===0?X.push({type:0,value:ie}):U===1||U===2||U===3?(X.length>1&&(ee==="*"||ee==="+")&&H(`A repeatable param (${ie}) must be alone in its segment. eg: '/:ids+.`),X.push({type:1,value:ie,regexp:te,repeatable:ee==="*"||ee==="+",optional:ee==="*"||ee==="?"})):H("Invalid state to consume buffer"),ie="")}function ae(){ie+=ee}for(;Q<C.length;){if(ee=C[Q++],ee==="\\"&&U!==2){W=U,U=4;continue}switch(U){case 0:ee==="/"?(ie&&ne(),Z()):ee===":"?(ne(),U=1):ae();break;case 4:ae(),U=W;break;case 1:ee==="("?U=2:VALID_PARAM_RE.test(ee)?ae():(ne(),U=0,ee!=="*"&&ee!=="?"&&ee!=="+"&&Q--);break;case 2:ee===")"?te[te.length-1]=="\\"?te=te.slice(0,-1)+ee:U=3:te+=ee;break;case 3:ne(),U=0,ee!=="*"&&ee!=="?"&&ee!=="+"&&Q--,te="";break;default:H("Unknown state");break}}return U===2&&H(`Unfinished custom RegExp for param "${ie}"`),ne(),Z(),G}function createRouteRecordMatcher(C,H,U){const W=tokensToParser(tokenizePath(C.path),U),G=assign$1(W,{record:C,parent:H,children:[],alias:[]});return H&&!G.record.aliasOf==!H.record.aliasOf&&H.children.push(G),G}function createRouterMatcher(C,H){const U=[],W=new Map;H=mergeOptions({strict:!1,end:!0,sensitive:!1},H);function G(te){return W.get(te)}function X(te,ne,ae){const oe=!ae,se=normalizeRouteRecord(te);se.aliasOf=ae&&ae.record;const le=mergeOptions(H,te),ce=[se];if("alias"in te){const ve=typeof te.alias=="string"?[te.alias]:te.alias;for(const ge of ve)ce.push(assign$1({},se,{components:ae?ae.record.components:se.components,path:ge,aliasOf:ae?ae.record:se}))}let ue,de;for(const ve of ce){const{path:ge}=ve;if(ne&&ge[0]!=="/"){const he=ne.record.path,me=he[he.length-1]==="/"?"":"/";ve.path=ne.record.path+(ge&&me+ge)}if(ue=createRouteRecordMatcher(ve,ne,le),ae?ae.alias.push(ue):(de=de||ue,de!==ue&&de.alias.push(ue),oe&&te.name&&!isAliasRecord(ue)&&Z(te.name)),"children"in se){const he=se.children;for(let me=0;me<he.length;me++)X(he[me],ue,ae&&ae.children[me])}ae=ae||ue,ee(ue)}return de?()=>{Z(de)}:noop$2}function Z(te){if(isRouteName(te)){const ne=W.get(te);ne&&(W.delete(te),U.splice(U.indexOf(ne),1),ne.children.forEach(Z),ne.alias.forEach(Z))}else{const ne=U.indexOf(te);ne>-1&&(U.splice(ne,1),te.record.name&&W.delete(te.record.name),te.children.forEach(Z),te.alias.forEach(Z))}}function Q(){return U}function ee(te){let ne=0;for(;ne<U.length&&comparePathParserScore(te,U[ne])>=0&&(te.record.path!==U[ne].record.path||!isRecordChildOf(te,U[ne]));)ne++;U.splice(ne,0,te),te.record.name&&!isAliasRecord(te)&&W.set(te.record.name,te)}function ie(te,ne){let ae,oe={},se,le;if("name"in te&&te.name){if(ae=W.get(te.name),!ae)throw createRouterError(1,{location:te});le=ae.record.name,oe=assign$1(paramsFromLocation(ne.params,ae.keys.filter(de=>!de.optional).map(de=>de.name)),te.params),se=ae.stringify(oe)}else if("path"in te)se=te.path,ae=U.find(de=>de.re.test(se)),ae&&(oe=ae.parse(se),le=ae.record.name);else{if(ae=ne.name?W.get(ne.name):U.find(de=>de.re.test(ne.path)),!ae)throw createRouterError(1,{location:te,currentLocation:ne});le=ae.record.name,oe=assign$1({},ne.params,te.params),se=ae.stringify(oe)}const ce=[];let ue=ae;for(;ue;)ce.unshift(ue.record),ue=ue.parent;return{name:le,path:se,params:oe,matched:ce,meta:mergeMetaFields(ce)}}return C.forEach(te=>X(te)),{addRoute:X,resolve:ie,removeRoute:Z,getRoutes:Q,getRecordMatcher:G}}function paramsFromLocation(C,H){const U={};for(const W of H)W in C&&(U[W]=C[W]);return U}function normalizeRouteRecord(C){return{path:C.path,redirect:C.redirect,name:C.name,meta:C.meta||{},aliasOf:void 0,beforeEnter:C.beforeEnter,props:normalizeRecordProps(C),children:C.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in C?C.components||{}:{default:C.component}}}function normalizeRecordProps(C){const H={},U=C.props||!1;if("component"in C)H.default=U;else for(const W in C.components)H[W]=typeof U=="boolean"?U:U[W];return H}function isAliasRecord(C){for(;C;){if(C.record.aliasOf)return!0;C=C.parent}return!1}function mergeMetaFields(C){return C.reduce((H,U)=>assign$1(H,U.meta),{})}function mergeOptions(C,H){const U={};for(const W in C)U[W]=W in H?H[W]:C[W];return U}function isRecordChildOf(C,H){return H.children.some(U=>U===C||isRecordChildOf(C,U))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(C){return encodeURI(""+C).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(C){return commonEncode(C).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(C){return commonEncode(C).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(C){return encodeQueryValue(C).replace(EQUAL_RE,"%3D")}function encodePath(C){return commonEncode(C).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(C){return C==null?"":encodePath(C).replace(SLASH_RE,"%2F")}function decode(C){try{return decodeURIComponent(""+C)}catch{}return""+C}function parseQuery(C){const H={};if(C===""||C==="?")return H;const W=(C[0]==="?"?C.slice(1):C).split("&");for(let G=0;G<W.length;++G){const X=W[G].replace(PLUS_RE," "),Z=X.indexOf("="),Q=decode(Z<0?X:X.slice(0,Z)),ee=Z<0?null:decode(X.slice(Z+1));if(Q in H){let ie=H[Q];Array.isArray(ie)||(ie=H[Q]=[ie]),ie.push(ee)}else H[Q]=ee}return H}function stringifyQuery(C){let H="";for(let U in C){const W=C[U];if(U=encodeQueryKey(U),W==null){W!==void 0&&(H+=(H.length?"&":"")+U);continue}(Array.isArray(W)?W.map(X=>X&&encodeQueryValue(X)):[W&&encodeQueryValue(W)]).forEach(X=>{X!==void 0&&(H+=(H.length?"&":"")+U,X!=null&&(H+="="+X))})}return H}function normalizeQuery(C){const H={};for(const U in C){const W=C[U];W!==void 0&&(H[U]=Array.isArray(W)?W.map(G=>G==null?null:""+G):W==null?W:""+W)}return H}function useCallbacks(){let C=[];function H(W){return C.push(W),()=>{const G=C.indexOf(W);G>-1&&C.splice(G,1)}}function U(){C=[]}return{add:H,list:()=>C,reset:U}}function guardToPromiseFn(C,H,U,W,G){const X=W&&(W.enterCallbacks[G]=W.enterCallbacks[G]||[]);return()=>new Promise((Z,Q)=>{const ee=ne=>{ne===!1?Q(createRouterError(4,{from:U,to:H})):ne instanceof Error?Q(ne):isRouteLocation(ne)?Q(createRouterError(2,{from:H,to:ne})):(X&&W.enterCallbacks[G]===X&&typeof ne=="function"&&X.push(ne),Z())},ie=C.call(W&&W.instances[G],H,U,ee);let te=Promise.resolve(ie);C.length<3&&(te=te.then(ee)),te.catch(ne=>Q(ne))})}function extractComponentsGuards(C,H,U,W){const G=[];for(const X of C)for(const Z in X.components){let Q=X.components[Z];if(!(H!=="beforeRouteEnter"&&!X.instances[Z]))if(isRouteComponent(Q)){const ie=(Q.__vccOpts||Q)[H];ie&&G.push(guardToPromiseFn(ie,U,W,X,Z))}else{let ee=Q();G.push(()=>ee.then(ie=>{if(!ie)return Promise.reject(new Error(`Couldn't resolve component "${Z}" at "${X.path}"`));const te=isESModule(ie)?ie.default:ie;X.components[Z]=te;const ae=(te.__vccOpts||te)[H];return ae&&guardToPromiseFn(ae,U,W,X,Z)()}))}}return G}function isRouteComponent(C){return typeof C=="object"||"displayName"in C||"props"in C||"__vccOpts"in C}function useLink(C){const H=inject(routerKey),U=inject(routeLocationKey),W=computed(()=>H.resolve(unref(C.to))),G=computed(()=>{const{matched:ee}=W.value,{length:ie}=ee,te=ee[ie-1],ne=U.matched;if(!te||!ne.length)return-1;const ae=ne.findIndex(isSameRouteRecord.bind(null,te));if(ae>-1)return ae;const oe=getOriginalPath(ee[ie-2]);return ie>1&&getOriginalPath(te)===oe&&ne[ne.length-1].path!==oe?ne.findIndex(isSameRouteRecord.bind(null,ee[ie-2])):ae}),X=computed(()=>G.value>-1&&includesParams(U.params,W.value.params)),Z=computed(()=>G.value>-1&&G.value===U.matched.length-1&&isSameRouteLocationParams(U.params,W.value.params));function Q(ee={}){return guardEvent(ee)?H[unref(C.replace)?"replace":"push"](unref(C.to)).catch(noop$2):Promise.resolve()}return{route:W,href:computed(()=>W.value.href),isActive:X,isExactActive:Z,navigate:Q}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(C,{slots:H}){const U=reactive(useLink(C)),{options:W}=inject(routerKey),G=computed(()=>({[getLinkClass(C.activeClass,W.linkActiveClass,"router-link-active")]:U.isActive,[getLinkClass(C.exactActiveClass,W.linkExactActiveClass,"router-link-exact-active")]:U.isExactActive}));return()=>{const X=H.default&&H.default(U);return C.custom?X:h$1("a",{"aria-current":U.isExactActive?C.ariaCurrentValue:null,href:U.href,onClick:U.navigate,class:G.value},X)}}}),RouterLink=RouterLinkImpl;function guardEvent(C){if(!(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)&&!C.defaultPrevented&&!(C.button!==void 0&&C.button!==0)){if(C.currentTarget&&C.currentTarget.getAttribute){const H=C.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(H))return}return C.preventDefault&&C.preventDefault(),!0}}function includesParams(C,H){for(const U in H){const W=H[U],G=C[U];if(typeof W=="string"){if(W!==G)return!1}else if(!Array.isArray(G)||G.length!==W.length||W.some((X,Z)=>X!==G[Z]))return!1}return!0}function getOriginalPath(C){return C?C.aliasOf?C.aliasOf.path:C.path:""}const getLinkClass=(C,H,U)=>C!=null?C:H!=null?H:U,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(C,{attrs:H,slots:U}){const W=inject(routerViewLocationKey),G=computed(()=>C.route||W.value),X=inject(viewDepthKey,0),Z=computed(()=>G.value.matched[X]);provide(viewDepthKey,X+1),provide(matchedRouteKey,Z),provide(routerViewLocationKey,G);const Q=ref();return watch(()=>[Q.value,Z.value,C.name],([ee,ie,te],[ne,ae,oe])=>{ie&&(ie.instances[te]=ee,ae&&ae!==ie&&ee&&ee===ne&&(ie.leaveGuards.size||(ie.leaveGuards=ae.leaveGuards),ie.updateGuards.size||(ie.updateGuards=ae.updateGuards))),ee&&ie&&(!ae||!isSameRouteRecord(ie,ae)||!ne)&&(ie.enterCallbacks[te]||[]).forEach(se=>se(ee))},{flush:"post"}),()=>{const ee=G.value,ie=Z.value,te=ie&&ie.components[C.name],ne=C.name;if(!te)return normalizeSlot(U.default,{Component:te,route:ee});const ae=ie.props[C.name],oe=ae?ae===!0?ee.params:typeof ae=="function"?ae(ee):ae:null,le=h$1(te,assign$1({},oe,H,{onVnodeUnmounted:ce=>{ce.component.isUnmounted&&(ie.instances[ne]=null)},ref:Q}));return normalizeSlot(U.default,{Component:le,route:ee})||le}}});function normalizeSlot(C,H){if(!C)return null;const U=C(H);return U.length===1?U[0]:U}const RouterView=RouterViewImpl;function createRouter(C){const H=createRouterMatcher(C.routes,C),U=C.parseQuery||parseQuery,W=C.stringifyQuery||stringifyQuery,G=C.history,X=useCallbacks(),Z=useCallbacks(),Q=useCallbacks(),ee=shallowRef(START_LOCATION_NORMALIZED);let ie=START_LOCATION_NORMALIZED;isBrowser&&C.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const te=applyToParams.bind(null,Le=>""+Le),ne=applyToParams.bind(null,encodeParam),ae=applyToParams.bind(null,decode);function oe(Le,De){let Je,ze;return isRouteName(Le)?(Je=H.getRecordMatcher(Le),ze=De):ze=Le,H.addRoute(ze,Je)}function se(Le){const De=H.getRecordMatcher(Le);De&&H.removeRoute(De)}function le(){return H.getRoutes().map(Le=>Le.record)}function ce(Le){return!!H.getRecordMatcher(Le)}function ue(Le,De){if(De=assign$1({},De||ee.value),typeof Le=="string"){const Ee=parseURL(U,Le,De.path),Ce=H.resolve({path:Ee.path},De),Pe=G.createHref(Ee.fullPath);return assign$1(Ee,Ce,{params:ae(Ce.params),hash:decode(Ee.hash),redirectedFrom:void 0,href:Pe})}let Je;if("path"in Le)Je=assign$1({},Le,{path:parseURL(U,Le.path,De.path).path});else{const Ee=assign$1({},Le.params);for(const Ce in Ee)Ee[Ce]==null&&delete Ee[Ce];Je=assign$1({},Le,{params:ne(Le.params)}),De.params=ne(De.params)}const ze=H.resolve(Je,De),Ge=Le.hash||"";ze.params=te(ae(ze.params));const qe=stringifyURL(W,assign$1({},Le,{hash:encodeHash(Ge),path:ze.path})),Ke=G.createHref(qe);return assign$1({fullPath:qe,hash:Ge,query:W===stringifyQuery?normalizeQuery(Le.query):Le.query||{}},ze,{redirectedFrom:void 0,href:Ke})}function de(Le){return typeof Le=="string"?parseURL(U,Le,ee.value.path):assign$1({},Le)}function ve(Le,De){if(ie!==Le)return createRouterError(8,{from:De,to:Le})}function ge(Le){return _e(Le)}function he(Le){return ge(assign$1(de(Le),{replace:!0}))}function me(Le){const De=Le.matched[Le.matched.length-1];if(De&&De.redirect){const{redirect:Je}=De;let ze=typeof Je=="function"?Je(Le):Je;return typeof ze=="string"&&(ze=ze.includes("?")||ze.includes("#")?ze=de(ze):{path:ze},ze.params={}),assign$1({query:Le.query,hash:Le.hash,params:Le.params},ze)}}function _e(Le,De){const Je=ie=ue(Le),ze=ee.value,Ge=Le.state,qe=Le.force,Ke=Le.replace===!0,Ee=me(Je);if(Ee)return _e(assign$1(de(Ee),{state:Ge,force:qe,replace:Ke}),De||Je);const Ce=Je;Ce.redirectedFrom=De;let Pe;return!qe&&isSameRouteLocation(W,ze,Je)&&(Pe=createRouterError(16,{to:Ce,from:ze}),Me(ze,ze,!0,!1)),(Pe?Promise.resolve(Pe):pe(Ce,ze)).catch(Re=>isNavigationFailure(Re)?isNavigationFailure(Re,2)?Re:Ae(Re):ke(Re,Ce,ze)).then(Re=>{if(Re){if(isNavigationFailure(Re,2))return _e(assign$1(de(Re.to),{state:Ge,force:qe,replace:Ke}),De||Ce)}else Re=ye(Ce,ze,!0,Ke,Ge);return fe(Ce,ze,Re),Re})}function be(Le,De){const Je=ve(Le,De);return Je?Promise.reject(Je):Promise.resolve()}function pe(Le,De){let Je;const[ze,Ge,qe]=extractChangingRecords(Le,De);Je=extractComponentsGuards(ze.reverse(),"beforeRouteLeave",Le,De);for(const Ee of ze)Ee.leaveGuards.forEach(Ce=>{Je.push(guardToPromiseFn(Ce,Le,De))});const Ke=be.bind(null,Le,De);return Je.push(Ke),runGuardQueue(Je).then(()=>{Je=[];for(const Ee of X.list())Je.push(guardToPromiseFn(Ee,Le,De));return Je.push(Ke),runGuardQueue(Je)}).then(()=>{Je=extractComponentsGuards(Ge,"beforeRouteUpdate",Le,De);for(const Ee of Ge)Ee.updateGuards.forEach(Ce=>{Je.push(guardToPromiseFn(Ce,Le,De))});return Je.push(Ke),runGuardQueue(Je)}).then(()=>{Je=[];for(const Ee of Le.matched)if(Ee.beforeEnter&&!De.matched.includes(Ee))if(Array.isArray(Ee.beforeEnter))for(const Ce of Ee.beforeEnter)Je.push(guardToPromiseFn(Ce,Le,De));else Je.push(guardToPromiseFn(Ee.beforeEnter,Le,De));return Je.push(Ke),runGuardQueue(Je)}).then(()=>(Le.matched.forEach(Ee=>Ee.enterCallbacks={}),Je=extractComponentsGuards(qe,"beforeRouteEnter",Le,De),Je.push(Ke),runGuardQueue(Je))).then(()=>{Je=[];for(const Ee of Z.list())Je.push(guardToPromiseFn(Ee,Le,De));return Je.push(Ke),runGuardQueue(Je)}).catch(Ee=>isNavigationFailure(Ee,8)?Ee:Promise.reject(Ee))}function fe(Le,De,Je){for(const ze of Q.list())ze(Le,De,Je)}function ye(Le,De,Je,ze,Ge){const qe=ve(Le,De);if(qe)return qe;const Ke=De===START_LOCATION_NORMALIZED,Ee=isBrowser?history.state:{};Je&&(ze||Ke?G.replace(Le.fullPath,assign$1({scroll:Ke&&Ee&&Ee.scroll},Ge)):G.push(Le.fullPath,Ge)),ee.value=Le,Me(Le,De,Je,Ke),Ae()}let $e;function we(){$e||($e=G.listen((Le,De,Je)=>{const ze=ue(Le),Ge=me(ze);if(Ge){_e(assign$1(Ge,{replace:!0}),ze).catch(noop$2);return}ie=ze;const qe=ee.value;isBrowser&&saveScrollPosition(getScrollKey(qe.fullPath,Je.delta),computeScrollPosition()),pe(ze,qe).catch(Ke=>isNavigationFailure(Ke,12)?Ke:isNavigationFailure(Ke,2)?(_e(Ke.to,ze).then(Ee=>{isNavigationFailure(Ee,20)&&!Je.delta&&Je.type===NavigationType.pop&&G.go(-1,!1)}).catch(noop$2),Promise.reject()):(Je.delta&&G.go(-Je.delta,!1),ke(Ke,ze,qe))).then(Ke=>{Ke=Ke||ye(ze,qe,!1),Ke&&(Je.delta?G.go(-Je.delta,!1):Je.type===NavigationType.pop&&isNavigationFailure(Ke,20)&&G.go(-1,!1)),fe(ze,qe,Ke)}).catch(noop$2)}))}let Se=useCallbacks(),Te=useCallbacks(),xe;function ke(Le,De,Je){Ae(Le);const ze=Te.list();return ze.length?ze.forEach(Ge=>Ge(Le,De,Je)):console.error(Le),Promise.reject(Le)}function Ie(){return xe&&ee.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Le,De)=>{Se.add([Le,De])})}function Ae(Le){return xe||(xe=!Le,we(),Se.list().forEach(([De,Je])=>Le?Je(Le):De()),Se.reset()),Le}function Me(Le,De,Je,ze){const{scrollBehavior:Ge}=C;if(!isBrowser||!Ge)return Promise.resolve();const qe=!Je&&getSavedScrollPosition(getScrollKey(Le.fullPath,0))||(ze||!Je)&&history.state&&history.state.scroll||null;return nextTick$1().then(()=>Ge(Le,De,qe)).then(Ke=>Ke&&scrollToPosition(Ke)).catch(Ke=>ke(Ke,Le,De))}const Fe=Le=>G.go(Le);let Be;const Ne=new Set;return{currentRoute:ee,addRoute:oe,removeRoute:se,hasRoute:ce,getRoutes:le,resolve:ue,options:C,push:ge,replace:he,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:X.add,beforeResolve:Z.add,afterEach:Q.add,onError:Te.add,isReady:Ie,install(Le){const De=this;Le.component("RouterLink",RouterLink),Le.component("RouterView",RouterView),Le.config.globalProperties.$router=De,Object.defineProperty(Le.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(ee)}),isBrowser&&!Be&&ee.value===START_LOCATION_NORMALIZED&&(Be=!0,ge(G.location).catch(Ge=>{}));const Je={};for(const Ge in START_LOCATION_NORMALIZED)Je[Ge]=computed(()=>ee.value[Ge]);Le.provide(routerKey,De),Le.provide(routeLocationKey,reactive(Je)),Le.provide(routerViewLocationKey,ee);const ze=Le.unmount;Ne.add(Le),Le.unmount=function(){Ne.delete(Le),Ne.size<1&&(ie=START_LOCATION_NORMALIZED,$e&&$e(),$e=null,ee.value=START_LOCATION_NORMALIZED,Be=!1,xe=!1),ze()}}}}function runGuardQueue(C){return C.reduce((H,U)=>H.then(()=>U()),Promise.resolve())}function extractChangingRecords(C,H){const U=[],W=[],G=[],X=Math.max(H.matched.length,C.matched.length);for(let Z=0;Z<X;Z++){const Q=H.matched[Z];Q&&(C.matched.find(ie=>isSameRouteRecord(ie,Q))?W.push(Q):U.push(Q));const ee=C.matched[Z];ee&&(H.matched.find(ie=>isSameRouteRecord(ie,ee))||G.push(ee))}return[U,W,G]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const index$p="",index$o="",index$n="",index$m="",index$l="",index$k="",logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTA1LTEwVDEwOjU1OjA0KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMC0wNS0xMFQxMDo1NjoxMiswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMC0wNS0xMFQxMDo1NjoxMiswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxYTZhOWUwZS04ZWFkLTlkNGItOGY2My03MWYxZTY4NTRhMjAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MWE2YTllMGUtOGVhZC05ZDRiLThmNjMtNzFmMWU2ODU0YTIwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MWE2YTllMGUtOGVhZC05ZDRiLThmNjMtNzFmMWU2ODU0YTIwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxYTZhOWUwZS04ZWFkLTlkNGItOGY2My03MWYxZTY4NTRhMjAiIHN0RXZ0OndoZW49IjIwMjAtMDUtMTBUMTA6NTU6MDQrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE4IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6ESy9MAABM4UlEQVR4nO2dd5hc5XX/P+fe6bO9aVVXXUJCEuqAEL2JbgIYbBxi48TBP3BwT+wkdoxt7NiJTWxj3MB23BvFDhgwBtEFCNRQRRKruqut09u99/398c6orlZ3RrvSSsz3efQgWzP33pl5v+97yvecI0opyiijjL5hHO8HKKOMoYwyQcooox+UCVJGGf2gTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf2gTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf2gTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf3AU8qb5Lwb3b/YtpDqRqioAeVANo3avBK57IPIwstRa16Aja+hsink0g+gfv9N5PQrEDFgwkzUa08iVXWoTBKprEf1tCG1wyAZQ6XiqLYtGBf/HezYhLKyqJcexvjgV1EP3gNNLcgF74V1y1BtW5BF16B+/iWoboAzr0ZapqJ+/XVUeyuyYAkyeR7UN6F+ew/qud8hcy6C0ZOg5VSvNIysxrYcwMEX8NGxY756+pdevP59zY2r6jwYJhzc79gw/HS375IZi18nGUsryFLTCM/9HlCAlPIzuPruqR0GoSrIZSAQhrpm/W/dbZBJgZ2DSAdq51vIJe9HFixBbV4Ju96CtS8jcy9ETZoLrz4GOzch196J87O7YNwMRERfu20rctEtqPatSLAC9cbTMOtcJNGLeuUx5G8+ivrjd8HKwezzkXnnox7+Hmr5X5BpZ0AgpH+TcA1UN+pn6mmHTBJ2bIJdm5BLb4Up81FP/xJSCeSsa8BxUBtehVXPgmni/Pa/BvwrLIkgJw1MIBWDWDfkMh5gPMlUgomz5os/sIBhY20q62oIVrTgOCMBC3DIpHzUDTtN/vbzxgFkcOx+7uXpwXHa1Kbl92HlfoKVi6LZ8c6DAaTiENmjv38UBCrAl/HgWAFsyyGXSZFNKZIRiHaBlQXDPOaP+g4hiMovRYF0AgIVgnKmEU9WMe/S841T42fSMMoHTCHRa8mUBfXMOreKTFrvZrksOBZ7d3oRsG39w7lHLcqplXEz7iadaFCta3+C42werMNjSEChrQYB0kn9Xdp2E/H0HGae02OMnHw1NY2zMM0M3kAAjy+IL1CJcmzCVVFsK8fwCTFmnRegqeWPpBOryGXXkk3HEQNwBv0jnLwEsXL5RQ2ICCJTsLJz5crbahHjfYRrxpGMBmTCrACmx0smpc0Qw9S7Wyp+0AUHYCWLAelECF/gTqlrTitDvoxSg2ZhHR+INu0KxBAzSCp5iVz6gVHkMtcTrhpLordexpxiMXF2mGzag1L69crJn8IClXV6IzK94PFCKnYx2VRGZp0bQVil0okHxOt/FtvuHEwz9eQhiIg+hlNxcByhul4IVp5DOjGXkRPnSPO4d6McxfBxguMY5LL6BzmECMcAuWwl4eqPcvYNSwmGXzjEZzlaBMKwZTW8/Ij2QY4FCqeqbUNFTRgr9y5GTRkujaPOwhe4ipoGhVKCldMESif0n8PBzm9upAv/TwAxAtQ2VSPGGEknrsAfehKf/0NYua2D9bFODoIoBYmIQW0TjD31FLKpf5BLPtiAlbkaOxfG9IFH9O6UTh7vp9XE9PqrpHHUCPZsG2DbWoHhATkWDk6eFImoNp9ClXMxve+Xs65txMq+CzG8hGvByUE6OTBbfC6r/2t6wMpeJNMXfV/17vkIO99aNyDXPwgnLkFMD6Si2sH2eJtVbfPfy/gZi2TK/Akk4xOxMvkXSv74Pq5PeygCYR/b1p3v/OBTvyVcPXDXdWzwBZDmcRAawOseDDEg3gPhKpi6YJFS6g4ZNnYxtjUCK7+IlQP2IPkJhVNXuFDOvOYG9cyvvsAg/MonHkHEAMtCde1uZPYFY4xRU67FF3ivTJ7TQiqu/YgTBUp5cOz+o1/FXVAvkVA1eP37dtuBhGHq8GusOySzzp1JZe1naBozj0R0OLk0x96hUpBLX0So8gFg20Bf/cQhiOMUfIYgU+adIQ0jrmHk5DsYPiFLIuLT4cITyNtNJzI0jf6zfODL+jQcCJgeJBXD+euvDs3FHDWUJnK0C5l78RQZN+OrDJ9wKdmUn3gPeY98gO/p5rEUGOYcxpwynnceQUTbr7kM+ILgD71bTr9iIf7gh/F4PUQ7QQzf3teeSLByJsGKCjn1rIFbzD4/6ldfhWyKgf0+FCiFMr2NEq5+t8y54Eq8gYuJ92jn/Hh+95ogfmlqmQA8M9CXH9oEsS3wV6A83qtkzkVXkYpfjtffjJXV/yYnqFJGBGwrqXZt2zRg1zRMiPfoLDgM4JoVbao1jp5ozL7ocxjmzThKR6BkCGxKhgGWtUutefZFrr9hwC8/dAmSTkAmOYnpZ94hlbWXkE5M1v7HINjVrqBATPD6dFwewOMDrwnRiDY/CmbgkSAG2Faa7etbBySGrxSEa1CvPgrJKFTVHd31YJ+vkY5DsOLDMm7GNXi8F2APlL80QBADEr33sXbZOjjZCWKY+gfOpkaqcadOlVDVf4svMHOfyXAMQlFKaQL4AgUiZIn1rMUwvWRSXXRs30IiGsWxbGJdKdXT4cicCy28viY83lvx+v1HNJlEQDk2sZ7kgBDE44XdW3W41ec/+q9JBBIRaB4HLdO/Jj7/J3DyOY4hAwWGZwsiXSra/RfMwZGhDA2CKG3jEu0UOePKiTJxzg9pHDmPRDSgE0aDcJQbxj7b3zDB48ug1F9wLJ/q3fMW2ze8TtcuG6W65ezrX8TweFUm2cuut5Ls2gLZNGx7E/X2m/rxRk2uklGTr0eMRtSRFpKA4yjiPVmdST/Kz+f1ozpaIZMAb+DorgWQS0Oosk7mXfLvVDf8E7HugcnVFPwVx85/5x4wPDbZ1JMolWF/dblSYHqS+PyTsHJzdHZ+P+b7Qz0q2v0dMc1f4PG2Hf3D9Y0hQJC9MoMQlfXnScup/wJqEbGeAfYxRP8gdj6smsttweN5WCXjUfa8vYE1L2xRXv9q47qPwe4tWbZvsNi6BoWDnHMDe00sXwBCFdrUClVrdawvCLXNs/D4Qq5MLMMAK5dVW1Ymj4ogSoFp6pCu4+jncI4y76CvM0umnfEhwlW3Ee85enJ4/dpntLKA7MAffER1bH+bzStfVzs3RYyLb1lHqMrGsfd9EYEQavuGjHr29yPllIWnyfiZ86msG4FjWSBKLXv09+TSf2HhFTKYvtDxJ0gmCaMmDzNOXfx1gpU3k8sonAF0wL1+hWHYpBI5otEogfCPVffuZ9VTP18pLafslEXXorZGYPdm8If0YjVMLcGuqM77FAfbLHonVCLIu/4JOfsq6O4+BSsXdBWRUgoM4xfUNquSCaKUXngAe7ZpM6vUhSJ5fyObBsP8B6kbcT6m5wYyqRJ/h3w23+PR1+xp/xnB8Atq3ctr6Wp7U674UBe5NHTvhp1v5QMuBz274cnL3TdsZ8T47di5P2IY4Ih+pu42vdF4fYNqdx9HgogWFFY3TJKW6XfhDbwbKwsKGRCnNRAGK5ule/cLIN9VFTUJ/vqLZ2TBZUm8PkhGdCDANHUewh/SO/ARv27Rr9+9GRk+ARk+DvX6s0jzuBj+kI1jH3lFWVmoqs8aH/xK6Z/RMMEwUM8/iNq1SZ9opUA7uUhtM9I0+g6szD0YInuFnqUgVB0j1gXx1P9R1fB955HvLJeFl0cxPfuiX2JoggdChyG22rdReXz69Xs3H6V9LRiEfM+BOPYEMUxtK8d7IFj5KRl76rUY5twBiU4pBZW1vThOF2+vWUPDyG+ojctXSLw7Ikv+HmWYee7lVaJ9FTf1fwPwBVBtW2HHRti+AbX8cUgnkA/fczoTZnlJxtxdKp2IHtWPGwhD9y7Ukz+Bynp30bODIQYkewEF7/nMnQwf9w0inaWdGvpEawMVY8vKu4BlatfmjbL4b/T3XCDFcajpOBocY4KI1k6NmYbMveibwD8h5tHbzSjwhTL4/K+p5//wI2lqeVDt2ZaSUFUGfxCywdIW0AG3UPqE2b0FOncgNU37fuxMErz+s4r5HGrXptXkMqUtRtFKRPXmi7qir9TPlk1DIIRcfccnaB73NXo7SlvAyoFwdU517Pwvgf9Vq57tkKkLHPzBQd/hBxvHliCpGDSMQi77+3toGPkRIiX+IAWYHvI2/P+pja/+kY4d96udm3JkUkhTi7ZRBwIi4A/C1tXQuRMZeyqYPvbaY7kM+AKefRLtI1zLcRS7W9tJxUqTmYgBVgY2ryjNtBK0+tbj9cnpl3+SptFfJNJZ2m9hGAmC1U+zauljrHr2XpbcCpW1+Shh8Zcbajg2BBHRMvOaYX65+JavUtP0EaIl/iCFPIVhQrz3SZWI/FTqhz9Cb0dU7dgANcO0PzFQAkAxdORq80pY+7Iu5PF4D9oZBaQoNiq6diaI9exLOhb5TKq7TZOj2BNI8r6fxxeQWed9nLrhnycRLWEzyZ+ose4fKkf9iK5dq1X3biQQPuFPjf0x+AQRQyf/Rk3xyUV/+xWq6v+JVKz0KJU/6JCKbSSb+Zzz5P8ulbph7Vx8i14s/tDRm1IHPrxeUO3bUB3bYNQkHV05eGu0rUo8Xn9RpmI26ZBJgF0KQQRyqeLfh+jTTqRa5lz4Uarq/pVMsvhdyrG139P+9pfVyme+xIIlSXxBvZEM6Pd//DF4BMmmdMQi1os6dZFpXPGPXyMQ+ki/VWT9QSkIVbWTjN7F9g3Pq23rVxIM5XerwYiD5+tIejs0HcafxmFtBqUm4w/Wuov8CKDeUq3ronTv3heqdQPH1rmXUJV+lqI2GdEJQDGCMnnex6io+SzZdJHkyOeCgmFU65q7eOrn/05Nsw54nKQYHIIohYyaCiMnAgqZec43qai+nVh38SeHUuDxbcfj7VArnv4iOA9KqFqH+TKJweGGyocYQ1XIGVci40+Bw1lsBpBIjCAVD7vOgYg8LBe8t5tM0r2Z6ThQ24zatBxWP5snSRGwMuAJG3LK6Z8hWPlZMsniE2yGJ0Uus5pA+Je88NA3adsKIyYWd40TDANPEKUApb+4M68WaWz6DtHYbUS7SvM5ghVp1bb16xII/5S33uhlzFSoNAfJAdQNFCQQwml/Gzq2I9vXoza+dni7OhlFzrwmyYTTLF2T4uIehlkri681MA3H9ecIAdt2op7/Q5GOfb5W3xfyyLxLPk2w8jOlkcMEx35Yde68WzzeVVTW6dPvJDOpDsbgmVi639T5GObcvdqbYiAGeLwZtq2/k7UvfI8Fl0NljU7sDZYPaHjAb6A2vAabloM/hHrl0f6dzt49MH3R9eLzV7oiiGGgeju2smeH494xFp3Vf+VRaF0DjWPcBSEKjSzC1UGZc8EnqRv+OdIJo2hymB7IJB9Q2zd8CV9gy97o4TsApREk00/jA6V0lKSmYbTUNN6BbS8o+vqGkcb0Rtm56V+ch79zv0w7Qzvhg/mjiIF4PPD687DmeaRleh/Rqj4Q70XCNfVYOXf3MUzo2LGVaJf7CJYvAJvaUa//BepGuCSHoX3A6kafzL/kk1Q3fr7ok0M5OvCRSf2v2rziLqzsVoIV7t9/EqA0gvRndzo2UtXQIrMv/C+Qq4u6rlLgCzhkkj9S0a57yWXWYmXzC2mQdyzDRO3eDNvXw6Q52hl1c890AkKV4aII0rmri47teuEfEQKGaN2SckBc/GSGAfEI+ILI4mvvpK75P1xn+AtQDgQrIRF9QG1Y9lmy6d3vNHJAqb15F13Tx/9p6ChJvAeZdd5lmN53FVfEr8Dnd4h2fUl17b6fqrpWrTc6BtIEx9FN5sacArVNuEr4FRAIgtfnc513MTzQ0ZqkdS2uFpyuPkQlolqT5Ob1iShU1iJX3/4vNI7+ctHBEaU0OTKpH6vnfn8bPn+G2ib37z+JUNoJsm7Zof9fNg3N45CJp83Ftm5GYRQVYjK9WSzrXtW69rt4vLupK6bhmRTqB/JmUd5xFMn7LHnFrLDvv3vfmk+czTgbaRqTNx+LeG5/1sTjC7p2Vg0D1dNm0f72kSNRSmkSFboL9vXvByOdhHAVcs1H/o3GUV8oKUPuD0Iq/n31/IMfI9adYfSUd4zPcTBKI8ieg5tH5DVWNY0mIybcRTZzpu5L5XKhGUaObPpe1bvnPkR2H9nfyNdBiAlOPmpW0Ek5Npx5td4xMynYvhFqGvM1J0q/3vToZzMMEEHGz4S64dqhLWYh6N19IsoZ7drESideNy77h82uQryBEM6fH9CS8ECo7/vrv+j/OBZU12Fc9/HPUj/iC0RKiBx6/ZCM3adeefRfiPckCB+F1uskQGkEOdh2Vo7etYa1XAAyP18Y4+5aWvb8YxXp/CH+4AZClfpHClbqU+kAP0D0vQ1zX+PotrdRq5aClUX8IRg9FVlwGer5B5FQpd6l5y9Bvfx/qNXPobp2IQuv0O9NxjWJRKC3vfhd0rF1V3J/ULk2yxxnJ6OmxPaebIeDUlAXgOeqtG4K9CiJcBWMmKR3+cpa/T1VN+rPX9MEoarPUFX/RRK9xclHlNLXTEbvU68+/lmi3b0EK8A6Ctn7SYCjD/OKQKQbJs6uZu4lnyPa2VDU+32BOK1vLqVzx5t4fIVOifkwcU8h/q5nRzi2PiVmnI3q2A6RThg3S/fX1cUzetH48+/Jy9MJhvX1dPEO6skHQEzUxg7U+oK5WIIJ0dOOXPL+Zllyaz09e9y9R9mQ6D3y60wvbNoJ0e79zKt89tzn14s5WKE7G1bWadOwquFfCFZ8qWgzUTn6WsnYD9Qrj32aWHf0ZFDiDgSOniC66AnGzbiMbKqItKoCb7CHHRs/4fz6P39OJqEXhRj63xxbX3vYWAhWota9DF4fauUzMHUhsvAKPSTHkH07pSLfXYR99c9K6TJbw6NfV4jhOzYSCIHhQWl9UvGfPVgJHt95KBV29XqPD7WndQORznS/IV6loK4Z9eRPoXVt3kTMS2oU2ky0nX3NojNJwfRMR+TWojtLKgdClZBK/FC98PBHSPSm8fdhzr1DURpB9rdr00moHxGS2efdTFdbk+tj3TBR6fhvePOF+zEMbQodHGnJ5U01MVBP/ARZeDkMa9FRJ60rKunxdT2FQlk5pHm0NsWKiVwVUDccqhr8rlt8erzQ3d7Gzo30uwg9XtiyCjp35Mt+D7OTa9m64PXNk7oRH8c0JhTXeUTp50hE71XPP/hx4r3po6ovOQlREkFU1y79F8cGjw+ZOPtSYj3nFmXzmt52Yj0P7D01bPvQiYlWFkLhfTs/5OuXS3nqg2CY2pybMAvGzaDoPAHkzZr6GtcOuscLve0Rtq3XptHh4PXrQEikq/+CKMuCsH+iNI7+FKjriu4AY3ohl/meWvnMXcS60oRry+Q4CKWdIAVzRNdmGDJ+5mXYtvtzOVTZzZZVH2D9q8sQ0bMB+4Jja/NtUHIhOtav3noDGdayz44vln2mx+N6UXl80Lkzqd56Q3+uQx6pUIcd3BfiPdy1c2moaBkv42Z8FqWu2zt4xvVzm5BL/1BtXf1lspk2Av3c6x2M0hKFs8/Xf3EcqB9+PiJ/59qh8/oh1rNcbVn9FNFOvQj6jPGjHeyGkTrxNRiyXdPU107G9Cli5YpzTG3LIFzd7No8s3PrqW58llGT9VDTQ57Hg3i8qJ0bdQi7L79IRBN5WEuDTDjtX/H5biku0pQPc1vWT1Tnru+RTm3D60JS8w7FUSQKlZa13/DJ6Xh8pjvnUIE/FGXburtZ/3KGqoZ8o+WDIAKRTt1zcNSk0tvZHPFxFIQqUS//CePMK6F5GLj1cQ0gk20i2j3aNUGi3TlZ/De2nHfjoQsy325IvfEX2LYevH38NIYB8V6YMLtWFl7+nxjm+4tudiGmQy5zv+ppvw87u3xQxZ8nAUojyOS52m+Idftx1Dmuj2ZvANWx/TH18p9eFcfRnU36hKCiXTq+fyzg9aOef0jb+24XezYFw8YlZNoZ0X7Fm3uhwDB9KOXtczMxPRDrQT12f76xXDZ/ojl5KYwD0S7UrHN8xoXv+S9Mz/tJldBA2jQ3qt7eH5JJLx+wsQsnMUpz0ttbIZNEzrr2AmqbLiHrctv1+m2J9/xZrfxrXNUM69vmNcx90amBarpwJIignv1dcY2xIx3I6VfNZd5Fi10RxPBAOrFHpeJdffpUhqkTgsEKnfRrGAn1I/JJ0wqd9/D4TBk/64f4Qu/T7UCLrUc3FBg/xfQs26smkIP+HPKeg19j5P8Mgc7uxwClbSGbXte7/+LrRuELBnTG+wjQ5kFcbV6xTOZc3Lfj7Q2g9rRC1y72xvz7hOioVzadn2abD21amdLCtUpBdSNSXY9rXycRgWEtI8gVEcGKdbeyY0MCX7DPf1crntYJzWAFVDXAyEn679WNEK72yrAxPyIRfR+xIiUkelqsIpO8E+X8jx7HnGPv91iYctXXolf2vnwLot9nZSk6KHCCojQnfe7FkEkhwYr3kE273MYElLofw1zHqCmH/nMgrNt/du3Si+ng0KkAKC0PyaaFYIWicXQzlXWjCeSH/FU3RQhWbsOhnVxGUI4761p0MwPlKGTyHN1k4kg5lnQC6oaH98pAjgSPF+K9EXZsPFSkKPmGznu2a7Iq9OfPJPW/ef1gev6eSOf7cJzio3rBKoetqz7pPHLv/+hEqbPPB1I2e5uHHw57T5d8Tirf/E8qaot7jhMQpRHkwptR8Z7JmL7xrjO3ykG1vvkMVX2EbcXQcpAd63X48uBeT4ahd+xsGpkwsx6R98ukuZNlwuxFKGfa3qNmygJQai2xnlepG/4ApucFMgnLnTmg9KIPhKBp9JFPIisLNcOGuc+B+CDWk+LttVBVf9DnM1GxLi02PKD2Jd+FJFBxvlQ3XVN0KyPHgao6xfb1n3b+8M3/JhXXvs7+30fh7/19R/uTZ38yVZ6gA4yKQGk+yGuPI+NnVtHUFCDjsv2MGG/x0iMv07HjULFj3v5WmaTWXO3vm4gBkS5k4pww40/7rEyYtYR0/DSyfchD9NiBaeTsaXLK6fNIRN6iedxnyGXXHpEkXj90bEft2IRcfp7WfPW3U9sWBCuqXC9ar4mKdGxQm17TvgXkxY5hqKjdlwMpXE8EskkYMXG2NIz8FKiL3N0oD8fRurSdmz6mHrv/m2TT4A9QklnU11sKWreTHKUR5P7Pwt/ddY6Mm97ojiAKTPNpOe+mzkNk3l4fJGM4j/7g0L5WghYiVjc2y3k3fgtf8DqiXYd3KPe+TyCTmI4/eIpMP3M+vuAjJKMfI5dJ6SbIfQQHlNLZ7e3rYfMKZMJs+q0xV8rA42123QsrHmuVyfOW8r7Pa4cbNDneXqN9j/2Lp8SAVBypGTaNiXPuIZdZXJRvpcPXjura9Uke//E3yaT0Pa3cO8FtGFCUZmKddS3SOOo00i6ccwDTi9q5aROG6VDdsO+ILizyNc/nw5n77cZO3gkPV0+USXO+jsjVxIupjBOdyHNkBGL+oyy6pkG1bbmZ1nWZw8o8vH7Y9Ra0t8Kii6Gr3wo+P3auxrWzmoqHGD2lSqbMydewALWCWuqHFx7ad6paOchmkVnnjmDWud8nl12kF3YRK9sXyBHv+Twrnr4Xx9Hma7oEKU0ZpeZB5kBlbaXrsKgvCGtffp233zyozFRA2aj2t/VkpP0XgW1BRW1IJs75KoqrS55VofK+RUXddcb1n+pUrz95GxuX52/fx6KrG47ashL1lQ8dflFmkjB8gmlc9zH3JqZhOqQT9t7GeYEKeHU96k/f0wJMrw8Q3Sl+3IxGzr3xV1i5RRSrNPZ4U0S77lata76LSBp/kJKb9ZVRIkG8QTA8PtfyBI/3WXa9tVxtfEXb2wUoB0wvcuVtEK4+0DG2LQhV/g3CtUXvoAfDMPLh0/AMho+fx8blr+EP9E040wvRTt3O53CmXDoOlXWTEXHnF5geSEbbVdeut/cm54IVsGuzLvFYcJkmiS+E1DaOx+v/Prn04qI/t8ebIBH9ptq68j6QHjyD3AnmHYDSCFLT5MHrD7t2UHNph8nzHamsO1DmnR8hJlNP1zUJB9vZSi10HSU6EkQgm1kko6Z8WTWPfT/b1u08XCZZlIJRUw7fGC2bhqbRAdf+hx4c08P29b34gvuIt3mlJooY+RJiKvH4/h7kgj6nLh3p86XiP1bdbQ/gqA48ffQQLqNolOaDVDfW4fPXuJaYJOMi51wv+Pz77O/9Ee063NztAWJHHrrP04Uy8+xznZf/+HMq6w7b+EBmLoYRE+jThLKyUNVQ43qDMD2QSiRoXa83AkPXy6tNy2H4BECBlauXyoZLQS4oSVVrGFEV63kQx958zBQI7wCUdoLUNdVhW7XYh8m+HoxCHqMvU9jI7559jfFVyt3MjWJg5YTG0f8kCy5bqlYu3bE3onTAfR2oHwljpuuk4cFwbPCHRrsniBeVillq6yotqy9E8fz55ttW1pCKuvOoafpXrMzUojd+0xPF678ef+AprAx72yVJ4TvN5y6Uw4CFsZSjDyjJlzqfpN0WSyNINpNFJHfUehyPF7XmBehpP1TybuWguv5xOe382/c2VhgI2DmorDuNaWeezat//kXfBFHg8eswbF8EVQ54/eEiFrIDPKgVu4Zuum3lIJuBYBIZOeksmlu+RDY9ueiuKqGqGGuef59a8cwT+PNTbp3cvuy8nQPDg9QU00bJJUwTOnbAnx/QTffygoaTCaXlQTp3tEtV/R6CleNd7aLK0fIKj+9Am94wkOmLUEt/oxsw7H+KWFmws0+STf8Cf/A9WnZxGNOhsCO73dGzaa8Ewx9kweW/oKqP+X6puJacjBjLoaFs0a9PRce4NoUSkbSMm9EhH/0eVNTi/OEe2LkJRJDpZ05jyvz7SUQnFDVfRAS8gU62b/iYWvHMI/S261BxQVBYeE1hPmAxYxbcQimtfOjcoZtLHKwQOAlQ2gmSSqQJV2f0WF4Xi9Ljj6m316RJRA7sTK7HkekuH17/gepUjw8SsYx68eHb5NwbTKoa3r03SQjsHYOsnBip2HZE/HgDE1w9fzYNtc3jmHb6BHr2bD7k9KpuRO3ZpnVhB+/o+QlXMmpSXJsrR9rxBRzLJpfN4PFBzx5k8lxYeDkyYuLpOPb9xHrcPff+ML27iez5inp7zYOYHn3a9SdfH6xqQTHA5zs27WGPA0ojyLa1NsGKDmqbDxUV9oVw5Xye+EmLWvXsRioPErjZNtQ2Iaedf+hi9Ach1hNVj/7oFpl1bhvNY6+lono0YqaxczvYsamXQOhuFet+EMNzqjSPfYJMqvmI5phyoLoxIOuXVaonHji07sT0ojq36+KkgxeddtCDcsd3FuELHHmDMASydlJ1t+2iqg7WvJDXcTU1k0u/H6VO6f8CfUAE4r33qd6O32J64u8U6fnxQGkEaV0Lo6Yk8HjdVeDlcsMYPXWcOM7GQ/rRFjRIuUz+RDhIGFfdgHr9yYyys3caV374bvXkT68i2h2XcTOeVeGaiGRTcarqob11terw/I/UNX/ZlWOfyzQTqLiMUVNWHGI7mx7E5+eQEw+0TxKurkHkdHc7poBj51QmGWNTK9LbDvUjKiRccy0iFxbt2Go/ZqNK9P4OZHdxbx5kKPapfk8SlOaDbFkFp53/qHh8NwNH1l6n48gZV13C/CWP97nbeXzQsQ215nlNkv19DdvW/ad047h2Viz9gdqzDWwbOetdWuT49C9h1XPIzLPXcP3HdcO5I34IB7y+iYRrdOh1f4hA0xj6jNI5NgRCYUQMV4vbNFGZVFw2r94uPbt0q6F5S95FTeO/kcs0H/kCex+44GttxrGvwTDXDbl1KORNuXwPr5MApZ0glbVgerbg2N3AketilQOVtZPUK4+FSCeSB9r8osOEsR6dxfYGdNbb9PZRMSe62UE6oRNsBR1UKqGVvCKvoVgFzDziM9kWBMKVDBtDn5Gs/j6L11+HuNO9OAhEorkvLR5LQ9WpfOjpzitl9KR7SMZrizo9DA8Ew2+rl/50A+teXkegAnD057Ct0sZJDxRsC6lphFwW9ch92h+ZMOv4Pc8AorRE4d9+Hhx7N91tUfyBxiNHXwSs7BWIcTbRrj8foOZVSmubKmr1XI5Yj7bbkzHIZA+/eAtd2XMZjBs+paMpkCLe406Vp6Us9YyY4MH0HGiT6bmI9Nk/V5uEE0E8rhZ4Ms30KWObP7PktA/evS4bpCvxKZKx4sih+xdvYuPy21i/7HUyqf1k8caxK03uD4U8SKwHqup4Z58gy5+AdHIni971EhXjJrgS7IkgMxbPV7u3/lkPlPToUyIdR+3ciFz5YWTsqainf4Wccjoql9VapfZW9hZlhar0D1FQ+o6cpHVRgaCudbCyBqm4x7WoUQwDw2NiHEQQ20Iq6yBUwWE6FY51E71T+c99SpXR+FZ75AffWJ+DQLEJNQGPdy0d2+5SOzctxR86/idGXyh8Jo/nULP0BEZpPsiyR3VXwjkXPiK+4PVkUkcOsjsOCJfLtIVPqGR0GZlUvm1pM3Ru1ySwsvlEWhqZvlBPyd2zA2JdqEQEtXopqmMHYhgQqkBtWakJVFmnCVPdkJHRUxOuVMZiQC4TJ9qVOaSCMZvW/bgqayDXh8Of6LX2zhw5EkzYlBRu3+SlI+NgeIp1ykFF9nyLWO9jeHzv7FbrxwGlmVjn3aR3sVRsM7HuJIbhP6KZpc2WhYyf+W26di8h1t1Jb7vub3uwTEGAeFSfFONmwKUfwFAK9exvkRmLkLoRqGwKtfwJZNsGGD9T67lapp3O+FnnuyKI1wex7g62rNBBgP1hmKjNK+hzhofjIBe+z6K64YhdUATNoZVdOVZaOSTYXyOKvi5ggMhTpJIP4vFESu5FfDwwFMy+AUBpJ8jWVfqXX7/sdWke/wNqh30Kx0W817bAMCZLqOI9qmP7L7ByneQymhwHb8aFJGJPG1I/UifC/CEYNRmqm/QUWo8PFlwGE2ZCrMcvw1o+6Lr2weODaHcvm1cemAFWuqGz2tMKkY6DJDC6U7ycc/17i2mcYHhEf9PFkiOTfBrUe3DsPXq4Tz4oUWi9MxQh+QhWLqMz+4M9fHWQUZohG+nU/3Vs1M5Nj0t1w60g9a5WgKOqCNf8mzSM7FTRrl8cUdZtGLpJWyG+nknlFbZ5AoUq8r6JeROhyhtdDe/Rwr04VfV/ZOSkAzVE+QZuUjccGkf38fy24PHV5uvfBw+hyo1q1dL3s+Kve/YWkxWayOnnGNz7Hw2iXahnfgPjZ+jWroGw/mPlONGy7aWZWE0t+i9WDtYvW8qscx7CTt3q7t0KsukGmlq+jlIWXbt+Q6Sz+F3GNLXSNhkNEag4S7z+G/UP4MIvEAOiXb00t+yWa24/8N7BCtT6V2Dja30P2VROJR6vx7VuSgwdQEi76b64H6xcL42jIioV153eCyW5J4oDrJROKHfu1MTethZqh51wqt/STpD9h2Rm0jbrlv2FKfOXkE2NcB3eyySHy7CWr6hgxfUy7+IvYVsrXP34km/L2bETmXl2hdQ0fRtf4AzS1njXzx+sQG1f95B64qfrDkkSZpJIyzSYdmbf8+CVasb0+l1pm0Qgm36e3VtWMHLSpdjZia6/Hys7lYaRfwfcQzKm9ooNT6DFRWUNat0yPbh00+swYoL+bms8uJLpKKXzP46dH4VRpVMAtq1Ppqo63WjD6yutYaALlDhAp9Aa1NRh2lVLf8XE084Uw7zD/c4qkE2Nk4q6cZz/nvPpbvs/rNw3yWXX49jJQxaSoO3aZLSWcTMmi+k5n8nz/gnHriMZ9bp2CnU1XzedO3/Mupc5RBvW0w4jJumRDD3tfV1hGh5vlavPqUdjP6zWvvR1aod9VYIVn3JtGlm5KqmsvZsrb7NZ/dy3aNt64pwe+6Ogc1MKlYxBdxvqt/drZURlXf5FfXyuQp1QTxtSUQPNY1EvPqybCzaMRBZdg7P0t/DcHw68zwCjxAE6+0mAlILOncjS3/yAJR+8gnjvOPe7nOTbhebqqKy9mWzmSplzQQJ/8H6y6Q3AvtFmmXRKznrXTZieWVTUVFHX7CUZ9WsJRhEOq8cLHTt+zJsvrZIp8w99b1U90jgKwl6wDiKPCOSyVVhZd9+bY0O4ukFmn4+Kdf2AUOXViExx9f2IQDIekElzF6t0/GE6d23D6zuho0NSUEGsfk7PRwmE8z5VQZnN3oGlqr1Va+LGz9RrrDKsS5TXvqijlktuhMeiug1u0+hD5UIDhBILpvavkRAtMVjz4mqZNPdWxkz7NZlkcXRWDuSygkgNtU012Pa/HuK8OzY0jBActa/zeeH+xSAQ/pVKvPVzMomcHnG8f3g5H31JRGDXLv3f/eE4UFETweu3UM6RvzsRVLR7M7EeeOrnb6kFS94n8y/9I8nYMFfOqgikYu+SprHbVHXDXaRjkaNuYHG8YZh6t3csSEQQfwj1wkPIoqt19DCT0tl4EV0RWdOUrw1CB2Sq6jQZkrqfAaFKMH19l0YPAI7OxCrAq+sBVNfuZ6Sp5XU83ktKtgn1vD85ZBHopgulXRMKRVu2al33Eq1rX8e2Dh27lvdvnGd/A8/97tBrxHuRW/5jgkxdGDiEPH1BBHZu2kr3bn3/SMereH3L8Pmvcl0laVseaprukEtueUU9+7vfsHvL4BQ/HVOoffkljwc6d6F+fjeycAky42xUb4ee5KuUPlGO44YwMHqFgmS9okZR0/RBPPJrujvPPGzH8GMNpSBQYdG5+9PqV3f/D70dh/oehRHL3iCEa+lzh9dO4xVFmZCRzgTZNAwfD70d8MqfP8ykuRX4/O4SmgB2zkeg4grC1S/R3badhlHaVDwZRqapfIcXO1dIjA6NNZPHwBDE44VsGvX6U7Bl5Q48vhtl4eU/wR8677jH65WCQNhSycjnWP74N7Q9W3tohtzKgc+LjDv18BGRdAIJhLyuT0fdiiery4k9Oj/w1M92Ylsfk5mLv4zIZa7IZlvg9b1PTrvAVOGaD/L26hTRLp3sPNFR6E88fByuO+UfQwwMQUyPdrbfWo5Kp8Dn3y5zLryVYOWnUWo2qAXHJTwpAqFKi12bP8HG5ffg8enwYip+4OscR5fRzjxbZ9UPF6HKZcAfDOK4J4jasSFJ+9vaDK1q1KqAaOdKrNxTmJ7LXJFN8pL+6vr3MP/SDnZvvpPMDi32PNHh2Nqcqqw9nDD0uGLgTCwxtKbJH87Ps/BuJZ34qIr3XC4No76IcqYcUwfT9IBh2mxZ9VH1/EPfpmWqJkdfRFUO1DTD1IX0OyvDsUfiC9UU8UP+CX+oVX8vQcimUKko9Lahdm78X+Oaj8zG473Z1eZhGLpfVyB0nqqsbyEQau2zVdKJhoJgLZcdUqZVAYOnmRZ0n9g9235PrLuXMad8F19ggnbC1eB8E/mGCiAW2VQbichdzkPf/r40jNT9gfuaZSIC6TjGklu1n9D/tKxxKFXv2mx0nKhxwydyKAU1Tainfo567Ida2tK2tUN177pbxp82jkjHInfaLgWZ1Ew548oH1NhpN7J+2R6tkh56C8s1lKM31lLm1B8DDB5BCvXJgQql1i37i/hDN1DbdAa+4L/i8Q8nmx7YH1YpqKxzSPRuI5P8tmpv/S6+YBKhf3lDJoXMvQhapoHfC9Zh4ukGkIhp88zNYtZRtzQoe2+PqkxS+zpev84Qr3lhrfL4n5eRExeRiLr7PpQDpnkeoaobSKe+DehssucEHeVsW4MWoh0IHIOqm/yuLsYbavfW1VI7bIUyvXfKiPHnE+msP+od0DDBH1DkspvUxtceYcOr/yZzL0rv7QF8JNWrUhCqQT3/oF78h3uWdAKZujBOyykZV7oq04PavXUtsW4HjxfatuqqyVGTdZsjAfXXX0Lb2/8ht3zBi8//sXyI+8hwHKSm8Vamn/m66t79ItvWoWLdJ55Pkj/xjbkXo7auPN5P0yeObVmaP2hhmi/y8iMvKn/4HFl4+YeoqKkllzkP2/LvDfEV5vTtj4KtCtqJ1qPE1qtI16NseOtNmTr/YdYv61IbXkXOe3f/i70ApcAXRD3za21a9Zel7toFN//7ZTJ1/jC3BKF7Vxvtb2vzzrGhZpgW7EU6dASqphFQKdW25avSOOZSxJjmKnSrfb7TmDL/XjavvIzVz+5ix4YDG4OfCNBKA2g5BbauYigqfY8tQZQCfxgV6YTOlUvlzKufVy88FCRcfYlMO2M2Vm4ujn0phpFBjMKzCSgbRykcJ4fIrzE9HWrN82uluuEpapt3snsLTDxNZ1XDVe6iIZYeuSzVDVDnoi1n42ikun6s627zpgc6d8XYtmGfKnjPdj1WoZDo8wch2o36zdf2cNkHvylTz/g2yYi72K0W8E2VipqLHTF/rHM4gRPLH3FsnS0vVul8DHHsC5t1VxC9cximTffuOMr5PeHq37Pi6YB646/NTJ1fQ1PLSAzTg2EYxHt6ScWibHqjQ8V7dxg3ftoh1qsXRKNPL7RiFkahXLZ+ODSP79t5Pxg1MQhXB1wTxPBApMNS7Vu1MG9/FOrJDVOfXIkIvP7X+xk2dhjh6rtc3yOX8TNywn/LrLPbVPfOP2N6KHpswvGEQm9oQ1hfdpwr//MiNY+3kE1Nk068nZ/DvWLva2xL63EyifzcQAVeb76XbwmN15IRaGpBFlzed/f2vpBNQ6iq2j1BDEj09tDdxiG+RaFN6P6j6KycrRLRR6Vm2G1YuRGu7qEUJCK1MuPsT1Dd+KT6y89sevccOiR1qMKxkVMX50WLQy8HAsedIAdBJD9IZj/Jwd4/hj6Ojzb2b+Wgsh45/XI3Yd19cJx6AqExrgmSST7BzHNWyrAW7YMUYHpQW9forLHHz94NIFwJu956HSt7OyMmfAsrN9LVfWwLvIHTZcSkj6hc5hvEurXA70SAbeE66XqcMLQIciyQTUNVHbL4Woh06bnoriC12Fbt3rrwIyGdqpLTLw/i8ybZ3+82QbZtRq14plCjv0+I2boWtWfbg9Q0nSmB8Cfc7aoC2XSYiuovy+X/YLH6uW/R3npimFmWHs0wlDVl7yyC5KMmxgU3Q6Q778y7Ptoz+o+LhWeYqERkBz27u/vMmRSiWgd3TfGHtMmZjN1PqPIalDPRfe1INCBTF56jctmH6d2zLa8kcPvZjj0k31+gELUconhnEcT0gmPjPPNreOpn7t8X7UIWXBaWSz8Q3tuwoj94fRDpaGX3FnVYf6C7LZ90PMhBFYHHfrROnXrWTbJgyS9Ixye5I4kByehV0jh6i6qo/SLpeHRI144oR28UQzzB+c4hiIjesZWC7t3F7a7RLkgnL8Aw3PkFplc3hdi+se9KNxEdeUtGwe7DvEjHYceG15h19l0EwveSjFW4rB3xUtt0p1xyyxvquQd/ye7NQ7d2JBlDLr0O5fG5iyIeJ7xzCJIfBS31w8E7trj3JiJQP9zvOtPt9UHvnhRvrz7M1CWlAw59dU0BbWrlMrD6hZc5ddEqvP4zXdeOWDkvoapLqah+XteOjDx0stfxRn6IqS4xGNoRt3cGQXR3Ed1OtKqheLMjk4TqxirXESyPoejtWKVa10JdHxMOCvPhR07SQr2DF6/XB8kY6rnfbkL4fzLznLsRudSVKeJY4PX9rcw6T5Q//CG2rxt6tSOZFIw5BRpG6cRp+MhvOV54ZxAkl9X2bnPLoTkJN7ByUN0w3PUuHo2sZd4lq2XCzMMvTF8AiXajXnu8713UzNdux7pW4Nh/wTAvdVeola8dqWl4H2de1c3D2++kY+fQ0mllUjrEXtus5xsOYZzcBNFND2DKfK3YzaZLNTUqQSa6PkGyqQoZOaGScae2Hbb4KuyBtatQOzZpTVafdSoKVi5F7dr8M+Pq2+fh9d3oSkZjGJBKIsHwBaqypgWfv3VIRbRMj+6WaQ3NGpD9cXITxLYgUAETZ0N9FSRKOMt1IweTeK/7LVgkRzKW67fGIZvPHlfWaoXA4RZwKgOZVLtqb/2cjJtRhxW/2N2iUpBOnioLr/yRapl+E+te6cCxjn9PX9Ojuy0OUqO3gcbJSxARCFZpH8A0US88WdpuZeegojYlo6ZEXJ0gHi9Eurarzp2th0zP3R9K6YTlgktRf/l5H00k8vD69Z81z29U8IRMnncx0U53C105YHouIFxzI9n0t1DO8a8d8XhPqIbWJydBBL1DrXwadmxEff/TpQvi4j3IjMXj+MdvnE6s+8ivN72QjHSx7U1F4AgnVk9IzzcxPfmH7mPRGLoVkXrxYaS99RsMHz8Mf+iTriUyto1U19+iTlnwCt1ty9ixEeI9x3cATzIKw1qO3/2LwMlHEIXeXR0Htfp5pLq+70iSWyRj0Di6BdtqcPV6jxcSkTit6/Q8xf5gGIUAQP9mlgA1DahYt8P6V/5TZiy+DMOY7q7NqwJkrkxdcJ/asvpK3nxxh9q+9vjVjtg5MH3IUIqq9YOTjyBCoUkbMn4Wh0yPKhaZFDSODru2mT0+VLw3q7asOLJoUCm9k5teF1EmKbTq7CQd/xa+4L3guDsWHQdy2WkSqrrQEfkxhuc41Y7kW80W2o2eADjJCCJaLbttvSbJqMlHvwisLFQ31rlWnTp2Al/g99Q2HyZJeBAK8xBr86fc4Wxzle9B3LEd1bn9RzL7wkZqm9zXjlhZHyMnfE1mLN6t9mx7/LjUjihbh9t9gSHZ4qcvnFwEcWz95TeO0sVQbjvN93tNB3yBia5PkFiPJdPOzMj0Re5e7w+h3n4T3nxB/+8jhWMdG7IZS6Xjj0pg3O3Ee12UQ6IJlow1yIyz/5mq+r+op39p09N+bDPZ6QQyYzFyyhmoTcuP3X2PAicPQcRExXqQQAUyfjJ0dA3Ulb0oNcbduAMB20oTjUZc78yqE2luQbWugdZ1HNGxB03aLatfJ536e8adeh9W1l2BlZ0Db2C+jJ7yYZVNf4tol66RPxYoSPqj3flTcmjnPwo48QlSKJ81DN0ZMVQJFgPTDl8EbNsiGXXRqZp8ziQXU5GO9qISc1Z2X7364fRZB94I2ragtq7+I8PGnCWB0KfcnZb52pFwzVdkya02q5+7lz3b82t1kBesY+vZkov/RndvP0Fw4hPENCGbwfnVVyAQQgIVOE/9fGBqIbT/McK45O+ucz0wx85liHTE+s2BHIxEL4ycoLP+2bS7Zw9VQTAM6cRPCFf/DU52guuRCslISKYvukA5zh+J/Wn73irOwYSV1ZWcMxfC0kcG914DiBObIAod/cll4O01gKAGMjqSTUFTSwgxGvTNjnBt04RMKk7rujj+YP+v3R9K6TmGe/MhLmB6NJn+fP9adcoZN8qCJb8iHZ/gunYk0XuFNIzcqEKVXyKdiA/6mAHH0cRPZIa8vGR/nLgEUUo3PU7FIdKJjJ468MmvXBZqm7x60blYeKYHMqks29cdOnvdDUSKy08opRtQ7Nz4GrnzPk+w4rskIhWuTgPb9lHT9Am55O9Wqxce+gW7BrF2JB/OlsXvGvIFUgfjxCWIx6sLmbp26RZCR5MMPBy0zCTo+gc1vah0fJPauPzw0pHDobCIRk3RJ5Hbezq2Hqvw6uMvyWnnr8YXPMN1AZJteQhVX0i4+ll62ndQ21zcvYtBOgEMrdkfbnACEkTyNrroFpwzFuuFPBg/qnIgnVrgWgGcSaakbvjDvOsjxe/G+elW6rXH8yrXIoaSRjph9XObEW6XhZd/BTEucvXMunbk/TLzHDC9t6nu3RlS8YE/ie0cMmWBPlVPkPxHAUODIIW2Pk5+kRsG+0yavEZJOeDkIBVHxSPg2KgdGyGXxnWyrBgUdvS5F4/BEHc5lWzKS11ztVzxQSg2BWMCyRRq1VKdwCtmkRqmDtfGul9HqccwzYuwXEa1UgmoaXo/i66J8OLDH6VrN0X5T26QTsKMs3RkcYi3+TkYx4cghaywL6h/XDtvJlTVoZRCOrbDiIl6UToWBCrBF4K5lyJWVjvPpkePBO7aNTid+ZQDYoSZfua1hKtxteLFUNi2Q08JORjD1JWLXv+hA37cwOdHrX8F1bX7l8YV/zgfX+AmV22DDKNw3wsIhCahnE0DK0VXhUlb2hQ+niLJEnBsnlYpHd93LAhV6x2quw32bINEBLXhFaht0nFyFGT2G41QmH9oenQPK8PQUavG0bDkVu1ID4ZkQikIVc7GHxrlaqGZJqTiW9Xq558r+VlMD9IyDbX6ueLfa5gQj0C0u02tfOYTsmBJA8hFroILSoGVnSHTz7xX1Q2/iQ2vdurvdAA2nlQCmXW2Vjdk0kO3icRhMAgEUdoqKszBDldDRTVq+3pIJ1Bdu5F0EtW1E+fH/1aYPnuggO2QEyE/9Wl/s8E0dTfCN1+CWLe+10D5IYahI2NnX3cF/mDIlbTc44NM6ifq0R9uO6pBlB6vPllL2cUdRz97MrZL5TJ/llDVRaRi7ha67ph/IeGa95BJ/g9O/nc5mqiTYWppfX7E3VCeA3I4DDxBClLzFx7SX0pPO8R7UC/9aV8kIxDat6ALu3+xC0opLV2oH6Ez0JGOgWuUlsvAqMkTCFff7Hqh6sE4Sc69oXRyGIb+TO1v50uDS/hORPR7Ny6/h9FTR1Db9HH3tSMWUt3wXjV5/ot0t73G7i1HVzuSSULzOF374fYZhhgGgSACtoV6/P78gBQ9Qx1/UA+BL+xGA7HbWzndiOHN57V8YSCEd2JA105kwZJp1A6ro7fjyAteBHIZS73x1F8lVFU6UcUATxLqhuswcaliy3QS1r5oq2z6bpl30cUYxgz311ILZNrp96mta65hw7IdqvXN0mtHuncjE2fBqBZobzv+5b4lYHB8EBHdkeNgDHQoVkTbtdPO0ENwot1H77AnozB1gV+Gjf0AiWjQ3WkgIMYf2blpvd5xS+0gkjclqxr0oizVWRbRIxccu4t06l58/ntxHHfHka4dmSHBigscxU8wvHp2fCmHoi8I2SzkOCHJAUMlzHtUULqWwhvUP27JvkjeNInsQZrHnUb98LPp2ePyrYLq3vUEsy/MHnWwwBeAjh2w7uWjOxH1aATU1lX3yXk31dA05m7XZo6V8zFiwldk1jkdqmP7oxhGfthNkTNYgpX50O4QalpXJE58guRnHMplt0L7Noh2lmbiqPxYtwVLkNFTP0QiUufyjVry8tYbK+nafeCog1JgmNpXy5uqRwXb0oGRRPRx8YfuJJcZ5mrzUA4kos0y75KvSePoN5w/fW83kQ73hFUO5LLI6Vcii6/DVT/jIYoTnyCgd6uKWmjbilr6Gx05Kxa5DIRrkHd9ZCHN464n6XLqLAK29Uuax79CRe3RN2jz+nVup3v30ecMCj2Ad6x/A9Pz/2iZ+l3SqUbX03Rz2ZHUD78ax7qPSGcRch6lTVXjxJOWHIyTgyAF5LL6h/UHizzWRTv8/gBSP+K9ZFPumkUDBMJRteKvv6Jzp02oCtRRztvzePNjEQbIZvd4Ye1LqM0rfs/lH/JL3fCvYFujXb03l6mmsv7rctEtsPrZ++jcmf+Hfr4bpVBWBhk744SqPT8cTh6CpBMwdjoy42zU+mWHzgXsD44FgTCy+PprqW78sPvTQ4E/tJaO7c+x8hl9ih0t8qORByyvU/AFDBN62h6meez7SLkkiAjEe8My8+xLlMifePlPO3RxWj8mrG3rDi1T5uuWRic4Th6CWDmdjR85Gd5akTdPXJZ2KgXVDV6ZumAJ6bjp+vQIVfWw4dVvEuvpYeLcgdv1DVMXTyUiA5PbKVxj2WMJlYh9ReZdMplUbLy79xoQ67lU6kfcpgLhL5FJJg8/d0TlJ0Yp3S7pxLaugJOJICLQ3YacshCZdjrqr7/UfkVFHfh8etzAAcd9XgSZTmpt1+zzL0bk/XsFk27uZ1m9xLpew+PVJ9ZAhbE9Xu1gJ6IDOyUqEYHWtUuZefbnCFXeSyJS6S7LbgeobviUXPmPG9XKpT9h9bN950YyKZh3CWx6XSusTwKcPASBvFzCqwlherRey7Ggu51DKuYKWee64TBiwjBpHn8TSrlcjUqLJ7t3P69i3ZsZNZUBtbX9IS3ui/UUMUPRBRwH4r2oN556SWaeuxZfcKH72hHbQ6jyYnyBN4h0rqKyVpNX8v5bLt+I2uvXOY8Bz3mhT6XeDh0sMI7N8XRyEaQgs7B1zF5mLkZtWQWrn0PFug6MMNk5PaNjzDRk4ZKvkkm9V483cDeDkHR8N927v6SH0wxwjYOh1a+qa4fWQw0URCDaAWue3Yxj3y5nXv1NrNwiV7Uj+nt9j7RMj6i5F98JZMkk9HddWacTw5uW55XIA6iJy6YhnWzAoYFpZ1xM4+gx1A1/i0z698R7OvD6B3XO+slFkIORSekf0OPTI5fNfKEV6EVuZRF/YC5KLdE5B5e7kuGBdPJB1bljA8GKgd8tDQNMI991cYB/IsOEmmEQ7XpNRTrukUD4TGyXHzydhPrht8miazKqp/2j9LTpBTx2OjKpBZWM6vFxAwLRJ8aYaXVMmPU1oj03ycxzDHwBL7ZlEe36glz4t99hT+s99Hb0DpbDc3ITZC8Kknkve3e3VBSZdd4ITjv/HrLpJteLXDeT/pla8/znSUYhOVALYj8kYnpxDNZMD58ftfE12LP9cXnXHb/BG3h3UbUjSp0NcgGJyDM4tk0iCr1Kk2WgCG3lwB+eK7PPvxN/6GaSMf3/JaOA8iDSKJPnfp7hE4apFx/+N1KxAWuEtj/eEQRRkS7kjCuRWeeg2ls1R7y+YTJ6yu+wrTP22s9uYJgOvR2v0rGj46hk7f0hlwHL0s6620hcMSjI0KPdUbVy6cdl/qW1IBe7rh0xjDlS1/RZ1dvWTU/7GwOe63BsCAROl7rhH8EwbyJ98DTg/PcR7wWv/zaZff4W9dLDXx/Yh9B4RxBEf+Eh3StXNy0zqK7/EKbnDLJp94tciyP/Vz372+8N+tw/j1cP/4l2UVSPLbco1I7Ee3eqXOZxCVVdXFTtiMh5Mnb6l5QYn8Wy1qAliUeJvLzG658tdcPvwDRvOqLp61jgD86honYY0H70z3Ag3hkE0R0S89GWdC3VTUskWHVtUXPEHQfCVY7q2fMImXRGBwIGsb7atrTzW+lSElYs9taOKHhrxf8wevJoqhrvJJfCde5IZImMmeZVycg3UM7zQLSkZ5F8lWgiggqGb5e64ddjmgtdqSEcGwzzOmae8zDw65Lu3w/eGQSBwlCdsFTWX0F1wz9jW9OKen8wnFbbN9zBtvV/oKImX/5r6oWcTevMt+kZOIfdsZGKmsHvhJ5NwprnLJVKfFHmXXQBhum+dkST5GypqJ0BPEM29V68frs4abtoFcSwsdByyhfFMD+L11+cVMgwvFI7bEwRN3WNdwBBlD45rNwYquofwPTMx7HdNMDd937TB0q9TOubD7Bjk577YVTq6r/aYcjU+bpdT+fOAay5FujepeUrxS6YYu8TrgFldZFNfQ9v4Ns4RUwCVsqHsoeRiL5bZp+fUfHI19i2dj3KsbD7qIqUfIeYglLZztXh9V0rs879JJW1LcQjxYVtteo5qTa99jKc4/59LnFyE8RxINGLnHHlaDn9yj+QTswFitvlDQ8Y0kPXri+TSe3bHfdsh3CV7ssVrNA/eLR7gBN7dr6jS5Di+wgVAa9fd5V54aHvyazz6qgd9gXXI68LsDJQN/xmqW68QS7/x2+rHeufxMq9gnJ6D3id44DXbxAIz0fZ82TU1DswzSl6dF20+JyGYUIq/mNeffyFMkHcQvL9nrIpk/Gz5sjIyd8ANbeoaBVo2zhU2aFef/KD6nffeJL6EVrxW1GtnUPJ19enYvk+wZ6BDc0aZr6+RfRA0sGUjisFmaSl0ok/SrDiduI97kPfoL+rbNpAJEBN4yckVPkJlNpEMvYHYN+JnYzGmDRntkycfQm2DV5v/kTJUXwNvgOhSkdFOh7DdtUIrGicfAQR0T7BqElNVDd+WarqTyWXXbi3P1Mx8Pi2s3PTv7D+tUdoHIUMn6CrFx1r3ylkF1lpVyyUgkiXlnJkkgfmcgYajg0bX12hsqnbZerCHxDtrC66VFYp7XCLAYZMQjmfPuQ1hVNCqdJNR8eG2mbU1lWfYP0rfyJzlGUGh8HQIog+LvVRa1uV2LaJcqseBKxcTlk5xB/8Zznz6htxnPFk0+7VuQc8i4GK7Pkmb774cyprkcaR2ufIJAcn7Ho4SF5UGelEde3SUnLTx+CQRGD9K/Dc73/LDZ/MyZyLfkL37qrSTkXV/zi5o4Fjaw3d1jUfUT/+928R74WaPnogDACGEEEEIh0i85dMl5GT/pXK2rkolSrq21TKxuMN4Q+Nw8r69oYyS3ocgVhPJ7FeEMUhNnk2nd8pS7t8UVAKfAFk+HhU9y4t+RisDoX+AKSTqF9/9SGBm5h9wa/p7XBfQDboEB242Pjq7c7PvvAdLAsaRw5aEGPoECSb8tE87hyZPO8LmN7T99ZlFwXRwsFS7NmDYTtIw4gvseiqTwEH2hkiAXKZ7XgDv1Lx3rT4Qw9jZbtdN7kuBY6tp2jVDUd1t2md2aC0XFV7i7WcX//noyLmjTLjrF+SiFYO6udzAzFslPMw/sBf1bYN36G3A4aPH9SmEKURZCA75Fk5HSmqqJslDaP+g1z2dG1PHs0CH4jdToHXP4pAeFSf/2wY41CcLekE+EOPEa5+P1aufVAnxzo2iIFUNWilr06SDfx9lKMjc7Fu6G3/PxKR80lGr6O68Q6y6WM/YF05WlWQ6P2BinV/T6obVhAI6bKAQe6YUhpB6ocP3BPkMlDXXC0tp/wndu6MITXg0XE4Yk7A9ICVXSKLr/2JEvkou7esG/QGzWJAZb1u7DBYgkbl6BnzOgfzmtq8arOMmNBJ46i7Ucqju7Qfg99JDP0Me1r/S23f8BUaR3ceyx5bJf2SxlX/b+CeQI8ZuA7bOnfgLnoMUXCRTO8lcsaVV6gnf7Zu8O11QcI1KKUg1jX4TdkMA3LpHrV+2delurEL0/g4/tBY0onwoN1bj6XLodQu4EfqtSfvwhAYOWlw7ncYlLbVjZgwgI8goOwZpAcnTHfM4Nhg5a5i1OSHENk06Pfz+pGG4agnf6rbHA32WLPCeDhRD6h1r/xUmsd+meHjP5WXvw/kjfR/QpUraG99XW1afqcsuDRGqFLPgjnGXVJKIojatXngnkCfIOukumHgrnk84Njg9S+UUxfNBwafIIahcyIK1F9+OrCVh/3BF4SuXTbB8KeVyFIJVd6CP3QDGHkZSQkCTsMACu+VF1HOcrVh2Q/Ftt+kda3N2ddxvNoHlXaClDK/4nDQcwD/xJlX/ZFc9sqBu/AxhmFCNr1HvfXy8mMU+82PNMsd26E0heGp3gAko4+i1BOqc+cvZfiEyWTTS/AHzyUQclCOgW1rCc7+J0zBZzLNfA+wtCKbAsNcjem5Xz3960dl4mmbSETzo64rOJ7Rs9K+WbeF/m5gW5CK7yTavYLK2itd14UPNRgmJHrv5Y2nN2gf5Bh9Bo8XqR+JinQc++lNOqtv4fU9xKblqB0bfyUX33Iuu7dWI8bN+IO1+IO1mJ4gSimUssmm4jhOjmwmSjKiqBv+c7Vj4zPEetbJvEvixHv1+vIFh0RXxtK+0YHWGyVjqBV//S85+/qReAMfKKqI6bhDFRbKbhXpfEJLLI5hJ/NCpv24QXRLJaVAqW14vD9Vf/wuVDV8iylzw7RMnypV9Y3YloVt51RP+w7SiSQ7NrWpZX9ScuM/azI4+YpZjycfdBgawz6HRqJQi/xiqnXt52T4uChV9XeSiOKqTvp4wuODcFW76m57XeBuTM9rx/uRjh/y5ccKnWj0B8H0JhBZfsA8VsPUeS+vL9/xsYTO8ccQQ4MgKPD4HQzZof58/ycYMfElJp52uoRrRrG3w9sQghgmqJza9dYG3njqMYa1vMy8S4bsj1xG6RgiBAFwIFiFattqSyb1G0ZP+Q3hGt9Q5Ee+VFUR68mpNS+AP4Qc7diDMoYkRA12/LyMMk5gnJhzscoo4xihTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf2gTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf2gTJAyyugHZYKUUUY/KBOkjDL6QZkgZZTRD8oEKaOMflAmSBll9IMyQcooox+UCVJGGf2gTJAyyugH/x+FH3ljG+bLeAAAAABJRU5ErkJggg==",index$j="",index$i="",index$h="",index$g="";var AlipayCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 00960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z"}}]},name:"alipay-circle",theme:"outlined"};const AlipayCircleOutlinedSvg=AlipayCircleOutlined$2;function _objectSpread$a(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$b(C,G,U[G])})}return C}function _defineProperty$b(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var AlipayCircleOutlined=function(H,U){var W=_objectSpread$a({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$a({},W,{icon:AlipayCircleOutlinedSvg}),null)};AlipayCircleOutlined.displayName="AlipayCircleOutlined";AlipayCircleOutlined.inheritAttrs=!1;const AlipayCircleOutlined$1=AlipayCircleOutlined;var CopyrightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"};const CopyrightOutlinedSvg=CopyrightOutlined$2;function _objectSpread$9(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$a(C,G,U[G])})}return C}function _defineProperty$a(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var CopyrightOutlined=function(H,U){var W=_objectSpread$9({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$9({},W,{icon:CopyrightOutlinedSvg}),null)};CopyrightOutlined.displayName="CopyrightOutlined";CopyrightOutlined.inheritAttrs=!1;const CopyrightOutlined$1=CopyrightOutlined;var EnvironmentOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"};const EnvironmentOutlinedSvg=EnvironmentOutlined$2;function _objectSpread$8(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$9(C,G,U[G])})}return C}function _defineProperty$9(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var EnvironmentOutlined=function(H,U){var W=_objectSpread$8({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$8({},W,{icon:EnvironmentOutlinedSvg}),null)};EnvironmentOutlined.displayName="EnvironmentOutlined";EnvironmentOutlined.inheritAttrs=!1;const EnvironmentOutlined$1=EnvironmentOutlined;var FileMarkdownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0011 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z"}}]},name:"file-markdown",theme:"outlined"};const FileMarkdownOutlinedSvg=FileMarkdownOutlined$2;function _objectSpread$7(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$8(C,G,U[G])})}return C}function _defineProperty$8(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FileMarkdownOutlined=function(H,U){var W=_objectSpread$7({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$7({},W,{icon:FileMarkdownOutlinedSvg}),null)};FileMarkdownOutlined.displayName="FileMarkdownOutlined";FileMarkdownOutlined.inheritAttrs=!1;const FileMarkdownOutlined$1=FileMarkdownOutlined;var FileTextOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const FileTextOutlinedSvg=FileTextOutlined$2;function _objectSpread$6(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$7(C,G,U[G])})}return C}function _defineProperty$7(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FileTextOutlined=function(H,U){var W=_objectSpread$6({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$6({},W,{icon:FileTextOutlinedSvg}),null)};FileTextOutlined.displayName="FileTextOutlined";FileTextOutlined.inheritAttrs=!1;const FileTextOutlined$1=FileTextOutlined;var FileWordOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"}}]},name:"file-word",theme:"outlined"};const FileWordOutlinedSvg=FileWordOutlined$2;function _objectSpread$5(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$6(C,G,U[G])})}return C}function _defineProperty$6(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var FileWordOutlined=function(H,U){var W=_objectSpread$5({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$5({},W,{icon:FileWordOutlinedSvg}),null)};FileWordOutlined.displayName="FileWordOutlined";FileWordOutlined.inheritAttrs=!1;const FileWordOutlined$1=FileWordOutlined;var MenuFoldOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const MenuFoldOutlinedSvg=MenuFoldOutlined$2;function _objectSpread$4(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$5(C,G,U[G])})}return C}function _defineProperty$5(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var MenuFoldOutlined=function(H,U){var W=_objectSpread$4({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$4({},W,{icon:MenuFoldOutlinedSvg}),null)};MenuFoldOutlined.displayName="MenuFoldOutlined";MenuFoldOutlined.inheritAttrs=!1;const MenuFoldOutlined$1=MenuFoldOutlined;var MenuUnfoldOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const MenuUnfoldOutlinedSvg=MenuUnfoldOutlined$2;function _objectSpread$3(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$4(C,G,U[G])})}return C}function _defineProperty$4(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var MenuUnfoldOutlined=function(H,U){var W=_objectSpread$3({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$3({},W,{icon:MenuUnfoldOutlinedSvg}),null)};MenuUnfoldOutlined.displayName="MenuUnfoldOutlined";MenuUnfoldOutlined.inheritAttrs=!1;const MenuUnfoldOutlined$1=MenuUnfoldOutlined;var SettingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const SettingOutlinedSvg=SettingOutlined$2;function _objectSpread$2(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$3(C,G,U[G])})}return C}function _defineProperty$3(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}var SettingOutlined=function(H,U){var W=_objectSpread$2({},H,U.attrs);return createVNode(AntdIcon,_objectSpread$2({},W,{icon:SettingOutlinedSvg}),null)};SettingOutlined.displayName="SettingOutlined";SettingOutlined.inheritAttrs=!1;const SettingOutlined$1=SettingOutlined;var _excluded$1=["class","component","viewBox","spin","rotate","tabindex","onClick"];function _objectSpread$1(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$2(C,G,U[G])})}return C}function _defineProperty$2(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}function _objectWithoutProperties$1(C,H){if(C==null)return{};var U=_objectWithoutPropertiesLoose$1(C,H),W,G;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G<X.length;G++)W=X[G],!(H.indexOf(W)>=0)&&(!Object.prototype.propertyIsEnumerable.call(C,W)||(U[W]=C[W]))}return U}function _objectWithoutPropertiesLoose$1(C,H){if(C==null)return{};var U={},W=Object.keys(C),G,X;for(X=0;X<W.length;X++)G=W[X],!(H.indexOf(G)>=0)&&(U[G]=C[G]);return U}var Icon=function(H,U){var W=U.attrs,G=U.slots,X=_objectSpread$1({},H,W),Z=X.class,Q=X.component,ee=X.viewBox,ie=X.spin,te=X.rotate,ne=X.tabindex,ae=X.onClick,oe=_objectWithoutProperties$1(X,_excluded$1),se=G.default&&G.default(),le=se&&se.length,ce=G.component;useInsertStyles();var ue=_defineProperty$2({anticon:!0},Z,Z),de={"anticon-spin":ie===""||!!ie},ve=te?{msTransform:"rotate(".concat(te,"deg)"),transform:"rotate(".concat(te,"deg)")}:void 0,ge=_objectSpread$1({},svgBaseProps,{viewBox:ee,class:de,style:ve});ee||delete ge.viewBox;var he=function(){return Q?createVNode(Q,ge,{default:function(){return[se]}}):ce?ce(ge):le?(Boolean(ee)||se.length===1&&se[0]&&se[0].type,createVNode("svg",_objectSpread$1({},ge,{viewBox:ee}),[se])):null},me=ne;return me===void 0&&ae&&(me=-1,oe.tabindex=me),createVNode("span",_objectSpread$1({role:"img"},oe,{onClick:ae,class:ue}),[he()])};Icon.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};Icon.inheritAttrs=!1;Icon.displayName="Icon";const Icon$1=Icon;var _excluded=["type"];function _objectSpread(C){for(var H=1;H<arguments.length;H++){var U=arguments[H]!=null?Object(arguments[H]):{},W=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(U).filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable}))),W.forEach(function(G){_defineProperty$1(C,G,U[G])})}return C}function _defineProperty$1(C,H,U){return H in C?Object.defineProperty(C,H,{value:U,enumerable:!0,configurable:!0,writable:!0}):C[H]=U,C}function _objectWithoutProperties(C,H){if(C==null)return{};var U=_objectWithoutPropertiesLoose(C,H),W,G;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G<X.length;G++)W=X[G],!(H.indexOf(W)>=0)&&(!Object.prototype.propertyIsEnumerable.call(C,W)||(U[W]=C[W]))}return U}function _objectWithoutPropertiesLoose(C,H){if(C==null)return{};var U={},W=Object.keys(C),G,X;for(X=0;X<W.length;X++)G=W[X],!(H.indexOf(G)>=0)&&(U[G]=C[G]);return U}var customCache=new Set;function isValidCustomScriptUrl(C){return typeof C=="string"&&C.length&&!customCache.has(C)}function createScriptUrlElements(C){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U=C[H];if(isValidCustomScriptUrl(U)){var W=document.createElement("script");W.setAttribute("src",U),W.setAttribute("data-namespace",U),C.length>H+1&&(W.onload=function(){createScriptUrlElements(C,H+1)},W.onerror=function(){createScriptUrlElements(C,H+1)}),customCache.add(U),document.body.appendChild(W)}}function create$2(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=C.scriptUrl,U=C.extraCommonProps,W=U===void 0?{}:U;typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(H)?createScriptUrlElements(H.reverse()):createScriptUrlElements([H]));var G=function(Z,Q){var ee=Q.attrs,ie=Q.slots,te=_objectSpread({},Z,ee),ne=te.type,ae=_objectWithoutProperties(te,_excluded),oe=ie.default&&ie.default(),se=null;ne&&(se=createVNode("use",{"xlink:href":"#".concat(ne)},null)),oe&&oe.length&&(se=oe);var le=_objectSpread({},W,ae);return createVNode(Icon$1,le,{default:function(){return[se]}})};return G.props={spin:Boolean,rotate:Number,type:String},G.inheritAttrs=!1,G.displayName="Iconfont",G}const index_vue_vue_type_style_index_0_scoped_06f5bae8_lang="",_export_sfc=(C,H)=>{const U=C.__vccOpts||C;for(const[W,G]of H)U[W]=G;return U},_sfc_main$i={name:"HeaderSearch",components:{SearchOutlined:SearchOutlined$1},props:{onPressEnter:{type:Function},placeholder:{type:String},className:{type:String},onSearch:{type:Function},onChange:{type:Function}},setup(C){let H;onUnmounted(()=>{clearTimeout(H)});const U=ref(""),W=ref(!0);return{value:U,searchMode:W,onKeyDown(G){G.key==="Enter"&&(H=setTimeout(()=>{C.onPressEnter(U.value)},0))},buttonSearch(){C.onPressEnter(U.value)},onSearchChange(G){U.value=G,C.onChange&&C.onChange()},enterSearchMode(){W.value=!0},leaveSearchMode(){}}}};function _sfc_render$h(C,H,U,W,G,X){const Z=Input,Q=__unplugin_components_8,ee=resolveComponent("search-outlined");return openBlock(),createElementBlock("span",{class:normalizeClass(U.className+" headerSearch"),onClick:H[3]||(H[3]=(...ie)=>W.enterSearchMode&&W.enterSearchMode(...ie))},[createVNode(Q,{key:"AutoComplete",class:normalizeClass("input "+(W.searchMode?"show":"")),onChange:H[2]||(H[2]=ie=>W.onSearchChange(ie)),onSearch:U.onSearch,value:W.value,allowClear:""},{default:withCtx(()=>[createVNode(Z,{value:W.value,placeholder:U.placeholder,onKeydown:H[0]||(H[0]=ie=>W.onKeyDown(ie)),onBlur:H[1]||(H[1]=()=>W.leaveSearchMode())},null,8,["value","placeholder"])]),_:1},8,["class","onSearch","value"]),createVNode(ee,{onClick:W.buttonSearch},null,8,["onClick"])],2)}const __unplugin_components_0$2=_export_sfc(_sfc_main$i,[["render",_sfc_render$h],["__scopeId","data-v-06f5bae8"]]),constants$1={globalParameter:"Knife4jOfficeParameter",globalParameterTableColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"15%",scopedSlots:{customRender:"name"}},{title:"\u53C2\u6570\u503C",className:"column-money",dataIndex:"value",width:"65%",scopedSlots:{customRender:"paramContentLabel"}},{title:"\u53C2\u6570\u7C7B\u578B",dataIndex:"in",width:"10%",scopedSlots:{customRender:"paramTypeLable"}},{title:"\u64CD\u4F5C",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],globalSecurityParameters:"Knife4jGlobalSecurityParameters",globalSecurityParameterObject:"Knife4jGlobalSecurityParameterObject",globalSecurityParamPrefix:"Knife4jSecurityParams",globalI18nCache:"Knife4jI18n",globalGitApiVersionCaches:"Knife4jGitApiVersionCaches",globalSettingsKey:"Knife4jGlobalSettings",globalTreeTableModelParams:"Knife4jGlobalTreeTableModelParams",defaultWebSettings:{enableDebug:!0,enableFooter:!0,enableFooterCustom:!1,footerCustomContent:"",enableSearch:!0,enableOpenApi:!0,enableHomeCustom:!1,homeCustomLocation:"",enableGroup:!0,enableResponseCode:!0,enableSwaggerModels:!0,swaggerModelName:"Swagger Models",enableReloadCacheParameter:!1,enableAfterScript:!0,enableDocumentManage:!0,enableVersion:!1,showApiUrl:!1,showTagStatus:!1,enableSwaggerBootstrapUi:!1,treeExplain:!0,language:"zh-CN"},defaultSettings:{enableDebug:!0,enableFooter:!0,enableFooterCustom:!1,footerCustomContent:"",enableSearch:!0,enableOpenApi:!0,enableHomeCustom:!1,homeCustomLocation:"",enableGroup:!0,enableResponseCode:!0,enableSwaggerModels:!0,swaggerModelName:"Swagger Models",enableReloadCacheParameter:!1,enableAfterScript:!0,enableDocumentManage:!0,enableVersion:!1,showApiUrl:!1,showTagStatus:!1,enableSwaggerBootstrapUi:!1,treeExplain:!0,enableDynamicParameter:!1,enableFilterMultipartApis:!1,enableFilterMultipartApiMethodType:"POST",enableRequestCache:!0,enableCacheOpenApiTable:!1,enableHost:!1,enableHostText:"",language:"zh-CN"},defaultPlusSettings:{enableDebug:!0,enableFooter:!0,enableFooterCustom:!1,footerCustomContent:"",enableSearch:!0,enableOpenApi:!0,enableHomeCustom:!1,homeCustomLocation:"",enableGroup:!0,enableSwaggerModels:!0,swaggerModelName:"Swagger Models",enableReloadCacheParameter:!1,enableAfterScript:!0,enableDocumentManage:!0,enableVersion:!1,showApiUrl:!1,showTagStatus:!1,enableSwaggerBootstrapUi:!0,treeExplain:!0,enableDynamicParameter:!1,enableFilterMultipartApis:!1,enableFilterMultipartApiMethodType:"POST",enableRequestCache:!0,enableCacheOpenApiTable:!1,enableHost:!1,enableHostText:"",language:"zh-CN"},debugRequestHeaders:["Accept","Accept-Charset","Accept-Encoding","Accept-Language","Accept-Ranges","Authorization","Cache-Control","Connection","Cookie","Content-Length","Content-Type","Content-MD5","Date","Expect","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Max-Forwards","Origin","Pragma","Proxy-Authorization","Range","Referer","TE","Upgrade","User-Agent","Via","Warning"],debugRequestHeaderOptions:[{value:"Accept",label:"Accept"},{value:"Accept-Charset",label:"Accept-Charset"},{value:"Accept-Encoding",label:"Accept-Encoding"},{value:"Accept-Language",label:"Accept-Language"},{value:"Accept-Ranges",label:"Accept-Ranges"},{value:"Authorization",label:"Authorization"},{value:"Cache-Control",label:"Cache-Control"},{value:"Connection",label:"Connection"},{value:"Cookie",label:"Cookie"},{value:"Content-Length",label:"Content-Length"},{value:"Content-Type",label:"Content-Type"},{value:"Content-MD5",label:"Content-MD5"},{value:"Date",label:"Date"},{value:"Expect",label:"Expect"},{value:"From",label:"From"},{value:"Host",label:"Host"},{value:"If-Match",label:"If-Match"},{value:"If-Modified-Since",label:"If-Modified-Since"},{value:"If-None-Match",label:"If-None-Match"},{value:"If-Range",label:"If-Range"},{value:"If-Unmodified-Since",label:"If-Unmodified-Since"},{value:"Max-Forwards",label:"Max-Forwards"},{value:"Origin",label:"Origin"},{value:"Pragma",label:"Pragma"},{value:"Proxy-Authorization",label:"Proxy-Authorization"},{value:"Range",label:"Range"},{value:"Referer",label:"Referer"},{value:"TE",label:"TE"},{value:"Upgrade",label:"Upgrade"},{value:"User-Agent",label:"User-Agent"},{value:"Via",label:"Via"},{value:"Warning",label:"Warning"}],debugRequestHeaderColumn:[{title:"\u8BF7\u6C42\u5934",dataIndex:"name",width:"20%",scopedSlots:{customRender:"headerName"}},{title:"\u5185\u5BB9",dataIndex:"content",scopedSlots:{customRender:"headerValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugFormRequestHeader:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"20%",scopedSlots:{customRender:"formName"}},{title:"\u7C7B\u578B",dataIndex:"type",width:"12%",scopedSlots:{customRender:"formType"}},{title:"\u53C2\u6570\u503C",dataIndex:"content",scopedSlots:{customRender:"formValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugUrlFormRequestHeader:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"20%",scopedSlots:{customRender:"urlFormName"}},{title:"\u53C2\u6570\u503C",dataIndex:"content",scopedSlots:{customRender:"urlFormValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugCacheApiId:"Knife4jCacheApi"};/*!
|
||
* shared v9.3.0-beta.14
|
||
* (c) 2023 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const inBrowser=typeof window<"u",makeSymbol=(C,H=!1)=>H?Symbol.for(C):Symbol(C),generateFormatCacheKey=(C,H,U)=>friendlyJSONstringify({l:C,k:H,s:U}),friendlyJSONstringify=C=>JSON.stringify(C).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$3=C=>typeof C=="number"&&isFinite(C),isDate$2=C=>toTypeString(C)==="[object Date]",isRegExp=C=>toTypeString(C)==="[object RegExp]",isEmptyObject=C=>isPlainObject$1(C)&&Object.keys(C).length===0;function warn$1(C,H){typeof console<"u"&&(console.warn("[intlify] "+C),H&&console.warn(H.stack))}const assign=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(C){return C.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$f=Object.prototype.hasOwnProperty;function hasOwn(C,H){return hasOwnProperty$f.call(C,H)}const isArray$a=Array.isArray,isFunction$5=C=>typeof C=="function",isString$2=C=>typeof C=="string",isBoolean$1=C=>typeof C=="boolean",isObject$b=C=>C!==null&&typeof C=="object",objectToString$2=Object.prototype.toString,toTypeString=C=>objectToString$2.call(C),isPlainObject$1=C=>toTypeString(C)==="[object Object]",toDisplayString=C=>C==null?"":isArray$a(C)||isPlainObject$1(C)&&C.toString===objectToString$2?JSON.stringify(C,null,2):String(C);/*!
|
||
* message-compiler v9.3.0-beta.14
|
||
* (c) 2023 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function createCompileError(C,H,U={}){const{domain:W,messages:G,args:X}=U,Z=C,Q=new SyntaxError(String(Z));return Q.code=C,H&&(Q.location=H),Q.domain=W,Q}function defaultOnError(C){throw C}function createPosition(C,H,U){return{line:C,column:H,offset:U}}function createLocation(C,H,U){const W={start:C,end:H};return U!=null&&(W.source=U),W}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
|
||
`,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(C){const H=C;let U=0,W=1,G=1,X=0;const Z=_e=>H[_e]===CHAR_CR&&H[_e+1]===CHAR_LF,Q=_e=>H[_e]===CHAR_LF,ee=_e=>H[_e]===CHAR_PS,ie=_e=>H[_e]===CHAR_LS,te=_e=>Z(_e)||Q(_e)||ee(_e)||ie(_e),ne=()=>U,ae=()=>W,oe=()=>G,se=()=>X,le=_e=>Z(_e)||ee(_e)||ie(_e)?CHAR_LF:H[_e],ce=()=>le(U),ue=()=>le(U+X);function de(){return X=0,te(U)&&(W++,G=0),Z(U)&&U++,U++,G++,H[U]}function ve(){return Z(U+X)&&X++,X++,H[U+X]}function ge(){U=0,W=1,G=1,X=0}function he(_e=0){X=_e}function me(){const _e=U+X;for(;_e!==U;)de();X=0}return{index:ne,line:ae,column:oe,peekOffset:se,charAt:le,currentChar:ce,currentPeek:ue,next:de,peek:ve,reset:ge,resetPeek:he,skipToPeek:me}}const EOF=void 0,LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(C,H={}){const U=H.location!==!1,W=createScanner(C),G=()=>W.index(),X=()=>createPosition(W.line(),W.column(),W.index()),Z=X(),Q=G(),ee={currentType:14,offset:Q,startLoc:Z,endLoc:Z,lastType:14,lastOffset:Q,lastStartLoc:Z,lastEndLoc:Z,braceNest:0,inLinked:!1,text:""},ie=()=>ee,{onError:te}=H;function ne(Ce,Pe,Re,...Ze){const Oe=ie();if(Pe.column+=Re,Pe.offset+=Re,te){const Qe=createLocation(Oe.startLoc,Pe),Xe=createCompileError(Ce,Qe,{domain:ERROR_DOMAIN$1,args:Ze});te(Xe)}}function ae(Ce,Pe,Re){Ce.endLoc=X(),Ce.currentType=Pe;const Ze={type:Pe};return U&&(Ze.loc=createLocation(Ce.startLoc,Ce.endLoc)),Re!=null&&(Ze.value=Re),Ze}const oe=Ce=>ae(Ce,14);function se(Ce,Pe){return Ce.currentChar()===Pe?(Ce.next(),Pe):(ne(CompileErrorCodes.EXPECTED_TOKEN,X(),0,Pe),"")}function le(Ce){let Pe="";for(;Ce.currentPeek()===CHAR_SP||Ce.currentPeek()===CHAR_LF;)Pe+=Ce.currentPeek(),Ce.peek();return Pe}function ce(Ce){const Pe=le(Ce);return Ce.skipToPeek(),Pe}function ue(Ce){if(Ce===EOF)return!1;const Pe=Ce.charCodeAt(0);return Pe>=97&&Pe<=122||Pe>=65&&Pe<=90||Pe===95}function de(Ce){if(Ce===EOF)return!1;const Pe=Ce.charCodeAt(0);return Pe>=48&&Pe<=57}function ve(Ce,Pe){const{currentType:Re}=Pe;if(Re!==2)return!1;le(Ce);const Ze=ue(Ce.currentPeek());return Ce.resetPeek(),Ze}function ge(Ce,Pe){const{currentType:Re}=Pe;if(Re!==2)return!1;le(Ce);const Ze=Ce.currentPeek()==="-"?Ce.peek():Ce.currentPeek(),Oe=de(Ze);return Ce.resetPeek(),Oe}function he(Ce,Pe){const{currentType:Re}=Pe;if(Re!==2)return!1;le(Ce);const Ze=Ce.currentPeek()===LITERAL_DELIMITER;return Ce.resetPeek(),Ze}function me(Ce,Pe){const{currentType:Re}=Pe;if(Re!==8)return!1;le(Ce);const Ze=Ce.currentPeek()===".";return Ce.resetPeek(),Ze}function _e(Ce,Pe){const{currentType:Re}=Pe;if(Re!==9)return!1;le(Ce);const Ze=ue(Ce.currentPeek());return Ce.resetPeek(),Ze}function be(Ce,Pe){const{currentType:Re}=Pe;if(!(Re===8||Re===12))return!1;le(Ce);const Ze=Ce.currentPeek()===":";return Ce.resetPeek(),Ze}function pe(Ce,Pe){const{currentType:Re}=Pe;if(Re!==10)return!1;const Ze=()=>{const Qe=Ce.currentPeek();return Qe==="{"?ue(Ce.peek()):Qe==="@"||Qe==="%"||Qe==="|"||Qe===":"||Qe==="."||Qe===CHAR_SP||!Qe?!1:Qe===CHAR_LF?(Ce.peek(),Ze()):ue(Qe)},Oe=Ze();return Ce.resetPeek(),Oe}function fe(Ce){le(Ce);const Pe=Ce.currentPeek()==="|";return Ce.resetPeek(),Pe}function ye(Ce){const Pe=le(Ce),Re=Ce.currentPeek()==="%"&&Ce.peek()==="{";return Ce.resetPeek(),{isModulo:Re,hasSpace:Pe.length>0}}function $e(Ce,Pe=!0){const Re=(Oe=!1,Qe="",Xe=!1)=>{const et=Ce.currentPeek();return et==="{"?Qe==="%"?!1:Oe:et==="@"||!et?Qe==="%"?!0:Oe:et==="%"?(Ce.peek(),Re(Oe,"%",!0)):et==="|"?Qe==="%"||Xe?!0:!(Qe===CHAR_SP||Qe===CHAR_LF):et===CHAR_SP?(Ce.peek(),Re(!0,CHAR_SP,Xe)):et===CHAR_LF?(Ce.peek(),Re(!0,CHAR_LF,Xe)):!0},Ze=Re();return Pe&&Ce.resetPeek(),Ze}function we(Ce,Pe){const Re=Ce.currentChar();return Re===EOF?EOF:Pe(Re)?(Ce.next(),Re):null}function Se(Ce){return we(Ce,Re=>{const Ze=Re.charCodeAt(0);return Ze>=97&&Ze<=122||Ze>=65&&Ze<=90||Ze>=48&&Ze<=57||Ze===95||Ze===36})}function Te(Ce){return we(Ce,Re=>{const Ze=Re.charCodeAt(0);return Ze>=48&&Ze<=57})}function xe(Ce){return we(Ce,Re=>{const Ze=Re.charCodeAt(0);return Ze>=48&&Ze<=57||Ze>=65&&Ze<=70||Ze>=97&&Ze<=102})}function ke(Ce){let Pe="",Re="";for(;Pe=Te(Ce);)Re+=Pe;return Re}function Ie(Ce){ce(Ce);const Pe=Ce.currentChar();return Pe!=="%"&&ne(CompileErrorCodes.EXPECTED_TOKEN,X(),0,Pe),Ce.next(),"%"}function Ae(Ce){let Pe="";for(;;){const Re=Ce.currentChar();if(Re==="{"||Re==="}"||Re==="@"||Re==="|"||!Re)break;if(Re==="%")if($e(Ce))Pe+=Re,Ce.next();else break;else if(Re===CHAR_SP||Re===CHAR_LF)if($e(Ce))Pe+=Re,Ce.next();else{if(fe(Ce))break;Pe+=Re,Ce.next()}else Pe+=Re,Ce.next()}return Pe}function Me(Ce){ce(Ce);let Pe="",Re="";for(;Pe=Se(Ce);)Re+=Pe;return Ce.currentChar()===EOF&&ne(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,X(),0),Re}function Fe(Ce){ce(Ce);let Pe="";return Ce.currentChar()==="-"?(Ce.next(),Pe+=`-${ke(Ce)}`):Pe+=ke(Ce),Ce.currentChar()===EOF&&ne(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,X(),0),Pe}function Be(Ce){ce(Ce),se(Ce,"'");let Pe="",Re="";const Ze=Qe=>Qe!==LITERAL_DELIMITER&&Qe!==CHAR_LF;for(;Pe=we(Ce,Ze);)Pe==="\\"?Re+=Ne(Ce):Re+=Pe;const Oe=Ce.currentChar();return Oe===CHAR_LF||Oe===EOF?(ne(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,X(),0),Oe===CHAR_LF&&(Ce.next(),se(Ce,"'")),Re):(se(Ce,"'"),Re)}function Ne(Ce){const Pe=Ce.currentChar();switch(Pe){case"\\":case"'":return Ce.next(),`\\${Pe}`;case"u":return Ve(Ce,Pe,4);case"U":return Ve(Ce,Pe,6);default:return ne(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,X(),0,Pe),""}}function Ve(Ce,Pe,Re){se(Ce,Pe);let Ze="";for(let Oe=0;Oe<Re;Oe++){const Qe=xe(Ce);if(!Qe){ne(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,X(),0,`\\${Pe}${Ze}${Ce.currentChar()}`);break}Ze+=Qe}return`\\${Pe}${Ze}`}function Le(Ce){ce(Ce);let Pe="",Re="";const Ze=Oe=>Oe!=="{"&&Oe!=="}"&&Oe!==CHAR_SP&&Oe!==CHAR_LF;for(;Pe=we(Ce,Ze);)Re+=Pe;return Re}function De(Ce){let Pe="",Re="";for(;Pe=Se(Ce);)Re+=Pe;return Re}function Je(Ce){const Pe=(Re=!1,Ze)=>{const Oe=Ce.currentChar();return Oe==="{"||Oe==="%"||Oe==="@"||Oe==="|"||!Oe||Oe===CHAR_SP?Ze:Oe===CHAR_LF?(Ze+=Oe,Ce.next(),Pe(Re,Ze)):(Ze+=Oe,Ce.next(),Pe(!0,Ze))};return Pe(!1,"")}function ze(Ce){ce(Ce);const Pe=se(Ce,"|");return ce(Ce),Pe}function Ge(Ce,Pe){let Re=null;switch(Ce.currentChar()){case"{":return Pe.braceNest>=1&&ne(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,X(),0),Ce.next(),Re=ae(Pe,2,"{"),ce(Ce),Pe.braceNest++,Re;case"}":return Pe.braceNest>0&&Pe.currentType===2&&ne(CompileErrorCodes.EMPTY_PLACEHOLDER,X(),0),Ce.next(),Re=ae(Pe,3,"}"),Pe.braceNest--,Pe.braceNest>0&&ce(Ce),Pe.inLinked&&Pe.braceNest===0&&(Pe.inLinked=!1),Re;case"@":return Pe.braceNest>0&&ne(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,X(),0),Re=qe(Ce,Pe)||oe(Pe),Pe.braceNest=0,Re;default:let Oe=!0,Qe=!0,Xe=!0;if(fe(Ce))return Pe.braceNest>0&&ne(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,X(),0),Re=ae(Pe,1,ze(Ce)),Pe.braceNest=0,Pe.inLinked=!1,Re;if(Pe.braceNest>0&&(Pe.currentType===5||Pe.currentType===6||Pe.currentType===7))return ne(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,X(),0),Pe.braceNest=0,Ke(Ce,Pe);if(Oe=ve(Ce,Pe))return Re=ae(Pe,5,Me(Ce)),ce(Ce),Re;if(Qe=ge(Ce,Pe))return Re=ae(Pe,6,Fe(Ce)),ce(Ce),Re;if(Xe=he(Ce,Pe))return Re=ae(Pe,7,Be(Ce)),ce(Ce),Re;if(!Oe&&!Qe&&!Xe)return Re=ae(Pe,13,Le(Ce)),ne(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,X(),0,Re.value),ce(Ce),Re;break}return Re}function qe(Ce,Pe){const{currentType:Re}=Pe;let Ze=null;const Oe=Ce.currentChar();switch((Re===8||Re===9||Re===12||Re===10)&&(Oe===CHAR_LF||Oe===CHAR_SP)&&ne(CompileErrorCodes.INVALID_LINKED_FORMAT,X(),0),Oe){case"@":return Ce.next(),Ze=ae(Pe,8,"@"),Pe.inLinked=!0,Ze;case".":return ce(Ce),Ce.next(),ae(Pe,9,".");case":":return ce(Ce),Ce.next(),ae(Pe,10,":");default:return fe(Ce)?(Ze=ae(Pe,1,ze(Ce)),Pe.braceNest=0,Pe.inLinked=!1,Ze):me(Ce,Pe)||be(Ce,Pe)?(ce(Ce),qe(Ce,Pe)):_e(Ce,Pe)?(ce(Ce),ae(Pe,12,De(Ce))):pe(Ce,Pe)?(ce(Ce),Oe==="{"?Ge(Ce,Pe)||Ze:ae(Pe,11,Je(Ce))):(Re===8&&ne(CompileErrorCodes.INVALID_LINKED_FORMAT,X(),0),Pe.braceNest=0,Pe.inLinked=!1,Ke(Ce,Pe))}}function Ke(Ce,Pe){let Re={type:14};if(Pe.braceNest>0)return Ge(Ce,Pe)||oe(Pe);if(Pe.inLinked)return qe(Ce,Pe)||oe(Pe);switch(Ce.currentChar()){case"{":return Ge(Ce,Pe)||oe(Pe);case"}":return ne(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,X(),0),Ce.next(),ae(Pe,3,"}");case"@":return qe(Ce,Pe)||oe(Pe);default:if(fe(Ce))return Re=ae(Pe,1,ze(Ce)),Pe.braceNest=0,Pe.inLinked=!1,Re;const{isModulo:Oe,hasSpace:Qe}=ye(Ce);if(Oe)return Qe?ae(Pe,0,Ae(Ce)):ae(Pe,4,Ie(Ce));if($e(Ce))return ae(Pe,0,Ae(Ce));break}return Re}function Ee(){const{currentType:Ce,offset:Pe,startLoc:Re,endLoc:Ze}=ee;return ee.lastType=Ce,ee.lastOffset=Pe,ee.lastStartLoc=Re,ee.lastEndLoc=Ze,ee.offset=G(),ee.startLoc=X(),W.currentChar()===EOF?ae(ee,14):Ke(W,ee)}return{nextToken:Ee,currentOffset:G,currentPosition:X,context:ie}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(C,H,U){switch(C){case"\\\\":return"\\";case"\\'":return"'";default:{const W=parseInt(H||U,16);return W<=55295||W>=57344?String.fromCodePoint(W):"\uFFFD"}}}function createParser(C={}){const H=C.location!==!1,{onError:U}=C;function W(ue,de,ve,ge,...he){const me=ue.currentPosition();if(me.offset+=ge,me.column+=ge,U){const _e=createLocation(ve,me),be=createCompileError(de,_e,{domain:ERROR_DOMAIN,args:he});U(be)}}function G(ue,de,ve){const ge={type:ue,start:de,end:de};return H&&(ge.loc={start:ve,end:ve}),ge}function X(ue,de,ve,ge){ue.end=de,ge&&(ue.type=ge),H&&ue.loc&&(ue.loc.end=ve)}function Z(ue,de){const ve=ue.context(),ge=G(3,ve.offset,ve.startLoc);return ge.value=de,X(ge,ue.currentOffset(),ue.currentPosition()),ge}function Q(ue,de){const ve=ue.context(),{lastOffset:ge,lastStartLoc:he}=ve,me=G(5,ge,he);return me.index=parseInt(de,10),ue.nextToken(),X(me,ue.currentOffset(),ue.currentPosition()),me}function ee(ue,de){const ve=ue.context(),{lastOffset:ge,lastStartLoc:he}=ve,me=G(4,ge,he);return me.key=de,ue.nextToken(),X(me,ue.currentOffset(),ue.currentPosition()),me}function ie(ue,de){const ve=ue.context(),{lastOffset:ge,lastStartLoc:he}=ve,me=G(9,ge,he);return me.value=de.replace(KNOWN_ESCAPES,fromEscapeSequence),ue.nextToken(),X(me,ue.currentOffset(),ue.currentPosition()),me}function te(ue){const de=ue.nextToken(),ve=ue.context(),{lastOffset:ge,lastStartLoc:he}=ve,me=G(8,ge,he);return de.type!==12?(W(ue,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,ve.lastStartLoc,0),me.value="",X(me,ge,he),{nextConsumeToken:de,node:me}):(de.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ve.lastStartLoc,0,getTokenCaption(de)),me.value=de.value||"",X(me,ue.currentOffset(),ue.currentPosition()),{node:me})}function ne(ue,de){const ve=ue.context(),ge=G(7,ve.offset,ve.startLoc);return ge.value=de,X(ge,ue.currentOffset(),ue.currentPosition()),ge}function ae(ue){const de=ue.context(),ve=G(6,de.offset,de.startLoc);let ge=ue.nextToken();if(ge.type===9){const he=te(ue);ve.modifier=he.node,ge=he.nextConsumeToken||ue.nextToken()}switch(ge.type!==10&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(ge)),ge=ue.nextToken(),ge.type===2&&(ge=ue.nextToken()),ge.type){case 11:ge.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(ge)),ve.key=ne(ue,ge.value||"");break;case 5:ge.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(ge)),ve.key=ee(ue,ge.value||"");break;case 6:ge.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(ge)),ve.key=Q(ue,ge.value||"");break;case 7:ge.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(ge)),ve.key=ie(ue,ge.value||"");break;default:W(ue,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,de.lastStartLoc,0);const he=ue.context(),me=G(7,he.offset,he.startLoc);return me.value="",X(me,he.offset,he.startLoc),ve.key=me,X(ve,he.offset,he.startLoc),{nextConsumeToken:ge,node:ve}}return X(ve,ue.currentOffset(),ue.currentPosition()),{node:ve}}function oe(ue){const de=ue.context(),ve=de.currentType===1?ue.currentOffset():de.offset,ge=de.currentType===1?de.endLoc:de.startLoc,he=G(2,ve,ge);he.items=[];let me=null;do{const pe=me||ue.nextToken();switch(me=null,pe.type){case 0:pe.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(pe)),he.items.push(Z(ue,pe.value||""));break;case 6:pe.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(pe)),he.items.push(Q(ue,pe.value||""));break;case 5:pe.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(pe)),he.items.push(ee(ue,pe.value||""));break;case 7:pe.value==null&&W(ue,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,de.lastStartLoc,0,getTokenCaption(pe)),he.items.push(ie(ue,pe.value||""));break;case 8:const fe=ae(ue);he.items.push(fe.node),me=fe.nextConsumeToken||null;break}}while(de.currentType!==14&&de.currentType!==1);const _e=de.currentType===1?de.lastOffset:ue.currentOffset(),be=de.currentType===1?de.lastEndLoc:ue.currentPosition();return X(he,_e,be),he}function se(ue,de,ve,ge){const he=ue.context();let me=ge.items.length===0;const _e=G(1,de,ve);_e.cases=[],_e.cases.push(ge);do{const be=oe(ue);me||(me=be.items.length===0),_e.cases.push(be)}while(he.currentType!==14);return me&&W(ue,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,ve,0),X(_e,ue.currentOffset(),ue.currentPosition()),_e}function le(ue){const de=ue.context(),{offset:ve,startLoc:ge}=de,he=oe(ue);return de.currentType===14?he:se(ue,ve,ge,he)}function ce(ue){const de=createTokenizer(ue,assign({},C)),ve=de.context(),ge=G(0,ve.offset,ve.startLoc);return H&&ge.loc&&(ge.loc.source=ue),ge.body=le(de),ve.currentType!==14&&W(de,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ve.lastStartLoc,0,ue[ve.offset]||""),X(ge,de.currentOffset(),de.currentPosition()),ge}return{parse:ce}}function getTokenCaption(C){if(C.type===14)return"EOF";const H=(C.value||"").replace(/\r?\n/gu,"\\n");return H.length>10?H.slice(0,9)+"\u2026":H}function createTransformer(C,H={}){const U={ast:C,helpers:new Set};return{context:()=>U,helper:X=>(U.helpers.add(X),X)}}function traverseNodes(C,H){for(let U=0;U<C.length;U++)traverseNode(C[U],H)}function traverseNode(C,H){switch(C.type){case 1:traverseNodes(C.cases,H),H.helper("plural");break;case 2:traverseNodes(C.items,H);break;case 6:traverseNode(C.key,H),H.helper("linked"),H.helper("type");break;case 5:H.helper("interpolate"),H.helper("list");break;case 4:H.helper("interpolate"),H.helper("named");break}}function transform$1(C,H={}){const U=createTransformer(C);U.helper("normalize"),C.body&&traverseNode(C.body,U);const W=U.context();C.helpers=Array.from(W.helpers)}function createCodeGenerator(C,H){const{sourceMap:U,filename:W,breakLineCode:G,needIndent:X}=H,Z={source:C.loc.source,filename:W,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:G,needIndent:X,indentLevel:0},Q=()=>Z;function ee(le,ce){Z.code+=le}function ie(le,ce=!0){const ue=ce?G:"";ee(X?ue+" ".repeat(le):ue)}function te(le=!0){const ce=++Z.indentLevel;le&&ie(ce)}function ne(le=!0){const ce=--Z.indentLevel;le&&ie(ce)}function ae(){ie(Z.indentLevel)}return{context:Q,push:ee,indent:te,deindent:ne,newline:ae,helper:le=>`_${le}`,needIndent:()=>Z.needIndent}}function generateLinkedNode(C,H){const{helper:U}=C;C.push(`${U("linked")}(`),generateNode(C,H.key),H.modifier?(C.push(", "),generateNode(C,H.modifier),C.push(", _type")):C.push(", undefined, _type"),C.push(")")}function generateMessageNode(C,H){const{helper:U,needIndent:W}=C;C.push(`${U("normalize")}([`),C.indent(W());const G=H.items.length;for(let X=0;X<G&&(generateNode(C,H.items[X]),X!==G-1);X++)C.push(", ");C.deindent(W()),C.push("])")}function generatePluralNode(C,H){const{helper:U,needIndent:W}=C;if(H.cases.length>1){C.push(`${U("plural")}([`),C.indent(W());const G=H.cases.length;for(let X=0;X<G&&(generateNode(C,H.cases[X]),X!==G-1);X++)C.push(", ");C.deindent(W()),C.push("])")}}function generateResource(C,H){H.body?generateNode(C,H.body):C.push("null")}function generateNode(C,H){const{helper:U}=C;switch(H.type){case 0:generateResource(C,H);break;case 1:generatePluralNode(C,H);break;case 2:generateMessageNode(C,H);break;case 6:generateLinkedNode(C,H);break;case 8:C.push(JSON.stringify(H.value),H);break;case 7:C.push(JSON.stringify(H.value),H);break;case 5:C.push(`${U("interpolate")}(${U("list")}(${H.index}))`,H);break;case 4:C.push(`${U("interpolate")}(${U("named")}(${JSON.stringify(H.key)}))`,H);break;case 9:C.push(JSON.stringify(H.value),H);break;case 3:C.push(JSON.stringify(H.value),H);break}}const generate=(C,H={})=>{const U=isString$2(H.mode)?H.mode:"normal",W=isString$2(H.filename)?H.filename:"message.intl",G=!!H.sourceMap,X=H.breakLineCode!=null?H.breakLineCode:U==="arrow"?";":`
|
||
`,Z=H.needIndent?H.needIndent:U!=="arrow",Q=C.helpers||[],ee=createCodeGenerator(C,{mode:U,filename:W,sourceMap:G,breakLineCode:X,needIndent:Z});ee.push(U==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),ee.indent(Z),Q.length>0&&(ee.push(`const { ${Q.map(ne=>`${ne}: _${ne}`).join(", ")} } = ctx`),ee.newline()),ee.push("return "),generateNode(ee,C),ee.deindent(Z),ee.push("}");const{code:ie,map:te}=ee.context();return{ast:C,code:ie,map:te?te.toJSON():void 0}};function baseCompile(C,H={}){const U=assign({},H),G=createParser(U).parse(C);return transform$1(G,U),generate(G,U)}/*!
|
||
* devtools-if v9.3.0-beta.14
|
||
* (c) 2023 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
||
* core-base v9.3.0-beta.14
|
||
* (c) 2023 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(C){return literalValueRE.test(C)}function stripQuotes(C){const H=C.charCodeAt(0),U=C.charCodeAt(C.length-1);return H===U&&(H===34||H===39)?C.slice(1,-1):C}function getPathCharType(C){if(C==null)return"o";switch(C.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return C;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(C){const H=C.trim();return C.charAt(0)==="0"&&isNaN(parseInt(C))?!1:isLiteral(H)?stripQuotes(H):"*"+H}function parse$4(C){const H=[];let U=-1,W=0,G=0,X,Z,Q,ee,ie,te,ne;const ae=[];ae[0]=()=>{Z===void 0?Z=Q:Z+=Q},ae[1]=()=>{Z!==void 0&&(H.push(Z),Z=void 0)},ae[2]=()=>{ae[0](),G++},ae[3]=()=>{if(G>0)G--,W=4,ae[0]();else{if(G=0,Z===void 0||(Z=formatSubPath(Z),Z===!1))return!1;ae[1]()}};function oe(){const se=C[U+1];if(W===5&&se==="'"||W===6&&se==='"')return U++,Q="\\"+se,ae[0](),!0}for(;W!==null;)if(U++,X=C[U],!(X==="\\"&&oe())){if(ee=getPathCharType(X),ne=pathStateMachine[W],ie=ne[ee]||ne.l||8,ie===8||(W=ie[0],ie[1]!==void 0&&(te=ae[ie[1]],te&&(Q=X,te()===!1))))return;if(W===7)return H}}const cache=new Map;function resolveWithKeyValue(C,H){return isObject$b(C)?C[H]:null}function resolveValue(C,H){if(!isObject$b(C))return null;let U=cache.get(H);if(U||(U=parse$4(H),U&&cache.set(H,U)),!U)return null;const W=U.length;let G=C,X=0;for(;X<W;){const Z=G[U[X]];if(Z===void 0)return null;G=Z,X++}return G}const DEFAULT_MODIFIER=C=>C,DEFAULT_MESSAGE=C=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=C=>C.length===0?"":C.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(C,H){return C=Math.abs(C),H===2?C?C>1?1:0:1:C?Math.min(C,2):0}function getPluralIndex(C){const H=isNumber$3(C.pluralIndex)?C.pluralIndex:-1;return C.named&&(isNumber$3(C.named.count)||isNumber$3(C.named.n))?isNumber$3(C.named.count)?C.named.count:isNumber$3(C.named.n)?C.named.n:H:H}function normalizeNamed(C,H){H.count||(H.count=C),H.n||(H.n=C)}function createMessageContext(C={}){const H=C.locale,U=getPluralIndex(C),W=isObject$b(C.pluralRules)&&isString$2(H)&&isFunction$5(C.pluralRules[H])?C.pluralRules[H]:pluralDefault,G=isObject$b(C.pluralRules)&&isString$2(H)&&isFunction$5(C.pluralRules[H])?pluralDefault:void 0,X=ue=>ue[W(U,ue.length,G)],Z=C.list||[],Q=ue=>Z[ue],ee=C.named||{};isNumber$3(C.pluralIndex)&&normalizeNamed(U,ee);const ie=ue=>ee[ue];function te(ue){const de=isFunction$5(C.messages)?C.messages(ue):isObject$b(C.messages)?C.messages[ue]:!1;return de||(C.parent?C.parent.message(ue):DEFAULT_MESSAGE)}const ne=ue=>C.modifiers?C.modifiers[ue]:DEFAULT_MODIFIER,ae=isPlainObject$1(C.processor)&&isFunction$5(C.processor.normalize)?C.processor.normalize:DEFAULT_NORMALIZE,oe=isPlainObject$1(C.processor)&&isFunction$5(C.processor.interpolate)?C.processor.interpolate:DEFAULT_INTERPOLATE,se=isPlainObject$1(C.processor)&&isString$2(C.processor.type)?C.processor.type:DEFAULT_MESSAGE_DATA_TYPE,ce={list:Q,named:ie,plural:X,linked:(ue,...de)=>{const[ve,ge]=de;let he="text",me="";de.length===1?isObject$b(ve)?(me=ve.modifier||me,he=ve.type||he):isString$2(ve)&&(me=ve||me):de.length===2&&(isString$2(ve)&&(me=ve||me),isString$2(ge)&&(he=ge||he));let _e=te(ue)(ce);return he==="vnode"&&isArray$a(_e)&&me&&(_e=_e[0]),me?ne(me)(_e,he):_e},message:te,type:se,interpolate:oe,normalize:ae};return ce}let devtools=null;function setDevToolsHook(C){devtools=C}function initI18nDevTools(C,H,U){devtools&&devtools.emit(IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:C,version:H,meta:U})}const translateDevTools=createDevToolsHook(IntlifyDevToolsHooks.FunctionTranslate);function createDevToolsHook(C){return H=>devtools&&devtools.emit(C,H)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function fallbackWithSimple(C,H,U){return[...new Set([U,...isArray$a(H)?H:isObject$b(H)?Object.keys(H):isString$2(H)?[H]:[U]])]}function fallbackWithLocaleChain(C,H,U){const W=isString$2(U)?U:DEFAULT_LOCALE,G=C;G.__localeChainCache||(G.__localeChainCache=new Map);let X=G.__localeChainCache.get(W);if(!X){X=[];let Z=[U];for(;isArray$a(Z);)Z=appendBlockToChain(X,Z,H);const Q=isArray$a(H)||!isPlainObject$1(H)?H:H.default?H.default:null;Z=isString$2(Q)?[Q]:Q,isArray$a(Z)&&appendBlockToChain(X,Z,!1),G.__localeChainCache.set(W,X)}return X}function appendBlockToChain(C,H,U){let W=!0;for(let G=0;G<H.length&&isBoolean$1(W);G++){const X=H[G];isString$2(X)&&(W=appendLocaleToChain(C,H[G],U))}return W}function appendLocaleToChain(C,H,U){let W;const G=H.split("-");do{const X=G.join("-");W=appendItemToChain(C,X,U),G.splice(-1,1)}while(G.length&&W===!0);return W}function appendItemToChain(C,H,U){let W=!1;if(!C.includes(H)&&(W=!0,H)){W=H[H.length-1]!=="!";const G=H.replace(/!/g,"");C.push(G),(isArray$a(U)||isPlainObject$1(U))&&U[G]&&(W=U[G])}return W}const VERSION$2="9.3.0-beta.14",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=C=>`${C.charAt(0).toLocaleUpperCase()}${C.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(C,H)=>H==="text"&&isString$2(C)?C.toUpperCase():H==="vnode"&&isObject$b(C)&&"__v_isVNode"in C?C.children.toUpperCase():C,lower:(C,H)=>H==="text"&&isString$2(C)?C.toLowerCase():H==="vnode"&&isObject$b(C)&&"__v_isVNode"in C?C.children.toLowerCase():C,capitalize:(C,H)=>H==="text"&&isString$2(C)?capitalize(C):H==="vnode"&&isObject$b(C)&&"__v_isVNode"in C?capitalize(C.children):C}}let _compiler;function registerMessageCompiler(C){_compiler=C}let _resolver;function registerMessageResolver(C){_resolver=C}let _fallbacker;function registerLocaleFallbacker(C){_fallbacker=C}let _additionalMeta=null;const setAdditionalMeta=C=>{_additionalMeta=C},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=C=>{_fallbackContext=C},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(C={}){const H=isString$2(C.version)?C.version:VERSION$2,U=isString$2(C.locale)?C.locale:DEFAULT_LOCALE,W=isArray$a(C.fallbackLocale)||isPlainObject$1(C.fallbackLocale)||isString$2(C.fallbackLocale)||C.fallbackLocale===!1?C.fallbackLocale:U,G=isPlainObject$1(C.messages)?C.messages:{[U]:{}},X=isPlainObject$1(C.datetimeFormats)?C.datetimeFormats:{[U]:{}},Z=isPlainObject$1(C.numberFormats)?C.numberFormats:{[U]:{}},Q=assign({},C.modifiers||{},getDefaultLinkedModifiers()),ee=C.pluralRules||{},ie=isFunction$5(C.missing)?C.missing:null,te=isBoolean$1(C.missingWarn)||isRegExp(C.missingWarn)?C.missingWarn:!0,ne=isBoolean$1(C.fallbackWarn)||isRegExp(C.fallbackWarn)?C.fallbackWarn:!0,ae=!!C.fallbackFormat,oe=!!C.unresolving,se=isFunction$5(C.postTranslation)?C.postTranslation:null,le=isPlainObject$1(C.processor)?C.processor:null,ce=isBoolean$1(C.warnHtmlMessage)?C.warnHtmlMessage:!0,ue=!!C.escapeParameter,de=isFunction$5(C.messageCompiler)?C.messageCompiler:_compiler,ve=isFunction$5(C.messageResolver)?C.messageResolver:_resolver||resolveWithKeyValue,ge=isFunction$5(C.localeFallbacker)?C.localeFallbacker:_fallbacker||fallbackWithSimple,he=isObject$b(C.fallbackContext)?C.fallbackContext:void 0,me=isFunction$5(C.onWarn)?C.onWarn:warn$1,_e=C,be=isObject$b(_e.__datetimeFormatters)?_e.__datetimeFormatters:new Map,pe=isObject$b(_e.__numberFormatters)?_e.__numberFormatters:new Map,fe=isObject$b(_e.__meta)?_e.__meta:{};_cid++;const ye={version:H,cid:_cid,locale:U,fallbackLocale:W,messages:G,modifiers:Q,pluralRules:ee,missing:ie,missingWarn:te,fallbackWarn:ne,fallbackFormat:ae,unresolving:oe,postTranslation:se,processor:le,warnHtmlMessage:ce,escapeParameter:ue,messageCompiler:de,messageResolver:ve,localeFallbacker:ge,fallbackContext:he,onWarn:me,__meta:fe};return ye.datetimeFormats=X,ye.numberFormats=Z,ye.__datetimeFormatters=be,ye.__numberFormatters=pe,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(ye,H,fe),ye}function handleMissing(C,H,U,W,G){const{missing:X,onWarn:Z}=C;if(X!==null){const Q=X(C,U,H,G);return isString$2(Q)?Q:H}else return H}function updateFallbackLocale(C,H,U){const W=C;W.__localeChainCache=new Map,C.localeFallbacker(C,U,H)}const defaultOnCacheKey=C=>C;let compileCache=Object.create(null);function compileToFunction(C,H={}){{const W=(H.onCacheKey||defaultOnCacheKey)(C),G=compileCache[W];if(G)return G;let X=!1;const Z=H.onError||defaultOnError;H.onError=ie=>{X=!0,Z(ie)};const{code:Q}=baseCompile(C,H),ee=new Function(`return ${Q}`)();return X?ee:compileCache[W]=ee}}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()};function createCoreError(C){return createCompileError(C,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=C=>isFunction$5(C);function translate(C,...H){const{fallbackFormat:U,postTranslation:W,unresolving:G,messageCompiler:X,fallbackLocale:Z,messages:Q}=C,[ee,ie]=parseTranslateArgs(...H),te=isBoolean$1(ie.missingWarn)?ie.missingWarn:C.missingWarn,ne=isBoolean$1(ie.fallbackWarn)?ie.fallbackWarn:C.fallbackWarn,ae=isBoolean$1(ie.escapeParameter)?ie.escapeParameter:C.escapeParameter,oe=!!ie.resolvedMessage,se=isString$2(ie.default)||isBoolean$1(ie.default)?isBoolean$1(ie.default)?X?ee:()=>ee:ie.default:U?X?ee:()=>ee:"",le=U||se!=="",ce=isString$2(ie.locale)?ie.locale:C.locale;ae&&escapeParams(ie);let[ue,de,ve]=oe?[ee,ce,Q[ce]||{}]:resolveMessageFormat(C,ee,ce,Z,ne,te),ge=ue,he=ee;if(!oe&&!(isString$2(ge)||isMessageFunction(ge))&&le&&(ge=se,he=ge),!oe&&(!(isString$2(ge)||isMessageFunction(ge))||!isString$2(de)))return G?NOT_REOSLVED:ee;let me=!1;const _e=()=>{me=!0},be=isMessageFunction(ge)?ge:compileMessageFormat(C,ee,de,ge,he,_e);if(me)return ge;const pe=getMessageContextOptions(C,de,ve,ie),fe=createMessageContext(pe),ye=evaluateMessage(C,be,fe),$e=W?W(ye,ee):ye;if(__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:isString$2(ee)?ee:isMessageFunction(ge)?ge.key:"",locale:de||(isMessageFunction(ge)?ge.locale:""),format:isString$2(ge)?ge:isMessageFunction(ge)?ge.source:"",message:$e};we.meta=assign({},C.__meta,getAdditionalMeta()||{}),translateDevTools(we)}return $e}function escapeParams(C){isArray$a(C.list)?C.list=C.list.map(H=>isString$2(H)?escapeHtml(H):H):isObject$b(C.named)&&Object.keys(C.named).forEach(H=>{isString$2(C.named[H])&&(C.named[H]=escapeHtml(C.named[H]))})}function resolveMessageFormat(C,H,U,W,G,X){const{messages:Z,onWarn:Q,messageResolver:ee,localeFallbacker:ie}=C,te=ie(C,W,U);let ne={},ae,oe=null;const se="translate";for(let le=0;le<te.length&&(ae=te[le],ne=Z[ae]||{},(oe=ee(ne,H))===null&&(oe=ne[H]),!(isString$2(oe)||isFunction$5(oe)));le++){const ce=handleMissing(C,H,ae,X,se);ce!==H&&(oe=ce)}return[oe,ae,ne]}function compileMessageFormat(C,H,U,W,G,X){const{messageCompiler:Z,warnHtmlMessage:Q}=C;if(isMessageFunction(W)){const ie=W;return ie.locale=ie.locale||U,ie.key=ie.key||H,ie}if(Z==null){const ie=()=>W;return ie.locale=U,ie.key=H,ie}const ee=Z(W,getCompileOptions(C,U,G,W,Q,X));return ee.locale=U,ee.key=H,ee.source=W,ee}function evaluateMessage(C,H,U){return H(U)}function parseTranslateArgs(...C){const[H,U,W]=C,G={};if(!isString$2(H)&&!isNumber$3(H)&&!isMessageFunction(H))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const X=isNumber$3(H)?String(H):(isMessageFunction(H),H);return isNumber$3(U)?G.plural=U:isString$2(U)?G.default=U:isPlainObject$1(U)&&!isEmptyObject(U)?G.named=U:isArray$a(U)&&(G.list=U),isNumber$3(W)?G.plural=W:isString$2(W)?G.default=W:isPlainObject$1(W)&&assign(G,W),[X,G]}function getCompileOptions(C,H,U,W,G,X){return{warnHtmlMessage:G,onError:Z=>{throw X&&X(Z),Z},onCacheKey:Z=>generateFormatCacheKey(H,U,Z)}}function getMessageContextOptions(C,H,U,W){const{modifiers:G,pluralRules:X,messageResolver:Z,fallbackLocale:Q,fallbackWarn:ee,missingWarn:ie,fallbackContext:te}=C,ae={locale:H,modifiers:G,pluralRules:X,messages:oe=>{let se=Z(U,oe);if(se==null&&te){const[,,le]=resolveMessageFormat(te,oe,H,Q,ee,ie);se=Z(le,oe)}if(isString$2(se)){let le=!1;const ue=compileMessageFormat(C,oe,H,se,oe,()=>{le=!0});return le?NOOP_MESSAGE_FUNCTION:ue}else return isMessageFunction(se)?se:NOOP_MESSAGE_FUNCTION}};return C.processor&&(ae.processor=C.processor),W.list&&(ae.list=W.list),W.named&&(ae.named=W.named),isNumber$3(W.plural)&&(ae.pluralIndex=W.plural),ae}function datetime(C,...H){const{datetimeFormats:U,unresolving:W,fallbackLocale:G,onWarn:X,localeFallbacker:Z}=C,{__datetimeFormatters:Q}=C,[ee,ie,te,ne]=parseDateTimeArgs(...H),ae=isBoolean$1(te.missingWarn)?te.missingWarn:C.missingWarn;isBoolean$1(te.fallbackWarn)?te.fallbackWarn:C.fallbackWarn;const oe=!!te.part,se=isString$2(te.locale)?te.locale:C.locale,le=Z(C,G,se);if(!isString$2(ee)||ee==="")return new Intl.DateTimeFormat(se,ne).format(ie);let ce={},ue,de=null;const ve="datetime format";for(let me=0;me<le.length&&(ue=le[me],ce=U[ue]||{},de=ce[ee],!isPlainObject$1(de));me++)handleMissing(C,ee,ue,ae,ve);if(!isPlainObject$1(de)||!isString$2(ue))return W?NOT_REOSLVED:ee;let ge=`${ue}__${ee}`;isEmptyObject(ne)||(ge=`${ge}__${JSON.stringify(ne)}`);let he=Q.get(ge);return he||(he=new Intl.DateTimeFormat(ue,assign({},de,ne)),Q.set(ge,he)),oe?he.formatToParts(ie):he.format(ie)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...C){const[H,U,W,G]=C,X={};let Z={},Q;if(isString$2(H)){const ee=H.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!ee)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const ie=ee[3]?ee[3].trim().startsWith("T")?`${ee[1].trim()}${ee[3].trim()}`:`${ee[1].trim()}T${ee[3].trim()}`:ee[1].trim();Q=new Date(ie);try{Q.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(H)){if(isNaN(H.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);Q=H}else if(isNumber$3(H))Q=H;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$2(U)?X.key=U:isPlainObject$1(U)&&Object.keys(U).forEach(ee=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(ee)?Z[ee]=U[ee]:X[ee]=U[ee]}),isString$2(W)?X.locale=W:isPlainObject$1(W)&&(Z=W),isPlainObject$1(G)&&(Z=G),[X.key||"",Q,X,Z]}function clearDateTimeFormat(C,H,U){const W=C;for(const G in U){const X=`${H}__${G}`;!W.__datetimeFormatters.has(X)||W.__datetimeFormatters.delete(X)}}function number$4(C,...H){const{numberFormats:U,unresolving:W,fallbackLocale:G,onWarn:X,localeFallbacker:Z}=C,{__numberFormatters:Q}=C,[ee,ie,te,ne]=parseNumberArgs(...H),ae=isBoolean$1(te.missingWarn)?te.missingWarn:C.missingWarn;isBoolean$1(te.fallbackWarn)?te.fallbackWarn:C.fallbackWarn;const oe=!!te.part,se=isString$2(te.locale)?te.locale:C.locale,le=Z(C,G,se);if(!isString$2(ee)||ee==="")return new Intl.NumberFormat(se,ne).format(ie);let ce={},ue,de=null;const ve="number format";for(let me=0;me<le.length&&(ue=le[me],ce=U[ue]||{},de=ce[ee],!isPlainObject$1(de));me++)handleMissing(C,ee,ue,ae,ve);if(!isPlainObject$1(de)||!isString$2(ue))return W?NOT_REOSLVED:ee;let ge=`${ue}__${ee}`;isEmptyObject(ne)||(ge=`${ge}__${JSON.stringify(ne)}`);let he=Q.get(ge);return he||(he=new Intl.NumberFormat(ue,assign({},de,ne)),Q.set(ge,he)),oe?he.formatToParts(ie):he.format(ie)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...C){const[H,U,W,G]=C,X={};let Z={};if(!isNumber$3(H))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const Q=H;return isString$2(U)?X.key=U:isPlainObject$1(U)&&Object.keys(U).forEach(ee=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(ee)?Z[ee]=U[ee]:X[ee]=U[ee]}),isString$2(W)?X.locale=W:isPlainObject$1(W)&&(Z=W),isPlainObject$1(G)&&(Z=G),[X.key||"",Q,X,Z]}function clearNumberFormat(C,H,U){const W=C;for(const G in U){const X=`${H}__${G}`;!W.__numberFormatters.has(X)||W.__numberFormatters.delete(X)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
||
* vue-i18n v9.3.0-beta.14
|
||
* (c) 2023 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const VERSION$1="9.3.0-beta.14";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}CoreWarnCodes.__EXTEND_POINT__;let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(C,...H){return createCompileError(C,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson(C){if(!isObject$b(C))return C;for(const H in C)if(!!hasOwn(C,H))if(!H.includes("."))isObject$b(C[H])&&handleFlatJson(C[H]);else{const U=H.split("."),W=U.length-1;let G=C;for(let X=0;X<W;X++)U[X]in G||(G[U[X]]={}),G=G[U[X]];G[U[W]]=C[H],delete C[H],isObject$b(G[U[W]])&&handleFlatJson(G[U[W]])}return C}function getLocaleMessages(C,H){const{messages:U,__i18n:W,messageResolver:G,flatJson:X}=H,Z=isPlainObject$1(U)?U:isArray$a(W)?{}:{[C]:{}};if(isArray$a(W)&&W.forEach(Q=>{if("locale"in Q&&"resource"in Q){const{locale:ee,resource:ie}=Q;ee?(Z[ee]=Z[ee]||{},deepCopy(ie,Z[ee])):deepCopy(ie,Z)}else isString$2(Q)&&deepCopy(JSON.parse(Q),Z)}),G==null&&X)for(const Q in Z)hasOwn(Z,Q)&&handleFlatJson(Z[Q]);return Z}const isNotObjectOrIsArray=C=>!isObject$b(C)||isArray$a(C);function deepCopy(C,H){if(isNotObjectOrIsArray(C)||isNotObjectOrIsArray(H))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const U in C)hasOwn(C,U)&&(isNotObjectOrIsArray(C[U])||isNotObjectOrIsArray(H[U])?H[U]=C[U]:deepCopy(C[U],H[U]))}function getComponentOptions(C){return C.type}function adjustI18nResources(C,H,U){let W=isObject$b(H.messages)?H.messages:{};"__i18nGlobal"in U&&(W=getLocaleMessages(C.locale.value,{messages:W,__i18n:U.__i18nGlobal}));const G=Object.keys(W);G.length&&G.forEach(X=>{C.mergeLocaleMessage(X,W[X])});{if(isObject$b(H.datetimeFormats)){const X=Object.keys(H.datetimeFormats);X.length&&X.forEach(Z=>{C.mergeDateTimeFormat(Z,H.datetimeFormats[Z])})}if(isObject$b(H.numberFormats)){const X=Object.keys(H.numberFormats);X.length&&X.forEach(Z=>{C.mergeNumberFormat(Z,H.numberFormats[Z])})}}}function createTextNode(C){return createVNode(Text,null,C,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(C){return(H,U,W,G)=>C(U,W,getCurrentInstance()||void 0,G)}const getMetaInfo=()=>{const C=getCurrentInstance();let H=null;return C&&(H=getComponentOptions(C)[DEVTOOLS_META])?{[DEVTOOLS_META]:H}:null};function createComposer(C={},H){const{__root:U}=C,W=U===void 0;let G=isBoolean$1(C.inheritLocale)?C.inheritLocale:!0;const X=ref(U&&G?U.locale.value:isString$2(C.locale)?C.locale:DEFAULT_LOCALE),Z=ref(U&&G?U.fallbackLocale.value:isString$2(C.fallbackLocale)||isArray$a(C.fallbackLocale)||isPlainObject$1(C.fallbackLocale)||C.fallbackLocale===!1?C.fallbackLocale:X.value),Q=ref(getLocaleMessages(X.value,C)),ee=ref(isPlainObject$1(C.datetimeFormats)?C.datetimeFormats:{[X.value]:{}}),ie=ref(isPlainObject$1(C.numberFormats)?C.numberFormats:{[X.value]:{}});let te=U?U.missingWarn:isBoolean$1(C.missingWarn)||isRegExp(C.missingWarn)?C.missingWarn:!0,ne=U?U.fallbackWarn:isBoolean$1(C.fallbackWarn)||isRegExp(C.fallbackWarn)?C.fallbackWarn:!0,ae=U?U.fallbackRoot:isBoolean$1(C.fallbackRoot)?C.fallbackRoot:!0,oe=!!C.fallbackFormat,se=isFunction$5(C.missing)?C.missing:null,le=isFunction$5(C.missing)?defineCoreMissingHandler(C.missing):null,ce=isFunction$5(C.postTranslation)?C.postTranslation:null,ue=U?U.warnHtmlMessage:isBoolean$1(C.warnHtmlMessage)?C.warnHtmlMessage:!0,de=!!C.escapeParameter;const ve=U?U.modifiers:isPlainObject$1(C.modifiers)?C.modifiers:{};let ge=C.pluralRules||U&&U.pluralRules,he;he=(()=>{W&&setFallbackContext(null);const He={version:VERSION$1,locale:X.value,fallbackLocale:Z.value,messages:Q.value,modifiers:ve,pluralRules:ge,missing:le===null?void 0:le,missingWarn:te,fallbackWarn:ne,fallbackFormat:oe,unresolving:!0,postTranslation:ce===null?void 0:ce,warnHtmlMessage:ue,escapeParameter:de,messageResolver:C.messageResolver,__meta:{framework:"vue"}};He.datetimeFormats=ee.value,He.numberFormats=ie.value,He.__datetimeFormatters=isPlainObject$1(he)?he.__datetimeFormatters:void 0,He.__numberFormatters=isPlainObject$1(he)?he.__numberFormatters:void 0;const Ye=createCoreContext(He);return W&&setFallbackContext(Ye),Ye})(),updateFallbackLocale(he,X.value,Z.value);function _e(){return[X.value,Z.value,Q.value,ee.value,ie.value]}const be=computed({get:()=>X.value,set:He=>{X.value=He,he.locale=X.value}}),pe=computed({get:()=>Z.value,set:He=>{Z.value=He,he.fallbackLocale=Z.value,updateFallbackLocale(he,X.value,He)}}),fe=computed(()=>Q.value),ye=computed(()=>ee.value),$e=computed(()=>ie.value);function we(){return isFunction$5(ce)?ce:null}function Se(He){ce=He,he.postTranslation=He}function Te(){return se}function xe(He){He!==null&&(le=defineCoreMissingHandler(He)),se=He,he.missing=le}const ke=(He,Ye,nt,tt,at,St)=>{_e();let st;if(__INTLIFY_PROD_DEVTOOLS__)try{setAdditionalMeta(getMetaInfo()),W||(he.fallbackContext=U?getFallbackContext():void 0),st=He(he)}finally{setAdditionalMeta(null),W||(he.fallbackContext=void 0)}else st=He(he);if(isNumber$3(st)&&st===NOT_REOSLVED){const[it,pt]=Ye();return U&&ae?tt(U):at(it)}else{if(St(st))return st;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Ie(...He){return ke(Ye=>Reflect.apply(translate,null,[Ye,...He]),()=>parseTranslateArgs(...He),"translate",Ye=>Reflect.apply(Ye.t,Ye,[...He]),Ye=>Ye,Ye=>isString$2(Ye))}function Ae(...He){const[Ye,nt,tt]=He;if(tt&&!isObject$b(tt))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Ie(Ye,nt,assign({resolvedMessage:!0},tt||{}))}function Me(...He){return ke(Ye=>Reflect.apply(datetime,null,[Ye,...He]),()=>parseDateTimeArgs(...He),"datetime format",Ye=>Reflect.apply(Ye.d,Ye,[...He]),()=>MISSING_RESOLVE_VALUE,Ye=>isString$2(Ye))}function Fe(...He){return ke(Ye=>Reflect.apply(number$4,null,[Ye,...He]),()=>parseNumberArgs(...He),"number format",Ye=>Reflect.apply(Ye.n,Ye,[...He]),()=>MISSING_RESOLVE_VALUE,Ye=>isString$2(Ye))}function Be(He){return He.map(Ye=>isString$2(Ye)||isNumber$3(Ye)||isBoolean$1(Ye)?createTextNode(String(Ye)):Ye)}const Ve={normalize:Be,interpolate:He=>He,type:"vnode"};function Le(...He){return ke(Ye=>{let nt;const tt=Ye;try{tt.processor=Ve,nt=Reflect.apply(translate,null,[tt,...He])}finally{tt.processor=null}return nt},()=>parseTranslateArgs(...He),"translate",Ye=>Ye[TranslateVNodeSymbol](...He),Ye=>[createTextNode(Ye)],Ye=>isArray$a(Ye))}function De(...He){return ke(Ye=>Reflect.apply(number$4,null,[Ye,...He]),()=>parseNumberArgs(...He),"number format",Ye=>Ye[NumberPartsSymbol](...He),()=>[],Ye=>isString$2(Ye)||isArray$a(Ye))}function Je(...He){return ke(Ye=>Reflect.apply(datetime,null,[Ye,...He]),()=>parseDateTimeArgs(...He),"datetime format",Ye=>Ye[DatetimePartsSymbol](...He),()=>[],Ye=>isString$2(Ye)||isArray$a(Ye))}function ze(He){ge=He,he.pluralRules=ge}function Ge(He,Ye){const nt=isString$2(Ye)?Ye:X.value,tt=Ee(nt);return he.messageResolver(tt,He)!==null}function qe(He){let Ye=null;const nt=fallbackWithLocaleChain(he,Z.value,X.value);for(let tt=0;tt<nt.length;tt++){const at=Q.value[nt[tt]]||{},St=he.messageResolver(at,He);if(St!=null){Ye=St;break}}return Ye}function Ke(He){const Ye=qe(He);return Ye!=null?Ye:U?U.tm(He)||{}:{}}function Ee(He){return Q.value[He]||{}}function Ce(He,Ye){Q.value[He]=Ye,he.messages=Q.value}function Pe(He,Ye){Q.value[He]=Q.value[He]||{},deepCopy(Ye,Q.value[He]),he.messages=Q.value}function Re(He){return ee.value[He]||{}}function Ze(He,Ye){ee.value[He]=Ye,he.datetimeFormats=ee.value,clearDateTimeFormat(he,He,Ye)}function Oe(He,Ye){ee.value[He]=assign(ee.value[He]||{},Ye),he.datetimeFormats=ee.value,clearDateTimeFormat(he,He,Ye)}function Qe(He){return ie.value[He]||{}}function Xe(He,Ye){ie.value[He]=Ye,he.numberFormats=ie.value,clearNumberFormat(he,He,Ye)}function et(He,Ye){ie.value[He]=assign(ie.value[He]||{},Ye),he.numberFormats=ie.value,clearNumberFormat(he,He,Ye)}composerID++,U&&inBrowser&&(watch(U.locale,He=>{G&&(X.value=He,he.locale=He,updateFallbackLocale(he,X.value,Z.value))}),watch(U.fallbackLocale,He=>{G&&(Z.value=He,he.fallbackLocale=He,updateFallbackLocale(he,X.value,Z.value))}));const We={id:composerID,locale:be,fallbackLocale:pe,get inheritLocale(){return G},set inheritLocale(He){G=He,He&&U&&(X.value=U.locale.value,Z.value=U.fallbackLocale.value,updateFallbackLocale(he,X.value,Z.value))},get availableLocales(){return Object.keys(Q.value).sort()},messages:fe,get modifiers(){return ve},get pluralRules(){return ge||{}},get isGlobal(){return W},get missingWarn(){return te},set missingWarn(He){te=He,he.missingWarn=te},get fallbackWarn(){return ne},set fallbackWarn(He){ne=He,he.fallbackWarn=ne},get fallbackRoot(){return ae},set fallbackRoot(He){ae=He},get fallbackFormat(){return oe},set fallbackFormat(He){oe=He,he.fallbackFormat=oe},get warnHtmlMessage(){return ue},set warnHtmlMessage(He){ue=He,he.warnHtmlMessage=He},get escapeParameter(){return de},set escapeParameter(He){de=He,he.escapeParameter=He},t:Ie,getLocaleMessage:Ee,setLocaleMessage:Ce,mergeLocaleMessage:Pe,getPostTranslationHandler:we,setPostTranslationHandler:Se,getMissingHandler:Te,setMissingHandler:xe,[SetPluralRulesSymbol]:ze};return We.datetimeFormats=ye,We.numberFormats=$e,We.rt=Ae,We.te=Ge,We.tm=Ke,We.d=Me,We.n=Fe,We.getDateTimeFormat=Re,We.setDateTimeFormat=Ze,We.mergeDateTimeFormat=Oe,We.getNumberFormat=Qe,We.setNumberFormat=Xe,We.mergeNumberFormat=et,We[InejctWithOption]=C.__injectWithOption,We[TranslateVNodeSymbol]=Le,We[DatetimePartsSymbol]=Je,We[NumberPartsSymbol]=De,We}function convertComposerOptions(C){const H=isString$2(C.locale)?C.locale:DEFAULT_LOCALE,U=isString$2(C.fallbackLocale)||isArray$a(C.fallbackLocale)||isPlainObject$1(C.fallbackLocale)||C.fallbackLocale===!1?C.fallbackLocale:H,W=isFunction$5(C.missing)?C.missing:void 0,G=isBoolean$1(C.silentTranslationWarn)||isRegExp(C.silentTranslationWarn)?!C.silentTranslationWarn:!0,X=isBoolean$1(C.silentFallbackWarn)||isRegExp(C.silentFallbackWarn)?!C.silentFallbackWarn:!0,Z=isBoolean$1(C.fallbackRoot)?C.fallbackRoot:!0,Q=!!C.formatFallbackMessages,ee=isPlainObject$1(C.modifiers)?C.modifiers:{},ie=C.pluralizationRules,te=isFunction$5(C.postTranslation)?C.postTranslation:void 0,ne=isString$2(C.warnHtmlInMessage)?C.warnHtmlInMessage!=="off":!0,ae=!!C.escapeParameterHtml,oe=isBoolean$1(C.sync)?C.sync:!0;let se=C.messages;if(isPlainObject$1(C.sharedMessages)){const he=C.sharedMessages;se=Object.keys(he).reduce((_e,be)=>{const pe=_e[be]||(_e[be]={});return assign(pe,he[be]),_e},se||{})}const{__i18n:le,__root:ce,__injectWithOption:ue}=C,de=C.datetimeFormats,ve=C.numberFormats,ge=C.flatJson;return{locale:H,fallbackLocale:U,messages:se,flatJson:ge,datetimeFormats:de,numberFormats:ve,missing:W,missingWarn:G,fallbackWarn:X,fallbackRoot:Z,fallbackFormat:Q,modifiers:ee,pluralRules:ie,postTranslation:te,warnHtmlMessage:ne,escapeParameter:ae,messageResolver:C.messageResolver,inheritLocale:oe,__i18n:le,__root:ce,__injectWithOption:ue}}function createVueI18n(C={},H){{const U=createComposer(convertComposerOptions(C)),W={id:U.id,get locale(){return U.locale.value},set locale(G){U.locale.value=G},get fallbackLocale(){return U.fallbackLocale.value},set fallbackLocale(G){U.fallbackLocale.value=G},get messages(){return U.messages.value},get datetimeFormats(){return U.datetimeFormats.value},get numberFormats(){return U.numberFormats.value},get availableLocales(){return U.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(G){},get missing(){return U.getMissingHandler()},set missing(G){U.setMissingHandler(G)},get silentTranslationWarn(){return isBoolean$1(U.missingWarn)?!U.missingWarn:U.missingWarn},set silentTranslationWarn(G){U.missingWarn=isBoolean$1(G)?!G:G},get silentFallbackWarn(){return isBoolean$1(U.fallbackWarn)?!U.fallbackWarn:U.fallbackWarn},set silentFallbackWarn(G){U.fallbackWarn=isBoolean$1(G)?!G:G},get modifiers(){return U.modifiers},get formatFallbackMessages(){return U.fallbackFormat},set formatFallbackMessages(G){U.fallbackFormat=G},get postTranslation(){return U.getPostTranslationHandler()},set postTranslation(G){U.setPostTranslationHandler(G)},get sync(){return U.inheritLocale},set sync(G){U.inheritLocale=G},get warnHtmlInMessage(){return U.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(G){U.warnHtmlMessage=G!=="off"},get escapeParameterHtml(){return U.escapeParameter},set escapeParameterHtml(G){U.escapeParameter=G},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(G){},get pluralizationRules(){return U.pluralRules||{}},__composer:U,t(...G){const[X,Z,Q]=G,ee={};let ie=null,te=null;if(!isString$2(X))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const ne=X;return isString$2(Z)?ee.locale=Z:isArray$a(Z)?ie=Z:isPlainObject$1(Z)&&(te=Z),isArray$a(Q)?ie=Q:isPlainObject$1(Q)&&(te=Q),Reflect.apply(U.t,U,[ne,ie||te||{},ee])},rt(...G){return Reflect.apply(U.rt,U,[...G])},tc(...G){const[X,Z,Q]=G,ee={plural:1};let ie=null,te=null;if(!isString$2(X))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const ne=X;return isString$2(Z)?ee.locale=Z:isNumber$3(Z)?ee.plural=Z:isArray$a(Z)?ie=Z:isPlainObject$1(Z)&&(te=Z),isString$2(Q)?ee.locale=Q:isArray$a(Q)?ie=Q:isPlainObject$1(Q)&&(te=Q),Reflect.apply(U.t,U,[ne,ie||te||{},ee])},te(G,X){return U.te(G,X)},tm(G){return U.tm(G)},getLocaleMessage(G){return U.getLocaleMessage(G)},setLocaleMessage(G,X){U.setLocaleMessage(G,X)},mergeLocaleMessage(G,X){U.mergeLocaleMessage(G,X)},d(...G){return Reflect.apply(U.d,U,[...G])},getDateTimeFormat(G){return U.getDateTimeFormat(G)},setDateTimeFormat(G,X){U.setDateTimeFormat(G,X)},mergeDateTimeFormat(G,X){U.mergeDateTimeFormat(G,X)},n(...G){return Reflect.apply(U.n,U,[...G])},getNumberFormat(G){return U.getNumberFormat(G)},setNumberFormat(G,X){U.setNumberFormat(G,X)},mergeNumberFormat(G,X){U.mergeNumberFormat(G,X)},getChoiceIndex(G,X){return-1},__onComponentInstanceCreated(G){const{componentInstanceCreatedListener:X}=C;X&&X(G,W)}};return W}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:C=>C==="parent"||C==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:C},H){return H.length===1&&H[0]==="default"?(C.default?C.default():[]).reduce((W,G)=>[...W,...G.type===Fragment?G.children:[G]],[]):H.reduce((U,W)=>{const G=C[W];return G&&(U[W]=G()),U},{})}function getFragmentableTag(C){return Fragment}const Translation={name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:C=>isNumber$3(C)||!isNaN(C)}},baseFormatProps),setup(C,H){const{slots:U,attrs:W}=H,G=C.i18n||useI18n({useScope:C.scope,__useComponent:!0});return()=>{const X=Object.keys(U).filter(ne=>ne!=="_"),Z={};C.locale&&(Z.locale=C.locale),C.plural!==void 0&&(Z.plural=isString$2(C.plural)?+C.plural:C.plural);const Q=getInterpolateArg(H,X),ee=G[TranslateVNodeSymbol](C.keypath,Q,Z),ie=assign({},W),te=isString$2(C.tag)||isObject$b(C.tag)?C.tag:getFragmentableTag();return h$1(te,ie,ee)}}};function isVNode(C){return isArray$a(C)&&!isString$2(C[0])}function renderFormatter(C,H,U,W){const{slots:G,attrs:X}=H;return()=>{const Z={part:!0};let Q={};C.locale&&(Z.locale=C.locale),isString$2(C.format)?Z.key=C.format:isObject$b(C.format)&&(isString$2(C.format.key)&&(Z.key=C.format.key),Q=Object.keys(C.format).reduce((ae,oe)=>U.includes(oe)?assign({},ae,{[oe]:C.format[oe]}):ae,{}));const ee=W(C.value,Z,Q);let ie=[Z.key];isArray$a(ee)?ie=ee.map((ae,oe)=>{const se=G[ae.type],le=se?se({[ae.type]:ae.value,index:oe,parts:ee}):[ae.value];return isVNode(le)&&(le[0].key=`${ae.type}-${oe}`),le}):isString$2(ee)&&(ie=[ee]);const te=assign({},X),ne=isString$2(C.tag)||isObject$b(C.tag)?C.tag:getFragmentableTag();return h$1(ne,te,ie)}}const NumberFormat={name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(C,H){const U=C.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(C,H,NUMBER_FORMAT_OPTIONS_KEYS,(...W)=>U[NumberPartsSymbol](...W))}},DatetimeFormat={name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(C,H){const U=C.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(C,H,DATETIME_FORMAT_OPTIONS_KEYS,(...W)=>U[DatetimePartsSymbol](...W))}};function getComposer$2(C,H){const U=C;if(C.mode==="composition")return U.__getInstance(H)||C.global;{const W=U.__getInstance(H);return W!=null?W.__composer:C.global.__composer}}function vTDirective(C){const H=Z=>{const{instance:Q,modifiers:ee,value:ie}=Z;if(!Q||!Q.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const te=getComposer$2(C,Q.$),ne=parseValue(ie);return[Reflect.apply(te.t,te,[...makeParams(ne)]),te]};return{created:(Z,Q)=>{const[ee,ie]=H(Q);inBrowser&&C.global===ie&&(Z.__i18nWatcher=watch(ie.locale,()=>{Q.instance&&Q.instance.$forceUpdate()})),Z.__composer=ie,Z.textContent=ee},unmounted:Z=>{inBrowser&&Z.__i18nWatcher&&(Z.__i18nWatcher(),Z.__i18nWatcher=void 0,delete Z.__i18nWatcher),Z.__composer&&(Z.__composer=void 0,delete Z.__composer)},beforeUpdate:(Z,{value:Q})=>{if(Z.__composer){const ee=Z.__composer,ie=parseValue(Q);Z.textContent=Reflect.apply(ee.t,ee,[...makeParams(ie)])}},getSSRProps:Z=>{const[Q]=H(Z);return{textContent:Q}}}}function parseValue(C){if(isString$2(C))return{path:C};if(isPlainObject$1(C)){if(!("path"in C))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return C}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(C){const{path:H,locale:U,args:W,choice:G,plural:X}=C,Z={},Q=W||{};return isString$2(U)&&(Z.locale=U),isNumber$3(G)&&(Z.plural=G),isNumber$3(X)&&(Z.plural=X),[H,Q,Z]}function apply$3(C,H,...U){const W=isPlainObject$1(U[0])?U[0]:{},G=!!W.useI18nComponentName;(isBoolean$1(W.globalInstall)?W.globalInstall:!0)&&(C.component(G?"i18n":Translation.name,Translation),C.component(NumberFormat.name,NumberFormat),C.component(DatetimeFormat.name,DatetimeFormat)),C.directive("t",vTDirective(H))}function defineMixin(C,H,U){return{beforeCreate(){const W=getCurrentInstance();if(!W)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const G=this.$options;if(G.i18n){const X=G.i18n;G.__i18n&&(X.__i18n=G.__i18n),X.__root=H,this===this.$root?this.$i18n=mergeToRoot(C,X):(X.__injectWithOption=!0,this.$i18n=createVueI18n(X))}else G.__i18n?this===this.$root?this.$i18n=mergeToRoot(C,G):this.$i18n=createVueI18n({__i18n:G.__i18n,__injectWithOption:!0,__root:H}):this.$i18n=C;G.__i18nGlobal&&adjustI18nResources(H,G,G),C.__onComponentInstanceCreated(this.$i18n),U.__setInstance(W,this.$i18n),this.$t=(...X)=>this.$i18n.t(...X),this.$rt=(...X)=>this.$i18n.rt(...X),this.$tc=(...X)=>this.$i18n.tc(...X),this.$te=(X,Z)=>this.$i18n.te(X,Z),this.$d=(...X)=>this.$i18n.d(...X),this.$n=(...X)=>this.$i18n.n(...X),this.$tm=X=>this.$i18n.tm(X),this!==this.$root&&!this.$i18n.__extended__&&U.__vueI18nExtend&&(U.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const W=getCurrentInstance();if(!W)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,U.__deleteInstance(W),delete this.$i18n}}}function mergeToRoot(C,H){C.locale=H.locale||C.locale,C.fallbackLocale=H.fallbackLocale||C.fallbackLocale,C.missing=H.missing||C.missing,C.silentTranslationWarn=H.silentTranslationWarn||C.silentFallbackWarn,C.silentFallbackWarn=H.silentFallbackWarn||C.silentFallbackWarn,C.formatFallbackMessages=H.formatFallbackMessages||C.formatFallbackMessages,C.postTranslation=H.postTranslation||C.postTranslation,C.warnHtmlInMessage=H.warnHtmlInMessage||C.warnHtmlInMessage,C.escapeParameterHtml=H.escapeParameterHtml||C.escapeParameterHtml,C.sync=H.sync||C.sync,C.__composer[SetPluralRulesSymbol](H.pluralizationRules||C.pluralizationRules);const U=getLocaleMessages(C.locale,{messages:H.messages,__i18n:H.__i18n});return Object.keys(U).forEach(W=>C.mergeLocaleMessage(W,U[W])),H.datetimeFormats&&Object.keys(H.datetimeFormats).forEach(W=>C.mergeDateTimeFormat(W,H.datetimeFormats[W])),H.numberFormats&&Object.keys(H.numberFormats).forEach(W=>C.mergeNumberFormat(W,H.numberFormats[W])),C}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(C={},H){const U=__VUE_I18N_LEGACY_API__&&isBoolean$1(C.legacy)?C.legacy:__VUE_I18N_LEGACY_API__,W=isBoolean$1(C.globalInjection)?C.globalInjection:!0,G=__VUE_I18N_LEGACY_API__&&U?!!C.allowComposition:!0,X=new Map,[Z,Q]=createGlobal(C,U),ee=makeSymbol("");function ie(ae){return X.get(ae)||null}function te(ae,oe){X.set(ae,oe)}function ne(ae){X.delete(ae)}{const ae={get mode(){return __VUE_I18N_LEGACY_API__&&U?"legacy":"composition"},get allowComposition(){return G},async install(oe,...se){if(oe.__VUE_I18N_SYMBOL__=ee,oe.provide(oe.__VUE_I18N_SYMBOL__,ae),isPlainObject$1(se[0])){const ce=se[0];ae.__composerExtend=ce.__composerExtend,ae.__vueI18nExtend=ce.__vueI18nExtend}!U&&W&&injectGlobalFields(oe,ae.global),__VUE_I18N_FULL_INSTALL__&&apply$3(oe,ae,...se),__VUE_I18N_LEGACY_API__&&U&&oe.mixin(defineMixin(Q,Q.__composer,ae));const le=oe.unmount;oe.unmount=()=>{ae.dispose(),le()}},get global(){return Q},dispose(){Z.stop()},__instances:X,__getInstance:ie,__setInstance:te,__deleteInstance:ne};return ae}}function useI18n(C={}){const H=getCurrentInstance();if(H==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!H.isCE&&H.appContext.app!=null&&!H.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const U=getI18nInstance(H),W=getGlobalComposer(U),G=getComponentOptions(H),X=getScope(C,G);if(__VUE_I18N_LEGACY_API__&&U.mode==="legacy"&&!C.__useComponent){if(!U.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(H,X,W,C)}if(X==="global")return adjustI18nResources(W,C,G),W;if(X==="parent"){let ee=getComposer(U,H,C.__useComponent);return ee==null&&(ee=W),ee}const Z=U;let Q=Z.__getInstance(H);if(Q==null){const ee=assign({},C);"__i18n"in G&&(ee.__i18n=G.__i18n),W&&(ee.__root=W),Q=createComposer(ee),Z.__composerExtend&&Z.__composerExtend(Q),setupLifeCycle(Z,H),Z.__setInstance(H,Q)}return Q}function createGlobal(C,H,U){const W=effectScope();{const G=__VUE_I18N_LEGACY_API__&&H?W.run(()=>createVueI18n(C)):W.run(()=>createComposer(C));if(G==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[W,G]}}function getI18nInstance(C){{const H=inject(C.isCE?I18nInjectionKey:C.appContext.app.__VUE_I18N_SYMBOL__);if(!H)throw createI18nError(C.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return H}}function getScope(C,H){return isEmptyObject(C)?"__i18n"in H?"local":"global":C.useScope?C.useScope:"local"}function getGlobalComposer(C){return C.mode==="composition"?C.global:C.global.__composer}function getComposer(C,H,U=!1){let W=null;const G=H.root;let X=H.parent;for(;X!=null;){const Z=C;if(C.mode==="composition")W=Z.__getInstance(X);else if(__VUE_I18N_LEGACY_API__){const Q=Z.__getInstance(X);Q!=null&&(W=Q.__composer,U&&W&&!W[InejctWithOption]&&(W=null))}if(W!=null||G===X)break;X=X.parent}return W}function setupLifeCycle(C,H,U){onMounted(()=>{},H),onUnmounted(()=>{C.__deleteInstance(H)},H)}function useI18nForLegacy(C,H,U,W={}){const G=H==="local",X=shallowRef(null);if(G&&C.proxy&&!(C.proxy.$options.i18n||C.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const Z=isBoolean$1(W.inheritLocale)?W.inheritLocale:!0,Q=ref(G&&Z?U.locale.value:isString$2(W.locale)?W.locale:DEFAULT_LOCALE),ee=ref(G&&Z?U.fallbackLocale.value:isString$2(W.fallbackLocale)||isArray$a(W.fallbackLocale)||isPlainObject$1(W.fallbackLocale)||W.fallbackLocale===!1?W.fallbackLocale:Q.value),ie=ref(getLocaleMessages(Q.value,W)),te=ref(isPlainObject$1(W.datetimeFormats)?W.datetimeFormats:{[Q.value]:{}}),ne=ref(isPlainObject$1(W.numberFormats)?W.numberFormats:{[Q.value]:{}}),ae=G?U.missingWarn:isBoolean$1(W.missingWarn)||isRegExp(W.missingWarn)?W.missingWarn:!0,oe=G?U.fallbackWarn:isBoolean$1(W.fallbackWarn)||isRegExp(W.fallbackWarn)?W.fallbackWarn:!0,se=G?U.fallbackRoot:isBoolean$1(W.fallbackRoot)?W.fallbackRoot:!0,le=!!W.fallbackFormat,ce=isFunction$5(W.missing)?W.missing:null,ue=isFunction$5(W.postTranslation)?W.postTranslation:null,de=G?U.warnHtmlMessage:isBoolean$1(W.warnHtmlMessage)?W.warnHtmlMessage:!0,ve=!!W.escapeParameter,ge=G?U.modifiers:isPlainObject$1(W.modifiers)?W.modifiers:{},he=W.pluralRules||G&&U.pluralRules;function me(){return[Q.value,ee.value,ie.value,te.value,ne.value]}const _e=computed({get:()=>X.value?X.value.locale.value:Q.value,set:Pe=>{X.value&&(X.value.locale.value=Pe),Q.value=Pe}}),be=computed({get:()=>X.value?X.value.fallbackLocale.value:ee.value,set:Pe=>{X.value&&(X.value.fallbackLocale.value=Pe),ee.value=Pe}}),pe=computed(()=>X.value?X.value.messages.value:ie.value),fe=computed(()=>te.value),ye=computed(()=>ne.value);function $e(){return X.value?X.value.getPostTranslationHandler():ue}function we(Pe){X.value&&X.value.setPostTranslationHandler(Pe)}function Se(){return X.value?X.value.getMissingHandler():ce}function Te(Pe){X.value&&X.value.setMissingHandler(Pe)}function xe(Pe){return me(),Pe()}function ke(...Pe){return X.value?xe(()=>Reflect.apply(X.value.t,null,[...Pe])):xe(()=>"")}function Ie(...Pe){return X.value?Reflect.apply(X.value.rt,null,[...Pe]):""}function Ae(...Pe){return X.value?xe(()=>Reflect.apply(X.value.d,null,[...Pe])):xe(()=>"")}function Me(...Pe){return X.value?xe(()=>Reflect.apply(X.value.n,null,[...Pe])):xe(()=>"")}function Fe(Pe){return X.value?X.value.tm(Pe):{}}function Be(Pe,Re){return X.value?X.value.te(Pe,Re):!1}function Ne(Pe){return X.value?X.value.getLocaleMessage(Pe):{}}function Ve(Pe,Re){X.value&&(X.value.setLocaleMessage(Pe,Re),ie.value[Pe]=Re)}function Le(Pe,Re){X.value&&X.value.mergeLocaleMessage(Pe,Re)}function De(Pe){return X.value?X.value.getDateTimeFormat(Pe):{}}function Je(Pe,Re){X.value&&(X.value.setDateTimeFormat(Pe,Re),te.value[Pe]=Re)}function ze(Pe,Re){X.value&&X.value.mergeDateTimeFormat(Pe,Re)}function Ge(Pe){return X.value?X.value.getNumberFormat(Pe):{}}function qe(Pe,Re){X.value&&(X.value.setNumberFormat(Pe,Re),ne.value[Pe]=Re)}function Ke(Pe,Re){X.value&&X.value.mergeNumberFormat(Pe,Re)}const Ee={get id(){return X.value?X.value.id:-1},locale:_e,fallbackLocale:be,messages:pe,datetimeFormats:fe,numberFormats:ye,get inheritLocale(){return X.value?X.value.inheritLocale:Z},set inheritLocale(Pe){X.value&&(X.value.inheritLocale=Pe)},get availableLocales(){return X.value?X.value.availableLocales:Object.keys(ie.value)},get modifiers(){return X.value?X.value.modifiers:ge},get pluralRules(){return X.value?X.value.pluralRules:he},get isGlobal(){return X.value?X.value.isGlobal:!1},get missingWarn(){return X.value?X.value.missingWarn:ae},set missingWarn(Pe){X.value&&(X.value.missingWarn=Pe)},get fallbackWarn(){return X.value?X.value.fallbackWarn:oe},set fallbackWarn(Pe){X.value&&(X.value.missingWarn=Pe)},get fallbackRoot(){return X.value?X.value.fallbackRoot:se},set fallbackRoot(Pe){X.value&&(X.value.fallbackRoot=Pe)},get fallbackFormat(){return X.value?X.value.fallbackFormat:le},set fallbackFormat(Pe){X.value&&(X.value.fallbackFormat=Pe)},get warnHtmlMessage(){return X.value?X.value.warnHtmlMessage:de},set warnHtmlMessage(Pe){X.value&&(X.value.warnHtmlMessage=Pe)},get escapeParameter(){return X.value?X.value.escapeParameter:ve},set escapeParameter(Pe){X.value&&(X.value.escapeParameter=Pe)},t:ke,getPostTranslationHandler:$e,setPostTranslationHandler:we,getMissingHandler:Se,setMissingHandler:Te,rt:Ie,d:Ae,n:Me,tm:Fe,te:Be,getLocaleMessage:Ne,setLocaleMessage:Ve,mergeLocaleMessage:Le,getDateTimeFormat:De,setDateTimeFormat:Je,mergeDateTimeFormat:ze,getNumberFormat:Ge,setNumberFormat:qe,mergeNumberFormat:Ke};function Ce(Pe){Pe.locale.value=Q.value,Pe.fallbackLocale.value=ee.value,Object.keys(ie.value).forEach(Re=>{Pe.mergeLocaleMessage(Re,ie.value[Re])}),Object.keys(te.value).forEach(Re=>{Pe.mergeDateTimeFormat(Re,te.value[Re])}),Object.keys(ne.value).forEach(Re=>{Pe.mergeNumberFormat(Re,ne.value[Re])}),Pe.escapeParameter=ve,Pe.fallbackFormat=le,Pe.fallbackRoot=se,Pe.fallbackWarn=oe,Pe.missingWarn=ae,Pe.warnHtmlMessage=de}return onBeforeMount(()=>{if(C.proxy==null||C.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Pe=X.value=C.proxy.$i18n.__composer;H==="global"?(Q.value=Pe.locale.value,ee.value=Pe.fallbackLocale.value,ie.value=Pe.messages.value,te.value=Pe.datetimeFormats.value,ne.value=Pe.numberFormats.value):G&&Ce(Pe)}),Ee}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(C,H){const U=Object.create(null);globalExportProps.forEach(W=>{const G=Object.getOwnPropertyDescriptor(H,W);if(!G)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const X=isRef(G.value)?{get(){return G.value.value},set(Z){G.value.value=Z}}:{get(){return G.get&&G.get()}};Object.defineProperty(U,W,X)}),C.config.globalProperties.$i18n=U,globalExportMethods.forEach(W=>{const G=Object.getOwnPropertyDescriptor(H,W);if(!G||!G.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(C.config.globalProperties,`$${W}`,G)})}registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);initFeatureFlags();if(__INTLIFY_PROD_DEVTOOLS__){const C=getGlobalThis();C.__INTLIFY__=!0,setDevToolsHook(C.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var localforage={exports:{}};/*!
|
||
localForage -- Offline Storage, Improved
|
||
Version 1.10.0
|
||
https://localforage.github.io/localForage
|
||
(c) 2013-2017 Mozilla, Apache License 2.0
|
||
*/(function(C,H){(function(U){C.exports=U()})(function(){return function U(W,G,X){function Z(ie,te){if(!G[ie]){if(!W[ie]){var ne=typeof commonjsRequire=="function"&&commonjsRequire;if(!te&&ne)return ne(ie,!0);if(Q)return Q(ie,!0);var ae=new Error("Cannot find module '"+ie+"'");throw ae.code="MODULE_NOT_FOUND",ae}var oe=G[ie]={exports:{}};W[ie][0].call(oe.exports,function(se){var le=W[ie][1][se];return Z(le||se)},oe,oe.exports,U,W,G,X)}return G[ie].exports}for(var Q=typeof commonjsRequire=="function"&&commonjsRequire,ee=0;ee<X.length;ee++)Z(X[ee]);return Z}({1:[function(U,W,G){(function(X){var Z=X.MutationObserver||X.WebKitMutationObserver,Q;if(Z){var ee=0,ie=new Z(se),te=X.document.createTextNode("");ie.observe(te,{characterData:!0}),Q=function(){te.data=ee=++ee%2}}else if(!X.setImmediate&&typeof X.MessageChannel<"u"){var ne=new X.MessageChannel;ne.port1.onmessage=se,Q=function(){ne.port2.postMessage(0)}}else"document"in X&&"onreadystatechange"in X.document.createElement("script")?Q=function(){var ce=X.document.createElement("script");ce.onreadystatechange=function(){se(),ce.onreadystatechange=null,ce.parentNode.removeChild(ce),ce=null},X.document.documentElement.appendChild(ce)}:Q=function(){setTimeout(se,0)};var ae,oe=[];function se(){ae=!0;for(var ce,ue,de=oe.length;de;){for(ue=oe,oe=[],ce=-1;++ce<de;)ue[ce]();de=oe.length}ae=!1}W.exports=le;function le(ce){oe.push(ce)===1&&!ae&&Q()}}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(U,W,G){var X=U(1);function Z(){}var Q={},ee=["REJECTED"],ie=["FULFILLED"],te=["PENDING"];W.exports=ne;function ne(he){if(typeof he!="function")throw new TypeError("resolver must be a function");this.state=te,this.queue=[],this.outcome=void 0,he!==Z&&le(this,he)}ne.prototype.catch=function(he){return this.then(null,he)},ne.prototype.then=function(he,me){if(typeof he!="function"&&this.state===ie||typeof me!="function"&&this.state===ee)return this;var _e=new this.constructor(Z);if(this.state!==te){var be=this.state===ie?he:me;oe(_e,be,this.outcome)}else this.queue.push(new ae(_e,he,me));return _e};function ae(he,me,_e){this.promise=he,typeof me=="function"&&(this.onFulfilled=me,this.callFulfilled=this.otherCallFulfilled),typeof _e=="function"&&(this.onRejected=_e,this.callRejected=this.otherCallRejected)}ae.prototype.callFulfilled=function(he){Q.resolve(this.promise,he)},ae.prototype.otherCallFulfilled=function(he){oe(this.promise,this.onFulfilled,he)},ae.prototype.callRejected=function(he){Q.reject(this.promise,he)},ae.prototype.otherCallRejected=function(he){oe(this.promise,this.onRejected,he)};function oe(he,me,_e){X(function(){var be;try{be=me(_e)}catch(pe){return Q.reject(he,pe)}be===he?Q.reject(he,new TypeError("Cannot resolve promise with itself")):Q.resolve(he,be)})}Q.resolve=function(he,me){var _e=ce(se,me);if(_e.status==="error")return Q.reject(he,_e.value);var be=_e.value;if(be)le(he,be);else{he.state=ie,he.outcome=me;for(var pe=-1,fe=he.queue.length;++pe<fe;)he.queue[pe].callFulfilled(me)}return he},Q.reject=function(he,me){he.state=ee,he.outcome=me;for(var _e=-1,be=he.queue.length;++_e<be;)he.queue[_e].callRejected(me);return he};function se(he){var me=he&&he.then;if(he&&(typeof he=="object"||typeof he=="function")&&typeof me=="function")return function(){me.apply(he,arguments)}}function le(he,me){var _e=!1;function be($e){_e||(_e=!0,Q.reject(he,$e))}function pe($e){_e||(_e=!0,Q.resolve(he,$e))}function fe(){me(pe,be)}var ye=ce(fe);ye.status==="error"&&be(ye.value)}function ce(he,me){var _e={};try{_e.value=he(me),_e.status="success"}catch(be){_e.status="error",_e.value=be}return _e}ne.resolve=ue;function ue(he){return he instanceof this?he:Q.resolve(new this(Z),he)}ne.reject=de;function de(he){var me=new this(Z);return Q.reject(me,he)}ne.all=ve;function ve(he){var me=this;if(Object.prototype.toString.call(he)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _e=he.length,be=!1;if(!_e)return this.resolve([]);for(var pe=new Array(_e),fe=0,ye=-1,$e=new this(Z);++ye<_e;)we(he[ye],ye);return $e;function we(Se,Te){me.resolve(Se).then(xe,function(ke){be||(be=!0,Q.reject($e,ke))});function xe(ke){pe[Te]=ke,++fe===_e&&!be&&(be=!0,Q.resolve($e,pe))}}}ne.race=ge;function ge(he){var me=this;if(Object.prototype.toString.call(he)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _e=he.length,be=!1;if(!_e)return this.resolve([]);for(var pe=-1,fe=new this(Z);++pe<_e;)ye(he[pe]);return fe;function ye($e){me.resolve($e).then(function(we){be||(be=!0,Q.resolve(fe,we))},function(we){be||(be=!0,Q.reject(fe,we))})}}},{1:1}],3:[function(U,W,G){(function(X){typeof X.Promise!="function"&&(X.Promise=U(2))}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(U,W,G){var X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(je){return typeof je}:function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je};function Z(je,dt){if(!(je instanceof dt))throw new TypeError("Cannot call a class as a function")}function Q(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var ee=Q();function ie(){try{if(!ee||!ee.open)return!1;var je=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),dt=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!je||dt)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function te(je,dt){je=je||[],dt=dt||{};try{return new Blob(je,dt)}catch(bt){if(bt.name!=="TypeError")throw bt;for(var Ue=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,yt=new Ue,$t=0;$t<je.length;$t+=1)yt.append(je[$t]);return yt.getBlob(dt.type)}}typeof Promise>"u"&&U(3);var ne=Promise;function ae(je,dt){dt&&je.then(function(Ue){dt(null,Ue)},function(Ue){dt(Ue)})}function oe(je,dt,Ue){typeof dt=="function"&&je.then(dt),typeof Ue=="function"&&je.catch(Ue)}function se(je){return typeof je!="string"&&(console.warn(je+" used as a key, but it is not a string."),je=String(je)),je}function le(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var ce="local-forage-detect-blob-support",ue=void 0,de={},ve=Object.prototype.toString,ge="readonly",he="readwrite";function me(je){for(var dt=je.length,Ue=new ArrayBuffer(dt),yt=new Uint8Array(Ue),$t=0;$t<dt;$t++)yt[$t]=je.charCodeAt($t);return Ue}function _e(je){return new ne(function(dt){var Ue=je.transaction(ce,he),yt=te([""]);Ue.objectStore(ce).put(yt,"key"),Ue.onabort=function($t){$t.preventDefault(),$t.stopPropagation(),dt(!1)},Ue.oncomplete=function(){var $t=navigator.userAgent.match(/Chrome\/(\d+)/),bt=navigator.userAgent.match(/Edge\//);dt(bt||!$t||parseInt($t[1],10)>=43)}}).catch(function(){return!1})}function be(je){return typeof ue=="boolean"?ne.resolve(ue):_e(je).then(function(dt){return ue=dt,ue})}function pe(je){var dt=de[je.name],Ue={};Ue.promise=new ne(function(yt,$t){Ue.resolve=yt,Ue.reject=$t}),dt.deferredOperations.push(Ue),dt.dbReady?dt.dbReady=dt.dbReady.then(function(){return Ue.promise}):dt.dbReady=Ue.promise}function fe(je){var dt=de[je.name],Ue=dt.deferredOperations.pop();if(Ue)return Ue.resolve(),Ue.promise}function ye(je,dt){var Ue=de[je.name],yt=Ue.deferredOperations.pop();if(yt)return yt.reject(dt),yt.promise}function $e(je,dt){return new ne(function(Ue,yt){if(de[je.name]=de[je.name]||Be(),je.db)if(dt)pe(je),je.db.close();else return Ue(je.db);var $t=[je.name];dt&&$t.push(je.version);var bt=ee.open.apply(ee,$t);dt&&(bt.onupgradeneeded=function(Et){var Nt=bt.result;try{Nt.createObjectStore(je.storeName),Et.oldVersion<=1&&Nt.createObjectStore(ce)}catch(Ot){if(Ot.name==="ConstraintError")console.warn('The database "'+je.name+'" has been upgraded from version '+Et.oldVersion+" to version "+Et.newVersion+', but the storage "'+je.storeName+'" already exists.');else throw Ot}}),bt.onerror=function(Et){Et.preventDefault(),yt(bt.error)},bt.onsuccess=function(){var Et=bt.result;Et.onversionchange=function(Nt){Nt.target.close()},Ue(Et),fe(je)}})}function we(je){return $e(je,!1)}function Se(je){return $e(je,!0)}function Te(je,dt){if(!je.db)return!0;var Ue=!je.db.objectStoreNames.contains(je.storeName),yt=je.version<je.db.version,$t=je.version>je.db.version;if(yt&&(je.version!==dt&&console.warn('The database "'+je.name+`" can't be downgraded from version `+je.db.version+" to version "+je.version+"."),je.version=je.db.version),$t||Ue){if(Ue){var bt=je.db.version+1;bt>je.version&&(je.version=bt)}return!0}return!1}function xe(je){return new ne(function(dt,Ue){var yt=new FileReader;yt.onerror=Ue,yt.onloadend=function($t){var bt=btoa($t.target.result||"");dt({__local_forage_encoded_blob:!0,data:bt,type:je.type})},yt.readAsBinaryString(je)})}function ke(je){var dt=me(atob(je.data));return te([dt],{type:je.type})}function Ie(je){return je&&je.__local_forage_encoded_blob}function Ae(je){var dt=this,Ue=dt._initReady().then(function(){var yt=de[dt._dbInfo.name];if(yt&&yt.dbReady)return yt.dbReady});return oe(Ue,je,je),Ue}function Me(je){pe(je);for(var dt=de[je.name],Ue=dt.forages,yt=0;yt<Ue.length;yt++){var $t=Ue[yt];$t._dbInfo.db&&($t._dbInfo.db.close(),$t._dbInfo.db=null)}return je.db=null,we(je).then(function(bt){return je.db=bt,Te(je)?Se(je):bt}).then(function(bt){je.db=dt.db=bt;for(var Et=0;Et<Ue.length;Et++)Ue[Et]._dbInfo.db=bt}).catch(function(bt){throw ye(je,bt),bt})}function Fe(je,dt,Ue,yt){yt===void 0&&(yt=1);try{var $t=je.db.transaction(je.storeName,dt);Ue(null,$t)}catch(bt){if(yt>0&&(!je.db||bt.name==="InvalidStateError"||bt.name==="NotFoundError"))return ne.resolve().then(function(){if(!je.db||bt.name==="NotFoundError"&&!je.db.objectStoreNames.contains(je.storeName)&&je.version<=je.db.version)return je.db&&(je.version=je.db.version+1),Se(je)}).then(function(){return Me(je).then(function(){Fe(je,dt,Ue,yt-1)})}).catch(Ue);Ue(bt)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ne(je){var dt=this,Ue={db:null};if(je)for(var yt in je)Ue[yt]=je[yt];var $t=de[Ue.name];$t||($t=Be(),de[Ue.name]=$t),$t.forages.push(dt),dt._initReady||(dt._initReady=dt.ready,dt.ready=Ae);var bt=[];function Et(){return ne.resolve()}for(var Nt=0;Nt<$t.forages.length;Nt++){var Ot=$t.forages[Nt];Ot!==dt&&bt.push(Ot._initReady().catch(Et))}var Lt=$t.forages.slice(0);return ne.all(bt).then(function(){return Ue.db=$t.db,we(Ue)}).then(function(Bt){return Ue.db=Bt,Te(Ue,dt._defaultConfig.version)?Se(Ue):Bt}).then(function(Bt){Ue.db=$t.db=Bt,dt._dbInfo=Ue;for(var Kt=0;Kt<Lt.length;Kt++){var an=Lt[Kt];an!==dt&&(an._dbInfo.db=Ue.db,an._dbInfo.version=Ue.version)}})}function Ve(je,dt){var Ue=this;je=se(je);var yt=new ne(function($t,bt){Ue.ready().then(function(){Fe(Ue._dbInfo,ge,function(Et,Nt){if(Et)return bt(Et);try{var Ot=Nt.objectStore(Ue._dbInfo.storeName),Lt=Ot.get(je);Lt.onsuccess=function(){var Bt=Lt.result;Bt===void 0&&(Bt=null),Ie(Bt)&&(Bt=ke(Bt)),$t(Bt)},Lt.onerror=function(){bt(Lt.error)}}catch(Bt){bt(Bt)}})}).catch(bt)});return ae(yt,dt),yt}function Le(je,dt){var Ue=this,yt=new ne(function($t,bt){Ue.ready().then(function(){Fe(Ue._dbInfo,ge,function(Et,Nt){if(Et)return bt(Et);try{var Ot=Nt.objectStore(Ue._dbInfo.storeName),Lt=Ot.openCursor(),Bt=1;Lt.onsuccess=function(){var Kt=Lt.result;if(Kt){var an=Kt.value;Ie(an)&&(an=ke(an));var fn=je(an,Kt.key,Bt++);fn!==void 0?$t(fn):Kt.continue()}else $t()},Lt.onerror=function(){bt(Lt.error)}}catch(Kt){bt(Kt)}})}).catch(bt)});return ae(yt,dt),yt}function De(je,dt,Ue){var yt=this;je=se(je);var $t=new ne(function(bt,Et){var Nt;yt.ready().then(function(){return Nt=yt._dbInfo,ve.call(dt)==="[object Blob]"?be(Nt.db).then(function(Ot){return Ot?dt:xe(dt)}):dt}).then(function(Ot){Fe(yt._dbInfo,he,function(Lt,Bt){if(Lt)return Et(Lt);try{var Kt=Bt.objectStore(yt._dbInfo.storeName);Ot===null&&(Ot=void 0);var an=Kt.put(Ot,je);Bt.oncomplete=function(){Ot===void 0&&(Ot=null),bt(Ot)},Bt.onabort=Bt.onerror=function(){var fn=an.error?an.error:an.transaction.error;Et(fn)}}catch(fn){Et(fn)}})}).catch(Et)});return ae($t,Ue),$t}function Je(je,dt){var Ue=this;je=se(je);var yt=new ne(function($t,bt){Ue.ready().then(function(){Fe(Ue._dbInfo,he,function(Et,Nt){if(Et)return bt(Et);try{var Ot=Nt.objectStore(Ue._dbInfo.storeName),Lt=Ot.delete(je);Nt.oncomplete=function(){$t()},Nt.onerror=function(){bt(Lt.error)},Nt.onabort=function(){var Bt=Lt.error?Lt.error:Lt.transaction.error;bt(Bt)}}catch(Bt){bt(Bt)}})}).catch(bt)});return ae(yt,dt),yt}function ze(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){Fe(dt._dbInfo,he,function(bt,Et){if(bt)return $t(bt);try{var Nt=Et.objectStore(dt._dbInfo.storeName),Ot=Nt.clear();Et.oncomplete=function(){yt()},Et.onabort=Et.onerror=function(){var Lt=Ot.error?Ot.error:Ot.transaction.error;$t(Lt)}}catch(Lt){$t(Lt)}})}).catch($t)});return ae(Ue,je),Ue}function Ge(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){Fe(dt._dbInfo,ge,function(bt,Et){if(bt)return $t(bt);try{var Nt=Et.objectStore(dt._dbInfo.storeName),Ot=Nt.count();Ot.onsuccess=function(){yt(Ot.result)},Ot.onerror=function(){$t(Ot.error)}}catch(Lt){$t(Lt)}})}).catch($t)});return ae(Ue,je),Ue}function qe(je,dt){var Ue=this,yt=new ne(function($t,bt){if(je<0){$t(null);return}Ue.ready().then(function(){Fe(Ue._dbInfo,ge,function(Et,Nt){if(Et)return bt(Et);try{var Ot=Nt.objectStore(Ue._dbInfo.storeName),Lt=!1,Bt=Ot.openKeyCursor();Bt.onsuccess=function(){var Kt=Bt.result;if(!Kt){$t(null);return}je===0||Lt?$t(Kt.key):(Lt=!0,Kt.advance(je))},Bt.onerror=function(){bt(Bt.error)}}catch(Kt){bt(Kt)}})}).catch(bt)});return ae(yt,dt),yt}function Ke(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){Fe(dt._dbInfo,ge,function(bt,Et){if(bt)return $t(bt);try{var Nt=Et.objectStore(dt._dbInfo.storeName),Ot=Nt.openKeyCursor(),Lt=[];Ot.onsuccess=function(){var Bt=Ot.result;if(!Bt){yt(Lt);return}Lt.push(Bt.key),Bt.continue()},Ot.onerror=function(){$t(Ot.error)}}catch(Bt){$t(Bt)}})}).catch($t)});return ae(Ue,je),Ue}function Ee(je,dt){dt=le.apply(this,arguments);var Ue=this.config();je=typeof je!="function"&&je||{},je.name||(je.name=je.name||Ue.name,je.storeName=je.storeName||Ue.storeName);var yt=this,$t;if(!je.name)$t=ne.reject("Invalid arguments");else{var bt=je.name===Ue.name&&yt._dbInfo.db,Et=bt?ne.resolve(yt._dbInfo.db):we(je).then(function(Nt){var Ot=de[je.name],Lt=Ot.forages;Ot.db=Nt;for(var Bt=0;Bt<Lt.length;Bt++)Lt[Bt]._dbInfo.db=Nt;return Nt});je.storeName?$t=Et.then(function(Nt){if(!!Nt.objectStoreNames.contains(je.storeName)){var Ot=Nt.version+1;pe(je);var Lt=de[je.name],Bt=Lt.forages;Nt.close();for(var Kt=0;Kt<Bt.length;Kt++){var an=Bt[Kt];an._dbInfo.db=null,an._dbInfo.version=Ot}var fn=new ne(function(nn,pn){var cn=ee.open(je.name,Ot);cn.onerror=function(yn){var _n=cn.result;_n.close(),pn(yn)},cn.onupgradeneeded=function(){var yn=cn.result;yn.deleteObjectStore(je.storeName)},cn.onsuccess=function(){var yn=cn.result;yn.close(),nn(yn)}});return fn.then(function(nn){Lt.db=nn;for(var pn=0;pn<Bt.length;pn++){var cn=Bt[pn];cn._dbInfo.db=nn,fe(cn._dbInfo)}}).catch(function(nn){throw(ye(je,nn)||ne.resolve()).catch(function(){}),nn})}}):$t=Et.then(function(Nt){pe(je);var Ot=de[je.name],Lt=Ot.forages;Nt.close();for(var Bt=0;Bt<Lt.length;Bt++){var Kt=Lt[Bt];Kt._dbInfo.db=null}var an=new ne(function(fn,nn){var pn=ee.deleteDatabase(je.name);pn.onerror=function(){var cn=pn.result;cn&&cn.close(),nn(pn.error)},pn.onblocked=function(){console.warn('dropInstance blocked for database "'+je.name+'" until all open connections are closed')},pn.onsuccess=function(){var cn=pn.result;cn&&cn.close(),fn(cn)}});return an.then(function(fn){Ot.db=fn;for(var nn=0;nn<Lt.length;nn++){var pn=Lt[nn];fe(pn._dbInfo)}}).catch(function(fn){throw(ye(je,fn)||ne.resolve()).catch(function(){}),fn})})}return ae($t,dt),$t}var Ce={_driver:"asyncStorage",_initStorage:Ne,_support:ie(),iterate:Le,getItem:Ve,setItem:De,removeItem:Je,clear:ze,length:Ge,key:qe,keys:Ke,dropInstance:Ee};function Pe(){return typeof openDatabase=="function"}var Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze="~~local_forage_type~",Oe=/^~~local_forage_type~([^~]+)~/,Qe="__lfsc__:",Xe=Qe.length,et="arbf",We="blob",He="si08",Ye="ui08",nt="uic8",tt="si16",at="si32",St="ur16",st="ui32",it="fl32",pt="fl64",wt=Xe+et.length,xt=Object.prototype.toString;function mt(je){var dt=je.length*.75,Ue=je.length,yt,$t=0,bt,Et,Nt,Ot;je[je.length-1]==="="&&(dt--,je[je.length-2]==="="&&dt--);var Lt=new ArrayBuffer(dt),Bt=new Uint8Array(Lt);for(yt=0;yt<Ue;yt+=4)bt=Re.indexOf(je[yt]),Et=Re.indexOf(je[yt+1]),Nt=Re.indexOf(je[yt+2]),Ot=Re.indexOf(je[yt+3]),Bt[$t++]=bt<<2|Et>>4,Bt[$t++]=(Et&15)<<4|Nt>>2,Bt[$t++]=(Nt&3)<<6|Ot&63;return Lt}function gt(je){var dt=new Uint8Array(je),Ue="",yt;for(yt=0;yt<dt.length;yt+=3)Ue+=Re[dt[yt]>>2],Ue+=Re[(dt[yt]&3)<<4|dt[yt+1]>>4],Ue+=Re[(dt[yt+1]&15)<<2|dt[yt+2]>>6],Ue+=Re[dt[yt+2]&63];return dt.length%3===2?Ue=Ue.substring(0,Ue.length-1)+"=":dt.length%3===1&&(Ue=Ue.substring(0,Ue.length-2)+"=="),Ue}function lt(je,dt){var Ue="";if(je&&(Ue=xt.call(je)),je&&(Ue==="[object ArrayBuffer]"||je.buffer&&xt.call(je.buffer)==="[object ArrayBuffer]")){var yt,$t=Qe;je instanceof ArrayBuffer?(yt=je,$t+=et):(yt=je.buffer,Ue==="[object Int8Array]"?$t+=He:Ue==="[object Uint8Array]"?$t+=Ye:Ue==="[object Uint8ClampedArray]"?$t+=nt:Ue==="[object Int16Array]"?$t+=tt:Ue==="[object Uint16Array]"?$t+=St:Ue==="[object Int32Array]"?$t+=at:Ue==="[object Uint32Array]"?$t+=st:Ue==="[object Float32Array]"?$t+=it:Ue==="[object Float64Array]"?$t+=pt:dt(new Error("Failed to get type for BinaryArray"))),dt($t+gt(yt))}else if(Ue==="[object Blob]"){var bt=new FileReader;bt.onload=function(){var Et=Ze+je.type+"~"+gt(this.result);dt(Qe+We+Et)},bt.readAsArrayBuffer(je)}else try{dt(JSON.stringify(je))}catch(Et){console.error("Couldn't convert value into a JSON string: ",je),dt(null,Et)}}function ct(je){if(je.substring(0,Xe)!==Qe)return JSON.parse(je);var dt=je.substring(wt),Ue=je.substring(Xe,wt),yt;if(Ue===We&&Oe.test(dt)){var $t=dt.match(Oe);yt=$t[1],dt=dt.substring($t[0].length)}var bt=mt(dt);switch(Ue){case et:return bt;case We:return te([bt],{type:yt});case He:return new Int8Array(bt);case Ye:return new Uint8Array(bt);case nt:return new Uint8ClampedArray(bt);case tt:return new Int16Array(bt);case St:return new Uint16Array(bt);case at:return new Int32Array(bt);case st:return new Uint32Array(bt);case it:return new Float32Array(bt);case pt:return new Float64Array(bt);default:throw new Error("Unkown type: "+Ue)}}var vt={serialize:lt,deserialize:ct,stringToBuffer:mt,bufferToString:gt};function _t(je,dt,Ue,yt){je.executeSql("CREATE TABLE IF NOT EXISTS "+dt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Ue,yt)}function rt(je){var dt=this,Ue={db:null};if(je)for(var yt in je)Ue[yt]=typeof je[yt]!="string"?je[yt].toString():je[yt];var $t=new ne(function(bt,Et){try{Ue.db=openDatabase(Ue.name,String(Ue.version),Ue.description,Ue.size)}catch(Nt){return Et(Nt)}Ue.db.transaction(function(Nt){_t(Nt,Ue,function(){dt._dbInfo=Ue,bt()},function(Ot,Lt){Et(Lt)})},Et)});return Ue.serializer=vt,$t}function ut(je,dt,Ue,yt,$t,bt){je.executeSql(Ue,yt,$t,function(Et,Nt){Nt.code===Nt.SYNTAX_ERR?Et.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[dt.storeName],function(Ot,Lt){Lt.rows.length?bt(Ot,Nt):_t(Ot,dt,function(){Ot.executeSql(Ue,yt,$t,bt)},bt)},bt):bt(Et,Nt)},bt)}function ot(je,dt){var Ue=this;je=se(je);var yt=new ne(function($t,bt){Ue.ready().then(function(){var Et=Ue._dbInfo;Et.db.transaction(function(Nt){ut(Nt,Et,"SELECT * FROM "+Et.storeName+" WHERE key = ? LIMIT 1",[je],function(Ot,Lt){var Bt=Lt.rows.length?Lt.rows.item(0).value:null;Bt&&(Bt=Et.serializer.deserialize(Bt)),$t(Bt)},function(Ot,Lt){bt(Lt)})})}).catch(bt)});return ae(yt,dt),yt}function Tt(je,dt){var Ue=this,yt=new ne(function($t,bt){Ue.ready().then(function(){var Et=Ue._dbInfo;Et.db.transaction(function(Nt){ut(Nt,Et,"SELECT * FROM "+Et.storeName,[],function(Ot,Lt){for(var Bt=Lt.rows,Kt=Bt.length,an=0;an<Kt;an++){var fn=Bt.item(an),nn=fn.value;if(nn&&(nn=Et.serializer.deserialize(nn)),nn=je(nn,fn.key,an+1),nn!==void 0){$t(nn);return}}$t()},function(Ot,Lt){bt(Lt)})})}).catch(bt)});return ae(yt,dt),yt}function ft(je,dt,Ue,yt){var $t=this;je=se(je);var bt=new ne(function(Et,Nt){$t.ready().then(function(){dt===void 0&&(dt=null);var Ot=dt,Lt=$t._dbInfo;Lt.serializer.serialize(dt,function(Bt,Kt){Kt?Nt(Kt):Lt.db.transaction(function(an){ut(an,Lt,"INSERT OR REPLACE INTO "+Lt.storeName+" (key, value) VALUES (?, ?)",[je,Bt],function(){Et(Ot)},function(fn,nn){Nt(nn)})},function(an){if(an.code===an.QUOTA_ERR){if(yt>0){Et(ft.apply($t,[je,Ot,Ue,yt-1]));return}Nt(an)}})})}).catch(Nt)});return ae(bt,Ue),bt}function Ct(je,dt,Ue){return ft.apply(this,[je,dt,Ue,1])}function At(je,dt){var Ue=this;je=se(je);var yt=new ne(function($t,bt){Ue.ready().then(function(){var Et=Ue._dbInfo;Et.db.transaction(function(Nt){ut(Nt,Et,"DELETE FROM "+Et.storeName+" WHERE key = ?",[je],function(){$t()},function(Ot,Lt){bt(Lt)})})}).catch(bt)});return ae(yt,dt),yt}function Rt(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){var bt=dt._dbInfo;bt.db.transaction(function(Et){ut(Et,bt,"DELETE FROM "+bt.storeName,[],function(){yt()},function(Nt,Ot){$t(Ot)})})}).catch($t)});return ae(Ue,je),Ue}function It(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){var bt=dt._dbInfo;bt.db.transaction(function(Et){ut(Et,bt,"SELECT COUNT(key) as c FROM "+bt.storeName,[],function(Nt,Ot){var Lt=Ot.rows.item(0).c;yt(Lt)},function(Nt,Ot){$t(Ot)})})}).catch($t)});return ae(Ue,je),Ue}function Ft(je,dt){var Ue=this,yt=new ne(function($t,bt){Ue.ready().then(function(){var Et=Ue._dbInfo;Et.db.transaction(function(Nt){ut(Nt,Et,"SELECT key FROM "+Et.storeName+" WHERE id = ? LIMIT 1",[je+1],function(Ot,Lt){var Bt=Lt.rows.length?Lt.rows.item(0).key:null;$t(Bt)},function(Ot,Lt){bt(Lt)})})}).catch(bt)});return ae(yt,dt),yt}function Pt(je){var dt=this,Ue=new ne(function(yt,$t){dt.ready().then(function(){var bt=dt._dbInfo;bt.db.transaction(function(Et){ut(Et,bt,"SELECT key FROM "+bt.storeName,[],function(Nt,Ot){for(var Lt=[],Bt=0;Bt<Ot.rows.length;Bt++)Lt.push(Ot.rows.item(Bt).key);yt(Lt)},function(Nt,Ot){$t(Ot)})})}).catch($t)});return ae(Ue,je),Ue}function Ht(je){return new ne(function(dt,Ue){je.transaction(function(yt){yt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($t,bt){for(var Et=[],Nt=0;Nt<bt.rows.length;Nt++)Et.push(bt.rows.item(Nt).name);dt({db:je,storeNames:Et})},function($t,bt){Ue(bt)})},function(yt){Ue(yt)})})}function Dt(je,dt){dt=le.apply(this,arguments);var Ue=this.config();je=typeof je!="function"&&je||{},je.name||(je.name=je.name||Ue.name,je.storeName=je.storeName||Ue.storeName);var yt=this,$t;return je.name?$t=new ne(function(bt){var Et;je.name===Ue.name?Et=yt._dbInfo.db:Et=openDatabase(je.name,"","",0),je.storeName?bt({db:Et,storeNames:[je.storeName]}):bt(Ht(Et))}).then(function(bt){return new ne(function(Et,Nt){bt.db.transaction(function(Ot){function Lt(fn){return new ne(function(nn,pn){Ot.executeSql("DROP TABLE IF EXISTS "+fn,[],function(){nn()},function(cn,yn){pn(yn)})})}for(var Bt=[],Kt=0,an=bt.storeNames.length;Kt<an;Kt++)Bt.push(Lt(bt.storeNames[Kt]));ne.all(Bt).then(function(){Et()}).catch(function(fn){Nt(fn)})},function(Ot){Nt(Ot)})})}):$t=ne.reject("Invalid arguments"),ae($t,dt),$t}var jt={_driver:"webSQLStorage",_initStorage:rt,_support:Pe(),iterate:Tt,getItem:ot,setItem:Ct,removeItem:At,clear:Rt,length:It,key:Ft,keys:Pt,dropInstance:Dt};function on(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function un(je,dt){var Ue=je.name+"/";return je.storeName!==dt.storeName&&(Ue+=je.storeName+"/"),Ue}function Yt(){var je="_localforage_support_test";try{return localStorage.setItem(je,!0),localStorage.removeItem(je),!1}catch{return!0}}function Wt(){return!Yt()||localStorage.length>0}function Qt(je){var dt=this,Ue={};if(je)for(var yt in je)Ue[yt]=je[yt];return Ue.keyPrefix=un(je,dt._defaultConfig),Wt()?(dt._dbInfo=Ue,Ue.serializer=vt,ne.resolve()):ne.reject()}function Zt(je){var dt=this,Ue=dt.ready().then(function(){for(var yt=dt._dbInfo.keyPrefix,$t=localStorage.length-1;$t>=0;$t--){var bt=localStorage.key($t);bt.indexOf(yt)===0&&localStorage.removeItem(bt)}});return ae(Ue,je),Ue}function Xt(je,dt){var Ue=this;je=se(je);var yt=Ue.ready().then(function(){var $t=Ue._dbInfo,bt=localStorage.getItem($t.keyPrefix+je);return bt&&(bt=$t.serializer.deserialize(bt)),bt});return ae(yt,dt),yt}function Jt(je,dt){var Ue=this,yt=Ue.ready().then(function(){for(var $t=Ue._dbInfo,bt=$t.keyPrefix,Et=bt.length,Nt=localStorage.length,Ot=1,Lt=0;Lt<Nt;Lt++){var Bt=localStorage.key(Lt);if(Bt.indexOf(bt)===0){var Kt=localStorage.getItem(Bt);if(Kt&&(Kt=$t.serializer.deserialize(Kt)),Kt=je(Kt,Bt.substring(Et),Ot++),Kt!==void 0)return Kt}}});return ae(yt,dt),yt}function sn(je,dt){var Ue=this,yt=Ue.ready().then(function(){var $t=Ue._dbInfo,bt;try{bt=localStorage.key(je)}catch{bt=null}return bt&&(bt=bt.substring($t.keyPrefix.length)),bt});return ae(yt,dt),yt}function en(je){var dt=this,Ue=dt.ready().then(function(){for(var yt=dt._dbInfo,$t=localStorage.length,bt=[],Et=0;Et<$t;Et++){var Nt=localStorage.key(Et);Nt.indexOf(yt.keyPrefix)===0&&bt.push(Nt.substring(yt.keyPrefix.length))}return bt});return ae(Ue,je),Ue}function dn(je){var dt=this,Ue=dt.keys().then(function(yt){return yt.length});return ae(Ue,je),Ue}function Vt(je,dt){var Ue=this;je=se(je);var yt=Ue.ready().then(function(){var $t=Ue._dbInfo;localStorage.removeItem($t.keyPrefix+je)});return ae(yt,dt),yt}function ht(je,dt,Ue){var yt=this;je=se(je);var $t=yt.ready().then(function(){dt===void 0&&(dt=null);var bt=dt;return new ne(function(Et,Nt){var Ot=yt._dbInfo;Ot.serializer.serialize(dt,function(Lt,Bt){if(Bt)Nt(Bt);else try{localStorage.setItem(Ot.keyPrefix+je,Lt),Et(bt)}catch(Kt){(Kt.name==="QuotaExceededError"||Kt.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Nt(Kt),Nt(Kt)}})})});return ae($t,Ue),$t}function kt(je,dt){if(dt=le.apply(this,arguments),je=typeof je!="function"&&je||{},!je.name){var Ue=this.config();je.name=je.name||Ue.name,je.storeName=je.storeName||Ue.storeName}var yt=this,$t;return je.name?$t=new ne(function(bt){je.storeName?bt(un(je,yt._defaultConfig)):bt(je.name+"/")}).then(function(bt){for(var Et=localStorage.length-1;Et>=0;Et--){var Nt=localStorage.key(Et);Nt.indexOf(bt)===0&&localStorage.removeItem(Nt)}}):$t=ne.reject("Invalid arguments"),ae($t,dt),$t}var Mt={_driver:"localStorageWrapper",_initStorage:Qt,_support:on(),iterate:Jt,getItem:Xt,setItem:ht,removeItem:Vt,clear:Zt,length:dn,key:sn,keys:en,dropInstance:kt},zt=function(dt,Ue){return dt===Ue||typeof dt=="number"&&typeof Ue=="number"&&isNaN(dt)&&isNaN(Ue)},rn=function(dt,Ue){for(var yt=dt.length,$t=0;$t<yt;){if(zt(dt[$t],Ue))return!0;$t++}return!1},ln=Array.isArray||function(je){return Object.prototype.toString.call(je)==="[object Array]"},gn={},vn={},hn={INDEXEDDB:Ce,WEBSQL:jt,LOCALSTORAGE:Mt},Cn=[hn.INDEXEDDB._driver,hn.WEBSQL._driver,hn.LOCALSTORAGE._driver],$n=["dropInstance"],bn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat($n),Gt={description:"",driver:Cn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function qt(je,dt){je[dt]=function(){var Ue=arguments;return je.ready().then(function(){return je[dt].apply(je,Ue)})}}function tn(){for(var je=1;je<arguments.length;je++){var dt=arguments[je];if(dt)for(var Ue in dt)dt.hasOwnProperty(Ue)&&(ln(dt[Ue])?arguments[0][Ue]=dt[Ue].slice():arguments[0][Ue]=dt[Ue])}return arguments[0]}var Ut=function(){function je(dt){Z(this,je);for(var Ue in hn)if(hn.hasOwnProperty(Ue)){var yt=hn[Ue],$t=yt._driver;this[Ue]=$t,gn[$t]||this.defineDriver(yt)}this._defaultConfig=tn({},Gt),this._config=tn({},this._defaultConfig,dt),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return je.prototype.config=function(Ue){if((typeof Ue>"u"?"undefined":X(Ue))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var yt in Ue){if(yt==="storeName"&&(Ue[yt]=Ue[yt].replace(/\W/g,"_")),yt==="version"&&typeof Ue[yt]!="number")return new Error("Database version must be a number.");this._config[yt]=Ue[yt]}return"driver"in Ue&&Ue.driver?this.setDriver(this._config.driver):!0}else return typeof Ue=="string"?this._config[Ue]:this._config},je.prototype.defineDriver=function(Ue,yt,$t){var bt=new ne(function(Et,Nt){try{var Ot=Ue._driver,Lt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Ue._driver){Nt(Lt);return}for(var Bt=bn.concat("_initStorage"),Kt=0,an=Bt.length;Kt<an;Kt++){var fn=Bt[Kt],nn=!rn($n,fn);if((nn||Ue[fn])&&typeof Ue[fn]!="function"){Nt(Lt);return}}var pn=function(){for(var _n=function(En){return function(){var xn=new Error("Method "+En+" is not implemented by the current driver"),An=ne.reject(xn);return ae(An,arguments[arguments.length-1]),An}},wn=0,Sn=$n.length;wn<Sn;wn++){var Tn=$n[wn];Ue[Tn]||(Ue[Tn]=_n(Tn))}};pn();var cn=function(_n){gn[Ot]&&console.info("Redefining LocalForage driver: "+Ot),gn[Ot]=Ue,vn[Ot]=_n,Et()};"_support"in Ue?Ue._support&&typeof Ue._support=="function"?Ue._support().then(cn,Nt):cn(!!Ue._support):cn(!0)}catch(yn){Nt(yn)}});return oe(bt,yt,$t),bt},je.prototype.driver=function(){return this._driver||null},je.prototype.getDriver=function(Ue,yt,$t){var bt=gn[Ue]?ne.resolve(gn[Ue]):ne.reject(new Error("Driver not found."));return oe(bt,yt,$t),bt},je.prototype.getSerializer=function(Ue){var yt=ne.resolve(vt);return oe(yt,Ue),yt},je.prototype.ready=function(Ue){var yt=this,$t=yt._driverSet.then(function(){return yt._ready===null&&(yt._ready=yt._initDriver()),yt._ready});return oe($t,Ue,Ue),$t},je.prototype.setDriver=function(Ue,yt,$t){var bt=this;ln(Ue)||(Ue=[Ue]);var Et=this._getSupportedDrivers(Ue);function Nt(){bt._config.driver=bt.driver()}function Ot(Kt){return bt._extend(Kt),Nt(),bt._ready=bt._initStorage(bt._config),bt._ready}function Lt(Kt){return function(){var an=0;function fn(){for(;an<Kt.length;){var nn=Kt[an];return an++,bt._dbInfo=null,bt._ready=null,bt.getDriver(nn).then(Ot).catch(fn)}Nt();var pn=new Error("No available storage method found.");return bt._driverSet=ne.reject(pn),bt._driverSet}return fn()}}var Bt=this._driverSet!==null?this._driverSet.catch(function(){return ne.resolve()}):ne.resolve();return this._driverSet=Bt.then(function(){var Kt=Et[0];return bt._dbInfo=null,bt._ready=null,bt.getDriver(Kt).then(function(an){bt._driver=an._driver,Nt(),bt._wrapLibraryMethodsWithReady(),bt._initDriver=Lt(Et)})}).catch(function(){Nt();var Kt=new Error("No available storage method found.");return bt._driverSet=ne.reject(Kt),bt._driverSet}),oe(this._driverSet,yt,$t),this._driverSet},je.prototype.supports=function(Ue){return!!vn[Ue]},je.prototype._extend=function(Ue){tn(this,Ue)},je.prototype._getSupportedDrivers=function(Ue){for(var yt=[],$t=0,bt=Ue.length;$t<bt;$t++){var Et=Ue[$t];this.supports(Et)&&yt.push(Et)}return yt},je.prototype._wrapLibraryMethodsWithReady=function(){for(var Ue=0,yt=bn.length;Ue<yt;Ue++)qt(this,bn[Ue])},je.prototype.createInstance=function(Ue){return new je(Ue)},je}(),mn=new Ut;W.exports=mn},{3:3}]},{},[4])(4)})})(localforage);const localForage=localforage.exports,localStore={getItem(C){return new Promise((H,U)=>{localForage.getItem(C).then(W=>{H(W)}).catch(W=>{U(W)})})},setItem(C,H){return new Promise((U,W)=>{H=JSON.parse(JSON.stringify(H)),localForage.setItem(C,H).then(G=>{U(G)}).catch(G=>{W(G)})})},removeItem(C){return new Promise((H,U)=>{localForage.removeItem(C).then(()=>{H()}).catch(W=>{U(W)})})},clear(){return new Promise((C,H)=>{localForage.clear().then(()=>{C()}).catch(U=>{H(U)})})},length(){return new Promise((C,H)=>{localForage.length().then(U=>{C(U)}).catch(U=>{H(U)})})},key(C){return new Promise((H,U)=>{localForage.key(C).then(W=>{H(W)}).catch(W=>{U(W)})})},keys(){return new Promise((C,H)=>{localForage.keys().then(U=>{C(U)}).catch(U=>{H(U)})})},iterate(){return new Promise((C,H)=>{localForage.iterate((U,W,G)=>{C([U,W,G])}).then(U=>{C(U)}).catch(U=>{H(U)})})},setDriver(C){return new Promise((H,U)=>{H(localForage.setDriver(C))})},config(C){return new Promise((H,U)=>{H(localForage.config(C))})},createInstance(C){return new Promise((H,U)=>{H(localForage.createInstance(C))})}},index_vue_vue_type_style_index_0_scoped_00a32611_lang="",index_vue_vue_type_style_index_1_lang="",_sfc_main$h={name:"GlobalHeader",components:{HeaderSearch:__unplugin_components_0$2,MenuFoldOutlined:MenuFoldOutlined$1,MenuUnfoldOutlined:MenuUnfoldOutlined$1,SettingOutlined:SettingOutlined$1,DeleteOutlined:DeleteOutlined$1,EnvironmentOutlined:EnvironmentOutlined$1},props:{documentTitle:{type:String,default:"Knife4j\u63A5\u53E3\u6587\u6863"},headerClass:{type:String},currentUser:{type:Object},collapsed:{type:Boolean},onCollapse:{type:Function},onNoticeVisibleChange:{type:Function},onNoticeClear:{type:Function},fetchingNotices:{type:Boolean},notices:{type:Array},onMenuClick:{type:Function,default:()=>{}}},setup(C,{emit:H}){const U=useGlobalsStore(),W=useRouter(),{locale:G}=useI18n();function X(){G.value="zh-CN",U.setLang("zh-CN"),localStore.setItem(constants$1.globalI18nCache,"zh-CN")}function Z(){G.value="en-US",U.setLang("en-US"),localStore.setItem(constants$1.globalI18nCache,"en-US")}return{settings:computed(()=>U.settings),changeZh:X,changeEn:Z,handleMenuClick:()=>{},jumpSettings:()=>{W.push({path:"/documentManager/Settings"})},toggle(){C.onCollapse(!C.collapsed)},onSearch(Q){(Q==null||Q==null||Q=="")&&H("searchClear")},onPressEnter(Q){H("searchKey",Q)},onItemClick(Q,ee){},clearLocalCache(){message$1.info("\u6E05\u9664\u672C\u5730\u7F13\u5B58\u6210\u529F")}}},methods:{}},_hoisted_1$c={class:"knife4j-header-title"},_hoisted_2$8={class:"right"},_hoisted_3$8=["innerHTML"],_hoisted_4$7=["innerHTML"],_hoisted_5$6={class:"action account"},_hoisted_6$5=["innerHTML"];function _sfc_render$g(C,H,U,W,G,X){const Z=resolveComponent("menu-unfold-outlined"),Q=resolveComponent("menu-fold-outlined"),ee=__unplugin_components_0$2,ie=resolveComponent("setting-outlined"),te=resolveComponent("router-link"),ne=__unplugin_components_13,ae=resolveComponent("delete-outlined"),oe=__unplugin_components_2$2,se=resolveComponent("environment-outlined"),le=Menu,ce=Dropdown$1,ue=Spin;return openBlock(),createElementBlock("div",{class:normalizeClass(["header knife4j-header-default",U.headerClass])},[U.collapsed?(openBlock(),createBlock(Z,{key:0,class:"trigger",onClick:W.toggle},null,8,["onClick"])):(openBlock(),createBlock(Q,{key:1,class:"trigger",onClick:W.toggle},null,8,["onClick"])),createBaseVNode("span",_hoisted_1$c,toDisplayString$1(U.documentTitle),1),createBaseVNode("div",_hoisted_2$8,[W.settings.enableSearch?(openBlock(),createBlock(ee,{key:0,class:"action search",placeholder:C.$t("searchHolderText"),onSearch:de=>W.onSearch(de),onPressEnter:de=>W.onPressEnter(de)},null,8,["placeholder","onSearch","onPressEnter"])):createCommentVNode("",!0),U.currentUser.name?(openBlock(),createBlock(ce,{key:1},{overlay:withCtx(()=>[createVNode(le,{class:"menu"},{default:withCtx(()=>[W.settings.enableDocumentManage?(openBlock(),createBlock(ne,{key:0},{default:withCtx(()=>[createVNode(te,{to:"/documentManager/Settings"},{default:withCtx(()=>[createVNode(ie),createTextVNode(),createBaseVNode("span",{innerHTML:C.$t("settingText")},null,8,_hoisted_3$8)]),_:1})]),_:1})):createCommentVNode("",!0),createVNode(ne,{onClick:W.clearLocalCache},{default:withCtx(()=>[createVNode(ae),createTextVNode(),createBaseVNode("span",{innerHTML:C.$t("cacheText")},null,8,_hoisted_4$7)]),_:1},8,["onClick"]),createVNode(oe),createVNode(ne,{key:"logout",onClick:W.changeZh},{default:withCtx(()=>[createVNode(se),createTextVNode(" \u7B80\u4F53\u4E2D\u6587 ")]),_:1},8,["onClick"]),createVNode(ne,{key:"triggerError",onClick:W.changeEn},{default:withCtx(()=>[createVNode(se),createTextVNode(" English ")]),_:1},8,["onClick"])]),_:1})]),default:withCtx(()=>[createBaseVNode("span",_hoisted_5$6,[createBaseVNode("span",{class:"name",innerHTML:C.$t("langText")},null,8,_hoisted_6$5)])]),_:1})):(openBlock(),createBlock(ue,{key:2,size:"small",style:{"margin-left":"8px"}}))])],2)}const GlobalHeader=_export_sfc(_sfc_main$h,[["render",_sfc_render$g],["__scopeId","data-v-00a32611"]]),index$f="";function getDefaults(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults$7=getDefaults();function changeDefaults(C){defaults$7=C}const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=C=>escapeReplacements[C];function escape$1(C,H){if(H){if(escapeTest.test(C))return C.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(C))return C.replace(escapeReplaceNoEncode,getEscapeReplacement);return C}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(C){return C.replace(unescapeTest,(H,U)=>(U=U.toLowerCase(),U==="colon"?":":U.charAt(0)==="#"?U.charAt(1)==="x"?String.fromCharCode(parseInt(U.substring(2),16)):String.fromCharCode(+U.substring(1)):""))}const caret$1=/(^|[^\[])\^/g;function edit(C,H){C=typeof C=="string"?C:C.source,H=H||"";const U={replace:(W,G)=>(G=G.source||G,G=G.replace(caret$1,"$1"),C=C.replace(W,G),U),getRegex:()=>new RegExp(C,H)};return U}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(C,H,U){if(C){let W;try{W=decodeURIComponent(unescape$1(U)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(W.indexOf("javascript:")===0||W.indexOf("vbscript:")===0||W.indexOf("data:")===0)return null}H&&!originIndependentUrl.test(U)&&(U=resolveUrl(H,U));try{U=encodeURI(U).replace(/%25/g,"%")}catch{return null}return U}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(C,H){baseUrls[" "+C]||(justDomain.test(C)?baseUrls[" "+C]=C+"/":baseUrls[" "+C]=rtrim(C,"/",!0)),C=baseUrls[" "+C];const U=C.indexOf(":")===-1;return H.substring(0,2)==="//"?U?H:C.replace(protocol,"$1")+H:H.charAt(0)==="/"?U?H:C.replace(domain,"$1")+H:C+H}const noopTest={exec:function(){}};function merge$5(C){let H=1,U,W;for(;H<arguments.length;H++){U=arguments[H];for(W in U)Object.prototype.hasOwnProperty.call(U,W)&&(C[W]=U[W])}return C}function splitCells(C,H){const U=C.replace(/\|/g,(X,Z,Q)=>{let ee=!1,ie=Z;for(;--ie>=0&&Q[ie]==="\\";)ee=!ee;return ee?"|":" |"}),W=U.split(/ \|/);let G=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),W.length>H)W.splice(H);else for(;W.length<H;)W.push("");for(;G<W.length;G++)W[G]=W[G].trim().replace(/\\\|/g,"|");return W}function rtrim(C,H,U){const W=C.length;if(W===0)return"";let G=0;for(;G<W;){const X=C.charAt(W-G-1);if(X===H&&!U)G++;else if(X!==H&&U)G++;else break}return C.slice(0,W-G)}function findClosingBracket(C,H){if(C.indexOf(H[1])===-1)return-1;const U=C.length;let W=0,G=0;for(;G<U;G++)if(C[G]==="\\")G++;else if(C[G]===H[0])W++;else if(C[G]===H[1]&&(W--,W<0))return G;return-1}function checkSanitizeDeprecation(C){C&&C.sanitize&&!C.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(C,H){if(H<1)return"";let U="";for(;H>1;)H&1&&(U+=C),H>>=1,C+=C;return U+C}function outputLink(C,H,U,W){const G=H.href,X=H.title?escape$1(H.title):null,Z=C[1].replace(/\\([\[\]])/g,"$1");if(C[0].charAt(0)!=="!"){W.state.inLink=!0;const Q={type:"link",raw:U,href:G,title:X,text:Z,tokens:W.inlineTokens(Z,[])};return W.state.inLink=!1,Q}return{type:"image",raw:U,href:G,title:X,text:escape$1(Z)}}function indentCodeCompensation(C,H){const U=C.match(/^(\s+)(?:```)/);if(U===null)return H;const W=U[1];return H.split(`
|
||
`).map(G=>{const X=G.match(/^\s+/);if(X===null)return G;const[Z]=X;return Z.length>=W.length?G.slice(W.length):G}).join(`
|
||
`)}class Tokenizer{constructor(H){this.options=H||defaults$7}space(H){const U=this.rules.block.newline.exec(H);if(U&&U[0].length>0)return{type:"space",raw:U[0]}}code(H){const U=this.rules.block.code.exec(H);if(U){const W=U[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:U[0],codeBlockStyle:"indented",text:this.options.pedantic?W:rtrim(W,`
|
||
`)}}}fences(H){const U=this.rules.block.fences.exec(H);if(U){const W=U[0],G=indentCodeCompensation(W,U[3]||"");return{type:"code",raw:W,lang:U[2]?U[2].trim():U[2],text:G}}}heading(H){const U=this.rules.block.heading.exec(H);if(U){let W=U[2].trim();if(/#$/.test(W)){const X=rtrim(W,"#");(this.options.pedantic||!X||/ $/.test(X))&&(W=X.trim())}const G={type:"heading",raw:U[0],depth:U[1].length,text:W,tokens:[]};return this.lexer.inline(G.text,G.tokens),G}}hr(H){const U=this.rules.block.hr.exec(H);if(U)return{type:"hr",raw:U[0]}}blockquote(H){const U=this.rules.block.blockquote.exec(H);if(U){const W=U[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:U[0],tokens:this.lexer.blockTokens(W,[]),text:W}}}list(H){let U=this.rules.block.list.exec(H);if(U){let W,G,X,Z,Q,ee,ie,te,ne,ae,oe,se,le=U[1].trim();const ce=le.length>1,ue={type:"list",raw:"",ordered:ce,start:ce?+le.slice(0,-1):"",loose:!1,items:[]};le=ce?`\\d{1,9}\\${le.slice(-1)}`:`\\${le}`,this.options.pedantic&&(le=ce?le:"[*+-]");const de=new RegExp(`^( {0,3}${le})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;H&&(se=!1,!(!(U=de.exec(H))||this.rules.block.hr.test(H)));){if(W=U[0],H=H.substring(W.length),te=U[2].split(`
|
||
`,1)[0],ne=H.split(`
|
||
`,1)[0],this.options.pedantic?(Z=2,oe=te.trimLeft()):(Z=U[2].search(/[^ ]/),Z=Z>4?1:Z,oe=te.slice(Z),Z+=U[1].length),ee=!1,!te&&/^ *$/.test(ne)&&(W+=ne+`
|
||
`,H=H.substring(ne.length+1),se=!0),!se){const ge=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),he=new RegExp(`^ {0,${Math.min(3,Z-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:\`\`\`|~~~)`),_e=new RegExp(`^ {0,${Math.min(3,Z-1)}}#`);for(;H&&(ae=H.split(`
|
||
`,1)[0],te=ae,this.options.pedantic&&(te=te.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(me.test(te)||_e.test(te)||ge.test(te)||he.test(H)));){if(te.search(/[^ ]/)>=Z||!te.trim())oe+=`
|
||
`+te.slice(Z);else if(!ee)oe+=`
|
||
`+te;else break;!ee&&!te.trim()&&(ee=!0),W+=ae+`
|
||
`,H=H.substring(ae.length+1)}}ue.loose||(ie?ue.loose=!0:/\n *\n *$/.test(W)&&(ie=!0)),this.options.gfm&&(G=/^\[[ xX]\] /.exec(oe),G&&(X=G[0]!=="[ ] ",oe=oe.replace(/^\[[ xX]\] +/,""))),ue.items.push({type:"list_item",raw:W,task:!!G,checked:X,loose:!1,text:oe}),ue.raw+=W}ue.items[ue.items.length-1].raw=W.trimRight(),ue.items[ue.items.length-1].text=oe.trimRight(),ue.raw=ue.raw.trimRight();const ve=ue.items.length;for(Q=0;Q<ve;Q++){this.lexer.state.top=!1,ue.items[Q].tokens=this.lexer.blockTokens(ue.items[Q].text,[]);const ge=ue.items[Q].tokens.filter(me=>me.type==="space"),he=ge.every(me=>{const _e=me.raw.split("");let be=0;for(const pe of _e)if(pe===`
|
||
`&&(be+=1),be>1)return!0;return!1});!ue.loose&&ge.length&&he&&(ue.loose=!0,ue.items[Q].loose=!0)}return ue}}html(H){const U=this.rules.block.html.exec(H);if(U){const W={type:"html",raw:U[0],pre:!this.options.sanitizer&&(U[1]==="pre"||U[1]==="script"||U[1]==="style"),text:U[0]};return this.options.sanitize&&(W.type="paragraph",W.text=this.options.sanitizer?this.options.sanitizer(U[0]):escape$1(U[0]),W.tokens=[],this.lexer.inline(W.text,W.tokens)),W}}def(H){const U=this.rules.block.def.exec(H);if(U)return U[3]&&(U[3]=U[3].substring(1,U[3].length-1)),{type:"def",tag:U[1].toLowerCase().replace(/\s+/g," "),raw:U[0],href:U[2],title:U[3]}}table(H){const U=this.rules.block.table.exec(H);if(U){const W={type:"table",header:splitCells(U[1]).map(G=>({text:G})),align:U[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:U[3]&&U[3].trim()?U[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(W.header.length===W.align.length){W.raw=U[0];let G=W.align.length,X,Z,Q,ee;for(X=0;X<G;X++)/^ *-+: *$/.test(W.align[X])?W.align[X]="right":/^ *:-+: *$/.test(W.align[X])?W.align[X]="center":/^ *:-+ *$/.test(W.align[X])?W.align[X]="left":W.align[X]=null;for(G=W.rows.length,X=0;X<G;X++)W.rows[X]=splitCells(W.rows[X],W.header.length).map(ie=>({text:ie}));for(G=W.header.length,Z=0;Z<G;Z++)W.header[Z].tokens=[],this.lexer.inline(W.header[Z].text,W.header[Z].tokens);for(G=W.rows.length,Z=0;Z<G;Z++)for(ee=W.rows[Z],Q=0;Q<ee.length;Q++)ee[Q].tokens=[],this.lexer.inline(ee[Q].text,ee[Q].tokens);return W}}}lheading(H){const U=this.rules.block.lheading.exec(H);if(U){const W={type:"heading",raw:U[0],depth:U[2].charAt(0)==="="?1:2,text:U[1],tokens:[]};return this.lexer.inline(W.text,W.tokens),W}}paragraph(H){const U=this.rules.block.paragraph.exec(H);if(U){const W={type:"paragraph",raw:U[0],text:U[1].charAt(U[1].length-1)===`
|
||
`?U[1].slice(0,-1):U[1],tokens:[]};return this.lexer.inline(W.text,W.tokens),W}}text(H){const U=this.rules.block.text.exec(H);if(U){const W={type:"text",raw:U[0],text:U[0],tokens:[]};return this.lexer.inline(W.text,W.tokens),W}}escape(H){const U=this.rules.inline.escape.exec(H);if(U)return{type:"escape",raw:U[0],text:escape$1(U[1])}}tag(H){const U=this.rules.inline.tag.exec(H);if(U)return!this.lexer.state.inLink&&/^<a /i.test(U[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(U[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(U[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(U[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:U[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(U[0]):escape$1(U[0]):U[0]}}link(H){const U=this.rules.inline.link.exec(H);if(U){const W=U[2].trim();if(!this.options.pedantic&&/^</.test(W)){if(!/>$/.test(W))return;const Z=rtrim(W.slice(0,-1),"\\");if((W.length-Z.length)%2===0)return}else{const Z=findClosingBracket(U[2],"()");if(Z>-1){const ee=(U[0].indexOf("!")===0?5:4)+U[1].length+Z;U[2]=U[2].substring(0,Z),U[0]=U[0].substring(0,ee).trim(),U[3]=""}}let G=U[2],X="";if(this.options.pedantic){const Z=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(G);Z&&(G=Z[1],X=Z[3])}else X=U[3]?U[3].slice(1,-1):"";return G=G.trim(),/^</.test(G)&&(this.options.pedantic&&!/>$/.test(W)?G=G.slice(1):G=G.slice(1,-1)),outputLink(U,{href:G&&G.replace(this.rules.inline._escapes,"$1"),title:X&&X.replace(this.rules.inline._escapes,"$1")},U[0],this.lexer)}}reflink(H,U){let W;if((W=this.rules.inline.reflink.exec(H))||(W=this.rules.inline.nolink.exec(H))){let G=(W[2]||W[1]).replace(/\s+/g," ");if(G=U[G.toLowerCase()],!G||!G.href){const X=W[0].charAt(0);return{type:"text",raw:X,text:X}}return outputLink(W,G,W[0],this.lexer)}}emStrong(H,U,W=""){let G=this.rules.inline.emStrong.lDelim.exec(H);if(!G||G[3]&&W.match(/[\p{L}\p{N}]/u))return;const X=G[1]||G[2]||"";if(!X||X&&(W===""||this.rules.inline.punctuation.exec(W))){const Z=G[0].length-1;let Q,ee,ie=Z,te=0;const ne=G[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ne.lastIndex=0,U=U.slice(-1*H.length+Z);(G=ne.exec(U))!=null;){if(Q=G[1]||G[2]||G[3]||G[4]||G[5]||G[6],!Q)continue;if(ee=Q.length,G[3]||G[4]){ie+=ee;continue}else if((G[5]||G[6])&&Z%3&&!((Z+ee)%3)){te+=ee;continue}if(ie-=ee,ie>0)continue;if(ee=Math.min(ee,ee+ie+te),Math.min(Z,ee)%2){const oe=H.slice(1,Z+G.index+ee);return{type:"em",raw:H.slice(0,Z+G.index+ee+1),text:oe,tokens:this.lexer.inlineTokens(oe,[])}}const ae=H.slice(2,Z+G.index+ee-1);return{type:"strong",raw:H.slice(0,Z+G.index+ee+1),text:ae,tokens:this.lexer.inlineTokens(ae,[])}}}}codespan(H){const U=this.rules.inline.code.exec(H);if(U){let W=U[2].replace(/\n/g," ");const G=/[^ ]/.test(W),X=/^ /.test(W)&&/ $/.test(W);return G&&X&&(W=W.substring(1,W.length-1)),W=escape$1(W,!0),{type:"codespan",raw:U[0],text:W}}}br(H){const U=this.rules.inline.br.exec(H);if(U)return{type:"br",raw:U[0]}}del(H){const U=this.rules.inline.del.exec(H);if(U)return{type:"del",raw:U[0],text:U[2],tokens:this.lexer.inlineTokens(U[2],[])}}autolink(H,U){const W=this.rules.inline.autolink.exec(H);if(W){let G,X;return W[2]==="@"?(G=escape$1(this.options.mangle?U(W[1]):W[1]),X="mailto:"+G):(G=escape$1(W[1]),X=G),{type:"link",raw:W[0],text:G,href:X,tokens:[{type:"text",raw:G,text:G}]}}}url(H,U){let W;if(W=this.rules.inline.url.exec(H)){let G,X;if(W[2]==="@")G=escape$1(this.options.mangle?U(W[0]):W[0]),X="mailto:"+G;else{let Z;do Z=W[0],W[0]=this.rules.inline._backpedal.exec(W[0])[0];while(Z!==W[0]);G=escape$1(W[0]),W[1]==="www."?X="http://"+G:X=G}return{type:"link",raw:W[0],text:G,href:X,tokens:[{type:"text",raw:G,text:G}]}}}inlineText(H,U){const W=this.rules.inline.text.exec(H);if(W){let G;return this.lexer.state.inRawBlock?G=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(W[0]):escape$1(W[0]):W[0]:G=escape$1(this.options.smartypants?U(W[0]):W[0]),{type:"text",raw:W[0],text:G}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge$5({},block);block.gfm=merge$5({},block.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic=merge$5({},block.normal,{html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/\\\*|\\_/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._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])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal=merge$5({},inline);inline.pedantic=merge$5({},inline.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge$5({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_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.!#$%&'*+\/=?_`{\|}~-]+@)))/});inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge$5({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function smartypants(C){return C.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function mangle(C){let H="",U,W;const G=C.length;for(U=0;U<G;U++)W=C.charCodeAt(U),Math.random()>.5&&(W="x"+W.toString(16)),H+="&#"+W+";";return H}class Lexer{constructor(H){this.tokens=[],this.tokens.links=Object.create(null),this.options=H||defaults$7,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const U={block:block.normal,inline:inline.normal};this.options.pedantic?(U.block=block.pedantic,U.inline=inline.pedantic):this.options.gfm&&(U.block=block.gfm,this.options.breaks?U.inline=inline.breaks:U.inline=inline.gfm),this.tokenizer.rules=U}static get rules(){return{block,inline}}static lex(H,U){return new Lexer(U).lex(H)}static lexInline(H,U){return new Lexer(U).inlineTokens(H)}lex(H){H=H.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(H,this.tokens);let U;for(;U=this.inlineQueue.shift();)this.inlineTokens(U.src,U.tokens);return this.tokens}blockTokens(H,U=[]){this.options.pedantic?H=H.replace(/\t/g," ").replace(/^ +$/gm,""):H=H.replace(/^( *)(\t+)/gm,(Q,ee,ie)=>ee+" ".repeat(ie.length));let W,G,X,Z;for(;H;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Q=>(W=Q.call({lexer:this},H,U))?(H=H.substring(W.raw.length),U.push(W),!0):!1))){if(W=this.tokenizer.space(H)){H=H.substring(W.raw.length),W.raw.length===1&&U.length>0?U[U.length-1].raw+=`
|
||
`:U.push(W);continue}if(W=this.tokenizer.code(H)){H=H.substring(W.raw.length),G=U[U.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=`
|
||
`+W.raw,G.text+=`
|
||
`+W.text,this.inlineQueue[this.inlineQueue.length-1].src=G.text):U.push(W);continue}if(W=this.tokenizer.fences(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.heading(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.hr(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.blockquote(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.list(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.html(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.def(H)){H=H.substring(W.raw.length),G=U[U.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=`
|
||
`+W.raw,G.text+=`
|
||
`+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=G.text):this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title});continue}if(W=this.tokenizer.table(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.lheading(H)){H=H.substring(W.raw.length),U.push(W);continue}if(X=H,this.options.extensions&&this.options.extensions.startBlock){let Q=1/0;const ee=H.slice(1);let ie;this.options.extensions.startBlock.forEach(function(te){ie=te.call({lexer:this},ee),typeof ie=="number"&&ie>=0&&(Q=Math.min(Q,ie))}),Q<1/0&&Q>=0&&(X=H.substring(0,Q+1))}if(this.state.top&&(W=this.tokenizer.paragraph(X))){G=U[U.length-1],Z&&G.type==="paragraph"?(G.raw+=`
|
||
`+W.raw,G.text+=`
|
||
`+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):U.push(W),Z=X.length!==H.length,H=H.substring(W.raw.length);continue}if(W=this.tokenizer.text(H)){H=H.substring(W.raw.length),G=U[U.length-1],G&&G.type==="text"?(G.raw+=`
|
||
`+W.raw,G.text+=`
|
||
`+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):U.push(W);continue}if(H){const Q="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(Q);break}else throw new Error(Q)}}return this.state.top=!0,U}inline(H,U=[]){return this.inlineQueue.push({src:H,tokens:U}),U}inlineTokens(H,U=[]){let W,G,X,Z=H,Q,ee,ie;if(this.tokens.links){const te=Object.keys(this.tokens.links);if(te.length>0)for(;(Q=this.tokenizer.rules.inline.reflinkSearch.exec(Z))!=null;)te.includes(Q[0].slice(Q[0].lastIndexOf("[")+1,-1))&&(Z=Z.slice(0,Q.index)+"["+repeatString("a",Q[0].length-2)+"]"+Z.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Q=this.tokenizer.rules.inline.blockSkip.exec(Z))!=null;)Z=Z.slice(0,Q.index)+"["+repeatString("a",Q[0].length-2)+"]"+Z.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Q=this.tokenizer.rules.inline.escapedEmSt.exec(Z))!=null;)Z=Z.slice(0,Q.index)+"++"+Z.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;H;)if(ee||(ie=""),ee=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(te=>(W=te.call({lexer:this},H,U))?(H=H.substring(W.raw.length),U.push(W),!0):!1))){if(W=this.tokenizer.escape(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.tag(H)){H=H.substring(W.raw.length),G=U[U.length-1],G&&W.type==="text"&&G.type==="text"?(G.raw+=W.raw,G.text+=W.text):U.push(W);continue}if(W=this.tokenizer.link(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.reflink(H,this.tokens.links)){H=H.substring(W.raw.length),G=U[U.length-1],G&&W.type==="text"&&G.type==="text"?(G.raw+=W.raw,G.text+=W.text):U.push(W);continue}if(W=this.tokenizer.emStrong(H,Z,ie)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.codespan(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.br(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.del(H)){H=H.substring(W.raw.length),U.push(W);continue}if(W=this.tokenizer.autolink(H,mangle)){H=H.substring(W.raw.length),U.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(H,mangle))){H=H.substring(W.raw.length),U.push(W);continue}if(X=H,this.options.extensions&&this.options.extensions.startInline){let te=1/0;const ne=H.slice(1);let ae;this.options.extensions.startInline.forEach(function(oe){ae=oe.call({lexer:this},ne),typeof ae=="number"&&ae>=0&&(te=Math.min(te,ae))}),te<1/0&&te>=0&&(X=H.substring(0,te+1))}if(W=this.tokenizer.inlineText(X,smartypants)){H=H.substring(W.raw.length),W.raw.slice(-1)!=="_"&&(ie=W.raw.slice(-1)),ee=!0,G=U[U.length-1],G&&G.type==="text"?(G.raw+=W.raw,G.text+=W.text):U.push(W);continue}if(H){const te="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(te);break}else throw new Error(te)}}return U}}class Renderer{constructor(H){this.options=H||defaults$7}code(H,U,W){const G=(U||"").match(/\S*/)[0];if(this.options.highlight){const X=this.options.highlight(H,G);X!=null&&X!==H&&(W=!0,H=X)}return H=H.replace(/\n$/,"")+`
|
||
`,G?'<pre><code class="'+this.options.langPrefix+escape$1(G,!0)+'">'+(W?H:escape$1(H,!0))+`</code></pre>
|
||
`:"<pre><code>"+(W?H:escape$1(H,!0))+`</code></pre>
|
||
`}blockquote(H){return`<blockquote>
|
||
${H}</blockquote>
|
||
`}html(H){return H}heading(H,U,W,G){if(this.options.headerIds){const X=this.options.headerPrefix+G.slug(W);return`<h${U} id="${X}">${H}</h${U}>
|
||
`}return`<h${U}>${H}</h${U}>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list(H,U,W){const G=U?"ol":"ul",X=U&&W!==1?' start="'+W+'"':"";return"<"+G+X+`>
|
||
`+H+"</"+G+`>
|
||
`}listitem(H){return`<li>${H}</li>
|
||
`}checkbox(H){return"<input "+(H?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(H){return`<p>${H}</p>
|
||
`}table(H,U){return U&&(U=`<tbody>${U}</tbody>`),`<table>
|
||
<thead>
|
||
`+H+`</thead>
|
||
`+U+`</table>
|
||
`}tablerow(H){return`<tr>
|
||
${H}</tr>
|
||
`}tablecell(H,U){const W=U.header?"th":"td";return(U.align?`<${W} align="${U.align}">`:`<${W}>`)+H+`</${W}>
|
||
`}strong(H){return`<strong>${H}</strong>`}em(H){return`<em>${H}</em>`}codespan(H){return`<code>${H}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(H){return`<del>${H}</del>`}link(H,U,W){if(H=cleanUrl(this.options.sanitize,this.options.baseUrl,H),H===null)return W;let G='<a href="'+escape$1(H)+'"';return U&&(G+=' title="'+U+'"'),G+=">"+W+"</a>",G}image(H,U,W){if(H=cleanUrl(this.options.sanitize,this.options.baseUrl,H),H===null)return W;let G=`<img src="${H}" alt="${W}"`;return U&&(G+=` title="${U}"`),G+=this.options.xhtml?"/>":">",G}text(H){return H}}class TextRenderer{strong(H){return H}em(H){return H}codespan(H){return H}del(H){return H}html(H){return H}text(H){return H}link(H,U,W){return""+W}image(H,U,W){return""+W}br(){return""}}class Slugger{constructor(){this.seen={}}serialize(H){return H.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(H,U){let W=H,G=0;if(this.seen.hasOwnProperty(W)){G=this.seen[H];do G++,W=H+"-"+G;while(this.seen.hasOwnProperty(W))}return U||(this.seen[H]=G,this.seen[W]=0),W}slug(H,U={}){const W=this.serialize(H);return this.getNextSafeSlug(W,U.dryrun)}}class Parser{constructor(H){this.options=H||defaults$7,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse(H,U){return new Parser(U).parse(H)}static parseInline(H,U){return new Parser(U).parseInline(H)}parse(H,U=!0){let W="",G,X,Z,Q,ee,ie,te,ne,ae,oe,se,le,ce,ue,de,ve,ge,he,me;const _e=H.length;for(G=0;G<_e;G++){if(oe=H[G],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[oe.type]&&(me=this.options.extensions.renderers[oe.type].call({parser:this},oe),me!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(oe.type))){W+=me||"";continue}switch(oe.type){case"space":continue;case"hr":{W+=this.renderer.hr();continue}case"heading":{W+=this.renderer.heading(this.parseInline(oe.tokens),oe.depth,unescape$1(this.parseInline(oe.tokens,this.textRenderer)),this.slugger);continue}case"code":{W+=this.renderer.code(oe.text,oe.lang,oe.escaped);continue}case"table":{for(ne="",te="",Q=oe.header.length,X=0;X<Q;X++)te+=this.renderer.tablecell(this.parseInline(oe.header[X].tokens),{header:!0,align:oe.align[X]});for(ne+=this.renderer.tablerow(te),ae="",Q=oe.rows.length,X=0;X<Q;X++){for(ie=oe.rows[X],te="",ee=ie.length,Z=0;Z<ee;Z++)te+=this.renderer.tablecell(this.parseInline(ie[Z].tokens),{header:!1,align:oe.align[Z]});ae+=this.renderer.tablerow(te)}W+=this.renderer.table(ne,ae);continue}case"blockquote":{ae=this.parse(oe.tokens),W+=this.renderer.blockquote(ae);continue}case"list":{for(se=oe.ordered,le=oe.start,ce=oe.loose,Q=oe.items.length,ae="",X=0;X<Q;X++)de=oe.items[X],ve=de.checked,ge=de.task,ue="",de.task&&(he=this.renderer.checkbox(ve),ce?de.tokens.length>0&&de.tokens[0].type==="paragraph"?(de.tokens[0].text=he+" "+de.tokens[0].text,de.tokens[0].tokens&&de.tokens[0].tokens.length>0&&de.tokens[0].tokens[0].type==="text"&&(de.tokens[0].tokens[0].text=he+" "+de.tokens[0].tokens[0].text)):de.tokens.unshift({type:"text",text:he}):ue+=he),ue+=this.parse(de.tokens,ce),ae+=this.renderer.listitem(ue,ge,ve);W+=this.renderer.list(ae,se,le);continue}case"html":{W+=this.renderer.html(oe.text);continue}case"paragraph":{W+=this.renderer.paragraph(this.parseInline(oe.tokens));continue}case"text":{for(ae=oe.tokens?this.parseInline(oe.tokens):oe.text;G+1<_e&&H[G+1].type==="text";)oe=H[++G],ae+=`
|
||
`+(oe.tokens?this.parseInline(oe.tokens):oe.text);W+=U?this.renderer.paragraph(ae):ae;continue}default:{const be='Token with "'+oe.type+'" type was not found.';if(this.options.silent){console.error(be);return}else throw new Error(be)}}}return W}parseInline(H,U){U=U||this.renderer;let W="",G,X,Z;const Q=H.length;for(G=0;G<Q;G++){if(X=H[G],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[X.type]&&(Z=this.options.extensions.renderers[X.type].call({parser:this},X),Z!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(X.type))){W+=Z||"";continue}switch(X.type){case"escape":{W+=U.text(X.text);break}case"html":{W+=U.html(X.text);break}case"link":{W+=U.link(X.href,X.title,this.parseInline(X.tokens,U));break}case"image":{W+=U.image(X.href,X.title,X.text);break}case"strong":{W+=U.strong(this.parseInline(X.tokens,U));break}case"em":{W+=U.em(this.parseInline(X.tokens,U));break}case"codespan":{W+=U.codespan(X.text);break}case"br":{W+=U.br();break}case"del":{W+=U.del(this.parseInline(X.tokens,U));break}case"text":{W+=U.text(X.text);break}default:{const ee='Token with "'+X.type+'" type was not found.';if(this.options.silent){console.error(ee);return}else throw new Error(ee)}}}return W}}function marked(C,H,U){if(typeof C>"u"||C===null)throw new Error("marked(): input parameter is undefined or null");if(typeof C!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(C)+", string expected");if(typeof H=="function"&&(U=H,H=null),H=merge$5({},marked.defaults,H||{}),checkSanitizeDeprecation(H),U){const W=H.highlight;let G;try{G=Lexer.lex(C,H)}catch(Q){return U(Q)}const X=function(Q){let ee;if(!Q)try{H.walkTokens&&marked.walkTokens(G,H.walkTokens),ee=Parser.parse(G,H)}catch(ie){Q=ie}return H.highlight=W,Q?U(Q):U(null,ee)};if(!W||W.length<3||(delete H.highlight,!G.length))return X();let Z=0;marked.walkTokens(G,function(Q){Q.type==="code"&&(Z++,setTimeout(()=>{W(Q.text,Q.lang,function(ee,ie){if(ee)return X(ee);ie!=null&&ie!==Q.text&&(Q.text=ie,Q.escaped=!0),Z--,Z===0&&X()})},0))}),Z===0&&X();return}try{const W=Lexer.lex(C,H);return H.walkTokens&&marked.walkTokens(W,H.walkTokens),Parser.parse(W,H)}catch(W){if(W.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+escape$1(W.message+"",!0)+"</pre>";throw W}}marked.options=marked.setOptions=function(C){return merge$5(marked.defaults,C),changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults$7;marked.use=function(...C){const H=merge$5({},...C),U=marked.defaults.extensions||{renderers:{},childTokens:{}};let W;C.forEach(G=>{if(G.extensions&&(W=!0,G.extensions.forEach(X=>{if(!X.name)throw new Error("extension name required");if(X.renderer){const Z=U.renderers?U.renderers[X.name]:null;Z?U.renderers[X.name]=function(...Q){let ee=X.renderer.apply(this,Q);return ee===!1&&(ee=Z.apply(this,Q)),ee}:U.renderers[X.name]=X.renderer}if(X.tokenizer){if(!X.level||X.level!=="block"&&X.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");U[X.level]?U[X.level].unshift(X.tokenizer):U[X.level]=[X.tokenizer],X.start&&(X.level==="block"?U.startBlock?U.startBlock.push(X.start):U.startBlock=[X.start]:X.level==="inline"&&(U.startInline?U.startInline.push(X.start):U.startInline=[X.start]))}X.childTokens&&(U.childTokens[X.name]=X.childTokens)})),G.renderer){const X=marked.defaults.renderer||new Renderer;for(const Z in G.renderer){const Q=X[Z];X[Z]=(...ee)=>{let ie=G.renderer[Z].apply(X,ee);return ie===!1&&(ie=Q.apply(X,ee)),ie}}H.renderer=X}if(G.tokenizer){const X=marked.defaults.tokenizer||new Tokenizer;for(const Z in G.tokenizer){const Q=X[Z];X[Z]=(...ee)=>{let ie=G.tokenizer[Z].apply(X,ee);return ie===!1&&(ie=Q.apply(X,ee)),ie}}H.tokenizer=X}if(G.walkTokens){const X=marked.defaults.walkTokens;H.walkTokens=function(Z){G.walkTokens.call(this,Z),X&&X.call(this,Z)}}W&&(H.extensions=U),marked.setOptions(H)})};marked.walkTokens=function(C,H){for(const U of C)switch(H.call(marked,U),U.type){case"table":{for(const W of U.header)marked.walkTokens(W.tokens,H);for(const W of U.rows)for(const G of W)marked.walkTokens(G.tokens,H);break}case"list":{marked.walkTokens(U.items,H);break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[U.type]?marked.defaults.extensions.childTokens[U.type].forEach(function(W){marked.walkTokens(U[W],H)}):U.tokens&&marked.walkTokens(U.tokens,H)}};marked.parseInline=function(C,H){if(typeof C>"u"||C===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof C!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(C)+", string expected");H=merge$5({},marked.defaults,H||{}),checkSanitizeDeprecation(H);try{const U=Lexer.lexInline(C,H);return H.walkTokens&&marked.walkTokens(U,H.walkTokens),Parser.parseInline(U,H)}catch(U){if(U.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+escape$1(U.message+"",!0)+"</pre>";throw U}};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;function dedent(C){for(var H=[],U=1;U<arguments.length;U++)H[U-1]=arguments[U];var W=Array.from(typeof C=="string"?[C]:C);W[W.length-1]=W[W.length-1].replace(/\r?\n([\t ]*)$/,"");var G=W.reduce(function(Q,ee){var ie=ee.match(/\n([\t ]+|(?!\s).)/g);return ie?Q.concat(ie.map(function(te){var ne,ae;return(ae=(ne=te.match(/[\t ]/g))===null||ne===void 0?void 0:ne.length)!==null&&ae!==void 0?ae:0})):Q},[]);if(G.length){var X=new RegExp(`
|
||
[ ]{`+Math.min.apply(Math,G)+"}","g");W=W.map(function(Q){return Q.replace(X,`
|
||
`)})}W[0]=W[0].replace(/^\r?\n/,"");var Z=W[0];return H.forEach(function(Q,ee){var ie=Z.match(/(?:^|\n)( *)$/),te=ie?ie[1]:"",ne=Q;typeof Q=="string"&&Q.includes(`
|
||
`)&&(ne=String(Q).split(`
|
||
`).map(function(ae,oe){return oe===0?ae:""+te+ae}).join(`
|
||
`)),Z+=ne+W[ee+1]}),Z}//! moment.js
|
||
//! version : 2.29.4
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(C){hookCallback=C}function isArray$9(C){return C instanceof Array||Object.prototype.toString.call(C)==="[object Array]"}function isObject$a(C){return C!=null&&Object.prototype.toString.call(C)==="[object Object]"}function hasOwnProp(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function isObjectEmpty(C){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(C).length===0;var H;for(H in C)if(hasOwnProp(C,H))return!1;return!0}function isUndefined$3(C){return C===void 0}function isNumber$2(C){return typeof C=="number"||Object.prototype.toString.call(C)==="[object Number]"}function isDate$1(C){return C instanceof Date||Object.prototype.toString.call(C)==="[object Date]"}function map$5(C,H){var U=[],W,G=C.length;for(W=0;W<G;++W)U.push(H(C[W],W));return U}function extend$3(C,H){for(var U in H)hasOwnProp(H,U)&&(C[U]=H[U]);return hasOwnProp(H,"toString")&&(C.toString=H.toString),hasOwnProp(H,"valueOf")&&(C.valueOf=H.valueOf),C}function createUTC(C,H,U,W){return createLocalOrUTC(C,H,U,W,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(C){return C._pf==null&&(C._pf=defaultParsingFlags()),C._pf}var some$2;Array.prototype.some?some$2=Array.prototype.some:some$2=function(C){var H=Object(this),U=H.length>>>0,W;for(W=0;W<U;W++)if(W in H&&C.call(this,H[W],W,H))return!0;return!1};function isValid(C){if(C._isValid==null){var H=getParsingFlags(C),U=some$2.call(H.parsedDateParts,function(G){return G!=null}),W=!isNaN(C._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&U);if(C._strict&&(W=W&&H.charsLeftOver===0&&H.unusedTokens.length===0&&H.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(C))C._isValid=W;else return W}return C._isValid}function createInvalid(C){var H=createUTC(NaN);return C!=null?extend$3(getParsingFlags(H),C):getParsingFlags(H).userInvalidated=!0,H}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(C,H){var U,W,G,X=momentProperties.length;if(isUndefined$3(H._isAMomentObject)||(C._isAMomentObject=H._isAMomentObject),isUndefined$3(H._i)||(C._i=H._i),isUndefined$3(H._f)||(C._f=H._f),isUndefined$3(H._l)||(C._l=H._l),isUndefined$3(H._strict)||(C._strict=H._strict),isUndefined$3(H._tzm)||(C._tzm=H._tzm),isUndefined$3(H._isUTC)||(C._isUTC=H._isUTC),isUndefined$3(H._offset)||(C._offset=H._offset),isUndefined$3(H._pf)||(C._pf=getParsingFlags(H)),isUndefined$3(H._locale)||(C._locale=H._locale),X>0)for(U=0;U<X;U++)W=momentProperties[U],G=H[W],isUndefined$3(G)||(C[W]=G);return C}function Moment(C){copyConfig(this,C),this._d=new Date(C._d!=null?C._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(C){return C instanceof Moment||C!=null&&C._isAMomentObject!=null}function warn(C){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+C)}function deprecate(C,H){var U=!0;return extend$3(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,C),U){var W=[],G,X,Z,Q=arguments.length;for(X=0;X<Q;X++){if(G="",typeof arguments[X]=="object"){G+=`
|
||
[`+X+"] ";for(Z in arguments[0])hasOwnProp(arguments[0],Z)&&(G+=Z+": "+arguments[0][Z]+", ");G=G.slice(0,-2)}else G=arguments[X];W.push(G)}warn(C+`
|
||
Arguments: `+Array.prototype.slice.call(W).join("")+`
|
||
`+new Error().stack),U=!1}return H.apply(this,arguments)},H)}var deprecations={};function deprecateSimple(C,H){hooks.deprecationHandler!=null&&hooks.deprecationHandler(C,H),deprecations[C]||(warn(H),deprecations[C]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction$4(C){return typeof Function<"u"&&C instanceof Function||Object.prototype.toString.call(C)==="[object Function]"}function set$3(C){var H,U;for(U in C)hasOwnProp(C,U)&&(H=C[U],isFunction$4(H)?this[U]=H:this["_"+U]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(C,H){var U=extend$3({},C),W;for(W in H)hasOwnProp(H,W)&&(isObject$a(C[W])&&isObject$a(H[W])?(U[W]={},extend$3(U[W],C[W]),extend$3(U[W],H[W])):H[W]!=null?U[W]=H[W]:delete U[W]);for(W in C)hasOwnProp(C,W)&&!hasOwnProp(H,W)&&isObject$a(C[W])&&(U[W]=extend$3({},U[W]));return U}function Locale(C){C!=null&&this.set(C)}var keys$4;Object.keys?keys$4=Object.keys:keys$4=function(C){var H,U=[];for(H in C)hasOwnProp(C,H)&&U.push(H);return U};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar$1(C,H,U){var W=this._calendar[C]||this._calendar.sameElse;return isFunction$4(W)?W.call(H,U):W}function zeroFill(C,H,U){var W=""+Math.abs(C),G=H-W.length,X=C>=0;return(X?U?"+":"":"-")+Math.pow(10,Math.max(0,G)).toString().substr(1)+W}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(C,H,U,W){var G=W;typeof W=="string"&&(G=function(){return this[W]()}),C&&(formatTokenFunctions[C]=G),H&&(formatTokenFunctions[H[0]]=function(){return zeroFill(G.apply(this,arguments),H[1],H[2])}),U&&(formatTokenFunctions[U]=function(){return this.localeData().ordinal(G.apply(this,arguments),C)})}function removeFormattingTokens(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function makeFormatFunction(C){var H=C.match(formattingTokens),U,W;for(U=0,W=H.length;U<W;U++)formatTokenFunctions[H[U]]?H[U]=formatTokenFunctions[H[U]]:H[U]=removeFormattingTokens(H[U]);return function(G){var X="",Z;for(Z=0;Z<W;Z++)X+=isFunction$4(H[Z])?H[Z].call(G,C):H[Z];return X}}function formatMoment(C,H){return C.isValid()?(H=expandFormat(H,C.localeData()),formatFunctions[H]=formatFunctions[H]||makeFormatFunction(H),formatFunctions[H](C)):C.localeData().invalidDate()}function expandFormat(C,H){var U=5;function W(G){return H.longDateFormat(G)||G}for(localFormattingTokens.lastIndex=0;U>=0&&localFormattingTokens.test(C);)C=C.replace(localFormattingTokens,W),localFormattingTokens.lastIndex=0,U-=1;return C}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(C){var H=this._longDateFormat[C],U=this._longDateFormat[C.toUpperCase()];return H||!U?H:(this._longDateFormat[C]=U.match(formattingTokens).map(function(W){return W==="MMMM"||W==="MM"||W==="DD"||W==="dddd"?W.slice(1):W}).join(""),this._longDateFormat[C])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal$1(C){return this._ordinal.replace("%d",C)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(C,H,U,W){var G=this._relativeTime[U];return isFunction$4(G)?G(C,H,U,W):G.replace(/%d/i,C)}function pastFuture(C,H){var U=this._relativeTime[C>0?"future":"past"];return isFunction$4(U)?U(H):U.replace(/%s/i,H)}var aliases={};function addUnitAlias(C,H){var U=C.toLowerCase();aliases[U]=aliases[U+"s"]=aliases[H]=C}function normalizeUnits(C){return typeof C=="string"?aliases[C]||aliases[C.toLowerCase()]:void 0}function normalizeObjectUnits(C){var H={},U,W;for(W in C)hasOwnProp(C,W)&&(U=normalizeUnits(W),U&&(H[U]=C[W]));return H}var priorities={};function addUnitPriority(C,H){priorities[C]=H}function getPrioritizedUnits(C){var H=[],U;for(U in C)hasOwnProp(C,U)&&H.push({unit:U,priority:priorities[U]});return H.sort(function(W,G){return W.priority-G.priority}),H}function isLeapYear(C){return C%4===0&&C%100!==0||C%400===0}function absFloor(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function toInt(C){var H=+C,U=0;return H!==0&&isFinite(H)&&(U=absFloor(H)),U}function makeGetSet(C,H){return function(U){return U!=null?(set$1$1(this,C,U),hooks.updateOffset(this,H),this):get$2(this,C)}}function get$2(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function set$1$1(C,H,U){C.isValid()&&!isNaN(U)&&(H==="FullYear"&&isLeapYear(C.year())&&C.month()===1&&C.date()===29?(U=toInt(U),C._d["set"+(C._isUTC?"UTC":"")+H](U,C.month(),daysInMonth(U,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](U))}function stringGet(C){return C=normalizeUnits(C),isFunction$4(this[C])?this[C]():this}function stringSet(C,H){if(typeof C=="object"){C=normalizeObjectUnits(C);var U=getPrioritizedUnits(C),W,G=U.length;for(W=0;W<G;W++)this[U[W].unit](C[U[W].unit])}else if(C=normalizeUnits(C),isFunction$4(this[C]))return this[C](H);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes;regexes={};function addRegexToken(C,H,U){regexes[C]=isFunction$4(H)?H:function(W,G){return W&&U?U:H}}function getParseRegexForToken(C,H){return hasOwnProp(regexes,C)?regexes[C](H._strict,H._locale):new RegExp(unescapeFormat(C))}function unescapeFormat(C){return regexEscape(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,U,W,G,X){return U||W||G||X}))}function regexEscape(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(C,H){var U,W=H,G;for(typeof C=="string"&&(C=[C]),isNumber$2(H)&&(W=function(X,Z){Z[H]=toInt(X)}),G=C.length,U=0;U<G;U++)tokens[C[U]]=W}function addWeekParseToken(C,H){addParseToken(C,function(U,W,G,X){G._w=G._w||{},H(U,G._w,G,X)})}function addTimeToArrayFromToken(C,H,U){H!=null&&hasOwnProp(tokens,C)&&tokens[C](H,U._a,U,C)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(C,H){return(C%H+H)%H}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(C){var H;for(H=0;H<this.length;++H)if(this[H]===C)return H;return-1};function daysInMonth(C,H){if(isNaN(C)||isNaN(H))return NaN;var U=mod(H,12);return C+=(H-U)/12,U===1?isLeapYear(C)?29:28:31-U%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(C){return this.localeData().monthsShort(this,C)});addFormatToken("MMMM",0,0,function(C){return this.localeData().months(this,C)});addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",match1to2);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(C,H){return H.monthsShortRegex(C)});addRegexToken("MMMM",function(C,H){return H.monthsRegex(C)});addParseToken(["M","MM"],function(C,H){H[MONTH]=toInt(C)-1});addParseToken(["MMM","MMMM"],function(C,H,U,W){var G=U._locale.monthsParse(C,W,U._strict);G!=null?H[MONTH]=G:getParsingFlags(U).invalidMonth=C});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(C,H){return C?isArray$9(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(H)?"format":"standalone"][C.month()]:isArray$9(this._months)?this._months:this._months.standalone}function localeMonthsShort(C,H){return C?isArray$9(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(H)?"format":"standalone"][C.month()]:isArray$9(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(C,H,U){var W,G,X,Z=C.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],W=0;W<12;++W)X=createUTC([2e3,W]),this._shortMonthsParse[W]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[W]=this.months(X,"").toLocaleLowerCase();return U?H==="MMM"?(G=indexOf.call(this._shortMonthsParse,Z),G!==-1?G:null):(G=indexOf.call(this._longMonthsParse,Z),G!==-1?G:null):H==="MMM"?(G=indexOf.call(this._shortMonthsParse,Z),G!==-1?G:(G=indexOf.call(this._longMonthsParse,Z),G!==-1?G:null)):(G=indexOf.call(this._longMonthsParse,Z),G!==-1?G:(G=indexOf.call(this._shortMonthsParse,Z),G!==-1?G:null))}function localeMonthsParse(C,H,U){var W,G,X;if(this._monthsParseExact)return handleStrictParse.call(this,C,H,U);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),W=0;W<12;W++){if(G=createUTC([2e3,W]),U&&!this._longMonthsParse[W]&&(this._longMonthsParse[W]=new RegExp("^"+this.months(G,"").replace(".","")+"$","i"),this._shortMonthsParse[W]=new RegExp("^"+this.monthsShort(G,"").replace(".","")+"$","i")),!U&&!this._monthsParse[W]&&(X="^"+this.months(G,"")+"|^"+this.monthsShort(G,""),this._monthsParse[W]=new RegExp(X.replace(".",""),"i")),U&&H==="MMMM"&&this._longMonthsParse[W].test(C))return W;if(U&&H==="MMM"&&this._shortMonthsParse[W].test(C))return W;if(!U&&this._monthsParse[W].test(C))return W}}function setMonth(C,H){var U;if(!C.isValid())return C;if(typeof H=="string"){if(/^\d+$/.test(H))H=toInt(H);else if(H=C.localeData().monthsParse(H),!isNumber$2(H))return C}return U=Math.min(C.date(),daysInMonth(C.year(),H)),C._d["set"+(C._isUTC?"UTC":"")+"Month"](H,U),C}function getSetMonth(C){return C!=null?(setMonth(this,C),hooks.updateOffset(this,!0),this):get$2(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(C){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(C){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),C?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function C(Z,Q){return Q.length-Z.length}var H=[],U=[],W=[],G,X;for(G=0;G<12;G++)X=createUTC([2e3,G]),H.push(this.monthsShort(X,"")),U.push(this.months(X,"")),W.push(this.months(X,"")),W.push(this.monthsShort(X,""));for(H.sort(C),U.sort(C),W.sort(C),G=0;G<12;G++)H[G]=regexEscape(H[G]),U[G]=regexEscape(U[G]);for(G=0;G<24;G++)W[G]=regexEscape(W[G]);this._monthsRegex=new RegExp("^("+W.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+U.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+H.join("|")+")","i")}addFormatToken("Y",0,0,function(){var C=this.year();return C<=9999?zeroFill(C,4):"+"+C});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(C,H){H[YEAR]=C.length===2?hooks.parseTwoDigitYear(C):toInt(C)});addParseToken("YY",function(C,H){H[YEAR]=hooks.parseTwoDigitYear(C)});addParseToken("Y",function(C,H){H[YEAR]=parseInt(C,10)});function daysInYear(C){return isLeapYear(C)?366:365}hooks.parseTwoDigitYear=function(C){return toInt(C)+(toInt(C)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(C,H,U,W,G,X,Z){var Q;return C<100&&C>=0?(Q=new Date(C+400,H,U,W,G,X,Z),isFinite(Q.getFullYear())&&Q.setFullYear(C)):Q=new Date(C,H,U,W,G,X,Z),Q}function createUTCDate(C){var H,U;return C<100&&C>=0?(U=Array.prototype.slice.call(arguments),U[0]=C+400,H=new Date(Date.UTC.apply(null,U)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function firstWeekOffset(C,H,U){var W=7+H-U,G=(7+createUTCDate(C,0,W).getUTCDay()-H)%7;return-G+W-1}function dayOfYearFromWeeks(C,H,U,W,G){var X=(7+U-W)%7,Z=firstWeekOffset(C,W,G),Q=1+7*(H-1)+X+Z,ee,ie;return Q<=0?(ee=C-1,ie=daysInYear(ee)+Q):Q>daysInYear(C)?(ee=C+1,ie=Q-daysInYear(C)):(ee=C,ie=Q),{year:ee,dayOfYear:ie}}function weekOfYear(C,H,U){var W=firstWeekOffset(C.year(),H,U),G=Math.floor((C.dayOfYear()-W-1)/7)+1,X,Z;return G<1?(Z=C.year()-1,X=G+weeksInYear(Z,H,U)):G>weeksInYear(C.year(),H,U)?(X=G-weeksInYear(C.year(),H,U),Z=C.year()+1):(Z=C.year(),X=G),{week:X,year:Z}}function weeksInYear(C,H,U){var W=firstWeekOffset(C,H,U),G=firstWeekOffset(C+1,H,U);return(daysInYear(C)-W+G)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(C,H,U,W){H[W.substr(0,1)]=toInt(C)});function localeWeek(C){return weekOfYear(C,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(C){var H=this.localeData().week(this);return C==null?H:this.add((C-H)*7,"d")}function getSetISOWeek(C){var H=weekOfYear(this,1,4).week;return C==null?H:this.add((C-H)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)});addFormatToken("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)});addFormatToken("dddd",0,0,function(C){return this.localeData().weekdays(this,C)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(C,H){return H.weekdaysMinRegex(C)});addRegexToken("ddd",function(C,H){return H.weekdaysShortRegex(C)});addRegexToken("dddd",function(C,H){return H.weekdaysRegex(C)});addWeekParseToken(["dd","ddd","dddd"],function(C,H,U,W){var G=U._locale.weekdaysParse(C,W,U._strict);G!=null?H.d=G:getParsingFlags(U).invalidWeekday=C});addWeekParseToken(["d","e","E"],function(C,H,U,W){H[W]=toInt(C)});function parseWeekday(C,H){return typeof C!="string"?C:isNaN(C)?(C=H.weekdaysParse(C),typeof C=="number"?C:null):parseInt(C,10)}function parseIsoWeekday(C,H){return typeof C=="string"?H.weekdaysParse(C)%7||7:isNaN(C)?null:C}function shiftWeekdays(C,H){return C.slice(H,7).concat(C.slice(0,H))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(C,H){var U=isArray$9(this._weekdays)?this._weekdays:this._weekdays[C&&C!==!0&&this._weekdays.isFormat.test(H)?"format":"standalone"];return C===!0?shiftWeekdays(U,this._week.dow):C?U[C.day()]:U}function localeWeekdaysShort(C){return C===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort}function localeWeekdaysMin(C){return C===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin}function handleStrictParse$1(C,H,U){var W,G,X,Z=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],W=0;W<7;++W)X=createUTC([2e3,1]).day(W),this._minWeekdaysParse[W]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[W]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[W]=this.weekdays(X,"").toLocaleLowerCase();return U?H==="dddd"?(G=indexOf.call(this._weekdaysParse,Z),G!==-1?G:null):H==="ddd"?(G=indexOf.call(this._shortWeekdaysParse,Z),G!==-1?G:null):(G=indexOf.call(this._minWeekdaysParse,Z),G!==-1?G:null):H==="dddd"?(G=indexOf.call(this._weekdaysParse,Z),G!==-1||(G=indexOf.call(this._shortWeekdaysParse,Z),G!==-1)?G:(G=indexOf.call(this._minWeekdaysParse,Z),G!==-1?G:null)):H==="ddd"?(G=indexOf.call(this._shortWeekdaysParse,Z),G!==-1||(G=indexOf.call(this._weekdaysParse,Z),G!==-1)?G:(G=indexOf.call(this._minWeekdaysParse,Z),G!==-1?G:null)):(G=indexOf.call(this._minWeekdaysParse,Z),G!==-1||(G=indexOf.call(this._weekdaysParse,Z),G!==-1)?G:(G=indexOf.call(this._shortWeekdaysParse,Z),G!==-1?G:null))}function localeWeekdaysParse(C,H,U){var W,G,X;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,C,H,U);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),W=0;W<7;W++){if(G=createUTC([2e3,1]).day(W),U&&!this._fullWeekdaysParse[W]&&(this._fullWeekdaysParse[W]=new RegExp("^"+this.weekdays(G,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[W]=new RegExp("^"+this.weekdaysShort(G,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[W]=new RegExp("^"+this.weekdaysMin(G,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[W]||(X="^"+this.weekdays(G,"")+"|^"+this.weekdaysShort(G,"")+"|^"+this.weekdaysMin(G,""),this._weekdaysParse[W]=new RegExp(X.replace(".",""),"i")),U&&H==="dddd"&&this._fullWeekdaysParse[W].test(C))return W;if(U&&H==="ddd"&&this._shortWeekdaysParse[W].test(C))return W;if(U&&H==="dd"&&this._minWeekdaysParse[W].test(C))return W;if(!U&&this._weekdaysParse[W].test(C))return W}}function getSetDayOfWeek(C){if(!this.isValid())return C!=null?this:NaN;var H=this._isUTC?this._d.getUTCDay():this._d.getDay();return C!=null?(C=parseWeekday(C,this.localeData()),this.add(C-H,"d")):H}function getSetLocaleDayOfWeek(C){if(!this.isValid())return C!=null?this:NaN;var H=(this.day()+7-this.localeData()._week.dow)%7;return C==null?H:this.add(C-H,"d")}function getSetISODayOfWeek(C){if(!this.isValid())return C!=null?this:NaN;if(C!=null){var H=parseIsoWeekday(C,this.localeData());return this.day(this.day()%7?H:H-7)}else return this.day()||7}function weekdaysRegex(C){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(C){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(C){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function C(te,ne){return ne.length-te.length}var H=[],U=[],W=[],G=[],X,Z,Q,ee,ie;for(X=0;X<7;X++)Z=createUTC([2e3,1]).day(X),Q=regexEscape(this.weekdaysMin(Z,"")),ee=regexEscape(this.weekdaysShort(Z,"")),ie=regexEscape(this.weekdays(Z,"")),H.push(Q),U.push(ee),W.push(ie),G.push(Q),G.push(ee),G.push(ie);H.sort(C),U.sort(C),W.sort(C),G.sort(C),this._weekdaysRegex=new RegExp("^("+G.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+U.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(C,H){addFormatToken(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(C,H){return H._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(C,H,U){var W=toInt(C);H[HOUR]=W===24?0:W});addParseToken(["a","A"],function(C,H,U){U._isPm=U._locale.isPM(C),U._meridiem=C});addParseToken(["h","hh"],function(C,H,U){H[HOUR]=toInt(C),getParsingFlags(U).bigHour=!0});addParseToken("hmm",function(C,H,U){var W=C.length-2;H[HOUR]=toInt(C.substr(0,W)),H[MINUTE]=toInt(C.substr(W)),getParsingFlags(U).bigHour=!0});addParseToken("hmmss",function(C,H,U){var W=C.length-4,G=C.length-2;H[HOUR]=toInt(C.substr(0,W)),H[MINUTE]=toInt(C.substr(W,2)),H[SECOND]=toInt(C.substr(G)),getParsingFlags(U).bigHour=!0});addParseToken("Hmm",function(C,H,U){var W=C.length-2;H[HOUR]=toInt(C.substr(0,W)),H[MINUTE]=toInt(C.substr(W))});addParseToken("Hmmss",function(C,H,U){var W=C.length-4,G=C.length-2;H[HOUR]=toInt(C.substr(0,W)),H[MINUTE]=toInt(C.substr(W,2)),H[SECOND]=toInt(C.substr(G))});function localeIsPM(C){return(C+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(C,H,U){return C>11?U?"pm":"PM":U?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(C,H){var U,W=Math.min(C.length,H.length);for(U=0;U<W;U+=1)if(C[U]!==H[U])return U;return W}function normalizeLocale(C){return C&&C.toLowerCase().replace("_","-")}function chooseLocale(C){for(var H=0,U,W,G,X;H<C.length;){for(X=normalizeLocale(C[H]).split("-"),U=X.length,W=normalizeLocale(C[H+1]),W=W?W.split("-"):null;U>0;){if(G=loadLocale(X.slice(0,U).join("-")),G)return G;if(W&&W.length>=U&&commonPrefix(X,W)>=U-1)break;U--}H++}return globalLocale}function isLocaleNameSane(C){return C.match("^[^/\\\\]*$")!=null}function loadLocale(C){var H=null,U;if(locales[C]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(C))try{H=globalLocale._abbr,U=require,U("./locale/"+C),getSetGlobalLocale(H)}catch{locales[C]=null}return locales[C]}function getSetGlobalLocale(C,H){var U;return C&&(isUndefined$3(H)?U=getLocale(C):U=defineLocale(C,H),U?globalLocale=U:typeof console<"u"&&console.warn&&console.warn("Locale "+C+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(C,H){if(H!==null){var U,W=baseConfig;if(H.abbr=C,locales[C]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),W=locales[C]._config;else if(H.parentLocale!=null)if(locales[H.parentLocale]!=null)W=locales[H.parentLocale]._config;else if(U=loadLocale(H.parentLocale),U!=null)W=U._config;else return localeFamilies[H.parentLocale]||(localeFamilies[H.parentLocale]=[]),localeFamilies[H.parentLocale].push({name:C,config:H}),null;return locales[C]=new Locale(mergeConfigs(W,H)),localeFamilies[C]&&localeFamilies[C].forEach(function(G){defineLocale(G.name,G.config)}),getSetGlobalLocale(C),locales[C]}else return delete locales[C],null}function updateLocale(C,H){if(H!=null){var U,W,G=baseConfig;locales[C]!=null&&locales[C].parentLocale!=null?locales[C].set(mergeConfigs(locales[C]._config,H)):(W=loadLocale(C),W!=null&&(G=W._config),H=mergeConfigs(G,H),W==null&&(H.abbr=C),U=new Locale(H),U.parentLocale=locales[C],locales[C]=U),getSetGlobalLocale(C)}else locales[C]!=null&&(locales[C].parentLocale!=null?(locales[C]=locales[C].parentLocale,C===getSetGlobalLocale()&&getSetGlobalLocale(C)):locales[C]!=null&&delete locales[C]);return locales[C]}function getLocale(C){var H;if(C&&C._locale&&C._locale._abbr&&(C=C._locale._abbr),!C)return globalLocale;if(!isArray$9(C)){if(H=loadLocale(C),H)return H;C=[C]}return chooseLocale(C)}function listLocales(){return keys$4(locales)}function checkOverflow(C){var H,U=C._a;return U&&getParsingFlags(C).overflow===-2&&(H=U[MONTH]<0||U[MONTH]>11?MONTH:U[DATE]<1||U[DATE]>daysInMonth(U[YEAR],U[MONTH])?DATE:U[HOUR]<0||U[HOUR]>24||U[HOUR]===24&&(U[MINUTE]!==0||U[SECOND]!==0||U[MILLISECOND]!==0)?HOUR:U[MINUTE]<0||U[MINUTE]>59?MINUTE:U[SECOND]<0||U[SECOND]>59?SECOND:U[MILLISECOND]<0||U[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(C)._overflowDayOfYear&&(H<YEAR||H>DATE)&&(H=DATE),getParsingFlags(C)._overflowWeeks&&H===-1&&(H=WEEK),getParsingFlags(C)._overflowWeekday&&H===-1&&(H=WEEKDAY),getParsingFlags(C).overflow=H),C}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(C){var H,U,W=C._i,G=extendedIsoRegex.exec(W)||basicIsoRegex.exec(W),X,Z,Q,ee,ie=isoDates.length,te=isoTimes.length;if(G){for(getParsingFlags(C).iso=!0,H=0,U=ie;H<U;H++)if(isoDates[H][1].exec(G[1])){Z=isoDates[H][0],X=isoDates[H][2]!==!1;break}if(Z==null){C._isValid=!1;return}if(G[3]){for(H=0,U=te;H<U;H++)if(isoTimes[H][1].exec(G[3])){Q=(G[2]||" ")+isoTimes[H][0];break}if(Q==null){C._isValid=!1;return}}if(!X&&Q!=null){C._isValid=!1;return}if(G[4])if(tzRegex.exec(G[4]))ee="Z";else{C._isValid=!1;return}C._f=Z+(Q||"")+(ee||""),configFromStringAndFormat(C)}else C._isValid=!1}function extractFromRFC2822Strings(C,H,U,W,G,X){var Z=[untruncateYear(C),defaultLocaleMonthsShort.indexOf(H),parseInt(U,10),parseInt(W,10),parseInt(G,10)];return X&&Z.push(parseInt(X,10)),Z}function untruncateYear(C){var H=parseInt(C,10);return H<=49?2e3+H:H<=999?1900+H:H}function preprocessRFC2822(C){return C.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(C,H,U){if(C){var W=defaultLocaleWeekdaysShort.indexOf(C),G=new Date(H[0],H[1],H[2]).getDay();if(W!==G)return getParsingFlags(U).weekdayMismatch=!0,U._isValid=!1,!1}return!0}function calculateOffset(C,H,U){if(C)return obsOffsets[C];if(H)return 0;var W=parseInt(U,10),G=W%100,X=(W-G)/100;return X*60+G}function configFromRFC2822(C){var H=rfc2822.exec(preprocessRFC2822(C._i)),U;if(H){if(U=extractFromRFC2822Strings(H[4],H[3],H[2],H[5],H[6],H[7]),!checkWeekday(H[1],U,C))return;C._a=U,C._tzm=calculateOffset(H[8],H[9],H[10]),C._d=createUTCDate.apply(null,C._a),C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),getParsingFlags(C).rfc2822=!0}else C._isValid=!1}function configFromString(C){var H=aspNetJsonRegex.exec(C._i);if(H!==null){C._d=new Date(+H[1]);return}if(configFromISO(C),C._isValid===!1)delete C._isValid;else return;if(configFromRFC2822(C),C._isValid===!1)delete C._isValid;else return;C._strict?C._isValid=!1:hooks.createFromInputFallback(C)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(C){C._d=new Date(C._i+(C._useUTC?" UTC":""))});function defaults$6(C,H,U){return C!=null?C:H!=null?H:U}function currentDateArray(C){var H=new Date(hooks.now());return C._useUTC?[H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate()]:[H.getFullYear(),H.getMonth(),H.getDate()]}function configFromArray(C){var H,U,W=[],G,X,Z;if(!C._d){for(G=currentDateArray(C),C._w&&C._a[DATE]==null&&C._a[MONTH]==null&&dayOfYearFromWeekInfo(C),C._dayOfYear!=null&&(Z=defaults$6(C._a[YEAR],G[YEAR]),(C._dayOfYear>daysInYear(Z)||C._dayOfYear===0)&&(getParsingFlags(C)._overflowDayOfYear=!0),U=createUTCDate(Z,0,C._dayOfYear),C._a[MONTH]=U.getUTCMonth(),C._a[DATE]=U.getUTCDate()),H=0;H<3&&C._a[H]==null;++H)C._a[H]=W[H]=G[H];for(;H<7;H++)C._a[H]=W[H]=C._a[H]==null?H===2?1:0:C._a[H];C._a[HOUR]===24&&C._a[MINUTE]===0&&C._a[SECOND]===0&&C._a[MILLISECOND]===0&&(C._nextDay=!0,C._a[HOUR]=0),C._d=(C._useUTC?createUTCDate:createDate).apply(null,W),X=C._useUTC?C._d.getUTCDay():C._d.getDay(),C._tzm!=null&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[HOUR]=24),C._w&&typeof C._w.d<"u"&&C._w.d!==X&&(getParsingFlags(C).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(C){var H,U,W,G,X,Z,Q,ee,ie;H=C._w,H.GG!=null||H.W!=null||H.E!=null?(X=1,Z=4,U=defaults$6(H.GG,C._a[YEAR],weekOfYear(createLocal(),1,4).year),W=defaults$6(H.W,1),G=defaults$6(H.E,1),(G<1||G>7)&&(ee=!0)):(X=C._locale._week.dow,Z=C._locale._week.doy,ie=weekOfYear(createLocal(),X,Z),U=defaults$6(H.gg,C._a[YEAR],ie.year),W=defaults$6(H.w,ie.week),H.d!=null?(G=H.d,(G<0||G>6)&&(ee=!0)):H.e!=null?(G=H.e+X,(H.e<0||H.e>6)&&(ee=!0)):G=X),W<1||W>weeksInYear(U,X,Z)?getParsingFlags(C)._overflowWeeks=!0:ee!=null?getParsingFlags(C)._overflowWeekday=!0:(Q=dayOfYearFromWeeks(U,W,G,X,Z),C._a[YEAR]=Q.year,C._dayOfYear=Q.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(C){if(C._f===hooks.ISO_8601){configFromISO(C);return}if(C._f===hooks.RFC_2822){configFromRFC2822(C);return}C._a=[],getParsingFlags(C).empty=!0;var H=""+C._i,U,W,G,X,Z,Q=H.length,ee=0,ie,te;for(G=expandFormat(C._f,C._locale).match(formattingTokens)||[],te=G.length,U=0;U<te;U++)X=G[U],W=(H.match(getParseRegexForToken(X,C))||[])[0],W&&(Z=H.substr(0,H.indexOf(W)),Z.length>0&&getParsingFlags(C).unusedInput.push(Z),H=H.slice(H.indexOf(W)+W.length),ee+=W.length),formatTokenFunctions[X]?(W?getParsingFlags(C).empty=!1:getParsingFlags(C).unusedTokens.push(X),addTimeToArrayFromToken(X,W,C)):C._strict&&!W&&getParsingFlags(C).unusedTokens.push(X);getParsingFlags(C).charsLeftOver=Q-ee,H.length>0&&getParsingFlags(C).unusedInput.push(H),C._a[HOUR]<=12&&getParsingFlags(C).bigHour===!0&&C._a[HOUR]>0&&(getParsingFlags(C).bigHour=void 0),getParsingFlags(C).parsedDateParts=C._a.slice(0),getParsingFlags(C).meridiem=C._meridiem,C._a[HOUR]=meridiemFixWrap(C._locale,C._a[HOUR],C._meridiem),ie=getParsingFlags(C).era,ie!==null&&(C._a[YEAR]=C._locale.erasConvertYear(ie,C._a[YEAR])),configFromArray(C),checkOverflow(C)}function meridiemFixWrap(C,H,U){var W;return U==null?H:C.meridiemHour!=null?C.meridiemHour(H,U):(C.isPM!=null&&(W=C.isPM(U),W&&H<12&&(H+=12),!W&&H===12&&(H=0)),H)}function configFromStringAndArray(C){var H,U,W,G,X,Z,Q=!1,ee=C._f.length;if(ee===0){getParsingFlags(C).invalidFormat=!0,C._d=new Date(NaN);return}for(G=0;G<ee;G++)X=0,Z=!1,H=copyConfig({},C),C._useUTC!=null&&(H._useUTC=C._useUTC),H._f=C._f[G],configFromStringAndFormat(H),isValid(H)&&(Z=!0),X+=getParsingFlags(H).charsLeftOver,X+=getParsingFlags(H).unusedTokens.length*10,getParsingFlags(H).score=X,Q?X<W&&(W=X,U=H):(W==null||X<W||Z)&&(W=X,U=H,Z&&(Q=!0));extend$3(C,U||H)}function configFromObject(C){if(!C._d){var H=normalizeObjectUnits(C._i),U=H.day===void 0?H.date:H.day;C._a=map$5([H.year,H.month,U,H.hour,H.minute,H.second,H.millisecond],function(W){return W&&parseInt(W,10)}),configFromArray(C)}}function createFromConfig(C){var H=new Moment(checkOverflow(prepareConfig(C)));return H._nextDay&&(H.add(1,"d"),H._nextDay=void 0),H}function prepareConfig(C){var H=C._i,U=C._f;return C._locale=C._locale||getLocale(C._l),H===null||U===void 0&&H===""?createInvalid({nullInput:!0}):(typeof H=="string"&&(C._i=H=C._locale.preparse(H)),isMoment(H)?new Moment(checkOverflow(H)):(isDate$1(H)?C._d=H:isArray$9(U)?configFromStringAndArray(C):U?configFromStringAndFormat(C):configFromInput(C),isValid(C)||(C._d=null),C))}function configFromInput(C){var H=C._i;isUndefined$3(H)?C._d=new Date(hooks.now()):isDate$1(H)?C._d=new Date(H.valueOf()):typeof H=="string"?configFromString(C):isArray$9(H)?(C._a=map$5(H.slice(0),function(U){return parseInt(U,10)}),configFromArray(C)):isObject$a(H)?configFromObject(C):isNumber$2(H)?C._d=new Date(H):hooks.createFromInputFallback(C)}function createLocalOrUTC(C,H,U,W,G){var X={};return(H===!0||H===!1)&&(W=H,H=void 0),(U===!0||U===!1)&&(W=U,U=void 0),(isObject$a(C)&&isObjectEmpty(C)||isArray$9(C)&&C.length===0)&&(C=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=G,X._l=U,X._i=C,X._f=H,X._strict=W,createFromConfig(X)}function createLocal(C,H,U,W){return createLocalOrUTC(C,H,U,W,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=createLocal.apply(null,arguments);return this.isValid()&&C.isValid()?C<this?this:C:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=createLocal.apply(null,arguments);return this.isValid()&&C.isValid()?C>this?this:C:createInvalid()});function pickBy(C,H){var U,W;if(H.length===1&&isArray$9(H[0])&&(H=H[0]),!H.length)return createLocal();for(U=H[0],W=1;W<H.length;++W)(!H[W].isValid()||H[W][C](U))&&(U=H[W]);return U}function min$3(){var C=[].slice.call(arguments,0);return pickBy("isBefore",C)}function max$3(){var C=[].slice.call(arguments,0);return pickBy("isAfter",C)}var now$1=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(C){var H,U=!1,W,G=ordering.length;for(H in C)if(hasOwnProp(C,H)&&!(indexOf.call(ordering,H)!==-1&&(C[H]==null||!isNaN(C[H]))))return!1;for(W=0;W<G;++W)if(C[ordering[W]]){if(U)return!1;parseFloat(C[ordering[W]])!==toInt(C[ordering[W]])&&(U=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(C){var H=normalizeObjectUnits(C),U=H.year||0,W=H.quarter||0,G=H.month||0,X=H.week||H.isoWeek||0,Z=H.day||0,Q=H.hour||0,ee=H.minute||0,ie=H.second||0,te=H.millisecond||0;this._isValid=isDurationValid(H),this._milliseconds=+te+ie*1e3+ee*6e4+Q*1e3*60*60,this._days=+Z+X*7,this._months=+G+W*3+U*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(C){return C instanceof Duration}function absRound(C){return C<0?Math.round(-1*C)*-1:Math.round(C)}function compareArrays(C,H,U){var W=Math.min(C.length,H.length),G=Math.abs(C.length-H.length),X=0,Z;for(Z=0;Z<W;Z++)(U&&C[Z]!==H[Z]||!U&&toInt(C[Z])!==toInt(H[Z]))&&X++;return X+G}function offset(C,H){addFormatToken(C,0,0,function(){var U=this.utcOffset(),W="+";return U<0&&(U=-U,W="-"),W+zeroFill(~~(U/60),2)+H+zeroFill(~~U%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(C,H,U){U._useUTC=!0,U._tzm=offsetFromString(matchShortOffset,C)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(C,H){var U=(H||"").match(C),W,G,X;return U===null?null:(W=U[U.length-1]||[],G=(W+"").match(chunkOffset)||["-",0,0],X=+(G[1]*60)+toInt(G[2]),X===0?0:G[0]==="+"?X:-X)}function cloneWithOffset(C,H){var U,W;return H._isUTC?(U=H.clone(),W=(isMoment(C)||isDate$1(C)?C.valueOf():createLocal(C).valueOf())-U.valueOf(),U._d.setTime(U._d.valueOf()+W),hooks.updateOffset(U,!1),U):createLocal(C).local()}function getDateOffset(C){return-Math.round(C._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(C,H,U){var W=this._offset||0,G;if(!this.isValid())return C!=null?this:NaN;if(C!=null){if(typeof C=="string"){if(C=offsetFromString(matchShortOffset,C),C===null)return this}else Math.abs(C)<16&&!U&&(C=C*60);return!this._isUTC&&H&&(G=getDateOffset(this)),this._offset=C,this._isUTC=!0,G!=null&&this.add(G,"m"),W!==C&&(!H||this._changeInProgress?addSubtract(this,createDuration(C-W,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?W:getDateOffset(this)}function getSetZone(C,H){return C!=null?(typeof C!="string"&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}function setOffsetToUTC(C){return this.utcOffset(0,C)}function setOffsetToLocal(C){return this._isUTC&&(this.utcOffset(0,C),this._isUTC=!1,C&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var C=offsetFromString(matchOffset,this._i);C!=null?this.utcOffset(C):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(C){return this.isValid()?(C=C?createLocal(C).utcOffset():0,(this.utcOffset()-C)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$3(this._isDSTShifted))return this._isDSTShifted;var C={},H;return copyConfig(C,this),C=prepareConfig(C),C._a?(H=C._isUTC?createUTC(C._a):createLocal(C._a),this._isDSTShifted=this.isValid()&&compareArrays(C._a,H.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(C,H){var U=C,W=null,G,X,Z;return isDuration(C)?U={ms:C._milliseconds,d:C._days,M:C._months}:isNumber$2(C)||!isNaN(+C)?(U={},H?U[H]=+C:U.milliseconds=+C):(W=aspNetRegex.exec(C))?(G=W[1]==="-"?-1:1,U={y:0,d:toInt(W[DATE])*G,h:toInt(W[HOUR])*G,m:toInt(W[MINUTE])*G,s:toInt(W[SECOND])*G,ms:toInt(absRound(W[MILLISECOND]*1e3))*G}):(W=isoRegex.exec(C))?(G=W[1]==="-"?-1:1,U={y:parseIso(W[2],G),M:parseIso(W[3],G),w:parseIso(W[4],G),d:parseIso(W[5],G),h:parseIso(W[6],G),m:parseIso(W[7],G),s:parseIso(W[8],G)}):U==null?U={}:typeof U=="object"&&("from"in U||"to"in U)&&(Z=momentsDifference(createLocal(U.from),createLocal(U.to)),U={},U.ms=Z.milliseconds,U.M=Z.months),X=new Duration(U),isDuration(C)&&hasOwnProp(C,"_locale")&&(X._locale=C._locale),isDuration(C)&&hasOwnProp(C,"_isValid")&&(X._isValid=C._isValid),X}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(C,H){var U=C&&parseFloat(C.replace(",","."));return(isNaN(U)?0:U)*H}function positiveMomentsDifference(C,H){var U={};return U.months=H.month()-C.month()+(H.year()-C.year())*12,C.clone().add(U.months,"M").isAfter(H)&&--U.months,U.milliseconds=+H-+C.clone().add(U.months,"M"),U}function momentsDifference(C,H){var U;return C.isValid()&&H.isValid()?(H=cloneWithOffset(H,C),C.isBefore(H)?U=positiveMomentsDifference(C,H):(U=positiveMomentsDifference(H,C),U.milliseconds=-U.milliseconds,U.months=-U.months),U):{milliseconds:0,months:0}}function createAdder(C,H){return function(U,W){var G,X;return W!==null&&!isNaN(+W)&&(deprecateSimple(H,"moment()."+H+"(period, number) is deprecated. Please use moment()."+H+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=U,U=W,W=X),G=createDuration(U,W),addSubtract(this,G,C),this}}function addSubtract(C,H,U,W){var G=H._milliseconds,X=absRound(H._days),Z=absRound(H._months);!C.isValid()||(W=W==null?!0:W,Z&&setMonth(C,get$2(C,"Month")+Z*U),X&&set$1$1(C,"Date",get$2(C,"Date")+X*U),G&&C._d.setTime(C._d.valueOf()+G*U),W&&hooks.updateOffset(C,X||Z))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$1(C){return typeof C=="string"||C instanceof String}function isMomentInput(C){return isMoment(C)||isDate$1(C)||isString$1(C)||isNumber$2(C)||isNumberOrStringArray(C)||isMomentInputObject(C)||C===null||C===void 0}function isMomentInputObject(C){var H=isObject$a(C)&&!isObjectEmpty(C),U=!1,W=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],G,X,Z=W.length;for(G=0;G<Z;G+=1)X=W[G],U=U||hasOwnProp(C,X);return H&&U}function isNumberOrStringArray(C){var H=isArray$9(C),U=!1;return H&&(U=C.filter(function(W){return!isNumber$2(W)&&isString$1(C)}).length===0),H&&U}function isCalendarSpec(C){var H=isObject$a(C)&&!isObjectEmpty(C),U=!1,W=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],G,X;for(G=0;G<W.length;G+=1)X=W[G],U=U||hasOwnProp(C,X);return H&&U}function getCalendarFormat(C,H){var U=C.diff(H,"days",!0);return U<-6?"sameElse":U<-1?"lastWeek":U<0?"lastDay":U<1?"sameDay":U<2?"nextDay":U<7?"nextWeek":"sameElse"}function calendar$1$1(C,H){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(C=arguments[0],H=void 0):isCalendarSpec(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var U=C||createLocal(),W=cloneWithOffset(U,this).startOf("day"),G=hooks.calendarFormat(this,W)||"sameElse",X=H&&(isFunction$4(H[G])?H[G].call(this,U):H[G]);return this.format(X||this.localeData().calendar(G,this,createLocal(U)))}function clone$3(){return new Moment(this)}function isAfter(C,H){var U=isMoment(C)?C:createLocal(C);return this.isValid()&&U.isValid()?(H=normalizeUnits(H)||"millisecond",H==="millisecond"?this.valueOf()>U.valueOf():U.valueOf()<this.clone().startOf(H).valueOf()):!1}function isBefore(C,H){var U=isMoment(C)?C:createLocal(C);return this.isValid()&&U.isValid()?(H=normalizeUnits(H)||"millisecond",H==="millisecond"?this.valueOf()<U.valueOf():this.clone().endOf(H).valueOf()<U.valueOf()):!1}function isBetween(C,H,U,W){var G=isMoment(C)?C:createLocal(C),X=isMoment(H)?H:createLocal(H);return this.isValid()&&G.isValid()&&X.isValid()?(W=W||"()",(W[0]==="("?this.isAfter(G,U):!this.isBefore(G,U))&&(W[1]===")"?this.isBefore(X,U):!this.isAfter(X,U))):!1}function isSame(C,H){var U=isMoment(C)?C:createLocal(C),W;return this.isValid()&&U.isValid()?(H=normalizeUnits(H)||"millisecond",H==="millisecond"?this.valueOf()===U.valueOf():(W=U.valueOf(),this.clone().startOf(H).valueOf()<=W&&W<=this.clone().endOf(H).valueOf())):!1}function isSameOrAfter(C,H){return this.isSame(C,H)||this.isAfter(C,H)}function isSameOrBefore(C,H){return this.isSame(C,H)||this.isBefore(C,H)}function diff(C,H,U){var W,G,X;if(!this.isValid())return NaN;if(W=cloneWithOffset(C,this),!W.isValid())return NaN;switch(G=(W.utcOffset()-this.utcOffset())*6e4,H=normalizeUnits(H),H){case"year":X=monthDiff(this,W)/12;break;case"month":X=monthDiff(this,W);break;case"quarter":X=monthDiff(this,W)/3;break;case"second":X=(this-W)/1e3;break;case"minute":X=(this-W)/6e4;break;case"hour":X=(this-W)/36e5;break;case"day":X=(this-W-G)/864e5;break;case"week":X=(this-W-G)/6048e5;break;default:X=this-W}return U?X:absFloor(X)}function monthDiff(C,H){if(C.date()<H.date())return-monthDiff(H,C);var U=(H.year()-C.year())*12+(H.month()-C.month()),W=C.clone().add(U,"months"),G,X;return H-W<0?(G=C.clone().add(U-1,"months"),X=(H-W)/(W-G)):(G=C.clone().add(U+1,"months"),X=(H-W)/(G-W)),-(U+X)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString$4(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(C){if(!this.isValid())return null;var H=C!==!0,U=H?this.clone().utc():this;return U.year()<0||U.year()>9999?formatMoment(U,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$4(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(U,"Z")):formatMoment(U,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var C="moment",H="",U,W,G,X;return this.isLocal()||(C=this.utcOffset()===0?"moment.utc":"moment.parseZone",H="Z"),U="["+C+'("]',W=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",G="-MM-DD[T]HH:mm:ss.SSS",X=H+'[")]',this.format(U+W+G+X)}function format$2(C){C||(C=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var H=formatMoment(this,C);return this.localeData().postformat(H)}function from$1(C,H){return this.isValid()&&(isMoment(C)&&C.isValid()||createLocal(C).isValid())?createDuration({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()}function fromNow(C){return this.from(createLocal(),C)}function to(C,H){return this.isValid()&&(isMoment(C)&&C.isValid()||createLocal(C).isValid())?createDuration({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()}function toNow(C){return this.to(createLocal(),C)}function locale$2(C){var H;return C===void 0?this._locale._abbr:(H=getLocale(C),H!=null&&(this._locale=H),this)}var lang$1=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(C){return C===void 0?this.localeData():this.locale(C)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(C,H){return(C%H+H)%H}function localStartOfDate(C,H,U){return C<100&&C>=0?new Date(C+400,H,U)-MS_PER_400_YEARS:new Date(C,H,U).valueOf()}function utcStartOfDate(C,H,U){return C<100&&C>=0?Date.UTC(C+400,H,U)-MS_PER_400_YEARS:Date.UTC(C,H,U)}function startOf(C){var H,U;if(C=normalizeUnits(C),C===void 0||C==="millisecond"||!this.isValid())return this;switch(U=this._isUTC?utcStartOfDate:localStartOfDate,C){case"year":H=U(this.year(),0,1);break;case"quarter":H=U(this.year(),this.month()-this.month()%3,1);break;case"month":H=U(this.year(),this.month(),1);break;case"week":H=U(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":H=U(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":H=U(this.year(),this.month(),this.date());break;case"hour":H=this._d.valueOf(),H-=mod$1(H+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":H=this._d.valueOf(),H-=mod$1(H,MS_PER_MINUTE);break;case"second":H=this._d.valueOf(),H-=mod$1(H,MS_PER_SECOND);break}return this._d.setTime(H),hooks.updateOffset(this,!0),this}function endOf(C){var H,U;if(C=normalizeUnits(C),C===void 0||C==="millisecond"||!this.isValid())return this;switch(U=this._isUTC?utcStartOfDate:localStartOfDate,C){case"year":H=U(this.year()+1,0,1)-1;break;case"quarter":H=U(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=U(this.year(),this.month()+1,1)-1;break;case"week":H=U(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=U(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=U(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=MS_PER_HOUR-mod$1(H+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":H=this._d.valueOf(),H+=MS_PER_MINUTE-mod$1(H,MS_PER_MINUTE)-1;break;case"second":H=this._d.valueOf(),H+=MS_PER_SECOND-mod$1(H,MS_PER_SECOND)-1;break}return this._d.setTime(H),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$2(){var C=this;return[C.year(),C.month(),C.date(),C.hour(),C.minute(),C.second(),C.millisecond()]}function toObject(){var C=this;return{years:C.year(),months:C.month(),date:C.date(),hours:C.hours(),minutes:C.minutes(),seconds:C.seconds(),milliseconds:C.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend$3({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(C,H,U,W){var G=U._locale.erasParse(C,W,U._strict);G?getParsingFlags(U).era=G:getParsingFlags(U).invalidEra=C});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(C,H,U,W){var G;U._locale._eraYearOrdinalRegex&&(G=C.match(U._locale._eraYearOrdinalRegex)),U._locale.eraYearOrdinalParse?H[YEAR]=U._locale.eraYearOrdinalParse(C,G):H[YEAR]=parseInt(C,10)});function localeEras(C,H){var U,W,G,X=this._eras||getLocale("en")._eras;for(U=0,W=X.length;U<W;++U){switch(typeof X[U].since){case"string":G=hooks(X[U].since).startOf("day"),X[U].since=G.valueOf();break}switch(typeof X[U].until){case"undefined":X[U].until=1/0;break;case"string":G=hooks(X[U].until).startOf("day").valueOf(),X[U].until=G.valueOf();break}}return X}function localeErasParse(C,H,U){var W,G,X=this.eras(),Z,Q,ee;for(C=C.toUpperCase(),W=0,G=X.length;W<G;++W)if(Z=X[W].name.toUpperCase(),Q=X[W].abbr.toUpperCase(),ee=X[W].narrow.toUpperCase(),U)switch(H){case"N":case"NN":case"NNN":if(Q===C)return X[W];break;case"NNNN":if(Z===C)return X[W];break;case"NNNNN":if(ee===C)return X[W];break}else if([Z,Q,ee].indexOf(C)>=0)return X[W]}function localeErasConvertYear(C,H){var U=C.since<=C.until?1:-1;return H===void 0?hooks(C.since).year():hooks(C.since).year()+(H-C.offset)*U}function getEraName(){var C,H,U,W=this.localeData().eras();for(C=0,H=W.length;C<H;++C)if(U=this.clone().startOf("day").valueOf(),W[C].since<=U&&U<=W[C].until||W[C].until<=U&&U<=W[C].since)return W[C].name;return""}function getEraNarrow(){var C,H,U,W=this.localeData().eras();for(C=0,H=W.length;C<H;++C)if(U=this.clone().startOf("day").valueOf(),W[C].since<=U&&U<=W[C].until||W[C].until<=U&&U<=W[C].since)return W[C].narrow;return""}function getEraAbbr(){var C,H,U,W=this.localeData().eras();for(C=0,H=W.length;C<H;++C)if(U=this.clone().startOf("day").valueOf(),W[C].since<=U&&U<=W[C].until||W[C].until<=U&&U<=W[C].since)return W[C].abbr;return""}function getEraYear(){var C,H,U,W,G=this.localeData().eras();for(C=0,H=G.length;C<H;++C)if(U=G[C].since<=G[C].until?1:-1,W=this.clone().startOf("day").valueOf(),G[C].since<=W&&W<=G[C].until||G[C].until<=W&&W<=G[C].since)return(this.year()-hooks(G[C].since).year())*U+G[C].offset;return this.year()}function erasNameRegex(C){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),C?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(C){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),C?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(C){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),C?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(C,H){return H.erasAbbrRegex(C)}function matchEraName(C,H){return H.erasNameRegex(C)}function matchEraNarrow(C,H){return H.erasNarrowRegex(C)}function matchEraYearOrdinal(C,H){return H._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var C=[],H=[],U=[],W=[],G,X,Z=this.eras();for(G=0,X=Z.length;G<X;++G)H.push(regexEscape(Z[G].name)),C.push(regexEscape(Z[G].abbr)),U.push(regexEscape(Z[G].narrow)),W.push(regexEscape(Z[G].name)),W.push(regexEscape(Z[G].abbr)),W.push(regexEscape(Z[G].narrow));this._erasRegex=new RegExp("^("+W.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+H.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+C.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+U.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(C,H){addFormatToken(0,[C,C.length],0,H)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(C,H,U,W){H[W.substr(0,2)]=toInt(C)});addWeekParseToken(["gg","GG"],function(C,H,U,W){H[W]=hooks.parseTwoDigitYear(C)});function getSetWeekYear(C){return getSetWeekYearHelper.call(this,C,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(C){return getSetWeekYearHelper.call(this,C,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var C=this.localeData()._week;return weeksInYear(this.year(),C.dow,C.doy)}function getWeeksInWeekYear(){var C=this.localeData()._week;return weeksInYear(this.weekYear(),C.dow,C.doy)}function getSetWeekYearHelper(C,H,U,W,G){var X;return C==null?weekOfYear(this,W,G).year:(X=weeksInYear(C,W,G),H>X&&(H=X),setWeekAll.call(this,C,H,U,W,G))}function setWeekAll(C,H,U,W,G){var X=dayOfYearFromWeeks(C,H,U,W,G),Z=createUTCDate(X.year,0,X.dayOfYear);return this.year(Z.getUTCFullYear()),this.month(Z.getUTCMonth()),this.date(Z.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(C,H){H[MONTH]=(toInt(C)-1)*3});function getSetQuarter(C){return C==null?Math.ceil((this.month()+1)/3):this.month((C-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(C,H){H[DATE]=toInt(C.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(C,H,U){U._dayOfYear=toInt(C)});function getSetDayOfYear(C){var H=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return C==null?H:this.add(C-H,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$1,getSetMillisecond;for(token$1="SSSS";token$1.length<=9;token$1+="S")addRegexToken(token$1,matchUnsigned);function parseMs(C,H){H[MILLISECOND]=toInt(("0."+C)*1e3)}for(token$1="S";token$1.length<=9;token$1+="S")addParseToken(token$1,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1$1;proto.clone=clone$3;proto.diff=diff;proto.endOf=endOf;proto.format=format$2;proto.from=from$1;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang$1;proto.locale=locale$2;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray$2;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString$4;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(C){return createLocal(C*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(C){return C}var proto$1=Locale.prototype;proto$1.calendar=calendar$1;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal$1;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set$3;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1$1(C,H,U,W){var G=getLocale(),X=createUTC().set(W,H);return G[U](X,C)}function listMonthsImpl(C,H,U){if(isNumber$2(C)&&(H=C,C=void 0),C=C||"",H!=null)return get$1$1(C,H,U,"month");var W,G=[];for(W=0;W<12;W++)G[W]=get$1$1(C,W,U,"month");return G}function listWeekdaysImpl(C,H,U,W){typeof C=="boolean"?(isNumber$2(H)&&(U=H,H=void 0),H=H||""):(H=C,U=H,C=!1,isNumber$2(H)&&(U=H,H=void 0),H=H||"");var G=getLocale(),X=C?G._week.dow:0,Z,Q=[];if(U!=null)return get$1$1(H,(U+X)%7,W,"day");for(Z=0;Z<7;Z++)Q[Z]=get$1$1(H,(Z+X)%7,W,"day");return Q}function listMonths(C,H){return listMonthsImpl(C,H,"months")}function listMonthsShort(C,H){return listMonthsImpl(C,H,"monthsShort")}function listWeekdays(C,H,U){return listWeekdaysImpl(C,H,U,"weekdays")}function listWeekdaysShort(C,H,U){return listWeekdaysImpl(C,H,U,"weekdaysShort")}function listWeekdaysMin(C,H,U){return listWeekdaysImpl(C,H,U,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var H=C%10,U=toInt(C%100/10)===1?"th":H===1?"st":H===2?"nd":H===3?"rd":"th";return C+U}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs$2(){var C=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),C.milliseconds=mathAbs(C.milliseconds),C.seconds=mathAbs(C.seconds),C.minutes=mathAbs(C.minutes),C.hours=mathAbs(C.hours),C.months=mathAbs(C.months),C.years=mathAbs(C.years),this}function addSubtract$1(C,H,U,W){var G=createDuration(H,U);return C._milliseconds+=W*G._milliseconds,C._days+=W*G._days,C._months+=W*G._months,C._bubble()}function add$1(C,H){return addSubtract$1(this,C,H,1)}function subtract$1(C,H){return addSubtract$1(this,C,H,-1)}function absCeil(C){return C<0?Math.floor(C):Math.ceil(C)}function bubble(){var C=this._milliseconds,H=this._days,U=this._months,W=this._data,G,X,Z,Q,ee;return C>=0&&H>=0&&U>=0||C<=0&&H<=0&&U<=0||(C+=absCeil(monthsToDays(U)+H)*864e5,H=0,U=0),W.milliseconds=C%1e3,G=absFloor(C/1e3),W.seconds=G%60,X=absFloor(G/60),W.minutes=X%60,Z=absFloor(X/60),W.hours=Z%24,H+=absFloor(Z/24),ee=absFloor(daysToMonths(H)),U+=ee,H-=absCeil(monthsToDays(ee)),Q=absFloor(U/12),U%=12,W.days=H,W.months=U,W.years=Q,this}function daysToMonths(C){return C*4800/146097}function monthsToDays(C){return C*146097/4800}function as(C){if(!this.isValid())return NaN;var H,U,W=this._milliseconds;if(C=normalizeUnits(C),C==="month"||C==="quarter"||C==="year")switch(H=this._days+W/864e5,U=this._months+daysToMonths(H),C){case"month":return U;case"quarter":return U/3;case"year":return U/12}else switch(H=this._days+Math.round(monthsToDays(this._months)),C){case"week":return H/7+W/6048e5;case"day":return H+W/864e5;case"hour":return H*24+W/36e5;case"minute":return H*1440+W/6e4;case"second":return H*86400+W/1e3;case"millisecond":return Math.floor(H*864e5)+W;default:throw new Error("Unknown unit "+C)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(C){return function(){return this.as(C)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1$1(){return createDuration(this)}function get$2$1(C){return C=normalizeUnits(C),this.isValid()?this[C+"s"]():NaN}function makeGetter(C){return function(){return this.isValid()?this._data[C]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(C,H,U,W,G){return G.relativeTime(H||1,!!U,C,W)}function relativeTime$1(C,H,U,W){var G=createDuration(C).abs(),X=round(G.as("s")),Z=round(G.as("m")),Q=round(G.as("h")),ee=round(G.as("d")),ie=round(G.as("M")),te=round(G.as("w")),ne=round(G.as("y")),ae=X<=U.ss&&["s",X]||X<U.s&&["ss",X]||Z<=1&&["m"]||Z<U.m&&["mm",Z]||Q<=1&&["h"]||Q<U.h&&["hh",Q]||ee<=1&&["d"]||ee<U.d&&["dd",ee];return U.w!=null&&(ae=ae||te<=1&&["w"]||te<U.w&&["ww",te]),ae=ae||ie<=1&&["M"]||ie<U.M&&["MM",ie]||ne<=1&&["y"]||["yy",ne],ae[2]=H,ae[3]=+C>0,ae[4]=W,substituteTimeAgo.apply(null,ae)}function getSetRelativeTimeRounding(C){return C===void 0?round:typeof C=="function"?(round=C,!0):!1}function getSetRelativeTimeThreshold(C,H){return thresholds[C]===void 0?!1:H===void 0?thresholds[C]:(thresholds[C]=H,C==="s"&&(thresholds.ss=H-1),!0)}function humanize(C,H){if(!this.isValid())return this.localeData().invalidDate();var U=!1,W=thresholds,G,X;return typeof C=="object"&&(H=C,C=!1),typeof C=="boolean"&&(U=C),typeof H=="object"&&(W=Object.assign({},thresholds,H),H.s!=null&&H.ss==null&&(W.ss=H.s-1)),G=this.localeData(),X=relativeTime$1(this,!U,W,G),U&&(X=G.pastFuture(+this,X)),G.postformat(X)}var abs$1$1=Math.abs;function sign$1(C){return(C>0)-(C<0)||+C}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var C=abs$1$1(this._milliseconds)/1e3,H=abs$1$1(this._days),U=abs$1$1(this._months),W,G,X,Z,Q=this.asSeconds(),ee,ie,te,ne;return Q?(W=absFloor(C/60),G=absFloor(W/60),C%=60,W%=60,X=absFloor(U/12),U%=12,Z=C?C.toFixed(3).replace(/\.?0+$/,""):"",ee=Q<0?"-":"",ie=sign$1(this._months)!==sign$1(Q)?"-":"",te=sign$1(this._days)!==sign$1(Q)?"-":"",ne=sign$1(this._milliseconds)!==sign$1(Q)?"-":"",ee+"P"+(X?ie+X+"Y":"")+(U?ie+U+"M":"")+(H?te+H+"D":"")+(G||W||C?"T":"")+(G?ne+G+"H":"")+(W?ne+W+"M":"")+(C?ne+Z+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$2;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2$1;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale$2;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang$1;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(C,H,U){U._d=new Date(parseFloat(C)*1e3)});addParseToken("x",function(C,H,U){U._d=new Date(toInt(C))});//! moment.js
|
||
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min$3;hooks.max=max$3;hooks.now=now$1;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var dist={};Object.defineProperty(dist,"__esModule",{value:!0});var sanitizeUrl_1=dist.sanitizeUrl=void 0,invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,htmlCtrlEntityRegex=/&(newline|tab);/gi,ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,urlSchemeRegex=/^.+(:|:)/gim,relativeFirstCharacters=[".","/"];function isRelativeUrlWithoutProtocol(C){return relativeFirstCharacters.indexOf(C[0])>-1}function decodeHtmlCharacters(C){return C.replace(htmlEntitiesRegex,function(H,U){return String.fromCharCode(U)})}function sanitizeUrl(C){var H=decodeHtmlCharacters(C||"").replace(htmlCtrlEntityRegex,"").replace(ctrlCharactersRegex,"").trim();if(!H)return"about:blank";if(isRelativeUrlWithoutProtocol(H))return H;var U=H.match(urlSchemeRegex);if(!U)return H;var W=U[0];return invalidProtocolRegex.test(W)?"about:blank":H}sanitizeUrl_1=dist.sanitizeUrl=sanitizeUrl;function ascending$1(C,H){return C==null||H==null?NaN:C<H?-1:C>H?1:C>=H?0:NaN}function descending$1(C,H){return C==null||H==null?NaN:H<C?-1:H>C?1:H>=C?0:NaN}function bisector(C){let H,U,W;C.length!==2?(H=ascending$1,U=(Q,ee)=>ascending$1(C(Q),ee),W=(Q,ee)=>C(Q)-ee):(H=C===ascending$1||C===descending$1?C:zero$1,U=C,W=C);function G(Q,ee,ie=0,te=Q.length){if(ie<te){if(H(ee,ee)!==0)return te;do{const ne=ie+te>>>1;U(Q[ne],ee)<0?ie=ne+1:te=ne}while(ie<te)}return ie}function X(Q,ee,ie=0,te=Q.length){if(ie<te){if(H(ee,ee)!==0)return te;do{const ne=ie+te>>>1;U(Q[ne],ee)<=0?ie=ne+1:te=ne}while(ie<te)}return ie}function Z(Q,ee,ie=0,te=Q.length){const ne=G(Q,ee,ie,te-1);return ne>ie&&W(Q[ne-1],ee)>-W(Q[ne],ee)?ne-1:ne}return{left:G,center:Z,right:X}}function zero$1(){return 0}function number$3(C){return C===null?NaN:+C}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right;bisector(number$3).center;const bisect=bisectRight;class InternMap extends Map{constructor(H,U=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:U}}),H!=null)for(const[W,G]of H)this.set(W,G)}get(H){return super.get(intern_get(this,H))}has(H){return super.has(intern_get(this,H))}set(H,U){return super.set(intern_set(this,H),U)}delete(H){return super.delete(intern_delete(this,H))}}function intern_get({_intern:C,_key:H},U){const W=H(U);return C.has(W)?C.get(W):U}function intern_set({_intern:C,_key:H},U){const W=H(U);return C.has(W)?C.get(W):(C.set(W,U),U)}function intern_delete({_intern:C,_key:H},U){const W=H(U);return C.has(W)&&(U=C.get(W),C.delete(W)),U}function keyof(C){return C!==null&&typeof C=="object"?C.valueOf():C}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(C,H,U){const W=(H-C)/Math.max(0,U),G=Math.floor(Math.log10(W)),X=W/Math.pow(10,G),Z=X>=e10?10:X>=e5?5:X>=e2?2:1;let Q,ee,ie;return G<0?(ie=Math.pow(10,-G)/Z,Q=Math.round(C*ie),ee=Math.round(H*ie),Q/ie<C&&++Q,ee/ie>H&&--ee,ie=-ie):(ie=Math.pow(10,G)*Z,Q=Math.round(C/ie),ee=Math.round(H/ie),Q*ie<C&&++Q,ee*ie>H&&--ee),ee<Q&&.5<=U&&U<2?tickSpec(C,H,U*2):[Q,ee,ie]}function ticks(C,H,U){if(H=+H,C=+C,U=+U,!(U>0))return[];if(C===H)return[C];const W=H<C,[G,X,Z]=W?tickSpec(H,C,U):tickSpec(C,H,U);if(!(X>=G))return[];const Q=X-G+1,ee=new Array(Q);if(W)if(Z<0)for(let ie=0;ie<Q;++ie)ee[ie]=(X-ie)/-Z;else for(let ie=0;ie<Q;++ie)ee[ie]=(X-ie)*Z;else if(Z<0)for(let ie=0;ie<Q;++ie)ee[ie]=(G+ie)/-Z;else for(let ie=0;ie<Q;++ie)ee[ie]=(G+ie)*Z;return ee}function tickIncrement(C,H,U){return H=+H,C=+C,U=+U,tickSpec(C,H,U)[2]}function tickStep(C,H,U){H=+H,C=+C,U=+U;const W=H<C,G=W?tickIncrement(H,C,U):tickIncrement(C,H,U);return(W?-1:1)*(G<0?1/-G:G)}function max$2(C,H){let U;if(H===void 0)for(const W of C)W!=null&&(U<W||U===void 0&&W>=W)&&(U=W);else{let W=-1;for(let G of C)(G=H(G,++W,C))!=null&&(U<G||U===void 0&&G>=G)&&(U=G)}return U}function min$2(C,H){let U;if(H===void 0)for(const W of C)W!=null&&(U>W||U===void 0&&W>=W)&&(U=W);else{let W=-1;for(let G of C)(G=H(G,++W,C))!=null&&(U>G||U===void 0&&G>=G)&&(U=G)}return U}function identity$4(C){return C}var top=1,right=2,bottom=3,left=4,epsilon$2=1e-6;function translateX(C){return"translate("+C+",0)"}function translateY(C){return"translate(0,"+C+")"}function number$2(C){return H=>+C(H)}function center(C,H){return H=Math.max(0,C.bandwidth()-H*2)/2,C.round()&&(H=Math.round(H)),U=>+C(U)+H}function entering(){return!this.__axis}function axis(C,H){var U=[],W=null,G=null,X=6,Z=6,Q=3,ee=typeof window<"u"&&window.devicePixelRatio>1?0:.5,ie=C===top||C===left?-1:1,te=C===left||C===right?"x":"y",ne=C===top||C===bottom?translateX:translateY;function ae(oe){var se=W==null?H.ticks?H.ticks.apply(H,U):H.domain():W,le=G==null?H.tickFormat?H.tickFormat.apply(H,U):identity$4:G,ce=Math.max(X,0)+Q,ue=H.range(),de=+ue[0]+ee,ve=+ue[ue.length-1]+ee,ge=(H.bandwidth?center:number$2)(H.copy(),ee),he=oe.selection?oe.selection():oe,me=he.selectAll(".domain").data([null]),_e=he.selectAll(".tick").data(se,H).order(),be=_e.exit(),pe=_e.enter().append("g").attr("class","tick"),fe=_e.select("line"),ye=_e.select("text");me=me.merge(me.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_e=_e.merge(pe),fe=fe.merge(pe.append("line").attr("stroke","currentColor").attr(te+"2",ie*X)),ye=ye.merge(pe.append("text").attr("fill","currentColor").attr(te,ie*ce).attr("dy",C===top?"0em":C===bottom?"0.71em":"0.32em")),oe!==he&&(me=me.transition(oe),_e=_e.transition(oe),fe=fe.transition(oe),ye=ye.transition(oe),be=be.transition(oe).attr("opacity",epsilon$2).attr("transform",function($e){return isFinite($e=ge($e))?ne($e+ee):this.getAttribute("transform")}),pe.attr("opacity",epsilon$2).attr("transform",function($e){var we=this.parentNode.__axis;return ne((we&&isFinite(we=we($e))?we:ge($e))+ee)})),be.remove(),me.attr("d",C===left||C===right?Z?"M"+ie*Z+","+de+"H"+ee+"V"+ve+"H"+ie*Z:"M"+ee+","+de+"V"+ve:Z?"M"+de+","+ie*Z+"V"+ee+"H"+ve+"V"+ie*Z:"M"+de+","+ee+"H"+ve),_e.attr("opacity",1).attr("transform",function($e){return ne(ge($e)+ee)}),fe.attr(te+"2",ie*X),ye.attr(te,ie*ce).text(le),he.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",C===right?"start":C===left?"end":"middle"),he.each(function(){this.__axis=ge})}return ae.scale=function(oe){return arguments.length?(H=oe,ae):H},ae.ticks=function(){return U=Array.from(arguments),ae},ae.tickArguments=function(oe){return arguments.length?(U=oe==null?[]:Array.from(oe),ae):U.slice()},ae.tickValues=function(oe){return arguments.length?(W=oe==null?null:Array.from(oe),ae):W&&W.slice()},ae.tickFormat=function(oe){return arguments.length?(G=oe,ae):G},ae.tickSize=function(oe){return arguments.length?(X=Z=+oe,ae):X},ae.tickSizeInner=function(oe){return arguments.length?(X=+oe,ae):X},ae.tickSizeOuter=function(oe){return arguments.length?(Z=+oe,ae):Z},ae.tickPadding=function(oe){return arguments.length?(Q=+oe,ae):Q},ae.offset=function(oe){return arguments.length?(ee=+oe,ae):ee},ae}function axisTop(C){return axis(top,C)}function axisBottom(C){return axis(bottom,C)}var noop$1={value:()=>{}};function dispatch(){for(var C=0,H=arguments.length,U={},W;C<H;++C){if(!(W=arguments[C]+"")||W in U||/[\s.]/.test(W))throw new Error("illegal type: "+W);U[W]=[]}return new Dispatch(U)}function Dispatch(C){this._=C}function parseTypenames$1(C,H){return C.trim().split(/^|\s+/).map(function(U){var W="",G=U.indexOf(".");if(G>=0&&(W=U.slice(G+1),U=U.slice(0,G)),U&&!H.hasOwnProperty(U))throw new Error("unknown type: "+U);return{type:U,name:W}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(C,H){var U=this._,W=parseTypenames$1(C+"",U),G,X=-1,Z=W.length;if(arguments.length<2){for(;++X<Z;)if((G=(C=W[X]).type)&&(G=get$1(U[G],C.name)))return G;return}if(H!=null&&typeof H!="function")throw new Error("invalid callback: "+H);for(;++X<Z;)if(G=(C=W[X]).type)U[G]=set$2(U[G],C.name,H);else if(H==null)for(G in U)U[G]=set$2(U[G],C.name,null);return this},copy:function(){var C={},H=this._;for(var U in H)C[U]=H[U].slice();return new Dispatch(C)},call:function(C,H){if((G=arguments.length-2)>0)for(var U=new Array(G),W=0,G,X;W<G;++W)U[W]=arguments[W+2];if(!this._.hasOwnProperty(C))throw new Error("unknown type: "+C);for(X=this._[C],W=0,G=X.length;W<G;++W)X[W].value.apply(H,U)},apply:function(C,H,U){if(!this._.hasOwnProperty(C))throw new Error("unknown type: "+C);for(var W=this._[C],G=0,X=W.length;G<X;++G)W[G].value.apply(H,U)}};function get$1(C,H){for(var U=0,W=C.length,G;U<W;++U)if((G=C[U]).name===H)return G.value}function set$2(C,H,U){for(var W=0,G=C.length;W<G;++W)if(C[W].name===H){C[W]=noop$1,C=C.slice(0,W).concat(C.slice(W+1));break}return U!=null&&C.push({name:H,value:U}),C}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(C){var H=C+="",U=H.indexOf(":");return U>=0&&(H=C.slice(0,U))!=="xmlns"&&(C=C.slice(U+1)),namespaces.hasOwnProperty(H)?{space:namespaces[H],local:C}:C}function creatorInherit(C){return function(){var H=this.ownerDocument,U=this.namespaceURI;return U===xhtml&&H.documentElement.namespaceURI===xhtml?H.createElement(C):H.createElementNS(U,C)}}function creatorFixed(C){return function(){return this.ownerDocument.createElementNS(C.space,C.local)}}function creator(C){var H=namespace(C);return(H.local?creatorFixed:creatorInherit)(H)}function none(){}function selector(C){return C==null?none:function(){return this.querySelector(C)}}function selection_select(C){typeof C!="function"&&(C=selector(C));for(var H=this._groups,U=H.length,W=new Array(U),G=0;G<U;++G)for(var X=H[G],Z=X.length,Q=W[G]=new Array(Z),ee,ie,te=0;te<Z;++te)(ee=X[te])&&(ie=C.call(ee,ee.__data__,te,X))&&("__data__"in ee&&(ie.__data__=ee.__data__),Q[te]=ie);return new Selection$1(W,this._parents)}function array$1(C){return C==null?[]:Array.isArray(C)?C:Array.from(C)}function empty(){return[]}function selectorAll(C){return C==null?empty:function(){return this.querySelectorAll(C)}}function arrayAll(C){return function(){return array$1(C.apply(this,arguments))}}function selection_selectAll(C){typeof C=="function"?C=arrayAll(C):C=selectorAll(C);for(var H=this._groups,U=H.length,W=[],G=[],X=0;X<U;++X)for(var Z=H[X],Q=Z.length,ee,ie=0;ie<Q;++ie)(ee=Z[ie])&&(W.push(C.call(ee,ee.__data__,ie,Z)),G.push(ee));return new Selection$1(W,G)}function matcher(C){return function(){return this.matches(C)}}function childMatcher(C){return function(H){return H.matches(C)}}var find=Array.prototype.find;function childFind(C){return function(){return find.call(this.children,C)}}function childFirst(){return this.firstElementChild}function selection_selectChild(C){return this.select(C==null?childFirst:childFind(typeof C=="function"?C:childMatcher(C)))}var filter$3=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(C){return function(){return filter$3.call(this.children,C)}}function selection_selectChildren(C){return this.selectAll(C==null?children:childrenFilter(typeof C=="function"?C:childMatcher(C)))}function selection_filter(C){typeof C!="function"&&(C=matcher(C));for(var H=this._groups,U=H.length,W=new Array(U),G=0;G<U;++G)for(var X=H[G],Z=X.length,Q=W[G]=[],ee,ie=0;ie<Z;++ie)(ee=X[ie])&&C.call(ee,ee.__data__,ie,X)&&Q.push(ee);return new Selection$1(W,this._parents)}function sparse(C){return new Array(C.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(C,H){this.ownerDocument=C.ownerDocument,this.namespaceURI=C.namespaceURI,this._next=null,this._parent=C,this.__data__=H}EnterNode.prototype={constructor:EnterNode,appendChild:function(C){return this._parent.insertBefore(C,this._next)},insertBefore:function(C,H){return this._parent.insertBefore(C,H)},querySelector:function(C){return this._parent.querySelector(C)},querySelectorAll:function(C){return this._parent.querySelectorAll(C)}};function constant$4(C){return function(){return C}}function bindIndex(C,H,U,W,G,X){for(var Z=0,Q,ee=H.length,ie=X.length;Z<ie;++Z)(Q=H[Z])?(Q.__data__=X[Z],W[Z]=Q):U[Z]=new EnterNode(C,X[Z]);for(;Z<ee;++Z)(Q=H[Z])&&(G[Z]=Q)}function bindKey(C,H,U,W,G,X,Z){var Q,ee,ie=new Map,te=H.length,ne=X.length,ae=new Array(te),oe;for(Q=0;Q<te;++Q)(ee=H[Q])&&(ae[Q]=oe=Z.call(ee,ee.__data__,Q,H)+"",ie.has(oe)?G[Q]=ee:ie.set(oe,ee));for(Q=0;Q<ne;++Q)oe=Z.call(C,X[Q],Q,X)+"",(ee=ie.get(oe))?(W[Q]=ee,ee.__data__=X[Q],ie.delete(oe)):U[Q]=new EnterNode(C,X[Q]);for(Q=0;Q<te;++Q)(ee=H[Q])&&ie.get(ae[Q])===ee&&(G[Q]=ee)}function datum(C){return C.__data__}function selection_data(C,H){if(!arguments.length)return Array.from(this,datum);var U=H?bindKey:bindIndex,W=this._parents,G=this._groups;typeof C!="function"&&(C=constant$4(C));for(var X=G.length,Z=new Array(X),Q=new Array(X),ee=new Array(X),ie=0;ie<X;++ie){var te=W[ie],ne=G[ie],ae=ne.length,oe=arraylike(C.call(te,te&&te.__data__,ie,W)),se=oe.length,le=Q[ie]=new Array(se),ce=Z[ie]=new Array(se),ue=ee[ie]=new Array(ae);U(te,ne,le,ce,ue,oe,H);for(var de=0,ve=0,ge,he;de<se;++de)if(ge=le[de]){for(de>=ve&&(ve=de+1);!(he=ce[ve])&&++ve<se;);ge._next=he||null}}return Z=new Selection$1(Z,W),Z._enter=Q,Z._exit=ee,Z}function arraylike(C){return typeof C=="object"&&"length"in C?C:Array.from(C)}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(C,H,U){var W=this.enter(),G=this,X=this.exit();return typeof C=="function"?(W=C(W),W&&(W=W.selection())):W=W.append(C+""),H!=null&&(G=H(G),G&&(G=G.selection())),U==null?X.remove():U(X),W&&G?W.merge(G).order():G}function selection_merge(C){for(var H=C.selection?C.selection():C,U=this._groups,W=H._groups,G=U.length,X=W.length,Z=Math.min(G,X),Q=new Array(G),ee=0;ee<Z;++ee)for(var ie=U[ee],te=W[ee],ne=ie.length,ae=Q[ee]=new Array(ne),oe,se=0;se<ne;++se)(oe=ie[se]||te[se])&&(ae[se]=oe);for(;ee<G;++ee)Q[ee]=U[ee];return new Selection$1(Q,this._parents)}function selection_order(){for(var C=this._groups,H=-1,U=C.length;++H<U;)for(var W=C[H],G=W.length-1,X=W[G],Z;--G>=0;)(Z=W[G])&&(X&&Z.compareDocumentPosition(X)^4&&X.parentNode.insertBefore(Z,X),X=Z);return this}function selection_sort(C){C||(C=ascending);function H(ne,ae){return ne&&ae?C(ne.__data__,ae.__data__):!ne-!ae}for(var U=this._groups,W=U.length,G=new Array(W),X=0;X<W;++X){for(var Z=U[X],Q=Z.length,ee=G[X]=new Array(Q),ie,te=0;te<Q;++te)(ie=Z[te])&&(ee[te]=ie);ee.sort(H)}return new Selection$1(G,this._parents).order()}function ascending(C,H){return C<H?-1:C>H?1:C>=H?0:NaN}function selection_call(){var C=arguments[0];return arguments[0]=this,C.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var C=this._groups,H=0,U=C.length;H<U;++H)for(var W=C[H],G=0,X=W.length;G<X;++G){var Z=W[G];if(Z)return Z}return null}function selection_size(){let C=0;for(const H of this)++C;return C}function selection_empty(){return!this.node()}function selection_each(C){for(var H=this._groups,U=0,W=H.length;U<W;++U)for(var G=H[U],X=0,Z=G.length,Q;X<Z;++X)(Q=G[X])&&C.call(Q,Q.__data__,X,G);return this}function attrRemove$1(C){return function(){this.removeAttribute(C)}}function attrRemoveNS$1(C){return function(){this.removeAttributeNS(C.space,C.local)}}function attrConstant$1(C,H){return function(){this.setAttribute(C,H)}}function attrConstantNS$1(C,H){return function(){this.setAttributeNS(C.space,C.local,H)}}function attrFunction$1(C,H){return function(){var U=H.apply(this,arguments);U==null?this.removeAttribute(C):this.setAttribute(C,U)}}function attrFunctionNS$1(C,H){return function(){var U=H.apply(this,arguments);U==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,U)}}function selection_attr(C,H){var U=namespace(C);if(arguments.length<2){var W=this.node();return U.local?W.getAttributeNS(U.space,U.local):W.getAttribute(U)}return this.each((H==null?U.local?attrRemoveNS$1:attrRemove$1:typeof H=="function"?U.local?attrFunctionNS$1:attrFunction$1:U.local?attrConstantNS$1:attrConstant$1)(U,H))}function defaultView(C){return C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView}function styleRemove$1(C){return function(){this.style.removeProperty(C)}}function styleConstant$1(C,H,U){return function(){this.style.setProperty(C,H,U)}}function styleFunction$1(C,H,U){return function(){var W=H.apply(this,arguments);W==null?this.style.removeProperty(C):this.style.setProperty(C,W,U)}}function selection_style(C,H,U){return arguments.length>1?this.each((H==null?styleRemove$1:typeof H=="function"?styleFunction$1:styleConstant$1)(C,H,U==null?"":U)):styleValue(this.node(),C)}function styleValue(C,H){return C.style.getPropertyValue(H)||defaultView(C).getComputedStyle(C,null).getPropertyValue(H)}function propertyRemove(C){return function(){delete this[C]}}function propertyConstant(C,H){return function(){this[C]=H}}function propertyFunction(C,H){return function(){var U=H.apply(this,arguments);U==null?delete this[C]:this[C]=U}}function selection_property(C,H){return arguments.length>1?this.each((H==null?propertyRemove:typeof H=="function"?propertyFunction:propertyConstant)(C,H)):this.node()[C]}function classArray(C){return C.trim().split(/^|\s+/)}function classList(C){return C.classList||new ClassList(C)}function ClassList(C){this._node=C,this._names=classArray(C.getAttribute("class")||"")}ClassList.prototype={add:function(C){var H=this._names.indexOf(C);H<0&&(this._names.push(C),this._node.setAttribute("class",this._names.join(" ")))},remove:function(C){var H=this._names.indexOf(C);H>=0&&(this._names.splice(H,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(C){return this._names.indexOf(C)>=0}};function classedAdd(C,H){for(var U=classList(C),W=-1,G=H.length;++W<G;)U.add(H[W])}function classedRemove(C,H){for(var U=classList(C),W=-1,G=H.length;++W<G;)U.remove(H[W])}function classedTrue(C){return function(){classedAdd(this,C)}}function classedFalse(C){return function(){classedRemove(this,C)}}function classedFunction(C,H){return function(){(H.apply(this,arguments)?classedAdd:classedRemove)(this,C)}}function selection_classed(C,H){var U=classArray(C+"");if(arguments.length<2){for(var W=classList(this.node()),G=-1,X=U.length;++G<X;)if(!W.contains(U[G]))return!1;return!0}return this.each((typeof H=="function"?classedFunction:H?classedTrue:classedFalse)(U,H))}function textRemove(){this.textContent=""}function textConstant$1(C){return function(){this.textContent=C}}function textFunction$1(C){return function(){var H=C.apply(this,arguments);this.textContent=H==null?"":H}}function selection_text(C){return arguments.length?this.each(C==null?textRemove:(typeof C=="function"?textFunction$1:textConstant$1)(C)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(C){return function(){this.innerHTML=C}}function htmlFunction(C){return function(){var H=C.apply(this,arguments);this.innerHTML=H==null?"":H}}function selection_html(C){return arguments.length?this.each(C==null?htmlRemove:(typeof C=="function"?htmlFunction:htmlConstant)(C)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(C){var H=typeof C=="function"?C:creator(C);return this.select(function(){return this.appendChild(H.apply(this,arguments))})}function constantNull(){return null}function selection_insert(C,H){var U=typeof C=="function"?C:creator(C),W=H==null?constantNull:typeof H=="function"?H:selector(H);return this.select(function(){return this.insertBefore(U.apply(this,arguments),W.apply(this,arguments)||null)})}function remove(){var C=this.parentNode;C&&C.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var C=this.cloneNode(!1),H=this.parentNode;return H?H.insertBefore(C,this.nextSibling):C}function selection_cloneDeep(){var C=this.cloneNode(!0),H=this.parentNode;return H?H.insertBefore(C,this.nextSibling):C}function selection_clone(C){return this.select(C?selection_cloneDeep:selection_cloneShallow)}function selection_datum(C){return arguments.length?this.property("__data__",C):this.node().__data__}function contextListener(C){return function(H){C.call(this,H,this.__data__)}}function parseTypenames(C){return C.trim().split(/^|\s+/).map(function(H){var U="",W=H.indexOf(".");return W>=0&&(U=H.slice(W+1),H=H.slice(0,W)),{type:H,name:U}})}function onRemove(C){return function(){var H=this.__on;if(!!H){for(var U=0,W=-1,G=H.length,X;U<G;++U)X=H[U],(!C.type||X.type===C.type)&&X.name===C.name?this.removeEventListener(X.type,X.listener,X.options):H[++W]=X;++W?H.length=W:delete this.__on}}}function onAdd(C,H,U){return function(){var W=this.__on,G,X=contextListener(H);if(W){for(var Z=0,Q=W.length;Z<Q;++Z)if((G=W[Z]).type===C.type&&G.name===C.name){this.removeEventListener(G.type,G.listener,G.options),this.addEventListener(G.type,G.listener=X,G.options=U),G.value=H;return}}this.addEventListener(C.type,X,U),G={type:C.type,name:C.name,value:H,listener:X,options:U},W?W.push(G):this.__on=[G]}}function selection_on(C,H,U){var W=parseTypenames(C+""),G,X=W.length,Z;if(arguments.length<2){var Q=this.node().__on;if(Q){for(var ee=0,ie=Q.length,te;ee<ie;++ee)for(G=0,te=Q[ee];G<X;++G)if((Z=W[G]).type===te.type&&Z.name===te.name)return te.value}return}for(Q=H?onAdd:onRemove,G=0;G<X;++G)this.each(Q(W[G],H,U));return this}function dispatchEvent(C,H,U){var W=defaultView(C),G=W.CustomEvent;typeof G=="function"?G=new G(H,U):(G=W.document.createEvent("Event"),U?(G.initEvent(H,U.bubbles,U.cancelable),G.detail=U.detail):G.initEvent(H,!1,!1)),C.dispatchEvent(G)}function dispatchConstant(C,H){return function(){return dispatchEvent(this,C,H)}}function dispatchFunction(C,H){return function(){return dispatchEvent(this,C,H.apply(this,arguments))}}function selection_dispatch(C,H){return this.each((typeof H=="function"?dispatchFunction:dispatchConstant)(C,H))}function*selection_iterator(){for(var C=this._groups,H=0,U=C.length;H<U;++H)for(var W=C[H],G=0,X=W.length,Z;G<X;++G)(Z=W[G])&&(yield Z)}var root$9=[null];function Selection$1(C,H){this._groups=C,this._parents=H}function selection(){return new Selection$1([[document.documentElement]],root$9)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(C){return typeof C=="string"?new Selection$1([[document.querySelector(C)]],[document.documentElement]):new Selection$1([[C]],root$9)}function selectAll(C){return typeof C=="string"?new Selection$1([document.querySelectorAll(C)],[document.documentElement]):new Selection$1([array$1(C)],root$9)}function define(C,H,U){C.prototype=H.prototype=U,U.constructor=C}function extend$2(C,H){var U=Object.create(C.prototype);for(var W in H)U[W]=H[W];return U}function Color$2(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color$2,color,{copy(C){return Object.assign(new this.constructor,this,C)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(C){var H,U;return C=(C+"").trim().toLowerCase(),(H=reHex.exec(C))?(U=H[1].length,H=parseInt(H[1],16),U===6?rgbn(H):U===3?new Rgb(H>>8&15|H>>4&240,H>>4&15|H&240,(H&15)<<4|H&15,1):U===8?rgba$2(H>>24&255,H>>16&255,H>>8&255,(H&255)/255):U===4?rgba$2(H>>12&15|H>>8&240,H>>8&15|H>>4&240,H>>4&15|H&240,((H&15)<<4|H&15)/255):null):(H=reRgbInteger.exec(C))?new Rgb(H[1],H[2],H[3],1):(H=reRgbPercent.exec(C))?new Rgb(H[1]*255/100,H[2]*255/100,H[3]*255/100,1):(H=reRgbaInteger.exec(C))?rgba$2(H[1],H[2],H[3],H[4]):(H=reRgbaPercent.exec(C))?rgba$2(H[1]*255/100,H[2]*255/100,H[3]*255/100,H[4]):(H=reHslPercent.exec(C))?hsla(H[1],H[2]/100,H[3]/100,1):(H=reHslaPercent.exec(C))?hsla(H[1],H[2]/100,H[3]/100,H[4]):named.hasOwnProperty(C)?rgbn(named[C]):C==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(C){return new Rgb(C>>16&255,C>>8&255,C&255,1)}function rgba$2(C,H,U,W){return W<=0&&(C=H=U=NaN),new Rgb(C,H,U,W)}function rgbConvert(C){return C instanceof Color$2||(C=color(C)),C?(C=C.rgb(),new Rgb(C.r,C.g,C.b,C.opacity)):new Rgb}function rgb(C,H,U,W){return arguments.length===1?rgbConvert(C):new Rgb(C,H,U,W==null?1:W)}function Rgb(C,H,U,W){this.r=+C,this.g=+H,this.b=+U,this.opacity=+W}define(Rgb,rgb,extend$2(Color$2,{brighter(C){return C=C==null?brighter:Math.pow(brighter,C),new Rgb(this.r*C,this.g*C,this.b*C,this.opacity)},darker(C){return C=C==null?darker:Math.pow(darker,C),new Rgb(this.r*C,this.g*C,this.b*C,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const C=clampa(this.opacity);return`${C===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${C===1?")":`, ${C})`}`}function clampa(C){return isNaN(C)?1:Math.max(0,Math.min(1,C))}function clampi(C){return Math.max(0,Math.min(255,Math.round(C)||0))}function hex(C){return C=clampi(C),(C<16?"0":"")+C.toString(16)}function hsla(C,H,U,W){return W<=0?C=H=U=NaN:U<=0||U>=1?C=H=NaN:H<=0&&(C=NaN),new Hsl(C,H,U,W)}function hslConvert(C){if(C instanceof Hsl)return new Hsl(C.h,C.s,C.l,C.opacity);if(C instanceof Color$2||(C=color(C)),!C)return new Hsl;if(C instanceof Hsl)return C;C=C.rgb();var H=C.r/255,U=C.g/255,W=C.b/255,G=Math.min(H,U,W),X=Math.max(H,U,W),Z=NaN,Q=X-G,ee=(X+G)/2;return Q?(H===X?Z=(U-W)/Q+(U<W)*6:U===X?Z=(W-H)/Q+2:Z=(H-U)/Q+4,Q/=ee<.5?X+G:2-X-G,Z*=60):Q=ee>0&&ee<1?0:Z,new Hsl(Z,Q,ee,C.opacity)}function hsl(C,H,U,W){return arguments.length===1?hslConvert(C):new Hsl(C,H,U,W==null?1:W)}function Hsl(C,H,U,W){this.h=+C,this.s=+H,this.l=+U,this.opacity=+W}define(Hsl,hsl,extend$2(Color$2,{brighter(C){return C=C==null?brighter:Math.pow(brighter,C),new Hsl(this.h,this.s,this.l*C,this.opacity)},darker(C){return C=C==null?darker:Math.pow(darker,C),new Hsl(this.h,this.s,this.l*C,this.opacity)},rgb(){var C=this.h%360+(this.h<0)*360,H=isNaN(C)||isNaN(this.s)?0:this.s,U=this.l,W=U+(U<.5?U:1-U)*H,G=2*U-W;return new Rgb(hsl2rgb(C>=240?C-240:C+120,G,W),hsl2rgb(C,G,W),hsl2rgb(C<120?C+240:C-120,G,W),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const C=clampa(this.opacity);return`${C===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${C===1?")":`, ${C})`}`}}));function clamph(C){return C=(C||0)%360,C<0?C+360:C}function clampt(C){return Math.max(0,Math.min(1,C||0))}function hsl2rgb(C,H,U){return(C<60?H+(U-H)*C/60:C<180?U:C<240?H+(U-H)*(240-C)/60:H)*255}const radians=Math.PI/180,degrees$1=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(C){if(C instanceof Lab)return new Lab(C.l,C.a,C.b,C.opacity);if(C instanceof Hcl)return hcl2lab(C);C instanceof Rgb||(C=rgbConvert(C));var H=rgb2lrgb(C.r),U=rgb2lrgb(C.g),W=rgb2lrgb(C.b),G=xyz2lab((.2225045*H+.7168786*U+.0606169*W)/Yn),X,Z;return H===U&&U===W?X=Z=G:(X=xyz2lab((.4360747*H+.3850649*U+.1430804*W)/Xn),Z=xyz2lab((.0139322*H+.0971045*U+.7141733*W)/Zn)),new Lab(116*G-16,500*(X-G),200*(G-Z),C.opacity)}function lab(C,H,U,W){return arguments.length===1?labConvert(C):new Lab(C,H,U,W==null?1:W)}function Lab(C,H,U,W){this.l=+C,this.a=+H,this.b=+U,this.opacity=+W}define(Lab,lab,extend$2(Color$2,{brighter(C){return new Lab(this.l+K*(C==null?1:C),this.a,this.b,this.opacity)},darker(C){return new Lab(this.l-K*(C==null?1:C),this.a,this.b,this.opacity)},rgb(){var C=(this.l+16)/116,H=isNaN(this.a)?C:C+this.a/500,U=isNaN(this.b)?C:C-this.b/200;return H=Xn*lab2xyz(H),C=Yn*lab2xyz(C),U=Zn*lab2xyz(U),new Rgb(lrgb2rgb(3.1338561*H-1.6168667*C-.4906146*U),lrgb2rgb(-.9787684*H+1.9161415*C+.033454*U),lrgb2rgb(.0719453*H-.2289914*C+1.4052427*U),this.opacity)}}));function xyz2lab(C){return C>t3?Math.pow(C,1/3):C/t2+t0$1}function lab2xyz(C){return C>t1$1?C*C*C:t2*(C-t0$1)}function lrgb2rgb(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}function rgb2lrgb(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function hclConvert(C){if(C instanceof Hcl)return new Hcl(C.h,C.c,C.l,C.opacity);if(C instanceof Lab||(C=labConvert(C)),C.a===0&&C.b===0)return new Hcl(NaN,0<C.l&&C.l<100?0:NaN,C.l,C.opacity);var H=Math.atan2(C.b,C.a)*degrees$1;return new Hcl(H<0?H+360:H,Math.sqrt(C.a*C.a+C.b*C.b),C.l,C.opacity)}function hcl$1(C,H,U,W){return arguments.length===1?hclConvert(C):new Hcl(C,H,U,W==null?1:W)}function Hcl(C,H,U,W){this.h=+C,this.c=+H,this.l=+U,this.opacity=+W}function hcl2lab(C){if(isNaN(C.h))return new Lab(C.l,0,0,C.opacity);var H=C.h*radians;return new Lab(C.l,Math.cos(H)*C.c,Math.sin(H)*C.c,C.opacity)}define(Hcl,hcl$1,extend$2(Color$2,{brighter(C){return new Hcl(this.h,this.c,this.l+K*(C==null?1:C),this.opacity)},darker(C){return new Hcl(this.h,this.c,this.l-K*(C==null?1:C),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));const constant$3=C=>()=>C;function linear$1(C,H){return function(U){return C+U*H}}function exponential(C,H,U){return C=Math.pow(C,U),H=Math.pow(H,U)-C,U=1/U,function(W){return Math.pow(C+W*H,U)}}function hue(C,H){var U=H-C;return U?linear$1(C,U>180||U<-180?U-360*Math.round(U/360):U):constant$3(isNaN(C)?H:C)}function gamma(C){return(C=+C)==1?nogamma:function(H,U){return U-H?exponential(H,U,C):constant$3(isNaN(H)?U:H)}}function nogamma(C,H){var U=H-C;return U?linear$1(C,U):constant$3(isNaN(C)?H:C)}const interpolateRgb=function C(H){var U=gamma(H);function W(G,X){var Z=U((G=rgb(G)).r,(X=rgb(X)).r),Q=U(G.g,X.g),ee=U(G.b,X.b),ie=nogamma(G.opacity,X.opacity);return function(te){return G.r=Z(te),G.g=Q(te),G.b=ee(te),G.opacity=ie(te),G+""}}return W.gamma=C,W}(1);function numberArray(C,H){H||(H=[]);var U=C?Math.min(H.length,C.length):0,W=H.slice(),G;return function(X){for(G=0;G<U;++G)W[G]=C[G]*(1-X)+H[G]*X;return W}}function isNumberArray(C){return ArrayBuffer.isView(C)&&!(C instanceof DataView)}function genericArray(C,H){var U=H?H.length:0,W=C?Math.min(U,C.length):0,G=new Array(W),X=new Array(U),Z;for(Z=0;Z<W;++Z)G[Z]=interpolate$1(C[Z],H[Z]);for(;Z<U;++Z)X[Z]=H[Z];return function(Q){for(Z=0;Z<W;++Z)X[Z]=G[Z](Q);return X}}function date$1(C,H){var U=new Date;return C=+C,H=+H,function(W){return U.setTime(C*(1-W)+H*W),U}}function interpolateNumber(C,H){return C=+C,H=+H,function(U){return C*(1-U)+H*U}}function object(C,H){var U={},W={},G;(C===null||typeof C!="object")&&(C={}),(H===null||typeof H!="object")&&(H={});for(G in H)G in C?U[G]=interpolate$1(C[G],H[G]):W[G]=H[G];return function(X){for(G in U)W[G]=U[G](X);return W}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(C){return function(){return C}}function one(C){return function(H){return C(H)+""}}function interpolateString(C,H){var U=reA.lastIndex=reB.lastIndex=0,W,G,X,Z=-1,Q=[],ee=[];for(C=C+"",H=H+"";(W=reA.exec(C))&&(G=reB.exec(H));)(X=G.index)>U&&(X=H.slice(U,X),Q[Z]?Q[Z]+=X:Q[++Z]=X),(W=W[0])===(G=G[0])?Q[Z]?Q[Z]+=G:Q[++Z]=G:(Q[++Z]=null,ee.push({i:Z,x:interpolateNumber(W,G)})),U=reB.lastIndex;return U<H.length&&(X=H.slice(U),Q[Z]?Q[Z]+=X:Q[++Z]=X),Q.length<2?ee[0]?one(ee[0].x):zero(H):(H=ee.length,function(ie){for(var te=0,ne;te<H;++te)Q[(ne=ee[te]).i]=ne.x(ie);return Q.join("")})}function interpolate$1(C,H){var U=typeof H,W;return H==null||U==="boolean"?constant$3(H):(U==="number"?interpolateNumber:U==="string"?(W=color(H))?(H=W,interpolateRgb):interpolateString:H instanceof color?interpolateRgb:H instanceof Date?date$1:isNumberArray(H)?numberArray:Array.isArray(H)?genericArray:typeof H.valueOf!="function"&&typeof H.toString!="function"||isNaN(H)?object:interpolateNumber)(C,H)}function interpolateRound(C,H){return C=+C,H=+H,function(U){return Math.round(C*(1-U)+H*U)}}var degrees=180/Math.PI,identity$3={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(C,H,U,W,G,X){var Z,Q,ee;return(Z=Math.sqrt(C*C+H*H))&&(C/=Z,H/=Z),(ee=C*U+H*W)&&(U-=C*ee,W-=H*ee),(Q=Math.sqrt(U*U+W*W))&&(U/=Q,W/=Q,ee/=Q),C*W<H*U&&(C=-C,H=-H,ee=-ee,Z=-Z),{translateX:G,translateY:X,rotate:Math.atan2(H,C)*degrees,skewX:Math.atan(ee)*degrees,scaleX:Z,scaleY:Q}}var svgNode;function parseCss(C){const H=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(C+"");return H.isIdentity?identity$3:decompose(H.a,H.b,H.c,H.d,H.e,H.f)}function parseSvg(C){return C==null||(svgNode||(svgNode=document.createElementNS("http://www.w3.org/2000/svg","g")),svgNode.setAttribute("transform",C),!(C=svgNode.transform.baseVal.consolidate()))?identity$3:(C=C.matrix,decompose(C.a,C.b,C.c,C.d,C.e,C.f))}function interpolateTransform(C,H,U,W){function G(ie){return ie.length?ie.pop()+" ":""}function X(ie,te,ne,ae,oe,se){if(ie!==ne||te!==ae){var le=oe.push("translate(",null,H,null,U);se.push({i:le-4,x:interpolateNumber(ie,ne)},{i:le-2,x:interpolateNumber(te,ae)})}else(ne||ae)&&oe.push("translate("+ne+H+ae+U)}function Z(ie,te,ne,ae){ie!==te?(ie-te>180?te+=360:te-ie>180&&(ie+=360),ae.push({i:ne.push(G(ne)+"rotate(",null,W)-2,x:interpolateNumber(ie,te)})):te&&ne.push(G(ne)+"rotate("+te+W)}function Q(ie,te,ne,ae){ie!==te?ae.push({i:ne.push(G(ne)+"skewX(",null,W)-2,x:interpolateNumber(ie,te)}):te&&ne.push(G(ne)+"skewX("+te+W)}function ee(ie,te,ne,ae,oe,se){if(ie!==ne||te!==ae){var le=oe.push(G(oe)+"scale(",null,",",null,")");se.push({i:le-4,x:interpolateNumber(ie,ne)},{i:le-2,x:interpolateNumber(te,ae)})}else(ne!==1||ae!==1)&&oe.push(G(oe)+"scale("+ne+","+ae+")")}return function(ie,te){var ne=[],ae=[];return ie=C(ie),te=C(te),X(ie.translateX,ie.translateY,te.translateX,te.translateY,ne,ae),Z(ie.rotate,te.rotate,ne,ae),Q(ie.skewX,te.skewX,ne,ae),ee(ie.scaleX,ie.scaleY,te.scaleX,te.scaleY,ne,ae),ie=te=null,function(oe){for(var se=-1,le=ae.length,ce;++se<le;)ne[(ce=ae[se]).i]=ce.x(oe);return ne.join("")}}}var interpolateTransformCss=interpolateTransform(parseCss,"px, ","px)","deg)"),interpolateTransformSvg=interpolateTransform(parseSvg,", ",")",")");function hcl(C){return function(H,U){var W=C((H=hcl$1(H)).h,(U=hcl$1(U)).h),G=nogamma(H.c,U.c),X=nogamma(H.l,U.l),Z=nogamma(H.opacity,U.opacity);return function(Q){return H.h=W(Q),H.c=G(Q),H.l=X(Q),H.opacity=Z(Q),H+""}}}const interpolateHcl=hcl(hue);var frame=0,timeout$2=0,interval=0,pokeDelay=1e3,taskHead,taskTail,clockLast=0,clockNow=0,clockSkew=0,clock=typeof performance=="object"&&performance.now?performance:Date,setFrame=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(C,H,U){if(typeof C!="function")throw new TypeError("callback is not a function");U=(U==null?now():+U)+(H==null?0:+H),!this._next&&taskTail!==this&&(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=C,this._time=U,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};function timer(C,H,U){var W=new Timer;return W.restart(C,H,U),W}function timerFlush(){now(),++frame;for(var C=taskHead,H;C;)(H=clockNow-C._time)>=0&&C._call.call(void 0,H),C=C._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$2=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var C=clock.now(),H=C-clockLast;H>pokeDelay&&(clockSkew-=H,clockLast=C)}function nap(){for(var C,H=taskHead,U,W=1/0;H;)H._call?(W>H._time&&(W=H._time),C=H,H=H._next):(U=H._next,H._next=null,H=C?C._next=U:taskHead=U);taskTail=C,sleep(W)}function sleep(C){if(!frame){timeout$2&&(timeout$2=clearTimeout(timeout$2));var H=C-clockNow;H>24?(C<1/0&&(timeout$2=setTimeout(wake,C-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout$1(C,H,U){var W=new Timer;return H=H==null?0:+H,W.restart(G=>{W.stop(),C(G+H)},H,U),W}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(C,H,U,W,G,X){var Z=C.__transition;if(!Z)C.__transition={};else if(U in Z)return;create$1(C,U,{name:H,index:W,group:G,on:emptyOn,tween:emptyTween,time:X.time,delay:X.delay,duration:X.duration,ease:X.ease,timer:null,state:CREATED})}function init$1(C,H){var U=get(C,H);if(U.state>CREATED)throw new Error("too late; already scheduled");return U}function set(C,H){var U=get(C,H);if(U.state>STARTED)throw new Error("too late; already running");return U}function get(C,H){var U=C.__transition;if(!U||!(U=U[H]))throw new Error("transition not found");return U}function create$1(C,H,U){var W=C.__transition,G;W[H]=U,U.timer=timer(X,0,U.time);function X(ie){U.state=SCHEDULED,U.timer.restart(Z,U.delay,U.time),U.delay<=ie&&Z(ie-U.delay)}function Z(ie){var te,ne,ae,oe;if(U.state!==SCHEDULED)return ee();for(te in W)if(oe=W[te],oe.name===U.name){if(oe.state===STARTED)return timeout$1(Z);oe.state===RUNNING?(oe.state=ENDED,oe.timer.stop(),oe.on.call("interrupt",C,C.__data__,oe.index,oe.group),delete W[te]):+te<H&&(oe.state=ENDED,oe.timer.stop(),oe.on.call("cancel",C,C.__data__,oe.index,oe.group),delete W[te])}if(timeout$1(function(){U.state===STARTED&&(U.state=RUNNING,U.timer.restart(Q,U.delay,U.time),Q(ie))}),U.state=STARTING,U.on.call("start",C,C.__data__,U.index,U.group),U.state===STARTING){for(U.state=STARTED,G=new Array(ae=U.tween.length),te=0,ne=-1;te<ae;++te)(oe=U.tween[te].value.call(C,C.__data__,U.index,U.group))&&(G[++ne]=oe);G.length=ne+1}}function Q(ie){for(var te=ie<U.duration?U.ease.call(null,ie/U.duration):(U.timer.restart(ee),U.state=ENDING,1),ne=-1,ae=G.length;++ne<ae;)G[ne].call(C,te);U.state===ENDING&&(U.on.call("end",C,C.__data__,U.index,U.group),ee())}function ee(){U.state=ENDED,U.timer.stop(),delete W[H];for(var ie in W)return;delete C.__transition}}function interrupt(C,H){var U=C.__transition,W,G,X=!0,Z;if(!!U){H=H==null?null:H+"";for(Z in U){if((W=U[Z]).name!==H){X=!1;continue}G=W.state>STARTING&&W.state<ENDING,W.state=ENDED,W.timer.stop(),W.on.call(G?"interrupt":"cancel",C,C.__data__,W.index,W.group),delete U[Z]}X&&delete C.__transition}}function selection_interrupt(C){return this.each(function(){interrupt(this,C)})}function tweenRemove(C,H){var U,W;return function(){var G=set(this,C),X=G.tween;if(X!==U){W=U=X;for(var Z=0,Q=W.length;Z<Q;++Z)if(W[Z].name===H){W=W.slice(),W.splice(Z,1);break}}G.tween=W}}function tweenFunction(C,H,U){var W,G;if(typeof U!="function")throw new Error;return function(){var X=set(this,C),Z=X.tween;if(Z!==W){G=(W=Z).slice();for(var Q={name:H,value:U},ee=0,ie=G.length;ee<ie;++ee)if(G[ee].name===H){G[ee]=Q;break}ee===ie&&G.push(Q)}X.tween=G}}function transition_tween(C,H){var U=this._id;if(C+="",arguments.length<2){for(var W=get(this.node(),U).tween,G=0,X=W.length,Z;G<X;++G)if((Z=W[G]).name===C)return Z.value;return null}return this.each((H==null?tweenRemove:tweenFunction)(U,C,H))}function tweenValue(C,H,U){var W=C._id;return C.each(function(){var G=set(this,W);(G.value||(G.value={}))[H]=U.apply(this,arguments)}),function(G){return get(G,W).value[H]}}function interpolate(C,H){var U;return(typeof H=="number"?interpolateNumber:H instanceof color?interpolateRgb:(U=color(H))?(H=U,interpolateRgb):interpolateString)(C,H)}function attrRemove(C){return function(){this.removeAttribute(C)}}function attrRemoveNS(C){return function(){this.removeAttributeNS(C.space,C.local)}}function attrConstant(C,H,U){var W,G=U+"",X;return function(){var Z=this.getAttribute(C);return Z===G?null:Z===W?X:X=H(W=Z,U)}}function attrConstantNS(C,H,U){var W,G=U+"",X;return function(){var Z=this.getAttributeNS(C.space,C.local);return Z===G?null:Z===W?X:X=H(W=Z,U)}}function attrFunction(C,H,U){var W,G,X;return function(){var Z,Q=U(this),ee;return Q==null?void this.removeAttribute(C):(Z=this.getAttribute(C),ee=Q+"",Z===ee?null:Z===W&&ee===G?X:(G=ee,X=H(W=Z,Q)))}}function attrFunctionNS(C,H,U){var W,G,X;return function(){var Z,Q=U(this),ee;return Q==null?void this.removeAttributeNS(C.space,C.local):(Z=this.getAttributeNS(C.space,C.local),ee=Q+"",Z===ee?null:Z===W&&ee===G?X:(G=ee,X=H(W=Z,Q)))}}function transition_attr(C,H){var U=namespace(C),W=U==="transform"?interpolateTransformSvg:interpolate;return this.attrTween(C,typeof H=="function"?(U.local?attrFunctionNS:attrFunction)(U,W,tweenValue(this,"attr."+C,H)):H==null?(U.local?attrRemoveNS:attrRemove)(U):(U.local?attrConstantNS:attrConstant)(U,W,H))}function attrInterpolate(C,H){return function(U){this.setAttribute(C,H.call(this,U))}}function attrInterpolateNS(C,H){return function(U){this.setAttributeNS(C.space,C.local,H.call(this,U))}}function attrTweenNS(C,H){var U,W;function G(){var X=H.apply(this,arguments);return X!==W&&(U=(W=X)&&attrInterpolateNS(C,X)),U}return G._value=H,G}function attrTween(C,H){var U,W;function G(){var X=H.apply(this,arguments);return X!==W&&(U=(W=X)&&attrInterpolate(C,X)),U}return G._value=H,G}function transition_attrTween(C,H){var U="attr."+C;if(arguments.length<2)return(U=this.tween(U))&&U._value;if(H==null)return this.tween(U,null);if(typeof H!="function")throw new Error;var W=namespace(C);return this.tween(U,(W.local?attrTweenNS:attrTween)(W,H))}function delayFunction(C,H){return function(){init$1(this,C).delay=+H.apply(this,arguments)}}function delayConstant(C,H){return H=+H,function(){init$1(this,C).delay=H}}function transition_delay(C){var H=this._id;return arguments.length?this.each((typeof C=="function"?delayFunction:delayConstant)(H,C)):get(this.node(),H).delay}function durationFunction(C,H){return function(){set(this,C).duration=+H.apply(this,arguments)}}function durationConstant(C,H){return H=+H,function(){set(this,C).duration=H}}function transition_duration(C){var H=this._id;return arguments.length?this.each((typeof C=="function"?durationFunction:durationConstant)(H,C)):get(this.node(),H).duration}function easeConstant(C,H){if(typeof H!="function")throw new Error;return function(){set(this,C).ease=H}}function transition_ease(C){var H=this._id;return arguments.length?this.each(easeConstant(H,C)):get(this.node(),H).ease}function easeVarying(C,H){return function(){var U=H.apply(this,arguments);if(typeof U!="function")throw new Error;set(this,C).ease=U}}function transition_easeVarying(C){if(typeof C!="function")throw new Error;return this.each(easeVarying(this._id,C))}function transition_filter(C){typeof C!="function"&&(C=matcher(C));for(var H=this._groups,U=H.length,W=new Array(U),G=0;G<U;++G)for(var X=H[G],Z=X.length,Q=W[G]=[],ee,ie=0;ie<Z;++ie)(ee=X[ie])&&C.call(ee,ee.__data__,ie,X)&&Q.push(ee);return new Transition(W,this._parents,this._name,this._id)}function transition_merge(C){if(C._id!==this._id)throw new Error;for(var H=this._groups,U=C._groups,W=H.length,G=U.length,X=Math.min(W,G),Z=new Array(W),Q=0;Q<X;++Q)for(var ee=H[Q],ie=U[Q],te=ee.length,ne=Z[Q]=new Array(te),ae,oe=0;oe<te;++oe)(ae=ee[oe]||ie[oe])&&(ne[oe]=ae);for(;Q<W;++Q)Z[Q]=H[Q];return new Transition(Z,this._parents,this._name,this._id)}function start$1(C){return(C+"").trim().split(/^|\s+/).every(function(H){var U=H.indexOf(".");return U>=0&&(H=H.slice(0,U)),!H||H==="start"})}function onFunction(C,H,U){var W,G,X=start$1(H)?init$1:set;return function(){var Z=X(this,C),Q=Z.on;Q!==W&&(G=(W=Q).copy()).on(H,U),Z.on=G}}function transition_on(C,H){var U=this._id;return arguments.length<2?get(this.node(),U).on.on(C):this.each(onFunction(U,C,H))}function removeFunction(C){return function(){var H=this.parentNode;for(var U in this.__transition)if(+U!==C)return;H&&H.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(C){var H=this._name,U=this._id;typeof C!="function"&&(C=selector(C));for(var W=this._groups,G=W.length,X=new Array(G),Z=0;Z<G;++Z)for(var Q=W[Z],ee=Q.length,ie=X[Z]=new Array(ee),te,ne,ae=0;ae<ee;++ae)(te=Q[ae])&&(ne=C.call(te,te.__data__,ae,Q))&&("__data__"in te&&(ne.__data__=te.__data__),ie[ae]=ne,schedule(ie[ae],H,U,ae,ie,get(te,U)));return new Transition(X,this._parents,H,U)}function transition_selectAll(C){var H=this._name,U=this._id;typeof C!="function"&&(C=selectorAll(C));for(var W=this._groups,G=W.length,X=[],Z=[],Q=0;Q<G;++Q)for(var ee=W[Q],ie=ee.length,te,ne=0;ne<ie;++ne)if(te=ee[ne]){for(var ae=C.call(te,te.__data__,ne,ee),oe,se=get(te,U),le=0,ce=ae.length;le<ce;++le)(oe=ae[le])&&schedule(oe,H,U,le,ae,se);X.push(ae),Z.push(te)}return new Transition(X,Z,H,U)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(C,H){var U,W,G;return function(){var X=styleValue(this,C),Z=(this.style.removeProperty(C),styleValue(this,C));return X===Z?null:X===U&&Z===W?G:G=H(U=X,W=Z)}}function styleRemove(C){return function(){this.style.removeProperty(C)}}function styleConstant(C,H,U){var W,G=U+"",X;return function(){var Z=styleValue(this,C);return Z===G?null:Z===W?X:X=H(W=Z,U)}}function styleFunction(C,H,U){var W,G,X;return function(){var Z=styleValue(this,C),Q=U(this),ee=Q+"";return Q==null&&(ee=Q=(this.style.removeProperty(C),styleValue(this,C))),Z===ee?null:Z===W&&ee===G?X:(G=ee,X=H(W=Z,Q))}}function styleMaybeRemove(C,H){var U,W,G,X="style."+H,Z="end."+X,Q;return function(){var ee=set(this,C),ie=ee.on,te=ee.value[X]==null?Q||(Q=styleRemove(H)):void 0;(ie!==U||G!==te)&&(W=(U=ie).copy()).on(Z,G=te),ee.on=W}}function transition_style(C,H,U){var W=(C+="")=="transform"?interpolateTransformCss:interpolate;return H==null?this.styleTween(C,styleNull(C,W)).on("end.style."+C,styleRemove(C)):typeof H=="function"?this.styleTween(C,styleFunction(C,W,tweenValue(this,"style."+C,H))).each(styleMaybeRemove(this._id,C)):this.styleTween(C,styleConstant(C,W,H),U).on("end.style."+C,null)}function styleInterpolate(C,H,U){return function(W){this.style.setProperty(C,H.call(this,W),U)}}function styleTween(C,H,U){var W,G;function X(){var Z=H.apply(this,arguments);return Z!==G&&(W=(G=Z)&&styleInterpolate(C,Z,U)),W}return X._value=H,X}function transition_styleTween(C,H,U){var W="style."+(C+="");if(arguments.length<2)return(W=this.tween(W))&&W._value;if(H==null)return this.tween(W,null);if(typeof H!="function")throw new Error;return this.tween(W,styleTween(C,H,U==null?"":U))}function textConstant(C){return function(){this.textContent=C}}function textFunction(C){return function(){var H=C(this);this.textContent=H==null?"":H}}function transition_text(C){return this.tween("text",typeof C=="function"?textFunction(tweenValue(this,"text",C)):textConstant(C==null?"":C+""))}function textInterpolate(C){return function(H){this.textContent=C.call(this,H)}}function textTween(C){var H,U;function W(){var G=C.apply(this,arguments);return G!==U&&(H=(U=G)&&textInterpolate(G)),H}return W._value=C,W}function transition_textTween(C){var H="text";if(arguments.length<1)return(H=this.tween(H))&&H._value;if(C==null)return this.tween(H,null);if(typeof C!="function")throw new Error;return this.tween(H,textTween(C))}function transition_transition(){for(var C=this._name,H=this._id,U=newId(),W=this._groups,G=W.length,X=0;X<G;++X)for(var Z=W[X],Q=Z.length,ee,ie=0;ie<Q;++ie)if(ee=Z[ie]){var te=get(ee,H);schedule(ee,C,U,ie,Z,{time:te.time+te.delay+te.duration,delay:0,duration:te.duration,ease:te.ease})}return new Transition(W,this._parents,C,U)}function transition_end(){var C,H,U=this,W=U._id,G=U.size();return new Promise(function(X,Z){var Q={value:Z},ee={value:function(){--G===0&&X()}};U.each(function(){var ie=set(this,W),te=ie.on;te!==C&&(H=(C=te).copy(),H._.cancel.push(Q),H._.interrupt.push(Q),H._.end.push(ee)),ie.on=H}),G===0&&X()})}var id$3=0;function Transition(C,H,U,W){this._groups=C,this._parents=H,this._name=U,this._id=W}function newId(){return++id$3}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,selectChild:selection_prototype.selectChild,selectChildren:selection_prototype.selectChildren,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(C){return((C*=2)<=1?C*C*C:(C-=2)*C*C+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(C,H){for(var U;!(U=C.__transition)||!(U=U[H]);)if(!(C=C.parentNode))throw new Error(`transition ${H} not found`);return U}function selection_transition(C){var H,U;C instanceof Transition?(H=C._id,C=C._name):(H=newId(),(U=defaultTiming).time=now(),C=C==null?null:C+"");for(var W=this._groups,G=W.length,X=0;X<G;++X)for(var Z=W[X],Q=Z.length,ee,ie=0;ie<Q;++ie)(ee=Z[ie])&&schedule(ee,C,H,ie,Z,U||inherit(ee,H));return new Transition(W,this._parents,C,H)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;const pi$1=Math.PI,tau$1=2*pi$1,epsilon$1=1e-6,tauEpsilon=tau$1-epsilon$1;function append$1(C){this._+=C[0];for(let H=1,U=C.length;H<U;++H)this._+=arguments[H]+C[H]}function appendRound(C){let H=Math.floor(C);if(!(H>=0))throw new Error(`invalid digits: ${C}`);if(H>15)return append$1;const U=10**H;return function(W){this._+=W[0];for(let G=1,X=W.length;G<X;++G)this._+=Math.round(arguments[G]*U)/U+W[G]}}class Path{constructor(H){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=H==null?append$1:appendRound(H)}moveTo(H,U){this._append`M${this._x0=this._x1=+H},${this._y0=this._y1=+U}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(H,U){this._append`L${this._x1=+H},${this._y1=+U}`}quadraticCurveTo(H,U,W,G){this._append`Q${+H},${+U},${this._x1=+W},${this._y1=+G}`}bezierCurveTo(H,U,W,G,X,Z){this._append`C${+H},${+U},${+W},${+G},${this._x1=+X},${this._y1=+Z}`}arcTo(H,U,W,G,X){if(H=+H,U=+U,W=+W,G=+G,X=+X,X<0)throw new Error(`negative radius: ${X}`);let Z=this._x1,Q=this._y1,ee=W-H,ie=G-U,te=Z-H,ne=Q-U,ae=te*te+ne*ne;if(this._x1===null)this._append`M${this._x1=H},${this._y1=U}`;else if(ae>epsilon$1)if(!(Math.abs(ne*ee-ie*te)>epsilon$1)||!X)this._append`L${this._x1=H},${this._y1=U}`;else{let oe=W-Z,se=G-Q,le=ee*ee+ie*ie,ce=oe*oe+se*se,ue=Math.sqrt(le),de=Math.sqrt(ae),ve=X*Math.tan((pi$1-Math.acos((le+ae-ce)/(2*ue*de)))/2),ge=ve/de,he=ve/ue;Math.abs(ge-1)>epsilon$1&&this._append`L${H+ge*te},${U+ge*ne}`,this._append`A${X},${X},0,0,${+(ne*oe>te*se)},${this._x1=H+he*ee},${this._y1=U+he*ie}`}}arc(H,U,W,G,X,Z){if(H=+H,U=+U,W=+W,Z=!!Z,W<0)throw new Error(`negative radius: ${W}`);let Q=W*Math.cos(G),ee=W*Math.sin(G),ie=H+Q,te=U+ee,ne=1^Z,ae=Z?G-X:X-G;this._x1===null?this._append`M${ie},${te}`:(Math.abs(this._x1-ie)>epsilon$1||Math.abs(this._y1-te)>epsilon$1)&&this._append`L${ie},${te}`,W&&(ae<0&&(ae=ae%tau$1+tau$1),ae>tauEpsilon?this._append`A${W},${W},0,1,${ne},${H-Q},${U-ee}A${W},${W},0,1,${ne},${this._x1=ie},${this._y1=te}`:ae>epsilon$1&&this._append`A${W},${W},0,${+(ae>=pi$1)},${ne},${this._x1=H+W*Math.cos(X)},${this._y1=U+W*Math.sin(X)}`)}rect(H,U,W,G){this._append`M${this._x0=this._x1=+H},${this._y0=this._y1=+U}h${W=+W}v${+G}h${-W}Z`}toString(){return this._}}function responseText(C){if(!C.ok)throw new Error(C.status+" "+C.statusText);return C.text()}function text$1(C,H){return fetch(C,H).then(responseText)}function parser$d(C){return(H,U)=>text$1(H,U).then(W=>new DOMParser().parseFromString(W,C))}var svg$2=parser$d("image/svg+xml");function formatDecimal(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function formatDecimalParts(C,H){if((U=(C=H?C.toExponential(H-1):C.toExponential()).indexOf("e"))<0)return null;var U,W=C.slice(0,U);return[W.length>1?W[0]+W.slice(2):W,+C.slice(U+1)]}function exponent(C){return C=formatDecimalParts(Math.abs(C)),C?C[1]:NaN}function formatGroup(C,H){return function(U,W){for(var G=U.length,X=[],Z=0,Q=C[0],ee=0;G>0&&Q>0&&(ee+Q+1>W&&(Q=Math.max(1,W-ee)),X.push(U.substring(G-=Q,G+Q)),!((ee+=Q+1)>W));)Q=C[Z=(Z+1)%C.length];return X.reverse().join(H)}}function formatNumerals(C){return function(H){return H.replace(/[0-9]/g,function(U){return C[+U]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(C){if(!(H=re.exec(C)))throw new Error("invalid format: "+C);var H;return new FormatSpecifier({fill:H[1],align:H[2],sign:H[3],symbol:H[4],zero:H[5],width:H[6],comma:H[7],precision:H[8]&&H[8].slice(1),trim:H[9],type:H[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(C){e:for(var H=C.length,U=1,W=-1,G;U<H;++U)switch(C[U]){case".":W=G=U;break;case"0":W===0&&(W=U),G=U;break;default:if(!+C[U])break e;W>0&&(W=0);break}return W>0?C.slice(0,W)+C.slice(G+1):C}var prefixExponent;function formatPrefixAuto(C,H){var U=formatDecimalParts(C,H);if(!U)return C+"";var W=U[0],G=U[1],X=G-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(G/3)))*3)+1,Z=W.length;return X===Z?W:X>Z?W+new Array(X-Z+1).join("0"):X>0?W.slice(0,X)+"."+W.slice(X):"0."+new Array(1-X).join("0")+formatDecimalParts(C,Math.max(0,H+X-1))[0]}function formatRounded(C,H){var U=formatDecimalParts(C,H);if(!U)return C+"";var W=U[0],G=U[1];return G<0?"0."+new Array(-G).join("0")+W:W.length>G+1?W.slice(0,G+1)+"."+W.slice(G+1):W+new Array(G-W.length+2).join("0")}const formatTypes={"%":(C,H)=>(C*100).toFixed(H),b:C=>Math.round(C).toString(2),c:C=>C+"",d:formatDecimal,e:(C,H)=>C.toExponential(H),f:(C,H)=>C.toFixed(H),g:(C,H)=>C.toPrecision(H),o:C=>Math.round(C).toString(8),p:(C,H)=>formatRounded(C*100,H),r:formatRounded,s:formatPrefixAuto,X:C=>Math.round(C).toString(16).toUpperCase(),x:C=>Math.round(C).toString(16)};function identity$2(C){return C}var map$4=Array.prototype.map,prefixes=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(C){var H=C.grouping===void 0||C.thousands===void 0?identity$2:formatGroup(map$4.call(C.grouping,Number),C.thousands+""),U=C.currency===void 0?"":C.currency[0]+"",W=C.currency===void 0?"":C.currency[1]+"",G=C.decimal===void 0?".":C.decimal+"",X=C.numerals===void 0?identity$2:formatNumerals(map$4.call(C.numerals,String)),Z=C.percent===void 0?"%":C.percent+"",Q=C.minus===void 0?"\u2212":C.minus+"",ee=C.nan===void 0?"NaN":C.nan+"";function ie(ne){ne=formatSpecifier(ne);var ae=ne.fill,oe=ne.align,se=ne.sign,le=ne.symbol,ce=ne.zero,ue=ne.width,de=ne.comma,ve=ne.precision,ge=ne.trim,he=ne.type;he==="n"?(de=!0,he="g"):formatTypes[he]||(ve===void 0&&(ve=12),ge=!0,he="g"),(ce||ae==="0"&&oe==="=")&&(ce=!0,ae="0",oe="=");var me=le==="$"?U:le==="#"&&/[boxX]/.test(he)?"0"+he.toLowerCase():"",_e=le==="$"?W:/[%p]/.test(he)?Z:"",be=formatTypes[he],pe=/[defgprs%]/.test(he);ve=ve===void 0?6:/[gprs]/.test(he)?Math.max(1,Math.min(21,ve)):Math.max(0,Math.min(20,ve));function fe(ye){var $e=me,we=_e,Se,Te,xe;if(he==="c")we=be(ye)+we,ye="";else{ye=+ye;var ke=ye<0||1/ye<0;if(ye=isNaN(ye)?ee:be(Math.abs(ye),ve),ge&&(ye=formatTrim(ye)),ke&&+ye==0&&se!=="+"&&(ke=!1),$e=(ke?se==="("?se:Q:se==="-"||se==="("?"":se)+$e,we=(he==="s"?prefixes[8+prefixExponent/3]:"")+we+(ke&&se==="("?")":""),pe){for(Se=-1,Te=ye.length;++Se<Te;)if(xe=ye.charCodeAt(Se),48>xe||xe>57){we=(xe===46?G+ye.slice(Se+1):ye.slice(Se))+we,ye=ye.slice(0,Se);break}}}de&&!ce&&(ye=H(ye,1/0));var Ie=$e.length+ye.length+we.length,Ae=Ie<ue?new Array(ue-Ie+1).join(ae):"";switch(de&&ce&&(ye=H(Ae+ye,Ae.length?ue-we.length:1/0),Ae=""),oe){case"<":ye=$e+ye+we+Ae;break;case"=":ye=$e+Ae+ye+we;break;case"^":ye=Ae.slice(0,Ie=Ae.length>>1)+$e+ye+we+Ae.slice(Ie);break;default:ye=Ae+$e+ye+we;break}return X(ye)}return fe.toString=function(){return ne+""},fe}function te(ne,ae){var oe=ie((ne=formatSpecifier(ne),ne.type="f",ne)),se=Math.max(-8,Math.min(8,Math.floor(exponent(ae)/3)))*3,le=Math.pow(10,-se),ce=prefixes[8+se/3];return function(ue){return oe(le*ue)+ce}}return{format:ie,formatPrefix:te}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(C){return locale$1=formatLocale$1(C),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(C){return Math.max(0,-exponent(Math.abs(C)))}function precisionPrefix(C,H){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(H)/3)))*3-exponent(Math.abs(C)))}function precisionRound(C,H){return C=Math.abs(C),H=Math.abs(H)-C,Math.max(0,exponent(H)-exponent(C))+1}function initRange(C,H){switch(arguments.length){case 0:break;case 1:this.range(C);break;default:this.range(H).domain(C);break}return this}const implicit=Symbol("implicit");function ordinal(){var C=new InternMap,H=[],U=[],W=implicit;function G(X){let Z=C.get(X);if(Z===void 0){if(W!==implicit)return W;C.set(X,Z=H.push(X)-1)}return U[Z%U.length]}return G.domain=function(X){if(!arguments.length)return H.slice();H=[],C=new InternMap;for(const Z of X)C.has(Z)||C.set(Z,H.push(Z)-1);return G},G.range=function(X){return arguments.length?(U=Array.from(X),G):U.slice()},G.unknown=function(X){return arguments.length?(W=X,G):W},G.copy=function(){return ordinal(H,U).unknown(W)},initRange.apply(G,arguments),G}function constants(C){return function(){return C}}function number$1(C){return+C}var unit$1=[0,1];function identity$1(C){return C}function normalize(C,H){return(H-=C=+C)?function(U){return(U-C)/H}:constants(isNaN(H)?NaN:.5)}function clamper(C,H){var U;return C>H&&(U=C,C=H,H=U),function(W){return Math.max(C,Math.min(H,W))}}function bimap(C,H,U){var W=C[0],G=C[1],X=H[0],Z=H[1];return G<W?(W=normalize(G,W),X=U(Z,X)):(W=normalize(W,G),X=U(X,Z)),function(Q){return X(W(Q))}}function polymap(C,H,U){var W=Math.min(C.length,H.length)-1,G=new Array(W),X=new Array(W),Z=-1;for(C[W]<C[0]&&(C=C.slice().reverse(),H=H.slice().reverse());++Z<W;)G[Z]=normalize(C[Z],C[Z+1]),X[Z]=U(H[Z],H[Z+1]);return function(Q){var ee=bisect(C,Q,1,W)-1;return X[ee](G[ee](Q))}}function copy$1(C,H){return H.domain(C.domain()).range(C.range()).interpolate(C.interpolate()).clamp(C.clamp()).unknown(C.unknown())}function transformer(){var C=unit$1,H=unit$1,U=interpolate$1,W,G,X,Z=identity$1,Q,ee,ie;function te(){var ae=Math.min(C.length,H.length);return Z!==identity$1&&(Z=clamper(C[0],C[ae-1])),Q=ae>2?polymap:bimap,ee=ie=null,ne}function ne(ae){return ae==null||isNaN(ae=+ae)?X:(ee||(ee=Q(C.map(W),H,U)))(W(Z(ae)))}return ne.invert=function(ae){return Z(G((ie||(ie=Q(H,C.map(W),interpolateNumber)))(ae)))},ne.domain=function(ae){return arguments.length?(C=Array.from(ae,number$1),te()):C.slice()},ne.range=function(ae){return arguments.length?(H=Array.from(ae),te()):H.slice()},ne.rangeRound=function(ae){return H=Array.from(ae),U=interpolateRound,te()},ne.clamp=function(ae){return arguments.length?(Z=ae?!0:identity$1,te()):Z!==identity$1},ne.interpolate=function(ae){return arguments.length?(U=ae,te()):U},ne.unknown=function(ae){return arguments.length?(X=ae,ne):X},function(ae,oe){return W=ae,G=oe,te()}}function continuous(){return transformer()(identity$1,identity$1)}function tickFormat(C,H,U,W){var G=tickStep(C,H,U),X;switch(W=formatSpecifier(W==null?",f":W),W.type){case"s":{var Z=Math.max(Math.abs(C),Math.abs(H));return W.precision==null&&!isNaN(X=precisionPrefix(G,Z))&&(W.precision=X),formatPrefix(W,Z)}case"":case"e":case"g":case"p":case"r":{W.precision==null&&!isNaN(X=precisionRound(G,Math.max(Math.abs(C),Math.abs(H))))&&(W.precision=X-(W.type==="e"));break}case"f":case"%":{W.precision==null&&!isNaN(X=precisionFixed(G))&&(W.precision=X-(W.type==="%")*2);break}}return format$1(W)}function linearish(C){var H=C.domain;return C.ticks=function(U){var W=H();return ticks(W[0],W[W.length-1],U==null?10:U)},C.tickFormat=function(U,W){var G=H();return tickFormat(G[0],G[G.length-1],U==null?10:U,W)},C.nice=function(U){U==null&&(U=10);var W=H(),G=0,X=W.length-1,Z=W[G],Q=W[X],ee,ie,te=10;for(Q<Z&&(ie=Z,Z=Q,Q=ie,ie=G,G=X,X=ie);te-- >0;){if(ie=tickIncrement(Z,Q,U),ie===ee)return W[G]=Z,W[X]=Q,H(W);if(ie>0)Z=Math.floor(Z/ie)*ie,Q=Math.ceil(Q/ie)*ie;else if(ie<0)Z=Math.ceil(Z*ie)/ie,Q=Math.floor(Q*ie)/ie;else break;ee=ie}return C},C}function linear(){var C=continuous();return C.copy=function(){return copy$1(C,linear())},initRange.apply(C,arguments),linearish(C)}function nice(C,H){C=C.slice();var U=0,W=C.length-1,G=C[U],X=C[W],Z;return X<G&&(Z=U,U=W,W=Z,Z=G,G=X,X=Z),C[U]=H.floor(G),C[W]=H.ceil(X),C}const t0=new Date,t1=new Date;function timeInterval(C,H,U,W){function G(X){return C(X=arguments.length===0?new Date:new Date(+X)),X}return G.floor=X=>(C(X=new Date(+X)),X),G.ceil=X=>(C(X=new Date(X-1)),H(X,1),C(X),X),G.round=X=>{const Z=G(X),Q=G.ceil(X);return X-Z<Q-X?Z:Q},G.offset=(X,Z)=>(H(X=new Date(+X),Z==null?1:Math.floor(Z)),X),G.range=(X,Z,Q)=>{const ee=[];if(X=G.ceil(X),Q=Q==null?1:Math.floor(Q),!(X<Z)||!(Q>0))return ee;let ie;do ee.push(ie=new Date(+X)),H(X,Q),C(X);while(ie<X&&X<Z);return ee},G.filter=X=>timeInterval(Z=>{if(Z>=Z)for(;C(Z),!X(Z);)Z.setTime(Z-1)},(Z,Q)=>{if(Z>=Z)if(Q<0)for(;++Q<=0;)for(;H(Z,-1),!X(Z););else for(;--Q>=0;)for(;H(Z,1),!X(Z););}),U&&(G.count=(X,Z)=>(t0.setTime(+X),t1.setTime(+Z),C(t0),C(t1),Math.floor(U(t0,t1))),G.every=X=>(X=Math.floor(X),!isFinite(X)||!(X>0)?null:X>1?G.filter(W?Z=>W(Z)%X===0:Z=>G.count(0,Z)%X===0):G)),G}const millisecond=timeInterval(()=>{},(C,H)=>{C.setTime(+C+H)},(C,H)=>H-C);millisecond.every=C=>(C=Math.floor(C),!isFinite(C)||!(C>0)?null:C>1?timeInterval(H=>{H.setTime(Math.floor(H/C)*C)},(H,U)=>{H.setTime(+H+U*C)},(H,U)=>(U-H)/C):millisecond);millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(C=>{C.setTime(C-C.getMilliseconds())},(C,H)=>{C.setTime(+C+H*durationSecond)},(C,H)=>(H-C)/durationSecond,C=>C.getUTCSeconds());second.range;const timeMinute=timeInterval(C=>{C.setTime(C-C.getMilliseconds()-C.getSeconds()*durationSecond)},(C,H)=>{C.setTime(+C+H*durationMinute)},(C,H)=>(H-C)/durationMinute,C=>C.getMinutes());timeMinute.range;const utcMinute=timeInterval(C=>{C.setUTCSeconds(0,0)},(C,H)=>{C.setTime(+C+H*durationMinute)},(C,H)=>(H-C)/durationMinute,C=>C.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(C=>{C.setTime(C-C.getMilliseconds()-C.getSeconds()*durationSecond-C.getMinutes()*durationMinute)},(C,H)=>{C.setTime(+C+H*durationHour)},(C,H)=>(H-C)/durationHour,C=>C.getHours());timeHour.range;const utcHour=timeInterval(C=>{C.setUTCMinutes(0,0,0)},(C,H)=>{C.setTime(+C+H*durationHour)},(C,H)=>(H-C)/durationHour,C=>C.getUTCHours());utcHour.range;const timeDay=timeInterval(C=>C.setHours(0,0,0,0),(C,H)=>C.setDate(C.getDate()+H),(C,H)=>(H-C-(H.getTimezoneOffset()-C.getTimezoneOffset())*durationMinute)/durationDay,C=>C.getDate()-1);timeDay.range;const utcDay=timeInterval(C=>{C.setUTCHours(0,0,0,0)},(C,H)=>{C.setUTCDate(C.getUTCDate()+H)},(C,H)=>(H-C)/durationDay,C=>C.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(C=>{C.setUTCHours(0,0,0,0)},(C,H)=>{C.setUTCDate(C.getUTCDate()+H)},(C,H)=>(H-C)/durationDay,C=>Math.floor(C/durationDay));unixDay.range;function timeWeekday(C){return timeInterval(H=>{H.setDate(H.getDate()-(H.getDay()+7-C)%7),H.setHours(0,0,0,0)},(H,U)=>{H.setDate(H.getDate()+U*7)},(H,U)=>(U-H-(U.getTimezoneOffset()-H.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(C){return timeInterval(H=>{H.setUTCDate(H.getUTCDate()-(H.getUTCDay()+7-C)%7),H.setUTCHours(0,0,0,0)},(H,U)=>{H.setUTCDate(H.getUTCDate()+U*7)},(H,U)=>(U-H)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeMonth=timeInterval(C=>{C.setDate(1),C.setHours(0,0,0,0)},(C,H)=>{C.setMonth(C.getMonth()+H)},(C,H)=>H.getMonth()-C.getMonth()+(H.getFullYear()-C.getFullYear())*12,C=>C.getMonth());timeMonth.range;const utcMonth=timeInterval(C=>{C.setUTCDate(1),C.setUTCHours(0,0,0,0)},(C,H)=>{C.setUTCMonth(C.getUTCMonth()+H)},(C,H)=>H.getUTCMonth()-C.getUTCMonth()+(H.getUTCFullYear()-C.getUTCFullYear())*12,C=>C.getUTCMonth());utcMonth.range;const timeYear=timeInterval(C=>{C.setMonth(0,1),C.setHours(0,0,0,0)},(C,H)=>{C.setFullYear(C.getFullYear()+H)},(C,H)=>H.getFullYear()-C.getFullYear(),C=>C.getFullYear());timeYear.every=C=>!isFinite(C=Math.floor(C))||!(C>0)?null:timeInterval(H=>{H.setFullYear(Math.floor(H.getFullYear()/C)*C),H.setMonth(0,1),H.setHours(0,0,0,0)},(H,U)=>{H.setFullYear(H.getFullYear()+U*C)});timeYear.range;const utcYear=timeInterval(C=>{C.setUTCMonth(0,1),C.setUTCHours(0,0,0,0)},(C,H)=>{C.setUTCFullYear(C.getUTCFullYear()+H)},(C,H)=>H.getUTCFullYear()-C.getUTCFullYear(),C=>C.getUTCFullYear());utcYear.every=C=>!isFinite(C=Math.floor(C))||!(C>0)?null:timeInterval(H=>{H.setUTCFullYear(Math.floor(H.getUTCFullYear()/C)*C),H.setUTCMonth(0,1),H.setUTCHours(0,0,0,0)},(H,U)=>{H.setUTCFullYear(H.getUTCFullYear()+U*C)});utcYear.range;function ticker(C,H,U,W,G,X){const Z=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[X,1,durationMinute],[X,5,5*durationMinute],[X,15,15*durationMinute],[X,30,30*durationMinute],[G,1,durationHour],[G,3,3*durationHour],[G,6,6*durationHour],[G,12,12*durationHour],[W,1,durationDay],[W,2,2*durationDay],[U,1,durationWeek],[H,1,durationMonth],[H,3,3*durationMonth],[C,1,durationYear]];function Q(ie,te,ne){const ae=te<ie;ae&&([ie,te]=[te,ie]);const oe=ne&&typeof ne.range=="function"?ne:ee(ie,te,ne),se=oe?oe.range(ie,+te+1):[];return ae?se.reverse():se}function ee(ie,te,ne){const ae=Math.abs(te-ie)/ne,oe=bisector(([,,ce])=>ce).right(Z,ae);if(oe===Z.length)return C.every(tickStep(ie/durationYear,te/durationYear,ne));if(oe===0)return millisecond.every(Math.max(tickStep(ie,te,ne),1));const[se,le]=Z[ae/Z[oe-1][2]<Z[oe][2]/ae?oe-1:oe];return se.every(le)}return[Q,ee]}ticker(utcYear,utcMonth,utcSunday,unixDay,utcHour,utcMinute);const[timeTicks,timeTickInterval]=ticker(timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute);function localDate(C){if(0<=C.y&&C.y<100){var H=new Date(-1,C.m,C.d,C.H,C.M,C.S,C.L);return H.setFullYear(C.y),H}return new Date(C.y,C.m,C.d,C.H,C.M,C.S,C.L)}function utcDate(C){if(0<=C.y&&C.y<100){var H=new Date(Date.UTC(-1,C.m,C.d,C.H,C.M,C.S,C.L));return H.setUTCFullYear(C.y),H}return new Date(Date.UTC(C.y,C.m,C.d,C.H,C.M,C.S,C.L))}function newDate(C,H,U){return{y:C,m:H,d:U,H:0,M:0,S:0,L:0}}function formatLocale(C){var H=C.dateTime,U=C.date,W=C.time,G=C.periods,X=C.days,Z=C.shortDays,Q=C.months,ee=C.shortMonths,ie=formatRe(G),te=formatLookup(G),ne=formatRe(X),ae=formatLookup(X),oe=formatRe(Z),se=formatLookup(Z),le=formatRe(Q),ce=formatLookup(Q),ue=formatRe(ee),de=formatLookup(ee),ve={a:ke,A:Ie,b:Ae,B:Me,c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:Fe,q:Be,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},ge={a:Ne,A:Ve,b:Le,B:De,c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:Je,q:ze,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},he={a:fe,A:ye,b:$e,B:we,c:Se,d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:pe,q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:Te,X:xe,y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};ve.x=me(U,ve),ve.X=me(W,ve),ve.c=me(H,ve),ge.x=me(U,ge),ge.X=me(W,ge),ge.c=me(H,ge);function me(Ge,qe){return function(Ke){var Ee=[],Ce=-1,Pe=0,Re=Ge.length,Ze,Oe,Qe;for(Ke instanceof Date||(Ke=new Date(+Ke));++Ce<Re;)Ge.charCodeAt(Ce)===37&&(Ee.push(Ge.slice(Pe,Ce)),(Oe=pads[Ze=Ge.charAt(++Ce)])!=null?Ze=Ge.charAt(++Ce):Oe=Ze==="e"?" ":"0",(Qe=qe[Ze])&&(Ze=Qe(Ke,Oe)),Ee.push(Ze),Pe=Ce+1);return Ee.push(Ge.slice(Pe,Ce)),Ee.join("")}}function _e(Ge,qe){return function(Ke){var Ee=newDate(1900,void 0,1),Ce=be(Ee,Ge,Ke+="",0),Pe,Re;if(Ce!=Ke.length)return null;if("Q"in Ee)return new Date(Ee.Q);if("s"in Ee)return new Date(Ee.s*1e3+("L"in Ee?Ee.L:0));if(qe&&!("Z"in Ee)&&(Ee.Z=0),"p"in Ee&&(Ee.H=Ee.H%12+Ee.p*12),Ee.m===void 0&&(Ee.m="q"in Ee?Ee.q:0),"V"in Ee){if(Ee.V<1||Ee.V>53)return null;"w"in Ee||(Ee.w=1),"Z"in Ee?(Pe=utcDate(newDate(Ee.y,0,1)),Re=Pe.getUTCDay(),Pe=Re>4||Re===0?utcMonday.ceil(Pe):utcMonday(Pe),Pe=utcDay.offset(Pe,(Ee.V-1)*7),Ee.y=Pe.getUTCFullYear(),Ee.m=Pe.getUTCMonth(),Ee.d=Pe.getUTCDate()+(Ee.w+6)%7):(Pe=localDate(newDate(Ee.y,0,1)),Re=Pe.getDay(),Pe=Re>4||Re===0?timeMonday.ceil(Pe):timeMonday(Pe),Pe=timeDay.offset(Pe,(Ee.V-1)*7),Ee.y=Pe.getFullYear(),Ee.m=Pe.getMonth(),Ee.d=Pe.getDate()+(Ee.w+6)%7)}else("W"in Ee||"U"in Ee)&&("w"in Ee||(Ee.w="u"in Ee?Ee.u%7:"W"in Ee?1:0),Re="Z"in Ee?utcDate(newDate(Ee.y,0,1)).getUTCDay():localDate(newDate(Ee.y,0,1)).getDay(),Ee.m=0,Ee.d="W"in Ee?(Ee.w+6)%7+Ee.W*7-(Re+5)%7:Ee.w+Ee.U*7-(Re+6)%7);return"Z"in Ee?(Ee.H+=Ee.Z/100|0,Ee.M+=Ee.Z%100,utcDate(Ee)):localDate(Ee)}}function be(Ge,qe,Ke,Ee){for(var Ce=0,Pe=qe.length,Re=Ke.length,Ze,Oe;Ce<Pe;){if(Ee>=Re)return-1;if(Ze=qe.charCodeAt(Ce++),Ze===37){if(Ze=qe.charAt(Ce++),Oe=he[Ze in pads?qe.charAt(Ce++):Ze],!Oe||(Ee=Oe(Ge,Ke,Ee))<0)return-1}else if(Ze!=Ke.charCodeAt(Ee++))return-1}return Ee}function pe(Ge,qe,Ke){var Ee=ie.exec(qe.slice(Ke));return Ee?(Ge.p=te.get(Ee[0].toLowerCase()),Ke+Ee[0].length):-1}function fe(Ge,qe,Ke){var Ee=oe.exec(qe.slice(Ke));return Ee?(Ge.w=se.get(Ee[0].toLowerCase()),Ke+Ee[0].length):-1}function ye(Ge,qe,Ke){var Ee=ne.exec(qe.slice(Ke));return Ee?(Ge.w=ae.get(Ee[0].toLowerCase()),Ke+Ee[0].length):-1}function $e(Ge,qe,Ke){var Ee=ue.exec(qe.slice(Ke));return Ee?(Ge.m=de.get(Ee[0].toLowerCase()),Ke+Ee[0].length):-1}function we(Ge,qe,Ke){var Ee=le.exec(qe.slice(Ke));return Ee?(Ge.m=ce.get(Ee[0].toLowerCase()),Ke+Ee[0].length):-1}function Se(Ge,qe,Ke){return be(Ge,H,qe,Ke)}function Te(Ge,qe,Ke){return be(Ge,U,qe,Ke)}function xe(Ge,qe,Ke){return be(Ge,W,qe,Ke)}function ke(Ge){return Z[Ge.getDay()]}function Ie(Ge){return X[Ge.getDay()]}function Ae(Ge){return ee[Ge.getMonth()]}function Me(Ge){return Q[Ge.getMonth()]}function Fe(Ge){return G[+(Ge.getHours()>=12)]}function Be(Ge){return 1+~~(Ge.getMonth()/3)}function Ne(Ge){return Z[Ge.getUTCDay()]}function Ve(Ge){return X[Ge.getUTCDay()]}function Le(Ge){return ee[Ge.getUTCMonth()]}function De(Ge){return Q[Ge.getUTCMonth()]}function Je(Ge){return G[+(Ge.getUTCHours()>=12)]}function ze(Ge){return 1+~~(Ge.getUTCMonth()/3)}return{format:function(Ge){var qe=me(Ge+="",ve);return qe.toString=function(){return Ge},qe},parse:function(Ge){var qe=_e(Ge+="",!1);return qe.toString=function(){return Ge},qe},utcFormat:function(Ge){var qe=me(Ge+="",ge);return qe.toString=function(){return Ge},qe},utcParse:function(Ge){var qe=_e(Ge+="",!0);return qe.toString=function(){return Ge},qe}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(C,H,U){var W=C<0?"-":"",G=(W?-C:C)+"",X=G.length;return W+(X<U?new Array(U-X+1).join(H)+G:G)}function requote(C){return C.replace(requoteRe,"\\$&")}function formatRe(C){return new RegExp("^(?:"+C.map(requote).join("|")+")","i")}function formatLookup(C){return new Map(C.map((H,U)=>[H.toLowerCase(),U]))}function parseWeekdayNumberSunday(C,H,U){var W=numberRe.exec(H.slice(U,U+1));return W?(C.w=+W[0],U+W[0].length):-1}function parseWeekdayNumberMonday(C,H,U){var W=numberRe.exec(H.slice(U,U+1));return W?(C.u=+W[0],U+W[0].length):-1}function parseWeekNumberSunday(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.U=+W[0],U+W[0].length):-1}function parseWeekNumberISO(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.V=+W[0],U+W[0].length):-1}function parseWeekNumberMonday(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.W=+W[0],U+W[0].length):-1}function parseFullYear(C,H,U){var W=numberRe.exec(H.slice(U,U+4));return W?(C.y=+W[0],U+W[0].length):-1}function parseYear(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.y=+W[0]+(+W[0]>68?1900:2e3),U+W[0].length):-1}function parseZone(C,H,U){var W=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(H.slice(U,U+6));return W?(C.Z=W[1]?0:-(W[2]+(W[3]||"00")),U+W[0].length):-1}function parseQuarter(C,H,U){var W=numberRe.exec(H.slice(U,U+1));return W?(C.q=W[0]*3-3,U+W[0].length):-1}function parseMonthNumber(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.m=W[0]-1,U+W[0].length):-1}function parseDayOfMonth(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.d=+W[0],U+W[0].length):-1}function parseDayOfYear(C,H,U){var W=numberRe.exec(H.slice(U,U+3));return W?(C.m=0,C.d=+W[0],U+W[0].length):-1}function parseHour24(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.H=+W[0],U+W[0].length):-1}function parseMinutes(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.M=+W[0],U+W[0].length):-1}function parseSeconds(C,H,U){var W=numberRe.exec(H.slice(U,U+2));return W?(C.S=+W[0],U+W[0].length):-1}function parseMilliseconds(C,H,U){var W=numberRe.exec(H.slice(U,U+3));return W?(C.L=+W[0],U+W[0].length):-1}function parseMicroseconds(C,H,U){var W=numberRe.exec(H.slice(U,U+6));return W?(C.L=Math.floor(W[0]/1e3),U+W[0].length):-1}function parseLiteralPercent(C,H,U){var W=percentRe.exec(H.slice(U,U+1));return W?U+W[0].length:-1}function parseUnixTimestamp(C,H,U){var W=numberRe.exec(H.slice(U));return W?(C.Q=+W[0],U+W[0].length):-1}function parseUnixTimestampSeconds(C,H,U){var W=numberRe.exec(H.slice(U));return W?(C.s=+W[0],U+W[0].length):-1}function formatDayOfMonth(C,H){return pad(C.getDate(),H,2)}function formatHour24(C,H){return pad(C.getHours(),H,2)}function formatHour12(C,H){return pad(C.getHours()%12||12,H,2)}function formatDayOfYear(C,H){return pad(1+timeDay.count(timeYear(C),C),H,3)}function formatMilliseconds(C,H){return pad(C.getMilliseconds(),H,3)}function formatMicroseconds(C,H){return formatMilliseconds(C,H)+"000"}function formatMonthNumber(C,H){return pad(C.getMonth()+1,H,2)}function formatMinutes(C,H){return pad(C.getMinutes(),H,2)}function formatSeconds(C,H){return pad(C.getSeconds(),H,2)}function formatWeekdayNumberMonday(C){var H=C.getDay();return H===0?7:H}function formatWeekNumberSunday(C,H){return pad(timeSunday.count(timeYear(C)-1,C),H,2)}function dISO(C){var H=C.getDay();return H>=4||H===0?timeThursday(C):timeThursday.ceil(C)}function formatWeekNumberISO(C,H){return C=dISO(C),pad(timeThursday.count(timeYear(C),C)+(timeYear(C).getDay()===4),H,2)}function formatWeekdayNumberSunday(C){return C.getDay()}function formatWeekNumberMonday(C,H){return pad(timeMonday.count(timeYear(C)-1,C),H,2)}function formatYear(C,H){return pad(C.getFullYear()%100,H,2)}function formatYearISO(C,H){return C=dISO(C),pad(C.getFullYear()%100,H,2)}function formatFullYear(C,H){return pad(C.getFullYear()%1e4,H,4)}function formatFullYearISO(C,H){var U=C.getDay();return C=U>=4||U===0?timeThursday(C):timeThursday.ceil(C),pad(C.getFullYear()%1e4,H,4)}function formatZone(C){var H=C.getTimezoneOffset();return(H>0?"-":(H*=-1,"+"))+pad(H/60|0,"0",2)+pad(H%60,"0",2)}function formatUTCDayOfMonth(C,H){return pad(C.getUTCDate(),H,2)}function formatUTCHour24(C,H){return pad(C.getUTCHours(),H,2)}function formatUTCHour12(C,H){return pad(C.getUTCHours()%12||12,H,2)}function formatUTCDayOfYear(C,H){return pad(1+utcDay.count(utcYear(C),C),H,3)}function formatUTCMilliseconds(C,H){return pad(C.getUTCMilliseconds(),H,3)}function formatUTCMicroseconds(C,H){return formatUTCMilliseconds(C,H)+"000"}function formatUTCMonthNumber(C,H){return pad(C.getUTCMonth()+1,H,2)}function formatUTCMinutes(C,H){return pad(C.getUTCMinutes(),H,2)}function formatUTCSeconds(C,H){return pad(C.getUTCSeconds(),H,2)}function formatUTCWeekdayNumberMonday(C){var H=C.getUTCDay();return H===0?7:H}function formatUTCWeekNumberSunday(C,H){return pad(utcSunday.count(utcYear(C)-1,C),H,2)}function UTCdISO(C){var H=C.getUTCDay();return H>=4||H===0?utcThursday(C):utcThursday.ceil(C)}function formatUTCWeekNumberISO(C,H){return C=UTCdISO(C),pad(utcThursday.count(utcYear(C),C)+(utcYear(C).getUTCDay()===4),H,2)}function formatUTCWeekdayNumberSunday(C){return C.getUTCDay()}function formatUTCWeekNumberMonday(C,H){return pad(utcMonday.count(utcYear(C)-1,C),H,2)}function formatUTCYear(C,H){return pad(C.getUTCFullYear()%100,H,2)}function formatUTCYearISO(C,H){return C=UTCdISO(C),pad(C.getUTCFullYear()%100,H,2)}function formatUTCFullYear(C,H){return pad(C.getUTCFullYear()%1e4,H,4)}function formatUTCFullYearISO(C,H){var U=C.getUTCDay();return C=U>=4||U===0?utcThursday(C):utcThursday.ceil(C),pad(C.getUTCFullYear()%1e4,H,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(C){return+C}function formatUnixTimestampSeconds(C){return Math.floor(+C/1e3)}var locale,timeFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(C){return locale=formatLocale(C),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(C){return new Date(C)}function number(C){return C instanceof Date?+C:+new Date(+C)}function calendar(C,H,U,W,G,X,Z,Q,ee,ie){var te=continuous(),ne=te.invert,ae=te.domain,oe=ie(".%L"),se=ie(":%S"),le=ie("%I:%M"),ce=ie("%I %p"),ue=ie("%a %d"),de=ie("%b %d"),ve=ie("%B"),ge=ie("%Y");function he(me){return(ee(me)<me?oe:Q(me)<me?se:Z(me)<me?le:X(me)<me?ce:W(me)<me?G(me)<me?ue:de:U(me)<me?ve:ge)(me)}return te.invert=function(me){return new Date(ne(me))},te.domain=function(me){return arguments.length?ae(Array.from(me,number)):ae().map(date)},te.ticks=function(me){var _e=ae();return C(_e[0],_e[_e.length-1],me==null?10:me)},te.tickFormat=function(me,_e){return _e==null?he:ie(_e)},te.nice=function(me){var _e=ae();return(!me||typeof me.range!="function")&&(me=H(_e[0],_e[_e.length-1],me==null?10:me)),me?ae(nice(_e,me)):te},te.copy=function(){return copy$1(te,calendar(C,H,U,W,G,X,Z,Q,ee,ie))},te}function time$1(){return initRange.apply(calendar(timeTicks,timeTickInterval,timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute,second,timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function constant$2(C){return function(){return C}}const abs$1=Math.abs,atan2=Math.atan2,cos=Math.cos,max$1=Math.max,min$1=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon=1e-12,pi=Math.PI,halfPi=pi/2,tau=2*pi;function acos(C){return C>1?0:C<-1?pi:Math.acos(C)}function asin(C){return C>=1?halfPi:C<=-1?-halfPi:Math.asin(C)}function withPath(C){let H=3;return C.digits=function(U){if(!arguments.length)return H;if(U==null)H=null;else{const W=Math.floor(U);if(!(W>=0))throw new RangeError(`invalid digits: ${U}`);H=W}return C},()=>new Path(H)}function arcInnerRadius(C){return C.innerRadius}function arcOuterRadius(C){return C.outerRadius}function arcStartAngle(C){return C.startAngle}function arcEndAngle(C){return C.endAngle}function arcPadAngle(C){return C&&C.padAngle}function intersect$1(C,H,U,W,G,X,Z,Q){var ee=U-C,ie=W-H,te=Z-G,ne=Q-X,ae=ne*ee-te*ie;if(!(ae*ae<epsilon))return ae=(te*(H-X)-ne*(C-G))/ae,[C+ae*ee,H+ae*ie]}function cornerTangents(C,H,U,W,G,X,Z){var Q=C-U,ee=H-W,ie=(Z?X:-X)/sqrt(Q*Q+ee*ee),te=ie*ee,ne=-ie*Q,ae=C+te,oe=H+ne,se=U+te,le=W+ne,ce=(ae+se)/2,ue=(oe+le)/2,de=se-ae,ve=le-oe,ge=de*de+ve*ve,he=G-X,me=ae*le-se*oe,_e=(ve<0?-1:1)*sqrt(max$1(0,he*he*ge-me*me)),be=(me*ve-de*_e)/ge,pe=(-me*de-ve*_e)/ge,fe=(me*ve+de*_e)/ge,ye=(-me*de+ve*_e)/ge,$e=be-ce,we=pe-ue,Se=fe-ce,Te=ye-ue;return $e*$e+we*we>Se*Se+Te*Te&&(be=fe,pe=ye),{cx:be,cy:pe,x01:-te,y01:-ne,x11:be*(G/he-1),y11:pe*(G/he-1)}}function arc(){var C=arcInnerRadius,H=arcOuterRadius,U=constant$2(0),W=null,G=arcStartAngle,X=arcEndAngle,Z=arcPadAngle,Q=null,ee=withPath(ie);function ie(){var te,ne,ae=+C.apply(this,arguments),oe=+H.apply(this,arguments),se=G.apply(this,arguments)-halfPi,le=X.apply(this,arguments)-halfPi,ce=abs$1(le-se),ue=le>se;if(Q||(Q=te=ee()),oe<ae&&(ne=oe,oe=ae,ae=ne),!(oe>epsilon))Q.moveTo(0,0);else if(ce>tau-epsilon)Q.moveTo(oe*cos(se),oe*sin(se)),Q.arc(0,0,oe,se,le,!ue),ae>epsilon&&(Q.moveTo(ae*cos(le),ae*sin(le)),Q.arc(0,0,ae,le,se,ue));else{var de=se,ve=le,ge=se,he=le,me=ce,_e=ce,be=Z.apply(this,arguments)/2,pe=be>epsilon&&(W?+W.apply(this,arguments):sqrt(ae*ae+oe*oe)),fe=min$1(abs$1(oe-ae)/2,+U.apply(this,arguments)),ye=fe,$e=fe,we,Se;if(pe>epsilon){var Te=asin(pe/ae*sin(be)),xe=asin(pe/oe*sin(be));(me-=Te*2)>epsilon?(Te*=ue?1:-1,ge+=Te,he-=Te):(me=0,ge=he=(se+le)/2),(_e-=xe*2)>epsilon?(xe*=ue?1:-1,de+=xe,ve-=xe):(_e=0,de=ve=(se+le)/2)}var ke=oe*cos(de),Ie=oe*sin(de),Ae=ae*cos(he),Me=ae*sin(he);if(fe>epsilon){var Fe=oe*cos(ve),Be=oe*sin(ve),Ne=ae*cos(ge),Ve=ae*sin(ge),Le;if(ce<pi)if(Le=intersect$1(ke,Ie,Ne,Ve,Fe,Be,Ae,Me)){var De=ke-Le[0],Je=Ie-Le[1],ze=Fe-Le[0],Ge=Be-Le[1],qe=1/sin(acos((De*ze+Je*Ge)/(sqrt(De*De+Je*Je)*sqrt(ze*ze+Ge*Ge)))/2),Ke=sqrt(Le[0]*Le[0]+Le[1]*Le[1]);ye=min$1(fe,(ae-Ke)/(qe-1)),$e=min$1(fe,(oe-Ke)/(qe+1))}else ye=$e=0}_e>epsilon?$e>epsilon?(we=cornerTangents(Ne,Ve,ke,Ie,oe,$e,ue),Se=cornerTangents(Fe,Be,Ae,Me,oe,$e,ue),Q.moveTo(we.cx+we.x01,we.cy+we.y01),$e<fe?Q.arc(we.cx,we.cy,$e,atan2(we.y01,we.x01),atan2(Se.y01,Se.x01),!ue):(Q.arc(we.cx,we.cy,$e,atan2(we.y01,we.x01),atan2(we.y11,we.x11),!ue),Q.arc(0,0,oe,atan2(we.cy+we.y11,we.cx+we.x11),atan2(Se.cy+Se.y11,Se.cx+Se.x11),!ue),Q.arc(Se.cx,Se.cy,$e,atan2(Se.y11,Se.x11),atan2(Se.y01,Se.x01),!ue))):(Q.moveTo(ke,Ie),Q.arc(0,0,oe,de,ve,!ue)):Q.moveTo(ke,Ie),!(ae>epsilon)||!(me>epsilon)?Q.lineTo(Ae,Me):ye>epsilon?(we=cornerTangents(Ae,Me,Fe,Be,ae,-ye,ue),Se=cornerTangents(ke,Ie,Ne,Ve,ae,-ye,ue),Q.lineTo(we.cx+we.x01,we.cy+we.y01),ye<fe?Q.arc(we.cx,we.cy,ye,atan2(we.y01,we.x01),atan2(Se.y01,Se.x01),!ue):(Q.arc(we.cx,we.cy,ye,atan2(we.y01,we.x01),atan2(we.y11,we.x11),!ue),Q.arc(0,0,ae,atan2(we.cy+we.y11,we.cx+we.x11),atan2(Se.cy+Se.y11,Se.cx+Se.x11),ue),Q.arc(Se.cx,Se.cy,ye,atan2(Se.y11,Se.x11),atan2(Se.y01,Se.x01),!ue))):Q.arc(0,0,ae,he,ge,ue)}if(Q.closePath(),te)return Q=null,te+""||null}return ie.centroid=function(){var te=(+C.apply(this,arguments)+ +H.apply(this,arguments))/2,ne=(+G.apply(this,arguments)+ +X.apply(this,arguments))/2-pi/2;return[cos(ne)*te,sin(ne)*te]},ie.innerRadius=function(te){return arguments.length?(C=typeof te=="function"?te:constant$2(+te),ie):C},ie.outerRadius=function(te){return arguments.length?(H=typeof te=="function"?te:constant$2(+te),ie):H},ie.cornerRadius=function(te){return arguments.length?(U=typeof te=="function"?te:constant$2(+te),ie):U},ie.padRadius=function(te){return arguments.length?(W=te==null?null:typeof te=="function"?te:constant$2(+te),ie):W},ie.startAngle=function(te){return arguments.length?(G=typeof te=="function"?te:constant$2(+te),ie):G},ie.endAngle=function(te){return arguments.length?(X=typeof te=="function"?te:constant$2(+te),ie):X},ie.padAngle=function(te){return arguments.length?(Z=typeof te=="function"?te:constant$2(+te),ie):Z},ie.context=function(te){return arguments.length?(Q=te==null?null:te,ie):Q},ie}function array(C){return typeof C=="object"&&"length"in C?C:Array.from(C)}function Linear(C){this._context=C}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2;default:this._context.lineTo(C,H);break}}};function curveLinear(C){return new Linear(C)}function x(C){return C[0]}function y(C){return C[1]}function line$1(C,H){var U=constant$2(!0),W=null,G=curveLinear,X=null,Z=withPath(Q);C=typeof C=="function"?C:C===void 0?x:constant$2(C),H=typeof H=="function"?H:H===void 0?y:constant$2(H);function Q(ee){var ie,te=(ee=array(ee)).length,ne,ae=!1,oe;for(W==null&&(X=G(oe=Z())),ie=0;ie<=te;++ie)!(ie<te&&U(ne=ee[ie],ie,ee))===ae&&((ae=!ae)?X.lineStart():X.lineEnd()),ae&&X.point(+C(ne,ie,ee),+H(ne,ie,ee));if(oe)return X=null,oe+""||null}return Q.x=function(ee){return arguments.length?(C=typeof ee=="function"?ee:constant$2(+ee),Q):C},Q.y=function(ee){return arguments.length?(H=typeof ee=="function"?ee:constant$2(+ee),Q):H},Q.defined=function(ee){return arguments.length?(U=typeof ee=="function"?ee:constant$2(!!ee),Q):U},Q.curve=function(ee){return arguments.length?(G=ee,W!=null&&(X=G(W)),Q):G},Q.context=function(ee){return arguments.length?(ee==null?W=X=null:X=G(W=ee),Q):W},Q}function descending(C,H){return H<C?-1:H>C?1:H>=C?0:NaN}function identity(C){return C}function pie(){var C=identity,H=descending,U=null,W=constant$2(0),G=constant$2(tau),X=constant$2(0);function Z(Q){var ee,ie=(Q=array(Q)).length,te,ne,ae=0,oe=new Array(ie),se=new Array(ie),le=+W.apply(this,arguments),ce=Math.min(tau,Math.max(-tau,G.apply(this,arguments)-le)),ue,de=Math.min(Math.abs(ce)/ie,X.apply(this,arguments)),ve=de*(ce<0?-1:1),ge;for(ee=0;ee<ie;++ee)(ge=se[oe[ee]=ee]=+C(Q[ee],ee,Q))>0&&(ae+=ge);for(H!=null?oe.sort(function(he,me){return H(se[he],se[me])}):U!=null&&oe.sort(function(he,me){return U(Q[he],Q[me])}),ee=0,ne=ae?(ce-ie*ve)/ae:0;ee<ie;++ee,le=ue)te=oe[ee],ge=se[te],ue=le+(ge>0?ge*ne:0)+ve,se[te]={data:Q[te],index:ee,value:ge,startAngle:le,endAngle:ue,padAngle:de};return se}return Z.value=function(Q){return arguments.length?(C=typeof Q=="function"?Q:constant$2(+Q),Z):C},Z.sortValues=function(Q){return arguments.length?(H=Q,U=null,Z):H},Z.sort=function(Q){return arguments.length?(U=Q,H=null,Z):U},Z.startAngle=function(Q){return arguments.length?(W=typeof Q=="function"?Q:constant$2(+Q),Z):W},Z.endAngle=function(Q){return arguments.length?(G=typeof Q=="function"?Q:constant$2(+Q),Z):G},Z.padAngle=function(Q){return arguments.length?(X=typeof Q=="function"?Q:constant$2(+Q),Z):X},Z}class Bump{constructor(H,U){this._context=H,this._x=U}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(H,U){switch(H=+H,U=+U,this._point){case 0:{this._point=1,this._line?this._context.lineTo(H,U):this._context.moveTo(H,U);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+H)/2,this._y0,this._x0,U,H,U):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+U)/2,H,this._y0,H,U);break}}this._x0=H,this._y0=U}}function bumpX(C){return new Bump(C,!0)}function bumpY(C){return new Bump(C,!1)}function noop(){}function point$4(C,H,U){C._context.bezierCurveTo((2*C._x0+C._x1)/3,(2*C._y0+C._y1)/3,(C._x0+2*C._x1)/3,(C._y0+2*C._y1)/3,(C._x0+4*C._x1+H)/6,(C._y0+4*C._y1+U)/6)}function Basis(C){this._context=C}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$4(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$4(this,C,H);break}this._x0=this._x1,this._x1=C,this._y0=this._y1,this._y1=H}};function curveBasis(C){return new Basis(C)}function BasisClosed(C){this._context=C}BasisClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._x2=C,this._y2=H;break;case 1:this._point=2,this._x3=C,this._y3=H;break;case 2:this._point=3,this._x4=C,this._y4=H,this._context.moveTo((this._x0+4*this._x1+C)/6,(this._y0+4*this._y1+H)/6);break;default:point$4(this,C,H);break}this._x0=this._x1,this._x1=C,this._y0=this._y1,this._y1=H}};function curveBasisClosed(C){return new BasisClosed(C)}function BasisOpen(C){this._context=C}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var U=(this._x0+4*this._x1+C)/6,W=(this._y0+4*this._y1+H)/6;this._line?this._context.lineTo(U,W):this._context.moveTo(U,W);break;case 3:this._point=4;default:point$4(this,C,H);break}this._x0=this._x1,this._x1=C,this._y0=this._y1,this._y1=H}};function curveBasisOpen(C){return new BasisOpen(C)}function Bundle(C,H){this._basis=new Basis(C),this._beta=H}Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var C=this._x,H=this._y,U=C.length-1;if(U>0)for(var W=C[0],G=H[0],X=C[U]-W,Z=H[U]-G,Q=-1,ee;++Q<=U;)ee=Q/U,this._basis.point(this._beta*C[Q]+(1-this._beta)*(W+ee*X),this._beta*H[Q]+(1-this._beta)*(G+ee*Z));this._x=this._y=null,this._basis.lineEnd()},point:function(C,H){this._x.push(+C),this._y.push(+H)}};const curveBundle=function C(H){function U(W){return H===1?new Basis(W):new Bundle(W,H)}return U.beta=function(W){return C(+W)},U}(.85);function point$3(C,H,U){C._context.bezierCurveTo(C._x1+C._k*(C._x2-C._x0),C._y1+C._k*(C._y2-C._y0),C._x2+C._k*(C._x1-H),C._y2+C._k*(C._y1-U),C._x2,C._y2)}function Cardinal(C,H){this._context=C,this._k=(1-H)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$3(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2,this._x1=C,this._y1=H;break;case 2:this._point=3;default:point$3(this,C,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCardinal=function C(H){function U(W){return new Cardinal(W,H)}return U.tension=function(W){return C(+W)},U}(0);function CardinalClosed(C,H){this._context=C,this._k=(1-H)/6}CardinalClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._x3=C,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=C,this._y4=H);break;case 2:this._point=3,this._x5=C,this._y5=H;break;default:point$3(this,C,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCardinalClosed=function C(H){function U(W){return new CardinalClosed(W,H)}return U.tension=function(W){return C(+W)},U}(0);function CardinalOpen(C,H){this._context=C,this._k=(1-H)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$3(this,C,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCardinalOpen=function C(H){function U(W){return new CardinalOpen(W,H)}return U.tension=function(W){return C(+W)},U}(0);function point$2(C,H,U){var W=C._x1,G=C._y1,X=C._x2,Z=C._y2;if(C._l01_a>epsilon){var Q=2*C._l01_2a+3*C._l01_a*C._l12_a+C._l12_2a,ee=3*C._l01_a*(C._l01_a+C._l12_a);W=(W*Q-C._x0*C._l12_2a+C._x2*C._l01_2a)/ee,G=(G*Q-C._y0*C._l12_2a+C._y2*C._l01_2a)/ee}if(C._l23_a>epsilon){var ie=2*C._l23_2a+3*C._l23_a*C._l12_a+C._l12_2a,te=3*C._l23_a*(C._l23_a+C._l12_a);X=(X*ie+C._x1*C._l23_2a-H*C._l12_2a)/te,Z=(Z*ie+C._y1*C._l23_2a-U*C._l12_2a)/te}C._context.bezierCurveTo(W,G,X,Z,C._x2,C._y2)}function CatmullRom(C,H){this._context=C,this._alpha=H}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){if(C=+C,H=+H,this._point){var U=this._x2-C,W=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(U*U+W*W,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2;break;case 2:this._point=3;default:point$2(this,C,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCatmullRom=function C(H){function U(W){return H?new CatmullRom(W,H):new Cardinal(W,0)}return U.alpha=function(W){return C(+W)},U}(.5);function CatmullRomClosed(C,H){this._context=C,this._alpha=H}CatmullRomClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(C,H){if(C=+C,H=+H,this._point){var U=this._x2-C,W=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(U*U+W*W,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=C,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=C,this._y4=H);break;case 2:this._point=3,this._x5=C,this._y5=H;break;default:point$2(this,C,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCatmullRomClosed=function C(H){function U(W){return H?new CatmullRomClosed(W,H):new CardinalClosed(W,0)}return U.alpha=function(W){return C(+W)},U}(.5);function CatmullRomOpen(C,H){this._context=C,this._alpha=H}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){if(C=+C,H=+H,this._point){var U=this._x2-C,W=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(U*U+W*W,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$2(this,C,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=C,this._y0=this._y1,this._y1=this._y2,this._y2=H}};const curveCatmullRomOpen=function C(H){function U(W){return H?new CatmullRomOpen(W,H):new CardinalOpen(W,0)}return U.alpha=function(W){return C(+W)},U}(.5);function LinearClosed(C){this._context=C}LinearClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(C,H){C=+C,H=+H,this._point?this._context.lineTo(C,H):(this._point=1,this._context.moveTo(C,H))}};function curveLinearClosed(C){return new LinearClosed(C)}function sign(C){return C<0?-1:1}function slope3(C,H,U){var W=C._x1-C._x0,G=H-C._x1,X=(C._y1-C._y0)/(W||G<0&&-0),Z=(U-C._y1)/(G||W<0&&-0),Q=(X*G+Z*W)/(W+G);return(sign(X)+sign(Z))*Math.min(Math.abs(X),Math.abs(Z),.5*Math.abs(Q))||0}function slope2(C,H){var U=C._x1-C._x0;return U?(3*(C._y1-C._y0)/U-H)/2:H}function point$1(C,H,U){var W=C._x0,G=C._y0,X=C._x1,Z=C._y1,Q=(X-W)/3;C._context.bezierCurveTo(W+Q,G+Q*H,X-Q,Z-Q*U,X,Z)}function MonotoneX(C){this._context=C}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(C,H){var U=NaN;if(C=+C,H=+H,!(C===this._x1&&H===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,U=slope3(this,C,H)),U);break;default:point$1(this,this._t0,U=slope3(this,C,H));break}this._x0=this._x1,this._x1=C,this._y0=this._y1,this._y1=H,this._t0=U}}};function MonotoneY(C){this._context=new ReflectContext(C)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(C,H){MonotoneX.prototype.point.call(this,H,C)};function ReflectContext(C){this._context=C}ReflectContext.prototype={moveTo:function(C,H){this._context.moveTo(H,C)},closePath:function(){this._context.closePath()},lineTo:function(C,H){this._context.lineTo(H,C)},bezierCurveTo:function(C,H,U,W,G,X){this._context.bezierCurveTo(H,C,W,U,X,G)}};function monotoneX(C){return new MonotoneX(C)}function monotoneY(C){return new MonotoneY(C)}function Natural(C){this._context=C}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var C=this._x,H=this._y,U=C.length;if(U)if(this._line?this._context.lineTo(C[0],H[0]):this._context.moveTo(C[0],H[0]),U===2)this._context.lineTo(C[1],H[1]);else for(var W=controlPoints(C),G=controlPoints(H),X=0,Z=1;Z<U;++X,++Z)this._context.bezierCurveTo(W[0][X],G[0][X],W[1][X],G[1][X],C[Z],H[Z]);(this._line||this._line!==0&&U===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(C,H){this._x.push(+C),this._y.push(+H)}};function controlPoints(C){var H,U=C.length-1,W,G=new Array(U),X=new Array(U),Z=new Array(U);for(G[0]=0,X[0]=2,Z[0]=C[0]+2*C[1],H=1;H<U-1;++H)G[H]=1,X[H]=4,Z[H]=4*C[H]+2*C[H+1];for(G[U-1]=2,X[U-1]=7,Z[U-1]=8*C[U-1]+C[U],H=1;H<U;++H)W=G[H]/X[H-1],X[H]-=W,Z[H]-=W*Z[H-1];for(G[U-1]=Z[U-1]/X[U-1],H=U-2;H>=0;--H)G[H]=(Z[H]-G[H+1])/X[H];for(X[U-1]=(C[U]+G[U-1])/2,H=0;H<U-1;++H)X[H]=2*C[H+1]-G[H+1];return[G,X]}function curveNatural(C){return new Natural(C)}function Step(C,H){this._context=C,this._t=H}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(C,H){switch(C=+C,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(C,H):this._context.moveTo(C,H);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,H),this._context.lineTo(C,H);else{var U=this._x*(1-this._t)+C*this._t;this._context.lineTo(U,this._y),this._context.lineTo(U,H)}break}}this._x=C,this._y=H}};function curveStep(C){return new Step(C,.5)}function stepBefore(C){return new Step(C,0)}function stepAfter(C){return new Step(C,1)}function Transform(C,H,U){this.k=C,this.x=H,this.y=U}Transform.prototype={constructor:Transform,scale:function(C){return C===1?this:new Transform(this.k*C,this.x,this.y)},translate:function(C,H){return C===0&H===0?this:new Transform(this.k,this.x+this.k*C,this.y+this.k*H)},apply:function(C){return[C[0]*this.k+this.x,C[1]*this.k+this.y]},applyX:function(C){return C*this.k+this.x},applyY:function(C){return C*this.k+this.y},invert:function(C){return[(C[0]-this.x)/this.k,(C[1]-this.y)/this.k]},invertX:function(C){return(C-this.x)/this.k},invertY:function(C){return(C-this.y)/this.k},rescaleX:function(C){return C.copy().domain(C.range().map(this.invertX,this).map(C.invert,C))},rescaleY:function(C){return C.copy().domain(C.range().map(this.invertY,this).map(C.invert,C))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Transform(1,0,0);Transform.prototype;/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function _typeof(C){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_typeof(C)}function _setPrototypeOf(C,H){return _setPrototypeOf=Object.setPrototypeOf||function(W,G){return W.__proto__=G,W},_setPrototypeOf(C,H)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(C,H,U){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(G,X,Z){var Q=[null];Q.push.apply(Q,X);var ee=Function.bind.apply(G,Q),ie=new ee;return Z&&_setPrototypeOf(ie,Z.prototype),ie},_construct.apply(null,arguments)}function _toConsumableArray(C){return _arrayWithoutHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableSpread()}function _arrayWithoutHoles(C){if(Array.isArray(C))return _arrayLikeToArray(C)}function _iterableToArray(C){if(typeof Symbol<"u"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function _unsupportedIterableToArray(C,H){if(!!C){if(typeof C=="string")return _arrayLikeToArray(C,H);var U=Object.prototype.toString.call(C).slice(8,-1);if(U==="Object"&&C.constructor&&(U=C.constructor.name),U==="Map"||U==="Set")return Array.from(C);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return _arrayLikeToArray(C,H)}}function _arrayLikeToArray(C,H){(H==null||H>C.length)&&(H=C.length);for(var U=0,W=new Array(H);U<H;U++)W[U]=C[U];return W}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hasOwnProperty$e=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf=Object.getPrototypeOf,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create=Object.create,_ref=typeof Reflect<"u"&&Reflect,apply$2=_ref.apply,construct=_ref.construct;apply$2||(apply$2=function(H,U,W){return H.apply(U,W)});freeze||(freeze=function(H){return H});seal||(seal=function(H){return H});construct||(construct=function(H,U){return _construct(H,_toConsumableArray(U))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush$3=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(C){return function(H){for(var U=arguments.length,W=new Array(U>1?U-1:0),G=1;G<U;G++)W[G-1]=arguments[G];return apply$2(C,H,W)}}function unconstruct(C){return function(){for(var H=arguments.length,U=new Array(H),W=0;W<H;W++)U[W]=arguments[W];return construct(C,U)}}function addToSet(C,H,U){U=U||stringToLowerCase,setPrototypeOf&&setPrototypeOf(C,null);for(var W=H.length;W--;){var G=H[W];if(typeof G=="string"){var X=U(G);X!==G&&(isFrozen(H)||(H[W]=X),G=X)}C[G]=!0}return C}function clone$2(C){var H=create(null),U;for(U in C)apply$2(hasOwnProperty$e,C,[U])===!0&&(H[U]=C[U]);return H}function lookupGetter(C,H){for(;C!==null;){var U=getOwnPropertyDescriptor(C,H);if(U){if(U.get)return unapply(U.get);if(typeof U.value=="function")return unapply(U.value)}C=getPrototypeOf(C)}function W(G){return console.warn("fallback value for",G),null}return W}var html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(H,U){if(_typeof(H)!=="object"||typeof H.createPolicy!="function")return null;var W=null,G="data-tt-policy-suffix";U.currentScript&&U.currentScript.hasAttribute(G)&&(W=U.currentScript.getAttribute(G));var X="dompurify"+(W?"#"+W:"");try{return H.createPolicy(X,{createHTML:function(Q){return Q},createScriptURL:function(Q){return Q}})}catch{return console.warn("TrustedTypes policy "+X+" could not be created."),null}};function createDOMPurify(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),H=function(ht){return createDOMPurify(ht)};if(H.version="2.4.3",H.removed=[],!C||!C.document||C.document.nodeType!==9)return H.isSupported=!1,H;var U=C.document,W=C.document,G=C.DocumentFragment,X=C.HTMLTemplateElement,Z=C.Node,Q=C.Element,ee=C.NodeFilter,ie=C.NamedNodeMap,te=ie===void 0?C.NamedNodeMap||C.MozNamedAttrMap:ie,ne=C.HTMLFormElement,ae=C.DOMParser,oe=C.trustedTypes,se=Q.prototype,le=lookupGetter(se,"cloneNode"),ce=lookupGetter(se,"nextSibling"),ue=lookupGetter(se,"childNodes"),de=lookupGetter(se,"parentNode");if(typeof X=="function"){var ve=W.createElement("template");ve.content&&ve.content.ownerDocument&&(W=ve.content.ownerDocument)}var ge=_createTrustedTypesPolicy(oe,U),he=ge?ge.createHTML(""):"",me=W,_e=me.implementation,be=me.createNodeIterator,pe=me.createDocumentFragment,fe=me.getElementsByTagName,ye=U.importNode,$e={};try{$e=clone$2(W).documentMode?W.documentMode:{}}catch{}var we={};H.isSupported=typeof de=="function"&&_e&&typeof _e.createHTMLDocument<"u"&&$e!==9;var Se=MUSTACHE_EXPR,Te=ERB_EXPR,xe=TMPLIT_EXPR,ke=DATA_ATTR,Ie=ARIA_ATTR,Ae=IS_SCRIPT_OR_DATA,Me=ATTR_WHITESPACE,Fe=IS_ALLOWED_URI,Be=null,Ne=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),Ve=null,Le=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Je=null,ze=null,Ge=!0,qe=!0,Ke=!1,Ee=!1,Ce=!1,Pe=!1,Re=!1,Ze=!1,Oe=!1,Qe=!1,Xe=!0,et=!1,We="user-content-",He=!0,Ye=!1,nt={},tt=null,at=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),St=null,st=addToSet({},["audio","video","img","source","image","track"]),it=null,pt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml",gt=mt,lt=!1,ct=null,vt=addToSet({},[wt,xt,mt],stringToString),_t,rt=["application/xhtml+xml","text/html"],ut="text/html",ot,Tt=null,ft=W.createElement("form"),Ct=function(ht){return ht instanceof RegExp||ht instanceof Function},At=function(ht){Tt&&Tt===ht||((!ht||_typeof(ht)!=="object")&&(ht={}),ht=clone$2(ht),_t=rt.indexOf(ht.PARSER_MEDIA_TYPE)===-1?_t=ut:_t=ht.PARSER_MEDIA_TYPE,ot=_t==="application/xhtml+xml"?stringToString:stringToLowerCase,Be="ALLOWED_TAGS"in ht?addToSet({},ht.ALLOWED_TAGS,ot):Ne,Ve="ALLOWED_ATTR"in ht?addToSet({},ht.ALLOWED_ATTR,ot):Le,ct="ALLOWED_NAMESPACES"in ht?addToSet({},ht.ALLOWED_NAMESPACES,stringToString):vt,it="ADD_URI_SAFE_ATTR"in ht?addToSet(clone$2(pt),ht.ADD_URI_SAFE_ATTR,ot):pt,St="ADD_DATA_URI_TAGS"in ht?addToSet(clone$2(st),ht.ADD_DATA_URI_TAGS,ot):st,tt="FORBID_CONTENTS"in ht?addToSet({},ht.FORBID_CONTENTS,ot):at,Je="FORBID_TAGS"in ht?addToSet({},ht.FORBID_TAGS,ot):{},ze="FORBID_ATTR"in ht?addToSet({},ht.FORBID_ATTR,ot):{},nt="USE_PROFILES"in ht?ht.USE_PROFILES:!1,Ge=ht.ALLOW_ARIA_ATTR!==!1,qe=ht.ALLOW_DATA_ATTR!==!1,Ke=ht.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=ht.SAFE_FOR_TEMPLATES||!1,Ce=ht.WHOLE_DOCUMENT||!1,Ze=ht.RETURN_DOM||!1,Oe=ht.RETURN_DOM_FRAGMENT||!1,Qe=ht.RETURN_TRUSTED_TYPE||!1,Re=ht.FORCE_BODY||!1,Xe=ht.SANITIZE_DOM!==!1,et=ht.SANITIZE_NAMED_PROPS||!1,He=ht.KEEP_CONTENT!==!1,Ye=ht.IN_PLACE||!1,Fe=ht.ALLOWED_URI_REGEXP||Fe,gt=ht.NAMESPACE||mt,ht.CUSTOM_ELEMENT_HANDLING&&Ct(ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ht.CUSTOM_ELEMENT_HANDLING&&Ct(ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ht.CUSTOM_ELEMENT_HANDLING&&typeof ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(De.allowCustomizedBuiltInElements=ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(qe=!1),Oe&&(Ze=!0),nt&&(Be=addToSet({},_toConsumableArray(text)),Ve=[],nt.html===!0&&(addToSet(Be,html$1),addToSet(Ve,html)),nt.svg===!0&&(addToSet(Be,svg$1),addToSet(Ve,svg),addToSet(Ve,xml)),nt.svgFilters===!0&&(addToSet(Be,svgFilters),addToSet(Ve,svg),addToSet(Ve,xml)),nt.mathMl===!0&&(addToSet(Be,mathMl$1),addToSet(Ve,mathMl),addToSet(Ve,xml))),ht.ADD_TAGS&&(Be===Ne&&(Be=clone$2(Be)),addToSet(Be,ht.ADD_TAGS,ot)),ht.ADD_ATTR&&(Ve===Le&&(Ve=clone$2(Ve)),addToSet(Ve,ht.ADD_ATTR,ot)),ht.ADD_URI_SAFE_ATTR&&addToSet(it,ht.ADD_URI_SAFE_ATTR,ot),ht.FORBID_CONTENTS&&(tt===at&&(tt=clone$2(tt)),addToSet(tt,ht.FORBID_CONTENTS,ot)),He&&(Be["#text"]=!0),Ce&&addToSet(Be,["html","head","body"]),Be.table&&(addToSet(Be,["tbody"]),delete Je.tbody),freeze&&freeze(ht),Tt=ht)},Rt=addToSet({},["mi","mo","mn","ms","mtext"]),It=addToSet({},["foreignobject","desc","title","annotation-xml"]),Ft=addToSet({},["title","style","font","a","script"]),Pt=addToSet({},svg$1);addToSet(Pt,svgFilters),addToSet(Pt,svgDisallowed);var Ht=addToSet({},mathMl$1);addToSet(Ht,mathMlDisallowed);var Dt=function(ht){var kt=de(ht);(!kt||!kt.tagName)&&(kt={namespaceURI:gt,tagName:"template"});var Mt=stringToLowerCase(ht.tagName),zt=stringToLowerCase(kt.tagName);return ct[ht.namespaceURI]?ht.namespaceURI===xt?kt.namespaceURI===mt?Mt==="svg":kt.namespaceURI===wt?Mt==="svg"&&(zt==="annotation-xml"||Rt[zt]):Boolean(Pt[Mt]):ht.namespaceURI===wt?kt.namespaceURI===mt?Mt==="math":kt.namespaceURI===xt?Mt==="math"&&It[zt]:Boolean(Ht[Mt]):ht.namespaceURI===mt?kt.namespaceURI===xt&&!It[zt]||kt.namespaceURI===wt&&!Rt[zt]?!1:!Ht[Mt]&&(Ft[Mt]||!Pt[Mt]):!!(_t==="application/xhtml+xml"&&ct[ht.namespaceURI]):!1},jt=function(ht){arrayPush$3(H.removed,{element:ht});try{ht.parentNode.removeChild(ht)}catch{try{ht.outerHTML=he}catch{ht.remove()}}},on=function(ht,kt){try{arrayPush$3(H.removed,{attribute:kt.getAttributeNode(ht),from:kt})}catch{arrayPush$3(H.removed,{attribute:null,from:kt})}if(kt.removeAttribute(ht),ht==="is"&&!Ve[ht])if(Ze||Oe)try{jt(kt)}catch{}else try{kt.setAttribute(ht,"")}catch{}},un=function(ht){var kt,Mt;if(Re)ht="<remove></remove>"+ht;else{var zt=stringMatch(ht,/^[\r\n\t ]+/);Mt=zt&&zt[0]}_t==="application/xhtml+xml"&>===mt&&(ht='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ht+"</body></html>");var rn=ge?ge.createHTML(ht):ht;if(gt===mt)try{kt=new ae().parseFromString(rn,_t)}catch{}if(!kt||!kt.documentElement){kt=_e.createDocument(gt,"template",null);try{kt.documentElement.innerHTML=lt?he:rn}catch{}}var ln=kt.body||kt.documentElement;return ht&&Mt&&ln.insertBefore(W.createTextNode(Mt),ln.childNodes[0]||null),gt===mt?fe.call(kt,Ce?"html":"body")[0]:Ce?kt.documentElement:ln},Yt=function(ht){return be.call(ht.ownerDocument||ht,ht,ee.SHOW_ELEMENT|ee.SHOW_COMMENT|ee.SHOW_TEXT,null,!1)},Wt=function(ht){return ht instanceof ne&&(typeof ht.nodeName!="string"||typeof ht.textContent!="string"||typeof ht.removeChild!="function"||!(ht.attributes instanceof te)||typeof ht.removeAttribute!="function"||typeof ht.setAttribute!="function"||typeof ht.namespaceURI!="string"||typeof ht.insertBefore!="function"||typeof ht.hasChildNodes!="function")},Qt=function(ht){return _typeof(Z)==="object"?ht instanceof Z:ht&&_typeof(ht)==="object"&&typeof ht.nodeType=="number"&&typeof ht.nodeName=="string"},Zt=function(ht,kt,Mt){!we[ht]||arrayForEach(we[ht],function(zt){zt.call(H,kt,Mt,Tt)})},Xt=function(ht){var kt;if(Zt("beforeSanitizeElements",ht,null),Wt(ht)||regExpTest(/[\u0080-\uFFFF]/,ht.nodeName))return jt(ht),!0;var Mt=ot(ht.nodeName);if(Zt("uponSanitizeElement",ht,{tagName:Mt,allowedTags:Be}),ht.hasChildNodes()&&!Qt(ht.firstElementChild)&&(!Qt(ht.content)||!Qt(ht.content.firstElementChild))&®ExpTest(/<[/\w]/g,ht.innerHTML)&®ExpTest(/<[/\w]/g,ht.textContent)||Mt==="select"&®ExpTest(/<template/i,ht.innerHTML))return jt(ht),!0;if(!Be[Mt]||Je[Mt]){if(!Je[Mt]&&sn(Mt)&&(De.tagNameCheck instanceof RegExp&®ExpTest(De.tagNameCheck,Mt)||De.tagNameCheck instanceof Function&&De.tagNameCheck(Mt)))return!1;if(He&&!tt[Mt]){var zt=de(ht)||ht.parentNode,rn=ue(ht)||ht.childNodes;if(rn&&zt)for(var ln=rn.length,gn=ln-1;gn>=0;--gn)zt.insertBefore(le(rn[gn],!0),ce(ht))}return jt(ht),!0}return ht instanceof Q&&!Dt(ht)||(Mt==="noscript"||Mt==="noembed")&®ExpTest(/<\/no(script|embed)/i,ht.innerHTML)?(jt(ht),!0):(Ee&&ht.nodeType===3&&(kt=ht.textContent,kt=stringReplace(kt,Se," "),kt=stringReplace(kt,Te," "),kt=stringReplace(kt,xe," "),ht.textContent!==kt&&(arrayPush$3(H.removed,{element:ht.cloneNode()}),ht.textContent=kt)),Zt("afterSanitizeElements",ht,null),!1)},Jt=function(ht,kt,Mt){if(Xe&&(kt==="id"||kt==="name")&&(Mt in W||Mt in ft))return!1;if(!(qe&&!ze[kt]&®ExpTest(ke,kt))){if(!(Ge&®ExpTest(Ie,kt))){if(!Ve[kt]||ze[kt]){if(!(sn(ht)&&(De.tagNameCheck instanceof RegExp&®ExpTest(De.tagNameCheck,ht)||De.tagNameCheck instanceof Function&&De.tagNameCheck(ht))&&(De.attributeNameCheck instanceof RegExp&®ExpTest(De.attributeNameCheck,kt)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(kt))||kt==="is"&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&®ExpTest(De.tagNameCheck,Mt)||De.tagNameCheck instanceof Function&&De.tagNameCheck(Mt))))return!1}else if(!it[kt]){if(!regExpTest(Fe,stringReplace(Mt,Me,""))){if(!((kt==="src"||kt==="xlink:href"||kt==="href")&&ht!=="script"&&stringIndexOf(Mt,"data:")===0&&St[ht])){if(!(Ke&&!regExpTest(Ae,stringReplace(Mt,Me,"")))){if(Mt)return!1}}}}}}return!0},sn=function(ht){return ht.indexOf("-")>0},en=function(ht){var kt,Mt,zt,rn;Zt("beforeSanitizeAttributes",ht,null);var ln=ht.attributes;if(!!ln){var gn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve};for(rn=ln.length;rn--;){kt=ln[rn];var vn=kt,hn=vn.name,Cn=vn.namespaceURI;if(Mt=hn==="value"?kt.value:stringTrim(kt.value),zt=ot(hn),gn.attrName=zt,gn.attrValue=Mt,gn.keepAttr=!0,gn.forceKeepAttr=void 0,Zt("uponSanitizeAttribute",ht,gn),Mt=gn.attrValue,!gn.forceKeepAttr&&(on(hn,ht),!!gn.keepAttr)){if(regExpTest(/\/>/i,Mt)){on(hn,ht);continue}Ee&&(Mt=stringReplace(Mt,Se," "),Mt=stringReplace(Mt,Te," "),Mt=stringReplace(Mt,xe," "));var $n=ot(ht.nodeName);if(!!Jt($n,zt,Mt)){if(et&&(zt==="id"||zt==="name")&&(on(hn,ht),Mt=We+Mt),ge&&_typeof(oe)==="object"&&typeof oe.getAttributeType=="function"&&!Cn)switch(oe.getAttributeType($n,zt)){case"TrustedHTML":Mt=ge.createHTML(Mt);break;case"TrustedScriptURL":Mt=ge.createScriptURL(Mt);break}try{Cn?ht.setAttributeNS(Cn,hn,Mt):ht.setAttribute(hn,Mt),arrayPop(H.removed)}catch{}}}}Zt("afterSanitizeAttributes",ht,null)}},dn=function Vt(ht){var kt,Mt=Yt(ht);for(Zt("beforeSanitizeShadowDOM",ht,null);kt=Mt.nextNode();)Zt("uponSanitizeShadowNode",kt,null),!Xt(kt)&&(kt.content instanceof G&&Vt(kt.content),en(kt));Zt("afterSanitizeShadowDOM",ht,null)};return H.sanitize=function(Vt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kt,Mt,zt,rn,ln;if(lt=!Vt,lt&&(Vt="<!-->"),typeof Vt!="string"&&!Qt(Vt)){if(typeof Vt.toString!="function")throw typeErrorCreate("toString is not a function");if(Vt=Vt.toString(),typeof Vt!="string")throw typeErrorCreate("dirty is not a string, aborting")}if(!H.isSupported){if(_typeof(C.toStaticHTML)==="object"||typeof C.toStaticHTML=="function"){if(typeof Vt=="string")return C.toStaticHTML(Vt);if(Qt(Vt))return C.toStaticHTML(Vt.outerHTML)}return Vt}if(Pe||At(ht),H.removed=[],typeof Vt=="string"&&(Ye=!1),Ye){if(Vt.nodeName){var gn=ot(Vt.nodeName);if(!Be[gn]||Je[gn])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Vt instanceof Z)kt=un("<!---->"),Mt=kt.ownerDocument.importNode(Vt,!0),Mt.nodeType===1&&Mt.nodeName==="BODY"||Mt.nodeName==="HTML"?kt=Mt:kt.appendChild(Mt);else{if(!Ze&&!Ee&&!Ce&&Vt.indexOf("<")===-1)return ge&&Qe?ge.createHTML(Vt):Vt;if(kt=un(Vt),!kt)return Ze?null:Qe?he:""}kt&&Re&&jt(kt.firstChild);for(var vn=Yt(Ye?Vt:kt);zt=vn.nextNode();)zt.nodeType===3&&zt===rn||Xt(zt)||(zt.content instanceof G&&dn(zt.content),en(zt),rn=zt);if(rn=null,Ye)return Vt;if(Ze){if(Oe)for(ln=pe.call(kt.ownerDocument);kt.firstChild;)ln.appendChild(kt.firstChild);else ln=kt;return Ve.shadowroot&&(ln=ye.call(U,ln,!0)),ln}var hn=Ce?kt.outerHTML:kt.innerHTML;return Ce&&Be["!doctype"]&&kt.ownerDocument&&kt.ownerDocument.doctype&&kt.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,kt.ownerDocument.doctype.name)&&(hn="<!DOCTYPE "+kt.ownerDocument.doctype.name+`>
|
||
`+hn),Ee&&(hn=stringReplace(hn,Se," "),hn=stringReplace(hn,Te," "),hn=stringReplace(hn,xe," ")),ge&&Qe?ge.createHTML(hn):hn},H.setConfig=function(Vt){At(Vt),Pe=!0},H.clearConfig=function(){Tt=null,Pe=!1},H.isValidAttribute=function(Vt,ht,kt){Tt||At({});var Mt=ot(Vt),zt=ot(ht);return Jt(Mt,zt,kt)},H.addHook=function(Vt,ht){typeof ht=="function"&&(we[Vt]=we[Vt]||[],arrayPush$3(we[Vt],ht))},H.removeHook=function(Vt){if(we[Vt])return arrayPop(we[Vt])},H.removeHooks=function(Vt){we[Vt]&&(we[Vt]=[])},H.removeAllHooks=function(){we={}},H}var purify=createDOMPurify();const Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:C=>C>=255?255:C<0?0:C,g:C=>C>=255?255:C<0?0:C,b:C=>C>=255?255:C<0?0:C,h:C=>C%360,s:C=>C>=100?100:C<0?0:C,l:C=>C>=100?100:C<0?0:C,a:C=>C>=1?1:C<0?0:C},toLinear:C=>{const H=C/255;return C>.03928?Math.pow((H+.055)/1.055,2.4):H/12.92},hue2rgb:(C,H,U)=>(U<0&&(U+=1),U>1&&(U-=1),U<1/6?C+(H-C)*6*U:U<1/2?H:U<2/3?C+(H-C)*(2/3-U)*6:C),hsl2rgb:({h:C,s:H,l:U},W)=>{if(!H)return U*2.55;C/=360,H/=100,U/=100;const G=U<.5?U*(1+H):U+H-U*H,X=2*U-G;switch(W){case"r":return Channel.hue2rgb(X,G,C+1/3)*255;case"g":return Channel.hue2rgb(X,G,C)*255;case"b":return Channel.hue2rgb(X,G,C-1/3)*255}},rgb2hsl:({r:C,g:H,b:U},W)=>{C/=255,H/=255,U/=255;const G=Math.max(C,H,U),X=Math.min(C,H,U),Z=(G+X)/2;if(W==="l")return Z*100;if(G===X)return 0;const Q=G-X,ee=Z>.5?Q/(2-G-X):Q/(G+X);if(W==="s")return ee*100;switch(G){case C:return((H-U)/Q+(H<U?6:0))*60;case H:return((U-C)/Q+2)*60;case U:return((C-H)/Q+4)*60;default:return-1}}},channel=Channel,Lang={clamp:(C,H,U)=>H>U?Math.min(H,Math.max(U,C)):Math.min(U,Math.max(H,C)),round:C=>Math.round(C*1e10)/1e10},lang=Lang,Unit={dec2hex:C=>{const H=Math.round(C).toString(16);return H.length>1?H:`0${H}`}},unit=Unit,Utils={channel,lang,unit},_=Utils,DEC2HEX={};for(let C=0;C<=255;C++)DEC2HEX[C]=_.unit.dec2hex(C);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(H){if(this.type&&this.type!==H)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=H}reset(){this.type=TYPE.ALL}is(H){return this.type===H}}const Type$2=Type;class Channels{constructor(H,U){this.color=U,this.changed=!1,this.data=H,this.type=new Type$2}set(H,U){return this.color=U,this.changed=!1,this.data=H,this.type.type=TYPE.ALL,this}_ensureHSL(){const H=this.data,{h:U,s:W,l:G}=H;U===void 0&&(H.h=_.channel.rgb2hsl(H,"h")),W===void 0&&(H.s=_.channel.rgb2hsl(H,"s")),G===void 0&&(H.l=_.channel.rgb2hsl(H,"l"))}_ensureRGB(){const H=this.data,{r:U,g:W,b:G}=H;U===void 0&&(H.r=_.channel.hsl2rgb(H,"r")),W===void 0&&(H.g=_.channel.hsl2rgb(H,"g")),G===void 0&&(H.b=_.channel.hsl2rgb(H,"b"))}get r(){const H=this.data,U=H.r;return!this.type.is(TYPE.HSL)&&U!==void 0?U:(this._ensureHSL(),_.channel.hsl2rgb(H,"r"))}get g(){const H=this.data,U=H.g;return!this.type.is(TYPE.HSL)&&U!==void 0?U:(this._ensureHSL(),_.channel.hsl2rgb(H,"g"))}get b(){const H=this.data,U=H.b;return!this.type.is(TYPE.HSL)&&U!==void 0?U:(this._ensureHSL(),_.channel.hsl2rgb(H,"b"))}get h(){const H=this.data,U=H.h;return!this.type.is(TYPE.RGB)&&U!==void 0?U:(this._ensureRGB(),_.channel.rgb2hsl(H,"h"))}get s(){const H=this.data,U=H.s;return!this.type.is(TYPE.RGB)&&U!==void 0?U:(this._ensureRGB(),_.channel.rgb2hsl(H,"s"))}get l(){const H=this.data,U=H.l;return!this.type.is(TYPE.RGB)&&U!==void 0?U:(this._ensureRGB(),_.channel.rgb2hsl(H,"l"))}get a(){return this.data.a}set r(H){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=H}set g(H){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=H}set b(H){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=H}set h(H){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=H}set s(H){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=H}set l(H){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=H}set a(H){this.changed=!0,this.data.a=H}}const Channels$1=Channels,channels=new Channels$1({r:0,g:0,b:0,a:0},"transparent"),ChannelsReusable=channels,Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:C=>{if(C.charCodeAt(0)!==35)return;const H=C.match(Hex.re);if(!H)return;const U=H[1],W=parseInt(U,16),G=U.length,X=G%4===0,Z=G>4,Q=Z?1:17,ee=Z?8:4,ie=X?0:-1,te=Z?255:15;return ChannelsReusable.set({r:(W>>ee*(ie+3)&te)*Q,g:(W>>ee*(ie+2)&te)*Q,b:(W>>ee*(ie+1)&te)*Q,a:X?(W&te)*Q/255:1},C)},stringify:C=>{const{r:H,g:U,b:W,a:G}=C;return G<1?`#${DEC2HEX[Math.round(H)]}${DEC2HEX[Math.round(U)]}${DEC2HEX[Math.round(W)]}${DEC2HEX[Math.round(G*255)]}`:`#${DEC2HEX[Math.round(H)]}${DEC2HEX[Math.round(U)]}${DEC2HEX[Math.round(W)]}`}},Hex$1=Hex,HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:C=>{const H=C.match(HSL.hueRe);if(H){const[,U,W]=H;switch(W){case"grad":return _.channel.clamp.h(parseFloat(U)*.9);case"rad":return _.channel.clamp.h(parseFloat(U)*180/Math.PI);case"turn":return _.channel.clamp.h(parseFloat(U)*360)}}return _.channel.clamp.h(parseFloat(C))},parse:C=>{const H=C.charCodeAt(0);if(H!==104&&H!==72)return;const U=C.match(HSL.re);if(!U)return;const[,W,G,X,Z,Q]=U;return ChannelsReusable.set({h:HSL._hue2deg(W),s:_.channel.clamp.s(parseFloat(G)),l:_.channel.clamp.l(parseFloat(X)),a:Z?_.channel.clamp.a(Q?parseFloat(Z)/100:parseFloat(Z)):1},C)},stringify:C=>{const{h:H,s:U,l:W,a:G}=C;return G<1?`hsla(${_.lang.round(H)}, ${_.lang.round(U)}%, ${_.lang.round(W)}%, ${G})`:`hsl(${_.lang.round(H)}, ${_.lang.round(U)}%, ${_.lang.round(W)}%)`}},HSL$1=HSL,Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:C=>{C=C.toLowerCase();const H=Keyword.colors[C];if(!!H)return Hex$1.parse(H)},stringify:C=>{const H=Hex$1.stringify(C);for(const U in Keyword.colors)if(Keyword.colors[U]===H)return U}},Keyword$1=Keyword,RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:C=>{const H=C.charCodeAt(0);if(H!==114&&H!==82)return;const U=C.match(RGB.re);if(!U)return;const[,W,G,X,Z,Q,ee,ie,te]=U;return ChannelsReusable.set({r:_.channel.clamp.r(G?parseFloat(W)*2.55:parseFloat(W)),g:_.channel.clamp.g(Z?parseFloat(X)*2.55:parseFloat(X)),b:_.channel.clamp.b(ee?parseFloat(Q)*2.55:parseFloat(Q)),a:ie?_.channel.clamp.a(te?parseFloat(ie)/100:parseFloat(ie)):1},C)},stringify:C=>{const{r:H,g:U,b:W,a:G}=C;return G<1?`rgba(${_.lang.round(H)}, ${_.lang.round(U)}, ${_.lang.round(W)}, ${_.lang.round(G)})`:`rgb(${_.lang.round(H)}, ${_.lang.round(U)}, ${_.lang.round(W)})`}},RGB$1=RGB,Color={format:{keyword:Keyword$1,hex:Hex$1,rgb:RGB$1,rgba:RGB$1,hsl:HSL$1,hsla:HSL$1},parse:C=>{if(typeof C!="string")return C;const H=Hex$1.parse(C)||RGB$1.parse(C)||HSL$1.parse(C)||Keyword$1.parse(C);if(H)return H;throw new Error(`Unsupported color format: "${C}"`)},stringify:C=>!C.changed&&C.color?C.color:C.type.is(TYPE.HSL)||C.data.r===void 0?HSL$1.stringify(C):C.a<1||!Number.isInteger(C.r)||!Number.isInteger(C.g)||!Number.isInteger(C.b)?RGB$1.stringify(C):Hex$1.stringify(C)},Color$1=Color,change=(C,H)=>{const U=Color$1.parse(C);for(const W in H)U[W]=_.channel.clamp[W](H[W]);return Color$1.stringify(U)},change$1=change,rgba=(C,H,U=0,W=1)=>{if(typeof C!="number")return change$1(C,{a:H});const G=ChannelsReusable.set({r:_.channel.clamp.r(C),g:_.channel.clamp.g(H),b:_.channel.clamp.b(U),a:_.channel.clamp.a(W)});return Color$1.stringify(G)},rgba$1=rgba,adjustChannel=(C,H,U)=>{const W=Color$1.parse(C),G=W[H],X=_.channel.clamp[H](G+U);return G!==X&&(W[H]=X),Color$1.stringify(W)},adjustChannel$1=adjustChannel,lighten=(C,H)=>adjustChannel$1(C,"l",H),lighten$1=lighten,darken=(C,H)=>adjustChannel$1(C,"l",-H),darken$1=darken,adjust$1=(C,H)=>{const U=Color$1.parse(C),W={};for(const G in H)!H[G]||(W[G]=U[G]+H[G]);return change$1(C,W)},adjust$2=adjust$1,mix=(C,H,U=50)=>{const{r:W,g:G,b:X,a:Z}=Color$1.parse(C),{r:Q,g:ee,b:ie,a:te}=Color$1.parse(H),ne=U/100,ae=ne*2-1,oe=Z-te,le=((ae*oe===-1?ae:(ae+oe)/(1+ae*oe))+1)/2,ce=1-le,ue=W*le+Q*ce,de=G*le+ee*ce,ve=X*le+ie*ce,ge=Z*ne+te*(1-ne);return rgba$1(ue,de,ve,ge)},mix$1=mix,invert=(C,H=100)=>{const U=Color$1.parse(C);return U.r=255-U.r,U.g=255-U.g,U.b=255-U.b,mix$1(U,C,H)},invert$1=invert;var COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",abs=Math.abs,from=String.fromCharCode;function trim$1(C){return C.trim()}function replace(C,H,U){return C.replace(H,U)}function indexof(C,H){return C.indexOf(H)}function charat(C,H){return C.charCodeAt(H)|0}function substr(C,H,U){return C.slice(H,U)}function strlen(C){return C.length}function sizeof(C){return C.length}function append(C,H){return H.push(C),C}var line=1,column=1,length=0,position$1=0,character=0,characters="";function node(C,H,U,W,G,X,Z){return{value:C,root:H,parent:U,type:W,props:G,children:X,line,column,length:Z,return:""}}function char(){return character}function prev(){return character=position$1>0?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$1<length?charat(characters,position$1++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$1)}function caret(){return position$1}function slice(C,H){return substr(characters,C,H)}function token(C){switch(C){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(C){return line=column=1,length=strlen(characters=C),position$1=0,[]}function dealloc(C){return characters="",C}function delimit(C){return trim$1(slice(position$1-1,delimiter(C===91?C+2:C===40?C+1:C)))}function whitespace(C){for(;(character=peek())&&character<33;)next();return token(C)>2||token(character)>3?"":" "}function escaping(C,H){for(;--H&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(C,caret()+(H<6&&peek()==32&&next()==32))}function delimiter(C){for(;next();)switch(character){case C:return position$1;case 34:case 39:C!==34&&C!==39&&delimiter(character);break;case 40:C===41&&delimiter(C);break;case 92:next();break}return position$1}function commenter(C,H){for(;next()&&C+character!==47+10;)if(C+character===42+42&&peek()===47)break;return"/*"+slice(H,position$1-1)+"*"+from(C===47?C:next())}function identifier(C){for(;!token(peek());)next();return slice(C,position$1)}function compile(C){return dealloc(parse$3("",null,null,null,[""],C=alloc(C),0,[0],C))}function parse$3(C,H,U,W,G,X,Z,Q,ee){for(var ie=0,te=0,ne=Z,ae=0,oe=0,se=0,le=1,ce=1,ue=1,de=0,ve="",ge=G,he=X,me=W,_e=ve;ce;)switch(se=de,de=next()){case 40:if(se!=108&&charat(_e,ne-1)==58){indexof(_e+=replace(delimit(de),"&","&\f"),"&\f")!=-1&&(ue=-1);break}case 34:case 39:case 91:_e+=delimit(de);break;case 9:case 10:case 13:case 32:_e+=whitespace(se);break;case 92:_e+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),H,U),ee);break;default:_e+="/"}break;case 123*le:Q[ie++]=strlen(_e)*ue;case 125*le:case 59:case 0:switch(de){case 0:case 125:ce=0;case 59+te:oe>0&&strlen(_e)-ne&&append(oe>32?declaration(_e+";",W,U,ne-1):declaration(replace(_e," ","")+";",W,U,ne-2),ee);break;case 59:_e+=";";default:if(append(me=ruleset(_e,H,U,ie,te,G,Q,ve,ge=[],he=[],ne),X),de===123)if(te===0)parse$3(_e,H,me,me,ge,X,ne,Q,he);else switch(ae===99&&charat(_e,3)===110?100:ae){case 100:case 109:case 115:parse$3(C,me,me,W&&append(ruleset(C,me,me,0,0,G,Q,ve,G,ge=[],ne),he),G,he,ne,Q,W?ge:he);break;default:parse$3(_e,me,me,me,[""],he,0,Q,he)}}ie=te=oe=0,le=ue=1,ve=_e="",ne=Z;break;case 58:ne=1+strlen(_e),oe=se;default:if(le<1){if(de==123)--le;else if(de==125&&le++==0&&prev()==125)continue}switch(_e+=from(de),de*le){case 38:ue=te>0?1:(_e+="\f",-1);break;case 44:Q[ie++]=(strlen(_e)-1)*ue,ue=1;break;case 64:peek()===45&&(_e+=delimit(next())),ae=peek(),te=ne=strlen(ve=_e+=identifier(caret())),de++;break;case 45:se===45&&strlen(_e)==2&&(le=0)}}return X}function ruleset(C,H,U,W,G,X,Z,Q,ee,ie,te){for(var ne=G-1,ae=G===0?X:[""],oe=sizeof(ae),se=0,le=0,ce=0;se<W;++se)for(var ue=0,de=substr(C,ne+1,ne=abs(le=Z[se])),ve=C;ue<oe;++ue)(ve=trim$1(le>0?ae[ue]+" "+de:replace(de,/&\f/g,ae[ue])))&&(ee[ce++]=ve);return node(C,H,U,G===0?RULESET:Q,ee,ie,te)}function comment(C,H,U){return node(C,H,U,COMMENT,from(char()),substr(C,2,-2),0)}function declaration(C,H,U,W){return node(C,H,U,DECLARATION,substr(C,0,W),substr(C,W+1,-1),W)}function serialize(C,H){for(var U="",W=sizeof(C),G=0;G<W;G++)U+=H(C[G],G,C,H)||"";return U}function stringify(C,H,U,W){switch(C.type){case IMPORT:case DECLARATION:return C.return=C.return||C.value;case COMMENT:return"";case KEYFRAMES:return C.return=C.value+"{"+serialize(C.children,W)+"}";case RULESET:C.value=C.props.join(",")}return strlen(U=serialize(C.children,W))?C.return=C.value+"{"+U+"}":""}function isIterateeCall$2(C,H,U){if(!isObject$d(U))return!1;var W=typeof H;return(W=="number"?isArrayLike$5(U)&&isIndex$4(H,U.length):W=="string"&&H in U)?eq$4(U[H],C):!1}function createAssigner(C){return baseRest(function(H,U){var W=-1,G=U.length,X=G>1?U[G-1]:void 0,Z=G>2?U[2]:void 0;for(X=C.length>3&&typeof X=="function"?(G--,X):void 0,Z&&isIterateeCall$2(U[0],U[1],Z)&&(X=G<3?void 0:X,G=1),H=Object(H);++W<G;){var Q=U[W];Q&&C(H,Q,W,X)}return H})}function arrayReduce(C,H,U,W){var G=-1,X=C==null?0:C.length;for(W&&X&&(U=C[++G]);++G<X;)U=H(U,C[G],G,C);return U}var CLONE_SYMBOLS_FLAG$2=4;function clone$1(C){return baseClone$2(C,CLONE_SYMBOLS_FLAG$2)}var objectProto$g=Object.prototype,hasOwnProperty$d=objectProto$g.hasOwnProperty,defaults$4=baseRest(function(C,H){C=Object(C);var U=-1,W=H.length,G=W>2?H[2]:void 0;for(G&&isIterateeCall$2(H[0],H[1],G)&&(W=1);++U<W;)for(var X=H[U],Z=keysIn$4(X),Q=-1,ee=Z.length;++Q<ee;){var ie=Z[Q],te=C[ie];(te===void 0||eq$4(te,objectProto$g[ie])&&!hasOwnProperty$d.call(C,ie))&&(C[ie]=X[ie])}return C});const defaults$5=defaults$4;function assignMergeValue(C,H,U){(U!==void 0&&!eq$4(C[H],U)||U===void 0&&!(H in C))&&baseAssignValue$3(C,H,U)}function safeGet(C,H){if(!(H==="constructor"&&typeof C[H]=="function")&&H!="__proto__")return C[H]}function toPlainObject(C){return copyObject$5(C,keysIn$4(C))}function baseMergeDeep(C,H,U,W,G,X,Z){var Q=safeGet(C,U),ee=safeGet(H,U),ie=Z.get(ee);if(ie){assignMergeValue(C,U,ie);return}var te=X?X(Q,ee,U+"",C,H,Z):void 0,ne=te===void 0;if(ne){var ae=isArray$c(ee),oe=!ae&&isBuffer$5(ee),se=!ae&&!oe&&isTypedArray$4(ee);te=ee,ae||oe||se?isArray$c(Q)?te=Q:isArrayLikeObject(Q)?te=copyArray$2(Q):oe?(ne=!1,te=cloneBuffer$1(ee,!0)):se?(ne=!1,te=cloneTypedArray$2(ee,!0)):te=[]:isPlainObject$3(ee)||isArguments$4(ee)?(te=Q,isArguments$4(Q)?te=toPlainObject(Q):(!isObject$d(Q)||isFunction$6(Q))&&(te=initCloneObject$2(ee))):ne=!1}ne&&(Z.set(ee,te),G(te,ee,W,X,Z),Z.delete(ee)),assignMergeValue(C,U,te)}function baseMerge(C,H,U,W,G){C!==H&&baseFor$1(H,function(X,Z){if(G||(G=new Stack$2),isObject$d(X))baseMergeDeep(C,H,Z,U,baseMerge,W,G);else{var Q=W?W(safeGet(C,Z),X,Z+"",C,H,G):void 0;Q===void 0&&(Q=X),assignMergeValue(C,Z,Q)}},keysIn$4)}function castFunction(C){return typeof C=="function"?C:identity$5}function forEach$1(C,H){var U=isArray$c(C)?arrayEach$2:baseEach$1;return U(C,castFunction(H))}function baseFilter(C,H){var U=[];return baseEach$1(C,function(W,G,X){H(W,G,X)&&U.push(W)}),U}function filter$2(C,H){var U=isArray$c(C)?arrayFilter$2:baseFilter;return U(C,baseIteratee(H))}function baseMap(C,H){var U=-1,W=isArrayLike$5(C)?Array(C.length):[];return baseEach$1(C,function(G,X,Z){W[++U]=H(G,X,Z)}),W}function map$3(C,H){var U=isArray$c(C)?arrayMap$2:baseMap;return U(C,baseIteratee(H))}function forIn(C,H){return C==null?C:baseFor$1(C,castFunction(H),keysIn$4)}function baseGt(C,H){return C>H}var objectProto$f=Object.prototype,hasOwnProperty$c=objectProto$f.hasOwnProperty;function baseHas$2(C,H){return C!=null&&hasOwnProperty$c.call(C,H)}function has$1(C,H){return C!=null&&hasPath$2(C,H,baseHas$2)}function baseValues(C,H){return arrayMap$2(H,function(U){return C[U]})}function values(C){return C==null?[]:baseValues(C,keys$5(C))}var mapTag$5="[object Map]",setTag$5="[object Set]",objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty;function isEmpty(C){if(C==null)return!0;if(isArrayLike$5(C)&&(isArray$c(C)||typeof C=="string"||typeof C.splice=="function"||isBuffer$5(C)||isTypedArray$4(C)||isArguments$4(C)))return!C.length;var H=getTag$5(C);if(H==mapTag$5||H==setTag$5)return!C.size;if(isPrototype$4(C))return!baseKeys$2(C).length;for(var U in C)if(hasOwnProperty$b.call(C,U))return!1;return!0}function isUndefined$2(C){return C===void 0}function baseLt(C,H){return C<H}function mapValues$1(C,H){var U={};return H=baseIteratee(H),baseForOwn(C,function(W,G,X){baseAssignValue$3(U,G,H(W,G,X))}),U}function baseExtremum(C,H,U){for(var W=-1,G=C.length;++W<G;){var X=C[W],Z=H(X);if(Z!=null&&(Q===void 0?Z===Z&&!isSymbol$5(Z):U(Z,Q)))var Q=Z,ee=X}return ee}function max(C){return C&&C.length?baseExtremum(C,identity$5,baseGt):void 0}var merge$3=createAssigner(function(C,H,U){baseMerge(C,H,U)});const merge$4=merge$3;function min(C){return C&&C.length?baseExtremum(C,identity$5,baseLt):void 0}function minBy(C,H){return C&&C.length?baseExtremum(C,baseIteratee(H),baseLt):void 0}function baseSortBy(C,H){var U=C.length;for(C.sort(H);U--;)C[U]=C[U].value;return C}function compareAscending(C,H){if(C!==H){var U=C!==void 0,W=C===null,G=C===C,X=isSymbol$5(C),Z=H!==void 0,Q=H===null,ee=H===H,ie=isSymbol$5(H);if(!Q&&!ie&&!X&&C>H||X&&Z&&ee&&!Q&&!ie||W&&Z&&ee||!U&&ee||!G)return 1;if(!W&&!X&&!ie&&C<H||ie&&U&&G&&!W&&!X||Q&&U&&G||!Z&&G||!ee)return-1}return 0}function compareMultiple(C,H,U){for(var W=-1,G=C.criteria,X=H.criteria,Z=G.length,Q=U.length;++W<Z;){var ee=compareAscending(G[W],X[W]);if(ee){if(W>=Q)return ee;var ie=U[W];return ee*(ie=="desc"?-1:1)}}return C.index-H.index}function baseOrderBy(C,H,U){H.length?H=arrayMap$2(H,function(X){return isArray$c(X)?function(Z){return baseGet$2(Z,X.length===1?X[0]:X)}:X}):H=[identity$5];var W=-1;H=arrayMap$2(H,baseUnary$4(baseIteratee));var G=baseMap(C,function(X,Z,Q){var ee=arrayMap$2(H,function(ie){return ie(X)});return{criteria:ee,index:++W,value:X}});return baseSortBy(G,function(X,Z){return compareMultiple(X,Z,U)})}var nativeCeil=Math.ceil,nativeMax=Math.max;function baseRange(C,H,U,W){for(var G=-1,X=nativeMax(nativeCeil((H-C)/(U||1)),0),Z=Array(X);X--;)Z[W?X:++G]=C,C+=U;return Z}function createRange(C){return function(H,U,W){return W&&typeof W!="number"&&isIterateeCall$2(H,U,W)&&(U=W=void 0),H=toFinite$2(H),U===void 0?(U=H,H=0):U=toFinite$2(U),W=W===void 0?H<U?1:-1:toFinite$2(W),baseRange(H,U,W,C)}}var range$1=createRange();const range$2=range$1;function baseReduce(C,H,U,W,G){return G(C,function(X,Z,Q){U=W?(W=!1,X):H(U,X,Z,Q)}),U}function reduce$2(C,H,U){var W=isArray$c(C)?arrayReduce:baseReduce,G=arguments.length<3;return W(C,baseIteratee(H),U,G,baseEach$1)}var sortBy$2=baseRest(function(C,H){if(C==null)return[];var U=H.length;return U>1&&isIterateeCall$2(C,H[0],H[1])?H=[]:U>2&&isIterateeCall$2(H[0],H[1],H[2])&&(H=[H[0]]),baseOrderBy(C,baseFlatten(H,1),[])});const sortBy$3=sortBy$2;var union=baseRest(function(C){return baseUniq(baseFlatten(C,1,isArrayLikeObject,!0))});const union$1=union;var idCounter$1=0;function uniqueId$1(C){var H=++idCounter$1;return toString$5(C)+H}function baseZipObject(C,H,U){for(var W=-1,G=C.length,X=H.length,Z={};++W<G;){var Q=W<X?H[W]:void 0;U(Z,C[W],Q)}return Z}function zipObject(C,H){return baseZipObject(C||[],H||[],assignValue$3)}var DEFAULT_EDGE_NAME="\0",GRAPH_NODE="\0",EDGE_KEY_DELIM="";class Graph{constructor(H={}){this._isDirected=has$1(H,"directed")?H.directed:!0,this._isMultigraph=has$1(H,"multigraph")?H.multigraph:!1,this._isCompound=has$1(H,"compound")?H.compound:!1,this._label=void 0,this._defaultNodeLabelFn=constant$5(void 0),this._defaultEdgeLabelFn=constant$5(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[GRAPH_NODE]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(H){return this._label=H,this}graph(){return this._label}setDefaultNodeLabel(H){return isFunction$6(H)||(H=constant$5(H)),this._defaultNodeLabelFn=H,this}nodeCount(){return this._nodeCount}nodes(){return keys$5(this._nodes)}sources(){var H=this;return filter$2(this.nodes(),function(U){return isEmpty(H._in[U])})}sinks(){var H=this;return filter$2(this.nodes(),function(U){return isEmpty(H._out[U])})}setNodes(H,U){var W=arguments,G=this;return forEach$1(H,function(X){W.length>1?G.setNode(X,U):G.setNode(X)}),this}setNode(H,U){return has$1(this._nodes,H)?(arguments.length>1&&(this._nodes[H]=U),this):(this._nodes[H]=arguments.length>1?U:this._defaultNodeLabelFn(H),this._isCompound&&(this._parent[H]=GRAPH_NODE,this._children[H]={},this._children[GRAPH_NODE][H]=!0),this._in[H]={},this._preds[H]={},this._out[H]={},this._sucs[H]={},++this._nodeCount,this)}node(H){return this._nodes[H]}hasNode(H){return has$1(this._nodes,H)}removeNode(H){var U=this;if(has$1(this._nodes,H)){var W=function(G){U.removeEdge(U._edgeObjs[G])};delete this._nodes[H],this._isCompound&&(this._removeFromParentsChildList(H),delete this._parent[H],forEach$1(this.children(H),function(G){U.setParent(G)}),delete this._children[H]),forEach$1(keys$5(this._in[H]),W),delete this._in[H],delete this._preds[H],forEach$1(keys$5(this._out[H]),W),delete this._out[H],delete this._sucs[H],--this._nodeCount}return this}setParent(H,U){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(isUndefined$2(U))U=GRAPH_NODE;else{U+="";for(var W=U;!isUndefined$2(W);W=this.parent(W))if(W===H)throw new Error("Setting "+U+" as parent of "+H+" would create a cycle");this.setNode(U)}return this.setNode(H),this._removeFromParentsChildList(H),this._parent[H]=U,this._children[U][H]=!0,this}_removeFromParentsChildList(H){delete this._children[this._parent[H]][H]}parent(H){if(this._isCompound){var U=this._parent[H];if(U!==GRAPH_NODE)return U}}children(H){if(isUndefined$2(H)&&(H=GRAPH_NODE),this._isCompound){var U=this._children[H];if(U)return keys$5(U)}else{if(H===GRAPH_NODE)return this.nodes();if(this.hasNode(H))return[]}}predecessors(H){var U=this._preds[H];if(U)return keys$5(U)}successors(H){var U=this._sucs[H];if(U)return keys$5(U)}neighbors(H){var U=this.predecessors(H);if(U)return union$1(U,this.successors(H))}isLeaf(H){var U;return this.isDirected()?U=this.successors(H):U=this.neighbors(H),U.length===0}filterNodes(H){var U=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});U.setGraph(this.graph());var W=this;forEach$1(this._nodes,function(Z,Q){H(Q)&&U.setNode(Q,Z)}),forEach$1(this._edgeObjs,function(Z){U.hasNode(Z.v)&&U.hasNode(Z.w)&&U.setEdge(Z,W.edge(Z))});var G={};function X(Z){var Q=W.parent(Z);return Q===void 0||U.hasNode(Q)?(G[Z]=Q,Q):Q in G?G[Q]:X(Q)}return this._isCompound&&forEach$1(U.nodes(),function(Z){U.setParent(Z,X(Z))}),U}setDefaultEdgeLabel(H){return isFunction$6(H)||(H=constant$5(H)),this._defaultEdgeLabelFn=H,this}edgeCount(){return this._edgeCount}edges(){return values(this._edgeObjs)}setPath(H,U){var W=this,G=arguments;return reduce$2(H,function(X,Z){return G.length>1?W.setEdge(X,Z,U):W.setEdge(X,Z),Z}),this}setEdge(){var H,U,W,G,X=!1,Z=arguments[0];typeof Z=="object"&&Z!==null&&"v"in Z?(H=Z.v,U=Z.w,W=Z.name,arguments.length===2&&(G=arguments[1],X=!0)):(H=Z,U=arguments[1],W=arguments[3],arguments.length>2&&(G=arguments[2],X=!0)),H=""+H,U=""+U,isUndefined$2(W)||(W=""+W);var Q=edgeArgsToId(this._isDirected,H,U,W);if(has$1(this._edgeLabels,Q))return X&&(this._edgeLabels[Q]=G),this;if(!isUndefined$2(W)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(H),this.setNode(U),this._edgeLabels[Q]=X?G:this._defaultEdgeLabelFn(H,U,W);var ee=edgeArgsToObj(this._isDirected,H,U,W);return H=ee.v,U=ee.w,Object.freeze(ee),this._edgeObjs[Q]=ee,incrementOrInitEntry(this._preds[U],H),incrementOrInitEntry(this._sucs[H],U),this._in[U][Q]=ee,this._out[H][Q]=ee,this._edgeCount++,this}edge(H,U,W){var G=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,H,U,W);return this._edgeLabels[G]}hasEdge(H,U,W){var G=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,H,U,W);return has$1(this._edgeLabels,G)}removeEdge(H,U,W){var G=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,H,U,W),X=this._edgeObjs[G];return X&&(H=X.v,U=X.w,delete this._edgeLabels[G],delete this._edgeObjs[G],decrementOrRemoveEntry(this._preds[U],H),decrementOrRemoveEntry(this._sucs[H],U),delete this._in[U][G],delete this._out[H][G],this._edgeCount--),this}inEdges(H,U){var W=this._in[H];if(W){var G=values(W);return U?filter$2(G,function(X){return X.v===U}):G}}outEdges(H,U){var W=this._out[H];if(W){var G=values(W);return U?filter$2(G,function(X){return X.w===U}):G}}nodeEdges(H,U){var W=this.inEdges(H,U);if(W)return W.concat(this.outEdges(H,U))}}Graph.prototype._nodeCount=0;Graph.prototype._edgeCount=0;function incrementOrInitEntry(C,H){C[H]?C[H]++:C[H]=1}function decrementOrRemoveEntry(C,H){--C[H]||delete C[H]}function edgeArgsToId(C,H,U,W){var G=""+H,X=""+U;if(!C&&G>X){var Z=G;G=X,X=Z}return G+EDGE_KEY_DELIM+X+EDGE_KEY_DELIM+(isUndefined$2(W)?DEFAULT_EDGE_NAME:W)}function edgeArgsToObj(C,H,U,W){var G=""+H,X=""+U;if(!C&&G>X){var Z=G;G=X,X=Z}var Q={v:G,w:X};return W&&(Q.name=W),Q}function edgeObjToId(C,H){return edgeArgsToId(C,H.v,H.w,H.name)}class List{constructor(){var H={};H._next=H._prev=H,this._sentinel=H}dequeue(){var H=this._sentinel,U=H._prev;if(U!==H)return unlink(U),U}enqueue(H){var U=this._sentinel;H._prev&&H._next&&unlink(H),H._next=U._next,U._next._prev=H,U._next=H,H._prev=U}toString(){for(var H=[],U=this._sentinel,W=U._prev;W!==U;)H.push(JSON.stringify(W,filterOutLinks)),W=W._prev;return"["+H.join(", ")+"]"}}function unlink(C){C._prev._next=C._next,C._next._prev=C._prev,delete C._next,delete C._prev}function filterOutLinks(C,H){if(C!=="_next"&&C!=="_prev")return H}var DEFAULT_WEIGHT_FN=constant$5(1);function greedyFAS(C,H){if(C.nodeCount()<=1)return[];var U=buildState(C,H||DEFAULT_WEIGHT_FN),W=doGreedyFAS(U.graph,U.buckets,U.zeroIdx);return flatten(map$3(W,function(G){return C.outEdges(G.v,G.w)}))}function doGreedyFAS(C,H,U){for(var W=[],G=H[H.length-1],X=H[0],Z;C.nodeCount();){for(;Z=X.dequeue();)removeNode(C,H,U,Z);for(;Z=G.dequeue();)removeNode(C,H,U,Z);if(C.nodeCount()){for(var Q=H.length-2;Q>0;--Q)if(Z=H[Q].dequeue(),Z){W=W.concat(removeNode(C,H,U,Z,!0));break}}}return W}function removeNode(C,H,U,W,G){var X=G?[]:void 0;return forEach$1(C.inEdges(W.v),function(Z){var Q=C.edge(Z),ee=C.node(Z.v);G&&X.push({v:Z.v,w:Z.w}),ee.out-=Q,assignBucket(H,U,ee)}),forEach$1(C.outEdges(W.v),function(Z){var Q=C.edge(Z),ee=Z.w,ie=C.node(ee);ie.in-=Q,assignBucket(H,U,ie)}),C.removeNode(W.v),X}function buildState(C,H){var U=new Graph,W=0,G=0;forEach$1(C.nodes(),function(Q){U.setNode(Q,{v:Q,in:0,out:0})}),forEach$1(C.edges(),function(Q){var ee=U.edge(Q.v,Q.w)||0,ie=H(Q),te=ee+ie;U.setEdge(Q.v,Q.w,te),G=Math.max(G,U.node(Q.v).out+=ie),W=Math.max(W,U.node(Q.w).in+=ie)});var X=range$2(G+W+3).map(function(){return new List}),Z=W+1;return forEach$1(U.nodes(),function(Q){assignBucket(X,Z,U.node(Q))}),{graph:U,buckets:X,zeroIdx:Z}}function assignBucket(C,H,U){U.out?U.in?C[U.out-U.in+H].enqueue(U):C[C.length-1].enqueue(U):C[0].enqueue(U)}function run$2(C){var H=C.graph().acyclicer==="greedy"?greedyFAS(C,U(C)):dfsFAS(C);forEach$1(H,function(W){var G=C.edge(W);C.removeEdge(W),G.forwardName=W.name,G.reversed=!0,C.setEdge(W.w,W.v,G,uniqueId$1("rev"))});function U(W){return function(G){return W.edge(G).weight}}}function dfsFAS(C){var H=[],U={},W={};function G(X){has$1(W,X)||(W[X]=!0,U[X]=!0,forEach$1(C.outEdges(X),function(Z){has$1(U,Z.w)?H.push(Z):G(Z.w)}),delete U[X])}return forEach$1(C.nodes(),G),H}function undo$2(C){forEach$1(C.edges(),function(H){var U=C.edge(H);if(U.reversed){C.removeEdge(H);var W=U.forwardName;delete U.reversed,delete U.forwardName,C.setEdge(H.w,H.v,U,W)}})}function addDummyNode(C,H,U,W){var G;do G=uniqueId$1(W);while(C.hasNode(G));return U.dummy=H,C.setNode(G,U),G}function simplify(C){var H=new Graph().setGraph(C.graph());return forEach$1(C.nodes(),function(U){H.setNode(U,C.node(U))}),forEach$1(C.edges(),function(U){var W=H.edge(U.v,U.w)||{weight:0,minlen:1},G=C.edge(U);H.setEdge(U.v,U.w,{weight:W.weight+G.weight,minlen:Math.max(W.minlen,G.minlen)})}),H}function asNonCompoundGraph(C){var H=new Graph({multigraph:C.isMultigraph()}).setGraph(C.graph());return forEach$1(C.nodes(),function(U){C.children(U).length||H.setNode(U,C.node(U))}),forEach$1(C.edges(),function(U){H.setEdge(U,C.edge(U))}),H}function intersectRect$3(C,H){var U=C.x,W=C.y,G=H.x-U,X=H.y-W,Z=C.width/2,Q=C.height/2;if(!G&&!X)throw new Error("Not possible to find intersection inside of the rectangle");var ee,ie;return Math.abs(X)*Z>Math.abs(G)*Q?(X<0&&(Q=-Q),ee=Q*G/X,ie=Q):(G<0&&(Z=-Z),ee=Z,ie=Z*X/G),{x:U+ee,y:W+ie}}function buildLayerMatrix(C){var H=map$3(range$2(maxRank(C)+1),function(){return[]});return forEach$1(C.nodes(),function(U){var W=C.node(U),G=W.rank;isUndefined$2(G)||(H[G][W.order]=U)}),H}function normalizeRanks(C){var H=min(map$3(C.nodes(),function(U){return C.node(U).rank}));forEach$1(C.nodes(),function(U){var W=C.node(U);has$1(W,"rank")&&(W.rank-=H)})}function removeEmptyRanks(C){var H=min(map$3(C.nodes(),function(X){return C.node(X).rank})),U=[];forEach$1(C.nodes(),function(X){var Z=C.node(X).rank-H;U[Z]||(U[Z]=[]),U[Z].push(X)});var W=0,G=C.graph().nodeRankFactor;forEach$1(U,function(X,Z){isUndefined$2(X)&&Z%G!==0?--W:W&&forEach$1(X,function(Q){C.node(Q).rank+=W})})}function addBorderNode$1(C,H,U,W){var G={width:0,height:0};return arguments.length>=4&&(G.rank=U,G.order=W),addDummyNode(C,"border",G,H)}function maxRank(C){return max(map$3(C.nodes(),function(H){var U=C.node(H).rank;if(!isUndefined$2(U))return U}))}function partition(C,H){var U={lhs:[],rhs:[]};return forEach$1(C,function(W){H(W)?U.lhs.push(W):U.rhs.push(W)}),U}function time(C,H){var U=now$3();try{return H()}finally{console.log(C+" time: "+(now$3()-U)+"ms")}}function notime(C,H){return H()}function addBorderSegments(C){function H(U){var W=C.children(U),G=C.node(U);if(W.length&&forEach$1(W,H),has$1(G,"minRank")){G.borderLeft=[],G.borderRight=[];for(var X=G.minRank,Z=G.maxRank+1;X<Z;++X)addBorderNode(C,"borderLeft","_bl",U,G,X),addBorderNode(C,"borderRight","_br",U,G,X)}}forEach$1(C.children(),H)}function addBorderNode(C,H,U,W,G,X){var Z={width:0,height:0,rank:X,borderType:H},Q=G[H][X-1],ee=addDummyNode(C,"border",Z,U);G[H][X]=ee,C.setParent(ee,W),Q&&C.setEdge(Q,ee,{weight:1})}function adjust(C){var H=C.graph().rankdir.toLowerCase();(H==="lr"||H==="rl")&&swapWidthHeight(C)}function undo$1(C){var H=C.graph().rankdir.toLowerCase();(H==="bt"||H==="rl")&&reverseY(C),(H==="lr"||H==="rl")&&(swapXY(C),swapWidthHeight(C))}function swapWidthHeight(C){forEach$1(C.nodes(),function(H){swapWidthHeightOne(C.node(H))}),forEach$1(C.edges(),function(H){swapWidthHeightOne(C.edge(H))})}function swapWidthHeightOne(C){var H=C.width;C.width=C.height,C.height=H}function reverseY(C){forEach$1(C.nodes(),function(H){reverseYOne(C.node(H))}),forEach$1(C.edges(),function(H){var U=C.edge(H);forEach$1(U.points,reverseYOne),has$1(U,"y")&&reverseYOne(U)})}function reverseYOne(C){C.y=-C.y}function swapXY(C){forEach$1(C.nodes(),function(H){swapXYOne(C.node(H))}),forEach$1(C.edges(),function(H){var U=C.edge(H);forEach$1(U.points,swapXYOne),has$1(U,"x")&&swapXYOne(U)})}function swapXYOne(C){var H=C.x;C.x=C.y,C.y=H}function run$1(C){var H=addDummyNode(C,"root",{},"_root"),U=treeDepths(C),W=max(values(U))-1,G=2*W+1;C.graph().nestingRoot=H,forEach$1(C.edges(),function(Z){C.edge(Z).minlen*=G});var X=sumWeights(C)+1;forEach$1(C.children(),function(Z){dfs$1(C,H,G,X,W,U,Z)}),C.graph().nodeRankFactor=G}function dfs$1(C,H,U,W,G,X,Z){var Q=C.children(Z);if(!Q.length){Z!==H&&C.setEdge(H,Z,{weight:0,minlen:U});return}var ee=addBorderNode$1(C,"_bt"),ie=addBorderNode$1(C,"_bb"),te=C.node(Z);C.setParent(ee,Z),te.borderTop=ee,C.setParent(ie,Z),te.borderBottom=ie,forEach$1(Q,function(ne){dfs$1(C,H,U,W,G,X,ne);var ae=C.node(ne),oe=ae.borderTop?ae.borderTop:ne,se=ae.borderBottom?ae.borderBottom:ne,le=ae.borderTop?W:2*W,ce=oe!==se?1:G-X[Z]+1;C.setEdge(ee,oe,{weight:le,minlen:ce,nestingEdge:!0}),C.setEdge(se,ie,{weight:le,minlen:ce,nestingEdge:!0})}),C.parent(Z)||C.setEdge(H,ee,{weight:0,minlen:G+X[Z]})}function treeDepths(C){var H={};function U(W,G){var X=C.children(W);X&&X.length&&forEach$1(X,function(Z){U(Z,G+1)}),H[W]=G}return forEach$1(C.children(),function(W){U(W,1)}),H}function sumWeights(C){return reduce$2(C.edges(),function(H,U){return H+C.edge(U).weight},0)}function cleanup(C){var H=C.graph();C.removeNode(H.nestingRoot),delete H.nestingRoot,forEach$1(C.edges(),function(U){var W=C.edge(U);W.nestingEdge&&C.removeEdge(U)})}function addSubgraphConstraints(C,H,U){var W={},G;forEach$1(U,function(X){for(var Z=C.parent(X),Q,ee;Z;){if(Q=C.parent(Z),Q?(ee=W[Q],W[Q]=Z):(ee=G,G=Z),ee&&ee!==Z){H.setEdge(ee,Z);return}Z=Q}})}function buildLayerGraph(C,H,U){var W=createRootNode(C),G=new Graph({compound:!0}).setGraph({root:W}).setDefaultNodeLabel(function(X){return C.node(X)});return forEach$1(C.nodes(),function(X){var Z=C.node(X),Q=C.parent(X);(Z.rank===H||Z.minRank<=H&&H<=Z.maxRank)&&(G.setNode(X),G.setParent(X,Q||W),forEach$1(C[U](X),function(ee){var ie=ee.v===X?ee.w:ee.v,te=G.edge(ie,X),ne=isUndefined$2(te)?0:te.weight;G.setEdge(ie,X,{weight:C.edge(ee).weight+ne})}),has$1(Z,"minRank")&&G.setNode(X,{borderLeft:Z.borderLeft[H],borderRight:Z.borderRight[H]}))}),G}function createRootNode(C){for(var H;C.hasNode(H=uniqueId$1("_root")););return H}function crossCount(C,H){for(var U=0,W=1;W<H.length;++W)U+=twoLayerCrossCount(C,H[W-1],H[W]);return U}function twoLayerCrossCount(C,H,U){for(var W=zipObject(U,map$3(U,function(ie,te){return te})),G=flatten(map$3(H,function(ie){return sortBy$3(map$3(C.outEdges(ie),function(te){return{pos:W[te.w],weight:C.edge(te).weight}}),"pos")})),X=1;X<U.length;)X<<=1;var Z=2*X-1;X-=1;var Q=map$3(new Array(Z),function(){return 0}),ee=0;return forEach$1(G.forEach(function(ie){var te=ie.pos+X;Q[te]+=ie.weight;for(var ne=0;te>0;)te%2&&(ne+=Q[te+1]),te=te-1>>1,Q[te]+=ie.weight;ee+=ie.weight*ne})),ee}function initOrder(C){var H={},U=filter$2(C.nodes(),function(Q){return!C.children(Q).length}),W=max(map$3(U,function(Q){return C.node(Q).rank})),G=map$3(range$2(W+1),function(){return[]});function X(Q){if(!has$1(H,Q)){H[Q]=!0;var ee=C.node(Q);G[ee.rank].push(Q),forEach$1(C.successors(Q),X)}}var Z=sortBy$3(U,function(Q){return C.node(Q).rank});return forEach$1(Z,X),G}function barycenter(C,H){return map$3(H,function(U){var W=C.inEdges(U);if(W.length){var G=reduce$2(W,function(X,Z){var Q=C.edge(Z),ee=C.node(Z.v);return{sum:X.sum+Q.weight*ee.order,weight:X.weight+Q.weight}},{sum:0,weight:0});return{v:U,barycenter:G.sum/G.weight,weight:G.weight}}else return{v:U}})}function resolveConflicts(C,H){var U={};forEach$1(C,function(G,X){var Z=U[G.v]={indegree:0,in:[],out:[],vs:[G.v],i:X};isUndefined$2(G.barycenter)||(Z.barycenter=G.barycenter,Z.weight=G.weight)}),forEach$1(H.edges(),function(G){var X=U[G.v],Z=U[G.w];!isUndefined$2(X)&&!isUndefined$2(Z)&&(Z.indegree++,X.out.push(U[G.w]))});var W=filter$2(U,function(G){return!G.indegree});return doResolveConflicts(W)}function doResolveConflicts(C){var H=[];function U(X){return function(Z){Z.merged||(isUndefined$2(Z.barycenter)||isUndefined$2(X.barycenter)||Z.barycenter>=X.barycenter)&&mergeEntries(X,Z)}}function W(X){return function(Z){Z.in.push(X),--Z.indegree===0&&C.push(Z)}}for(;C.length;){var G=C.pop();H.push(G),forEach$1(G.in.reverse(),U(G)),forEach$1(G.out,W(G))}return map$3(filter$2(H,function(X){return!X.merged}),function(X){return pick$1(X,["vs","i","barycenter","weight"])})}function mergeEntries(C,H){var U=0,W=0;C.weight&&(U+=C.barycenter*C.weight,W+=C.weight),H.weight&&(U+=H.barycenter*H.weight,W+=H.weight),C.vs=H.vs.concat(C.vs),C.barycenter=U/W,C.weight=W,C.i=Math.min(H.i,C.i),H.merged=!0}function sort(C,H){var U=partition(C,function(te){return has$1(te,"barycenter")}),W=U.lhs,G=sortBy$3(U.rhs,function(te){return-te.i}),X=[],Z=0,Q=0,ee=0;W.sort(compareWithBias(!!H)),ee=consumeUnsortable(X,G,ee),forEach$1(W,function(te){ee+=te.vs.length,X.push(te.vs),Z+=te.barycenter*te.weight,Q+=te.weight,ee=consumeUnsortable(X,G,ee)});var ie={vs:flatten(X)};return Q&&(ie.barycenter=Z/Q,ie.weight=Q),ie}function consumeUnsortable(C,H,U){for(var W;H.length&&(W=last$2(H)).i<=U;)H.pop(),C.push(W.vs),U++;return U}function compareWithBias(C){return function(H,U){return H.barycenter<U.barycenter?-1:H.barycenter>U.barycenter?1:C?U.i-H.i:H.i-U.i}}function sortSubgraph(C,H,U,W){var G=C.children(H),X=C.node(H),Z=X?X.borderLeft:void 0,Q=X?X.borderRight:void 0,ee={};Z&&(G=filter$2(G,function(se){return se!==Z&&se!==Q}));var ie=barycenter(C,G);forEach$1(ie,function(se){if(C.children(se.v).length){var le=sortSubgraph(C,se.v,U,W);ee[se.v]=le,has$1(le,"barycenter")&&mergeBarycenters(se,le)}});var te=resolveConflicts(ie,U);expandSubgraphs(te,ee);var ne=sort(te,W);if(Z&&(ne.vs=flatten([Z,ne.vs,Q]),C.predecessors(Z).length)){var ae=C.node(C.predecessors(Z)[0]),oe=C.node(C.predecessors(Q)[0]);has$1(ne,"barycenter")||(ne.barycenter=0,ne.weight=0),ne.barycenter=(ne.barycenter*ne.weight+ae.order+oe.order)/(ne.weight+2),ne.weight+=2}return ne}function expandSubgraphs(C,H){forEach$1(C,function(U){U.vs=flatten(U.vs.map(function(W){return H[W]?H[W].vs:W}))})}function mergeBarycenters(C,H){isUndefined$2(C.barycenter)?(C.barycenter=H.barycenter,C.weight=H.weight):(C.barycenter=(C.barycenter*C.weight+H.barycenter*H.weight)/(C.weight+H.weight),C.weight+=H.weight)}function order(C){var H=maxRank(C),U=buildLayerGraphs(C,range$2(1,H+1),"inEdges"),W=buildLayerGraphs(C,range$2(H-1,-1,-1),"outEdges"),G=initOrder(C);assignOrder(C,G);for(var X=Number.POSITIVE_INFINITY,Z,Q=0,ee=0;ee<4;++Q,++ee){sweepLayerGraphs(Q%2?U:W,Q%4>=2),G=buildLayerMatrix(C);var ie=crossCount(C,G);ie<X&&(ee=0,Z=cloneDeep$1(G),X=ie)}assignOrder(C,Z)}function buildLayerGraphs(C,H,U){return map$3(H,function(W){return buildLayerGraph(C,W,U)})}function sweepLayerGraphs(C,H){var U=new Graph;forEach$1(C,function(W){var G=W.graph().root,X=sortSubgraph(W,G,U,H);forEach$1(X.vs,function(Z,Q){W.node(Z).order=Q}),addSubgraphConstraints(W,U,X.vs)})}function assignOrder(C,H){forEach$1(H,function(U){forEach$1(U,function(W,G){C.node(W).order=G})})}function parentDummyChains(C){var H=postorder$1(C);forEach$1(C.graph().dummyChains,function(U){for(var W=C.node(U),G=W.edgeObj,X=findPath(C,H,G.v,G.w),Z=X.path,Q=X.lca,ee=0,ie=Z[ee],te=!0;U!==G.w;){if(W=C.node(U),te){for(;(ie=Z[ee])!==Q&&C.node(ie).maxRank<W.rank;)ee++;ie===Q&&(te=!1)}if(!te){for(;ee<Z.length-1&&C.node(ie=Z[ee+1]).minRank<=W.rank;)ee++;ie=Z[ee]}C.setParent(U,ie),U=C.successors(U)[0]}})}function findPath(C,H,U,W){var G=[],X=[],Z=Math.min(H[U].low,H[W].low),Q=Math.max(H[U].lim,H[W].lim),ee,ie;ee=U;do ee=C.parent(ee),G.push(ee);while(ee&&(H[ee].low>Z||Q>H[ee].lim));for(ie=ee,ee=W;(ee=C.parent(ee))!==ie;)X.push(ee);return{path:G.concat(X.reverse()),lca:ie}}function postorder$1(C){var H={},U=0;function W(G){var X=U;forEach$1(C.children(G),W),H[G]={low:X,lim:U++}}return forEach$1(C.children(),W),H}function findType1Conflicts(C,H){var U={};function W(G,X){var Z=0,Q=0,ee=G.length,ie=last$2(X);return forEach$1(X,function(te,ne){var ae=findOtherInnerSegmentNode(C,te),oe=ae?C.node(ae).order:ee;(ae||te===ie)&&(forEach$1(X.slice(Q,ne+1),function(se){forEach$1(C.predecessors(se),function(le){var ce=C.node(le),ue=ce.order;(ue<Z||oe<ue)&&!(ce.dummy&&C.node(se).dummy)&&addConflict(U,le,se)})}),Q=ne+1,Z=oe)}),X}return reduce$2(H,W),U}function findType2Conflicts(C,H){var U={};function W(X,Z,Q,ee,ie){var te;forEach$1(range$2(Z,Q),function(ne){te=X[ne],C.node(te).dummy&&forEach$1(C.predecessors(te),function(ae){var oe=C.node(ae);oe.dummy&&(oe.order<ee||oe.order>ie)&&addConflict(U,ae,te)})})}function G(X,Z){var Q=-1,ee,ie=0;return forEach$1(Z,function(te,ne){if(C.node(te).dummy==="border"){var ae=C.predecessors(te);ae.length&&(ee=C.node(ae[0]).order,W(Z,ie,ne,Q,ee),ie=ne,Q=ee)}W(Z,ie,Z.length,ee,X.length)}),Z}return reduce$2(H,G),U}function findOtherInnerSegmentNode(C,H){if(C.node(H).dummy)return find$2(C.predecessors(H),function(U){return C.node(U).dummy})}function addConflict(C,H,U){if(H>U){var W=H;H=U,U=W}var G=C[H];G||(C[H]=G={}),G[U]=!0}function hasConflict(C,H,U){if(H>U){var W=H;H=U,U=W}return has$1(C[H],U)}function verticalAlignment(C,H,U,W){var G={},X={},Z={};return forEach$1(H,function(Q){forEach$1(Q,function(ee,ie){G[ee]=ee,X[ee]=ee,Z[ee]=ie})}),forEach$1(H,function(Q){var ee=-1;forEach$1(Q,function(ie){var te=W(ie);if(te.length){te=sortBy$3(te,function(le){return Z[le]});for(var ne=(te.length-1)/2,ae=Math.floor(ne),oe=Math.ceil(ne);ae<=oe;++ae){var se=te[ae];X[ie]===ie&&ee<Z[se]&&!hasConflict(U,ie,se)&&(X[se]=ie,X[ie]=G[ie]=G[se],ee=Z[se])}}})}),{root:G,align:X}}function horizontalCompaction(C,H,U,W,G){var X={},Z=buildBlockGraph(C,H,U,G),Q=G?"borderLeft":"borderRight";function ee(ne,ae){for(var oe=Z.nodes(),se=oe.pop(),le={};se;)le[se]?ne(se):(le[se]=!0,oe.push(se),oe=oe.concat(ae(se))),se=oe.pop()}function ie(ne){X[ne]=Z.inEdges(ne).reduce(function(ae,oe){return Math.max(ae,X[oe.v]+Z.edge(oe))},0)}function te(ne){var ae=Z.outEdges(ne).reduce(function(se,le){return Math.min(se,X[le.w]-Z.edge(le))},Number.POSITIVE_INFINITY),oe=C.node(ne);ae!==Number.POSITIVE_INFINITY&&oe.borderType!==Q&&(X[ne]=Math.max(X[ne],ae))}return ee(ie,Z.predecessors.bind(Z)),ee(te,Z.successors.bind(Z)),forEach$1(W,function(ne){X[ne]=X[U[ne]]}),X}function buildBlockGraph(C,H,U,W){var G=new Graph,X=C.graph(),Z=sep(X.nodesep,X.edgesep,W);return forEach$1(H,function(Q){var ee;forEach$1(Q,function(ie){var te=U[ie];if(G.setNode(te),ee){var ne=U[ee],ae=G.edge(ne,te);G.setEdge(ne,te,Math.max(Z(C,ie,ee),ae||0))}ee=ie})}),G}function findSmallestWidthAlignment(C,H){return minBy(values(H),function(U){var W=Number.NEGATIVE_INFINITY,G=Number.POSITIVE_INFINITY;return forIn(U,function(X,Z){var Q=width$1(C,Z)/2;W=Math.max(X+Q,W),G=Math.min(X-Q,G)}),W-G})}function alignCoordinates(C,H){var U=values(H),W=min(U),G=max(U);forEach$1(["u","d"],function(X){forEach$1(["l","r"],function(Z){var Q=X+Z,ee=C[Q],ie;if(ee!==H){var te=values(ee);ie=Z==="l"?W-min(te):G-max(te),ie&&(C[Q]=mapValues$1(ee,function(ne){return ne+ie}))}})})}function balance(C,H){return mapValues$1(C.ul,function(U,W){if(H)return C[H.toLowerCase()][W];var G=sortBy$3(map$3(C,W));return(G[1]+G[2])/2})}function positionX(C){var H=buildLayerMatrix(C),U=merge$4(findType1Conflicts(C,H),findType2Conflicts(C,H)),W={},G;forEach$1(["u","d"],function(Z){G=Z==="u"?H:values(H).reverse(),forEach$1(["l","r"],function(Q){Q==="r"&&(G=map$3(G,function(ne){return values(ne).reverse()}));var ee=(Z==="u"?C.predecessors:C.successors).bind(C),ie=verticalAlignment(C,G,U,ee),te=horizontalCompaction(C,G,ie.root,ie.align,Q==="r");Q==="r"&&(te=mapValues$1(te,function(ne){return-ne})),W[Z+Q]=te})});var X=findSmallestWidthAlignment(C,W);return alignCoordinates(W,X),balance(W,C.graph().align)}function sep(C,H,U){return function(W,G,X){var Z=W.node(G),Q=W.node(X),ee=0,ie;if(ee+=Z.width/2,has$1(Z,"labelpos"))switch(Z.labelpos.toLowerCase()){case"l":ie=-Z.width/2;break;case"r":ie=Z.width/2;break}if(ie&&(ee+=U?ie:-ie),ie=0,ee+=(Z.dummy?H:C)/2,ee+=(Q.dummy?H:C)/2,ee+=Q.width/2,has$1(Q,"labelpos"))switch(Q.labelpos.toLowerCase()){case"l":ie=Q.width/2;break;case"r":ie=-Q.width/2;break}return ie&&(ee+=U?ie:-ie),ie=0,ee}}function width$1(C,H){return C.node(H).width}function position(C){C=asNonCompoundGraph(C),positionY(C),forEach$1(positionX(C),function(H,U){C.node(U).x=H})}function positionY(C){var H=buildLayerMatrix(C),U=C.graph().ranksep,W=0;forEach$1(H,function(G){var X=max(map$3(G,function(Z){return C.node(Z).height}));forEach$1(G,function(Z){C.node(Z).y=W+X/2}),W+=X+U})}function layout(C,H){var U=H&&H.debugTiming?time:notime;U("layout",function(){var W=U(" buildLayoutGraph",function(){return buildLayoutGraph(C)});U(" runLayout",function(){runLayout(W,U)}),U(" updateInputGraph",function(){updateInputGraph(C,W)})})}function runLayout(C,H){H(" makeSpaceForEdgeLabels",function(){makeSpaceForEdgeLabels(C)}),H(" removeSelfEdges",function(){removeSelfEdges(C)}),H(" acyclic",function(){run$2(C)}),H(" nestingGraph.run",function(){run$1(C)}),H(" rank",function(){rank(asNonCompoundGraph(C))}),H(" injectEdgeLabelProxies",function(){injectEdgeLabelProxies(C)}),H(" removeEmptyRanks",function(){removeEmptyRanks(C)}),H(" nestingGraph.cleanup",function(){cleanup(C)}),H(" normalizeRanks",function(){normalizeRanks(C)}),H(" assignRankMinMax",function(){assignRankMinMax(C)}),H(" removeEdgeLabelProxies",function(){removeEdgeLabelProxies(C)}),H(" normalize.run",function(){run(C)}),H(" parentDummyChains",function(){parentDummyChains(C)}),H(" addBorderSegments",function(){addBorderSegments(C)}),H(" order",function(){order(C)}),H(" insertSelfEdges",function(){insertSelfEdges(C)}),H(" adjustCoordinateSystem",function(){adjust(C)}),H(" position",function(){position(C)}),H(" positionSelfEdges",function(){positionSelfEdges(C)}),H(" removeBorderNodes",function(){removeBorderNodes(C)}),H(" normalize.undo",function(){undo(C)}),H(" fixupEdgeLabelCoords",function(){fixupEdgeLabelCoords(C)}),H(" undoCoordinateSystem",function(){undo$1(C)}),H(" translateGraph",function(){translateGraph(C)}),H(" assignNodeIntersects",function(){assignNodeIntersects(C)}),H(" reversePoints",function(){reversePointsForReversedEdges(C)}),H(" acyclic.undo",function(){undo$2(C)})}function updateInputGraph(C,H){forEach$1(C.nodes(),function(U){var W=C.node(U),G=H.node(U);W&&(W.x=G.x,W.y=G.y,H.children(U).length&&(W.width=G.width,W.height=G.height))}),forEach$1(C.edges(),function(U){var W=C.edge(U),G=H.edge(U);W.points=G.points,has$1(G,"x")&&(W.x=G.x,W.y=G.y)}),C.graph().width=H.graph().width,C.graph().height=H.graph().height}var graphNumAttrs=["nodesep","edgesep","ranksep","marginx","marginy"],graphDefaults={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},graphAttrs=["acyclicer","ranker","rankdir","align"],nodeNumAttrs=["width","height"],nodeDefaults={width:0,height:0},edgeNumAttrs=["minlen","weight","width","height","labeloffset"],edgeDefaults={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},edgeAttrs=["labelpos"];function buildLayoutGraph(C){var H=new Graph({multigraph:!0,compound:!0}),U=canonicalize(C.graph());return H.setGraph(merge$4({},graphDefaults,selectNumberAttrs(U,graphNumAttrs),pick$1(U,graphAttrs))),forEach$1(C.nodes(),function(W){var G=canonicalize(C.node(W));H.setNode(W,defaults$5(selectNumberAttrs(G,nodeNumAttrs),nodeDefaults)),H.setParent(W,C.parent(W))}),forEach$1(C.edges(),function(W){var G=canonicalize(C.edge(W));H.setEdge(W,merge$4({},edgeDefaults,selectNumberAttrs(G,edgeNumAttrs),pick$1(G,edgeAttrs)))}),H}function makeSpaceForEdgeLabels(C){var H=C.graph();H.ranksep/=2,forEach$1(C.edges(),function(U){var W=C.edge(U);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(H.rankdir==="TB"||H.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function injectEdgeLabelProxies(C){forEach$1(C.edges(),function(H){var U=C.edge(H);if(U.width&&U.height){var W=C.node(H.v),G=C.node(H.w),X={rank:(G.rank-W.rank)/2+W.rank,e:H};addDummyNode(C,"edge-proxy",X,"_ep")}})}function assignRankMinMax(C){var H=0;forEach$1(C.nodes(),function(U){var W=C.node(U);W.borderTop&&(W.minRank=C.node(W.borderTop).rank,W.maxRank=C.node(W.borderBottom).rank,H=max(H,W.maxRank))}),C.graph().maxRank=H}function removeEdgeLabelProxies(C){forEach$1(C.nodes(),function(H){var U=C.node(H);U.dummy==="edge-proxy"&&(C.edge(U.e).labelRank=U.rank,C.removeNode(H))})}function translateGraph(C){var H=Number.POSITIVE_INFINITY,U=0,W=Number.POSITIVE_INFINITY,G=0,X=C.graph(),Z=X.marginx||0,Q=X.marginy||0;function ee(ie){var te=ie.x,ne=ie.y,ae=ie.width,oe=ie.height;H=Math.min(H,te-ae/2),U=Math.max(U,te+ae/2),W=Math.min(W,ne-oe/2),G=Math.max(G,ne+oe/2)}forEach$1(C.nodes(),function(ie){ee(C.node(ie))}),forEach$1(C.edges(),function(ie){var te=C.edge(ie);has$1(te,"x")&&ee(te)}),H-=Z,W-=Q,forEach$1(C.nodes(),function(ie){var te=C.node(ie);te.x-=H,te.y-=W}),forEach$1(C.edges(),function(ie){var te=C.edge(ie);forEach$1(te.points,function(ne){ne.x-=H,ne.y-=W}),has$1(te,"x")&&(te.x-=H),has$1(te,"y")&&(te.y-=W)}),X.width=U-H+Z,X.height=G-W+Q}function assignNodeIntersects(C){forEach$1(C.edges(),function(H){var U=C.edge(H),W=C.node(H.v),G=C.node(H.w),X,Z;U.points?(X=U.points[0],Z=U.points[U.points.length-1]):(U.points=[],X=G,Z=W),U.points.unshift(intersectRect$3(W,X)),U.points.push(intersectRect$3(G,Z))})}function fixupEdgeLabelCoords(C){forEach$1(C.edges(),function(H){var U=C.edge(H);if(has$1(U,"x"))switch((U.labelpos==="l"||U.labelpos==="r")&&(U.width-=U.labeloffset),U.labelpos){case"l":U.x-=U.width/2+U.labeloffset;break;case"r":U.x+=U.width/2+U.labeloffset;break}})}function reversePointsForReversedEdges(C){forEach$1(C.edges(),function(H){var U=C.edge(H);U.reversed&&U.points.reverse()})}function removeBorderNodes(C){forEach$1(C.nodes(),function(H){if(C.children(H).length){var U=C.node(H),W=C.node(U.borderTop),G=C.node(U.borderBottom),X=C.node(last$2(U.borderLeft)),Z=C.node(last$2(U.borderRight));U.width=Math.abs(Z.x-X.x),U.height=Math.abs(G.y-W.y),U.x=X.x+U.width/2,U.y=W.y+U.height/2}}),forEach$1(C.nodes(),function(H){C.node(H).dummy==="border"&&C.removeNode(H)})}function removeSelfEdges(C){forEach$1(C.edges(),function(H){if(H.v===H.w){var U=C.node(H.v);U.selfEdges||(U.selfEdges=[]),U.selfEdges.push({e:H,label:C.edge(H)}),C.removeEdge(H)}})}function insertSelfEdges(C){var H=buildLayerMatrix(C);forEach$1(H,function(U){var W=0;forEach$1(U,function(G,X){var Z=C.node(G);Z.order=X+W,forEach$1(Z.selfEdges,function(Q){addDummyNode(C,"selfedge",{width:Q.label.width,height:Q.label.height,rank:Z.rank,order:X+ ++W,e:Q.e,label:Q.label},"_se")}),delete Z.selfEdges})})}function positionSelfEdges(C){forEach$1(C.nodes(),function(H){var U=C.node(H);if(U.dummy==="selfedge"){var W=C.node(U.e.v),G=W.x+W.width/2,X=W.y,Z=U.x-G,Q=W.height/2;C.setEdge(U.e,U.label),C.removeNode(H),U.label.points=[{x:G+2*Z/3,y:X-Q},{x:G+5*Z/6,y:X-Q},{x:G+Z,y:X},{x:G+5*Z/6,y:X+Q},{x:G+2*Z/3,y:X+Q}],U.label.x=U.x,U.label.y=U.y}})}function selectNumberAttrs(C,H){return mapValues$1(pick$1(C,H),Number)}function canonicalize(C){var H={};return forEach$1(C,function(U,W){H[W.toLowerCase()]=U}),H}function run(C){C.graph().dummyChains=[],forEach$1(C.edges(),function(H){normalizeEdge(C,H)})}function normalizeEdge(C,H){var U=H.v,W=C.node(U).rank,G=H.w,X=C.node(G).rank,Z=H.name,Q=C.edge(H),ee=Q.labelRank;if(X!==W+1){C.removeEdge(H);var ie,te,ne;for(ne=0,++W;W<X;++ne,++W)Q.points=[],te={width:0,height:0,edgeLabel:Q,edgeObj:H,rank:W},ie=addDummyNode(C,"edge",te,"_d"),W===ee&&(te.width=Q.width,te.height=Q.height,te.dummy="edge-label",te.labelpos=Q.labelpos),C.setEdge(U,ie,{weight:Q.weight},Z),ne===0&&C.graph().dummyChains.push(ie),U=ie;C.setEdge(U,G,{weight:Q.weight},Z)}}function undo(C){forEach$1(C.graph().dummyChains,function(H){var U=C.node(H),W=U.edgeLabel,G;for(C.setEdge(U.edgeObj,W);U.dummy;)G=C.successors(H)[0],C.removeNode(H),W.points.push({x:U.x,y:U.y}),U.dummy==="edge-label"&&(W.x=U.x,W.y=U.y,W.width=U.width,W.height=U.height),H=G,U=C.node(H)})}function longestPath(C){var H={};function U(W){var G=C.node(W);if(has$1(H,W))return G.rank;H[W]=!0;var X=min(map$3(C.outEdges(W),function(Z){return U(Z.w)-C.edge(Z).minlen}));return(X===Number.POSITIVE_INFINITY||X===void 0||X===null)&&(X=0),G.rank=X}forEach$1(C.sources(),U)}function slack(C,H){return C.node(H.w).rank-C.node(H.v).rank-C.edge(H).minlen}function feasibleTree(C){var H=new Graph({directed:!1}),U=C.nodes()[0],W=C.nodeCount();H.setNode(U,{});for(var G,X;tightTree(H,C)<W;)G=findMinSlackEdge(H,C),X=H.hasNode(G.v)?slack(C,G):-slack(C,G),shiftRanks(H,C,X);return H}function tightTree(C,H){function U(W){forEach$1(H.nodeEdges(W),function(G){var X=G.v,Z=W===X?G.w:X;!C.hasNode(Z)&&!slack(H,G)&&(C.setNode(Z,{}),C.setEdge(W,Z,{}),U(Z))})}return forEach$1(C.nodes(),U),C.nodeCount()}function findMinSlackEdge(C,H){return minBy(H.edges(),function(U){if(C.hasNode(U.v)!==C.hasNode(U.w))return slack(H,U)})}function shiftRanks(C,H,U){forEach$1(C.nodes(),function(W){H.node(W).rank+=U})}function CycleException(){}CycleException.prototype=new Error;function dfs(C,H,U){isArray$c(H)||(H=[H]);var W=(C.isDirected()?C.successors:C.neighbors).bind(C),G=[],X={};return forEach$1(H,function(Z){if(!C.hasNode(Z))throw new Error("Graph does not have node: "+Z);doDfs(C,Z,U==="post",X,W,G)}),G}function doDfs(C,H,U,W,G,X){has$1(W,H)||(W[H]=!0,U||X.push(H),forEach$1(G(H),function(Z){doDfs(C,Z,U,W,G,X)}),U&&X.push(H))}function postorder(C,H){return dfs(C,H,"post")}function preorder(C,H){return dfs(C,H,"pre")}networkSimplex.initLowLimValues=initLowLimValues;networkSimplex.initCutValues=initCutValues;networkSimplex.calcCutValue=calcCutValue;networkSimplex.leaveEdge=leaveEdge;networkSimplex.enterEdge=enterEdge;networkSimplex.exchangeEdges=exchangeEdges;function networkSimplex(C){C=simplify(C),longestPath(C);var H=feasibleTree(C);initLowLimValues(H),initCutValues(H,C);for(var U,W;U=leaveEdge(H);)W=enterEdge(H,C,U),exchangeEdges(H,C,U,W)}function initCutValues(C,H){var U=postorder(C,C.nodes());U=U.slice(0,U.length-1),forEach$1(U,function(W){assignCutValue(C,H,W)})}function assignCutValue(C,H,U){var W=C.node(U),G=W.parent;C.edge(U,G).cutvalue=calcCutValue(C,H,U)}function calcCutValue(C,H,U){var W=C.node(U),G=W.parent,X=!0,Z=H.edge(U,G),Q=0;return Z||(X=!1,Z=H.edge(G,U)),Q=Z.weight,forEach$1(H.nodeEdges(U),function(ee){var ie=ee.v===U,te=ie?ee.w:ee.v;if(te!==G){var ne=ie===X,ae=H.edge(ee).weight;if(Q+=ne?ae:-ae,isTreeEdge(C,U,te)){var oe=C.edge(U,te).cutvalue;Q+=ne?-oe:oe}}}),Q}function initLowLimValues(C,H){arguments.length<2&&(H=C.nodes()[0]),dfsAssignLowLim(C,{},1,H)}function dfsAssignLowLim(C,H,U,W,G){var X=U,Z=C.node(W);return H[W]=!0,forEach$1(C.neighbors(W),function(Q){has$1(H,Q)||(U=dfsAssignLowLim(C,H,U,Q,W))}),Z.low=X,Z.lim=U++,G?Z.parent=G:delete Z.parent,U}function leaveEdge(C){return find$2(C.edges(),function(H){return C.edge(H).cutvalue<0})}function enterEdge(C,H,U){var W=U.v,G=U.w;H.hasEdge(W,G)||(W=U.w,G=U.v);var X=C.node(W),Z=C.node(G),Q=X,ee=!1;X.lim>Z.lim&&(Q=Z,ee=!0);var ie=filter$2(H.edges(),function(te){return ee===isDescendant$1(C,C.node(te.v),Q)&&ee!==isDescendant$1(C,C.node(te.w),Q)});return minBy(ie,function(te){return slack(H,te)})}function exchangeEdges(C,H,U,W){var G=U.v,X=U.w;C.removeEdge(G,X),C.setEdge(W.v,W.w,{}),initLowLimValues(C),initCutValues(C,H),updateRanks(C,H)}function updateRanks(C,H){var U=find$2(C.nodes(),function(G){return!H.node(G).parent}),W=preorder(C,U);W=W.slice(1),forEach$1(W,function(G){var X=C.node(G).parent,Z=H.edge(G,X),Q=!1;Z||(Z=H.edge(X,G),Q=!0),H.node(G).rank=H.node(X).rank+(Q?Z.minlen:-Z.minlen)})}function isTreeEdge(C,H,U){return C.hasEdge(H,U)}function isDescendant$1(C,H,U){return U.low<=H.lim&&H.lim<=U.lim}function rank(C){switch(C.graph().ranker){case"network-simplex":networkSimplexRanker(C);break;case"tight-tree":tightTreeRanker(C);break;case"longest-path":longestPathRanker(C);break;default:networkSimplexRanker(C)}}var longestPathRanker=longestPath;function tightTreeRanker(C){longestPath(C),feasibleTree(C)}function networkSimplexRanker(C){networkSimplex(C)}function write(C){var H={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:writeNodes(C),edges:writeEdges(C)};return isUndefined$2(C.graph())||(H.value=clone$1(C.graph())),H}function writeNodes(C){return map$3(C.nodes(),function(H){var U=C.node(H),W=C.parent(H),G={v:H};return isUndefined$2(U)||(G.value=U),isUndefined$2(W)||(G.parent=W),G})}function writeEdges(C){return map$3(C.edges(),function(H){var U=C.edge(H),W={v:H.v,w:H.w};return isUndefined$2(H.name)||(W.name=H.name),isUndefined$2(U)||(W.value=U),W})}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(C){return typeof C=="string"&®EX.test(C)}const byteToHex=[];for(let C=0;C<256;++C)byteToHex.push((C+256).toString(16).slice(1));function unsafeStringify(C,H=0){return(byteToHex[C[H+0]]+byteToHex[C[H+1]]+byteToHex[C[H+2]]+byteToHex[C[H+3]]+"-"+byteToHex[C[H+4]]+byteToHex[C[H+5]]+"-"+byteToHex[C[H+6]]+byteToHex[C[H+7]]+"-"+byteToHex[C[H+8]]+byteToHex[C[H+9]]+"-"+byteToHex[C[H+10]]+byteToHex[C[H+11]]+byteToHex[C[H+12]]+byteToHex[C[H+13]]+byteToHex[C[H+14]]+byteToHex[C[H+15]]).toLowerCase()}function parse$2(C){if(!validate(C))throw TypeError("Invalid UUID");let H;const U=new Uint8Array(16);return U[0]=(H=parseInt(C.slice(0,8),16))>>>24,U[1]=H>>>16&255,U[2]=H>>>8&255,U[3]=H&255,U[4]=(H=parseInt(C.slice(9,13),16))>>>8,U[5]=H&255,U[6]=(H=parseInt(C.slice(14,18),16))>>>8,U[7]=H&255,U[8]=(H=parseInt(C.slice(19,23),16))>>>8,U[9]=H&255,U[10]=(H=parseInt(C.slice(24,36),16))/1099511627776&255,U[11]=H/4294967296&255,U[12]=H>>>24&255,U[13]=H>>>16&255,U[14]=H>>>8&255,U[15]=H&255,U}function stringToBytes(C){C=unescape(encodeURIComponent(C));const H=[];for(let U=0;U<C.length;++U)H.push(C.charCodeAt(U));return H}const DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",URL$1="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(C,H,U){function W(G,X,Z,Q){var ee;if(typeof G=="string"&&(G=stringToBytes(G)),typeof X=="string"&&(X=parse$2(X)),((ee=X)===null||ee===void 0?void 0:ee.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let ie=new Uint8Array(16+G.length);if(ie.set(X),ie.set(G,X.length),ie=U(ie),ie[6]=ie[6]&15|H,ie[8]=ie[8]&63|128,Z){Q=Q||0;for(let te=0;te<16;++te)Z[Q+te]=ie[te];return Z}return unsafeStringify(ie)}try{W.name=C}catch{}return W.DNS=DNS,W.URL=URL$1,W}function f(C,H,U,W){switch(C){case 0:return H&U^~H&W;case 1:return H^U^W;case 2:return H&U^H&W^U&W;case 3:return H^U^W}}function ROTL(C,H){return C<<H|C>>>32-H}function sha1(C){const H=[1518500249,1859775393,2400959708,3395469782],U=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof C=="string"){const Z=unescape(encodeURIComponent(C));C=[];for(let Q=0;Q<Z.length;++Q)C.push(Z.charCodeAt(Q))}else Array.isArray(C)||(C=Array.prototype.slice.call(C));C.push(128);const W=C.length/4+2,G=Math.ceil(W/16),X=new Array(G);for(let Z=0;Z<G;++Z){const Q=new Uint32Array(16);for(let ee=0;ee<16;++ee)Q[ee]=C[Z*64+ee*4]<<24|C[Z*64+ee*4+1]<<16|C[Z*64+ee*4+2]<<8|C[Z*64+ee*4+3];X[Z]=Q}X[G-1][14]=(C.length-1)*8/Math.pow(2,32),X[G-1][14]=Math.floor(X[G-1][14]),X[G-1][15]=(C.length-1)*8&4294967295;for(let Z=0;Z<G;++Z){const Q=new Uint32Array(80);for(let oe=0;oe<16;++oe)Q[oe]=X[Z][oe];for(let oe=16;oe<80;++oe)Q[oe]=ROTL(Q[oe-3]^Q[oe-8]^Q[oe-14]^Q[oe-16],1);let ee=U[0],ie=U[1],te=U[2],ne=U[3],ae=U[4];for(let oe=0;oe<80;++oe){const se=Math.floor(oe/20),le=ROTL(ee,5)+f(se,ie,te,ne)+ae+H[se]+Q[oe]>>>0;ae=ne,ne=te,te=ROTL(ie,30)>>>0,ie=ee,ee=le}U[0]=U[0]+ee>>>0,U[1]=U[1]+ie>>>0,U[2]=U[2]+te>>>0,U[3]=U[3]+ne>>>0,U[4]=U[4]+ae>>>0}return[U[0]>>24&255,U[0]>>16&255,U[0]>>8&255,U[0]&255,U[1]>>24&255,U[1]>>16&255,U[1]>>8&255,U[1]&255,U[2]>>24&255,U[2]>>16&255,U[2]>>8&255,U[2]&255,U[3]>>24&255,U[3]>>16&255,U[3]>>8&255,U[3]&255,U[4]>>24&255,U[4]>>16&255,U[4]>>8&255,U[4]&255]}const v5=v35("v5",80,sha1),v5$1=v5;function isSubgraph(C,H){return!!C.children(H).length}function edgeToId(C){return escapeId(C.v)+":"+escapeId(C.w)+":"+escapeId(C.name)}var ID_DELIM=/:/g;function escapeId(C){return C?String(C).replace(ID_DELIM,"\\:"):""}function applyStyle$1(C,H){H&&C.attr("style",H)}function applyClass(C,H,U){H&&C.attr("class",H).attr("class",U+" "+C.attr("class"))}function applyTransition(C,H){var U=H.graph();if(isPlainObject$3(U)){var W=U.transition;if(isFunction$6(W))return W(C)}return C}var arrows={normal,vee,undirected};function setArrows(C){arrows=C}function normal(C,H,U,W){var G=C.append("marker").attr("id",H).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),X=G.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");applyStyle$1(X,U[W+"Style"]),U[W+"Class"]&&X.attr("class",U[W+"Class"])}function vee(C,H,U,W){var G=C.append("marker").attr("id",H).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),X=G.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");applyStyle$1(X,U[W+"Style"]),U[W+"Class"]&&X.attr("class",U[W+"Class"])}function undirected(C,H,U,W){var G=C.append("marker").attr("id",H).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),X=G.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");applyStyle$1(X,U[W+"Style"]),U[W+"Class"]&&X.attr("class",U[W+"Class"])}function addHtmlLabel$1(C,H){var U=C.append("foreignObject").attr("width","100000"),W=U.append("xhtml:div");W.attr("xmlns","http://www.w3.org/1999/xhtml");var G=H.label;switch(typeof G){case"function":W.insert(G);break;case"object":W.insert(function(){return G});break;default:W.html(G)}applyStyle$1(W,H.labelStyle),W.style("display","inline-block"),W.style("white-space","nowrap");var X=W.node().getBoundingClientRect();return U.attr("width",X.width).attr("height",X.height),U}function addSVGLabel(C,H){var U=C;return U.node().appendChild(H.label),applyStyle$1(U,H.labelStyle),U}function addTextLabel(C,H){for(var U=C.append("text"),W=processEscapeSequences(H.label).split(`
|
||
`),G=0;G<W.length;G++)U.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(W[G]);return applyStyle$1(U,H.labelStyle),U}function processEscapeSequences(C){for(var H="",U=!1,W,G=0;G<C.length;++G)if(W=C[G],U){switch(W){case"n":H+=`
|
||
`;break;default:H+=W}U=!1}else W==="\\"?U=!0:H+=W;return H}function addLabel(C,H,U){var W=H.label,G=C.append("g");H.labelType==="svg"?addSVGLabel(G,H):typeof W!="string"||H.labelType==="html"?addHtmlLabel$1(G,H):addTextLabel(G,H);var X=G.node().getBBox(),Z;switch(U){case"top":Z=-H.height/2;break;case"bottom":Z=H.height/2-X.height;break;default:Z=-X.height/2}return G.attr("transform","translate("+-X.width/2+","+Z+")"),G}var createClusters=function(C,H){var U=H.nodes().filter(function(X){return isSubgraph(H,X)}),W=C.selectAll("g.cluster").data(U,function(X){return X});applyTransition(W.exit(),H).style("opacity",0).remove();var G=W.enter().append("g").attr("class","cluster").attr("id",function(X){var Z=H.node(X);return Z.id}).style("opacity",0).each(function(X){var Z=H.node(X),Q=select(this);select(this).append("rect");var ee=Q.append("g").attr("class","label");addLabel(ee,Z,Z.clusterLabelPos)});return W=W.merge(G),W=applyTransition(W,H).style("opacity",1),W.selectAll("rect").each(function(X){var Z=H.node(X),Q=select(this);applyStyle$1(Q,Z.style)}),W};function setCreateClusters(C){createClusters=C}let createEdgeLabels=function(C,H){var U=C.selectAll("g.edgeLabel").data(H.edges(),function(G){return edgeToId(G)}).classed("update",!0);U.exit().remove(),U.enter().append("g").classed("edgeLabel",!0).style("opacity",0),U=C.selectAll("g.edgeLabel"),U.each(function(G){var X=select(this);X.select(".label").remove();var Z=H.edge(G),Q=addLabel(X,H.edge(G),0).classed("label",!0),ee=Q.node().getBBox();Z.labelId&&Q.attr("id",Z.labelId),has$1(Z,"width")||(Z.width=ee.width),has$1(Z,"height")||(Z.height=ee.height)});var W;return U.exit?W=U.exit():W=U.selectAll(null),applyTransition(W,H).style("opacity",0).remove(),U};function setCreateEdgeLabels(C){createEdgeLabels=C}function intersectNode$1(C,H){return C.intersect(H)}var createEdgePaths=function(C,H,U){var W=C.selectAll("g.edgePath").data(H.edges(),function(Z){return edgeToId(Z)}).classed("update",!0),G=enter(W,H);exit(W,H);var X=W.merge!==void 0?W.merge(G):W;return applyTransition(X,H).style("opacity",1),X.each(function(Z){var Q=select(this),ee=H.edge(Z);ee.elem=this,ee.id&&Q.attr("id",ee.id),applyClass(Q,ee.class,(Q.classed("update")?"update ":"")+"edgePath")}),X.selectAll("path.path").each(function(Z){var Q=H.edge(Z);Q.arrowheadId=uniqueId$1("arrowhead");var ee=select(this).attr("marker-end",function(){return"url("+makeFragmentRef(location.href,Q.arrowheadId)+")"}).style("fill","none");applyTransition(ee,H).attr("d",function(ie){return calcPoints(H,ie)}),applyStyle$1(ee,Q.style)}),X.selectAll("defs *").remove(),X.selectAll("defs").each(function(Z){var Q=H.edge(Z),ee=U[Q.arrowhead];ee(select(this),Q.arrowheadId,Q,"arrowhead")}),X};function setCreateEdgePaths(C){createEdgePaths=C}function makeFragmentRef(C,H){var U=C.split("#")[0];return U+"#"+H}function calcPoints(C,H){var U=C.edge(H),W=C.node(H.v),G=C.node(H.w),X=U.points.slice(1,U.points.length-1);return X.unshift(intersectNode$1(W,X[0])),X.push(intersectNode$1(G,X[X.length-1])),createLine(U,X)}function createLine(C,H){var U=(line$1||svg$2.line)().x(function(W){return W.x}).y(function(W){return W.y});return(U.curve||U.interpolate)(C.curve),U(H)}function getCoords(C){var H=C.getBBox(),U=C.ownerSVGElement.getScreenCTM().inverse().multiply(C.getScreenCTM()).translate(H.width/2,H.height/2);return{x:U.e,y:U.f}}function enter(C,H){var U=C.enter().append("g").attr("class","edgePath").style("opacity",0);return U.append("path").attr("class","path").attr("d",function(W){var G=H.edge(W),X=H.node(W.v).elem,Z=range$2(G.points.length).map(function(){return getCoords(X)});return createLine(G,Z)}),U.append("defs"),U}function exit(C,H){var U=C.exit();applyTransition(U,H).style("opacity",0).remove()}var createNodes=function(C,H,U){var W=H.nodes().filter(function(Z){return!isSubgraph(H,Z)}),G=C.selectAll("g.node").data(W,function(Z){return Z}).classed("update",!0);G.exit().remove(),G.enter().append("g").attr("class","node").style("opacity",0),G=C.selectAll("g.node"),G.each(function(Z){var Q=H.node(Z),ee=select(this);applyClass(ee,Q.class,(ee.classed("update")?"update ":"")+"node"),ee.select("g.label").remove();var ie=ee.append("g").attr("class","label"),te=addLabel(ie,Q),ne=U[Q.shape],ae=pick$1(te.node().getBBox(),"width","height");Q.elem=this,Q.id&&ee.attr("id",Q.id),Q.labelId&&ie.attr("id",Q.labelId),has$1(Q,"width")&&(ae.width=Q.width),has$1(Q,"height")&&(ae.height=Q.height),ae.width+=Q.paddingLeft+Q.paddingRight,ae.height+=Q.paddingTop+Q.paddingBottom,ie.attr("transform","translate("+(Q.paddingLeft-Q.paddingRight)/2+","+(Q.paddingTop-Q.paddingBottom)/2+")");var oe=select(this);oe.select(".label-container").remove();var se=ne(oe,ae,Q).classed("label-container",!0);applyStyle$1(se,Q.style);var le=se.node().getBBox();Q.width=le.width,Q.height=le.height});var X;return G.exit?X=G.exit():X=G.selectAll(null),applyTransition(X,H).style("opacity",0).remove(),G};function setCreateNodes(C){createNodes=C}function positionClusters(C,H){var U=C.filter(function(){return!select(this).classed("update")});function W(G){var X=H.node(G);return"translate("+X.x+","+X.y+")"}U.attr("transform",W),applyTransition(C,H).style("opacity",1).attr("transform",W),applyTransition(U.selectAll("rect"),H).attr("width",function(G){return H.node(G).width}).attr("height",function(G){return H.node(G).height}).attr("x",function(G){var X=H.node(G);return-X.width/2}).attr("y",function(G){var X=H.node(G);return-X.height/2})}function positionEdgeLabels(C,H){var U=C.filter(function(){return!select(this).classed("update")});function W(G){var X=H.edge(G);return has$1(X,"x")?"translate("+X.x+","+X.y+")":""}U.attr("transform",W),applyTransition(C,H).style("opacity",1).attr("transform",W)}function positionNodes(C,H){var U=C.filter(function(){return!select(this).classed("update")});function W(G){var X=H.node(G);return"translate("+X.x+","+X.y+")"}U.attr("transform",W),applyTransition(C,H).style("opacity",1).attr("transform",W)}function intersectEllipse$1(C,H,U,W){var G=C.x,X=C.y,Z=G-W.x,Q=X-W.y,ee=Math.sqrt(H*H*Q*Q+U*U*Z*Z),ie=Math.abs(H*U*Z/ee);W.x<G&&(ie=-ie);var te=Math.abs(H*U*Q/ee);return W.y<X&&(te=-te),{x:G+ie,y:X+te}}function intersectCircle$1(C,H,U){return intersectEllipse$1(C,H,H,U)}function intersectLine$1(C,H,U,W){var G,X,Z,Q,ee,ie,te,ne,ae,oe,se,le,ce,ue,de;if(G=H.y-C.y,Z=C.x-H.x,ee=H.x*C.y-C.x*H.y,ae=G*U.x+Z*U.y+ee,oe=G*W.x+Z*W.y+ee,!(ae!==0&&oe!==0&&sameSign$1(ae,oe))&&(X=W.y-U.y,Q=U.x-W.x,ie=W.x*U.y-U.x*W.y,te=X*C.x+Q*C.y+ie,ne=X*H.x+Q*H.y+ie,!(te!==0&&ne!==0&&sameSign$1(te,ne))&&(se=G*Q-X*Z,se!==0)))return le=Math.abs(se/2),ce=Z*ie-Q*ee,ue=ce<0?(ce-le)/se:(ce+le)/se,ce=X*ee-G*ie,de=ce<0?(ce-le)/se:(ce+le)/se,{x:ue,y:de}}function sameSign$1(C,H){return C*H>0}function intersectPolygon$1(C,H,U){var W=C.x,G=C.y,X=[],Z=Number.POSITIVE_INFINITY,Q=Number.POSITIVE_INFINITY;H.forEach(function(se){Z=Math.min(Z,se.x),Q=Math.min(Q,se.y)});for(var ee=W-C.width/2-Z,ie=G-C.height/2-Q,te=0;te<H.length;te++){var ne=H[te],ae=H[te<H.length-1?te+1:0],oe=intersectLine$1(C,U,{x:ee+ne.x,y:ie+ne.y},{x:ee+ae.x,y:ie+ae.y});oe&&X.push(oe)}return X.length?(X.length>1&&X.sort(function(se,le){var ce=se.x-U.x,ue=se.y-U.y,de=Math.sqrt(ce*ce+ue*ue),ve=le.x-U.x,ge=le.y-U.y,he=Math.sqrt(ve*ve+ge*ge);return de<he?-1:de===he?0:1}),X[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",C),C)}function intersectRect$2(C,H){var U=C.x,W=C.y,G=H.x-U,X=H.y-W,Z=C.width/2,Q=C.height/2,ee,ie;return Math.abs(X)*Z>Math.abs(G)*Q?(X<0&&(Q=-Q),ee=X===0?0:Q*G/X,ie=Q):(G<0&&(Z=-Z),ee=Z,ie=G===0?0:Z*X/G),{x:U+ee,y:W+ie}}var shapes$2={rect:rect$2,ellipse,circle:circle$2,diamond};function setShapes(C){shapes$2=C}function rect$2(C,H,U){var W=C.insert("rect",":first-child").attr("rx",U.rx).attr("ry",U.ry).attr("x",-H.width/2).attr("y",-H.height/2).attr("width",H.width).attr("height",H.height);return U.intersect=function(G){return intersectRect$2(U,G)},W}function ellipse(C,H,U){var W=H.width/2,G=H.height/2,X=C.insert("ellipse",":first-child").attr("x",-H.width/2).attr("y",-H.height/2).attr("rx",W).attr("ry",G);return U.intersect=function(Z){return intersectEllipse$1(U,W,G,Z)},X}function circle$2(C,H,U){var W=Math.max(H.width,H.height)/2,G=C.insert("circle",":first-child").attr("x",-H.width/2).attr("y",-H.height/2).attr("r",W);return U.intersect=function(X){return intersectCircle$1(U,W,X)},G}function diamond(C,H,U){var W=H.width*Math.SQRT2/2,G=H.height*Math.SQRT2/2,X=[{x:0,y:-G},{x:-W,y:0},{x:0,y:G},{x:W,y:0}],Z=C.insert("polygon",":first-child").attr("points",X.map(function(Q){return Q.x+","+Q.y}).join(" "));return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function render$2(){var C=function(H,U){preProcessGraph(U);var W=createOrSelectGroup(H,"output"),G=createOrSelectGroup(W,"clusters"),X=createOrSelectGroup(W,"edgePaths"),Z=createEdgeLabels(createOrSelectGroup(W,"edgeLabels"),U),Q=createNodes(createOrSelectGroup(W,"nodes"),U,shapes$2);layout(U),positionNodes(Q,U),positionEdgeLabels(Z,U),createEdgePaths(X,U,arrows);var ee=createClusters(G,U);positionClusters(ee,U),postProcessGraph(U)};return C.createNodes=function(H){return arguments.length?(setCreateNodes(H),C):createNodes},C.createClusters=function(H){return arguments.length?(setCreateClusters(H),C):createClusters},C.createEdgeLabels=function(H){return arguments.length?(setCreateEdgeLabels(H),C):createEdgeLabels},C.createEdgePaths=function(H){return arguments.length?(setCreateEdgePaths(H),C):createEdgePaths},C.shapes=function(H){return arguments.length?(setShapes(H),C):shapes$2},C.arrows=function(H){return arguments.length?(setArrows(H),C):arrows},C}var NODE_DEFAULT_ATTRS={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},EDGE_DEFAULT_ATTRS={arrowhead:"normal",curve:curveLinear};function preProcessGraph(C){C.nodes().forEach(function(H){var U=C.node(H);!has$1(U,"label")&&!C.children(H).length&&(U.label=H),has$1(U,"paddingX")&&defaults$5(U,{paddingLeft:U.paddingX,paddingRight:U.paddingX}),has$1(U,"paddingY")&&defaults$5(U,{paddingTop:U.paddingY,paddingBottom:U.paddingY}),has$1(U,"padding")&&defaults$5(U,{paddingLeft:U.padding,paddingRight:U.padding,paddingTop:U.padding,paddingBottom:U.padding}),defaults$5(U,NODE_DEFAULT_ATTRS),forEach$1(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(W){U[W]=Number(U[W])}),has$1(U,"width")&&(U._prevWidth=U.width),has$1(U,"height")&&(U._prevHeight=U.height)}),C.edges().forEach(function(H){var U=C.edge(H);has$1(U,"label")||(U.label=""),defaults$5(U,EDGE_DEFAULT_ATTRS)})}function postProcessGraph(C){forEach$1(C.nodes(),function(H){var U=C.node(H);has$1(U,"_prevWidth")?U.width=U._prevWidth:delete U.width,has$1(U,"_prevHeight")?U.height=U._prevHeight:delete U.height,delete U._prevWidth,delete U._prevHeight})}function createOrSelectGroup(C,H){var U=C.select("g."+H);return U.empty()&&(U=C.append("g").attr("class",H)),U}var __defProp=Object.defineProperty,__defNormalProp=(C,H,U)=>H in C?__defProp(C,H,{enumerable:!0,configurable:!0,writable:!0,value:U}):C[H]=U,__publicField=(C,H,U)=>(__defNormalProp(C,typeof H!="symbol"?H+"":H,U),U);const LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:(...C)=>{},debug:(...C)=>{},info:(...C)=>{},warn:(...C)=>{},error:(...C)=>{},fatal:(...C)=>{}},setLogLevel$1=function(C="fatal"){let H=LEVELS.fatal;typeof C=="string"?(C=C.toLowerCase(),C in LEVELS&&(H=LEVELS[C])):typeof C=="number"&&(H=C),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},H<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format("FATAL"))),H<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format("ERROR"))),H<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format("WARN"))),H<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format("INFO"))),H<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("DEBUG"))),H<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("TRACE")))},format=C=>`%c${hooks().format("ss.SSS")} : ${C} : `,getRows=C=>C?breakToPlaceholder(C).replace(/\\n/g,"#br#").split("#br#"):[""],removeScript=C=>purify.sanitize(C),sanitizeMore=(C,H)=>{var U;if(((U=H.flowchart)==null?void 0:U.htmlLabels)!==!1){const W=H.securityLevel;W==="antiscript"||W==="strict"?C=removeScript(C):W!=="loose"&&(C=breakToPlaceholder(C),C=C.replace(/</g,"<").replace(/>/g,">"),C=C.replace(/=/g,"="),C=placeholderToBreak(C))}return C},sanitizeText$5=(C,H)=>C&&(H.dompurifyConfig?C=purify.sanitize(sanitizeMore(C,H),H.dompurifyConfig).toString():C=purify.sanitize(sanitizeMore(C,H),{FORBID_TAGS:["style"]}).toString(),C),sanitizeTextOrArray=(C,H)=>typeof C=="string"?sanitizeText$5(C,H):C.flat().map(U=>sanitizeText$5(U,H)),lineBreakRegex=/<br\s*\/?>/gi,hasBreaks=C=>lineBreakRegex.test(C),splitBreaks=C=>C.split(lineBreakRegex),placeholderToBreak=C=>C.replace(/#br#/g,"<br/>"),breakToPlaceholder=C=>C.replace(lineBreakRegex,"#br#"),getUrl=C=>{let H="";return C&&(H=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,H=H.replaceAll(/\(/g,"\\("),H=H.replaceAll(/\)/g,"\\)")),H},evaluate=C=>!(C===!1||["false","null","0"].includes(String(C).trim().toLowerCase())),parseGenericTypes=function(C){let H=C;if(C.split("~").length-1>=2){let U=H;do H=U,U=H.replace(/~([^\s,:;]+)~/,"<$1>");while(U!=H);return parseGenericTypes(U)}else return H},common$1={getRows,sanitizeText:sanitizeText$5,sanitizeTextOrArray,hasBreaks,splitBreaks,lineBreakRegex,removeScript,getUrl,evaluate},mkBorder=(C,H)=>H?adjust$2(C,{s:-40,l:10}):adjust$2(C,{s:-40,l:-10}),oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2";class Theme$4{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(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust$2(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust$2(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$1(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert$1(this.tertiaryColor),this.lineColor=this.lineColor||invert$1(this.background),this.textColor=this.textColor||this.primaryTextColor,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$1(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||"grey",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.actorTextColor,this.activationBorderColor=this.activationBorderColor||darken$1(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||invert$1(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||lighten$1(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$2(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$2(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$2(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$2(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$2(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$2(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||adjust$2(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$2(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$2(this.primaryColor,{h:330}),this.darkMode)for(let U=0;U<this.THEME_COLOR_LIMIT;U++)this["cScale"+U]=darken$1(this["cScale"+U],75);else for(let U=0;U<this.THEME_COLOR_LIMIT;U++)this["cScale"+U]=darken$1(this["cScale"+U],25);for(let U=0;U<this.THEME_COLOR_LIMIT;U++)this["cScaleInv"+U]=this["cScaleInv"+U]||invert$1(this["cScale"+U]);for(let U=0;U<this.THEME_COLOR_LIMIT;U++)this.darkMode?this["cScalePeer"+U]=this["cScalePeer"+U]||lighten$1(this["cScale"+U],10):this["cScalePeer"+U]=this["cScalePeer"+U]||darken$1(this["cScale"+U],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let U=0;U<this.THEME_COLOR_LIMIT;U++)this["cScaleLabel"+U]=this["cScaleLabel"+U]||this.scaleLabelColor;const H=this.darkMode?-4:-1;for(let U=0;U<5;U++)this["surface"+U]=this["surface"+U]||adjust$2(this.mainBkg,{h:180,s:-15,l:H*(5+U*3)}),this["surfacePeer"+U]=this["surfacePeer"+U]||adjust$2(this.mainBkg,{h:180,s:-15,l:H*(8+U*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||adjust$2(this.primaryColor,{h:64}),this.fillType3=this.fillType3||adjust$2(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||adjust$2(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||adjust$2(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||adjust$2(this.primaryColor,{h:128}),this.fillType7=this.fillType7||adjust$2(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||adjust$2(this.primaryColor,{l:-10}),this.pie5=this.pie5||adjust$2(this.secondaryColor,{l:-10}),this.pie6=this.pie6||adjust$2(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||adjust$2(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||adjust$2(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||adjust$2(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||adjust$2(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||adjust$2(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||adjust$2(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?darken$1(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$2(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$2(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$2(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$2(this.primaryColor,{h:60}),this.git7=this.git7||adjust$2(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$1(this.git0,25),this.git1=lighten$1(this.git1,25),this.git2=lighten$1(this.git2,25),this.git3=lighten$1(this.git3,25),this.git4=lighten$1(this.git4,25),this.git5=lighten$1(this.git5,25),this.git6=lighten$1(this.git6,25),this.git7=lighten$1(this.git7,25)):(this.git0=darken$1(this.git0,25),this.git1=darken$1(this.git1,25),this.git2=darken$1(this.git2,25),this.git3=darken$1(this.git3,25),this.git4=darken$1(this.git4,25),this.git5=darken$1(this.git5,25),this.git6=darken$1(this.git6,25),this.git7=darken$1(this.git7,25)),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(H){if(typeof H!="object"){this.updateColors();return}const U=Object.keys(H);U.forEach(W=>{this[W]=H[W]}),this.updateColors(),U.forEach(W=>{this[W]=H[W]})}}const getThemeVariables$4=C=>{const H=new Theme$4;return H.calculate(C),H};class Theme$3{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=lighten$1(this.primaryColor,16),this.tertiaryColor=adjust$2(this.primaryColor,{h:-160}),this.primaryBorderColor=invert$1(this.background),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=lighten$1(invert$1("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=rgba$1(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=darken$1("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=rgba$1(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=rgba$1(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=lighten$1(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=lighten$1(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=lighten$1(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$2(this.primaryColor,{h:64}),this.fillType3=adjust$2(this.secondaryColor,{h:64}),this.fillType4=adjust$2(this.primaryColor,{h:-64}),this.fillType5=adjust$2(this.secondaryColor,{h:-64}),this.fillType6=adjust$2(this.primaryColor,{h:128}),this.fillType7=adjust$2(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$2(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$2(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$2(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$2(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$2(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$2(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$2(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$2(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$2(this.primaryColor,{h:330});for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||invert$1(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScalePeer"+H]=this["cScalePeer"+H]||lighten$1(this["cScale"+H],10);for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||adjust$2(this.mainBkg,{h:30,s:-30,l:-(-10+H*4)}),this["surfacePeer"+H]=this["surfacePeer"+H]||adjust$2(this.mainBkg,{h:30,s:-30,l:-(-7+H*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["pie"+H]=this["cScale"+H];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?darken$1(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=lighten$1(this.secondaryColor,20),this.git1=lighten$1(this.pie2||this.secondaryColor,20),this.git2=lighten$1(this.pie3||this.tertiaryColor,20),this.git3=lighten$1(this.pie4||adjust$2(this.primaryColor,{h:-30}),20),this.git4=lighten$1(this.pie5||adjust$2(this.primaryColor,{h:-60}),20),this.git5=lighten$1(this.pie6||adjust$2(this.primaryColor,{h:-90}),10),this.git6=lighten$1(this.pie7||adjust$2(this.primaryColor,{h:60}),10),this.git7=lighten$1(this.pie8||adjust$2(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||lighten$1(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lighten$1(this.background,2)}calculate(H){if(typeof H!="object"){this.updateColors();return}const U=Object.keys(H);U.forEach(W=>{this[W]=H[W]}),this.updateColors(),U.forEach(W=>{this[W]=H[W]})}}const getThemeVariables$3=C=>{const H=new Theme$3;return H.calculate(C),H};class Theme$2{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=adjust$2(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=adjust$2(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=rgba$1(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$2(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$2(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$2(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$2(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$2(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$2(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$2(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$2(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$2(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||darken$1(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||darken$1(this.tertiaryColor,40);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=darken$1(this["cScale"+H],10),this["cScalePeer"+H]=this["cScalePeer"+H]||darken$1(this["cScale"+H],25);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||adjust$2(this["cScale"+H],{h:180});for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||adjust$2(this.mainBkg,{h:30,l:-(5+H*5)}),this["surfacePeer"+H]=this["surfacePeer"+H]||adjust$2(this.mainBkg,{h:30,l:-(7+H*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||invert$1(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||invert$1(this.labelTextColor);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=lighten$1(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$2(this.primaryColor,{h:64}),this.fillType3=adjust$2(this.secondaryColor,{h:64}),this.fillType4=adjust$2(this.primaryColor,{h:-64}),this.fillType5=adjust$2(this.secondaryColor,{h:-64}),this.fillType6=adjust$2(this.primaryColor,{h:128}),this.fillType7=adjust$2(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||adjust$2(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||adjust$2(this.primaryColor,{l:-10}),this.pie5=this.pie5||adjust$2(this.secondaryColor,{l:-30}),this.pie6=this.pie6||adjust$2(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||adjust$2(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||adjust$2(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||adjust$2(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||adjust$2(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||adjust$2(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||adjust$2(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$2(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$2(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$2(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$2(this.primaryColor,{h:60}),this.git7=this.git7||adjust$2(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$1(this.git0,25),this.git1=lighten$1(this.git1,25),this.git2=lighten$1(this.git2,25),this.git3=lighten$1(this.git3,25),this.git4=lighten$1(this.git4,25),this.git5=lighten$1(this.git5,25),this.git6=lighten$1(this.git6,25),this.git7=lighten$1(this.git7,25)):(this.git0=darken$1(this.git0,25),this.git1=darken$1(this.git1,25),this.git2=darken$1(this.git2,25),this.git3=darken$1(this.git3,25),this.git4=darken$1(this.git4,25),this.git5=darken$1(this.git5,25),this.git6=darken$1(this.git6,25),this.git7=darken$1(this.git7,25)),this.gitInv0=this.gitInv0||darken$1(invert$1(this.git0),25),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||invert$1(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||invert$1(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(H){if(typeof H!="object"){this.updateColors();return}const U=Object.keys(H);U.forEach(W=>{this[W]=H[W]}),this.updateColors(),U.forEach(W=>{this[W]=H[W]})}}const getThemeVariables$2=C=>{const H=new Theme$2;return H.calculate(C),H};class Theme$1{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=lighten$1("#cde498",10),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.primaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$2(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$2(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$2(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$2(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$2(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$2(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$2(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$2(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$2(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||darken$1(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||darken$1(this.tertiaryColor,40);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=darken$1(this["cScale"+H],10),this["cScalePeer"+H]=this["cScalePeer"+H]||darken$1(this["cScale"+H],25);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||adjust$2(this["cScale"+H],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||adjust$2(this.mainBkg,{h:30,s:-30,l:-(5+H*5)}),this["surfacePeer"+H]=this["surfacePeer"+H]||adjust$2(this.mainBkg,{h:30,s:-30,l:-(8+H*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=darken$1(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$2(this.primaryColor,{h:64}),this.fillType3=adjust$2(this.secondaryColor,{h:64}),this.fillType4=adjust$2(this.primaryColor,{h:-64}),this.fillType5=adjust$2(this.secondaryColor,{h:-64}),this.fillType6=adjust$2(this.primaryColor,{h:128}),this.fillType7=adjust$2(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||adjust$2(this.primaryColor,{l:-30}),this.pie5=this.pie5||adjust$2(this.secondaryColor,{l:-30}),this.pie6=this.pie6||adjust$2(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||adjust$2(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||adjust$2(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||adjust$2(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||adjust$2(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||adjust$2(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||adjust$2(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$2(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$2(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$2(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$2(this.primaryColor,{h:60}),this.git7=this.git7||adjust$2(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$1(this.git0,25),this.git1=lighten$1(this.git1,25),this.git2=lighten$1(this.git2,25),this.git3=lighten$1(this.git3,25),this.git4=lighten$1(this.git4,25),this.git5=lighten$1(this.git5,25),this.git6=lighten$1(this.git6,25),this.git7=lighten$1(this.git7,25)):(this.git0=darken$1(this.git0,25),this.git1=darken$1(this.git1,25),this.git2=darken$1(this.git2,25),this.git3=darken$1(this.git3,25),this.git4=darken$1(this.git4,25),this.git5=darken$1(this.git5,25),this.git6=darken$1(this.git6,25),this.git7=darken$1(this.git7,25)),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(H){if(typeof H!="object"){this.updateColors();return}const U=Object.keys(H);U.forEach(W=>{this[W]=H[W]}),this.updateColors(),U.forEach(W=>{this[W]=H[W]})}}const getThemeVariables$1=C=>{const H=new Theme$1;return H.calculate(C),H};class Theme{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=lighten$1(this.contrast,55),this.background="#ffffff",this.tertiaryColor=adjust$2(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=lighten$1(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||invert$1(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this.darkMode?this["cScalePeer"+H]=this["cScalePeer"+H]||lighten$1(this["cScale"+H],10):this["cScalePeer"+H]=this["cScalePeer"+H]||darken$1(this["cScale"+H],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||adjust$2(this.mainBkg,{l:-(5+H*5)}),this["surfacePeer"+H]=this["surfacePeer"+H]||adjust$2(this.mainBkg,{l:-(8+H*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=lighten$1(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=lighten$1(this.contrast,30),this.sectionBkgColor2=lighten$1(this.contrast,30),this.taskBorderColor=darken$1(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=lighten$1(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=darken$1(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$2(this.primaryColor,{h:64}),this.fillType3=adjust$2(this.secondaryColor,{h:64}),this.fillType4=adjust$2(this.primaryColor,{h:-64}),this.fillType5=adjust$2(this.secondaryColor,{h:-64}),this.fillType6=adjust$2(this.primaryColor,{h:128}),this.fillType7=adjust$2(this.secondaryColor,{h:128});for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["pie"+H]=this["cScale"+H];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=darken$1(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||adjust$2(this.primaryColor,{h:-30}),this.git4=this.pie5||adjust$2(this.primaryColor,{h:-60}),this.git5=this.pie6||adjust$2(this.primaryColor,{h:-90}),this.git6=this.pie7||adjust$2(this.primaryColor,{h:60}),this.git7=this.pie8||adjust$2(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(H){if(typeof H!="object"){this.updateColors();return}const U=Object.keys(H);U.forEach(W=>{this[W]=H[W]}),this.updateColors(),U.forEach(W=>{this[W]=H[W]})}}const getThemeVariables=C=>{const H=new Theme;return H.calculate(C),H},theme={base:{getThemeVariables:getThemeVariables$4},dark:{getThemeVariables:getThemeVariables$3},default:{getThemeVariables:getThemeVariables$2},forest:{getThemeVariables:getThemeVariables$1},neutral:{getThemeVariables}},config$1={theme:"default",themeVariables:theme.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};config$1.class&&(config$1.class.arrowMarkerAbsolute=config$1.arrowMarkerAbsolute);config$1.gitGraph&&(config$1.gitGraph.arrowMarkerAbsolute=config$1.arrowMarkerAbsolute);const keyify=(C,H="")=>Object.keys(C).reduce((U,W)=>Array.isArray(C[W])?U:typeof C[W]=="object"&&C[W]!==null?[...U,H+W,...keyify(C[W],"")]:[...U,H+W],[]),configKeys=keyify(config$1,""),config$2=config$1;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function isNothing(C){return typeof C>"u"||C===null}function isObject$9(C){return typeof C=="object"&&C!==null}function toArray$1(C){return Array.isArray(C)?C:isNothing(C)?[]:[C]}function extend$1(C,H){var U,W,G,X;if(H)for(X=Object.keys(H),U=0,W=X.length;U<W;U+=1)G=X[U],C[G]=H[G];return C}function repeat(C,H){var U="",W;for(W=0;W<H;W+=1)U+=C;return U}function isNegativeZero(C){return C===0&&Number.NEGATIVE_INFINITY===1/C}var isNothing_1=isNothing,isObject_1$1=isObject$9,toArray_1=toArray$1,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$1,common={isNothing:isNothing_1,isObject:isObject_1$1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(C,H){var U="",W=C.reason||"(unknown reason)";return C.mark?(C.mark.name&&(U+='in "'+C.mark.name+'" '),U+="("+(C.mark.line+1)+":"+(C.mark.column+1)+")",!H&&C.mark.snippet&&(U+=`
|
||
|
||
`+C.mark.snippet),W+" "+U):W}function YAMLException$1(C,H){Error.call(this),this.name="YAMLException",this.reason=C,this.mark=H,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function(H){return this.name+": "+formatError(this,H)};var exception=YAMLException$1;function getLine(C,H,U,W,G){var X="",Z="",Q=Math.floor(G/2)-1;return W-H>Q&&(X=" ... ",H=W-Q+X.length),U-W>Q&&(Z=" ...",U=W+Q-Z.length),{str:X+C.slice(H,U).replace(/\t/g,"\u2192")+Z,pos:W-H+X.length}}function padStart(C,H){return common.repeat(" ",H-C.length)+C}function makeSnippet(C,H){if(H=Object.create(H||null),!C.buffer)return null;H.maxLength||(H.maxLength=79),typeof H.indent!="number"&&(H.indent=1),typeof H.linesBefore!="number"&&(H.linesBefore=3),typeof H.linesAfter!="number"&&(H.linesAfter=2);for(var U=/\r?\n|\r|\0/g,W=[0],G=[],X,Z=-1;X=U.exec(C.buffer);)G.push(X.index),W.push(X.index+X[0].length),C.position<=X.index&&Z<0&&(Z=W.length-2);Z<0&&(Z=W.length-1);var Q="",ee,ie,te=Math.min(C.line+H.linesAfter,G.length).toString().length,ne=H.maxLength-(H.indent+te+3);for(ee=1;ee<=H.linesBefore&&!(Z-ee<0);ee++)ie=getLine(C.buffer,W[Z-ee],G[Z-ee],C.position-(W[Z]-W[Z-ee]),ne),Q=common.repeat(" ",H.indent)+padStart((C.line-ee+1).toString(),te)+" | "+ie.str+`
|
||
`+Q;for(ie=getLine(C.buffer,W[Z],G[Z],C.position,ne),Q+=common.repeat(" ",H.indent)+padStart((C.line+1).toString(),te)+" | "+ie.str+`
|
||
`,Q+=common.repeat("-",H.indent+te+3+ie.pos)+`^
|
||
`,ee=1;ee<=H.linesAfter&&!(Z+ee>=G.length);ee++)ie=getLine(C.buffer,W[Z+ee],G[Z+ee],C.position-(W[Z]-W[Z+ee]),ne),Q+=common.repeat(" ",H.indent)+padStart((C.line+ee+1).toString(),te)+" | "+ie.str+`
|
||
`;return Q.replace(/\n$/,"")}var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(C){var H={};return C!==null&&Object.keys(C).forEach(function(U){C[U].forEach(function(W){H[String(W)]=U})}),H}function Type$1(C,H){if(H=H||{},Object.keys(H).forEach(function(U){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(U)===-1)throw new exception('Unknown option "'+U+'" is met in definition of "'+C+'" YAML type.')}),this.options=H,this.tag=C,this.kind=H.kind||null,this.resolve=H.resolve||function(){return!0},this.construct=H.construct||function(U){return U},this.instanceOf=H.instanceOf||null,this.predicate=H.predicate||null,this.represent=H.represent||null,this.representName=H.representName||null,this.defaultStyle=H.defaultStyle||null,this.multi=H.multi||!1,this.styleAliases=compileStyleAliases(H.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+C+'" YAML type.')}var type=Type$1;function compileList(C,H){var U=[];return C[H].forEach(function(W){var G=U.length;U.forEach(function(X,Z){X.tag===W.tag&&X.kind===W.kind&&X.multi===W.multi&&(G=Z)}),U[G]=W}),U}function compileMap(){var C={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},H,U;function W(G){G.multi?(C.multi[G.kind].push(G),C.multi.fallback.push(G)):C[G.kind][G.tag]=C.fallback[G.tag]=G}for(H=0,U=arguments.length;H<U;H+=1)arguments[H].forEach(W);return C}function Schema$1(C){return this.extend(C)}Schema$1.prototype.extend=function(H){var U=[],W=[];if(H instanceof type)W.push(H);else if(Array.isArray(H))W=W.concat(H);else if(H&&(Array.isArray(H.implicit)||Array.isArray(H.explicit)))H.implicit&&(U=U.concat(H.implicit)),H.explicit&&(W=W.concat(H.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");U.forEach(function(X){if(!(X instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(X.loadKind&&X.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(X.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),W.forEach(function(X){if(!(X instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var G=Object.create(Schema$1.prototype);return G.implicit=(this.implicit||[]).concat(U),G.explicit=(this.explicit||[]).concat(W),G.compiledImplicit=compileList(G,"implicit"),G.compiledExplicit=compileList(G,"explicit"),G.compiledTypeMap=compileMap(G.compiledImplicit,G.compiledExplicit),G};var schema=Schema$1,str=new type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(C){return C!==null?C:""}}),seq$1=new type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(C){return C!==null?C:[]}}),map$2=new type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(C){return C!==null?C:{}}}),failsafe=new schema({explicit:[str,seq$1,map$2]});function resolveYamlNull(C){if(C===null)return!0;var H=C.length;return H===1&&C==="~"||H===4&&(C==="null"||C==="Null"||C==="NULL")}function constructYamlNull(){return null}function isNull$1(C){return C===null}var _null$1=new type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull$1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(C){if(C===null)return!1;var H=C.length;return H===4&&(C==="true"||C==="True"||C==="TRUE")||H===5&&(C==="false"||C==="False"||C==="FALSE")}function constructYamlBoolean(C){return C==="true"||C==="True"||C==="TRUE"}function isBoolean(C){return Object.prototype.toString.call(C)==="[object Boolean]"}var bool=new type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(C){return C?"true":"false"},uppercase:function(C){return C?"TRUE":"FALSE"},camelcase:function(C){return C?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(C){return 48<=C&&C<=57||65<=C&&C<=70||97<=C&&C<=102}function isOctCode(C){return 48<=C&&C<=55}function isDecCode(C){return 48<=C&&C<=57}function resolveYamlInteger(C){if(C===null)return!1;var H=C.length,U=0,W=!1,G;if(!H)return!1;if(G=C[U],(G==="-"||G==="+")&&(G=C[++U]),G==="0"){if(U+1===H)return!0;if(G=C[++U],G==="b"){for(U++;U<H;U++)if(G=C[U],G!=="_"){if(G!=="0"&&G!=="1")return!1;W=!0}return W&&G!=="_"}if(G==="x"){for(U++;U<H;U++)if(G=C[U],G!=="_"){if(!isHexCode(C.charCodeAt(U)))return!1;W=!0}return W&&G!=="_"}if(G==="o"){for(U++;U<H;U++)if(G=C[U],G!=="_"){if(!isOctCode(C.charCodeAt(U)))return!1;W=!0}return W&&G!=="_"}}if(G==="_")return!1;for(;U<H;U++)if(G=C[U],G!=="_"){if(!isDecCode(C.charCodeAt(U)))return!1;W=!0}return!(!W||G==="_")}function constructYamlInteger(C){var H=C,U=1,W;if(H.indexOf("_")!==-1&&(H=H.replace(/_/g,"")),W=H[0],(W==="-"||W==="+")&&(W==="-"&&(U=-1),H=H.slice(1),W=H[0]),H==="0")return 0;if(W==="0"){if(H[1]==="b")return U*parseInt(H.slice(2),2);if(H[1]==="x")return U*parseInt(H.slice(2),16);if(H[1]==="o")return U*parseInt(H.slice(2),8)}return U*parseInt(H,10)}function isInteger(C){return Object.prototype.toString.call(C)==="[object Number]"&&C%1===0&&!common.isNegativeZero(C)}var int=new type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(C){return C>=0?"0b"+C.toString(2):"-0b"+C.toString(2).slice(1)},octal:function(C){return C>=0?"0o"+C.toString(8):"-0o"+C.toString(8).slice(1)},decimal:function(C){return C.toString(10)},hexadecimal:function(C){return C>=0?"0x"+C.toString(16).toUpperCase():"-0x"+C.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(C){return!(C===null||!YAML_FLOAT_PATTERN.test(C)||C[C.length-1]==="_")}function constructYamlFloat(C){var H,U;return H=C.replace(/_/g,"").toLowerCase(),U=H[0]==="-"?-1:1,"+-".indexOf(H[0])>=0&&(H=H.slice(1)),H===".inf"?U===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:H===".nan"?NaN:U*parseFloat(H,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(C,H){var U;if(isNaN(C))switch(H){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===C)switch(H){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===C)switch(H){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(C))return"-0.0";return U=C.toString(10),SCIENTIFIC_WITHOUT_DOT.test(U)?U.replace("e",".e"):U}function isFloat(C){return Object.prototype.toString.call(C)==="[object Number]"&&(C%1!==0||common.isNegativeZero(C))}var float=new type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),json=failsafe.extend({implicit:[_null$1,bool,int,float]}),core=json,YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(C){return C===null?!1:YAML_DATE_REGEXP.exec(C)!==null||YAML_TIMESTAMP_REGEXP.exec(C)!==null}function constructYamlTimestamp(C){var H,U,W,G,X,Z,Q,ee=0,ie=null,te,ne,ae;if(H=YAML_DATE_REGEXP.exec(C),H===null&&(H=YAML_TIMESTAMP_REGEXP.exec(C)),H===null)throw new Error("Date resolve error");if(U=+H[1],W=+H[2]-1,G=+H[3],!H[4])return new Date(Date.UTC(U,W,G));if(X=+H[4],Z=+H[5],Q=+H[6],H[7]){for(ee=H[7].slice(0,3);ee.length<3;)ee+="0";ee=+ee}return H[9]&&(te=+H[10],ne=+(H[11]||0),ie=(te*60+ne)*6e4,H[9]==="-"&&(ie=-ie)),ae=new Date(Date.UTC(U,W,G,X,Z,Q,ee)),ie&&ae.setTime(ae.getTime()-ie),ae}function representYamlTimestamp(C){return C.toISOString()}var timestamp=new type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(C){return C==="<<"||C===null}var merge$1=new type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function resolveYamlBinary(C){if(C===null)return!1;var H,U,W=0,G=C.length,X=BASE64_MAP;for(U=0;U<G;U++)if(H=X.indexOf(C.charAt(U)),!(H>64)){if(H<0)return!1;W+=6}return W%8===0}function constructYamlBinary(C){var H,U,W=C.replace(/[\r\n=]/g,""),G=W.length,X=BASE64_MAP,Z=0,Q=[];for(H=0;H<G;H++)H%4===0&&H&&(Q.push(Z>>16&255),Q.push(Z>>8&255),Q.push(Z&255)),Z=Z<<6|X.indexOf(W.charAt(H));return U=G%4*6,U===0?(Q.push(Z>>16&255),Q.push(Z>>8&255),Q.push(Z&255)):U===18?(Q.push(Z>>10&255),Q.push(Z>>2&255)):U===12&&Q.push(Z>>4&255),new Uint8Array(Q)}function representYamlBinary(C){var H="",U=0,W,G,X=C.length,Z=BASE64_MAP;for(W=0;W<X;W++)W%3===0&&W&&(H+=Z[U>>18&63],H+=Z[U>>12&63],H+=Z[U>>6&63],H+=Z[U&63]),U=(U<<8)+C[W];return G=X%3,G===0?(H+=Z[U>>18&63],H+=Z[U>>12&63],H+=Z[U>>6&63],H+=Z[U&63]):G===2?(H+=Z[U>>10&63],H+=Z[U>>4&63],H+=Z[U<<2&63],H+=Z[64]):G===1&&(H+=Z[U>>2&63],H+=Z[U<<4&63],H+=Z[64],H+=Z[64]),H}function isBinary(C){return Object.prototype.toString.call(C)==="[object Uint8Array]"}var binary=new type("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(C){if(C===null)return!0;var H=[],U,W,G,X,Z,Q=C;for(U=0,W=Q.length;U<W;U+=1){if(G=Q[U],Z=!1,_toString$2.call(G)!=="[object Object]")return!1;for(X in G)if(_hasOwnProperty$3.call(G,X))if(!Z)Z=!0;else return!1;if(!Z)return!1;if(H.indexOf(X)===-1)H.push(X);else return!1}return!0}function constructYamlOmap(C){return C!==null?C:[]}var omap=new type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(C){if(C===null)return!0;var H,U,W,G,X,Z=C;for(X=new Array(Z.length),H=0,U=Z.length;H<U;H+=1){if(W=Z[H],_toString$1.call(W)!=="[object Object]"||(G=Object.keys(W),G.length!==1))return!1;X[H]=[G[0],W[G[0]]]}return!0}function constructYamlPairs(C){if(C===null)return[];var H,U,W,G,X,Z=C;for(X=new Array(Z.length),H=0,U=Z.length;H<U;H+=1)W=Z[H],G=Object.keys(W),X[H]=[G[0],W[G[0]]];return X}var pairs=new type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(C){if(C===null)return!0;var H,U=C;for(H in U)if(_hasOwnProperty$2.call(U,H)&&U[H]!==null)return!1;return!0}function constructYamlSet(C){return C!==null?C:{}}var set$1=new type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core.extend({implicit:[timestamp,merge$1],explicit:[binary,omap,pairs,set$1]}),_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(C){return Object.prototype.toString.call(C)}function is_EOL(C){return C===10||C===13}function is_WHITE_SPACE(C){return C===9||C===32}function is_WS_OR_EOL(C){return C===9||C===32||C===10||C===13}function is_FLOW_INDICATOR(C){return C===44||C===91||C===93||C===123||C===125}function fromHexCode(C){var H;return 48<=C&&C<=57?C-48:(H=C|32,97<=H&&H<=102?H-97+10:-1)}function escapedHexLen(C){return C===120?2:C===117?4:C===85?8:0}function fromDecimalCode(C){return 48<=C&&C<=57?C-48:-1}function simpleEscapeSequence(C){return C===48?"\0":C===97?"\x07":C===98?"\b":C===116||C===9?" ":C===110?`
|
||
`:C===118?"\v":C===102?"\f":C===114?"\r":C===101?"\x1B":C===32?" ":C===34?'"':C===47?"/":C===92?"\\":C===78?"\x85":C===95?"\xA0":C===76?"\u2028":C===80?"\u2029":""}function charFromCodepoint(C){return C<=65535?String.fromCharCode(C):String.fromCharCode((C-65536>>10)+55296,(C-65536&1023)+56320)}var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(var i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(C,H){this.input=C,this.filename=H.filename||null,this.schema=H.schema||_default,this.onWarning=H.onWarning||null,this.legacy=H.legacy||!1,this.json=H.json||!1,this.listener=H.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=C.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function generateError(C,H){var U={name:C.filename,buffer:C.input.slice(0,-1),position:C.position,line:C.line,column:C.position-C.lineStart};return U.snippet=snippet(U),new exception(H,U)}function throwError(C,H){throw generateError(C,H)}function throwWarning(C,H){C.onWarning&&C.onWarning.call(null,generateError(C,H))}var directiveHandlers={YAML:function(H,U,W){var G,X,Z;H.version!==null&&throwError(H,"duplication of %YAML directive"),W.length!==1&&throwError(H,"YAML directive accepts exactly one argument"),G=/^([0-9]+)\.([0-9]+)$/.exec(W[0]),G===null&&throwError(H,"ill-formed argument of the YAML directive"),X=parseInt(G[1],10),Z=parseInt(G[2],10),X!==1&&throwError(H,"unacceptable YAML version of the document"),H.version=W[0],H.checkLineBreaks=Z<2,Z!==1&&Z!==2&&throwWarning(H,"unsupported YAML version of the document")},TAG:function(H,U,W){var G,X;W.length!==2&&throwError(H,"TAG directive accepts exactly two arguments"),G=W[0],X=W[1],PATTERN_TAG_HANDLE.test(G)||throwError(H,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(H.tagMap,G)&&throwError(H,'there is a previously declared suffix for "'+G+'" tag handle'),PATTERN_TAG_URI.test(X)||throwError(H,"ill-formed tag prefix (second argument) of the TAG directive");try{X=decodeURIComponent(X)}catch{throwError(H,"tag prefix is malformed: "+X)}H.tagMap[G]=X}};function captureSegment(C,H,U,W){var G,X,Z,Q;if(H<U){if(Q=C.input.slice(H,U),W)for(G=0,X=Q.length;G<X;G+=1)Z=Q.charCodeAt(G),Z===9||32<=Z&&Z<=1114111||throwError(C,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(Q)&&throwError(C,"the stream contains non-printable characters");C.result+=Q}}function mergeMappings(C,H,U,W){var G,X,Z,Q;for(common.isObject(U)||throwError(C,"cannot merge mappings; the provided source object is unacceptable"),G=Object.keys(U),Z=0,Q=G.length;Z<Q;Z+=1)X=G[Z],_hasOwnProperty$1.call(H,X)||(H[X]=U[X],W[X]=!0)}function storeMappingPair(C,H,U,W,G,X,Z,Q,ee){var ie,te;if(Array.isArray(G))for(G=Array.prototype.slice.call(G),ie=0,te=G.length;ie<te;ie+=1)Array.isArray(G[ie])&&throwError(C,"nested arrays are not supported inside keys"),typeof G=="object"&&_class(G[ie])==="[object Object]"&&(G[ie]="[object Object]");if(typeof G=="object"&&_class(G)==="[object Object]"&&(G="[object Object]"),G=String(G),H===null&&(H={}),W==="tag:yaml.org,2002:merge")if(Array.isArray(X))for(ie=0,te=X.length;ie<te;ie+=1)mergeMappings(C,H,X[ie],U);else mergeMappings(C,H,X,U);else!C.json&&!_hasOwnProperty$1.call(U,G)&&_hasOwnProperty$1.call(H,G)&&(C.line=Z||C.line,C.lineStart=Q||C.lineStart,C.position=ee||C.position,throwError(C,"duplicated mapping key")),G==="__proto__"?Object.defineProperty(H,G,{configurable:!0,enumerable:!0,writable:!0,value:X}):H[G]=X,delete U[G];return H}function readLineBreak(C){var H;H=C.input.charCodeAt(C.position),H===10?C.position++:H===13?(C.position++,C.input.charCodeAt(C.position)===10&&C.position++):throwError(C,"a line break is expected"),C.line+=1,C.lineStart=C.position,C.firstTabInLine=-1}function skipSeparationSpace(C,H,U){for(var W=0,G=C.input.charCodeAt(C.position);G!==0;){for(;is_WHITE_SPACE(G);)G===9&&C.firstTabInLine===-1&&(C.firstTabInLine=C.position),G=C.input.charCodeAt(++C.position);if(H&&G===35)do G=C.input.charCodeAt(++C.position);while(G!==10&&G!==13&&G!==0);if(is_EOL(G))for(readLineBreak(C),G=C.input.charCodeAt(C.position),W++,C.lineIndent=0;G===32;)C.lineIndent++,G=C.input.charCodeAt(++C.position);else break}return U!==-1&&W!==0&&C.lineIndent<U&&throwWarning(C,"deficient indentation"),W}function testDocumentSeparator(C){var H=C.position,U;return U=C.input.charCodeAt(H),!!((U===45||U===46)&&U===C.input.charCodeAt(H+1)&&U===C.input.charCodeAt(H+2)&&(H+=3,U=C.input.charCodeAt(H),U===0||is_WS_OR_EOL(U)))}function writeFoldedLines(C,H){H===1?C.result+=" ":H>1&&(C.result+=common.repeat(`
|
||
`,H-1))}function readPlainScalar(C,H,U){var W,G,X,Z,Q,ee,ie,te,ne=C.kind,ae=C.result,oe;if(oe=C.input.charCodeAt(C.position),is_WS_OR_EOL(oe)||is_FLOW_INDICATOR(oe)||oe===35||oe===38||oe===42||oe===33||oe===124||oe===62||oe===39||oe===34||oe===37||oe===64||oe===96||(oe===63||oe===45)&&(G=C.input.charCodeAt(C.position+1),is_WS_OR_EOL(G)||U&&is_FLOW_INDICATOR(G)))return!1;for(C.kind="scalar",C.result="",X=Z=C.position,Q=!1;oe!==0;){if(oe===58){if(G=C.input.charCodeAt(C.position+1),is_WS_OR_EOL(G)||U&&is_FLOW_INDICATOR(G))break}else if(oe===35){if(W=C.input.charCodeAt(C.position-1),is_WS_OR_EOL(W))break}else{if(C.position===C.lineStart&&testDocumentSeparator(C)||U&&is_FLOW_INDICATOR(oe))break;if(is_EOL(oe))if(ee=C.line,ie=C.lineStart,te=C.lineIndent,skipSeparationSpace(C,!1,-1),C.lineIndent>=H){Q=!0,oe=C.input.charCodeAt(C.position);continue}else{C.position=Z,C.line=ee,C.lineStart=ie,C.lineIndent=te;break}}Q&&(captureSegment(C,X,Z,!1),writeFoldedLines(C,C.line-ee),X=Z=C.position,Q=!1),is_WHITE_SPACE(oe)||(Z=C.position+1),oe=C.input.charCodeAt(++C.position)}return captureSegment(C,X,Z,!1),C.result?!0:(C.kind=ne,C.result=ae,!1)}function readSingleQuotedScalar(C,H){var U,W,G;if(U=C.input.charCodeAt(C.position),U!==39)return!1;for(C.kind="scalar",C.result="",C.position++,W=G=C.position;(U=C.input.charCodeAt(C.position))!==0;)if(U===39)if(captureSegment(C,W,C.position,!0),U=C.input.charCodeAt(++C.position),U===39)W=C.position,C.position++,G=C.position;else return!0;else is_EOL(U)?(captureSegment(C,W,G,!0),writeFoldedLines(C,skipSeparationSpace(C,!1,H)),W=G=C.position):C.position===C.lineStart&&testDocumentSeparator(C)?throwError(C,"unexpected end of the document within a single quoted scalar"):(C.position++,G=C.position);throwError(C,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(C,H){var U,W,G,X,Z,Q;if(Q=C.input.charCodeAt(C.position),Q!==34)return!1;for(C.kind="scalar",C.result="",C.position++,U=W=C.position;(Q=C.input.charCodeAt(C.position))!==0;){if(Q===34)return captureSegment(C,U,C.position,!0),C.position++,!0;if(Q===92){if(captureSegment(C,U,C.position,!0),Q=C.input.charCodeAt(++C.position),is_EOL(Q))skipSeparationSpace(C,!1,H);else if(Q<256&&simpleEscapeCheck[Q])C.result+=simpleEscapeMap[Q],C.position++;else if((Z=escapedHexLen(Q))>0){for(G=Z,X=0;G>0;G--)Q=C.input.charCodeAt(++C.position),(Z=fromHexCode(Q))>=0?X=(X<<4)+Z:throwError(C,"expected hexadecimal character");C.result+=charFromCodepoint(X),C.position++}else throwError(C,"unknown escape sequence");U=W=C.position}else is_EOL(Q)?(captureSegment(C,U,W,!0),writeFoldedLines(C,skipSeparationSpace(C,!1,H)),U=W=C.position):C.position===C.lineStart&&testDocumentSeparator(C)?throwError(C,"unexpected end of the document within a double quoted scalar"):(C.position++,W=C.position)}throwError(C,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(C,H){var U=!0,W,G,X,Z=C.tag,Q,ee=C.anchor,ie,te,ne,ae,oe,se=Object.create(null),le,ce,ue,de;if(de=C.input.charCodeAt(C.position),de===91)te=93,oe=!1,Q=[];else if(de===123)te=125,oe=!0,Q={};else return!1;for(C.anchor!==null&&(C.anchorMap[C.anchor]=Q),de=C.input.charCodeAt(++C.position);de!==0;){if(skipSeparationSpace(C,!0,H),de=C.input.charCodeAt(C.position),de===te)return C.position++,C.tag=Z,C.anchor=ee,C.kind=oe?"mapping":"sequence",C.result=Q,!0;U?de===44&&throwError(C,"expected the node content, but found ','"):throwError(C,"missed comma between flow collection entries"),ce=le=ue=null,ne=ae=!1,de===63&&(ie=C.input.charCodeAt(C.position+1),is_WS_OR_EOL(ie)&&(ne=ae=!0,C.position++,skipSeparationSpace(C,!0,H))),W=C.line,G=C.lineStart,X=C.position,composeNode(C,H,CONTEXT_FLOW_IN,!1,!0),ce=C.tag,le=C.result,skipSeparationSpace(C,!0,H),de=C.input.charCodeAt(C.position),(ae||C.line===W)&&de===58&&(ne=!0,de=C.input.charCodeAt(++C.position),skipSeparationSpace(C,!0,H),composeNode(C,H,CONTEXT_FLOW_IN,!1,!0),ue=C.result),oe?storeMappingPair(C,Q,se,ce,le,ue,W,G,X):ne?Q.push(storeMappingPair(C,null,se,ce,le,ue,W,G,X)):Q.push(le),skipSeparationSpace(C,!0,H),de=C.input.charCodeAt(C.position),de===44?(U=!0,de=C.input.charCodeAt(++C.position)):U=!1}throwError(C,"unexpected end of the stream within a flow collection")}function readBlockScalar(C,H){var U,W,G=CHOMPING_CLIP,X=!1,Z=!1,Q=H,ee=0,ie=!1,te,ne;if(ne=C.input.charCodeAt(C.position),ne===124)W=!1;else if(ne===62)W=!0;else return!1;for(C.kind="scalar",C.result="";ne!==0;)if(ne=C.input.charCodeAt(++C.position),ne===43||ne===45)CHOMPING_CLIP===G?G=ne===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(C,"repeat of a chomping mode identifier");else if((te=fromDecimalCode(ne))>=0)te===0?throwError(C,"bad explicit indentation width of a block scalar; it cannot be less than one"):Z?throwError(C,"repeat of an indentation width identifier"):(Q=H+te-1,Z=!0);else break;if(is_WHITE_SPACE(ne)){do ne=C.input.charCodeAt(++C.position);while(is_WHITE_SPACE(ne));if(ne===35)do ne=C.input.charCodeAt(++C.position);while(!is_EOL(ne)&&ne!==0)}for(;ne!==0;){for(readLineBreak(C),C.lineIndent=0,ne=C.input.charCodeAt(C.position);(!Z||C.lineIndent<Q)&&ne===32;)C.lineIndent++,ne=C.input.charCodeAt(++C.position);if(!Z&&C.lineIndent>Q&&(Q=C.lineIndent),is_EOL(ne)){ee++;continue}if(C.lineIndent<Q){G===CHOMPING_KEEP?C.result+=common.repeat(`
|
||
`,X?1+ee:ee):G===CHOMPING_CLIP&&X&&(C.result+=`
|
||
`);break}for(W?is_WHITE_SPACE(ne)?(ie=!0,C.result+=common.repeat(`
|
||
`,X?1+ee:ee)):ie?(ie=!1,C.result+=common.repeat(`
|
||
`,ee+1)):ee===0?X&&(C.result+=" "):C.result+=common.repeat(`
|
||
`,ee):C.result+=common.repeat(`
|
||
`,X?1+ee:ee),X=!0,Z=!0,ee=0,U=C.position;!is_EOL(ne)&&ne!==0;)ne=C.input.charCodeAt(++C.position);captureSegment(C,U,C.position,!1)}return!0}function readBlockSequence(C,H){var U,W=C.tag,G=C.anchor,X=[],Z,Q=!1,ee;if(C.firstTabInLine!==-1)return!1;for(C.anchor!==null&&(C.anchorMap[C.anchor]=X),ee=C.input.charCodeAt(C.position);ee!==0&&(C.firstTabInLine!==-1&&(C.position=C.firstTabInLine,throwError(C,"tab characters must not be used in indentation")),!(ee!==45||(Z=C.input.charCodeAt(C.position+1),!is_WS_OR_EOL(Z))));){if(Q=!0,C.position++,skipSeparationSpace(C,!0,-1)&&C.lineIndent<=H){X.push(null),ee=C.input.charCodeAt(C.position);continue}if(U=C.line,composeNode(C,H,CONTEXT_BLOCK_IN,!1,!0),X.push(C.result),skipSeparationSpace(C,!0,-1),ee=C.input.charCodeAt(C.position),(C.line===U||C.lineIndent>H)&&ee!==0)throwError(C,"bad indentation of a sequence entry");else if(C.lineIndent<H)break}return Q?(C.tag=W,C.anchor=G,C.kind="sequence",C.result=X,!0):!1}function readBlockMapping(C,H,U){var W,G,X,Z,Q,ee,ie=C.tag,te=C.anchor,ne={},ae=Object.create(null),oe=null,se=null,le=null,ce=!1,ue=!1,de;if(C.firstTabInLine!==-1)return!1;for(C.anchor!==null&&(C.anchorMap[C.anchor]=ne),de=C.input.charCodeAt(C.position);de!==0;){if(!ce&&C.firstTabInLine!==-1&&(C.position=C.firstTabInLine,throwError(C,"tab characters must not be used in indentation")),W=C.input.charCodeAt(C.position+1),X=C.line,(de===63||de===58)&&is_WS_OR_EOL(W))de===63?(ce&&(storeMappingPair(C,ne,ae,oe,se,null,Z,Q,ee),oe=se=le=null),ue=!0,ce=!0,G=!0):ce?(ce=!1,G=!0):throwError(C,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),C.position+=1,de=W;else{if(Z=C.line,Q=C.lineStart,ee=C.position,!composeNode(C,U,CONTEXT_FLOW_OUT,!1,!0))break;if(C.line===X){for(de=C.input.charCodeAt(C.position);is_WHITE_SPACE(de);)de=C.input.charCodeAt(++C.position);if(de===58)de=C.input.charCodeAt(++C.position),is_WS_OR_EOL(de)||throwError(C,"a whitespace character is expected after the key-value separator within a block mapping"),ce&&(storeMappingPair(C,ne,ae,oe,se,null,Z,Q,ee),oe=se=le=null),ue=!0,ce=!1,G=!1,oe=C.tag,se=C.result;else if(ue)throwError(C,"can not read an implicit mapping pair; a colon is missed");else return C.tag=ie,C.anchor=te,!0}else if(ue)throwError(C,"can not read a block mapping entry; a multiline key may not be an implicit key");else return C.tag=ie,C.anchor=te,!0}if((C.line===X||C.lineIndent>H)&&(ce&&(Z=C.line,Q=C.lineStart,ee=C.position),composeNode(C,H,CONTEXT_BLOCK_OUT,!0,G)&&(ce?se=C.result:le=C.result),ce||(storeMappingPair(C,ne,ae,oe,se,le,Z,Q,ee),oe=se=le=null),skipSeparationSpace(C,!0,-1),de=C.input.charCodeAt(C.position)),(C.line===X||C.lineIndent>H)&&de!==0)throwError(C,"bad indentation of a mapping entry");else if(C.lineIndent<H)break}return ce&&storeMappingPair(C,ne,ae,oe,se,null,Z,Q,ee),ue&&(C.tag=ie,C.anchor=te,C.kind="mapping",C.result=ne),ue}function readTagProperty(C){var H,U=!1,W=!1,G,X,Z;if(Z=C.input.charCodeAt(C.position),Z!==33)return!1;if(C.tag!==null&&throwError(C,"duplication of a tag property"),Z=C.input.charCodeAt(++C.position),Z===60?(U=!0,Z=C.input.charCodeAt(++C.position)):Z===33?(W=!0,G="!!",Z=C.input.charCodeAt(++C.position)):G="!",H=C.position,U){do Z=C.input.charCodeAt(++C.position);while(Z!==0&&Z!==62);C.position<C.length?(X=C.input.slice(H,C.position),Z=C.input.charCodeAt(++C.position)):throwError(C,"unexpected end of the stream within a verbatim tag")}else{for(;Z!==0&&!is_WS_OR_EOL(Z);)Z===33&&(W?throwError(C,"tag suffix cannot contain exclamation marks"):(G=C.input.slice(H-1,C.position+1),PATTERN_TAG_HANDLE.test(G)||throwError(C,"named tag handle cannot contain such characters"),W=!0,H=C.position+1)),Z=C.input.charCodeAt(++C.position);X=C.input.slice(H,C.position),PATTERN_FLOW_INDICATORS.test(X)&&throwError(C,"tag suffix cannot contain flow indicator characters")}X&&!PATTERN_TAG_URI.test(X)&&throwError(C,"tag name cannot contain such characters: "+X);try{X=decodeURIComponent(X)}catch{throwError(C,"tag name is malformed: "+X)}return U?C.tag=X:_hasOwnProperty$1.call(C.tagMap,G)?C.tag=C.tagMap[G]+X:G==="!"?C.tag="!"+X:G==="!!"?C.tag="tag:yaml.org,2002:"+X:throwError(C,'undeclared tag handle "'+G+'"'),!0}function readAnchorProperty(C){var H,U;if(U=C.input.charCodeAt(C.position),U!==38)return!1;for(C.anchor!==null&&throwError(C,"duplication of an anchor property"),U=C.input.charCodeAt(++C.position),H=C.position;U!==0&&!is_WS_OR_EOL(U)&&!is_FLOW_INDICATOR(U);)U=C.input.charCodeAt(++C.position);return C.position===H&&throwError(C,"name of an anchor node must contain at least one character"),C.anchor=C.input.slice(H,C.position),!0}function readAlias(C){var H,U,W;if(W=C.input.charCodeAt(C.position),W!==42)return!1;for(W=C.input.charCodeAt(++C.position),H=C.position;W!==0&&!is_WS_OR_EOL(W)&&!is_FLOW_INDICATOR(W);)W=C.input.charCodeAt(++C.position);return C.position===H&&throwError(C,"name of an alias node must contain at least one character"),U=C.input.slice(H,C.position),_hasOwnProperty$1.call(C.anchorMap,U)||throwError(C,'unidentified alias "'+U+'"'),C.result=C.anchorMap[U],skipSeparationSpace(C,!0,-1),!0}function composeNode(C,H,U,W,G){var X,Z,Q,ee=1,ie=!1,te=!1,ne,ae,oe,se,le,ce;if(C.listener!==null&&C.listener("open",C),C.tag=null,C.anchor=null,C.kind=null,C.result=null,X=Z=Q=CONTEXT_BLOCK_OUT===U||CONTEXT_BLOCK_IN===U,W&&skipSeparationSpace(C,!0,-1)&&(ie=!0,C.lineIndent>H?ee=1:C.lineIndent===H?ee=0:C.lineIndent<H&&(ee=-1)),ee===1)for(;readTagProperty(C)||readAnchorProperty(C);)skipSeparationSpace(C,!0,-1)?(ie=!0,Q=X,C.lineIndent>H?ee=1:C.lineIndent===H?ee=0:C.lineIndent<H&&(ee=-1)):Q=!1;if(Q&&(Q=ie||G),(ee===1||CONTEXT_BLOCK_OUT===U)&&(CONTEXT_FLOW_IN===U||CONTEXT_FLOW_OUT===U?le=H:le=H+1,ce=C.position-C.lineStart,ee===1?Q&&(readBlockSequence(C,ce)||readBlockMapping(C,ce,le))||readFlowCollection(C,le)?te=!0:(Z&&readBlockScalar(C,le)||readSingleQuotedScalar(C,le)||readDoubleQuotedScalar(C,le)?te=!0:readAlias(C)?(te=!0,(C.tag!==null||C.anchor!==null)&&throwError(C,"alias node should not have any properties")):readPlainScalar(C,le,CONTEXT_FLOW_IN===U)&&(te=!0,C.tag===null&&(C.tag="?")),C.anchor!==null&&(C.anchorMap[C.anchor]=C.result)):ee===0&&(te=Q&&readBlockSequence(C,ce))),C.tag===null)C.anchor!==null&&(C.anchorMap[C.anchor]=C.result);else if(C.tag==="?"){for(C.result!==null&&C.kind!=="scalar"&&throwError(C,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+C.kind+'"'),ne=0,ae=C.implicitTypes.length;ne<ae;ne+=1)if(se=C.implicitTypes[ne],se.resolve(C.result)){C.result=se.construct(C.result),C.tag=se.tag,C.anchor!==null&&(C.anchorMap[C.anchor]=C.result);break}}else if(C.tag!=="!"){if(_hasOwnProperty$1.call(C.typeMap[C.kind||"fallback"],C.tag))se=C.typeMap[C.kind||"fallback"][C.tag];else for(se=null,oe=C.typeMap.multi[C.kind||"fallback"],ne=0,ae=oe.length;ne<ae;ne+=1)if(C.tag.slice(0,oe[ne].tag.length)===oe[ne].tag){se=oe[ne];break}se||throwError(C,"unknown tag !<"+C.tag+">"),C.result!==null&&se.kind!==C.kind&&throwError(C,"unacceptable node kind for !<"+C.tag+'> tag; it should be "'+se.kind+'", not "'+C.kind+'"'),se.resolve(C.result,C.tag)?(C.result=se.construct(C.result,C.tag),C.anchor!==null&&(C.anchorMap[C.anchor]=C.result)):throwError(C,"cannot resolve a node with !<"+C.tag+"> explicit tag")}return C.listener!==null&&C.listener("close",C),C.tag!==null||C.anchor!==null||te}function readDocument(C){var H=C.position,U,W,G,X=!1,Z;for(C.version=null,C.checkLineBreaks=C.legacy,C.tagMap=Object.create(null),C.anchorMap=Object.create(null);(Z=C.input.charCodeAt(C.position))!==0&&(skipSeparationSpace(C,!0,-1),Z=C.input.charCodeAt(C.position),!(C.lineIndent>0||Z!==37));){for(X=!0,Z=C.input.charCodeAt(++C.position),U=C.position;Z!==0&&!is_WS_OR_EOL(Z);)Z=C.input.charCodeAt(++C.position);for(W=C.input.slice(U,C.position),G=[],W.length<1&&throwError(C,"directive name must not be less than one character in length");Z!==0;){for(;is_WHITE_SPACE(Z);)Z=C.input.charCodeAt(++C.position);if(Z===35){do Z=C.input.charCodeAt(++C.position);while(Z!==0&&!is_EOL(Z));break}if(is_EOL(Z))break;for(U=C.position;Z!==0&&!is_WS_OR_EOL(Z);)Z=C.input.charCodeAt(++C.position);G.push(C.input.slice(U,C.position))}Z!==0&&readLineBreak(C),_hasOwnProperty$1.call(directiveHandlers,W)?directiveHandlers[W](C,W,G):throwWarning(C,'unknown document directive "'+W+'"')}if(skipSeparationSpace(C,!0,-1),C.lineIndent===0&&C.input.charCodeAt(C.position)===45&&C.input.charCodeAt(C.position+1)===45&&C.input.charCodeAt(C.position+2)===45?(C.position+=3,skipSeparationSpace(C,!0,-1)):X&&throwError(C,"directives end mark is expected"),composeNode(C,C.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(C,!0,-1),C.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(C.input.slice(H,C.position))&&throwWarning(C,"non-ASCII line breaks are interpreted as content"),C.documents.push(C.result),C.position===C.lineStart&&testDocumentSeparator(C)){C.input.charCodeAt(C.position)===46&&(C.position+=3,skipSeparationSpace(C,!0,-1));return}if(C.position<C.length-1)throwError(C,"end of the stream or a document separator is expected");else return}function loadDocuments(C,H){C=String(C),H=H||{},C.length!==0&&(C.charCodeAt(C.length-1)!==10&&C.charCodeAt(C.length-1)!==13&&(C+=`
|
||
`),C.charCodeAt(0)===65279&&(C=C.slice(1)));var U=new State$1(C,H),W=C.indexOf("\0");for(W!==-1&&(U.position=W,throwError(U,"null byte is not allowed in input")),U.input+="\0";U.input.charCodeAt(U.position)===32;)U.lineIndent+=1,U.position+=1;for(;U.position<U.length-1;)readDocument(U);return U.documents}function loadAll$1(C,H,U){H!==null&&typeof H=="object"&&typeof U>"u"&&(U=H,H=null);var W=loadDocuments(C,U);if(typeof H!="function")return W;for(var G=0,X=W.length;G<X;G+=1)H(W[G])}function load$1(C,H){var U=loadDocuments(C,H);if(U.length!==0){if(U.length===1)return U[0];throw new exception("expected a single document in the stream, but found more")}}var loadAll_1=loadAll$1,load_1=load$1,loader$3={loadAll:loadAll_1,load:load_1},FAILSAFE_SCHEMA=failsafe,load=loader$3.load;const frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function extractFrontMatter(C,H){var U;const W=C.match(frontMatterRegex);if(W){const G=load(W[1],{schema:FAILSAFE_SCHEMA});return G!=null&&G.title&&((U=H.setDiagramTitle)==null||U.call(H,G.title)),C.slice(W[0].length)}else return C}const directive$1=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyComment=/\s*%%.*\n/gm,detectors={},detectType=function(C,H){C=C.replace(frontMatterRegex,"").replace(directive$1,"").replace(anyComment,`
|
||
`);for(const[U,{detector:W}]of Object.entries(detectors))if(W(C,H))return U;throw new Error(`No diagram type detected for text: ${C}`)},registerLazyLoadedDiagrams=(...C)=>{for(const{id:H,detector:U,loader:W}of C)addDetector(H,U,W)},addDetector=(C,H,U)=>{detectors[C]?log$1.error(`Detector with key ${C} already exists`):detectors[C]={detector:H,loader:U},log$1.debug(`Detector with key ${C} added${U?" with loader":""}`)},getDiagramLoader=C=>detectors[C].loader,assignWithDepth=function(C,H,U){const{depth:W,clobber:G}=Object.assign({depth:2,clobber:!1},U);return Array.isArray(H)&&!Array.isArray(C)?(H.forEach(X=>assignWithDepth(C,X,U)),C):Array.isArray(H)&&Array.isArray(C)?(H.forEach(X=>{C.includes(X)||C.push(X)}),C):C===void 0||W<=0?C!=null&&typeof C=="object"&&typeof H=="object"?Object.assign(C,H):H:(H!==void 0&&typeof C=="object"&&typeof H=="object"&&Object.keys(H).forEach(X=>{typeof H[X]=="object"&&(C[X]===void 0||typeof C[X]=="object")?(C[X]===void 0&&(C[X]=Array.isArray(H[X])?[]:{}),C[X]=assignWithDepth(C[X],H[X],{depth:W-1,clobber:G})):(G||typeof C[X]!="object"&&typeof H[X]!="object")&&(C[X]=H[X])}),C)},assignWithDepth$1=assignWithDepth,d3CurveTypes={curveBasis,curveBasisClosed,curveBasisOpen,curveBumpX:bumpX,curveBumpY:bumpY,curveBundle,curveCardinalClosed,curveCardinalOpen,curveCardinal,curveCatmullRomClosed,curveCatmullRomOpen,curveCatmullRom,curveLinear,curveLinearClosed,curveMonotoneX:monotoneX,curveMonotoneY:monotoneY,curveNatural,curveStep,curveStepAfter:stepAfter,curveStepBefore:stepBefore},directive=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,directiveWithoutOpen=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,detectInit=function(C,H){const U=detectDirective(C,/(?:init\b)|(?:initialize\b)/);let W={};if(Array.isArray(U)){const G=U.map(X=>X.args);directiveSanitizer(G),W=assignWithDepth$1(W,[...G])}else W=U.args;if(W){let G=detectType(C,H);["config"].forEach(X=>{W[X]!==void 0&&(G==="flowchart-v2"&&(G="flowchart"),W[G]=W[X],delete W[X])})}return W},detectDirective=function(C,H=null){try{const U=new RegExp(`[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*
|
||
`,"ig");C=C.trim().replace(U,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${H!==null?" type:"+H:""} based on the text:${C}`);let W;const G=[];for(;(W=directive.exec(C))!==null;)if(W.index===directive.lastIndex&&directive.lastIndex++,W&&!H||H&&W[1]&&W[1].match(H)||H&&W[2]&&W[2].match(H)){const X=W[1]?W[1]:W[2],Z=W[3]?W[3].trim():W[4]?JSON.parse(W[4].trim()):null;G.push({type:X,args:Z})}return G.length===0&&G.push({type:C,args:null}),G.length===1?G[0]:G}catch(U){return log$1.error(`ERROR: ${U.message} - Unable to parse directive
|
||
${H!==null?" type:"+H:""} based on the text:${C}`),{type:null,args:null}}},isSubstringInArray=function(C,H){for(const[U,W]of H.entries())if(W.match(C))return U;return-1};function interpolateToCurve(C,H){if(!C)return H;const U=`curve${C.charAt(0).toUpperCase()+C.slice(1)}`;return d3CurveTypes[U]||H}function formatUrl(C,H){const U=C.trim();if(U)return H.securityLevel!=="loose"?sanitizeUrl_1(U):U}const runFunc=(C,...H)=>{const U=C.split("."),W=U.length-1,G=U[W];let X=window;for(let Z=0;Z<W;Z++)if(X=X[U[Z]],!X)return;X[G](...H)};function distance(C,H){return C&&H?Math.sqrt(Math.pow(H.x-C.x,2)+Math.pow(H.y-C.y,2)):0}function traverseEdge(C){let H,U=0;C.forEach(X=>{U+=distance(X,H),H=X});let W=U/2,G;return H=void 0,C.forEach(X=>{if(H&&!G){const Z=distance(X,H);if(Z<W)W-=Z;else{const Q=W/Z;Q<=0&&(G=H),Q>=1&&(G={x:X.x,y:X.y}),Q>0&&Q<1&&(G={x:(1-Q)*H.x+Q*X.x,y:(1-Q)*H.y+Q*X.y})}}H=X}),G}function calcLabelPosition(C){return C.length===1?C[0]:traverseEdge(C)}const calcCardinalityPosition=(C,H,U)=>{let W;log$1.info(`our points ${JSON.stringify(H)}`),H[0]!==U&&(H=H.reverse());let X=25,Z;W=void 0,H.forEach(te=>{if(W&&!Z){const ne=distance(te,W);if(ne<X)X-=ne;else{const ae=X/ne;ae<=0&&(Z=W),ae>=1&&(Z={x:te.x,y:te.y}),ae>0&&ae<1&&(Z={x:(1-ae)*W.x+ae*te.x,y:(1-ae)*W.y+ae*te.y})}}W=te});const Q=C?10:5,ee=Math.atan2(H[0].y-Z.y,H[0].x-Z.x),ie={x:0,y:0};return ie.x=Math.sin(ee)*Q+(H[0].x+Z.x)/2,ie.y=-Math.cos(ee)*Q+(H[0].y+Z.y)/2,ie};function calcTerminalLabelPosition(C,H,U){let W=JSON.parse(JSON.stringify(U)),G;log$1.info("our points",W),H!=="start_left"&&H!=="start_right"&&(W=W.reverse()),W.forEach(ne=>{G=ne});let Z=25+C,Q;G=void 0,W.forEach(ne=>{if(G&&!Q){const ae=distance(ne,G);if(ae<Z)Z-=ae;else{const oe=Z/ae;oe<=0&&(Q=G),oe>=1&&(Q={x:ne.x,y:ne.y}),oe>0&&oe<1&&(Q={x:(1-oe)*G.x+oe*ne.x,y:(1-oe)*G.y+oe*ne.y})}}G=ne});const ee=10+C*.5,ie=Math.atan2(W[0].y-Q.y,W[0].x-Q.x),te={x:0,y:0};return te.x=Math.sin(ie)*ee+(W[0].x+Q.x)/2,te.y=-Math.cos(ie)*ee+(W[0].y+Q.y)/2,H==="start_left"&&(te.x=Math.sin(ie+Math.PI)*ee+(W[0].x+Q.x)/2,te.y=-Math.cos(ie+Math.PI)*ee+(W[0].y+Q.y)/2),H==="end_right"&&(te.x=Math.sin(ie-Math.PI)*ee+(W[0].x+Q.x)/2-5,te.y=-Math.cos(ie-Math.PI)*ee+(W[0].y+Q.y)/2-5),H==="end_left"&&(te.x=Math.sin(ie)*ee+(W[0].x+Q.x)/2-5,te.y=-Math.cos(ie)*ee+(W[0].y+Q.y)/2-5),te}function getStylesFromArray(C){let H="",U="";for(const W of C)W!==void 0&&(W.startsWith("color:")||W.startsWith("text-align:")?U=U+W+";":H=H+W+";");return{style:H,labelStyle:U}}let cnt=0;const generateId$1=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt);function makeid(C){let H="";const U="0123456789abcdef",W=U.length;for(let G=0;G<C;G++)H+=U.charAt(Math.floor(Math.random()*W));return H}const random$1=C=>makeid(C.length),getTextObj$2=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},drawSimpleText=function(C,H){const U=H.text.replace(common$1.lineBreakRegex," "),[,W]=parseFontSize(H.fontSize),G=C.append("text");G.attr("x",H.x),G.attr("y",H.y),G.style("text-anchor",H.anchor),G.style("font-family",H.fontFamily),G.style("font-size",W),G.style("font-weight",H.fontWeight),G.attr("fill",H.fill),H.class!==void 0&&G.attr("class",H.class);const X=G.append("tspan");return X.attr("x",H.x+H.textMargin*2),X.attr("fill",H.fill),X.text(U),G},wrapLabel=memoize$3((C,H,U)=>{if(!C||(U=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},U),common$1.lineBreakRegex.test(C)))return C;const W=C.split(" "),G=[];let X="";return W.forEach((Z,Q)=>{const ee=calculateTextWidth(`${Z} `,U),ie=calculateTextWidth(X,U);if(ee>H){const{hyphenatedStrings:ae,remainingWord:oe}=breakString(Z,H,"-",U);G.push(X,...ae),X=oe}else ie+ee>=H?(G.push(X),X=Z):X=[X,Z].filter(Boolean).join(" ");Q+1===W.length&&G.push(X)}),G.filter(Z=>Z!=="").join(U.joinWith)},(C,H,U)=>`${C}${H}${U.fontSize}${U.fontWeight}${U.fontFamily}${U.joinWith}`),breakString=memoize$3((C,H,U="-",W)=>{W=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},W);const G=[...C],X=[];let Z="";return G.forEach((Q,ee)=>{const ie=`${Z}${Q}`;if(calculateTextWidth(ie,W)>=H){const ne=ee+1,ae=G.length===ne,oe=`${ie}${U}`;X.push(ae?ie:oe),Z=""}else Z=ie}),{hyphenatedStrings:X,remainingWord:Z}},(C,H,U="-",W)=>`${C}${H}${U}${W.fontSize}${W.fontWeight}${W.fontFamily}`);function calculateTextHeight(C,H){return H=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},H),calculateTextDimensions(C,H).height}function calculateTextWidth(C,H){return H=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},H),calculateTextDimensions(C,H).width}const calculateTextDimensions=memoize$3((C,H)=>{H=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},H);const{fontSize:U,fontFamily:W,fontWeight:G}=H;if(!C)return{width:0,height:0};const[,X]=parseFontSize(U),Z=["sans-serif",W],Q=C.split(common$1.lineBreakRegex),ee=[],ie=select("body");if(!ie.remove)return{width:0,height:0,lineHeight:0};const te=ie.append("svg");for(const ae of Z){let oe=0;const se={width:0,height:0,lineHeight:0};for(const le of Q){const ce=getTextObj$2();ce.text=le;const ue=drawSimpleText(te,ce).style("font-size",X).style("font-weight",G).style("font-family",ae),de=(ue._groups||ue)[0][0].getBBox();se.width=Math.round(Math.max(se.width,de.width)),oe=Math.round(de.height),se.height+=oe,se.lineHeight=Math.round(Math.max(se.lineHeight,oe))}ee.push(se)}te.remove();const ne=isNaN(ee[1].height)||isNaN(ee[1].width)||isNaN(ee[1].lineHeight)||ee[0].height>ee[1].height&&ee[0].width>ee[1].width&&ee[0].lineHeight>ee[1].lineHeight?0:1;return ee[ne]},(C,H)=>`${C}${H.fontSize}${H.fontWeight}${H.fontFamily}`),initIdGenerator=class{constructor(H,U){this.deterministic=H,this.seed=U,this.count=U?U.length:0}next(){return this.deterministic?this.count++:Date.now()}};let decoder;const entityDecode=function(C){return decoder=decoder||document.createElement("div"),C=escape(C).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),decoder.innerHTML=C,unescape(decoder.textContent)},directiveSanitizer=C=>{if(log$1.debug("directiveSanitizer called with",C),typeof C=="object"&&(C.length?C.forEach(H=>directiveSanitizer(H)):Object.keys(C).forEach(H=>{log$1.debug("Checking key",H),H.startsWith("__")&&(log$1.debug("sanitize deleting __ option",H),delete C[H]),H.includes("proto")&&(log$1.debug("sanitize deleting proto option",H),delete C[H]),H.includes("constr")&&(log$1.debug("sanitize deleting constr option",H),delete C[H]),H.includes("themeCSS")&&(log$1.debug("sanitizing themeCss option"),C[H]=sanitizeCss(C[H])),H.includes("fontFamily")&&(log$1.debug("sanitizing fontFamily option"),C[H]=sanitizeCss(C[H])),H.includes("altFontFamily")&&(log$1.debug("sanitizing altFontFamily option"),C[H]=sanitizeCss(C[H])),configKeys.includes(H)?typeof C[H]=="object"&&(log$1.debug("sanitize deleting object",H),directiveSanitizer(C[H])):(log$1.debug("sanitize deleting option",H),delete C[H])})),C.themeVariables){const H=Object.keys(C.themeVariables);for(const U of H){const W=C.themeVariables[U];W&&W.match&&!W.match(/^[\d "#%(),.;A-Za-z]+$/)&&(C.themeVariables[U]="")}}log$1.debug("After sanitization",C)},sanitizeCss=C=>{let H=0,U=0;for(const W of C){if(H<U)return"{ /* ERROR: Unbalanced CSS */ }";W==="{"?H++:W==="}"&&U++}return H!==U?"{ /* ERROR: Unbalanced CSS */ }":C};function isDetailedError(C){return"str"in C}function getErrorMessage(C){return C instanceof Error?C.message:String(C)}const insertTitle=(C,H,U,W)=>{if(!W)return;const G=C.node().getBBox();C.append("text").text(W).attr("x",G.x+G.width/2).attr("y",-U).attr("class",H)},parseFontSize=C=>{if(typeof C=="number")return[C,C+"px"];const H=parseInt(C,10);return Number.isNaN(H)?[void 0,void 0]:C===String(H)?[H,C+"px"]:[H,C]},utils$d={assignWithDepth:assignWithDepth$1,wrapLabel,calculateTextHeight,calculateTextWidth,calculateTextDimensions,detectInit,detectDirective,isSubstringInArray,interpolateToCurve,calcLabelPosition,calcCardinalityPosition,calcTerminalLabelPosition,formatUrl,getStylesFromArray,generateId:generateId$1,random:random$1,runFunc,entityDecode,initIdGenerator,directiveSanitizer,sanitizeCss,insertTitle,parseFontSize},name$1="mermaid",version$1="9.4.0",description$1="Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",main="./dist/mermaid.min.js",module$1="./dist/mermaid.core.mjs",types="./dist/mermaid.d.ts",exports$1={".":{require:"./dist/mermaid.min.js",import:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts"},"./*":"./*"},keywords=["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],scripts={clean:"rimraf dist","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaidAPI.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:spellcheck && pnpm docs:code && ts-node-esm src/docs.mts","docs:verify":"pnpm docs:spellcheck && pnpm docs:code && ts-node-esm src/docs.mts --verify","docs:pre:vitepress":"rimraf src/vitepress && pnpm docs:code && ts-node-esm src/docs.mts --vitepress","docs:build:vitepress":"pnpm docs:pre:vitepress && vitepress build src/vitepress && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "vitepress dev src/vitepress" "ts-node-esm src/docs.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell --config ../../cSpell.json "src/docs/**/*.md"',release:"pnpm build",prepublishOnly:"pnpm -w run build"},repository={type:"git",url:"https://github.com/mermaid-js/mermaid"},author="Knut Sveidqvist",license="MIT",standard={ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies={"@braintree/sanitize-url":"^6.0.0",cytoscape:"^3.23.0","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.1.0",d3:"^7.0.0","dagre-d3-es":"7.0.8",dompurify:"2.4.3",elkjs:"^0.8.2",khroma:"^2.0.0","lodash-es":"^4.17.21",moment:"^2.29.4","non-layered-tidy-tree-layout":"^2.0.2",stylis:"^4.1.2","ts-dedent":"^2.2.0",uuid:"^9.0.0"},devDependencies={"@types/cytoscape":"^3.19.9","@types/d3":"^7.4.0","@types/dompurify":"^2.4.0","@types/jsdom":"^20.0.1","@types/lodash-es":"^4.17.6","@types/micromatch":"^4.0.2","@types/prettier":"^2.7.1","@types/stylis":"^4.0.2","@types/uuid":"^8.3.4","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1",chokidar:"^3.5.3",concurrently:"^7.5.0",coveralls:"^3.1.1","cpy-cli":"^4.2.0",cspell:"^6.14.3",globby:"^13.1.2",jison:"^0.4.18","js-base64":"^3.7.2",jsdom:"^20.0.2",micromatch:"^4.0.5","path-browserify":"^1.0.1",prettier:"^2.7.1",remark:"^14.0.2","remark-frontmatter":"^4.0.1","remark-gfm":"^3.0.1",rimraf:"^3.0.2","start-server-and-test":"^1.14.0",typedoc:"^0.23.18","typedoc-plugin-markdown":"^3.13.6",typescript:"^4.8.4","unist-util-flatmap":"^1.0.0",vitepress:"^1.0.0-alpha.31","vitepress-plugin-search":"^1.0.4-alpha.16"},files=["dist","README.md"],sideEffects=["**/*.css","**/*.scss"],pkg={name:name$1,version:version$1,description:description$1,main,module:module$1,types,exports:exports$1,keywords,scripts,repository,author,license,standard,dependencies,devDependencies,files,sideEffects},defaultConfig=Object.freeze(config$2);let siteConfig=assignWithDepth$1({},defaultConfig),configFromInitialize,directives=[],currentConfig=assignWithDepth$1({},defaultConfig);const updateCurrentConfig=(C,H)=>{let U=assignWithDepth$1({},C),W={};for(const G of H)sanitize(G),W=assignWithDepth$1(W,G);if(U=assignWithDepth$1(U,W),W.theme&&W.theme in theme){const G=assignWithDepth$1({},configFromInitialize),X=assignWithDepth$1(G.themeVariables||{},W.themeVariables);U.theme&&U.theme in theme&&(U.themeVariables=theme[U.theme].getThemeVariables(X))}return currentConfig=U,checkConfig(currentConfig),currentConfig},setSiteConfig=C=>(siteConfig=assignWithDepth$1({},defaultConfig),siteConfig=assignWithDepth$1(siteConfig,C),C.theme&&theme[C.theme]&&(siteConfig.themeVariables=theme[C.theme].getThemeVariables(C.themeVariables)),updateCurrentConfig(siteConfig,directives),siteConfig),saveConfigFromInitialize=C=>{configFromInitialize=assignWithDepth$1({},C)},updateSiteConfig=C=>(siteConfig=assignWithDepth$1(siteConfig,C),updateCurrentConfig(siteConfig,directives),siteConfig),getSiteConfig=()=>assignWithDepth$1({},siteConfig),setConfig=C=>(checkConfig(C),assignWithDepth$1(currentConfig,C),getConfig$1()),getConfig$1=()=>assignWithDepth$1({},currentConfig),sanitize=C=>{var H;["secure",...(H=siteConfig.secure)!=null?H:[]].forEach(U=>{C[U]!==void 0&&(log$1.debug(`Denied attempt to modify a secure key ${U}`,C[U]),delete C[U])}),Object.keys(C).forEach(U=>{U.indexOf("__")===0&&delete C[U]}),Object.keys(C).forEach(U=>{typeof C[U]=="string"&&(C[U].includes("<")||C[U].includes(">")||C[U].includes("url(data:"))&&delete C[U],typeof C[U]=="object"&&sanitize(C[U])})},addDirective=C=>{C.fontFamily&&(C.themeVariables?C.themeVariables.fontFamily||(C.themeVariables={fontFamily:C.fontFamily}):C.themeVariables={fontFamily:C.fontFamily}),directives.push(C),updateCurrentConfig(siteConfig,directives)},reset=(C=siteConfig)=>{directives=[],updateCurrentConfig(C,directives)};var ConfigWarning=(C=>(C.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",C))(ConfigWarning||{});const issuedWarnings={},issueWarning=C=>{issuedWarnings[C]||(log$1.warn(ConfigWarning[C]),issuedWarnings[C]=!0)},checkConfig=C=>{!C||(C.lazyLoadedDiagrams||C.loadExternalDiagramsAtStartup)&&issueWarning("LAZY_LOAD_DEPRECATED")},d3Attrs=function(C,H){for(let U of H)C.attr(U[0],U[1])},calculateSvgSizeAttrs=function(C,H,U){let W=new Map;return U?(W.set("width","100%"),W.set("style",`max-width: ${H}px;`)):(W.set("height",C),W.set("width",H)),W},configureSvgSize=function(C,H,U,W){const G=calculateSvgSizeAttrs(H,U,W);d3Attrs(C,G)},setupGraphViewbox$1=function(C,H,U,W){const G=H.node().getBBox(),X=G.width,Z=G.height;log$1.info(`SVG bounds: ${X}x${Z}`,G);let Q=0,ee=0;log$1.info(`Graph bounds: ${Q}x${ee}`,C),Q=X+U*2,ee=Z+U*2,log$1.info(`Calculated bounds: ${Q}x${ee}`),configureSvgSize(H,ee,Q,W);const ie=`${G.x-U} ${G.y-U} ${G.width+2*U} ${G.height+2*U}`;H.attr("viewBox",ie)},getStyles$e=C=>`g.classGroup text {
|
||
fill: ${C.nodeBorder};
|
||
fill: ${C.classText};
|
||
stroke: none;
|
||
font-family: ${C.fontFamily};
|
||
font-size: 10px;
|
||
|
||
.title {
|
||
font-weight: bolder;
|
||
}
|
||
|
||
}
|
||
|
||
.nodeLabel, .edgeLabel {
|
||
color: ${C.classText};
|
||
}
|
||
.edgeLabel .label rect {
|
||
fill: ${C.mainBkg};
|
||
}
|
||
.label text {
|
||
fill: ${C.classText};
|
||
}
|
||
.edgeLabel .label span {
|
||
background: ${C.mainBkg};
|
||
}
|
||
|
||
.classTitle {
|
||
font-weight: bolder;
|
||
}
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
|
||
.divider {
|
||
stroke: ${C.nodeBorder};
|
||
stroke: 1;
|
||
}
|
||
|
||
g.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
g.classGroup rect {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
}
|
||
|
||
g.classGroup line {
|
||
stroke: ${C.nodeBorder};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.classLabel .box {
|
||
stroke: none;
|
||
stroke-width: 0;
|
||
fill: ${C.mainBkg};
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.classLabel .label {
|
||
fill: ${C.nodeBorder};
|
||
font-size: 10px;
|
||
}
|
||
|
||
.relation {
|
||
stroke: ${C.lineColor};
|
||
stroke-width: 1;
|
||
fill: none;
|
||
}
|
||
|
||
.dashed-line{
|
||
stroke-dasharray: 3;
|
||
}
|
||
|
||
.dotted-line{
|
||
stroke-dasharray: 1 2;
|
||
}
|
||
|
||
#compositionStart, .composition {
|
||
fill: ${C.lineColor} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#compositionEnd, .composition {
|
||
fill: ${C.lineColor} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#dependencyStart, .dependency {
|
||
fill: ${C.lineColor} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#dependencyStart, .dependency {
|
||
fill: ${C.lineColor} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#extensionStart, .extension {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#extensionEnd, .extension {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#aggregationStart, .aggregation {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#aggregationEnd, .aggregation {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#lollipopStart, .lollipop {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
#lollipopEnd, .lollipop {
|
||
fill: ${C.mainBkg} !important;
|
||
stroke: ${C.lineColor} !important;
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.edgeTerminals {
|
||
font-size: 11px;
|
||
}
|
||
|
||
.classTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor};
|
||
}
|
||
`,classStyles=getStyles$e,getStyles$d=C=>`
|
||
.entityBox {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
}
|
||
|
||
.attributeBoxOdd {
|
||
fill: ${C.attributeBackgroundColorOdd};
|
||
stroke: ${C.nodeBorder};
|
||
}
|
||
|
||
.attributeBoxEven {
|
||
fill: ${C.attributeBackgroundColorEven};
|
||
stroke: ${C.nodeBorder};
|
||
}
|
||
|
||
.relationshipLabelBox {
|
||
fill: ${C.tertiaryColor};
|
||
opacity: 0.7;
|
||
background-color: ${C.tertiaryColor};
|
||
rect {
|
||
opacity: 0.5;
|
||
}
|
||
}
|
||
|
||
.relationshipLine {
|
||
stroke: ${C.lineColor};
|
||
}
|
||
|
||
.entityTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor};
|
||
}
|
||
`,erStyles=getStyles$d,getStyles$c=()=>"",errorStyles=getStyles$c,getStyles$b=C=>`.label {
|
||
font-family: ${C.fontFamily};
|
||
color: ${C.nodeTextColor||C.textColor};
|
||
}
|
||
.cluster-label text {
|
||
fill: ${C.titleColor};
|
||
}
|
||
.cluster-label span {
|
||
color: ${C.titleColor};
|
||
}
|
||
|
||
.label text,span {
|
||
fill: ${C.nodeTextColor||C.textColor};
|
||
color: ${C.nodeTextColor||C.textColor};
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.node .label {
|
||
text-align: center;
|
||
}
|
||
.node.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.arrowheadPath {
|
||
fill: ${C.arrowheadColor};
|
||
}
|
||
|
||
.edgePath .path {
|
||
stroke: ${C.lineColor};
|
||
stroke-width: 2.0px;
|
||
}
|
||
|
||
.flowchart-link {
|
||
stroke: ${C.lineColor};
|
||
fill: none;
|
||
}
|
||
|
||
.edgeLabel {
|
||
background-color: ${C.edgeLabelBackground};
|
||
rect {
|
||
opacity: 0.5;
|
||
background-color: ${C.edgeLabelBackground};
|
||
fill: ${C.edgeLabelBackground};
|
||
}
|
||
text-align: center;
|
||
}
|
||
|
||
.cluster rect {
|
||
fill: ${C.clusterBkg};
|
||
stroke: ${C.clusterBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.cluster text {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
.cluster span {
|
||
color: ${C.titleColor};
|
||
}
|
||
/* .cluster div {
|
||
color: ${C.titleColor};
|
||
} */
|
||
|
||
div.mermaidTooltip {
|
||
position: absolute;
|
||
text-align: center;
|
||
max-width: 200px;
|
||
padding: 2px;
|
||
font-family: ${C.fontFamily};
|
||
font-size: 12px;
|
||
background: ${C.tertiaryColor};
|
||
border: 1px solid ${C.border2};
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
z-index: 100;
|
||
}
|
||
|
||
.flowchartTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor};
|
||
}
|
||
`,flowStyles=getStyles$b,getStyles$a=C=>`
|
||
.mermaid-main-font {
|
||
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
}
|
||
.exclude-range {
|
||
fill: ${C.excludeBkgColor};
|
||
}
|
||
|
||
.section {
|
||
stroke: none;
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.section0 {
|
||
fill: ${C.sectionBkgColor};
|
||
}
|
||
|
||
.section2 {
|
||
fill: ${C.sectionBkgColor2};
|
||
}
|
||
|
||
.section1,
|
||
.section3 {
|
||
fill: ${C.altSectionBkgColor};
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.sectionTitle0 {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
.sectionTitle1 {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
.sectionTitle2 {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
.sectionTitle3 {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
.sectionTitle {
|
||
text-anchor: start;
|
||
// font-size: ${C.ganttFontSize};
|
||
// text-height: 14px;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
|
||
}
|
||
|
||
|
||
/* Grid and axis */
|
||
|
||
.grid .tick {
|
||
stroke: ${C.gridColor};
|
||
opacity: 0.8;
|
||
shape-rendering: crispEdges;
|
||
text {
|
||
font-family: ${C.fontFamily};
|
||
fill: ${C.textColor};
|
||
}
|
||
}
|
||
|
||
.grid path {
|
||
stroke-width: 0;
|
||
}
|
||
|
||
|
||
/* Today line */
|
||
|
||
.today {
|
||
fill: none;
|
||
stroke: ${C.todayLineColor};
|
||
stroke-width: 2px;
|
||
}
|
||
|
||
|
||
/* Task styling */
|
||
|
||
/* Default task */
|
||
|
||
.task {
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.taskText {
|
||
text-anchor: middle;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
}
|
||
|
||
// .taskText:not([font-size]) {
|
||
// font-size: ${C.ganttFontSize};
|
||
// }
|
||
|
||
.taskTextOutsideRight {
|
||
fill: ${C.taskTextDarkColor};
|
||
text-anchor: start;
|
||
// font-size: ${C.ganttFontSize};
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
|
||
}
|
||
|
||
.taskTextOutsideLeft {
|
||
fill: ${C.taskTextDarkColor};
|
||
text-anchor: end;
|
||
// font-size: ${C.ganttFontSize};
|
||
}
|
||
|
||
/* Special case clickable */
|
||
.task.clickable {
|
||
cursor: pointer;
|
||
}
|
||
.taskText.clickable {
|
||
cursor: pointer;
|
||
fill: ${C.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.taskTextOutsideLeft.clickable {
|
||
cursor: pointer;
|
||
fill: ${C.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.taskTextOutsideRight.clickable {
|
||
cursor: pointer;
|
||
fill: ${C.taskTextClickableColor} !important;
|
||
font-weight: bold;
|
||
}
|
||
|
||
/* Specific task settings for the sections*/
|
||
|
||
.taskText0,
|
||
.taskText1,
|
||
.taskText2,
|
||
.taskText3 {
|
||
fill: ${C.taskTextColor};
|
||
}
|
||
|
||
.task0,
|
||
.task1,
|
||
.task2,
|
||
.task3 {
|
||
fill: ${C.taskBkgColor};
|
||
stroke: ${C.taskBorderColor};
|
||
}
|
||
|
||
.taskTextOutside0,
|
||
.taskTextOutside2
|
||
{
|
||
fill: ${C.taskTextOutsideColor};
|
||
}
|
||
|
||
.taskTextOutside1,
|
||
.taskTextOutside3 {
|
||
fill: ${C.taskTextOutsideColor};
|
||
}
|
||
|
||
|
||
/* Active task */
|
||
|
||
.active0,
|
||
.active1,
|
||
.active2,
|
||
.active3 {
|
||
fill: ${C.activeTaskBkgColor};
|
||
stroke: ${C.activeTaskBorderColor};
|
||
}
|
||
|
||
.activeText0,
|
||
.activeText1,
|
||
.activeText2,
|
||
.activeText3 {
|
||
fill: ${C.taskTextDarkColor} !important;
|
||
}
|
||
|
||
|
||
/* Completed task */
|
||
|
||
.done0,
|
||
.done1,
|
||
.done2,
|
||
.done3 {
|
||
stroke: ${C.doneTaskBorderColor};
|
||
fill: ${C.doneTaskBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.doneText0,
|
||
.doneText1,
|
||
.doneText2,
|
||
.doneText3 {
|
||
fill: ${C.taskTextDarkColor} !important;
|
||
}
|
||
|
||
|
||
/* Tasks on the critical line */
|
||
|
||
.crit0,
|
||
.crit1,
|
||
.crit2,
|
||
.crit3 {
|
||
stroke: ${C.critBorderColor};
|
||
fill: ${C.critBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.activeCrit0,
|
||
.activeCrit1,
|
||
.activeCrit2,
|
||
.activeCrit3 {
|
||
stroke: ${C.critBorderColor};
|
||
fill: ${C.activeTaskBkgColor};
|
||
stroke-width: 2;
|
||
}
|
||
|
||
.doneCrit0,
|
||
.doneCrit1,
|
||
.doneCrit2,
|
||
.doneCrit3 {
|
||
stroke: ${C.critBorderColor};
|
||
fill: ${C.doneTaskBkgColor};
|
||
stroke-width: 2;
|
||
cursor: pointer;
|
||
shape-rendering: crispEdges;
|
||
}
|
||
|
||
.milestone {
|
||
transform: rotate(45deg) scale(0.8,0.8);
|
||
}
|
||
|
||
.milestoneText {
|
||
font-style: italic;
|
||
}
|
||
.doneCritText0,
|
||
.doneCritText1,
|
||
.doneCritText2,
|
||
.doneCritText3 {
|
||
fill: ${C.taskTextDarkColor} !important;
|
||
}
|
||
|
||
.activeCritText0,
|
||
.activeCritText1,
|
||
.activeCritText2,
|
||
.activeCritText3 {
|
||
fill: ${C.taskTextDarkColor} !important;
|
||
}
|
||
|
||
.titleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor} ;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
}
|
||
`,ganttStyles=getStyles$a,getStyles$9=()=>"",infoStyles=getStyles$9,getStyles$8=C=>`
|
||
.pieCircle{
|
||
stroke: ${C.pieStrokeColor};
|
||
stroke-width : ${C.pieStrokeWidth};
|
||
opacity : ${C.pieOpacity};
|
||
}
|
||
.pieTitleText {
|
||
text-anchor: middle;
|
||
font-size: ${C.pieTitleTextSize};
|
||
fill: ${C.pieTitleTextColor};
|
||
font-family: ${C.fontFamily};
|
||
}
|
||
.slice {
|
||
font-family: ${C.fontFamily};
|
||
fill: ${C.pieSectionTextColor};
|
||
font-size:${C.pieSectionTextSize};
|
||
// fill: white;
|
||
}
|
||
.legend text {
|
||
fill: ${C.pieLegendTextColor};
|
||
font-family: ${C.fontFamily};
|
||
font-size: ${C.pieLegendTextSize};
|
||
}
|
||
`,pieStyles=getStyles$8,getStyles$7=C=>`
|
||
|
||
marker {
|
||
fill: ${C.relationColor};
|
||
stroke: ${C.relationColor};
|
||
}
|
||
|
||
marker.cross {
|
||
stroke: ${C.lineColor};
|
||
}
|
||
|
||
svg {
|
||
font-family: ${C.fontFamily};
|
||
font-size: ${C.fontSize};
|
||
}
|
||
|
||
.reqBox {
|
||
fill: ${C.requirementBackground};
|
||
fill-opacity: 100%;
|
||
stroke: ${C.requirementBorderColor};
|
||
stroke-width: ${C.requirementBorderSize};
|
||
}
|
||
|
||
.reqTitle, .reqLabel{
|
||
fill: ${C.requirementTextColor};
|
||
}
|
||
.reqLabelBox {
|
||
fill: ${C.relationLabelBackground};
|
||
fill-opacity: 100%;
|
||
}
|
||
|
||
.req-title-line {
|
||
stroke: ${C.requirementBorderColor};
|
||
stroke-width: ${C.requirementBorderSize};
|
||
}
|
||
.relationshipLine {
|
||
stroke: ${C.relationColor};
|
||
stroke-width: 1;
|
||
}
|
||
.relationshipLabel {
|
||
fill: ${C.relationLabelColor};
|
||
}
|
||
|
||
`,requirementStyles=getStyles$7,getStyles$6=C=>`.actor {
|
||
stroke: ${C.actorBorder};
|
||
fill: ${C.actorBkg};
|
||
}
|
||
|
||
text.actor > tspan {
|
||
fill: ${C.actorTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.actor-line {
|
||
stroke: ${C.actorLineColor};
|
||
}
|
||
|
||
.messageLine0 {
|
||
stroke-width: 1.5;
|
||
stroke-dasharray: none;
|
||
stroke: ${C.signalColor};
|
||
}
|
||
|
||
.messageLine1 {
|
||
stroke-width: 1.5;
|
||
stroke-dasharray: 2, 2;
|
||
stroke: ${C.signalColor};
|
||
}
|
||
|
||
#arrowhead path {
|
||
fill: ${C.signalColor};
|
||
stroke: ${C.signalColor};
|
||
}
|
||
|
||
.sequenceNumber {
|
||
fill: ${C.sequenceNumberColor};
|
||
}
|
||
|
||
#sequencenumber {
|
||
fill: ${C.signalColor};
|
||
}
|
||
|
||
#crosshead path {
|
||
fill: ${C.signalColor};
|
||
stroke: ${C.signalColor};
|
||
}
|
||
|
||
.messageText {
|
||
fill: ${C.signalTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.labelBox {
|
||
stroke: ${C.labelBoxBorderColor};
|
||
fill: ${C.labelBoxBkgColor};
|
||
}
|
||
|
||
.labelText, .labelText > tspan {
|
||
fill: ${C.labelTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.loopText, .loopText > tspan {
|
||
fill: ${C.loopTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.loopLine {
|
||
stroke-width: 2px;
|
||
stroke-dasharray: 2, 2;
|
||
stroke: ${C.labelBoxBorderColor};
|
||
fill: ${C.labelBoxBorderColor};
|
||
}
|
||
|
||
.note {
|
||
//stroke: #decc93;
|
||
stroke: ${C.noteBorderColor};
|
||
fill: ${C.noteBkgColor};
|
||
}
|
||
|
||
.noteText, .noteText > tspan {
|
||
fill: ${C.noteTextColor};
|
||
stroke: none;
|
||
}
|
||
|
||
.activation0 {
|
||
fill: ${C.activationBkgColor};
|
||
stroke: ${C.activationBorderColor};
|
||
}
|
||
|
||
.activation1 {
|
||
fill: ${C.activationBkgColor};
|
||
stroke: ${C.activationBorderColor};
|
||
}
|
||
|
||
.activation2 {
|
||
fill: ${C.activationBkgColor};
|
||
stroke: ${C.activationBorderColor};
|
||
}
|
||
|
||
.actorPopupMenu {
|
||
position: absolute;
|
||
}
|
||
|
||
.actorPopupMenuPanel {
|
||
position: absolute;
|
||
fill: ${C.actorBkg};
|
||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
||
}
|
||
.actor-man line {
|
||
stroke: ${C.actorBorder};
|
||
fill: ${C.actorBkg};
|
||
}
|
||
.actor-man circle, line {
|
||
stroke: ${C.actorBorder};
|
||
fill: ${C.actorBkg};
|
||
stroke-width: 2px;
|
||
}
|
||
`,sequenceStyles=getStyles$6,getStyles$5=C=>`
|
||
defs #statediagram-barbEnd {
|
||
fill: ${C.transitionColor};
|
||
stroke: ${C.transitionColor};
|
||
}
|
||
g.stateGroup text {
|
||
fill: ${C.nodeBorder};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
}
|
||
g.stateGroup text {
|
||
fill: ${C.textColor};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
|
||
}
|
||
g.stateGroup .state-title {
|
||
font-weight: bolder;
|
||
fill: ${C.stateLabelColor};
|
||
}
|
||
|
||
g.stateGroup rect {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
}
|
||
|
||
g.stateGroup line {
|
||
stroke: ${C.lineColor};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.transition {
|
||
stroke: ${C.transitionColor};
|
||
stroke-width: 1;
|
||
fill: none;
|
||
}
|
||
|
||
.stateGroup .composit {
|
||
fill: ${C.background};
|
||
border-bottom: 1px
|
||
}
|
||
|
||
.stateGroup .alt-composit {
|
||
fill: #e0e0e0;
|
||
border-bottom: 1px
|
||
}
|
||
|
||
.state-note {
|
||
stroke: ${C.noteBorderColor};
|
||
fill: ${C.noteBkgColor};
|
||
|
||
text {
|
||
fill: ${C.noteTextColor};
|
||
stroke: none;
|
||
font-size: 10px;
|
||
}
|
||
}
|
||
|
||
.stateLabel .box {
|
||
stroke: none;
|
||
stroke-width: 0;
|
||
fill: ${C.mainBkg};
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.edgeLabel .label rect {
|
||
fill: ${C.labelBackgroundColor};
|
||
opacity: 0.5;
|
||
}
|
||
.edgeLabel .label text {
|
||
fill: ${C.transitionLabelColor||C.tertiaryTextColor};
|
||
}
|
||
.label div .edgeLabel {
|
||
color: ${C.transitionLabelColor||C.tertiaryTextColor};
|
||
}
|
||
|
||
.stateLabel text {
|
||
fill: ${C.stateLabelColor};
|
||
font-size: 10px;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.node circle.state-start {
|
||
fill: ${C.specialStateColor};
|
||
stroke: ${C.specialStateColor};
|
||
}
|
||
|
||
.node .fork-join {
|
||
fill: ${C.specialStateColor};
|
||
stroke: ${C.specialStateColor};
|
||
}
|
||
|
||
.node circle.state-end {
|
||
fill: ${C.innerEndBackground};
|
||
stroke: ${C.background};
|
||
stroke-width: 1.5
|
||
}
|
||
.end-state-inner {
|
||
fill: ${C.compositeBackground||C.background};
|
||
// stroke: ${C.background};
|
||
stroke-width: 1.5
|
||
}
|
||
|
||
.node rect {
|
||
fill: ${C.stateBkg||C.mainBkg};
|
||
stroke: ${C.stateBorder||C.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
.node polygon {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.stateBorder||C.nodeBorder};;
|
||
stroke-width: 1px;
|
||
}
|
||
#statediagram-barbEnd {
|
||
fill: ${C.lineColor};
|
||
}
|
||
|
||
.statediagram-cluster rect {
|
||
fill: ${C.compositeTitleBackground};
|
||
stroke: ${C.stateBorder||C.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.cluster-label, .nodeLabel {
|
||
color: ${C.stateLabelColor};
|
||
}
|
||
|
||
.statediagram-cluster rect.outer {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-state .divider {
|
||
stroke: ${C.stateBorder||C.nodeBorder};
|
||
}
|
||
|
||
.statediagram-state .title-state {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-cluster.statediagram-cluster .inner {
|
||
fill: ${C.compositeBackground||C.background};
|
||
}
|
||
.statediagram-cluster.statediagram-cluster-alt .inner {
|
||
fill: ${C.altBackground?C.altBackground:"#efefef"};
|
||
}
|
||
|
||
.statediagram-cluster .inner {
|
||
rx:0;
|
||
ry:0;
|
||
}
|
||
|
||
.statediagram-state rect.basic {
|
||
rx: 5px;
|
||
ry: 5px;
|
||
}
|
||
.statediagram-state rect.divider {
|
||
stroke-dasharray: 10,10;
|
||
fill: ${C.altBackground?C.altBackground:"#efefef"};
|
||
}
|
||
|
||
.note-edge {
|
||
stroke-dasharray: 5;
|
||
}
|
||
|
||
.statediagram-note rect {
|
||
fill: ${C.noteBkgColor};
|
||
stroke: ${C.noteBorderColor};
|
||
stroke-width: 1px;
|
||
rx: 0;
|
||
ry: 0;
|
||
}
|
||
.statediagram-note rect {
|
||
fill: ${C.noteBkgColor};
|
||
stroke: ${C.noteBorderColor};
|
||
stroke-width: 1px;
|
||
rx: 0;
|
||
ry: 0;
|
||
}
|
||
|
||
.statediagram-note text {
|
||
fill: ${C.noteTextColor};
|
||
}
|
||
|
||
.statediagram-note .nodeLabel {
|
||
color: ${C.noteTextColor};
|
||
}
|
||
.statediagram .edgeLabel {
|
||
color: red; // ${C.noteTextColor};
|
||
}
|
||
|
||
#dependencyStart, #dependencyEnd {
|
||
fill: ${C.lineColor};
|
||
stroke: ${C.lineColor};
|
||
stroke-width: 1;
|
||
}
|
||
|
||
.statediagramTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor};
|
||
}
|
||
`,stateStyles=getStyles$5,getStyles$4=C=>`.label {
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
color: ${C.textColor};
|
||
}
|
||
.mouth {
|
||
stroke: #666;
|
||
}
|
||
|
||
line {
|
||
stroke: ${C.textColor}
|
||
}
|
||
|
||
.legend {
|
||
fill: ${C.textColor};
|
||
}
|
||
|
||
.label text {
|
||
fill: #333;
|
||
}
|
||
.label {
|
||
color: ${C.textColor}
|
||
}
|
||
|
||
.face {
|
||
${C.faceColor?`fill: ${C.faceColor}`:"fill: #FFF8DC"};
|
||
stroke: #999;
|
||
}
|
||
|
||
.node rect,
|
||
.node circle,
|
||
.node ellipse,
|
||
.node polygon,
|
||
.node path {
|
||
fill: ${C.mainBkg};
|
||
stroke: ${C.nodeBorder};
|
||
stroke-width: 1px;
|
||
}
|
||
|
||
.node .label {
|
||
text-align: center;
|
||
}
|
||
.node.clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.arrowheadPath {
|
||
fill: ${C.arrowheadColor};
|
||
}
|
||
|
||
.edgePath .path {
|
||
stroke: ${C.lineColor};
|
||
stroke-width: 1.5px;
|
||
}
|
||
|
||
.flowchart-link {
|
||
stroke: ${C.lineColor};
|
||
fill: none;
|
||
}
|
||
|
||
.edgeLabel {
|
||
background-color: ${C.edgeLabelBackground};
|
||
rect {
|
||
opacity: 0.5;
|
||
}
|
||
text-align: center;
|
||
}
|
||
|
||
.cluster rect {
|
||
}
|
||
|
||
.cluster text {
|
||
fill: ${C.titleColor};
|
||
}
|
||
|
||
div.mermaidTooltip {
|
||
position: absolute;
|
||
text-align: center;
|
||
max-width: 200px;
|
||
padding: 2px;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
font-size: 12px;
|
||
background: ${C.tertiaryColor};
|
||
border: 1px solid ${C.border2};
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
z-index: 100;
|
||
}
|
||
|
||
.task-type-0, .section-type-0 {
|
||
${C.fillType0?`fill: ${C.fillType0}`:""};
|
||
}
|
||
.task-type-1, .section-type-1 {
|
||
${C.fillType0?`fill: ${C.fillType1}`:""};
|
||
}
|
||
.task-type-2, .section-type-2 {
|
||
${C.fillType0?`fill: ${C.fillType2}`:""};
|
||
}
|
||
.task-type-3, .section-type-3 {
|
||
${C.fillType0?`fill: ${C.fillType3}`:""};
|
||
}
|
||
.task-type-4, .section-type-4 {
|
||
${C.fillType0?`fill: ${C.fillType4}`:""};
|
||
}
|
||
.task-type-5, .section-type-5 {
|
||
${C.fillType0?`fill: ${C.fillType5}`:""};
|
||
}
|
||
.task-type-6, .section-type-6 {
|
||
${C.fillType0?`fill: ${C.fillType6}`:""};
|
||
}
|
||
.task-type-7, .section-type-7 {
|
||
${C.fillType0?`fill: ${C.fillType7}`:""};
|
||
}
|
||
|
||
.actor-0 {
|
||
${C.actor0?`fill: ${C.actor0}`:""};
|
||
}
|
||
.actor-1 {
|
||
${C.actor1?`fill: ${C.actor1}`:""};
|
||
}
|
||
.actor-2 {
|
||
${C.actor2?`fill: ${C.actor2}`:""};
|
||
}
|
||
.actor-3 {
|
||
${C.actor3?`fill: ${C.actor3}`:""};
|
||
}
|
||
.actor-4 {
|
||
${C.actor4?`fill: ${C.actor4}`:""};
|
||
}
|
||
.actor-5 {
|
||
${C.actor5?`fill: ${C.actor5}`:""};
|
||
}
|
||
`,journeyStyles=getStyles$4,getStyles$3=C=>`.person {
|
||
stroke: ${C.personBorder};
|
||
fill: ${C.personBkg};
|
||
}
|
||
`,c4Styles=getStyles$3,themes={flowchart:flowStyles,"flowchart-v2":flowStyles,sequence:sequenceStyles,gantt:ganttStyles,classDiagram:classStyles,"classDiagram-v2":classStyles,class:classStyles,stateDiagram:stateStyles,state:stateStyles,info:infoStyles,pie:pieStyles,er:erStyles,error:errorStyles,journey:journeyStyles,requirement:requirementStyles,c4:c4Styles},getStyles$1=(C,H,U)=>{let W="";return C in themes&&themes[C]?W=themes[C](U):log$1.warn(`No theme found for ${C}`),` & {
|
||
font-family: ${U.fontFamily};
|
||
font-size: ${U.fontSize};
|
||
fill: ${U.textColor}
|
||
}
|
||
|
||
/* Classes common for multiple diagrams */
|
||
|
||
& .error-icon {
|
||
fill: ${U.errorBkgColor};
|
||
}
|
||
& .error-text {
|
||
fill: ${U.errorTextColor};
|
||
stroke: ${U.errorTextColor};
|
||
}
|
||
|
||
& .edge-thickness-normal {
|
||
stroke-width: 2px;
|
||
}
|
||
& .edge-thickness-thick {
|
||
stroke-width: 3.5px
|
||
}
|
||
& .edge-pattern-solid {
|
||
stroke-dasharray: 0;
|
||
}
|
||
|
||
& .edge-pattern-dashed{
|
||
stroke-dasharray: 3;
|
||
}
|
||
.edge-pattern-dotted {
|
||
stroke-dasharray: 2;
|
||
}
|
||
|
||
& .marker {
|
||
fill: ${U.lineColor};
|
||
stroke: ${U.lineColor};
|
||
}
|
||
& .marker.cross {
|
||
stroke: ${U.lineColor};
|
||
}
|
||
|
||
& svg {
|
||
font-family: ${U.fontFamily};
|
||
font-size: ${U.fontSize};
|
||
}
|
||
|
||
${W}
|
||
|
||
${H}
|
||
`},addStylesForDiagram=(C,H)=>{themes[C]=H},getStyles$2=getStyles$1;let title$1="",diagramTitle="",description="";const sanitizeText$4=C=>sanitizeText$5(C,getConfig$1()),clear$g=function(){title$1="",description="",diagramTitle=""},setAccTitle=function(C){title$1=sanitizeText$4(C).replace(/^\s+/g,"")},getAccTitle=function(){return title$1||diagramTitle},setAccDescription=function(C){description=sanitizeText$4(C).replace(/\n\s+/g,`
|
||
`)},getAccDescription=function(){return description},setDiagramTitle=function(C){diagramTitle=sanitizeText$4(C)},getDiagramTitle=function(){return diagramTitle},commonDb={setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,getAccDescription,setAccDescription,clear:clear$g},commonDb$1=Object.freeze(Object.defineProperty({__proto__:null,clear:clear$g,setAccTitle,getAccTitle,setAccDescription,getAccDescription,setDiagramTitle,getDiagramTitle,default:commonDb},Symbol.toStringTag,{value:"Module"}));let currentDirective={};const parseDirective$c=function(C,H,U,W){log$1.debug("parseDirective is being called",H,U,W);try{if(H!==void 0)switch(H=H.trim(),U){case"open_directive":currentDirective={};break;case"type_directive":if(!currentDirective)throw new Error("currentDirective is undefined");currentDirective.type=H.toLowerCase();break;case"arg_directive":if(!currentDirective)throw new Error("currentDirective is undefined");currentDirective.args=JSON.parse(H);break;case"close_directive":handleDirective(C,currentDirective,W),currentDirective=void 0;break}}catch(G){log$1.error(`Error while rendering sequenceDiagram directive: ${H} jison context: ${U}`),log$1.error(G.message)}},handleDirective=function(C,H,U){switch(log$1.info(`Directive type=${H.type} with args:`,H.args),H.type){case"init":case"initialize":{["config"].forEach(W=>{H.args[W]!==void 0&&(U==="flowchart-v2"&&(U="flowchart"),H.args[U]=H.args[W],delete H.args[W])}),log$1.info("sanitize in handleDirective",H.args),directiveSanitizer(H.args),log$1.info("sanitize in handleDirective (done)",H.args),addDirective(H.args);break}case"wrap":case"nowrap":C&&C.setWrap&&C.setWrap(H.type==="wrap");break;case"themeCss":log$1.warn("themeCss encountered");break;default:log$1.warn(`Unhandled directive: source: '%%{${H.type}: ${JSON.stringify(H.args?H.args:{})}}%%`,H);break}},log$2=log$1,setLogLevel=setLogLevel$1,getConfig=getConfig$1,sanitizeText$3=C=>sanitizeText$5(C,getConfig()),setupGraphViewbox=setupGraphViewbox$1,getCommonDb=()=>commonDb$1,parseDirective$b=(C,H,U,W)=>parseDirective$c(C,H,U,W),diagrams={},registerDiagram=(C,H,U)=>{if(diagrams[C])throw new Error(`Diagram ${C} already registered.`);diagrams[C]=H,U&&addDetector(C,U),addStylesForDiagram(C,H.styles),H.injectUtils&&H.injectUtils(log$2,setLogLevel,getConfig,sanitizeText$3,setupGraphViewbox,getCommonDb(),parseDirective$b)},getDiagram=C=>{if(C in diagrams)return diagrams[C];throw new Error(`Diagram ${C} not found.`)};var parser$c=function(){var C=function(be,pe,fe,ye){for(fe=fe||{},ye=be.length;ye--;fe[be[ye]]=pe);return fe},H=[1,4],U=[1,7],W=[1,5],G=[1,9],X=[1,6],Z=[2,6],Q=[1,16],ee=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],ie=[8,14,20,22,24,25,27,29,32,37,40],te=[8,13,14,20,22,24,25,27,29,32,37,40],ne=[1,26],ae=[6,8,14,50,55],oe=[8,14,55],se=[1,53],le=[1,52],ce=[8,14,30,33,35,38,55],ue=[1,67],de=[1,68],ve=[1,69],ge=[8,14,33,35,42,55],he={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(pe,fe,ye,$e,we,Se,Te){var xe=Se.length-1;switch(we){case 3:return Se[xe];case 4:return Se[xe-1];case 5:return $e.setDirection(Se[xe-3]),Se[xe-1];case 7:$e.setOptions(Se[xe-1]),this.$=Se[xe];break;case 8:Se[xe-1]+=Se[xe],this.$=Se[xe-1];break;case 10:this.$=[];break;case 11:Se[xe-1].push(Se[xe]),this.$=Se[xe-1];break;case 12:this.$=Se[xe-1];break;case 17:this.$=Se[xe].trim(),$e.setAccTitle(this.$);break;case 18:case 19:this.$=Se[xe].trim(),$e.setAccDescription(this.$);break;case 20:$e.addSection(Se[xe].substr(8)),this.$=Se[xe].substr(8);break;case 22:$e.checkout(Se[xe]);break;case 23:$e.branch(Se[xe]);break;case 24:$e.branch(Se[xe-2],Se[xe]);break;case 25:$e.cherryPick(Se[xe],"",void 0);break;case 26:$e.cherryPick(Se[xe-2],"",Se[xe]);break;case 27:case 29:$e.cherryPick(Se[xe-2],"","");break;case 28:$e.cherryPick(Se[xe],"",Se[xe-2]);break;case 30:$e.merge(Se[xe],"","","");break;case 31:$e.merge(Se[xe-2],Se[xe],"","");break;case 32:$e.merge(Se[xe-2],"",Se[xe],"");break;case 33:$e.merge(Se[xe-2],"","",Se[xe]);break;case 34:$e.merge(Se[xe-4],Se[xe],"",Se[xe-2]);break;case 35:$e.merge(Se[xe-4],"",Se[xe],Se[xe-2]);break;case 36:$e.merge(Se[xe-4],"",Se[xe-2],Se[xe]);break;case 37:$e.merge(Se[xe-4],Se[xe-2],Se[xe],"");break;case 38:$e.merge(Se[xe-4],Se[xe-2],"",Se[xe]);break;case 39:$e.merge(Se[xe-4],Se[xe],Se[xe-2],"");break;case 40:$e.merge(Se[xe-6],Se[xe-4],Se[xe-2],Se[xe]);break;case 41:$e.merge(Se[xe-6],Se[xe],Se[xe-4],Se[xe-2]);break;case 42:$e.merge(Se[xe-6],Se[xe-4],Se[xe],Se[xe-2]);break;case 43:$e.merge(Se[xe-6],Se[xe-2],Se[xe-4],Se[xe]);break;case 44:$e.merge(Se[xe-6],Se[xe],Se[xe-2],Se[xe-4]);break;case 45:$e.merge(Se[xe-6],Se[xe-2],Se[xe],Se[xe-4]);break;case 46:$e.commit(Se[xe]);break;case 47:$e.commit("","",$e.commitType.NORMAL,Se[xe]);break;case 48:$e.commit("","",Se[xe],"");break;case 49:$e.commit("","",Se[xe],Se[xe-2]);break;case 50:$e.commit("","",Se[xe-2],Se[xe]);break;case 51:$e.commit("",Se[xe],$e.commitType.NORMAL,"");break;case 52:$e.commit("",Se[xe-2],$e.commitType.NORMAL,Se[xe]);break;case 53:$e.commit("",Se[xe],$e.commitType.NORMAL,Se[xe-2]);break;case 54:$e.commit("",Se[xe-2],Se[xe],"");break;case 55:$e.commit("",Se[xe],Se[xe-2],"");break;case 56:$e.commit("",Se[xe-4],Se[xe-2],Se[xe]);break;case 57:$e.commit("",Se[xe-4],Se[xe],Se[xe-2]);break;case 58:$e.commit("",Se[xe-2],Se[xe-4],Se[xe]);break;case 59:$e.commit("",Se[xe],Se[xe-4],Se[xe-2]);break;case 60:$e.commit("",Se[xe],Se[xe-2],Se[xe-4]);break;case 61:$e.commit("",Se[xe-2],Se[xe],Se[xe-4]);break;case 62:$e.commit(Se[xe],"",$e.commitType.NORMAL,"");break;case 63:$e.commit(Se[xe],"",$e.commitType.NORMAL,Se[xe-2]);break;case 64:$e.commit(Se[xe-2],"",$e.commitType.NORMAL,Se[xe]);break;case 65:$e.commit(Se[xe-2],"",Se[xe],"");break;case 66:$e.commit(Se[xe],"",Se[xe-2],"");break;case 67:$e.commit(Se[xe],Se[xe-2],$e.commitType.NORMAL,"");break;case 68:$e.commit(Se[xe-2],Se[xe],$e.commitType.NORMAL,"");break;case 69:$e.commit(Se[xe-4],"",Se[xe-2],Se[xe]);break;case 70:$e.commit(Se[xe-4],"",Se[xe],Se[xe-2]);break;case 71:$e.commit(Se[xe-2],"",Se[xe-4],Se[xe]);break;case 72:$e.commit(Se[xe],"",Se[xe-4],Se[xe-2]);break;case 73:$e.commit(Se[xe],"",Se[xe-2],Se[xe-4]);break;case 74:$e.commit(Se[xe-2],"",Se[xe],Se[xe-4]);break;case 75:$e.commit(Se[xe-4],Se[xe],Se[xe-2],"");break;case 76:$e.commit(Se[xe-4],Se[xe-2],Se[xe],"");break;case 77:$e.commit(Se[xe-2],Se[xe],Se[xe-4],"");break;case 78:$e.commit(Se[xe],Se[xe-2],Se[xe-4],"");break;case 79:$e.commit(Se[xe],Se[xe-4],Se[xe-2],"");break;case 80:$e.commit(Se[xe-2],Se[xe-4],Se[xe],"");break;case 81:$e.commit(Se[xe-4],Se[xe],$e.commitType.NORMAL,Se[xe-2]);break;case 82:$e.commit(Se[xe-4],Se[xe-2],$e.commitType.NORMAL,Se[xe]);break;case 83:$e.commit(Se[xe-2],Se[xe],$e.commitType.NORMAL,Se[xe-4]);break;case 84:$e.commit(Se[xe],Se[xe-2],$e.commitType.NORMAL,Se[xe-4]);break;case 85:$e.commit(Se[xe],Se[xe-4],$e.commitType.NORMAL,Se[xe-2]);break;case 86:$e.commit(Se[xe-2],Se[xe-4],$e.commitType.NORMAL,Se[xe]);break;case 87:$e.commit(Se[xe-6],Se[xe-4],Se[xe-2],Se[xe]);break;case 88:$e.commit(Se[xe-6],Se[xe-4],Se[xe],Se[xe-2]);break;case 89:$e.commit(Se[xe-6],Se[xe-2],Se[xe-4],Se[xe]);break;case 90:$e.commit(Se[xe-6],Se[xe],Se[xe-4],Se[xe-2]);break;case 91:$e.commit(Se[xe-6],Se[xe-2],Se[xe],Se[xe-4]);break;case 92:$e.commit(Se[xe-6],Se[xe],Se[xe-2],Se[xe-4]);break;case 93:$e.commit(Se[xe-4],Se[xe-6],Se[xe-2],Se[xe]);break;case 94:$e.commit(Se[xe-4],Se[xe-6],Se[xe],Se[xe-2]);break;case 95:$e.commit(Se[xe-2],Se[xe-6],Se[xe-4],Se[xe]);break;case 96:$e.commit(Se[xe],Se[xe-6],Se[xe-4],Se[xe-2]);break;case 97:$e.commit(Se[xe-2],Se[xe-6],Se[xe],Se[xe-4]);break;case 98:$e.commit(Se[xe],Se[xe-6],Se[xe-2],Se[xe-4]);break;case 99:$e.commit(Se[xe],Se[xe-4],Se[xe-2],Se[xe-6]);break;case 100:$e.commit(Se[xe-2],Se[xe-4],Se[xe],Se[xe-6]);break;case 101:$e.commit(Se[xe],Se[xe-2],Se[xe-4],Se[xe-6]);break;case 102:$e.commit(Se[xe-2],Se[xe],Se[xe-4],Se[xe-6]);break;case 103:$e.commit(Se[xe-4],Se[xe-2],Se[xe],Se[xe-6]);break;case 104:$e.commit(Se[xe-4],Se[xe],Se[xe-2],Se[xe-6]);break;case 105:$e.commit(Se[xe-2],Se[xe-4],Se[xe-6],Se[xe]);break;case 106:$e.commit(Se[xe],Se[xe-4],Se[xe-6],Se[xe-2]);break;case 107:$e.commit(Se[xe-2],Se[xe],Se[xe-6],Se[xe-4]);break;case 108:$e.commit(Se[xe],Se[xe-2],Se[xe-6],Se[xe-4]);break;case 109:$e.commit(Se[xe-4],Se[xe-2],Se[xe-6],Se[xe]);break;case 110:$e.commit(Se[xe-4],Se[xe],Se[xe-6],Se[xe-2]);break;case 111:this.$="";break;case 112:this.$=Se[xe];break;case 113:this.$=$e.commitType.NORMAL;break;case 114:this.$=$e.commitType.REVERSE;break;case 115:this.$=$e.commitType.HIGHLIGHT;break;case 118:$e.parseDirective("%%{","open_directive");break;case 119:$e.parseDirective(Se[xe],"type_directive");break;case 120:Se[xe]=Se[xe].trim().replace(/'/g,'"'),$e.parseDirective(Se[xe],"arg_directive");break;case 121:$e.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:H,8:U,14:W,46:8,50:G,55:X},{1:[3]},{3:10,4:2,5:3,6:H,8:U,14:W,46:8,50:G,55:X},{3:11,4:2,5:3,6:H,8:U,14:W,46:8,50:G,55:X},{7:12,8:Z,9:[1,13],10:[1,14],11:15,14:Q},C(ee,[2,124]),C(ee,[2,125]),C(ee,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:Z,11:15,14:Q},{9:[1,21]},C(ie,[2,10],{12:22,13:[1,23]}),C(te,[2,9]),{9:[1,25],48:24,53:ne},C([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:Z,11:15,14:Q},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},C(te,[2,8]),C(ae,[2,116]),{49:45,52:[1,46]},C(ae,[2,121]),{1:[2,4]},{8:[1,47]},C(ie,[2,11]),{4:48,8:U,14:W,55:X},C(ie,[2,13]),C(oe,[2,14]),C(oe,[2,15]),C(oe,[2,16]),{21:[1,49]},{23:[1,50]},C(oe,[2,19]),C(oe,[2,20]),C(oe,[2,21]),{28:51,34:se,54:le},C(oe,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:se,54:le},{33:[1,61],35:[1,62]},{28:63,34:se,54:le},{48:64,53:ne},{53:[2,120]},{1:[2,5]},C(ie,[2,12]),C(oe,[2,17]),C(oe,[2,18]),C(oe,[2,22]),C(ce,[2,122]),C(ce,[2,123]),C(oe,[2,46]),{34:[1,65]},{39:66,43:ue,44:de,45:ve},{34:[1,70]},{34:[1,71]},C(oe,[2,112]),C(oe,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},C(oe,[2,23],{30:[1,78]}),C(ae,[2,117]),C(oe,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),C(oe,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),C(ge,[2,113]),C(ge,[2,114]),C(ge,[2,115]),C(oe,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),C(oe,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:ue,44:de,45:ve},{34:[1,93]},C(oe,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:ue,44:de,45:ve},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:ue,44:de,45:ve},{34:[1,106]},{34:[1,107]},{39:108,43:ue,44:de,45:ve},{34:[1,109]},C(oe,[2,31],{35:[1,111],38:[1,110]}),C(oe,[2,32],{33:[1,113],35:[1,112]}),C(oe,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},C(oe,[2,24]),C(oe,[2,49],{33:[1,120],42:[1,121]}),C(oe,[2,53],{38:[1,122],42:[1,123]}),C(oe,[2,63],{33:[1,125],38:[1,124]}),C(oe,[2,50],{33:[1,126],42:[1,127]}),C(oe,[2,55],{35:[1,128],42:[1,129]}),C(oe,[2,66],{33:[1,131],35:[1,130]}),C(oe,[2,52],{38:[1,132],42:[1,133]}),C(oe,[2,54],{35:[1,134],42:[1,135]}),C(oe,[2,67],{35:[1,137],38:[1,136]}),C(oe,[2,64],{33:[1,139],38:[1,138]}),C(oe,[2,65],{33:[1,141],35:[1,140]}),C(oe,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:ue,44:de,45:ve},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:ue,44:de,45:ve},C(oe,[2,26]),C(oe,[2,27]),C(oe,[2,28]),C(oe,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:ue,44:de,45:ve},{34:[1,153]},{39:154,43:ue,44:de,45:ve},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:ue,44:de,45:ve},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:ue,44:de,45:ve},{34:[1,167]},{39:168,43:ue,44:de,45:ve},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:ue,44:de,45:ve},{34:[1,173]},C(oe,[2,37],{35:[1,174]}),C(oe,[2,38],{38:[1,175]}),C(oe,[2,36],{33:[1,176]}),C(oe,[2,39],{35:[1,177]}),C(oe,[2,34],{38:[1,178]}),C(oe,[2,35],{33:[1,179]}),C(oe,[2,60],{42:[1,180]}),C(oe,[2,73],{33:[1,181]}),C(oe,[2,61],{42:[1,182]}),C(oe,[2,84],{38:[1,183]}),C(oe,[2,74],{33:[1,184]}),C(oe,[2,83],{38:[1,185]}),C(oe,[2,59],{42:[1,186]}),C(oe,[2,72],{33:[1,187]}),C(oe,[2,58],{42:[1,188]}),C(oe,[2,78],{35:[1,189]}),C(oe,[2,71],{33:[1,190]}),C(oe,[2,77],{35:[1,191]}),C(oe,[2,57],{42:[1,192]}),C(oe,[2,85],{38:[1,193]}),C(oe,[2,56],{42:[1,194]}),C(oe,[2,79],{35:[1,195]}),C(oe,[2,80],{35:[1,196]}),C(oe,[2,86],{38:[1,197]}),C(oe,[2,70],{33:[1,198]}),C(oe,[2,81],{38:[1,199]}),C(oe,[2,69],{33:[1,200]}),C(oe,[2,75],{35:[1,201]}),C(oe,[2,76],{35:[1,202]}),C(oe,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:ue,44:de,45:ve},{34:[1,206]},{34:[1,207]},{39:208,43:ue,44:de,45:ve},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:ue,44:de,45:ve},{34:[1,214]},{39:215,43:ue,44:de,45:ve},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:ue,44:de,45:ve},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:ue,44:de,45:ve},{34:[1,228]},{39:229,43:ue,44:de,45:ve},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:ue,44:de,45:ve},C(oe,[2,40]),C(oe,[2,42]),C(oe,[2,41]),C(oe,[2,43]),C(oe,[2,45]),C(oe,[2,44]),C(oe,[2,101]),C(oe,[2,102]),C(oe,[2,99]),C(oe,[2,100]),C(oe,[2,104]),C(oe,[2,103]),C(oe,[2,108]),C(oe,[2,107]),C(oe,[2,106]),C(oe,[2,105]),C(oe,[2,110]),C(oe,[2,109]),C(oe,[2,98]),C(oe,[2,97]),C(oe,[2,96]),C(oe,[2,95]),C(oe,[2,93]),C(oe,[2,94]),C(oe,[2,92]),C(oe,[2,91]),C(oe,[2,90]),C(oe,[2,89]),C(oe,[2,87]),C(oe,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(pe,fe){if(fe.recoverable)this.trace(pe);else{var ye=new Error(pe);throw ye.hash=fe,ye}},parse:function(pe){var fe=this,ye=[0],$e=[],we=[null],Se=[],Te=this.table,xe="",ke=0,Ie=0,Ae=2,Me=1,Fe=Se.slice.call(arguments,1),Be=Object.create(this.lexer),Ne={yy:{}};for(var Ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ve)&&(Ne.yy[Ve]=this.yy[Ve]);Be.setInput(pe,Ne.yy),Ne.yy.lexer=Be,Ne.yy.parser=this,typeof Be.yylloc>"u"&&(Be.yylloc={});var Le=Be.yylloc;Se.push(Le);var De=Be.options&&Be.options.ranges;typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Qe;return Qe=$e.pop()||Be.lex()||Me,typeof Qe!="number"&&(Qe instanceof Array&&($e=Qe,Qe=$e.pop()),Qe=fe.symbols_[Qe]||Qe),Qe}for(var ze,Ge,qe,Ke,Ee={},Ce,Pe,Re,Ze;;){if(Ge=ye[ye.length-1],this.defaultActions[Ge]?qe=this.defaultActions[Ge]:((ze===null||typeof ze>"u")&&(ze=Je()),qe=Te[Ge]&&Te[Ge][ze]),typeof qe>"u"||!qe.length||!qe[0]){var Oe="";Ze=[];for(Ce in Te[Ge])this.terminals_[Ce]&&Ce>Ae&&Ze.push("'"+this.terminals_[Ce]+"'");Be.showPosition?Oe="Parse error on line "+(ke+1)+`:
|
||
`+Be.showPosition()+`
|
||
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[ze]||ze)+"'":Oe="Parse error on line "+(ke+1)+": Unexpected "+(ze==Me?"end of input":"'"+(this.terminals_[ze]||ze)+"'"),this.parseError(Oe,{text:Be.match,token:this.terminals_[ze]||ze,line:Be.yylineno,loc:Le,expected:Ze})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+ze);switch(qe[0]){case 1:ye.push(ze),we.push(Be.yytext),Se.push(Be.yylloc),ye.push(qe[1]),ze=null,Ie=Be.yyleng,xe=Be.yytext,ke=Be.yylineno,Le=Be.yylloc;break;case 2:if(Pe=this.productions_[qe[1]][1],Ee.$=we[we.length-Pe],Ee._$={first_line:Se[Se.length-(Pe||1)].first_line,last_line:Se[Se.length-1].last_line,first_column:Se[Se.length-(Pe||1)].first_column,last_column:Se[Se.length-1].last_column},De&&(Ee._$.range=[Se[Se.length-(Pe||1)].range[0],Se[Se.length-1].range[1]]),Ke=this.performAction.apply(Ee,[xe,Ie,ke,Ne.yy,qe[1],we,Se].concat(Fe)),typeof Ke<"u")return Ke;Pe&&(ye=ye.slice(0,-1*Pe*2),we=we.slice(0,-1*Pe),Se=Se.slice(0,-1*Pe)),ye.push(this.productions_[qe[1]][0]),we.push(Ee.$),Se.push(Ee._$),Re=Te[ye[ye.length-2]][ye[ye.length-1]],ye.push(Re);break;case 3:return!0}}return!0}},me=function(){var be={EOF:1,parseError:function(fe,ye){if(this.yy.parser)this.yy.parser.parseError(fe,ye);else throw new Error(fe)},setInput:function(pe,fe){return this.yy=fe||this.yy||{},this._input=pe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var pe=this._input[0];this.yytext+=pe,this.yyleng++,this.offset++,this.match+=pe,this.matched+=pe;var fe=pe.match(/(?:\r\n?|\n).*/g);return fe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),pe},unput:function(pe){var fe=pe.length,ye=pe.split(/(?:\r\n?|\n)/g);this._input=pe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var $e=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ye.length-1&&(this.yylineno-=ye.length-1);var we=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ye?(ye.length===$e.length?this.yylloc.first_column:0)+$e[$e.length-ye.length].length-ye[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[we[0],we[0]+this.yyleng-fe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(pe){this.unput(this.match.slice(pe))},pastInput:function(){var pe=this.matched.substr(0,this.matched.length-this.match.length);return(pe.length>20?"...":"")+pe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var pe=this.match;return pe.length<20&&(pe+=this._input.substr(0,20-pe.length)),(pe.substr(0,20)+(pe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var pe=this.pastInput(),fe=new Array(pe.length+1).join("-");return pe+this.upcomingInput()+`
|
||
`+fe+"^"},test_match:function(pe,fe){var ye,$e,we;if(this.options.backtrack_lexer&&(we={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(we.yylloc.range=this.yylloc.range.slice(0))),$e=pe[0].match(/(?:\r\n?|\n).*/g),$e&&(this.yylineno+=$e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$e?$e[$e.length-1].length-$e[$e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+pe[0].length},this.yytext+=pe[0],this.match+=pe[0],this.matches=pe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(pe[0].length),this.matched+=pe[0],ye=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ye)return ye;if(this._backtrack){for(var Se in we)this[Se]=we[Se];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var pe,fe,ye,$e;this._more||(this.yytext="",this.match="");for(var we=this._currentRules(),Se=0;Se<we.length;Se++)if(ye=this._input.match(this.rules[we[Se]]),ye&&(!fe||ye[0].length>fe[0].length)){if(fe=ye,$e=Se,this.options.backtrack_lexer){if(pe=this.test_match(ye,we[Se]),pe!==!1)return pe;if(this._backtrack){fe=!1;continue}else return!1}else if(!this.options.flex)break}return fe?(pe=this.test_match(fe,we[$e]),pe!==!1?pe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var fe=this.next();return fe||this.lex()},begin:function(fe){this.conditionStack.push(fe)},popState:function(){var fe=this.conditionStack.length-1;return fe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(fe){return fe=this.conditionStack.length-1-Math.abs(fe||0),fe>=0?this.conditionStack[fe]:"INITIAL"},pushState:function(fe){this.begin(fe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(fe,ye,$e,we){switch($e){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return be}();he.lexer=me;function _e(){this.yy={}}return _e.prototype=he,he.Parser=_e,new _e}();parser$c.parser=parser$c;const gitGraphParser=parser$c,gitGraphDetector=C=>C.match(/^\s*gitGraph/)!==null;let mainBranchName=getConfig$1().gitGraph.mainBranchName,mainBranchOrder=getConfig$1().gitGraph.mainBranchOrder,commits={},head=null,branchesConfig={};branchesConfig[mainBranchName]={name:mainBranchName,order:mainBranchOrder};let branches={};branches[mainBranchName]=head;let curBranch=mainBranchName,direction$3="LR",seq$2=0;function getId(){return random$1({length:7})}const parseDirective$a=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)};function uniqBy(C,H){const U=Object.create(null);return C.reduce((W,G)=>{const X=H(G);return U[X]||(U[X]=!0,W.push(G)),W},[])}const setDirection$3=function(C){direction$3=C};let options={};const setOptions=function(C){log$1.debug("options str",C),C=C&&C.trim(),C=C||"{}";try{options=JSON.parse(C)}catch(H){log$1.error("error while parsing gitGraph options",H.message)}},getOptions=function(){return options},commit=function(C,H,U,W){log$1.debug("Entering commit:",C,H,U,W),H=common$1.sanitizeText(H,getConfig$1()),C=common$1.sanitizeText(C,getConfig$1()),W=common$1.sanitizeText(W,getConfig$1());const G={id:H||seq$2+"-"+getId(),message:C,seq:seq$2++,type:U||commitType$1.NORMAL,tag:W||"",parents:head==null?[]:[head.id],branch:curBranch};head=G,commits[G.id]=G,branches[curBranch]=G.id,log$1.debug("in pushCommit "+G.id)},branch=function(C,H){if(C=common$1.sanitizeText(C,getConfig$1()),branches[C]===void 0)branches[C]=head!=null?head.id:null,branchesConfig[C]={name:C,order:H?parseInt(H,10):null},checkout(C),log$1.debug("in createBranch");else{let U=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+C+'")');throw U.hash={text:"branch "+C,token:"branch "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+C+'"']},U}},merge$2=function(C,H,U,W){C=common$1.sanitizeText(C,getConfig$1()),H=common$1.sanitizeText(H,getConfig$1());const G=commits[branches[curBranch]],X=commits[branches[C]];if(curBranch===C){let Q=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw Q.hash={text:"merge "+C,token:"merge "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},Q}else if(G===void 0||!G){let Q=new Error('Incorrect usage of "merge". Current branch ('+curBranch+")has no commits");throw Q.hash={text:"merge "+C,token:"merge "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},Q}else if(branches[C]===void 0){let Q=new Error('Incorrect usage of "merge". Branch to be merged ('+C+") does not exist");throw Q.hash={text:"merge "+C,token:"merge "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+C]},Q}else if(X===void 0||!X){let Q=new Error('Incorrect usage of "merge". Branch to be merged ('+C+") has no commits");throw Q.hash={text:"merge "+C,token:"merge "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},Q}else if(G===X){let Q=new Error('Incorrect usage of "merge". Both branches have same head');throw Q.hash={text:"merge "+C,token:"merge "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},Q}else if(H&&commits[H]!==void 0){let Q=new Error('Incorrect usage of "merge". Commit with id:'+H+" already exists, use different custom Id");throw Q.hash={text:"merge "+C+H+U+W,token:"merge "+C+H+U+W,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+C+" "+H+"_UNIQUE "+U+" "+W]},Q}const Z={id:H||seq$2+"-"+getId(),message:"merged branch "+C+" into "+curBranch,seq:seq$2++,parents:[head==null?null:head.id,branches[C]],branch:curBranch,type:commitType$1.MERGE,customType:U,customId:!!H,tag:W||""};head=Z,commits[Z.id]=Z,branches[curBranch]=Z.id,log$1.debug(branches),log$1.debug("in mergeBranch")},cherryPick=function(C,H,U){if(log$1.debug("Entering cherryPick:",C,H,U),C=common$1.sanitizeText(C,getConfig$1()),H=common$1.sanitizeText(H,getConfig$1()),U=common$1.sanitizeText(U,getConfig$1()),!C||commits[C]===void 0){let X=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw X.hash={text:"cherryPick "+C+" "+H,token:"cherryPick "+C+" "+H,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},X}let W=commits[C],G=W.branch;if(W.type===commitType$1.MERGE){let X=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw X.hash={text:"cherryPick "+C+" "+H,token:"cherryPick "+C+" "+H,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},X}if(!H||commits[H]===void 0){if(G===curBranch){let Q=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw Q.hash={text:"cherryPick "+C+" "+H,token:"cherryPick "+C+" "+H,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},Q}const X=commits[branches[curBranch]];if(X===void 0||!X){let Q=new Error('Incorrect usage of "cherry-pick". Current branch ('+curBranch+")has no commits");throw Q.hash={text:"cherryPick "+C+" "+H,token:"cherryPick "+C+" "+H,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},Q}const Z={id:seq$2+"-"+getId(),message:"cherry-picked "+W+" into "+curBranch,seq:seq$2++,parents:[head==null?null:head.id,W.id],branch:curBranch,type:commitType$1.CHERRY_PICK,tag:U!=null?U:"cherry-pick:"+W.id};head=Z,commits[Z.id]=Z,branches[curBranch]=Z.id,log$1.debug(branches),log$1.debug("in cherryPick")}},checkout=function(C){if(C=common$1.sanitizeText(C,getConfig$1()),branches[C]===void 0){let H=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+C+'")');throw H.hash={text:"checkout "+C,token:"checkout "+C,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+C+'"']},H}else{curBranch=C;const H=branches[curBranch];head=commits[H]}};function upsert(C,H,U){const W=C.indexOf(H);W===-1?C.push(U):C.splice(W,1,U)}function prettyPrintCommitHistory(C){const H=C.reduce((G,X)=>G.seq>X.seq?G:X,C[0]);let U="";C.forEach(function(G){G===H?U+=" *":U+=" |"});const W=[U,H.id,H.seq];for(let G in branches)branches[G]===H.id&&W.push(G);if(log$1.debug(W.join(" ")),H.parents&&H.parents.length==2){const G=commits[H.parents[0]];upsert(C,H,G),C.push(commits[H.parents[1]])}else{if(H.parents.length==0)return;{const G=commits[H.parents];upsert(C,H,G)}}C=uniqBy(C,G=>G.id),prettyPrintCommitHistory(C)}const prettyPrint=function(){log$1.debug(commits);const C=getCommitsArray()[0];prettyPrintCommitHistory([C])},clear$f=function(){commits={},head=null;let C=getConfig$1().gitGraph.mainBranchName,H=getConfig$1().gitGraph.mainBranchOrder;branches={},branches[C]=null,branchesConfig={},branchesConfig[C]={name:C,order:H},curBranch=C,seq$2=0,clear$g()},getBranchesAsObjArray=function(){return Object.values(branchesConfig).map((H,U)=>H.order!==null?H:{...H,order:parseFloat(`0.${U}`,10)}).sort((H,U)=>H.order-U.order).map(({name:H})=>({name:H}))},getBranches=function(){return branches},getCommits=function(){return commits},getCommitsArray=function(){const C=Object.keys(commits).map(function(H){return commits[H]});return C.forEach(function(H){log$1.debug(H.id)}),C.sort((H,U)=>H.seq-U.seq),C},getCurrentBranch=function(){return curBranch},getDirection$3=function(){return direction$3},getHead=function(){return head},commitType$1={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gitGraphDb={parseDirective:parseDirective$a,getConfig:()=>getConfig$1().gitGraph,setDirection:setDirection$3,setOptions,getOptions,commit,branch,merge:merge$2,cherryPick,checkout,prettyPrint,clear:clear$f,getBranchesAsObjArray,getBranches,getCommits,getCommitsArray,getCurrentBranch,getDirection:getDirection$3,getHead,setAccTitle,getAccTitle,getAccDescription,setAccDescription,setDiagramTitle,getDiagramTitle,commitType:commitType$1};let allCommitsDict={};const commitType={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},THEME_COLOR_LIMIT=8;let branchPos={},commitPos={},lanes=[],maxPos=0;const clear$e=()=>{branchPos={},commitPos={},allCommitsDict={},maxPos=0,lanes=[]},drawText$2=C=>{const H=document.createElementNS("http://www.w3.org/2000/svg","text");let U=[];typeof C=="string"?U=C.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(C)?U=C:U=[];for(const W of U){const G=document.createElementNS("http://www.w3.org/2000/svg","tspan");G.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),G.setAttribute("dy","1em"),G.setAttribute("x","0"),G.setAttribute("class","row"),G.textContent=W.trim(),H.appendChild(G)}return H},drawCommits=(C,H,U)=>{const W=getConfig().gitGraph,G=C.append("g").attr("class","commit-bullets"),X=C.append("g").attr("class","commit-labels");let Z=0;Object.keys(H).sort((ie,te)=>H[ie].seq-H[te].seq).forEach(ie=>{const te=H[ie],ne=branchPos[te.branch].pos,ae=Z+10;if(U){let oe,se=te.customType!==void 0&&te.customType!==""?te.customType:te.type;switch(se){case commitType.NORMAL:oe="commit-normal";break;case commitType.REVERSE:oe="commit-reverse";break;case commitType.HIGHLIGHT:oe="commit-highlight";break;case commitType.MERGE:oe="commit-merge";break;case commitType.CHERRY_PICK:oe="commit-cherry-pick";break;default:oe="commit-normal"}if(se===commitType.HIGHLIGHT){const le=G.append("rect");le.attr("x",ae-10),le.attr("y",ne-10),le.attr("height",20),le.attr("width",20),le.attr("class",`commit ${te.id} commit-highlight${branchPos[te.branch].index%THEME_COLOR_LIMIT} ${oe}-outer`),G.append("rect").attr("x",ae-6).attr("y",ne-6).attr("height",12).attr("width",12).attr("class",`commit ${te.id} commit${branchPos[te.branch].index%THEME_COLOR_LIMIT} ${oe}-inner`)}else if(se===commitType.CHERRY_PICK)G.append("circle").attr("cx",ae).attr("cy",ne).attr("r",10).attr("class",`commit ${te.id} ${oe}`),G.append("circle").attr("cx",ae-3).attr("cy",ne+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${te.id} ${oe}`),G.append("circle").attr("cx",ae+3).attr("cy",ne+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${te.id} ${oe}`),G.append("line").attr("x1",ae+3).attr("y1",ne+1).attr("x2",ae).attr("y2",ne-5).attr("stroke","#fff").attr("class",`commit ${te.id} ${oe}`),G.append("line").attr("x1",ae-3).attr("y1",ne+1).attr("x2",ae).attr("y2",ne-5).attr("stroke","#fff").attr("class",`commit ${te.id} ${oe}`);else{const le=G.append("circle");if(le.attr("cx",ae),le.attr("cy",ne),le.attr("r",te.type===commitType.MERGE?9:10),le.attr("class",`commit ${te.id} commit${branchPos[te.branch].index%THEME_COLOR_LIMIT}`),se===commitType.MERGE){const ce=G.append("circle");ce.attr("cx",ae),ce.attr("cy",ne),ce.attr("r",6),ce.attr("class",`commit ${oe} ${te.id} commit${branchPos[te.branch].index%THEME_COLOR_LIMIT}`)}se===commitType.REVERSE&&G.append("path").attr("d",`M ${ae-5},${ne-5}L${ae+5},${ne+5}M${ae-5},${ne+5}L${ae+5},${ne-5}`).attr("class",`commit ${oe} ${te.id} commit${branchPos[te.branch].index%THEME_COLOR_LIMIT}`)}}if(commitPos[te.id]={x:Z+10,y:ne},U){if(te.type!==commitType.CHERRY_PICK&&(te.customId&&te.type===commitType.MERGE||te.type!==commitType.MERGE)&&W.showCommitLabel){const le=X.append("g"),ce=le.insert("rect").attr("class","commit-label-bkg"),ue=le.append("text").attr("x",Z).attr("y",ne+25).attr("class","commit-label").text(te.id);let de=ue.node().getBBox();if(ce.attr("x",Z+10-de.width/2-2).attr("y",ne+13.5).attr("width",de.width+2*2).attr("height",de.height+2*2),ue.attr("x",Z+10-de.width/2),W.rotateCommitLabel){let ve=-7.5-(de.width+10)/25*9.5,ge=10+de.width/25*8.5;le.attr("transform","translate("+ve+", "+ge+") rotate("+-45+", "+Z+", "+ne+")")}}if(te.tag){const le=X.insert("polygon"),ce=X.append("circle"),ue=X.append("text").attr("y",ne-16).attr("class","tag-label").text(te.tag);let de=ue.node().getBBox();ue.attr("x",Z+10-de.width/2);const ve=de.height/2,ge=ne-19.2;le.attr("class","tag-label-bkg").attr("points",`
|
||
${Z-de.width/2-4/2},${ge+2}
|
||
${Z-de.width/2-4/2},${ge-2}
|
||
${Z+10-de.width/2-4},${ge-ve-2}
|
||
${Z+10+de.width/2+4},${ge-ve-2}
|
||
${Z+10+de.width/2+4},${ge+ve+2}
|
||
${Z+10-de.width/2-4},${ge+ve+2}`),ce.attr("cx",Z-de.width/2+4/2).attr("cy",ge).attr("r",1.5).attr("class","tag-hole")}}Z+=50,Z>maxPos&&(maxPos=Z)})},hasOverlappingCommits=(C,H,U)=>Object.keys(U).filter(X=>U[X].branch===H.branch&&U[X].seq>C.seq&&U[X].seq<H.seq).length>0,findLane=(C,H,U=0)=>{const W=C+Math.abs(C-H)/2;if(U>5)return W;if(lanes.every(Z=>Math.abs(Z-W)>=10))return lanes.push(W),W;const X=Math.abs(C-H);return findLane(C,H-X/5,U+1)},drawArrow=(C,H,U,W)=>{const G=commitPos[H.id],X=commitPos[U.id],Z=hasOverlappingCommits(H,U,W);let Q="",ee="",ie=0,te=0,ne=branchPos[U.branch].index,ae;if(Z){Q="A 10 10, 0, 0, 0,",ee="A 10 10, 0, 0, 1,",ie=10,te=10,ne=branchPos[U.branch].index;const oe=G.y<X.y?findLane(G.y,X.y):findLane(X.y,G.y);G.y<X.y?ae=`M ${G.x} ${G.y} L ${G.x} ${oe-ie} ${Q} ${G.x+te} ${oe} L ${X.x-ie} ${oe} ${ee} ${X.x} ${oe+te} L ${X.x} ${X.y}`:ae=`M ${G.x} ${G.y} L ${G.x} ${oe+ie} ${ee} ${G.x+te} ${oe} L ${X.x-ie} ${oe} ${Q} ${X.x} ${oe-te} L ${X.x} ${X.y}`}else G.y<X.y&&(Q="A 20 20, 0, 0, 0,",ie=20,te=20,ne=branchPos[U.branch].index,ae=`M ${G.x} ${G.y} L ${G.x} ${X.y-ie} ${Q} ${G.x+te} ${X.y} L ${X.x} ${X.y}`),G.y>X.y&&(Q="A 20 20, 0, 0, 0,",ie=20,te=20,ne=branchPos[H.branch].index,ae=`M ${G.x} ${G.y} L ${X.x-ie} ${G.y} ${Q} ${X.x} ${G.y-te} L ${X.x} ${X.y}`),G.y===X.y&&(ne=branchPos[H.branch].index,ae=`M ${G.x} ${G.y} L ${G.x} ${X.y-ie} ${Q} ${G.x+te} ${X.y} L ${X.x} ${X.y}`);C.append("path").attr("d",ae).attr("class","arrow arrow"+ne%THEME_COLOR_LIMIT)},drawArrows=(C,H)=>{const U=C.append("g").attr("class","commit-arrows");Object.keys(H).forEach(W=>{const G=H[W];G.parents&&G.parents.length>0&&G.parents.forEach(X=>{drawArrow(U,H[X],G,H)})})},drawBranches=(C,H)=>{const U=getConfig().gitGraph,W=C.append("g");H.forEach((G,X)=>{const Z=X%THEME_COLOR_LIMIT,Q=branchPos[G.name].pos,ee=W.append("line");ee.attr("x1",0),ee.attr("y1",Q),ee.attr("x2",maxPos),ee.attr("y2",Q),ee.attr("class","branch branch"+Z),lanes.push(Q);let ie=G.name;const te=drawText$2(ie),ne=W.insert("rect"),oe=W.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Z);oe.node().appendChild(te);let se=te.getBBox();ne.attr("class","branchLabelBkg label"+Z).attr("rx",4).attr("ry",4).attr("x",-se.width-4-(U.rotateCommitLabel===!0?30:0)).attr("y",-se.height/2+8).attr("width",se.width+18).attr("height",se.height+4),oe.attr("transform","translate("+(-se.width-14-(U.rotateCommitLabel===!0?30:0))+", "+(Q-se.height/2-1)+")"),ne.attr("transform","translate("+-19+", "+(Q-se.height/2)+")")})},draw$f=function(C,H,U,W){var G;clear$e();const X=getConfig(),Z=X.gitGraph;log$1.debug("in gitgraph renderer",C+`
|
||
`,"id:",H,U),allCommitsDict=W.db.getCommits();const Q=W.db.getBranchesAsObjArray();let ee=0;Q.forEach((te,ne)=>{branchPos[te.name]={pos:ee,index:ne},ee+=50+(Z.rotateCommitLabel?40:0)});const ie=select(`[id="${H}"]`);drawCommits(ie,allCommitsDict,!1),Z.showBranches&&drawBranches(ie,Q),drawArrows(ie,allCommitsDict),drawCommits(ie,allCommitsDict,!0),utils$d.insertTitle(ie,"gitTitleText",Z.titleTopMargin,W.db.getDiagramTitle()),setupGraphViewbox(void 0,ie,Z.diagramPadding,(G=Z.useMaxWidth)!=null?G:X.useMaxWidth)},gitGraphRenderer={draw:draw$f},getStyles=C=>`
|
||
.commit-id,
|
||
.commit-msg,
|
||
.branch-label {
|
||
fill: lightgrey;
|
||
color: lightgrey;
|
||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
||
font-family: var(--mermaid-font-family);
|
||
}
|
||
${[0,1,2,3,4,5,6,7].map(H=>`
|
||
.branch-label${H} { fill: ${C["gitBranchLabel"+H]}; }
|
||
.commit${H} { stroke: ${C["git"+H]}; fill: ${C["git"+H]}; }
|
||
.commit-highlight${H} { stroke: ${C["gitInv"+H]}; fill: ${C["gitInv"+H]}; }
|
||
.label${H} { fill: ${C["git"+H]}; }
|
||
.arrow${H} { stroke: ${C["git"+H]}; }
|
||
`).join(`
|
||
`)}
|
||
|
||
.branch {
|
||
stroke-width: 1;
|
||
stroke: ${C.lineColor};
|
||
stroke-dasharray: 2;
|
||
}
|
||
.commit-label { font-size: ${C.commitLabelFontSize}; fill: ${C.commitLabelColor};}
|
||
.commit-label-bkg { font-size: ${C.commitLabelFontSize}; fill: ${C.commitLabelBackground}; opacity: 0.5; }
|
||
.tag-label { font-size: ${C.tagLabelFontSize}; fill: ${C.tagLabelColor};}
|
||
.tag-label-bkg { fill: ${C.tagLabelBackground}; stroke: ${C.tagLabelBorder}; }
|
||
.tag-hole { fill: ${C.textColor}; }
|
||
|
||
.commit-merge {
|
||
stroke: ${C.primaryColor};
|
||
fill: ${C.primaryColor};
|
||
}
|
||
.commit-reverse {
|
||
stroke: ${C.primaryColor};
|
||
fill: ${C.primaryColor};
|
||
stroke-width: 3;
|
||
}
|
||
.commit-highlight-outer {
|
||
}
|
||
.commit-highlight-inner {
|
||
stroke: ${C.primaryColor};
|
||
fill: ${C.primaryColor};
|
||
}
|
||
|
||
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
||
.gitTitleText {
|
||
text-anchor: middle;
|
||
font-size: 18px;
|
||
fill: ${C.textColor};
|
||
}
|
||
}
|
||
`,gitGraphStyles=getStyles;var parser$b=function(){var C=function(lt,ct,vt,_t){for(vt=vt||{},_t=lt.length;_t--;vt[lt[_t]]=ct);return vt},H=[1,6],U=[1,7],W=[1,8],G=[1,9],X=[1,16],Z=[1,11],Q=[1,12],ee=[1,13],ie=[1,14],te=[1,15],ne=[1,27],ae=[1,33],oe=[1,34],se=[1,35],le=[1,36],ce=[1,37],ue=[1,72],de=[1,73],ve=[1,74],ge=[1,75],he=[1,76],me=[1,77],_e=[1,78],be=[1,38],pe=[1,39],fe=[1,40],ye=[1,41],$e=[1,42],we=[1,43],Se=[1,44],Te=[1,45],xe=[1,46],ke=[1,47],Ie=[1,48],Ae=[1,49],Me=[1,50],Fe=[1,51],Be=[1,52],Ne=[1,53],Ve=[1,54],Le=[1,55],De=[1,56],Je=[1,57],ze=[1,59],Ge=[1,60],qe=[1,61],Ke=[1,62],Ee=[1,63],Ce=[1,64],Pe=[1,65],Re=[1,66],Ze=[1,67],Oe=[1,68],Qe=[1,69],Xe=[24,52],et=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],We=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],He=[1,94],Ye=[1,95],nt=[1,96],tt=[1,97],at=[15,24,52],St=[7,8,9,10,18,22,25,26,27,28],st=[15,24,43,52],it=[15,24,43,52,86,87,89,90],pt=[15,43],wt=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(ct,vt,_t,rt,ut,ot,Tt){var ft=ot.length-1;switch(ut){case 4:rt.setDirection("TB");break;case 5:rt.setDirection("BT");break;case 6:rt.setDirection("RL");break;case 7:rt.setDirection("LR");break;case 11:rt.parseDirective("%%{","open_directive");break;case 12:break;case 13:ot[ft]=ot[ft].trim().replace(/'/g,'"'),rt.parseDirective(ot[ft],"arg_directive");break;case 14:rt.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:rt.setC4Type(ot[ft-3]);break;case 26:rt.setTitle(ot[ft].substring(6)),this.$=ot[ft].substring(6);break;case 27:rt.setAccDescription(ot[ft].substring(15)),this.$=ot[ft].substring(15);break;case 28:this.$=ot[ft].trim(),rt.setTitle(this.$);break;case 29:case 30:this.$=ot[ft].trim(),rt.setAccDescription(this.$);break;case 35:case 36:ot[ft].splice(2,0,"ENTERPRISE"),rt.addPersonOrSystemBoundary(...ot[ft]),this.$=ot[ft];break;case 37:rt.addPersonOrSystemBoundary(...ot[ft]),this.$=ot[ft];break;case 38:ot[ft].splice(2,0,"CONTAINER"),rt.addContainerBoundary(...ot[ft]),this.$=ot[ft];break;case 39:rt.addDeploymentNode("node",...ot[ft]),this.$=ot[ft];break;case 40:rt.addDeploymentNode("nodeL",...ot[ft]),this.$=ot[ft];break;case 41:rt.addDeploymentNode("nodeR",...ot[ft]),this.$=ot[ft];break;case 42:rt.popBoundaryParseStack();break;case 46:rt.addPersonOrSystem("person",...ot[ft]),this.$=ot[ft];break;case 47:rt.addPersonOrSystem("external_person",...ot[ft]),this.$=ot[ft];break;case 48:rt.addPersonOrSystem("system",...ot[ft]),this.$=ot[ft];break;case 49:rt.addPersonOrSystem("system_db",...ot[ft]),this.$=ot[ft];break;case 50:rt.addPersonOrSystem("system_queue",...ot[ft]),this.$=ot[ft];break;case 51:rt.addPersonOrSystem("external_system",...ot[ft]),this.$=ot[ft];break;case 52:rt.addPersonOrSystem("external_system_db",...ot[ft]),this.$=ot[ft];break;case 53:rt.addPersonOrSystem("external_system_queue",...ot[ft]),this.$=ot[ft];break;case 54:rt.addContainer("container",...ot[ft]),this.$=ot[ft];break;case 55:rt.addContainer("container_db",...ot[ft]),this.$=ot[ft];break;case 56:rt.addContainer("container_queue",...ot[ft]),this.$=ot[ft];break;case 57:rt.addContainer("external_container",...ot[ft]),this.$=ot[ft];break;case 58:rt.addContainer("external_container_db",...ot[ft]),this.$=ot[ft];break;case 59:rt.addContainer("external_container_queue",...ot[ft]),this.$=ot[ft];break;case 60:rt.addComponent("component",...ot[ft]),this.$=ot[ft];break;case 61:rt.addComponent("component_db",...ot[ft]),this.$=ot[ft];break;case 62:rt.addComponent("component_queue",...ot[ft]),this.$=ot[ft];break;case 63:rt.addComponent("external_component",...ot[ft]),this.$=ot[ft];break;case 64:rt.addComponent("external_component_db",...ot[ft]),this.$=ot[ft];break;case 65:rt.addComponent("external_component_queue",...ot[ft]),this.$=ot[ft];break;case 67:rt.addRel("rel",...ot[ft]),this.$=ot[ft];break;case 68:rt.addRel("birel",...ot[ft]),this.$=ot[ft];break;case 69:rt.addRel("rel_u",...ot[ft]),this.$=ot[ft];break;case 70:rt.addRel("rel_d",...ot[ft]),this.$=ot[ft];break;case 71:rt.addRel("rel_l",...ot[ft]),this.$=ot[ft];break;case 72:rt.addRel("rel_r",...ot[ft]),this.$=ot[ft];break;case 73:rt.addRel("rel_b",...ot[ft]),this.$=ot[ft];break;case 74:ot[ft].splice(0,1),rt.addRel("rel",...ot[ft]),this.$=ot[ft];break;case 75:rt.updateElStyle("update_el_style",...ot[ft]),this.$=ot[ft];break;case 76:rt.updateRelStyle("update_rel_style",...ot[ft]),this.$=ot[ft];break;case 77:rt.updateLayoutConfig("update_layout_config",...ot[ft]),this.$=ot[ft];break;case 78:this.$=[ot[ft]];break;case 79:ot[ft].unshift(ot[ft-1]),this.$=ot[ft];break;case 80:case 82:this.$=ot[ft].trim();break;case 81:let Ct={};Ct[ot[ft-1].trim()]=ot[ft].trim(),this.$=Ct;break;case 83:this.$="";break}},table:[{3:1,4:2,5:3,6:4,7:H,8:U,9:W,10:G,11:5,12:10,18:X,22:Z,25:Q,26:ee,27:ie,28:te},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:H,8:U,9:W,10:G,11:5,12:10,18:X,22:Z,25:Q,26:ee,27:ie,28:te},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:ne},C([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ae,33:oe,34:se,36:le,38:ce,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{23:79,29:29,30:30,31:31,32:ae,33:oe,34:se,36:le,38:ce,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{23:80,29:29,30:30,31:31,32:ae,33:oe,34:se,36:le,38:ce,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{23:81,29:29,30:30,31:31,32:ae,33:oe,34:se,36:le,38:ce,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{23:82,29:29,30:30,31:31,32:ae,33:oe,34:se,36:le,38:ce,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},C(Xe,[2,20],{53:32,39:58,40:70,42:71,30:87,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe}),C(Xe,[2,21]),C(et,[2,23],{15:[1,88]}),C(Xe,[2,43],{15:[1,89]}),C(We,[2,26]),C(We,[2,27]),{35:[1,90]},{37:[1,91]},C(We,[2,30]),{45:92,85:93,86:He,87:Ye,89:nt,90:tt},{45:98,85:93,86:He,87:Ye,89:nt,90:tt},{45:99,85:93,86:He,87:Ye,89:nt,90:tt},{45:100,85:93,86:He,87:Ye,89:nt,90:tt},{45:101,85:93,86:He,87:Ye,89:nt,90:tt},{45:102,85:93,86:He,87:Ye,89:nt,90:tt},{45:103,85:93,86:He,87:Ye,89:nt,90:tt},{45:104,85:93,86:He,87:Ye,89:nt,90:tt},{45:105,85:93,86:He,87:Ye,89:nt,90:tt},{45:106,85:93,86:He,87:Ye,89:nt,90:tt},{45:107,85:93,86:He,87:Ye,89:nt,90:tt},{45:108,85:93,86:He,87:Ye,89:nt,90:tt},{45:109,85:93,86:He,87:Ye,89:nt,90:tt},{45:110,85:93,86:He,87:Ye,89:nt,90:tt},{45:111,85:93,86:He,87:Ye,89:nt,90:tt},{45:112,85:93,86:He,87:Ye,89:nt,90:tt},{45:113,85:93,86:He,87:Ye,89:nt,90:tt},{45:114,85:93,86:He,87:Ye,89:nt,90:tt},{45:115,85:93,86:He,87:Ye,89:nt,90:tt},{45:116,85:93,86:He,87:Ye,89:nt,90:tt},C(at,[2,66]),{45:117,85:93,86:He,87:Ye,89:nt,90:tt},{45:118,85:93,86:He,87:Ye,89:nt,90:tt},{45:119,85:93,86:He,87:Ye,89:nt,90:tt},{45:120,85:93,86:He,87:Ye,89:nt,90:tt},{45:121,85:93,86:He,87:Ye,89:nt,90:tt},{45:122,85:93,86:He,87:Ye,89:nt,90:tt},{45:123,85:93,86:He,87:Ye,89:nt,90:tt},{45:124,85:93,86:He,87:Ye,89:nt,90:tt},{45:125,85:93,86:He,87:Ye,89:nt,90:tt},{45:126,85:93,86:He,87:Ye,89:nt,90:tt},{45:127,85:93,86:He,87:Ye,89:nt,90:tt},{30:128,39:58,40:70,42:71,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,53:32,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe},{15:[1,130],43:[1,129]},{45:131,85:93,86:He,87:Ye,89:nt,90:tt},{45:132,85:93,86:He,87:Ye,89:nt,90:tt},{45:133,85:93,86:He,87:Ye,89:nt,90:tt},{45:134,85:93,86:He,87:Ye,89:nt,90:tt},{45:135,85:93,86:He,87:Ye,89:nt,90:tt},{45:136,85:93,86:He,87:Ye,89:nt,90:tt},{45:137,85:93,86:He,87:Ye,89:nt,90:tt},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},C(St,[2,9]),{14:142,21:ne},{21:[2,13]},{1:[2,15]},C(Xe,[2,22]),C(et,[2,24],{31:31,29:143,32:ae,33:oe,34:se,36:le,38:ce}),C(Xe,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ae,33:oe,34:se,36:le,38:ce,44:ue,46:de,47:ve,48:ge,49:he,50:me,51:_e,54:be,55:pe,56:fe,57:ye,58:$e,59:we,60:Se,61:Te,62:xe,63:ke,64:Ie,65:Ae,66:Me,67:Fe,68:Be,69:Ne,70:Ve,71:Le,72:De,73:Je,74:ze,75:Ge,76:qe,77:Ke,78:Ee,79:Ce,80:Pe,81:Re,82:Ze,83:Oe,84:Qe}),C(We,[2,28]),C(We,[2,29]),C(at,[2,46]),C(st,[2,78],{85:93,45:145,86:He,87:Ye,89:nt,90:tt}),C(it,[2,80]),{88:[1,146]},C(it,[2,82]),C(it,[2,83]),C(at,[2,47]),C(at,[2,48]),C(at,[2,49]),C(at,[2,50]),C(at,[2,51]),C(at,[2,52]),C(at,[2,53]),C(at,[2,54]),C(at,[2,55]),C(at,[2,56]),C(at,[2,57]),C(at,[2,58]),C(at,[2,59]),C(at,[2,60]),C(at,[2,61]),C(at,[2,62]),C(at,[2,63]),C(at,[2,64]),C(at,[2,65]),C(at,[2,67]),C(at,[2,68]),C(at,[2,69]),C(at,[2,70]),C(at,[2,71]),C(at,[2,72]),C(at,[2,73]),C(at,[2,74]),C(at,[2,75]),C(at,[2,76]),C(at,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},C(pt,[2,35]),C(pt,[2,36]),C(pt,[2,37]),C(pt,[2,38]),C(pt,[2,39]),C(pt,[2,40]),C(pt,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},C(et,[2,25]),C(Xe,[2,45]),C(st,[2,79]),C(it,[2,81]),C(at,[2,31]),C(at,[2,42]),C(wt,[2,32]),C(wt,[2,33],{15:[1,152]}),C(St,[2,10]),C(wt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(ct,vt){if(vt.recoverable)this.trace(ct);else{var _t=new Error(ct);throw _t.hash=vt,_t}},parse:function(ct){var vt=this,_t=[0],rt=[],ut=[null],ot=[],Tt=this.table,ft="",Ct=0,At=0,Rt=2,It=1,Ft=ot.slice.call(arguments,1),Pt=Object.create(this.lexer),Ht={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(Ht.yy[Dt]=this.yy[Dt]);Pt.setInput(ct,Ht.yy),Ht.yy.lexer=Pt,Ht.yy.parser=this,typeof Pt.yylloc>"u"&&(Pt.yylloc={});var jt=Pt.yylloc;ot.push(jt);var on=Pt.options&&Pt.options.ranges;typeof Ht.yy.parseError=="function"?this.parseError=Ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function un(){var ht;return ht=rt.pop()||Pt.lex()||It,typeof ht!="number"&&(ht instanceof Array&&(rt=ht,ht=rt.pop()),ht=vt.symbols_[ht]||ht),ht}for(var Yt,Wt,Qt,Zt,Xt={},Jt,sn,en,dn;;){if(Wt=_t[_t.length-1],this.defaultActions[Wt]?Qt=this.defaultActions[Wt]:((Yt===null||typeof Yt>"u")&&(Yt=un()),Qt=Tt[Wt]&&Tt[Wt][Yt]),typeof Qt>"u"||!Qt.length||!Qt[0]){var Vt="";dn=[];for(Jt in Tt[Wt])this.terminals_[Jt]&&Jt>Rt&&dn.push("'"+this.terminals_[Jt]+"'");Pt.showPosition?Vt="Parse error on line "+(Ct+1)+`:
|
||
`+Pt.showPosition()+`
|
||
Expecting `+dn.join(", ")+", got '"+(this.terminals_[Yt]||Yt)+"'":Vt="Parse error on line "+(Ct+1)+": Unexpected "+(Yt==It?"end of input":"'"+(this.terminals_[Yt]||Yt)+"'"),this.parseError(Vt,{text:Pt.match,token:this.terminals_[Yt]||Yt,line:Pt.yylineno,loc:jt,expected:dn})}if(Qt[0]instanceof Array&&Qt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Wt+", token: "+Yt);switch(Qt[0]){case 1:_t.push(Yt),ut.push(Pt.yytext),ot.push(Pt.yylloc),_t.push(Qt[1]),Yt=null,At=Pt.yyleng,ft=Pt.yytext,Ct=Pt.yylineno,jt=Pt.yylloc;break;case 2:if(sn=this.productions_[Qt[1]][1],Xt.$=ut[ut.length-sn],Xt._$={first_line:ot[ot.length-(sn||1)].first_line,last_line:ot[ot.length-1].last_line,first_column:ot[ot.length-(sn||1)].first_column,last_column:ot[ot.length-1].last_column},on&&(Xt._$.range=[ot[ot.length-(sn||1)].range[0],ot[ot.length-1].range[1]]),Zt=this.performAction.apply(Xt,[ft,At,Ct,Ht.yy,Qt[1],ut,ot].concat(Ft)),typeof Zt<"u")return Zt;sn&&(_t=_t.slice(0,-1*sn*2),ut=ut.slice(0,-1*sn),ot=ot.slice(0,-1*sn)),_t.push(this.productions_[Qt[1]][0]),ut.push(Xt.$),ot.push(Xt._$),en=Tt[_t[_t.length-2]][_t[_t.length-1]],_t.push(en);break;case 3:return!0}}return!0}},mt=function(){var lt={EOF:1,parseError:function(vt,_t){if(this.yy.parser)this.yy.parser.parseError(vt,_t);else throw new Error(vt)},setInput:function(ct,vt){return this.yy=vt||this.yy||{},this._input=ct,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ct=this._input[0];this.yytext+=ct,this.yyleng++,this.offset++,this.match+=ct,this.matched+=ct;var vt=ct.match(/(?:\r\n?|\n).*/g);return vt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ct},unput:function(ct){var vt=ct.length,_t=ct.split(/(?:\r\n?|\n)/g);this._input=ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-vt),this.offset-=vt;var rt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_t.length-1&&(this.yylineno-=_t.length-1);var ut=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_t?(_t.length===rt.length?this.yylloc.first_column:0)+rt[rt.length-_t.length].length-_t[0].length:this.yylloc.first_column-vt},this.options.ranges&&(this.yylloc.range=[ut[0],ut[0]+this.yyleng-vt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ct){this.unput(this.match.slice(ct))},pastInput:function(){var ct=this.matched.substr(0,this.matched.length-this.match.length);return(ct.length>20?"...":"")+ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ct=this.match;return ct.length<20&&(ct+=this._input.substr(0,20-ct.length)),(ct.substr(0,20)+(ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ct=this.pastInput(),vt=new Array(ct.length+1).join("-");return ct+this.upcomingInput()+`
|
||
`+vt+"^"},test_match:function(ct,vt){var _t,rt,ut;if(this.options.backtrack_lexer&&(ut={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ut.yylloc.range=this.yylloc.range.slice(0))),rt=ct[0].match(/(?:\r\n?|\n).*/g),rt&&(this.yylineno+=rt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rt?rt[rt.length-1].length-rt[rt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ct[0].length},this.yytext+=ct[0],this.match+=ct[0],this.matches=ct,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ct[0].length),this.matched+=ct[0],_t=this.performAction.call(this,this.yy,this,vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_t)return _t;if(this._backtrack){for(var ot in ut)this[ot]=ut[ot];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ct,vt,_t,rt;this._more||(this.yytext="",this.match="");for(var ut=this._currentRules(),ot=0;ot<ut.length;ot++)if(_t=this._input.match(this.rules[ut[ot]]),_t&&(!vt||_t[0].length>vt[0].length)){if(vt=_t,rt=ot,this.options.backtrack_lexer){if(ct=this.test_match(_t,ut[ot]),ct!==!1)return ct;if(this._backtrack){vt=!1;continue}else return!1}else if(!this.options.flex)break}return vt?(ct=this.test_match(vt,ut[rt]),ct!==!1?ct:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var vt=this.next();return vt||this.lex()},begin:function(vt){this.conditionStack.push(vt)},popState:function(){var vt=this.conditionStack.length-1;return vt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(vt){return vt=this.conditionStack.length-1-Math.abs(vt||0),vt>=0?this.conditionStack[vt]:"INITIAL"},pushState:function(vt){this.begin(vt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(vt,_t,rt,ut){switch(rt){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};return lt}();xt.lexer=mt;function gt(){this.yy={}}return gt.prototype=xt,xt.Parser=gt,new gt}();parser$b.parser=parser$b;const c4Parser=parser$b,c4Detector=C=>C.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null;let c4ShapeArray=[],boundaryParseStack=[""],currentBoundaryParse="global",parentBoundaryParse="",boundarys=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rels=[],title="",wrapEnabled$1=!1,c4ShapeInRow$1=4,c4BoundaryInRow$1=2;var c4Type;const getC4Type=function(){return c4Type},setC4Type=function(C){c4Type=sanitizeText$5(C,getConfig$1())},parseDirective$9=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},addRel=function(C,H,U,W,G,X,Z,Q,ee){if(C==null||H===void 0||H===null||U===void 0||U===null||W===void 0||W===null)return;let ie={};const te=rels.find(ne=>ne.from===H&&ne.to===U);if(te?ie=te:rels.push(ie),ie.type=C,ie.from=H,ie.to=U,ie.label={text:W},G==null)ie.techn={text:""};else if(typeof G=="object"){let[ne,ae]=Object.entries(G)[0];ie[ne]={text:ae}}else ie.techn={text:G};if(X==null)ie.descr={text:""};else if(typeof X=="object"){let[ne,ae]=Object.entries(X)[0];ie[ne]={text:ae}}else ie.descr={text:X};if(typeof Z=="object"){let[ne,ae]=Object.entries(Z)[0];ie[ne]=ae}else ie.sprite=Z;if(typeof Q=="object"){let[ne,ae]=Object.entries(Q)[0];ie[ne]=ae}else ie.tags=Q;if(typeof ee=="object"){let[ne,ae]=Object.entries(ee)[0];ie[ne]=ae}else ie.link=ee;ie.wrap=autoWrap$1()},addPersonOrSystem=function(C,H,U,W,G,X,Z){if(H===null||U===null)return;let Q={};const ee=c4ShapeArray.find(ie=>ie.alias===H);if(ee&&H===ee.alias?Q=ee:(Q.alias=H,c4ShapeArray.push(Q)),U==null?Q.label={text:""}:Q.label={text:U},W==null)Q.descr={text:""};else if(typeof W=="object"){let[ie,te]=Object.entries(W)[0];Q[ie]={text:te}}else Q.descr={text:W};if(typeof G=="object"){let[ie,te]=Object.entries(G)[0];Q[ie]=te}else Q.sprite=G;if(typeof X=="object"){let[ie,te]=Object.entries(X)[0];Q[ie]=te}else Q.tags=X;if(typeof Z=="object"){let[ie,te]=Object.entries(Z)[0];Q[ie]=te}else Q.link=Z;Q.typeC4Shape={text:C},Q.parentBoundary=currentBoundaryParse,Q.wrap=autoWrap$1()},addContainer=function(C,H,U,W,G,X,Z,Q){if(H===null||U===null)return;let ee={};const ie=c4ShapeArray.find(te=>te.alias===H);if(ie&&H===ie.alias?ee=ie:(ee.alias=H,c4ShapeArray.push(ee)),U==null?ee.label={text:""}:ee.label={text:U},W==null)ee.techn={text:""};else if(typeof W=="object"){let[te,ne]=Object.entries(W)[0];ee[te]={text:ne}}else ee.techn={text:W};if(G==null)ee.descr={text:""};else if(typeof G=="object"){let[te,ne]=Object.entries(G)[0];ee[te]={text:ne}}else ee.descr={text:G};if(typeof X=="object"){let[te,ne]=Object.entries(X)[0];ee[te]=ne}else ee.sprite=X;if(typeof Z=="object"){let[te,ne]=Object.entries(Z)[0];ee[te]=ne}else ee.tags=Z;if(typeof Q=="object"){let[te,ne]=Object.entries(Q)[0];ee[te]=ne}else ee.link=Q;ee.wrap=autoWrap$1(),ee.typeC4Shape={text:C},ee.parentBoundary=currentBoundaryParse},addComponent=function(C,H,U,W,G,X,Z,Q){if(H===null||U===null)return;let ee={};const ie=c4ShapeArray.find(te=>te.alias===H);if(ie&&H===ie.alias?ee=ie:(ee.alias=H,c4ShapeArray.push(ee)),U==null?ee.label={text:""}:ee.label={text:U},W==null)ee.techn={text:""};else if(typeof W=="object"){let[te,ne]=Object.entries(W)[0];ee[te]={text:ne}}else ee.techn={text:W};if(G==null)ee.descr={text:""};else if(typeof G=="object"){let[te,ne]=Object.entries(G)[0];ee[te]={text:ne}}else ee.descr={text:G};if(typeof X=="object"){let[te,ne]=Object.entries(X)[0];ee[te]=ne}else ee.sprite=X;if(typeof Z=="object"){let[te,ne]=Object.entries(Z)[0];ee[te]=ne}else ee.tags=Z;if(typeof Q=="object"){let[te,ne]=Object.entries(Q)[0];ee[te]=ne}else ee.link=Q;ee.wrap=autoWrap$1(),ee.typeC4Shape={text:C},ee.parentBoundary=currentBoundaryParse},addPersonOrSystemBoundary=function(C,H,U,W,G){if(C===null||H===null)return;let X={};const Z=boundarys.find(Q=>Q.alias===C);if(Z&&C===Z.alias?X=Z:(X.alias=C,boundarys.push(X)),H==null?X.label={text:""}:X.label={text:H},U==null)X.type={text:"system"};else if(typeof U=="object"){let[Q,ee]=Object.entries(U)[0];X[Q]={text:ee}}else X.type={text:U};if(typeof W=="object"){let[Q,ee]=Object.entries(W)[0];X[Q]=ee}else X.tags=W;if(typeof G=="object"){let[Q,ee]=Object.entries(G)[0];X[Q]=ee}else X.link=G;X.parentBoundary=currentBoundaryParse,X.wrap=autoWrap$1(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=C,boundaryParseStack.push(parentBoundaryParse)},addContainerBoundary=function(C,H,U,W,G){if(C===null||H===null)return;let X={};const Z=boundarys.find(Q=>Q.alias===C);if(Z&&C===Z.alias?X=Z:(X.alias=C,boundarys.push(X)),H==null?X.label={text:""}:X.label={text:H},U==null)X.type={text:"container"};else if(typeof U=="object"){let[Q,ee]=Object.entries(U)[0];X[Q]={text:ee}}else X.type={text:U};if(typeof W=="object"){let[Q,ee]=Object.entries(W)[0];X[Q]=ee}else X.tags=W;if(typeof G=="object"){let[Q,ee]=Object.entries(G)[0];X[Q]=ee}else X.link=G;X.parentBoundary=currentBoundaryParse,X.wrap=autoWrap$1(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=C,boundaryParseStack.push(parentBoundaryParse)},addDeploymentNode=function(C,H,U,W,G,X,Z,Q){if(H===null||U===null)return;let ee={};const ie=boundarys.find(te=>te.alias===H);if(ie&&H===ie.alias?ee=ie:(ee.alias=H,boundarys.push(ee)),U==null?ee.label={text:""}:ee.label={text:U},W==null)ee.type={text:"node"};else if(typeof W=="object"){let[te,ne]=Object.entries(W)[0];ee[te]={text:ne}}else ee.type={text:W};if(G==null)ee.descr={text:""};else if(typeof G=="object"){let[te,ne]=Object.entries(G)[0];ee[te]={text:ne}}else ee.descr={text:G};if(typeof Z=="object"){let[te,ne]=Object.entries(Z)[0];ee[te]=ne}else ee.tags=Z;if(typeof Q=="object"){let[te,ne]=Object.entries(Q)[0];ee[te]=ne}else ee.link=Q;ee.nodeType=C,ee.parentBoundary=currentBoundaryParse,ee.wrap=autoWrap$1(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=H,boundaryParseStack.push(parentBoundaryParse)},popBoundaryParseStack=function(){currentBoundaryParse=parentBoundaryParse,boundaryParseStack.pop(),parentBoundaryParse=boundaryParseStack.pop(),boundaryParseStack.push(parentBoundaryParse)},updateElStyle=function(C,H,U,W,G,X,Z,Q,ee,ie,te){let ne=c4ShapeArray.find(ae=>ae.alias===H);if(!(ne===void 0&&(ne=boundarys.find(ae=>ae.alias===H),ne===void 0))){if(U!=null)if(typeof U=="object"){let[ae,oe]=Object.entries(U)[0];ne[ae]=oe}else ne.bgColor=U;if(W!=null)if(typeof W=="object"){let[ae,oe]=Object.entries(W)[0];ne[ae]=oe}else ne.fontColor=W;if(G!=null)if(typeof G=="object"){let[ae,oe]=Object.entries(G)[0];ne[ae]=oe}else ne.borderColor=G;if(X!=null)if(typeof X=="object"){let[ae,oe]=Object.entries(X)[0];ne[ae]=oe}else ne.shadowing=X;if(Z!=null)if(typeof Z=="object"){let[ae,oe]=Object.entries(Z)[0];ne[ae]=oe}else ne.shape=Z;if(Q!=null)if(typeof Q=="object"){let[ae,oe]=Object.entries(Q)[0];ne[ae]=oe}else ne.sprite=Q;if(ee!=null)if(typeof ee=="object"){let[ae,oe]=Object.entries(ee)[0];ne[ae]=oe}else ne.techn=ee;if(ie!=null)if(typeof ie=="object"){let[ae,oe]=Object.entries(ie)[0];ne[ae]=oe}else ne.legendText=ie;if(te!=null)if(typeof te=="object"){let[ae,oe]=Object.entries(te)[0];ne[ae]=oe}else ne.legendSprite=te}},updateRelStyle=function(C,H,U,W,G,X,Z){const Q=rels.find(ee=>ee.from===H&&ee.to===U);if(Q!==void 0){if(W!=null)if(typeof W=="object"){let[ee,ie]=Object.entries(W)[0];Q[ee]=ie}else Q.textColor=W;if(G!=null)if(typeof G=="object"){let[ee,ie]=Object.entries(G)[0];Q[ee]=ie}else Q.lineColor=G;if(X!=null)if(typeof X=="object"){let[ee,ie]=Object.entries(X)[0];Q[ee]=parseInt(ie)}else Q.offsetX=parseInt(X);if(Z!=null)if(typeof Z=="object"){let[ee,ie]=Object.entries(Z)[0];Q[ee]=parseInt(ie)}else Q.offsetY=parseInt(Z)}},updateLayoutConfig=function(C,H,U){let W=c4ShapeInRow$1,G=c4BoundaryInRow$1;if(typeof H=="object"){const X=Object.values(H)[0];W=parseInt(X)}else W=parseInt(H);if(typeof U=="object"){const X=Object.values(U)[0];G=parseInt(X)}else G=parseInt(U);W>=1&&(c4ShapeInRow$1=W),G>=1&&(c4BoundaryInRow$1=G)},getC4ShapeInRow=function(){return c4ShapeInRow$1},getC4BoundaryInRow=function(){return c4BoundaryInRow$1},getCurrentBoundaryParse=function(){return currentBoundaryParse},getParentBoundaryParse=function(){return parentBoundaryParse},getC4ShapeArray=function(C){return C==null?c4ShapeArray:c4ShapeArray.filter(H=>H.parentBoundary===C)},getC4Shape=function(C){return c4ShapeArray.find(H=>H.alias===C)},getC4ShapeKeys=function(C){return Object.keys(getC4ShapeArray(C))},getBoundarys=function(C){return C==null?boundarys:boundarys.filter(H=>H.parentBoundary===C)},getRels=function(){return rels},getTitle=function(){return title},setWrap$1=function(C){wrapEnabled$1=C},autoWrap$1=function(){return wrapEnabled$1},clear$d=function(){c4ShapeArray=[],boundarys=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],parentBoundaryParse="",currentBoundaryParse="global",boundaryParseStack=[""],rels=[],boundaryParseStack=[""],title="",wrapEnabled$1=!1,c4ShapeInRow$1=4,c4BoundaryInRow$1=2},LINETYPE$1={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE$1={FILLED:0,OPEN:1},PLACEMENT$1={LEFTOF:0,RIGHTOF:1,OVER:2},setTitle=function(C){title=sanitizeText$5(C,getConfig$1())},c4Db={addPersonOrSystem,addPersonOrSystemBoundary,addContainer,addContainerBoundary,addComponent,addDeploymentNode,popBoundaryParseStack,addRel,updateElStyle,updateRelStyle,updateLayoutConfig,autoWrap:autoWrap$1,setWrap:setWrap$1,getC4ShapeArray,getC4Shape,getC4ShapeKeys,getBoundarys,getCurrentBoundaryParse,getParentBoundaryParse,getRels,getTitle,getC4Type,getC4ShapeInRow,getC4BoundaryInRow,setAccTitle,getAccTitle,getAccDescription,setAccDescription,parseDirective:parseDirective$9,getConfig:()=>getConfig$1().c4,clear:clear$d,LINETYPE:LINETYPE$1,ARROWTYPE:ARROWTYPE$1,PLACEMENT:PLACEMENT$1,setTitle,setC4Type},drawRect$2=function(C,H){const U=C.append("rect");if(U.attr("x",H.x),U.attr("y",H.y),U.attr("fill",H.fill),U.attr("stroke",H.stroke),U.attr("width",H.width),U.attr("height",H.height),U.attr("rx",H.rx),U.attr("ry",H.ry),H.attrs!=="undefined"&&H.attrs!==null)for(let W in H.attrs)U.attr(W,H.attrs[W]);return H.class!=="undefined"&&U.attr("class",H.class),U},drawImage$1=function(C,H,U,W,G,X){const Z=C.append("image");Z.attr("width",H),Z.attr("height",U),Z.attr("x",W),Z.attr("y",G);let Q=X.startsWith("data:image/png;base64")?X:sanitizeUrl_1(X);Z.attr("xlink:href",Q)},drawRels$1=(C,H,U)=>{const W=C.append("g");let G=0;for(let X of H){let Z=X.textColor?X.textColor:"#444444",Q=X.lineColor?X.lineColor:"#444444",ee=X.offsetX?parseInt(X.offsetX):0,ie=X.offsetY?parseInt(X.offsetY):0,te="";if(G===0){let ae=W.append("line");ae.attr("x1",X.startPoint.x),ae.attr("y1",X.startPoint.y),ae.attr("x2",X.endPoint.x),ae.attr("y2",X.endPoint.y),ae.attr("stroke-width","1"),ae.attr("stroke",Q),ae.style("fill","none"),X.type!=="rel_b"&&ae.attr("marker-end","url("+te+"#arrowhead)"),(X.type==="birel"||X.type==="rel_b")&&ae.attr("marker-start","url("+te+"#arrowend)"),G=-1}else{let ae=W.append("path");ae.attr("fill","none").attr("stroke-width","1").attr("stroke",Q).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",X.startPoint.x).replaceAll("starty",X.startPoint.y).replaceAll("controlx",X.startPoint.x+(X.endPoint.x-X.startPoint.x)/2-(X.endPoint.x-X.startPoint.x)/4).replaceAll("controly",X.startPoint.y+(X.endPoint.y-X.startPoint.y)/2).replaceAll("stopx",X.endPoint.x).replaceAll("stopy",X.endPoint.y)),X.type!=="rel_b"&&ae.attr("marker-end","url("+te+"#arrowhead)"),(X.type==="birel"||X.type==="rel_b")&&ae.attr("marker-start","url("+te+"#arrowend)")}let ne=U.messageFont();_drawTextCandidateFunc$2(U)(X.label.text,W,Math.min(X.startPoint.x,X.endPoint.x)+Math.abs(X.endPoint.x-X.startPoint.x)/2+ee,Math.min(X.startPoint.y,X.endPoint.y)+Math.abs(X.endPoint.y-X.startPoint.y)/2+ie,X.label.width,X.label.height,{fill:Z},ne),X.techn&&X.techn.text!==""&&(ne=U.messageFont(),_drawTextCandidateFunc$2(U)("["+X.techn.text+"]",W,Math.min(X.startPoint.x,X.endPoint.x)+Math.abs(X.endPoint.x-X.startPoint.x)/2+ee,Math.min(X.startPoint.y,X.endPoint.y)+Math.abs(X.endPoint.y-X.startPoint.y)/2+U.messageFontSize+5+ie,Math.max(X.label.width,X.techn.width),X.techn.height,{fill:Z,"font-style":"italic"},ne))}},drawBoundary$1=function(C,H,U){const W=C.append("g");let G=H.bgColor?H.bgColor:"none",X=H.borderColor?H.borderColor:"#444444",Z=H.fontColor?H.fontColor:"black",Q={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};H.nodeType&&(Q={"stroke-width":1});let ee={x:H.x,y:H.y,fill:G,stroke:X,width:H.width,height:H.height,rx:2.5,ry:2.5,attrs:Q};drawRect$2(W,ee);let ie=U.boundaryFont();ie.fontWeight="bold",ie.fontSize=ie.fontSize+2,ie.fontColor=Z,_drawTextCandidateFunc$2(U)(H.label.text,W,H.x,H.y+H.label.Y,H.width,H.height,{fill:"#444444"},ie),H.type&&H.type.text!==""&&(ie=U.boundaryFont(),ie.fontColor=Z,_drawTextCandidateFunc$2(U)(H.type.text,W,H.x,H.y+H.type.Y,H.width,H.height,{fill:"#444444"},ie)),H.descr&&H.descr.text!==""&&(ie=U.boundaryFont(),ie.fontSize=ie.fontSize-2,ie.fontColor=Z,_drawTextCandidateFunc$2(U)(H.descr.text,W,H.x,H.y+H.descr.Y,H.width,H.height,{fill:"#444444"},ie))},drawC4Shape=function(C,H,U){var W;let G=H.bgColor?H.bgColor:U[H.typeC4Shape.text+"_bg_color"],X=H.borderColor?H.borderColor:U[H.typeC4Shape.text+"_border_color"],Z=H.fontColor?H.fontColor:"#FFFFFF",Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(H.typeC4Shape.text){case"person":Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const ee=C.append("g");ee.attr("class","person-man");const ie=getNoteRect$2();switch(H.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":ie.x=H.x,ie.y=H.y,ie.fill=G,ie.width=H.width,ie.height=H.height,ie.stroke=X,ie.rx=2.5,ie.ry=2.5,ie.attrs={"stroke-width":.5},drawRect$2(ee,ie);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":ee.append("path").attr("fill",G).attr("stroke-width","0.5").attr("stroke",X).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",H.x).replaceAll("starty",H.y).replaceAll("half",H.width/2).replaceAll("height",H.height)),ee.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",X).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",H.x).replaceAll("starty",H.y).replaceAll("half",H.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":ee.append("path").attr("fill",G).attr("stroke-width","0.5").attr("stroke",X).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",H.x).replaceAll("starty",H.y).replaceAll("width",H.width).replaceAll("half",H.height/2)),ee.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",X).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",H.x+H.width).replaceAll("starty",H.y).replaceAll("half",H.height/2));break}let te=getC4ShapeFont(U,H.typeC4Shape.text);switch(ee.append("text").attr("fill",Z).attr("font-family",te.fontFamily).attr("font-size",te.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",H.typeC4Shape.width).attr("x",H.x+H.width/2-H.typeC4Shape.width/2).attr("y",H.y+H.typeC4Shape.Y).text("<<"+H.typeC4Shape.text+">>"),H.typeC4Shape.text){case"person":case"external_person":drawImage$1(ee,48,48,H.x+H.width/2-24,H.y+H.image.Y,Q);break}let ne=U[H.typeC4Shape.text+"Font"]();return ne.fontWeight="bold",ne.fontSize=ne.fontSize+2,ne.fontColor=Z,_drawTextCandidateFunc$2(U)(H.label.text,ee,H.x,H.y+H.label.Y,H.width,H.height,{fill:Z},ne),ne=U[H.typeC4Shape.text+"Font"](),ne.fontColor=Z,H.techn&&((W=H.techn)==null?void 0:W.text)!==""?_drawTextCandidateFunc$2(U)(H.techn.text,ee,H.x,H.y+H.techn.Y,H.width,H.height,{fill:Z,"font-style":"italic"},ne):H.type&&H.type.text!==""&&_drawTextCandidateFunc$2(U)(H.type.text,ee,H.x,H.y+H.type.Y,H.width,H.height,{fill:Z,"font-style":"italic"},ne),H.descr&&H.descr.text!==""&&(ne=U.personFont(),ne.fontColor=Z,_drawTextCandidateFunc$2(U)(H.descr.text,ee,H.x,H.y+H.descr.Y,H.width,H.height,{fill:Z},ne)),H.height},insertDatabaseIcon$1=function(C){C.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon$1=function(C){C.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon$1=function(C){C.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},insertArrowHead$1=function(C){C.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowEnd=function(C){C.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},insertArrowFilledHead$1=function(C){C.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertDynamicNumber=function(C){C.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead$1=function(C){const U=C.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);U.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),U.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},getNoteRect$2=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},getC4ShapeFont=(C,H)=>({fontFamily:C[H+"FontFamily"],fontSize:C[H+"FontSize"],fontWeight:C[H+"FontWeight"]}),_drawTextCandidateFunc$2=function(){function C(G,X,Z,Q,ee,ie,te){const ne=X.append("text").attr("x",Z+ee/2).attr("y",Q+ie/2+5).style("text-anchor","middle").text(G);W(ne,te)}function H(G,X,Z,Q,ee,ie,te,ne){const{fontSize:ae,fontFamily:oe,fontWeight:se}=ne,le=G.split(common$1.lineBreakRegex);for(let ce=0;ce<le.length;ce++){const ue=ce*ae-ae*(le.length-1)/2,de=X.append("text").attr("x",Z+ee/2).attr("y",Q).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",ae).style("font-weight",se).style("font-family",oe);de.append("tspan").attr("dy",ue).text(le[ce]).attr("alignment-baseline","mathematical"),W(de,te)}}function U(G,X,Z,Q,ee,ie,te,ne){const ae=X.append("switch"),se=ae.append("foreignObject").attr("x",Z).attr("y",Q).attr("width",ee).attr("height",ie).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");se.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(G),H(G,ae,Z,Q,ee,ie,te,ne),W(se,te)}function W(G,X){for(const Z in X)X.hasOwnProperty(Z)&&G.attr(Z,X[Z])}return function(G){return G.textPlacement==="fo"?U:G.textPlacement==="old"?C:H}}(),svgDraw$3={drawRect:drawRect$2,drawBoundary:drawBoundary$1,drawC4Shape,drawRels:drawRels$1,drawImage:drawImage$1,insertArrowHead:insertArrowHead$1,insertArrowEnd,insertArrowFilledHead:insertArrowFilledHead$1,insertDynamicNumber,insertArrowCrossHead:insertArrowCrossHead$1,insertDatabaseIcon:insertDatabaseIcon$1,insertComputerIcon:insertComputerIcon$1,insertClockIcon:insertClockIcon$1,getNoteRect:getNoteRect$2,sanitizeUrl:sanitizeUrl_1};let globalBoundaryMaxX=0,globalBoundaryMaxY=0,c4ShapeInRow=4,c4BoundaryInRow=2;parser$b.yy=c4Db;let conf$a={};class Bounds{constructor(H){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,setConf$a(H.db.getConfig())}setData(H,U,W,G){this.nextData.startx=this.data.startx=H,this.nextData.stopx=this.data.stopx=U,this.nextData.starty=this.data.starty=W,this.nextData.stopy=this.data.stopy=G}updateVal(H,U,W,G){H[U]===void 0?H[U]=W:H[U]=G(W,H[U])}insert(H){this.nextData.cnt=this.nextData.cnt+1;let U=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+H.margin:this.nextData.stopx+H.margin*2,W=U+H.width,G=this.nextData.starty+H.margin*2,X=G+H.height;(U>=this.data.widthLimit||W>=this.data.widthLimit||this.nextData.cnt>c4ShapeInRow)&&(U=this.nextData.startx+H.margin+conf$a.nextLinePaddingX,G=this.nextData.stopy+H.margin*2,this.nextData.stopx=W=U+H.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=X=G+H.height,this.nextData.cnt=1),H.x=U,H.y=G,this.updateVal(this.data,"startx",U,Math.min),this.updateVal(this.data,"starty",G,Math.min),this.updateVal(this.data,"stopx",W,Math.max),this.updateVal(this.data,"stopy",X,Math.max),this.updateVal(this.nextData,"startx",U,Math.min),this.updateVal(this.nextData,"starty",G,Math.min),this.updateVal(this.nextData,"stopx",W,Math.max),this.updateVal(this.nextData,"stopy",X,Math.max)}init(H){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},setConf$a(H.db.getConfig())}bumpLastMargin(H){this.data.stopx+=H,this.data.stopy+=H}}const setConf$a=function(C){assignWithDepth$1(conf$a,C),C.fontFamily&&(conf$a.personFontFamily=conf$a.systemFontFamily=conf$a.messageFontFamily=C.fontFamily),C.fontSize&&(conf$a.personFontSize=conf$a.systemFontSize=conf$a.messageFontSize=C.fontSize),C.fontWeight&&(conf$a.personFontWeight=conf$a.systemFontWeight=conf$a.messageFontWeight=C.fontWeight)},c4ShapeFont=(C,H)=>({fontFamily:C[H+"FontFamily"],fontSize:C[H+"FontSize"],fontWeight:C[H+"FontWeight"]}),boundaryFont=C=>({fontFamily:C.boundaryFontFamily,fontSize:C.boundaryFontSize,fontWeight:C.boundaryFontWeight}),messageFont$1=C=>({fontFamily:C.messageFontFamily,fontSize:C.messageFontSize,fontWeight:C.messageFontWeight});function calcC4ShapeTextWH(C,H,U,W,G){if(!H[C].width)if(U)H[C].text=wrapLabel(H[C].text,G,W),H[C].textLines=H[C].text.split(common$1.lineBreakRegex).length,H[C].width=G,H[C].height=calculateTextHeight(H[C].text,W);else{let X=H[C].text.split(common$1.lineBreakRegex);H[C].textLines=X.length;let Z=0;H[C].height=0,H[C].width=0;for(const Q of X)H[C].width=Math.max(calculateTextWidth(Q,W),H[C].width),Z=calculateTextHeight(Q,W),H[C].height=H[C].height+Z}}const drawBoundary=function(C,H,U){H.x=U.data.startx,H.y=U.data.starty,H.width=U.data.stopx-U.data.startx,H.height=U.data.stopy-U.data.starty,H.label.y=conf$a.c4ShapeMargin-35;let W=H.wrap&&conf$a.wrap,G=boundaryFont(conf$a);G.fontSize=G.fontSize+2,G.fontWeight="bold";let X=calculateTextWidth(H.label.text,G);calcC4ShapeTextWH("label",H,W,G,X),svgDraw$3.drawBoundary(C,H,conf$a)},drawC4ShapeArray=function(C,H,U,W){let G=0;for(const X of W){G=0;const Z=U[X];let Q=c4ShapeFont(conf$a,Z.typeC4Shape.text);switch(Q.fontSize=Q.fontSize-2,Z.typeC4Shape.width=calculateTextWidth("<<"+Z.typeC4Shape.text+">>",Q),Z.typeC4Shape.height=Q.fontSize+2,Z.typeC4Shape.Y=conf$a.c4ShapePadding,G=Z.typeC4Shape.Y+Z.typeC4Shape.height-4,Z.image={width:0,height:0,Y:0},Z.typeC4Shape.text){case"person":case"external_person":Z.image.width=48,Z.image.height=48,Z.image.Y=G,G=Z.image.Y+Z.image.height;break}Z.sprite&&(Z.image.width=48,Z.image.height=48,Z.image.Y=G,G=Z.image.Y+Z.image.height);let ee=Z.wrap&&conf$a.wrap,ie=conf$a.width-conf$a.c4ShapePadding*2,te=c4ShapeFont(conf$a,Z.typeC4Shape.text);if(te.fontSize=te.fontSize+2,te.fontWeight="bold",calcC4ShapeTextWH("label",Z,ee,te,ie),Z.label.Y=G+8,G=Z.label.Y+Z.label.height,Z.type&&Z.type.text!==""){Z.type.text="["+Z.type.text+"]";let oe=c4ShapeFont(conf$a,Z.typeC4Shape.text);calcC4ShapeTextWH("type",Z,ee,oe,ie),Z.type.Y=G+5,G=Z.type.Y+Z.type.height}else if(Z.techn&&Z.techn.text!==""){Z.techn.text="["+Z.techn.text+"]";let oe=c4ShapeFont(conf$a,Z.techn.text);calcC4ShapeTextWH("techn",Z,ee,oe,ie),Z.techn.Y=G+5,G=Z.techn.Y+Z.techn.height}let ne=G,ae=Z.label.width;if(Z.descr&&Z.descr.text!==""){let oe=c4ShapeFont(conf$a,Z.typeC4Shape.text);calcC4ShapeTextWH("descr",Z,ee,oe,ie),Z.descr.Y=G+20,G=Z.descr.Y+Z.descr.height,ae=Math.max(Z.label.width,Z.descr.width),ne=G-Z.descr.textLines*5}ae=ae+conf$a.c4ShapePadding,Z.width=Math.max(Z.width||conf$a.width,ae,conf$a.width),Z.height=Math.max(Z.height||conf$a.height,ne,conf$a.height),Z.margin=Z.margin||conf$a.c4ShapeMargin,C.insert(Z),svgDraw$3.drawC4Shape(H,Z,conf$a)}C.bumpLastMargin(conf$a.c4ShapeMargin)};class Point{constructor(H,U){this.x=H,this.y=U}}let getIntersectPoint=function(C,H){let U=C.x,W=C.y,G=H.x,X=H.y,Z=U+C.width/2,Q=W+C.height/2,ee=Math.abs(U-G),ie=Math.abs(W-X),te=ie/ee,ne=C.height/C.width,ae=null;return W==X&&U<G?ae=new Point(U+C.width,Q):W==X&&U>G?ae=new Point(U,Q):U==G&&W<X?ae=new Point(Z,W+C.height):U==G&&W>X&&(ae=new Point(Z,W)),U>G&&W<X?ne>=te?ae=new Point(U,Q+te*C.width/2):ae=new Point(Z-ee/ie*C.height/2,W+C.height):U<G&&W<X?ne>=te?ae=new Point(U+C.width,Q+te*C.width/2):ae=new Point(Z+ee/ie*C.height/2,W+C.height):U<G&&W>X?ne>=te?ae=new Point(U+C.width,Q-te*C.width/2):ae=new Point(Z+C.height/2*ee/ie,W):U>G&&W>X&&(ne>=te?ae=new Point(U,Q-C.width/2*te):ae=new Point(Z-C.height/2*ee/ie,W)),ae},getIntersectPoints=function(C,H){let U={x:0,y:0};U.x=H.x+H.width/2,U.y=H.y+H.height/2;let W=getIntersectPoint(C,U);U.x=C.x+C.width/2,U.y=C.y+C.height/2;let G=getIntersectPoint(H,U);return{startPoint:W,endPoint:G}};const drawRels=function(C,H,U,W){let G=0;for(let X of H){G=G+1;let Z=X.wrap&&conf$a.wrap,Q=messageFont$1(conf$a);W.db.getC4Type()==="C4Dynamic"&&(X.label.text=G+": "+X.label.text);let ie=calculateTextWidth(X.label.text,Q);calcC4ShapeTextWH("label",X,Z,Q,ie),X.techn&&X.techn.text!==""&&(ie=calculateTextWidth(X.techn.text,Q),calcC4ShapeTextWH("techn",X,Z,Q,ie)),X.descr&&X.descr.text!==""&&(ie=calculateTextWidth(X.descr.text,Q),calcC4ShapeTextWH("descr",X,Z,Q,ie));let te=U(X.from),ne=U(X.to),ae=getIntersectPoints(te,ne);X.startPoint=ae.startPoint,X.endPoint=ae.endPoint}svgDraw$3.drawRels(C,H,conf$a)};function drawInsideBoundary(C,H,U,W,G){let X=new Bounds(G);X.data.widthLimit=U.data.widthLimit/Math.min(c4BoundaryInRow,W.length);for(let[Z,Q]of W.entries()){let ee=0;Q.image={width:0,height:0,Y:0},Q.sprite&&(Q.image.width=48,Q.image.height=48,Q.image.Y=ee,ee=Q.image.Y+Q.image.height);let ie=Q.wrap&&conf$a.wrap,te=boundaryFont(conf$a);if(te.fontSize=te.fontSize+2,te.fontWeight="bold",calcC4ShapeTextWH("label",Q,ie,te,X.data.widthLimit),Q.label.Y=ee+8,ee=Q.label.Y+Q.label.height,Q.type&&Q.type.text!==""){Q.type.text="["+Q.type.text+"]";let se=boundaryFont(conf$a);calcC4ShapeTextWH("type",Q,ie,se,X.data.widthLimit),Q.type.Y=ee+5,ee=Q.type.Y+Q.type.height}if(Q.descr&&Q.descr.text!==""){let se=boundaryFont(conf$a);se.fontSize=se.fontSize-2,calcC4ShapeTextWH("descr",Q,ie,se,X.data.widthLimit),Q.descr.Y=ee+20,ee=Q.descr.Y+Q.descr.height}if(Z==0||Z%c4BoundaryInRow===0){let se=U.data.startx+conf$a.diagramMarginX,le=U.data.stopy+conf$a.diagramMarginY+ee;X.setData(se,se,le,le)}else{let se=X.data.stopx!==X.data.startx?X.data.stopx+conf$a.diagramMarginX:X.data.startx,le=X.data.starty;X.setData(se,se,le,le)}X.name=Q.alias;let ne=G.db.getC4ShapeArray(Q.alias),ae=G.db.getC4ShapeKeys(Q.alias);ae.length>0&&drawC4ShapeArray(X,C,ne,ae),H=Q.alias;let oe=G.db.getBoundarys(H);oe.length>0&&drawInsideBoundary(C,H,X,oe,G),Q.alias!=="global"&&drawBoundary(C,Q,X),U.data.stopy=Math.max(X.data.stopy+conf$a.c4ShapeMargin,U.data.stopy),U.data.stopx=Math.max(X.data.stopx+conf$a.c4ShapeMargin,U.data.stopx),globalBoundaryMaxX=Math.max(globalBoundaryMaxX,U.data.stopx),globalBoundaryMaxY=Math.max(globalBoundaryMaxY,U.data.stopy)}}const draw$e=function(C,H,U,W){conf$a=getConfig$1().c4;const G=getConfig$1().securityLevel;let X;G==="sandbox"&&(X=select("#i"+H));const Z=select(G==="sandbox"?X.nodes()[0].contentDocument.body:"body");let Q=W.db;W.db.setWrap(conf$a.wrap),c4ShapeInRow=Q.getC4ShapeInRow(),c4BoundaryInRow=Q.getC4BoundaryInRow(),log$1.debug(`C:${JSON.stringify(conf$a,null,2)}`);const ee=G==="sandbox"?Z.select(`[id="${H}"]`):select(`[id="${H}"]`);svgDraw$3.insertComputerIcon(ee),svgDraw$3.insertDatabaseIcon(ee),svgDraw$3.insertClockIcon(ee);let ie=new Bounds(W);ie.setData(conf$a.diagramMarginX,conf$a.diagramMarginX,conf$a.diagramMarginY,conf$a.diagramMarginY),ie.data.widthLimit=screen.availWidth,globalBoundaryMaxX=conf$a.diagramMarginX,globalBoundaryMaxY=conf$a.diagramMarginY;const te=W.db.getTitle();let ne=W.db.getBoundarys("");drawInsideBoundary(ee,"",ie,ne,W),svgDraw$3.insertArrowHead(ee),svgDraw$3.insertArrowEnd(ee),svgDraw$3.insertArrowCrossHead(ee),svgDraw$3.insertArrowFilledHead(ee),drawRels(ee,W.db.getRels(),W.db.getC4Shape,W),ie.data.stopx=globalBoundaryMaxX,ie.data.stopy=globalBoundaryMaxY;const ae=ie.data;let se=ae.stopy-ae.starty+2*conf$a.diagramMarginY;const ce=ae.stopx-ae.startx+2*conf$a.diagramMarginX;te&&ee.append("text").text(te).attr("x",(ae.stopx-ae.startx)/2-4*conf$a.diagramMarginX).attr("y",ae.starty+conf$a.diagramMarginY),configureSvgSize(ee,se,ce,conf$a.useMaxWidth);const ue=te?60:0;ee.attr("viewBox",ae.startx-conf$a.diagramMarginX+" -"+(conf$a.diagramMarginY+ue)+" "+ce+" "+(se+ue)),log$1.debug("models:",ae)},c4Renderer={drawPersonOrSystemArray:drawC4ShapeArray,drawBoundary,setConf:setConf$a,draw:draw$e};var parser$a=function(){var C=function(Ke,Ee,Ce,Pe){for(Ce=Ce||{},Pe=Ke.length;Pe--;Ce[Ke[Pe]]=Ee);return Ce},H=[1,3],U=[1,7],W=[1,8],G=[1,9],X=[1,10],Z=[1,13],Q=[1,12],ee=[1,16,25],ie=[1,20],te=[1,32],ne=[1,33],ae=[1,34],oe=[1,36],se=[1,39],le=[1,37],ce=[1,38],ue=[1,44],de=[1,45],ve=[1,40],ge=[1,41],he=[1,42],me=[1,43],_e=[1,48],be=[1,49],pe=[1,50],fe=[1,51],ye=[16,25],$e=[1,65],we=[1,66],Se=[1,67],Te=[1,68],xe=[1,69],ke=[1,70],Ie=[1,71],Ae=[1,80],Me=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],Fe=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],Be=[5,8,9,10,11,16,19,23,25],Ne=[54,88,89,90,91],Ve=[54,65,66,88,89,90,91],Le=[54,60,61,62,63,64,88,89,90,91],De=[16,25,32],Je=[1,107],ze={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(Ee,Ce,Pe,Re,Ze,Oe,Qe){var Xe=Oe.length-1;switch(Ze){case 5:Re.setDirection("TB");break;case 6:Re.setDirection("BT");break;case 7:Re.setDirection("RL");break;case 8:Re.setDirection("LR");break;case 12:Re.parseDirective("%%{","open_directive");break;case 13:Re.parseDirective(Oe[Xe],"type_directive");break;case 14:Oe[Xe]=Oe[Xe].trim().replace(/'/g,'"'),Re.parseDirective(Oe[Xe],"arg_directive");break;case 15:Re.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=Oe[Xe];break;case 22:this.$=Oe[Xe-1]+Oe[Xe];break;case 23:case 24:this.$=Oe[Xe-1]+"~"+Oe[Xe];break;case 25:Re.addRelation(Oe[Xe]);break;case 26:Oe[Xe-1].title=Re.cleanupLabel(Oe[Xe]),Re.addRelation(Oe[Xe-1]);break;case 35:this.$=Oe[Xe].trim(),Re.setAccTitle(this.$);break;case 36:case 37:this.$=Oe[Xe].trim(),Re.setAccDescription(this.$);break;case 38:Re.addClass(Oe[Xe]);break;case 39:Re.addClass(Oe[Xe-2]),Re.setCssClass(Oe[Xe-2],Oe[Xe]);break;case 40:Re.addClass(Oe[Xe-3]),Re.addMembers(Oe[Xe-3],Oe[Xe-1]);break;case 41:Re.addClass(Oe[Xe-5]),Re.setCssClass(Oe[Xe-5],Oe[Xe-3]),Re.addMembers(Oe[Xe-5],Oe[Xe-1]);break;case 42:Re.addAnnotation(Oe[Xe],Oe[Xe-2]);break;case 43:this.$=[Oe[Xe]];break;case 44:Oe[Xe].push(Oe[Xe-1]),this.$=Oe[Xe];break;case 45:break;case 46:Re.addMember(Oe[Xe-1],Re.cleanupLabel(Oe[Xe]));break;case 47:break;case 48:break;case 49:this.$={id1:Oe[Xe-2],id2:Oe[Xe],relation:Oe[Xe-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:Oe[Xe-3],id2:Oe[Xe],relation:Oe[Xe-1],relationTitle1:Oe[Xe-2],relationTitle2:"none"};break;case 51:this.$={id1:Oe[Xe-3],id2:Oe[Xe],relation:Oe[Xe-2],relationTitle1:"none",relationTitle2:Oe[Xe-1]};break;case 52:this.$={id1:Oe[Xe-4],id2:Oe[Xe],relation:Oe[Xe-2],relationTitle1:Oe[Xe-3],relationTitle2:Oe[Xe-1]};break;case 53:Re.addNote(Oe[Xe],Oe[Xe-1]);break;case 54:Re.addNote(Oe[Xe]);break;case 55:this.$={type1:Oe[Xe-2],type2:Oe[Xe],lineType:Oe[Xe-1]};break;case 56:this.$={type1:"none",type2:Oe[Xe],lineType:Oe[Xe-1]};break;case 57:this.$={type1:Oe[Xe-1],type2:"none",lineType:Oe[Xe]};break;case 58:this.$={type1:"none",type2:"none",lineType:Oe[Xe]};break;case 59:this.$=Re.relationType.AGGREGATION;break;case 60:this.$=Re.relationType.EXTENSION;break;case 61:this.$=Re.relationType.COMPOSITION;break;case 62:this.$=Re.relationType.DEPENDENCY;break;case 63:this.$=Re.relationType.LOLLIPOP;break;case 64:this.$=Re.lineType.LINE;break;case 65:this.$=Re.lineType.DOTTED_LINE;break;case 66:case 72:this.$=Oe[Xe-2],Re.setClickEvent(Oe[Xe-1],Oe[Xe]);break;case 67:case 73:this.$=Oe[Xe-3],Re.setClickEvent(Oe[Xe-2],Oe[Xe-1]),Re.setTooltip(Oe[Xe-2],Oe[Xe]);break;case 68:case 76:this.$=Oe[Xe-2],Re.setLink(Oe[Xe-1],Oe[Xe]);break;case 69:this.$=Oe[Xe-3],Re.setLink(Oe[Xe-2],Oe[Xe-1],Oe[Xe]);break;case 70:case 78:this.$=Oe[Xe-3],Re.setLink(Oe[Xe-2],Oe[Xe-1]),Re.setTooltip(Oe[Xe-2],Oe[Xe]);break;case 71:case 79:this.$=Oe[Xe-4],Re.setLink(Oe[Xe-3],Oe[Xe-2],Oe[Xe]),Re.setTooltip(Oe[Xe-3],Oe[Xe-1]);break;case 74:this.$=Oe[Xe-3],Re.setClickEvent(Oe[Xe-2],Oe[Xe-1],Oe[Xe]);break;case 75:this.$=Oe[Xe-4],Re.setClickEvent(Oe[Xe-3],Oe[Xe-2],Oe[Xe-1]),Re.setTooltip(Oe[Xe-3],Oe[Xe]);break;case 77:this.$=Oe[Xe-3],Re.setLink(Oe[Xe-2],Oe[Xe-1],Oe[Xe]);break;case 80:Re.setCssClass(Oe[Xe-1],Oe[Xe]);break}},table:[{3:1,4:2,5:H,6:4,7:5,8:U,9:W,10:G,11:X,12:6,13:11,19:Z,23:Q},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:H,6:4,7:5,8:U,9:W,10:G,11:X,12:6,13:11,19:Z,23:Q},{1:[2,9]},C(ee,[2,5]),C(ee,[2,6]),C(ee,[2,7]),C(ee,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:ie},C([17,22],[2,13]),{6:31,7:30,8:U,9:W,10:G,11:X,13:11,19:Z,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:te,41:ne,43:ae,44:oe,49:se,51:le,52:ce,55:ue,57:de,67:ve,68:ge,70:he,74:me,88:_e,89:be,90:pe,91:fe},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},C(ye,[2,25],{32:[1,57]}),C(ye,[2,27]),C(ye,[2,28]),C(ye,[2,29]),C(ye,[2,30]),C(ye,[2,31]),C(ye,[2,32]),C(ye,[2,33]),C(ye,[2,34]),{40:[1,58]},{42:[1,59]},C(ye,[2,37]),C(ye,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:$e,61:we,62:Se,63:Te,64:xe,65:ke,66:Ie}),{27:72,28:46,29:47,88:_e,89:be,90:pe,91:fe},C(ye,[2,47]),C(ye,[2,48]),{28:73,88:_e,89:be,90:pe},{27:74,28:46,29:47,88:_e,89:be,90:pe,91:fe},{27:75,28:46,29:47,88:_e,89:be,90:pe,91:fe},{27:76,28:46,29:47,88:_e,89:be,90:pe,91:fe},{54:[1,77]},{27:78,28:46,29:47,88:_e,89:be,90:pe,91:fe},{54:Ae,56:79},C(Me,[2,20],{28:46,29:47,27:81,30:[1,82],88:_e,89:be,90:pe,91:fe}),C(Me,[2,21],{30:[1,83]}),C(Fe,[2,94]),C(Fe,[2,95]),C(Fe,[2,96]),C([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),C(Be,[2,10]),{15:84,22:ie},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:U,9:W,10:G,11:X,13:11,19:Z,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:te,41:ne,43:ae,44:oe,49:se,51:le,52:ce,55:ue,57:de,67:ve,68:ge,70:he,74:me,88:_e,89:be,90:pe,91:fe},C(ye,[2,26]),C(ye,[2,35]),C(ye,[2,36]),{27:86,28:46,29:47,54:[1,87],88:_e,89:be,90:pe,91:fe},{53:88,58:63,59:64,60:$e,61:we,62:Se,63:Te,64:xe,65:ke,66:Ie},C(ye,[2,46]),{59:89,65:ke,66:Ie},C(Ne,[2,58],{58:90,60:$e,61:we,62:Se,63:Te,64:xe}),C(Ve,[2,59]),C(Ve,[2,60]),C(Ve,[2,61]),C(Ve,[2,62]),C(Ve,[2,63]),C(Le,[2,64]),C(Le,[2,65]),C(ye,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:_e,89:be,90:pe},{54:Ae,56:99},C(ye,[2,54]),C(ye,[2,98]),C(Me,[2,22]),C(Me,[2,23]),C(Me,[2,24]),{16:[1,100]},{25:[2,19]},C(De,[2,49]),{27:101,28:46,29:47,88:_e,89:be,90:pe,91:fe},{27:102,28:46,29:47,54:[1,103],88:_e,89:be,90:pe,91:fe},C(Ne,[2,57],{58:104,60:$e,61:we,62:Se,63:Te,64:xe}),C(Ne,[2,56]),{28:105,88:_e,89:be,90:pe},{47:106,51:Je},{27:108,28:46,29:47,88:_e,89:be,90:pe,91:fe},C(ye,[2,66],{54:[1,109]}),C(ye,[2,68],{54:[1,111],69:[1,110]}),C(ye,[2,72],{54:[1,112],72:[1,113]}),C(ye,[2,76],{54:[1,115],69:[1,114]}),C(ye,[2,80]),C(ye,[2,53]),C(Be,[2,11]),C(De,[2,51]),C(De,[2,50]),{27:116,28:46,29:47,88:_e,89:be,90:pe,91:fe},C(Ne,[2,55]),C(ye,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:Je},C(ye,[2,42]),C(ye,[2,67]),C(ye,[2,69]),C(ye,[2,70],{69:[1,120]}),C(ye,[2,73]),C(ye,[2,74],{54:[1,121]}),C(ye,[2,77]),C(ye,[2,78],{69:[1,122]}),C(De,[2,52]),{47:123,51:Je},C(ye,[2,40]),{48:[2,44]},C(ye,[2,71]),C(ye,[2,75]),C(ye,[2,79]),{48:[1,124]},C(ye,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(Ee,Ce){if(Ce.recoverable)this.trace(Ee);else{var Pe=new Error(Ee);throw Pe.hash=Ce,Pe}},parse:function(Ee){var Ce=this,Pe=[0],Re=[],Ze=[null],Oe=[],Qe=this.table,Xe="",et=0,We=0,He=2,Ye=1,nt=Oe.slice.call(arguments,1),tt=Object.create(this.lexer),at={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(at.yy[St]=this.yy[St]);tt.setInput(Ee,at.yy),at.yy.lexer=tt,at.yy.parser=this,typeof tt.yylloc>"u"&&(tt.yylloc={});var st=tt.yylloc;Oe.push(st);var it=tt.options&&tt.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var ot;return ot=Re.pop()||tt.lex()||Ye,typeof ot!="number"&&(ot instanceof Array&&(Re=ot,ot=Re.pop()),ot=Ce.symbols_[ot]||ot),ot}for(var wt,xt,mt,gt,lt={},ct,vt,_t,rt;;){if(xt=Pe[Pe.length-1],this.defaultActions[xt]?mt=this.defaultActions[xt]:((wt===null||typeof wt>"u")&&(wt=pt()),mt=Qe[xt]&&Qe[xt][wt]),typeof mt>"u"||!mt.length||!mt[0]){var ut="";rt=[];for(ct in Qe[xt])this.terminals_[ct]&&ct>He&&rt.push("'"+this.terminals_[ct]+"'");tt.showPosition?ut="Parse error on line "+(et+1)+`:
|
||
`+tt.showPosition()+`
|
||
Expecting `+rt.join(", ")+", got '"+(this.terminals_[wt]||wt)+"'":ut="Parse error on line "+(et+1)+": Unexpected "+(wt==Ye?"end of input":"'"+(this.terminals_[wt]||wt)+"'"),this.parseError(ut,{text:tt.match,token:this.terminals_[wt]||wt,line:tt.yylineno,loc:st,expected:rt})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+wt);switch(mt[0]){case 1:Pe.push(wt),Ze.push(tt.yytext),Oe.push(tt.yylloc),Pe.push(mt[1]),wt=null,We=tt.yyleng,Xe=tt.yytext,et=tt.yylineno,st=tt.yylloc;break;case 2:if(vt=this.productions_[mt[1]][1],lt.$=Ze[Ze.length-vt],lt._$={first_line:Oe[Oe.length-(vt||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(vt||1)].first_column,last_column:Oe[Oe.length-1].last_column},it&&(lt._$.range=[Oe[Oe.length-(vt||1)].range[0],Oe[Oe.length-1].range[1]]),gt=this.performAction.apply(lt,[Xe,We,et,at.yy,mt[1],Ze,Oe].concat(nt)),typeof gt<"u")return gt;vt&&(Pe=Pe.slice(0,-1*vt*2),Ze=Ze.slice(0,-1*vt),Oe=Oe.slice(0,-1*vt)),Pe.push(this.productions_[mt[1]][0]),Ze.push(lt.$),Oe.push(lt._$),_t=Qe[Pe[Pe.length-2]][Pe[Pe.length-1]],Pe.push(_t);break;case 3:return!0}}return!0}},Ge=function(){var Ke={EOF:1,parseError:function(Ce,Pe){if(this.yy.parser)this.yy.parser.parseError(Ce,Pe);else throw new Error(Ce)},setInput:function(Ee,Ce){return this.yy=Ce||this.yy||{},this._input=Ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var Ce=Ee.match(/(?:\r\n?|\n).*/g);return Ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var Ce=Ee.length,Pe=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ce),this.offset-=Ce;var Re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Pe.length-1&&(this.yylineno-=Pe.length-1);var Ze=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Pe?(Pe.length===Re.length?this.yylloc.first_column:0)+Re[Re.length-Pe.length].length-Pe[0].length:this.yylloc.first_column-Ce},this.options.ranges&&(this.yylloc.range=[Ze[0],Ze[0]+this.yyleng-Ce]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),Ce=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
||
`+Ce+"^"},test_match:function(Ee,Ce){var Pe,Re,Ze;if(this.options.backtrack_lexer&&(Ze={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ze.yylloc.range=this.yylloc.range.slice(0))),Re=Ee[0].match(/(?:\r\n?|\n).*/g),Re&&(this.yylineno+=Re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Re?Re[Re.length-1].length-Re[Re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ee[0].length),this.matched+=Ee[0],Pe=this.performAction.call(this,this.yy,this,Ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pe)return Pe;if(this._backtrack){for(var Oe in Ze)this[Oe]=Ze[Oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,Ce,Pe,Re;this._more||(this.yytext="",this.match="");for(var Ze=this._currentRules(),Oe=0;Oe<Ze.length;Oe++)if(Pe=this._input.match(this.rules[Ze[Oe]]),Pe&&(!Ce||Pe[0].length>Ce[0].length)){if(Ce=Pe,Re=Oe,this.options.backtrack_lexer){if(Ee=this.test_match(Pe,Ze[Oe]),Ee!==!1)return Ee;if(this._backtrack){Ce=!1;continue}else return!1}else if(!this.options.flex)break}return Ce?(Ee=this.test_match(Ce,Ze[Re]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ce=this.next();return Ce||this.lex()},begin:function(Ce){this.conditionStack.push(Ce)},popState:function(){var Ce=this.conditionStack.length-1;return Ce>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ce){return Ce=this.conditionStack.length-1-Math.abs(Ce||0),Ce>=0?this.conditionStack[Ce]:"INITIAL"},pushState:function(Ce){this.begin(Ce)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ce,Pe,Re,Ze){switch(Re){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:return 69;case 57:return 69;case 58:return 69;case 59:return 69;case 60:return 61;case 61:return 61;case 62:return 63;case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}};return Ke}();ze.lexer=Ge;function qe(){this.yy={}}return qe.prototype=ze,ze.Parser=qe,new qe}();parser$a.parser=parser$a;const classParser=parser$a,classDetector=(C,H)=>{var U;return((U=H==null?void 0:H.class)==null?void 0:U.defaultRenderer)==="dagre-wrapper"?!1:C.match(/^\s*classDiagram/)!==null},classDetectorV2=(C,H)=>{var U;return C.match(/^\s*classDiagram/)!==null&&((U=H==null?void 0:H.class)==null?void 0:U.defaultRenderer)==="dagre-wrapper"?!0:C.match(/^\s*classDiagram-v2/)!==null},MERMAID_DOM_ID_PREFIX$1="classid-";let relations$1=[],classes$2={},notes=[],classCounter=0,funs$2=[];const sanitizeText$2=C=>common$1.sanitizeText(C,getConfig$1()),parseDirective$8=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},splitClassNameAndType=function(C){let H="",U=C;if(C.indexOf("~")>0){let W=C.split("~");U=W[0],H=common$1.sanitizeText(W[1],getConfig$1())}return{className:U,type:H}},addClass$1=function(C){let H=splitClassNameAndType(C);classes$2[H.className]===void 0&&(classes$2[H.className]={id:H.className,type:H.type,cssClasses:[],methods:[],members:[],annotations:[],domId:MERMAID_DOM_ID_PREFIX$1+H.className+"-"+classCounter},classCounter++)},lookUpDomId$1=function(C){const H=Object.keys(classes$2);for(const U of H)if(classes$2[U].id===C)return classes$2[U].domId},clear$c=function(){relations$1=[],classes$2={},notes=[],funs$2=[],funs$2.push(setupToolTips$1),clear$g()},getClass=function(C){return classes$2[C]},getClasses$5=function(){return classes$2},getRelations$1=function(){return relations$1},getNotes=function(){return notes},addRelation$1=function(C){log$1.debug("Adding relation: "+JSON.stringify(C)),addClass$1(C.id1),addClass$1(C.id2),C.id1=splitClassNameAndType(C.id1).className,C.id2=splitClassNameAndType(C.id2).className,C.relationTitle1=common$1.sanitizeText(C.relationTitle1.trim(),getConfig$1()),C.relationTitle2=common$1.sanitizeText(C.relationTitle2.trim(),getConfig$1()),relations$1.push(C)},addAnnotation=function(C,H){const U=splitClassNameAndType(C).className;classes$2[U].annotations.push(H)},addMember=function(C,H){const U=splitClassNameAndType(C).className,W=classes$2[U];if(typeof H=="string"){const G=H.trim();G.startsWith("<<")&&G.endsWith(">>")?W.annotations.push(sanitizeText$2(G.substring(2,G.length-2))):G.indexOf(")")>0?W.methods.push(sanitizeText$2(G)):G&&W.members.push(sanitizeText$2(G))}},addMembers=function(C,H){Array.isArray(H)&&(H.reverse(),H.forEach(U=>addMember(C,U)))},addNote$1=function(C,H){const U={id:`note${notes.length}`,class:H,text:C};notes.push(U)},cleanupLabel$1=function(C){return C.substring(0,1)===":"?common$1.sanitizeText(C.substr(1).trim(),getConfig$1()):sanitizeText$2(C.trim())},setCssClass$1=function(C,H){C.split(",").forEach(function(U){let W=U;U[0].match(/\d/)&&(W=MERMAID_DOM_ID_PREFIX$1+W),classes$2[W]!==void 0&&classes$2[W].cssClasses.push(H)})},setTooltip$1=function(C,H){const U=getConfig$1();C.split(",").forEach(function(W){H!==void 0&&(classes$2[W].tooltip=common$1.sanitizeText(H,U))})},getTooltip$1=function(C){return classes$2[C].tooltip},setLink$2=function(C,H,U){const W=getConfig$1();C.split(",").forEach(function(G){let X=G;G[0].match(/\d/)&&(X=MERMAID_DOM_ID_PREFIX$1+X),classes$2[X]!==void 0&&(classes$2[X].link=utils$d.formatUrl(H,W),W.securityLevel==="sandbox"?classes$2[X].linkTarget="_top":typeof U=="string"?classes$2[X].linkTarget=sanitizeText$2(U):classes$2[X].linkTarget="_blank")}),setCssClass$1(C,"clickable")},setClickEvent$2=function(C,H,U){C.split(",").forEach(function(W){setClickFunc(W,H,U),classes$2[W].haveCallback=!0}),setCssClass$1(C,"clickable")},setClickFunc=function(C,H,U){const W=getConfig$1();let G=C,X=lookUpDomId$1(G);if(W.securityLevel==="loose"&&H!==void 0&&classes$2[G]!==void 0){let Z=[];if(typeof U=="string"){Z=U.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let Q=0;Q<Z.length;Q++){let ee=Z[Q].trim();ee.charAt(0)==='"'&&ee.charAt(ee.length-1)==='"'&&(ee=ee.substr(1,ee.length-2)),Z[Q]=ee}}Z.length===0&&Z.push(X),funs$2.push(function(){const Q=document.querySelector(`[id="${X}"]`);Q!==null&&Q.addEventListener("click",function(){utils$d.runFunc(H,...Z)},!1)})}},bindFunctions$2=function(C){funs$2.forEach(function(H){H(C)})},lineType$1={LINE:0,DOTTED_LINE:1},relationType$1={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setupToolTips$1=function(C){let H=select(".mermaidTooltip");(H._groups||H)[0][0]===null&&(H=select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),select(C).select("svg").selectAll("g.node").on("mouseover",function(){const G=select(this);if(G.attr("title")===null)return;const Z=this.getBoundingClientRect();H.transition().duration(200).style("opacity",".9"),H.text(G.attr("title")).style("left",window.scrollX+Z.left+(Z.right-Z.left)/2+"px").style("top",window.scrollY+Z.top-14+document.body.scrollTop+"px"),H.html(H.html().replace(/<br\/>/g,"<br/>")),G.classed("hover",!0)}).on("mouseout",function(){H.transition().duration(500).style("opacity",0),select(this).classed("hover",!1)})};funs$2.push(setupToolTips$1);let direction$2="TB";const getDirection$2=()=>direction$2,setDirection$2=C=>{direction$2=C},classDb={parseDirective:parseDirective$8,setAccTitle,getAccTitle,getAccDescription,setAccDescription,getConfig:()=>getConfig$1().class,addClass:addClass$1,bindFunctions:bindFunctions$2,clear:clear$c,getClass,getClasses:getClasses$5,getNotes,addAnnotation,addNote:addNote$1,getRelations:getRelations$1,addRelation:addRelation$1,getDirection:getDirection$2,setDirection:setDirection$2,addMember,addMembers,cleanupLabel:cleanupLabel$1,lineType:lineType$1,relationType:relationType$1,setClickEvent:setClickEvent$2,setCssClass:setCssClass$1,setLink:setLink$2,getTooltip:getTooltip$1,setTooltip:setTooltip$1,lookUpDomId:lookUpDomId$1,setDiagramTitle,getDiagramTitle};let edgeCount$1=0;const drawEdge$1=function(C,H,U,W,G){const X=function(de){switch(de){case G.db.relationType.AGGREGATION:return"aggregation";case G.db.relationType.EXTENSION:return"extension";case G.db.relationType.COMPOSITION:return"composition";case G.db.relationType.DEPENDENCY:return"dependency";case G.db.relationType.LOLLIPOP:return"lollipop"}};H.points=H.points.filter(de=>!Number.isNaN(de.y));const Z=H.points,Q=line$1().x(function(de){return de.x}).y(function(de){return de.y}).curve(curveBasis),ee=C.append("path").attr("d",Q(Z)).attr("id","edge"+edgeCount$1).attr("class","relation");let ie="";W.arrowMarkerAbsolute&&(ie=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ie=ie.replace(/\(/g,"\\("),ie=ie.replace(/\)/g,"\\)")),U.relation.lineType==1&&ee.attr("class","relation dashed-line"),U.relation.lineType==10&&ee.attr("class","relation dotted-line"),U.relation.type1!=="none"&&ee.attr("marker-start","url("+ie+"#"+X(U.relation.type1)+"Start)"),U.relation.type2!=="none"&&ee.attr("marker-end","url("+ie+"#"+X(U.relation.type2)+"End)");let te,ne;const ae=H.points.length;let oe=utils$d.calcLabelPosition(H.points);te=oe.x,ne=oe.y;let se,le,ce,ue;if(ae%2!==0&&ae>1){let de=utils$d.calcCardinalityPosition(U.relation.type1!=="none",H.points,H.points[0]),ve=utils$d.calcCardinalityPosition(U.relation.type2!=="none",H.points,H.points[ae-1]);log$1.debug("cardinality_1_point "+JSON.stringify(de)),log$1.debug("cardinality_2_point "+JSON.stringify(ve)),se=de.x,le=de.y,ce=ve.x,ue=ve.y}if(U.title!==void 0){const de=C.append("g").attr("class","classLabel"),ve=de.append("text").attr("class","label").attr("x",te).attr("y",ne).attr("fill","red").attr("text-anchor","middle").text(U.title);window.label=ve;const ge=ve.node().getBBox();de.insert("rect",":first-child").attr("class","box").attr("x",ge.x-W.padding/2).attr("y",ge.y-W.padding/2).attr("width",ge.width+W.padding).attr("height",ge.height+W.padding)}log$1.info("Rendering relation "+JSON.stringify(U)),U.relationTitle1!==void 0&&U.relationTitle1!=="none"&&C.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",se).attr("y",le).attr("fill","black").attr("font-size","6").text(U.relationTitle1),U.relationTitle2!==void 0&&U.relationTitle2!=="none"&&C.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",ce).attr("y",ue).attr("fill","black").attr("font-size","6").text(U.relationTitle2),edgeCount$1++},drawClass=function(C,H,U,W){log$1.debug("Rendering class ",H,U);const G=H.id,X={id:G,label:H.id,width:0,height:0},Z=C.append("g").attr("id",W.db.lookUpDomId(G)).attr("class","classGroup");let Q;H.link?Q=Z.append("svg:a").attr("xlink:href",H.link).attr("target",H.linkTarget).append("text").attr("y",U.textHeight+U.padding).attr("x",0):Q=Z.append("text").attr("y",U.textHeight+U.padding).attr("x",0);let ee=!0;H.annotations.forEach(function(he){const me=Q.append("tspan").text("\xAB"+he+"\xBB");ee||me.attr("dy",U.textHeight),ee=!1});let ie=H.id;H.type!==void 0&&H.type!==""&&(ie+="<"+H.type+">");const te=Q.append("tspan").text(ie).attr("class","title");ee||te.attr("dy",U.textHeight);const ne=Q.node().getBBox().height,ae=Z.append("line").attr("x1",0).attr("y1",U.padding+ne+U.dividerMargin/2).attr("y2",U.padding+ne+U.dividerMargin/2),oe=Z.append("text").attr("x",U.padding).attr("y",ne+U.dividerMargin+U.textHeight).attr("fill","white").attr("class","classText");ee=!0,H.members.forEach(function(he){addTspan(oe,he,ee,U),ee=!1});const se=oe.node().getBBox(),le=Z.append("line").attr("x1",0).attr("y1",U.padding+ne+U.dividerMargin+se.height).attr("y2",U.padding+ne+U.dividerMargin+se.height),ce=Z.append("text").attr("x",U.padding).attr("y",ne+2*U.dividerMargin+se.height+U.textHeight).attr("fill","white").attr("class","classText");ee=!0,H.methods.forEach(function(he){addTspan(ce,he,ee,U),ee=!1});const ue=Z.node().getBBox();var de=" ";H.cssClasses.length>0&&(de=de+H.cssClasses.join(" "));const ge=Z.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",ue.width+2*U.padding).attr("height",ue.height+U.padding+.5*U.dividerMargin).attr("class",de).node().getBBox().width;return Q.node().childNodes.forEach(function(he){he.setAttribute("x",(ge-he.getBBox().width)/2)}),H.tooltip&&Q.insert("title").text(H.tooltip),ae.attr("x2",ge),le.attr("x2",ge),X.width=ge,X.height=ue.height+U.padding+.5*U.dividerMargin,X},drawNote$2=function(C,H,U,W){log$1.debug("Rendering note ",H,U);const G=H.id,X={id:G,text:H.text,width:0,height:0},Z=C.append("g").attr("id",G).attr("class","classGroup");let Q=Z.append("text").attr("y",U.textHeight+U.padding).attr("x",0);const ee=JSON.parse(`"${H.text}"`).split(`
|
||
`);ee.forEach(function(ae){log$1.debug(`Adding line: ${ae}`),Q.append("tspan").text(ae).attr("class","title").attr("dy",U.textHeight)});const ie=Z.node().getBBox(),ne=Z.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",ie.width+2*U.padding).attr("height",ie.height+ee.length*U.textHeight+U.padding+.5*U.dividerMargin).node().getBBox().width;return Q.node().childNodes.forEach(function(ae){ae.setAttribute("x",(ne-ae.getBBox().width)/2)}),X.width=ne,X.height=ie.height+ee.length*U.textHeight+U.padding+.5*U.dividerMargin,X},parseMember=function(C){const H=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,U=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let W=C.match(H),G=C.match(U);return W&&!G?buildFieldDisplay(W):G?buildMethodDisplay(G):buildLegacyDisplay(C)},buildFieldDisplay=function(C){let H="",U="";try{let W=C[1]?C[1].trim():"",G=C[2]?C[2].trim():"",X=C[3]?parseGenericTypes(C[3].trim()):"",Z=C[4]?C[4].trim():"",Q=C[5]?C[5].trim():"";U=W+G+X+" "+Z,H=parseClassifier(Q)}catch{U=C}return{displayText:U,cssStyle:H}},buildMethodDisplay=function(C){let H="",U="";try{let W=C[1]?C[1].trim():"",G=C[2]?C[2].trim():"",X=C[3]?parseGenericTypes(C[3].trim()):"",Z=C[4]?C[4].trim():"",Q=C[5]?" : "+parseGenericTypes(C[5]).trim():"";U=W+G+"("+X+")"+Q,H=parseClassifier(Z)}catch{U=C}return{displayText:U,cssStyle:H}},buildLegacyDisplay=function(C){let H="",U="",W="",G=C.indexOf("("),X=C.indexOf(")");if(G>1&&X>G&&X<=C.length){let Z="",Q="",ee=C.substring(0,1);ee.match(/\w/)?Q=C.substring(0,G).trim():(ee.match(/[#+~-]/)&&(Z=ee),Q=C.substring(1,G).trim());const ie=C.substring(G+1,X);C.substring(X+1,1),U=parseClassifier(C.substring(X+1,X+2)),H=Z+Q+"("+parseGenericTypes(ie.trim())+")",X<C.length&&(W=C.substring(X+2).trim(),W!==""&&(W=" : "+parseGenericTypes(W),H+=W))}else H=parseGenericTypes(C);return{displayText:H,cssStyle:U}},addTspan=function(C,H,U,W){let G=parseMember(H);const X=C.append("tspan").attr("x",W.padding).text(G.displayText);G.cssStyle!==""&&X.attr("style",G.cssStyle),U||X.attr("dy",W.textHeight)},parseClassifier=function(C){switch(C){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},svgDraw$2={drawClass,drawEdge:drawEdge$1,drawNote:drawNote$2,parseMember};let idCache$2={};const padding=20,getGraphId=function(C){const H=Object.entries(idCache$2).find(U=>U[1].label===C);if(H)return H[0]},insertMarkers$4=function(C){C.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),C.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),C.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},draw$d=function(C,H,U,W){const G=getConfig$1().class;idCache$2={},log$1.info("Rendering diagram "+C);const X=getConfig$1().securityLevel;let Z;X==="sandbox"&&(Z=select("#i"+H));const Q=select(X==="sandbox"?Z.nodes()[0].contentDocument.body:"body"),ee=Q.select(`[id='${H}']`);insertMarkers$4(ee);const ie=new Graph({multigraph:!0});ie.setGraph({isMultiGraph:!0}),ie.setDefaultEdgeLabel(function(){return{}});const te=W.db.getClasses(),ne=Object.keys(te);for(const de of ne){const ve=te[de],ge=svgDraw$2.drawClass(ee,ve,G,W);idCache$2[ge.id]=ge,ie.setNode(ge.id,ge),log$1.info("Org height: "+ge.height)}W.db.getRelations().forEach(function(de){log$1.info("tjoho"+getGraphId(de.id1)+getGraphId(de.id2)+JSON.stringify(de)),ie.setEdge(getGraphId(de.id1),getGraphId(de.id2),{relation:de},de.title||"DEFAULT")}),W.db.getNotes().forEach(function(de){log$1.debug(`Adding note: ${JSON.stringify(de)}`);const ve=svgDraw$2.drawNote(ee,de,G,W);idCache$2[ve.id]=ve,ie.setNode(ve.id,ve),de.class&&de.class in te&&ie.setEdge(de.id,getGraphId(de.class),{relation:{id1:de.id,id2:de.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),layout(ie),ie.nodes().forEach(function(de){de!==void 0&&ie.node(de)!==void 0&&(log$1.debug("Node "+de+": "+JSON.stringify(ie.node(de))),Q.select("#"+(W.db.lookUpDomId(de)||de)).attr("transform","translate("+(ie.node(de).x-ie.node(de).width/2)+","+(ie.node(de).y-ie.node(de).height/2)+" )"))}),ie.edges().forEach(function(de){de!==void 0&&ie.edge(de)!==void 0&&(log$1.debug("Edge "+de.v+" -> "+de.w+": "+JSON.stringify(ie.edge(de))),svgDraw$2.drawEdge(ee,ie.edge(de),ie.edge(de).relation,G,W))});const se=ee.node().getBBox(),le=se.width+padding*2,ce=se.height+padding*2;configureSvgSize(ee,ce,le,G.useMaxWidth);const ue=`${se.x-padding} ${se.y-padding} ${le} ${ce}`;log$1.debug(`viewBox ${ue}`),ee.attr("viewBox",ue)},classRenderer={draw:draw$d},insertMarkers$2=(C,H,U,W)=>{H.forEach(G=>{markers$1[G](C,U,W)})},extension=(C,H,U)=>{log$1.trace("Making markers for ",U),C.append("defs").append("marker").attr("id",H+"-extensionStart").attr("class","marker extension "+H).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),C.append("defs").append("marker").attr("id",H+"-extensionEnd").attr("class","marker extension "+H).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition=(C,H)=>{C.append("defs").append("marker").attr("id",H+"-compositionStart").attr("class","marker composition "+H).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id",H+"-compositionEnd").attr("class","marker composition "+H).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation=(C,H)=>{C.append("defs").append("marker").attr("id",H+"-aggregationStart").attr("class","marker aggregation "+H).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id",H+"-aggregationEnd").attr("class","marker aggregation "+H).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency=(C,H)=>{C.append("defs").append("marker").attr("id",H+"-dependencyStart").attr("class","marker dependency "+H).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),C.append("defs").append("marker").attr("id",H+"-dependencyEnd").attr("class","marker dependency "+H).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop=(C,H)=>{C.append("defs").append("marker").attr("id",H+"-lollipopStart").attr("class","marker lollipop "+H).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point=(C,H)=>{C.append("marker").attr("id",H+"-pointEnd").attr("class","marker "+H).attr("viewBox","0 0 12 20").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),C.append("marker").attr("id",H+"-pointStart").attr("class","marker "+H).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle$1=(C,H)=>{C.append("marker").attr("id",H+"-circleEnd").attr("class","marker "+H).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),C.append("marker").attr("id",H+"-circleStart").attr("class","marker "+H).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross=(C,H)=>{C.append("marker").attr("id",H+"-crossEnd").attr("class","marker cross "+H).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),C.append("marker").attr("id",H+"-crossStart").attr("class","marker cross "+H).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb=(C,H)=>{C.append("defs").append("marker").attr("id",H+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},markers$1={extension,composition,aggregation,dependency,lollipop,point,circle:circle$1,cross,barb},insertMarkers$3=insertMarkers$2;function applyStyle(C,H){H&&C.attr("style",H)}function addHtmlLabel(C){const H=select(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),U=H.append("xhtml:div"),W=C.label,G=C.isNode?"nodeLabel":"edgeLabel";return U.html('<span class="'+G+'" '+(C.labelStyle?'style="'+C.labelStyle+'"':"")+">"+W+"</span>"),applyStyle(U,C.labelStyle),U.style("display","inline-block"),U.style("white-space","nowrap"),U.attr("xmlns","http://www.w3.org/1999/xhtml"),H.node()}const createLabel=(C,H,U,W)=>{let G=C||"";if(typeof G=="object"&&(G=G[0]),evaluate(getConfig$1().flowchart.htmlLabels)){G=G.replace(/\\n|\n/g,"<br />"),log$1.info("vertexText"+G);const X={isNode:W,label:decodeEntities(G).replace(/fa[blrs]?:fa-[\w-]+/g,Q=>`<i class='${Q.replace(":"," ")}'></i>`),labelStyle:H.replace("fill:","color:")};return addHtmlLabel(X)}else{const X=document.createElementNS("http://www.w3.org/2000/svg","text");X.setAttribute("style",H.replace("color:","fill:"));let Z=[];typeof G=="string"?Z=G.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(G)?Z=G:Z=[];for(const Q of Z){const ee=document.createElementNS("http://www.w3.org/2000/svg","tspan");ee.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ee.setAttribute("dy","1em"),ee.setAttribute("x","0"),U?ee.setAttribute("class","title-row"):ee.setAttribute("class","row"),ee.textContent=Q.trim(),X.appendChild(ee)}return X}},createLabel$1=createLabel,labelHelper=(C,H,U,W)=>{let G;U?G=U:G="node default";const X=C.insert("g").attr("class",G).attr("id",H.domId||H.id),Z=X.insert("g").attr("class","label").attr("style",H.labelStyle);let Q;H.labelText===void 0?Q="":Q=typeof H.labelText=="string"?H.labelText:H.labelText[0];const ee=Z.node().appendChild(createLabel$1(sanitizeText$5(decodeEntities(Q),getConfig$1()),H.labelStyle,!1,W));let ie=ee.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const ne=ee.children[0],ae=select(ee);ie=ne.getBoundingClientRect(),ae.attr("width",ie.width),ae.attr("height",ie.height)}const te=H.padding/2;return Z.attr("transform","translate("+-ie.width/2+", "+-ie.height/2+")"),{shapeSvg:X,bbox:ie,halfPadding:te,label:Z}},updateNodeBounds=(C,H)=>{const U=H.node().getBBox();C.width=U.width,C.height=U.height};function insertPolygonShape$1(C,H,U,W){return C.insert("polygon",":first-child").attr("points",W.map(function(G){return G.x+","+G.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-H/2+","+U/2+")")}let clusterDb={},descendants={},parents={};const clear$b=()=>{descendants={},parents={},clusterDb={}},isDescendant=(C,H)=>(log$1.trace("In isDecendant",H," ",C," = ",descendants[H].includes(C)),!!descendants[H].includes(C)),edgeInCluster=(C,H)=>(log$1.info("Decendants of ",H," is ",descendants[H]),log$1.info("Edge is ",C),C.v===H||C.w===H?!1:descendants[H]?descendants[H].includes(C.v)||isDescendant(C.v,H)||isDescendant(C.w,H)||descendants[H].includes(C.w):(log$1.debug("Tilt, ",H,",not in decendants"),!1)),copy=(C,H,U,W)=>{log$1.warn("Copying children of ",C,"root",W,"data",H.node(C),W);const G=H.children(C)||[];C!==W&&G.push(C),log$1.warn("Copying (nodes) clusterId",C,"nodes",G),G.forEach(X=>{if(H.children(X).length>0)copy(X,H,U,W);else{const Z=H.node(X);log$1.info("cp ",X," to ",W," with parent ",C),U.setNode(X,Z),W!==H.parent(X)&&(log$1.warn("Setting parent",X,H.parent(X)),U.setParent(X,H.parent(X))),C!==W&&X!==C?(log$1.debug("Setting parent",X,C),U.setParent(X,C)):(log$1.info("In copy ",C,"root",W,"data",H.node(C),W),log$1.debug("Not Setting parent for node=",X,"cluster!==rootId",C!==W,"node!==clusterId",X!==C));const Q=H.edges(X);log$1.debug("Copying Edges",Q),Q.forEach(ee=>{log$1.info("Edge",ee);const ie=H.edge(ee.v,ee.w,ee.name);log$1.info("Edge data",ie,W);try{edgeInCluster(ee,W)?(log$1.info("Copying as ",ee.v,ee.w,ie,ee.name),U.setEdge(ee.v,ee.w,ie,ee.name),log$1.info("newGraph edges ",U.edges(),U.edge(U.edges()[0]))):log$1.info("Skipping copy of edge ",ee.v,"-->",ee.w," rootId: ",W," clusterId:",C)}catch(te){log$1.error(te)}})}log$1.debug("Removing node",X),H.removeNode(X)})},extractDescendants=(C,H)=>{const U=H.children(C);let W=[...U];for(const G of U)parents[G]=C,W=[...W,...extractDescendants(G,H)];return W},findNonClusterChild=(C,H)=>{log$1.trace("Searching",C);const U=H.children(C);if(log$1.trace("Searching children of id ",C,U),U.length<1)return log$1.trace("This is a valid node",C),C;for(const W of U){const G=findNonClusterChild(W,H);if(G)return log$1.trace("Found replacement for",C," => ",G),G}},getAnchorId=C=>!clusterDb[C]||!clusterDb[C].externalConnections?C:clusterDb[C]?clusterDb[C].id:C,adjustClustersAndEdges=(C,H)=>{if(!C||H>10){log$1.debug("Opting out, no graph ");return}else log$1.debug("Opting in, graph ");C.nodes().forEach(function(U){C.children(U).length>0&&(log$1.warn("Cluster identified",U," Replacement id in edges: ",findNonClusterChild(U,C)),descendants[U]=extractDescendants(U,C),clusterDb[U]={id:findNonClusterChild(U,C),clusterData:C.node(U)})}),C.nodes().forEach(function(U){const W=C.children(U),G=C.edges();W.length>0?(log$1.debug("Cluster identified",U,descendants),G.forEach(X=>{if(X.v!==U&&X.w!==U){const Z=isDescendant(X.v,U),Q=isDescendant(X.w,U);Z^Q&&(log$1.warn("Edge: ",X," leaves cluster ",U),log$1.warn("Decendants of XXX ",U,": ",descendants[U]),clusterDb[U].externalConnections=!0)}})):log$1.debug("Not a cluster ",U,descendants)}),C.edges().forEach(function(U){const W=C.edge(U);log$1.warn("Edge "+U.v+" -> "+U.w+": "+JSON.stringify(U)),log$1.warn("Edge "+U.v+" -> "+U.w+": "+JSON.stringify(C.edge(U)));let G=U.v,X=U.w;if(log$1.warn("Fix XXX",clusterDb,"ids:",U.v,U.w,"Translating: ",clusterDb[U.v]," --- ",clusterDb[U.w]),clusterDb[U.v]&&clusterDb[U.w]&&clusterDb[U.v]===clusterDb[U.w]){log$1.warn("Fixing and trixing link to self - removing XXX",U.v,U.w,U.name),log$1.warn("Fixing and trixing - removing XXX",U.v,U.w,U.name),G=getAnchorId(U.v),X=getAnchorId(U.w),C.removeEdge(U.v,U.w,U.name);const Z=U.w+"---"+U.v;C.setNode(Z,{domId:Z,id:Z,labelStyle:"",labelText:W.label,padding:0,shape:"labelRect",style:""});const Q=JSON.parse(JSON.stringify(W)),ee=JSON.parse(JSON.stringify(W));Q.label="",Q.arrowTypeEnd="none",ee.label="",Q.fromCluster=U.v,ee.toCluster=U.v,C.setEdge(G,Z,Q,U.name+"-cyclic-special"),C.setEdge(Z,X,ee,U.name+"-cyclic-special")}else(clusterDb[U.v]||clusterDb[U.w])&&(log$1.warn("Fixing and trixing - removing XXX",U.v,U.w,U.name),G=getAnchorId(U.v),X=getAnchorId(U.w),C.removeEdge(U.v,U.w,U.name),G!==U.v&&(W.fromCluster=U.v),X!==U.w&&(W.toCluster=U.w),log$1.warn("Fix Replacing with XXX",G,X,U.name),C.setEdge(G,X,W,U.name))}),log$1.warn("Adjusted Graph",write(C)),extractor(C,0),log$1.trace(clusterDb)},extractor=(C,H)=>{if(log$1.warn("extractor - ",H,write(C),C.children("D")),H>10){log$1.error("Bailing out");return}let U=C.nodes(),W=!1;for(const G of U){const X=C.children(G);W=W||X.length>0}if(!W){log$1.debug("Done, no node has children",C.nodes());return}log$1.debug("Nodes = ",U,H);for(const G of U)if(log$1.debug("Extracting node",G,clusterDb,clusterDb[G]&&!clusterDb[G].externalConnections,!C.parent(G),C.node(G),C.children("D")," Depth ",H),!clusterDb[G])log$1.debug("Not a cluster",G,H);else if(!clusterDb[G].externalConnections&&C.children(G)&&C.children(G).length>0){log$1.warn("Cluster without external connections, without a parent and with children",G,H);let Z=C.graph().rankdir==="TB"?"LR":"TB";clusterDb[G]&&clusterDb[G].clusterData&&clusterDb[G].clusterData.dir&&(Z=clusterDb[G].clusterData.dir,log$1.warn("Fixing dir",clusterDb[G].clusterData.dir,Z));const Q=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Z,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});log$1.warn("Old graph before copy",write(C)),copy(G,C,Q,G),C.setNode(G,{clusterNode:!0,id:G,clusterData:clusterDb[G].clusterData,labelText:clusterDb[G].labelText,graph:Q}),log$1.warn("New graph after copy node: (",G,")",write(Q)),log$1.debug("Old graph after copy",write(C))}else log$1.warn("Cluster ** ",G," **not meeting the criteria !externalConnections:",!clusterDb[G].externalConnections," no parent: ",!C.parent(G)," children ",C.children(G)&&C.children(G).length>0,C.children("D"),H),log$1.debug(clusterDb);U=C.nodes(),log$1.warn("New list of nodes",U);for(const G of U){const X=C.node(G);log$1.warn(" Now next level",G,X),X.clusterNode&&extractor(X.graph,H+1)}},sorter=(C,H)=>{if(H.length===0)return[];let U=Object.assign(H);return H.forEach(W=>{const G=C.children(W),X=sorter(C,G);U=[...U,...X]}),U},sortNodesByHierarchy=C=>sorter(C,C.children());function intersectNode(C,H){return C.intersect(H)}function intersectEllipse(C,H,U,W){var G=C.x,X=C.y,Z=G-W.x,Q=X-W.y,ee=Math.sqrt(H*H*Q*Q+U*U*Z*Z),ie=Math.abs(H*U*Z/ee);W.x<G&&(ie=-ie);var te=Math.abs(H*U*Q/ee);return W.y<X&&(te=-te),{x:G+ie,y:X+te}}function intersectCircle(C,H,U){return intersectEllipse(C,H,H,U)}function intersectLine(C,H,U,W){var G,X,Z,Q,ee,ie,te,ne,ae,oe,se,le,ce,ue,de;if(G=H.y-C.y,Z=C.x-H.x,ee=H.x*C.y-C.x*H.y,ae=G*U.x+Z*U.y+ee,oe=G*W.x+Z*W.y+ee,!(ae!==0&&oe!==0&&sameSign(ae,oe))&&(X=W.y-U.y,Q=U.x-W.x,ie=W.x*U.y-U.x*W.y,te=X*C.x+Q*C.y+ie,ne=X*H.x+Q*H.y+ie,!(te!==0&&ne!==0&&sameSign(te,ne))&&(se=G*Q-X*Z,se!==0)))return le=Math.abs(se/2),ce=Z*ie-Q*ee,ue=ce<0?(ce-le)/se:(ce+le)/se,ce=X*ee-G*ie,de=ce<0?(ce-le)/se:(ce+le)/se,{x:ue,y:de}}function sameSign(C,H){return C*H>0}function intersectPolygon(C,H,U){var W=C.x,G=C.y,X=[],Z=Number.POSITIVE_INFINITY,Q=Number.POSITIVE_INFINITY;typeof H.forEach=="function"?H.forEach(function(se){Z=Math.min(Z,se.x),Q=Math.min(Q,se.y)}):(Z=Math.min(Z,H.x),Q=Math.min(Q,H.y));for(var ee=W-C.width/2-Z,ie=G-C.height/2-Q,te=0;te<H.length;te++){var ne=H[te],ae=H[te<H.length-1?te+1:0],oe=intersectLine(C,U,{x:ee+ne.x,y:ie+ne.y},{x:ee+ae.x,y:ie+ae.y});oe&&X.push(oe)}return X.length?(X.length>1&&X.sort(function(se,le){var ce=se.x-U.x,ue=se.y-U.y,de=Math.sqrt(ce*ce+ue*ue),ve=le.x-U.x,ge=le.y-U.y,he=Math.sqrt(ve*ve+ge*ge);return de<he?-1:de===he?0:1}),X[0]):C}const intersectRect=(C,H)=>{var U=C.x,W=C.y,G=H.x-U,X=H.y-W,Z=C.width/2,Q=C.height/2,ee,ie;return Math.abs(X)*Z>Math.abs(G)*Q?(X<0&&(Q=-Q),ee=X===0?0:Q*G/X,ie=Q):(G<0&&(Z=-Z),ee=Z,ie=G===0?0:Z*X/G),{x:U+ee,y:W+ie}},intersectRect$1=intersectRect,intersect={node:intersectNode,circle:intersectCircle,ellipse:intersectEllipse,polygon:intersectPolygon,rect:intersectRect$1},note=(C,H)=>{const{shapeSvg:U,bbox:W,halfPadding:G}=labelHelper(C,H,"node "+H.classes,!0);log$1.info("Classes = ",H.classes);const X=U.insert("rect",":first-child");return X.attr("rx",H.rx).attr("ry",H.ry).attr("x",-W.width/2-G).attr("y",-W.height/2-G).attr("width",W.width+H.padding).attr("height",W.height+H.padding),updateNodeBounds(H,X),H.intersect=function(Z){return intersect.rect(H,Z)},U},note$1=note,question$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=G+X,Q=[{x:Z/2,y:0},{x:Z,y:-Z/2},{x:Z/2,y:-Z},{x:0,y:-Z/2}];log$1.info("Question main (Circle)");const ee=insertPolygonShape$1(U,Z,Z,Q);return ee.attr("style",H.style),updateNodeBounds(H,ee),H.intersect=function(ie){return log$1.warn("Intersect called"),intersect.polygon(H,Q,ie)},U},choice=(C,H)=>{const U=C.insert("g").attr("class","node default").attr("id",H.domId||H.id),W=28,G=[{x:0,y:W/2},{x:W/2,y:0},{x:0,y:-W/2},{x:-W/2,y:0}];return U.insert("polygon",":first-child").attr("points",G.map(function(Z){return Z.x+","+Z.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),H.width=28,H.height=28,H.intersect=function(Z){return intersect.circle(H,14,Z)},U},hexagon$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=4,X=W.height+H.padding,Z=X/G,Q=W.width+2*Z+H.padding,ee=[{x:Z,y:0},{x:Q-Z,y:0},{x:Q,y:-X/2},{x:Q-Z,y:-X},{x:Z,y:-X},{x:0,y:-X/2}],ie=insertPolygonShape$1(U,Q,X,ee);return ie.attr("style",H.style),updateNodeBounds(H,ie),H.intersect=function(te){return intersect.polygon(H,ee,te)},U},rect_left_inv_arrow$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:-X/2,y:0},{x:G,y:0},{x:G,y:-X},{x:-X/2,y:-X},{x:0,y:-X/2}];return insertPolygonShape$1(U,G,X,Z).attr("style",H.style),H.width=G+X,H.height=X,H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},lean_right$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:-2*X/6,y:0},{x:G-X/6,y:0},{x:G+2*X/6,y:-X},{x:X/6,y:-X}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},lean_left$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:2*X/6,y:0},{x:G+X/6,y:0},{x:G-2*X/6,y:-X},{x:-X/6,y:-X}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},trapezoid$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:-2*X/6,y:0},{x:G+2*X/6,y:0},{x:G-X/6,y:-X},{x:X/6,y:-X}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},inv_trapezoid$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:X/6,y:0},{x:G-X/6,y:0},{x:G+2*X/6,y:-X},{x:-2*X/6,y:-X}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},rect_right_inv_arrow$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:0,y:0},{x:G+X/2,y:0},{x:G,y:-X/2},{x:G+X/2,y:-X},{x:0,y:-X}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},cylinder$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=G/2,Z=X/(2.5+G/50),Q=W.height+Z+H.padding,ee="M 0,"+Z+" a "+X+","+Z+" 0,0,0 "+G+" 0 a "+X+","+Z+" 0,0,0 "+-G+" 0 l 0,"+Q+" a "+X+","+Z+" 0,0,0 "+G+" 0 l 0,"+-Q,ie=U.attr("label-offset-y",Z).insert("path",":first-child").attr("style",H.style).attr("d",ee).attr("transform","translate("+-G/2+","+-(Q/2+Z)+")");return updateNodeBounds(H,ie),H.intersect=function(te){const ne=intersect.rect(H,te),ae=ne.x-H.x;if(X!=0&&(Math.abs(ae)<H.width/2||Math.abs(ae)==H.width/2&&Math.abs(ne.y-H.y)>H.height/2-Z)){let oe=Z*Z*(1-ae*ae/(X*X));oe!=0&&(oe=Math.sqrt(oe)),oe=Z-oe,te.y-H.y>0&&(oe=-oe),ne.y+=oe}return ne},U},rect$1=(C,H)=>{const{shapeSvg:U,bbox:W,halfPadding:G}=labelHelper(C,H,"node "+H.classes,!0);log$1.trace("Classes = ",H.classes);const X=U.insert("rect",":first-child"),Z=W.width+H.padding,Q=W.height+H.padding;if(X.attr("class","basic label-container").attr("style",H.style).attr("rx",H.rx).attr("ry",H.ry).attr("x",-W.width/2-G).attr("y",-W.height/2-G).attr("width",Z).attr("height",Q),H.props){const ee=new Set(Object.keys(H.props));H.props.borders&&(applyNodePropertyBorders(X,H.props.borders,Z,Q),ee.delete("borders")),ee.forEach(ie=>{log$1.warn(`Unknown node property ${ie}`)})}return updateNodeBounds(H,X),H.intersect=function(ee){return intersect.rect(H,ee)},U},labelRect=(C,H)=>{const{shapeSvg:U}=labelHelper(C,H,"label",!0);log$1.trace("Classes = ",H.classes);const W=U.insert("rect",":first-child"),G=0,X=0;if(W.attr("width",G).attr("height",X),U.attr("class","label edgeLabel"),H.props){const Z=new Set(Object.keys(H.props));H.props.borders&&(applyNodePropertyBorders(W,H.props.borders,G,X),Z.delete("borders")),Z.forEach(Q=>{log$1.warn(`Unknown node property ${Q}`)})}return updateNodeBounds(H,W),H.intersect=function(Z){return intersect.rect(H,Z)},U};function applyNodePropertyBorders(C,H,U,W){const G=[],X=Q=>{G.push(Q,0)},Z=Q=>{G.push(0,Q)};H.includes("t")?(log$1.debug("add top border"),X(U)):Z(U),H.includes("r")?(log$1.debug("add right border"),X(W)):Z(W),H.includes("b")?(log$1.debug("add bottom border"),X(U)):Z(U),H.includes("l")?(log$1.debug("add left border"),X(W)):Z(W),C.attr("stroke-dasharray",G.join(" "))}const rectWithTitle=(C,H)=>{let U;H.classes?U="node "+H.classes:U="node default";const W=C.insert("g").attr("class",U).attr("id",H.domId||H.id),G=W.insert("rect",":first-child"),X=W.insert("line"),Z=W.insert("g").attr("class","label"),Q=H.labelText.flat?H.labelText.flat():H.labelText;let ee="";typeof Q=="object"?ee=Q[0]:ee=Q,log$1.info("Label text abc79",ee,Q,typeof Q=="object");const ie=Z.node().appendChild(createLabel$1(ee,H.labelStyle,!0,!0));let te={width:0,height:0};if(evaluate(getConfig$1().flowchart.htmlLabels)){const le=ie.children[0],ce=select(ie);te=le.getBoundingClientRect(),ce.attr("width",te.width),ce.attr("height",te.height)}log$1.info("Text 2",Q);const ne=Q.slice(1,Q.length);let ae=ie.getBBox();const oe=Z.node().appendChild(createLabel$1(ne.join?ne.join("<br/>"):ne,H.labelStyle,!0,!0));if(evaluate(getConfig$1().flowchart.htmlLabels)){const le=oe.children[0],ce=select(oe);te=le.getBoundingClientRect(),ce.attr("width",te.width),ce.attr("height",te.height)}const se=H.padding/2;return select(oe).attr("transform","translate( "+(te.width>ae.width?0:(ae.width-te.width)/2)+", "+(ae.height+se+5)+")"),select(ie).attr("transform","translate( "+(te.width<ae.width?0:-(ae.width-te.width)/2)+", "+0+")"),te=Z.node().getBBox(),Z.attr("transform","translate("+-te.width/2+", "+(-te.height/2-se+3)+")"),G.attr("class","outer title-state").attr("x",-te.width/2-se).attr("y",-te.height/2-se).attr("width",te.width+H.padding).attr("height",te.height+H.padding),X.attr("class","divider").attr("x1",-te.width/2-se).attr("x2",te.width/2+se).attr("y1",-te.height/2-se+ae.height+se).attr("y2",-te.height/2-se+ae.height+se),updateNodeBounds(H,G),H.intersect=function(le){return intersect.rect(H,le)},W},stadium$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.height+H.padding,X=W.width+G/4+H.padding,Z=U.insert("rect",":first-child").attr("style",H.style).attr("rx",G/2).attr("ry",G/2).attr("x",-X/2).attr("y",-G/2).attr("width",X).attr("height",G);return updateNodeBounds(H,Z),H.intersect=function(Q){return intersect.rect(H,Q)},U},circle=(C,H)=>{const{shapeSvg:U,bbox:W,halfPadding:G}=labelHelper(C,H,void 0,!0),X=U.insert("circle",":first-child");return X.attr("style",H.style).attr("rx",H.rx).attr("ry",H.ry).attr("r",W.width/2+G).attr("width",W.width+H.padding).attr("height",W.height+H.padding),log$1.info("Circle main"),updateNodeBounds(H,X),H.intersect=function(Z){return log$1.info("Circle intersect",H,W.width/2+G,Z),intersect.circle(H,W.width/2+G,Z)},U},doublecircle=(C,H)=>{const{shapeSvg:U,bbox:W,halfPadding:G}=labelHelper(C,H,void 0,!0),X=5,Z=U.insert("g",":first-child"),Q=Z.insert("circle"),ee=Z.insert("circle");return Q.attr("style",H.style).attr("rx",H.rx).attr("ry",H.ry).attr("r",W.width/2+G+X).attr("width",W.width+H.padding+X*2).attr("height",W.height+H.padding+X*2),ee.attr("style",H.style).attr("rx",H.rx).attr("ry",H.ry).attr("r",W.width/2+G).attr("width",W.width+H.padding).attr("height",W.height+H.padding),log$1.info("DoubleCircle main"),updateNodeBounds(H,Q),H.intersect=function(ie){return log$1.info("DoubleCircle intersect",H,W.width/2+G+X,ie),intersect.circle(H,W.width/2+G+X,ie)},U},subroutine$1=(C,H)=>{const{shapeSvg:U,bbox:W}=labelHelper(C,H,void 0,!0),G=W.width+H.padding,X=W.height+H.padding,Z=[{x:0,y:0},{x:G,y:0},{x:G,y:-X},{x:0,y:-X},{x:0,y:0},{x:-8,y:0},{x:G+8,y:0},{x:G+8,y:-X},{x:-8,y:-X},{x:-8,y:0}],Q=insertPolygonShape$1(U,G,X,Z);return Q.attr("style",H.style),updateNodeBounds(H,Q),H.intersect=function(ee){return intersect.polygon(H,Z,ee)},U},start=(C,H)=>{const U=C.insert("g").attr("class","node default").attr("id",H.domId||H.id),W=U.insert("circle",":first-child");return W.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),updateNodeBounds(H,W),H.intersect=function(G){return intersect.circle(H,7,G)},U},forkJoin=(C,H,U)=>{const W=C.insert("g").attr("class","node default").attr("id",H.domId||H.id);let G=70,X=10;U==="LR"&&(G=10,X=70);const Z=W.append("rect").attr("x",-1*G/2).attr("y",-1*X/2).attr("width",G).attr("height",X).attr("class","fork-join");return updateNodeBounds(H,Z),H.height=H.height+H.padding/2,H.width=H.width+H.padding/2,H.intersect=function(Q){return intersect.rect(H,Q)},W},end=(C,H)=>{const U=C.insert("g").attr("class","node default").attr("id",H.domId||H.id),W=U.insert("circle",":first-child"),G=U.insert("circle",":first-child");return G.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),W.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),updateNodeBounds(H,G),H.intersect=function(X){return intersect.circle(H,7,X)},U},class_box=(C,H)=>{const U=H.padding/2,W=4,G=8;let X;H.classes?X="node "+H.classes:X="node default";const Z=C.insert("g").attr("class",X).attr("id",H.domId||H.id),Q=Z.insert("rect",":first-child"),ee=Z.insert("line"),ie=Z.insert("line");let te=0,ne=W;const ae=Z.insert("g").attr("class","label");let oe=0;const se=H.classData.annotations&&H.classData.annotations[0],le=H.classData.annotations[0]?"\xAB"+H.classData.annotations[0]+"\xBB":"",ce=ae.node().appendChild(createLabel$1(le,H.labelStyle,!0,!0));let ue=ce.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const be=ce.children[0],pe=select(ce);ue=be.getBoundingClientRect(),pe.attr("width",ue.width),pe.attr("height",ue.height)}H.classData.annotations[0]&&(ne+=ue.height+W,te+=ue.width);let de=H.classData.id;H.classData.type!==void 0&&H.classData.type!==""&&(getConfig$1().flowchart.htmlLabels?de+="<"+H.classData.type+">":de+="<"+H.classData.type+">");const ve=ae.node().appendChild(createLabel$1(de,H.labelStyle,!0,!0));select(ve).attr("class","classTitle");let ge=ve.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const be=ve.children[0],pe=select(ve);ge=be.getBoundingClientRect(),pe.attr("width",ge.width),pe.attr("height",ge.height)}ne+=ge.height+W,ge.width>te&&(te=ge.width);const he=[];H.classData.members.forEach(be=>{const pe=parseMember(be);let fe=pe.displayText;getConfig$1().flowchart.htmlLabels&&(fe=fe.replace(/</g,"<").replace(/>/g,">"));const ye=ae.node().appendChild(createLabel$1(fe,pe.cssStyle?pe.cssStyle:H.labelStyle,!0,!0));let $e=ye.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const we=ye.children[0],Se=select(ye);$e=we.getBoundingClientRect(),Se.attr("width",$e.width),Se.attr("height",$e.height)}$e.width>te&&(te=$e.width),ne+=$e.height+W,he.push(ye)}),ne+=G;const me=[];if(H.classData.methods.forEach(be=>{const pe=parseMember(be);let fe=pe.displayText;getConfig$1().flowchart.htmlLabels&&(fe=fe.replace(/</g,"<").replace(/>/g,">"));const ye=ae.node().appendChild(createLabel$1(fe,pe.cssStyle?pe.cssStyle:H.labelStyle,!0,!0));let $e=ye.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const we=ye.children[0],Se=select(ye);$e=we.getBoundingClientRect(),Se.attr("width",$e.width),Se.attr("height",$e.height)}$e.width>te&&(te=$e.width),ne+=$e.height+W,me.push(ye)}),ne+=G,se){let be=(te-ue.width)/2;select(ce).attr("transform","translate( "+(-1*te/2+be)+", "+-1*ne/2+")"),oe=ue.height+W}let _e=(te-ge.width)/2;return select(ve).attr("transform","translate( "+(-1*te/2+_e)+", "+(-1*ne/2+oe)+")"),oe+=ge.height+W,ee.attr("class","divider").attr("x1",-te/2-U).attr("x2",te/2+U).attr("y1",-ne/2-U+G+oe).attr("y2",-ne/2-U+G+oe),oe+=G,he.forEach(be=>{select(be).attr("transform","translate( "+-te/2+", "+(-1*ne/2+oe+G/2)+")"),oe+=ge.height+W}),oe+=G,ie.attr("class","divider").attr("x1",-te/2-U).attr("x2",te/2+U).attr("y1",-ne/2-U+G+oe).attr("y2",-ne/2-U+G+oe),oe+=G,me.forEach(be=>{select(be).attr("transform","translate( "+-te/2+", "+(-1*ne/2+oe)+")"),oe+=ge.height+W}),Q.attr("class","outer title-state").attr("x",-te/2-U).attr("y",-(ne/2)-U).attr("width",te+H.padding).attr("height",ne+H.padding),updateNodeBounds(H,Q),H.intersect=function(be){return intersect.rect(H,be)},Z},shapes$1={rhombus:question$1,question:question$1,rect:rect$1,labelRect,rectWithTitle,choice,circle,doublecircle,stadium:stadium$1,hexagon:hexagon$1,rect_left_inv_arrow:rect_left_inv_arrow$1,lean_right:lean_right$1,lean_left:lean_left$1,trapezoid:trapezoid$1,inv_trapezoid:inv_trapezoid$1,rect_right_inv_arrow:rect_right_inv_arrow$1,cylinder:cylinder$1,start,end,note:note$1,subroutine:subroutine$1,fork:forkJoin,join:forkJoin,class_box};let nodeElems={};const insertNode=(C,H,U)=>{let W,G;if(H.link){let X;getConfig$1().securityLevel==="sandbox"?X="_top":H.linkTarget&&(X=H.linkTarget||"_blank"),W=C.insert("svg:a").attr("xlink:href",H.link).attr("target",X),G=shapes$1[H.shape](W,H,U)}else G=shapes$1[H.shape](C,H,U),W=G;return H.tooltip&&G.attr("title",H.tooltip),H.class&&G.attr("class","node default "+H.class),nodeElems[H.id]=W,H.haveCallback&&nodeElems[H.id].attr("class",nodeElems[H.id].attr("class")+" clickable"),W},setNodeElem=(C,H)=>{nodeElems[H.id]=C},clear$a=()=>{nodeElems={}},positionNode=C=>{const H=nodeElems[C.id];log$1.trace("Transforming node",C.diff,C,"translate("+(C.x-C.width/2-5)+", "+C.width/2+")");const U=8,W=C.diff||0;return C.clusterNode?H.attr("transform","translate("+(C.x+W-C.width/2)+", "+(C.y-C.height/2-U)+")"):H.attr("transform","translate("+C.x+", "+C.y+")"),W},rect=(C,H)=>{log$1.trace("Creating subgraph rect for ",H.id,H);const U=C.insert("g").attr("class","cluster"+(H.class?" "+H.class:"")).attr("id",H.id),W=U.insert("rect",":first-child"),G=U.insert("g").attr("class","cluster-label"),X=G.node().appendChild(createLabel$1(H.labelText,H.labelStyle,void 0,!0));let Z=X.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const ne=X.children[0],ae=select(X);Z=ne.getBoundingClientRect(),ae.attr("width",Z.width),ae.attr("height",Z.height)}const Q=0*H.padding,ee=Q/2,ie=H.width<=Z.width+Q?Z.width+Q:H.width;H.width<=Z.width+Q?H.diff=(Z.width-H.width)/2-H.padding/2:H.diff=-H.padding/2,log$1.trace("Data ",H,JSON.stringify(H)),W.attr("style",H.style).attr("rx",H.rx).attr("ry",H.ry).attr("x",H.x-ie/2).attr("y",H.y-H.height/2-ee).attr("width",ie).attr("height",H.height+Q),G.attr("transform","translate("+(H.x-Z.width/2)+", "+(H.y-H.height/2)+")");const te=W.node().getBBox();return H.width=te.width,H.height=te.height,H.intersect=function(ne){return intersectRect$1(H,ne)},U},noteGroup=(C,H)=>{const U=C.insert("g").attr("class","note-cluster").attr("id",H.id),W=U.insert("rect",":first-child"),G=0*H.padding,X=G/2;W.attr("rx",H.rx).attr("ry",H.ry).attr("x",H.x-H.width/2-X).attr("y",H.y-H.height/2-X).attr("width",H.width+G).attr("height",H.height+G).attr("fill","none");const Z=W.node().getBBox();return H.width=Z.width,H.height=Z.height,H.intersect=function(Q){return intersectRect$1(H,Q)},U},roundedWithTitle=(C,H)=>{const U=C.insert("g").attr("class",H.classes).attr("id",H.id),W=U.insert("rect",":first-child"),G=U.insert("g").attr("class","cluster-label"),X=U.append("rect"),Z=G.node().appendChild(createLabel$1(H.labelText,H.labelStyle,void 0,!0));let Q=Z.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const ae=Z.children[0],oe=select(Z);Q=ae.getBoundingClientRect(),oe.attr("width",Q.width),oe.attr("height",Q.height)}Q=Z.getBBox();const ee=0*H.padding,ie=ee/2,te=H.width<=Q.width+H.padding?Q.width+H.padding:H.width;H.width<=Q.width+H.padding?H.diff=(Q.width+H.padding*0-H.width)/2:H.diff=-H.padding/2,W.attr("class","outer").attr("x",H.x-te/2-ie).attr("y",H.y-H.height/2-ie).attr("width",te+ee).attr("height",H.height+ee),X.attr("class","inner").attr("x",H.x-te/2-ie).attr("y",H.y-H.height/2-ie+Q.height-1).attr("width",te+ee).attr("height",H.height+ee-Q.height-3),G.attr("transform","translate("+(H.x-Q.width/2)+", "+(H.y-H.height/2-H.padding/3+(evaluate(getConfig$1().flowchart.htmlLabels)?5:3))+")");const ne=W.node().getBBox();return H.height=ne.height,H.intersect=function(ae){return intersectRect$1(H,ae)},U},divider=(C,H)=>{const U=C.insert("g").attr("class",H.classes).attr("id",H.id),W=U.insert("rect",":first-child"),G=0*H.padding,X=G/2;W.attr("class","divider").attr("x",H.x-H.width/2-X).attr("y",H.y-H.height/2).attr("width",H.width+G).attr("height",H.height+G);const Z=W.node().getBBox();return H.width=Z.width,H.height=Z.height,H.diff=-H.padding/2,H.intersect=function(Q){return intersectRect$1(H,Q)},U},shapes={rect,roundedWithTitle,noteGroup,divider};let clusterElems={};const insertCluster=(C,H)=>{log$1.trace("Inserting cluster");const U=H.shape||"rect";clusterElems[H.id]=shapes[U](C,H)},clear$9=()=>{clusterElems={}};let edgeLabels={},terminalLabels={};const clear$8=()=>{edgeLabels={},terminalLabels={}},insertEdgeLabel=(C,H)=>{const U=createLabel$1(H.label,H.labelStyle),W=C.insert("g").attr("class","edgeLabel"),G=W.insert("g").attr("class","label");G.node().appendChild(U);let X=U.getBBox();if(evaluate(getConfig$1().flowchart.htmlLabels)){const Q=U.children[0],ee=select(U);X=Q.getBoundingClientRect(),ee.attr("width",X.width),ee.attr("height",X.height)}G.attr("transform","translate("+-X.width/2+", "+-X.height/2+")"),edgeLabels[H.id]=W,H.width=X.width,H.height=X.height;let Z;if(H.startLabelLeft){const Q=createLabel$1(H.startLabelLeft,H.labelStyle),ee=C.insert("g").attr("class","edgeTerminals"),ie=ee.insert("g").attr("class","inner");Z=ie.node().appendChild(Q);const te=Q.getBBox();ie.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),terminalLabels[H.id]||(terminalLabels[H.id]={}),terminalLabels[H.id].startLeft=ee,setTerminalWidth(Z,H.startLabelLeft)}if(H.startLabelRight){const Q=createLabel$1(H.startLabelRight,H.labelStyle),ee=C.insert("g").attr("class","edgeTerminals"),ie=ee.insert("g").attr("class","inner");Z=ee.node().appendChild(Q),ie.node().appendChild(Q);const te=Q.getBBox();ie.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),terminalLabels[H.id]||(terminalLabels[H.id]={}),terminalLabels[H.id].startRight=ee,setTerminalWidth(Z,H.startLabelRight)}if(H.endLabelLeft){const Q=createLabel$1(H.endLabelLeft,H.labelStyle),ee=C.insert("g").attr("class","edgeTerminals"),ie=ee.insert("g").attr("class","inner");Z=ie.node().appendChild(Q);const te=Q.getBBox();ie.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),ee.node().appendChild(Q),terminalLabels[H.id]||(terminalLabels[H.id]={}),terminalLabels[H.id].endLeft=ee,setTerminalWidth(Z,H.endLabelLeft)}if(H.endLabelRight){const Q=createLabel$1(H.endLabelRight,H.labelStyle),ee=C.insert("g").attr("class","edgeTerminals"),ie=ee.insert("g").attr("class","inner");Z=ie.node().appendChild(Q);const te=Q.getBBox();ie.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),ee.node().appendChild(Q),terminalLabels[H.id]||(terminalLabels[H.id]={}),terminalLabels[H.id].endRight=ee,setTerminalWidth(Z,H.endLabelRight)}return U};function setTerminalWidth(C,H){getConfig$1().flowchart.htmlLabels&&C&&(C.style.width=H.length*9+"px",C.style.height="12px")}const positionEdgeLabel=(C,H)=>{log$1.info("Moving label abc78 ",C.id,C.label,edgeLabels[C.id]);let U=H.updatedPath?H.updatedPath:H.originalPath;if(C.label){const W=edgeLabels[C.id];let G=C.x,X=C.y;if(U){const Z=utils$d.calcLabelPosition(U);log$1.info("Moving label "+C.label+" from (",G,",",X,") to (",Z.x,",",Z.y,") abc78"),H.updatedPath&&(G=Z.x,X=Z.y)}W.attr("transform","translate("+G+", "+X+")")}if(C.startLabelLeft){const W=terminalLabels[C.id].startLeft;let G=C.x,X=C.y;if(U){const Z=utils$d.calcTerminalLabelPosition(C.arrowTypeStart?10:0,"start_left",U);G=Z.x,X=Z.y}W.attr("transform","translate("+G+", "+X+")")}if(C.startLabelRight){const W=terminalLabels[C.id].startRight;let G=C.x,X=C.y;if(U){const Z=utils$d.calcTerminalLabelPosition(C.arrowTypeStart?10:0,"start_right",U);G=Z.x,X=Z.y}W.attr("transform","translate("+G+", "+X+")")}if(C.endLabelLeft){const W=terminalLabels[C.id].endLeft;let G=C.x,X=C.y;if(U){const Z=utils$d.calcTerminalLabelPosition(C.arrowTypeEnd?10:0,"end_left",U);G=Z.x,X=Z.y}W.attr("transform","translate("+G+", "+X+")")}if(C.endLabelRight){const W=terminalLabels[C.id].endRight;let G=C.x,X=C.y;if(U){const Z=utils$d.calcTerminalLabelPosition(C.arrowTypeEnd?10:0,"end_right",U);G=Z.x,X=Z.y}W.attr("transform","translate("+G+", "+X+")")}},outsideNode=(C,H)=>{const U=C.x,W=C.y,G=Math.abs(H.x-U),X=Math.abs(H.y-W),Z=C.width/2,Q=C.height/2;return G>=Z||X>=Q},intersection=(C,H,U)=>{log$1.warn(`intersection calc abc89:
|
||
outsidePoint: ${JSON.stringify(H)}
|
||
insidePoint : ${JSON.stringify(U)}
|
||
node : x:${C.x} y:${C.y} w:${C.width} h:${C.height}`);const W=C.x,G=C.y,X=Math.abs(W-U.x),Z=C.width/2;let Q=U.x<H.x?Z-X:Z+X;const ee=C.height/2,ie=Math.abs(H.y-U.y),te=Math.abs(H.x-U.x);if(Math.abs(G-H.y)*Z>Math.abs(W-H.x)*ee){let ne=U.y<H.y?H.y-ee-G:G-ee-H.y;Q=te*ne/ie;const ae={x:U.x<H.x?U.x+Q:U.x-te+Q,y:U.y<H.y?U.y+ie-ne:U.y-ie+ne};return Q===0&&(ae.x=H.x,ae.y=H.y),te===0&&(ae.x=H.x),ie===0&&(ae.y=H.y),log$1.warn(`abc89 topp/bott calc, Q ${ie}, q ${ne}, R ${te}, r ${Q}`,ae),ae}else{U.x<H.x?Q=H.x-Z-W:Q=W-Z-H.x;let ne=ie*Q/te,ae=U.x<H.x?U.x+te-Q:U.x-te+Q,oe=U.y<H.y?U.y+ne:U.y-ne;return log$1.warn(`sides calc abc89, Q ${ie}, q ${ne}, R ${te}, r ${Q}`,{_x:ae,_y:oe}),Q===0&&(ae=H.x,oe=H.y),te===0&&(ae=H.x),ie===0&&(oe=H.y),{x:ae,y:oe}}},cutPathAtIntersect=(C,H)=>{log$1.warn("abc88 cutPathAtIntersect",C,H);let U=[],W=C[0],G=!1;return C.forEach(X=>{if(log$1.info("abc88 checking point",X,H),!outsideNode(H,X)&&!G){const Z=intersection(H,W,X);log$1.warn("abc88 inside",X,W,Z),log$1.warn("abc88 intersection",Z);let Q=!1;U.forEach(ee=>{Q=Q||ee.x===Z.x&&ee.y===Z.y}),U.some(ee=>ee.x===Z.x&&ee.y===Z.y)?log$1.warn("abc88 no intersect",Z,U):U.push(Z),G=!0}else log$1.warn("abc88 outside",X,W),W=X,G||U.push(X)}),log$1.warn("abc88 returning points",U),U},insertEdge=function(C,H,U,W,G,X){let Z=U.points,Q=!1;const ee=X.node(H.v);var ie=X.node(H.w);log$1.info("abc88 InsertEdge: ",U),ie.intersect&&ee.intersect&&(Z=Z.slice(1,U.points.length-1),Z.unshift(ee.intersect(Z[0])),log$1.info("Last point",Z[Z.length-1],ie,ie.intersect(Z[Z.length-1])),Z.push(ie.intersect(Z[Z.length-1]))),U.toCluster&&(log$1.info("to cluster abc88",W[U.toCluster]),Z=cutPathAtIntersect(U.points,W[U.toCluster].node),Q=!0),U.fromCluster&&(log$1.info("from cluster abc88",W[U.fromCluster]),Z=cutPathAtIntersect(Z.reverse(),W[U.fromCluster].node).reverse(),Q=!0);const te=Z.filter(ue=>!Number.isNaN(ue.y));let ne;G==="graph"||G==="flowchart"?ne=U.curve||curveBasis:ne=curveBasis;const ae=line$1().x(function(ue){return ue.x}).y(function(ue){return ue.y}).curve(ne);let oe;switch(U.thickness){case"normal":oe="edge-thickness-normal";break;case"thick":oe="edge-thickness-thick";break;default:oe=""}switch(U.pattern){case"solid":oe+=" edge-pattern-solid";break;case"dotted":oe+=" edge-pattern-dotted";break;case"dashed":oe+=" edge-pattern-dashed";break}const se=C.append("path").attr("d",ae(te)).attr("id",U.id).attr("class"," "+oe+(U.classes?" "+U.classes:"")).attr("style",U.style);let le="";switch((getConfig$1().flowchart.arrowMarkerAbsolute||getConfig$1().state.arrowMarkerAbsolute)&&(le=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,le=le.replace(/\(/g,"\\("),le=le.replace(/\)/g,"\\)")),log$1.info("arrowTypeStart",U.arrowTypeStart),log$1.info("arrowTypeEnd",U.arrowTypeEnd),U.arrowTypeStart){case"arrow_cross":se.attr("marker-start","url("+le+"#"+G+"-crossStart)");break;case"arrow_point":se.attr("marker-start","url("+le+"#"+G+"-pointStart)");break;case"arrow_barb":se.attr("marker-start","url("+le+"#"+G+"-barbStart)");break;case"arrow_circle":se.attr("marker-start","url("+le+"#"+G+"-circleStart)");break;case"aggregation":se.attr("marker-start","url("+le+"#"+G+"-aggregationStart)");break;case"extension":se.attr("marker-start","url("+le+"#"+G+"-extensionStart)");break;case"composition":se.attr("marker-start","url("+le+"#"+G+"-compositionStart)");break;case"dependency":se.attr("marker-start","url("+le+"#"+G+"-dependencyStart)");break;case"lollipop":se.attr("marker-start","url("+le+"#"+G+"-lollipopStart)");break}switch(U.arrowTypeEnd){case"arrow_cross":se.attr("marker-end","url("+le+"#"+G+"-crossEnd)");break;case"arrow_point":se.attr("marker-end","url("+le+"#"+G+"-pointEnd)");break;case"arrow_barb":se.attr("marker-end","url("+le+"#"+G+"-barbEnd)");break;case"arrow_circle":se.attr("marker-end","url("+le+"#"+G+"-circleEnd)");break;case"aggregation":se.attr("marker-end","url("+le+"#"+G+"-aggregationEnd)");break;case"extension":se.attr("marker-end","url("+le+"#"+G+"-extensionEnd)");break;case"composition":se.attr("marker-end","url("+le+"#"+G+"-compositionEnd)");break;case"dependency":se.attr("marker-end","url("+le+"#"+G+"-dependencyEnd)");break;case"lollipop":se.attr("marker-end","url("+le+"#"+G+"-lollipopEnd)");break}let ce={};return Q&&(ce.updatedPath=Z),ce.originalPath=U.points,ce},recursiveRender=(C,H,U,W)=>{log$1.info("Graph in recursive render: XXX",write(H),W);const G=H.graph().rankdir;log$1.trace("Dir in recursive render - dir:",G);const X=C.insert("g").attr("class","root");H.nodes()?log$1.info("Recursive render XXX",H.nodes()):log$1.info("No nodes found for",H),H.edges().length>0&&log$1.trace("Recursive edges",H.edge(H.edges()[0]));const Z=X.insert("g").attr("class","clusters"),Q=X.insert("g").attr("class","edgePaths"),ee=X.insert("g").attr("class","edgeLabels"),ie=X.insert("g").attr("class","nodes");H.nodes().forEach(function(ne){const ae=H.node(ne);if(W!==void 0){const oe=JSON.parse(JSON.stringify(W.clusterData));log$1.info("Setting data for cluster XXX (",ne,") ",oe,W),H.setNode(W.id,oe),H.parent(ne)||(log$1.trace("Setting parent",ne,W.id),H.setParent(ne,W.id,oe))}if(log$1.info("(Insert) Node XXX"+ne+": "+JSON.stringify(H.node(ne))),ae&&ae.clusterNode){log$1.info("Cluster identified",ne,ae.width,H.node(ne));const oe=recursiveRender(ie,ae.graph,U,H.node(ne)),se=oe.elem;updateNodeBounds(ae,se),ae.diff=oe.diff||0,log$1.info("Node bounds (abc123)",ne,ae,ae.width,ae.x,ae.y),setNodeElem(se,ae),log$1.warn("Recursive render complete ",se,ae)}else H.children(ne).length>0?(log$1.info("Cluster - the non recursive path XXX",ne,ae.id,ae,H),log$1.info(findNonClusterChild(ae.id,H)),clusterDb[ae.id]={id:findNonClusterChild(ae.id,H),node:ae}):(log$1.info("Node - the non recursive path",ne,ae.id,ae),insertNode(ie,H.node(ne),G))}),H.edges().forEach(function(ne){const ae=H.edge(ne.v,ne.w,ne.name);log$1.info("Edge "+ne.v+" -> "+ne.w+": "+JSON.stringify(ne)),log$1.info("Edge "+ne.v+" -> "+ne.w+": ",ne," ",JSON.stringify(H.edge(ne))),log$1.info("Fix",clusterDb,"ids:",ne.v,ne.w,"Translateing: ",clusterDb[ne.v],clusterDb[ne.w]),insertEdgeLabel(ee,ae)}),H.edges().forEach(function(ne){log$1.info("Edge "+ne.v+" -> "+ne.w+": "+JSON.stringify(ne))}),log$1.info("#############################################"),log$1.info("### Layout ###"),log$1.info("#############################################"),log$1.info(H),layout(H),log$1.info("Graph after layout:",write(H));let te=0;return sortNodesByHierarchy(H).forEach(function(ne){const ae=H.node(ne);log$1.info("Position "+ne+": "+JSON.stringify(H.node(ne))),log$1.info("Position "+ne+": ("+ae.x,","+ae.y,") width: ",ae.width," height: ",ae.height),ae&&ae.clusterNode?positionNode(ae):H.children(ne).length>0?(insertCluster(Z,ae),clusterDb[ae.id].node=ae):positionNode(ae)}),H.edges().forEach(function(ne){const ae=H.edge(ne);log$1.info("Edge "+ne.v+" -> "+ne.w+": "+JSON.stringify(ae),ae);const oe=insertEdge(Q,ne,ae,clusterDb,U,H);positionEdgeLabel(ae,oe)}),H.nodes().forEach(function(ne){const ae=H.node(ne);log$1.info(ne,ae.type,ae.diff),ae.type==="group"&&(te=ae.diff)}),{elem:X,diff:te}},render$1=(C,H,U,W,G)=>{insertMarkers$3(C,U,W,G),clear$a(),clear$8(),clear$9(),clear$b(),log$1.warn("Graph at first:",write(H)),adjustClustersAndEdges(H),log$1.warn("Graph after:",write(H)),recursiveRender(C,H,W)},sanitizeText$1=C=>common$1.sanitizeText(C,getConfig$1());let conf$9={dividerMargin:10,padding:5,textHeight:10};const addClasses=function(C,H,U,W){const G=Object.keys(C);log$1.info("keys:",G),log$1.info(C),G.forEach(function(X){const Z=C[X];let Q="";Z.cssClasses.length>0&&(Q=Q+" "+Z.cssClasses.join(" "));const ee={labelStyle:""};let ie=Z.text!==void 0?Z.text:Z.id,te=0,ne="";switch(Z.type){case"class":ne="class_box";break;default:ne="class_box"}H.setNode(Z.id,{labelStyle:ee.labelStyle,shape:ne,labelText:sanitizeText$1(ie),classData:Z,rx:te,ry:te,class:Q,style:ee.style,id:Z.id,domId:Z.domId,tooltip:W.db.getTooltip(Z.id)||"",haveCallback:Z.haveCallback,link:Z.link,width:Z.type==="group"?500:void 0,type:Z.type,padding:getConfig$1().flowchart.padding}),log$1.info("setNode",{labelStyle:ee.labelStyle,shape:ne,labelText:ie,rx:te,ry:te,class:Q,style:ee.style,id:Z.id,width:Z.type==="group"?500:void 0,type:Z.type,padding:getConfig$1().flowchart.padding})})},addNotes=function(C,H,U,W){log$1.info(C),C.forEach(function(G,X){const Z=G;let Q="";const ee={labelStyle:"",style:""};let ie=Z.text,te=0,ne="note";if(H.setNode(Z.id,{labelStyle:ee.labelStyle,shape:ne,labelText:sanitizeText$1(ie),noteData:Z,rx:te,ry:te,class:Q,style:ee.style,id:Z.id,domId:Z.id,tooltip:"",type:"note",padding:getConfig$1().flowchart.padding}),log$1.info("setNode",{labelStyle:ee.labelStyle,shape:ne,labelText:ie,rx:te,ry:te,style:ee.style,id:Z.id,type:"note",padding:getConfig$1().flowchart.padding}),!Z.class||!(Z.class in W))return;const ae=U+X,oe={};oe.classes="relation",oe.pattern="dotted",oe.id=`edgeNote${ae}`,oe.arrowhead="none",log$1.info(`Note edge: ${JSON.stringify(oe)}, ${JSON.stringify(Z)}`),oe.startLabelRight="",oe.endLabelLeft="",oe.arrowTypeStart="none",oe.arrowTypeEnd="none";let se="fill:none",le="";oe.style=se,oe.labelStyle=le,oe.curve=interpolateToCurve(conf$9.curve,curveLinear),H.setEdge(Z.id,Z.class,oe,ae)})},addRelations=function(C,H){const U=getConfig$1().flowchart;let W=0;C.forEach(function(G){W++;const X={};X.classes="relation",X.pattern=G.relation.lineType==1?"dashed":"solid",X.id="id"+W,G.type==="arrow_open"?X.arrowhead="none":X.arrowhead="normal",log$1.info(X,G),X.startLabelRight=G.relationTitle1==="none"?"":G.relationTitle1,X.endLabelLeft=G.relationTitle2==="none"?"":G.relationTitle2,X.arrowTypeStart=getArrowMarker(G.relation.type1),X.arrowTypeEnd=getArrowMarker(G.relation.type2);let Z="",Q="";if(G.style!==void 0){const ee=getStylesFromArray(G.style);Z=ee.style,Q=ee.labelStyle}else Z="fill:none";X.style=Z,X.labelStyle=Q,G.interpolate!==void 0?X.curve=interpolateToCurve(G.interpolate,curveLinear):C.defaultInterpolate!==void 0?X.curve=interpolateToCurve(C.defaultInterpolate,curveLinear):X.curve=interpolateToCurve(U.curve,curveLinear),G.text=G.title,G.text===void 0?G.style!==void 0&&(X.arrowheadStyle="fill: #333"):(X.arrowheadStyle="fill: #333",X.labelpos="c",getConfig$1().flowchart.htmlLabels?(X.labelType="html",X.label='<span class="edgeLabel">'+G.text+"</span>"):(X.labelType="text",X.label=G.text.replace(common$1.lineBreakRegex,`
|
||
`),G.style===void 0&&(X.style=X.style||"stroke: #333; stroke-width: 1.5px;fill:none"),X.labelStyle=X.labelStyle.replace("color:","fill:"))),H.setEdge(G.id1,G.id2,X,W)})},setConf$9=function(C){Object.keys(C).forEach(function(U){conf$9[U]=C[U]})},draw$c=function(C,H,U,W){log$1.info("Drawing class - ",H);const G=getConfig$1().flowchart,X=getConfig$1().securityLevel;log$1.info("config:",G);const Z=G.nodeSpacing||50,Q=G.rankSpacing||50,ee=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:W.db.getDirection(),nodesep:Z,ranksep:Q,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),ie=W.db.getClasses(),te=W.db.getRelations(),ne=W.db.getNotes();log$1.info(te),addClasses(ie,ee,H,W),addRelations(te,ee),addNotes(ne,ee,te.length+1,ie);let ae;X==="sandbox"&&(ae=select("#i"+H));const oe=select(X==="sandbox"?ae.nodes()[0].contentDocument.body:"body"),se=oe.select(`[id="${H}"]`),le=oe.select("#"+H+" g");if(render$1(le,ee,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",H),utils$d.insertTitle(se,"classTitleText",G.titleTopMargin,W.db.getDiagramTitle()),setupGraphViewbox$1(ee,se,G.diagramPadding,G.useMaxWidth),!G.htmlLabels){const ce=X==="sandbox"?ae.nodes()[0].contentDocument:document,ue=ce.querySelectorAll('[id="'+H+'"] .edgeLabel .label');for(const de of ue){const ve=de.getBBox(),ge=ce.createElementNS("http://www.w3.org/2000/svg","rect");ge.setAttribute("rx",0),ge.setAttribute("ry",0),ge.setAttribute("width",ve.width),ge.setAttribute("height",ve.height),de.insertBefore(ge,de.firstChild)}}};function getArrowMarker(C){let H;switch(C){case 0:H="aggregation";break;case 1:H="extension";break;case 2:H="composition";break;case 3:H="dependency";break;case 4:H="lollipop";break;default:H="none"}return H}const classRendererV2={setConf:setConf$9,draw:draw$c};var parser$9=function(){var C=function(ye,$e,we,Se){for(we=we||{},Se=ye.length;Se--;we[ye[Se]]=$e);return we},H=[1,2],U=[1,5],W=[6,9,11,23,25,27,29,30,31,51],G=[1,17],X=[1,18],Z=[1,19],Q=[1,20],ee=[1,21],ie=[1,22],te=[1,25],ne=[1,30],ae=[1,31],oe=[1,32],se=[1,33],le=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],ce=[1,45],ue=[30,31,48,49],de=[4,6,9,11,23,25,27,29,30,31,51],ve=[44,45,46,47],ge=[22,37],he=[1,65],me=[1,64],_e=[22,37,39,41],be={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function($e,we,Se,Te,xe,ke,Ie){var Ae=ke.length-1;switch(xe){case 1:break;case 3:this.$=[];break;case 4:ke[Ae-1].push(ke[Ae]),this.$=ke[Ae-1];break;case 5:case 6:this.$=ke[Ae];break;case 7:case 8:this.$=[];break;case 12:Te.addEntity(ke[Ae-4]),Te.addEntity(ke[Ae-2]),Te.addRelationship(ke[Ae-4],ke[Ae],ke[Ae-2],ke[Ae-3]);break;case 13:Te.addEntity(ke[Ae-3]),Te.addAttributes(ke[Ae-3],ke[Ae-1]);break;case 14:Te.addEntity(ke[Ae-2]);break;case 15:Te.addEntity(ke[Ae]);break;case 16:case 17:this.$=ke[Ae].trim(),Te.setAccTitle(this.$);break;case 18:case 19:this.$=ke[Ae].trim(),Te.setAccDescription(this.$);break;case 20:case 43:this.$=ke[Ae];break;case 21:case 41:case 42:this.$=ke[Ae].replace(/"/g,"");break;case 22:case 30:this.$=[ke[Ae]];break;case 23:ke[Ae].push(ke[Ae-1]),this.$=ke[Ae];break;case 24:this.$={attributeType:ke[Ae-1],attributeName:ke[Ae]};break;case 25:this.$={attributeType:ke[Ae-2],attributeName:ke[Ae-1],attributeKeyTypeList:ke[Ae]};break;case 26:this.$={attributeType:ke[Ae-2],attributeName:ke[Ae-1],attributeComment:ke[Ae]};break;case 27:this.$={attributeType:ke[Ae-3],attributeName:ke[Ae-2],attributeKeyTypeList:ke[Ae-1],attributeComment:ke[Ae]};break;case 28:case 29:case 32:this.$=ke[Ae];break;case 31:ke[Ae-2].push(ke[Ae]),this.$=ke[Ae-2];break;case 33:this.$=ke[Ae].replace(/"/g,"");break;case 34:this.$={cardA:ke[Ae],relType:ke[Ae-1],cardB:ke[Ae-2]};break;case 35:this.$=Te.Cardinality.ZERO_OR_ONE;break;case 36:this.$=Te.Cardinality.ZERO_OR_MORE;break;case 37:this.$=Te.Cardinality.ONE_OR_MORE;break;case 38:this.$=Te.Cardinality.ONLY_ONE;break;case 39:this.$=Te.Identification.NON_IDENTIFYING;break;case 40:this.$=Te.Identification.IDENTIFYING;break;case 44:Te.parseDirective("%%{","open_directive");break;case 45:Te.parseDirective(ke[Ae],"type_directive");break;case 46:ke[Ae]=ke[Ae].trim().replace(/'/g,'"'),Te.parseDirective(ke[Ae],"arg_directive");break;case 47:Te.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:H,7:3,12:4,51:U},{1:[3]},C(W,[2,3],{5:6}),{3:7,4:H,7:3,12:4,51:U},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:G,25:X,27:Z,29:Q,30:ee,31:ie,51:U},{1:[2,2]},{14:23,15:[1,24],54:te},C([15,54],[2,45]),C(W,[2,8],{1:[2,1]}),C(W,[2,4]),{7:15,10:26,12:4,17:16,23:G,25:X,27:Z,29:Q,30:ee,31:ie,51:U},C(W,[2,6]),C(W,[2,7]),C(W,[2,11]),C(W,[2,15],{18:27,42:29,20:[1,28],44:ne,45:ae,46:oe,47:se}),{24:[1,34]},{26:[1,35]},{28:[1,36]},C(W,[2,19]),C(le,[2,20]),C(le,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},C(W,[2,5]),{17:40,30:ee,31:ie},{21:41,22:[1,42],32:43,33:44,37:ce},{43:46,48:[1,47],49:[1,48]},C(ue,[2,35]),C(ue,[2,36]),C(ue,[2,37]),C(ue,[2,38]),C(W,[2,16]),C(W,[2,17]),C(W,[2,18]),C(de,[2,9]),{14:49,54:te},{54:[2,46]},{15:[1,50]},{22:[1,51]},C(W,[2,14]),{21:52,22:[2,22],32:43,33:44,37:ce},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:ne,45:ae,46:oe,47:se},C(ve,[2,39]),C(ve,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},C(W,[2,13]),{22:[2,23]},C(ge,[2,24],{35:61,36:62,38:63,40:he,41:me}),C([22,37,40,41],[2,29]),C([30,31],[2,34]),C(de,[2,10]),C(W,[2,12]),C(W,[2,41]),C(W,[2,42]),C(W,[2,43]),C(ge,[2,25],{36:66,39:[1,67],41:me}),C(ge,[2,26]),C(_e,[2,30]),C(ge,[2,33]),C(_e,[2,32]),C(ge,[2,27]),{38:68,40:he},C(_e,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function($e,we){if(we.recoverable)this.trace($e);else{var Se=new Error($e);throw Se.hash=we,Se}},parse:function($e){var we=this,Se=[0],Te=[],xe=[null],ke=[],Ie=this.table,Ae="",Me=0,Fe=0,Be=2,Ne=1,Ve=ke.slice.call(arguments,1),Le=Object.create(this.lexer),De={yy:{}};for(var Je in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Je)&&(De.yy[Je]=this.yy[Je]);Le.setInput($e,De.yy),De.yy.lexer=Le,De.yy.parser=this,typeof Le.yylloc>"u"&&(Le.yylloc={});var ze=Le.yylloc;ke.push(ze);var Ge=Le.options&&Le.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(){var We;return We=Te.pop()||Le.lex()||Ne,typeof We!="number"&&(We instanceof Array&&(Te=We,We=Te.pop()),We=we.symbols_[We]||We),We}for(var Ke,Ee,Ce,Pe,Re={},Ze,Oe,Qe,Xe;;){if(Ee=Se[Se.length-1],this.defaultActions[Ee]?Ce=this.defaultActions[Ee]:((Ke===null||typeof Ke>"u")&&(Ke=qe()),Ce=Ie[Ee]&&Ie[Ee][Ke]),typeof Ce>"u"||!Ce.length||!Ce[0]){var et="";Xe=[];for(Ze in Ie[Ee])this.terminals_[Ze]&&Ze>Be&&Xe.push("'"+this.terminals_[Ze]+"'");Le.showPosition?et="Parse error on line "+(Me+1)+`:
|
||
`+Le.showPosition()+`
|
||
Expecting `+Xe.join(", ")+", got '"+(this.terminals_[Ke]||Ke)+"'":et="Parse error on line "+(Me+1)+": Unexpected "+(Ke==Ne?"end of input":"'"+(this.terminals_[Ke]||Ke)+"'"),this.parseError(et,{text:Le.match,token:this.terminals_[Ke]||Ke,line:Le.yylineno,loc:ze,expected:Xe})}if(Ce[0]instanceof Array&&Ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+Ke);switch(Ce[0]){case 1:Se.push(Ke),xe.push(Le.yytext),ke.push(Le.yylloc),Se.push(Ce[1]),Ke=null,Fe=Le.yyleng,Ae=Le.yytext,Me=Le.yylineno,ze=Le.yylloc;break;case 2:if(Oe=this.productions_[Ce[1]][1],Re.$=xe[xe.length-Oe],Re._$={first_line:ke[ke.length-(Oe||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(Oe||1)].first_column,last_column:ke[ke.length-1].last_column},Ge&&(Re._$.range=[ke[ke.length-(Oe||1)].range[0],ke[ke.length-1].range[1]]),Pe=this.performAction.apply(Re,[Ae,Fe,Me,De.yy,Ce[1],xe,ke].concat(Ve)),typeof Pe<"u")return Pe;Oe&&(Se=Se.slice(0,-1*Oe*2),xe=xe.slice(0,-1*Oe),ke=ke.slice(0,-1*Oe)),Se.push(this.productions_[Ce[1]][0]),xe.push(Re.$),ke.push(Re._$),Qe=Ie[Se[Se.length-2]][Se[Se.length-1]],Se.push(Qe);break;case 3:return!0}}return!0}},pe=function(){var ye={EOF:1,parseError:function(we,Se){if(this.yy.parser)this.yy.parser.parseError(we,Se);else throw new Error(we)},setInput:function($e,we){return this.yy=we||this.yy||{},this._input=$e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var $e=this._input[0];this.yytext+=$e,this.yyleng++,this.offset++,this.match+=$e,this.matched+=$e;var we=$e.match(/(?:\r\n?|\n).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$e},unput:function($e){var we=$e.length,Se=$e.split(/(?:\r\n?|\n)/g);this._input=$e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var Te=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Se.length-1&&(this.yylineno-=Se.length-1);var xe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Se?(Se.length===Te.length?this.yylloc.first_column:0)+Te[Te.length-Se.length].length-Se[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[xe[0],xe[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($e){this.unput(this.match.slice($e))},pastInput:function(){var $e=this.matched.substr(0,this.matched.length-this.match.length);return($e.length>20?"...":"")+$e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $e=this.match;return $e.length<20&&($e+=this._input.substr(0,20-$e.length)),($e.substr(0,20)+($e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $e=this.pastInput(),we=new Array($e.length+1).join("-");return $e+this.upcomingInput()+`
|
||
`+we+"^"},test_match:function($e,we){var Se,Te,xe;if(this.options.backtrack_lexer&&(xe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(xe.yylloc.range=this.yylloc.range.slice(0))),Te=$e[0].match(/(?:\r\n?|\n).*/g),Te&&(this.yylineno+=Te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Te?Te[Te.length-1].length-Te[Te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$e[0].length},this.yytext+=$e[0],this.match+=$e[0],this.matches=$e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice($e[0].length),this.matched+=$e[0],Se=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Se)return Se;if(this._backtrack){for(var ke in xe)this[ke]=xe[ke];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $e,we,Se,Te;this._more||(this.yytext="",this.match="");for(var xe=this._currentRules(),ke=0;ke<xe.length;ke++)if(Se=this._input.match(this.rules[xe[ke]]),Se&&(!we||Se[0].length>we[0].length)){if(we=Se,Te=ke,this.options.backtrack_lexer){if($e=this.test_match(Se,xe[ke]),$e!==!1)return $e;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?($e=this.test_match(we,xe[Te]),$e!==!1?$e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var we=this.next();return we||this.lex()},begin:function(we){this.conditionStack.push(we)},popState:function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},pushState:function(we){this.begin(we)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(we,Se,Te,xe){switch(Te){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:break;case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:return 37;case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return Se.yytext[0];case 30:return 44;case 31:return 46;case 32:return 46;case 33:return 46;case 34:return 44;case 35:return 44;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 45;case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:return 47;case 45:return 47;case 46:return 47;case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:return 49;case 53:return 49;case 54:return 48;case 55:return 48;case 56:return 48;case 57:return 30;case 58:return Se.yytext[0];case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],inclusive:!0}}};return ye}();be.lexer=pe;function fe(){this.yy={}}return fe.prototype=be,be.Parser=fe,new fe}();parser$9.parser=parser$9;const erParser=parser$9,erDetector=C=>C.match(/^\s*erDiagram/)!==null;let entities={},relationships=[];const Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective$7=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},addEntity=function(C){return entities[C]===void 0&&(entities[C]={attributes:[]},log$1.info("Added new entity :",C)),entities[C]},getEntities=()=>entities,addAttributes=function(C,H){let U=addEntity(C),W;for(W=H.length-1;W>=0;W--)U.attributes.push(H[W]),log$1.debug("Added attribute ",H[W].attributeName)},addRelationship$1=function(C,H,U,W){let G={entityA:C,roleA:H,entityB:U,relSpec:W};relationships.push(G),log$1.debug("Added new relationship :",G)},getRelationships$1=()=>relationships,clear$7=function(){entities={},relationships=[],clear$g()},erDb={Cardinality,Identification,parseDirective:parseDirective$7,getConfig:()=>getConfig$1().er,addEntity,addAttributes,getEntities,addRelationship:addRelationship$1,getRelationships:getRelationships$1,clear:clear$7,setAccTitle,getAccTitle,setAccDescription,getAccDescription,setDiagramTitle,getDiagramTitle},ERMarkers={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},insertMarkers$1=function(C,H){let U;C.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),C.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),U=C.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),U.append("circle").attr("stroke",H.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),U.append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M9,0 L9,18"),U=C.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),U.append("circle").attr("stroke",H.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),U.append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M21,0 L21,18"),C.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),C.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),U=C.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),U.append("circle").attr("stroke",H.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),U.append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),U=C.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),U.append("circle").attr("stroke",H.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),U.append("path").attr("stroke",H.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},erMarkers={ERMarkers,insertMarkers:insertMarkers$1},BAD_ID_CHARS_REGEXP=/[^\dA-Za-z](\W)*/g;let conf$8={},entityNameIds=new Map;const setConf$8=function(C){const H=Object.keys(C);for(const U of H)conf$8[U]=C[U]},drawAttributes=(C,H,U)=>{const W=conf$8.entityPadding/3,G=conf$8.entityPadding/3,X=conf$8.fontSize*.85,Z=H.node().getBBox(),Q=[];let ee=!1,ie=!1,te=0,ne=0,ae=0,oe=0,se=Z.height+W*2,le=1;U.forEach(ve=>{ve.attributeKeyTypeList!==void 0&&ve.attributeKeyTypeList.length>0&&(ee=!0),ve.attributeComment!==void 0&&(ie=!0)}),U.forEach(ve=>{const ge=`${H.node().id}-attr-${le}`;let he=0;const me=parseGenericTypes(ve.attributeType),_e=C.append("text").classed("er entityLabel",!0).attr("id",`${ge}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$1().fontFamily).style("font-size",X+"px").text(me),be=C.append("text").classed("er entityLabel",!0).attr("id",`${ge}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$1().fontFamily).style("font-size",X+"px").text(ve.attributeName),pe={};pe.tn=_e,pe.nn=be;const fe=_e.node().getBBox(),ye=be.node().getBBox();if(te=Math.max(te,fe.width),ne=Math.max(ne,ye.width),he=Math.max(fe.height,ye.height),ee){const $e=ve.attributeKeyTypeList!==void 0?ve.attributeKeyTypeList.join(","):"",we=C.append("text").classed("er entityLabel",!0).attr("id",`${ge}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$1().fontFamily).style("font-size",X+"px").text($e);pe.kn=we;const Se=we.node().getBBox();ae=Math.max(ae,Se.width),he=Math.max(he,Se.height)}if(ie){const $e=C.append("text").classed("er entityLabel",!0).attr("id",`${ge}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$1().fontFamily).style("font-size",X+"px").text(ve.attributeComment||"");pe.cn=$e;const we=$e.node().getBBox();oe=Math.max(oe,we.width),he=Math.max(he,we.height)}pe.height=he,Q.push(pe),se+=he+W*2,le+=1});let ce=4;ee&&(ce+=2),ie&&(ce+=2);const ue=te+ne+ae+oe,de={width:Math.max(conf$8.minEntityWidth,Math.max(Z.width+conf$8.entityPadding*2,ue+G*ce)),height:U.length>0?se:Math.max(conf$8.minEntityHeight,Z.height+conf$8.entityPadding*2)};if(U.length>0){const ve=Math.max(0,(de.width-ue-G*ce)/(ce/2));H.attr("transform","translate("+de.width/2+","+(W+Z.height/2)+")");let ge=Z.height+W*2,he="attributeBoxOdd";Q.forEach(me=>{const _e=ge+W+me.height/2;me.tn.attr("transform","translate("+G+","+_e+")");const be=C.insert("rect","#"+me.tn.node().id).classed(`er ${he}`,!0).attr("x",0).attr("y",ge).attr("width",te+G*2+ve).attr("height",me.height+W*2),pe=parseFloat(be.attr("x"))+parseFloat(be.attr("width"));me.nn.attr("transform","translate("+(pe+G)+","+_e+")");const fe=C.insert("rect","#"+me.nn.node().id).classed(`er ${he}`,!0).attr("x",pe).attr("y",ge).attr("width",ne+G*2+ve).attr("height",me.height+W*2);let ye=parseFloat(fe.attr("x"))+parseFloat(fe.attr("width"));if(ee){me.kn.attr("transform","translate("+(ye+G)+","+_e+")");const $e=C.insert("rect","#"+me.kn.node().id).classed(`er ${he}`,!0).attr("x",ye).attr("y",ge).attr("width",ae+G*2+ve).attr("height",me.height+W*2);ye=parseFloat($e.attr("x"))+parseFloat($e.attr("width"))}ie&&(me.cn.attr("transform","translate("+(ye+G)+","+_e+")"),C.insert("rect","#"+me.cn.node().id).classed(`er ${he}`,"true").attr("x",ye).attr("y",ge).attr("width",oe+G*2+ve).attr("height",me.height+W*2)),ge+=me.height+W*2,he=he==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else de.height=Math.max(conf$8.minEntityHeight,se),H.attr("transform","translate("+de.width/2+","+de.height/2+")");return de},drawEntities=function(C,H,U){const W=Object.keys(H);let G;return W.forEach(function(X){const Z=generateId(X,"entity");entityNameIds.set(X,Z);const Q=C.append("g").attr("id",Z);G=G===void 0?Z:G;const ee="text-"+Z,ie=Q.append("text").classed("er entityLabel",!0).attr("id",ee).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",getConfig$1().fontFamily).style("font-size",conf$8.fontSize+"px").text(X),{width:te,height:ne}=drawAttributes(Q,ie,H[X].attributes),oe=Q.insert("rect","#"+ee).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",te).attr("height",ne).node().getBBox();U.setNode(Z,{width:oe.width,height:oe.height,shape:"rect",id:Z})}),G},adjustEntities$1=function(C,H){H.nodes().forEach(function(U){U!==void 0&&H.node(U)!==void 0&&C.select("#"+U).attr("transform","translate("+(H.node(U).x-H.node(U).width/2)+","+(H.node(U).y-H.node(U).height/2)+" )")})},getEdgeName=function(C){return(C.entityA+C.roleA+C.entityB).replace(/\s/g,"")},addRelationships$1=function(C,H){return C.forEach(function(U){H.setEdge(entityNameIds.get(U.entityA),entityNameIds.get(U.entityB),{relationship:U},getEdgeName(U))}),C};let relCnt$1=0;const drawRelationshipFromLayout$1=function(C,H,U,W,G){relCnt$1++;const X=U.edge(entityNameIds.get(H.entityA),entityNameIds.get(H.entityB),getEdgeName(H)),Z=line$1().x(function(se){return se.x}).y(function(se){return se.y}).curve(curveBasis),Q=C.insert("path","#"+W).classed("er relationshipLine",!0).attr("d",Z(X.points)).style("stroke",conf$8.stroke).style("fill","none");H.relSpec.relType===G.db.Identification.NON_IDENTIFYING&&Q.attr("stroke-dasharray","8,8");let ee="";switch(conf$8.arrowMarkerAbsolute&&(ee=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ee=ee.replace(/\(/g,"\\("),ee=ee.replace(/\)/g,"\\)")),H.relSpec.cardA){case G.db.Cardinality.ZERO_OR_ONE:Q.attr("marker-end","url("+ee+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_END+")");break;case G.db.Cardinality.ZERO_OR_MORE:Q.attr("marker-end","url("+ee+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_END+")");break;case G.db.Cardinality.ONE_OR_MORE:Q.attr("marker-end","url("+ee+"#"+erMarkers.ERMarkers.ONE_OR_MORE_END+")");break;case G.db.Cardinality.ONLY_ONE:Q.attr("marker-end","url("+ee+"#"+erMarkers.ERMarkers.ONLY_ONE_END+")");break}switch(H.relSpec.cardB){case G.db.Cardinality.ZERO_OR_ONE:Q.attr("marker-start","url("+ee+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_START+")");break;case G.db.Cardinality.ZERO_OR_MORE:Q.attr("marker-start","url("+ee+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_START+")");break;case G.db.Cardinality.ONE_OR_MORE:Q.attr("marker-start","url("+ee+"#"+erMarkers.ERMarkers.ONE_OR_MORE_START+")");break;case G.db.Cardinality.ONLY_ONE:Q.attr("marker-start","url("+ee+"#"+erMarkers.ERMarkers.ONLY_ONE_START+")");break}const ie=Q.node().getTotalLength(),te=Q.node().getPointAtLength(ie*.5),ne="rel"+relCnt$1,oe=C.append("text").classed("er relationshipLabel",!0).attr("id",ne).attr("x",te.x).attr("y",te.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",getConfig$1().fontFamily).style("font-size",conf$8.fontSize+"px").text(H.roleA).node().getBBox();C.insert("rect","#"+ne).classed("er relationshipLabelBox",!0).attr("x",te.x-oe.width/2).attr("y",te.y-oe.height/2).attr("width",oe.width).attr("height",oe.height)},draw$b=function(C,H,U,W){conf$8=getConfig$1().er,log$1.info("Drawing ER diagram");const G=getConfig$1().securityLevel;let X;G==="sandbox"&&(X=select("#i"+H));const Q=select(G==="sandbox"?X.nodes()[0].contentDocument.body:"body").select(`[id='${H}']`);erMarkers.insertMarkers(Q,conf$8);let ee;ee=new Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:conf$8.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const ie=drawEntities(Q,W.db.getEntities(),ee),te=addRelationships$1(W.db.getRelationships(),ee);layout(ee),adjustEntities$1(Q,ee),te.forEach(function(le){drawRelationshipFromLayout$1(Q,le,ee,ie,W)});const ne=conf$8.diagramPadding;utils$d.insertTitle(Q,"entityTitleText",conf$8.titleTopMargin,W.db.getDiagramTitle());const ae=Q.node().getBBox(),oe=ae.width+ne*2,se=ae.height+ne*2;configureSvgSize(Q,se,oe,conf$8.useMaxWidth),Q.attr("viewBox",`${ae.x-ne} ${ae.y-ne} ${oe} ${se}`)},MERMAID_ERDIAGRAM_UUID="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function generateId(C="",H=""){const U=C.replace(BAD_ID_CHARS_REGEXP,"");return`${strWithHyphen(H)}${strWithHyphen(U)}${v5$1(C,MERMAID_ERDIAGRAM_UUID)}`}function strWithHyphen(C=""){return C.length>0?`${C}-`:""}const erRenderer={setConf:setConf$8,draw:draw$b};var parser$7=function(){var C=function(bn,Gt,qt,tn){for(qt=qt||{},tn=bn.length;tn--;qt[bn[tn]]=Gt);return qt},H=[1,9],U=[1,7],W=[1,6],G=[1,8],X=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Z=[2,10],Q=[1,20],ee=[1,21],ie=[1,22],te=[1,23],ne=[1,30],ae=[1,32],oe=[1,33],se=[1,34],le=[1,62],ce=[1,48],ue=[1,52],de=[1,36],ve=[1,37],ge=[1,38],he=[1,39],me=[1,40],_e=[1,56],be=[1,63],pe=[1,51],fe=[1,53],ye=[1,55],$e=[1,59],we=[1,60],Se=[1,41],Te=[1,42],xe=[1,43],ke=[1,44],Ie=[1,61],Ae=[1,50],Me=[1,54],Fe=[1,57],Be=[1,58],Ne=[1,49],Ve=[1,66],Le=[1,71],De=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Je=[1,75],ze=[1,74],Ge=[1,76],qe=[20,21,23,81,82],Ke=[1,99],Ee=[1,104],Ce=[1,107],Pe=[1,108],Re=[1,101],Ze=[1,106],Oe=[1,109],Qe=[1,102],Xe=[1,114],et=[1,113],We=[1,103],He=[1,105],Ye=[1,110],nt=[1,111],tt=[1,112],at=[1,115],St=[20,21,22,23,81,82],st=[20,21,22,23,53,81,82],it=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],pt=[20,21,23],wt=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],xt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],mt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],gt=[1,149],lt=[1,157],ct=[1,158],vt=[1,159],_t=[1,160],rt=[1,144],ut=[1,145],ot=[1,141],Tt=[1,152],ft=[1,153],Ct=[1,154],At=[1,155],Rt=[1,156],It=[1,161],Ft=[1,162],Pt=[1,147],Ht=[1,150],Dt=[1,146],jt=[1,143],on=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],un=[1,165],Yt=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Wt=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Qt=[12,21,22,24],Zt=[22,106],Xt=[1,250],Jt=[1,245],sn=[1,246],en=[1,254],dn=[1,251],Vt=[1,248],ht=[1,247],kt=[1,249],Mt=[1,252],zt=[1,253],rn=[1,255],ln=[1,273],gn=[20,21,23,106],vn=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],hn={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(Gt,qt,tn,Ut,mn,je,dt){var Ue=je.length-1;switch(mn){case 5:Ut.parseDirective("%%{","open_directive");break;case 6:Ut.parseDirective(je[Ue],"type_directive");break;case 7:je[Ue]=je[Ue].trim().replace(/'/g,'"'),Ut.parseDirective(je[Ue],"arg_directive");break;case 8:Ut.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(je[Ue])||je[Ue].length>0)&&je[Ue-1].push(je[Ue]),this.$=je[Ue-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:this.$=je[Ue];break;case 19:Ut.setDirection("TB"),this.$="TB";break;case 20:Ut.setDirection(je[Ue-1]),this.$=je[Ue-1];break;case 35:this.$=je[Ue-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=Ut.addSubGraph(je[Ue-6],je[Ue-1],je[Ue-4]);break;case 42:this.$=Ut.addSubGraph(je[Ue-3],je[Ue-1],je[Ue-3]);break;case 43:this.$=Ut.addSubGraph(void 0,je[Ue-1],void 0);break;case 45:this.$=je[Ue].trim(),Ut.setAccTitle(this.$);break;case 46:case 47:this.$=je[Ue].trim(),Ut.setAccDescription(this.$);break;case 51:Ut.addLink(je[Ue-2].stmt,je[Ue],je[Ue-1]),this.$={stmt:je[Ue],nodes:je[Ue].concat(je[Ue-2].nodes)};break;case 52:Ut.addLink(je[Ue-3].stmt,je[Ue-1],je[Ue-2]),this.$={stmt:je[Ue-1],nodes:je[Ue-1].concat(je[Ue-3].nodes)};break;case 53:this.$={stmt:je[Ue-1],nodes:je[Ue-1]};break;case 54:this.$={stmt:je[Ue],nodes:je[Ue]};break;case 55:this.$=[je[Ue]];break;case 56:this.$=je[Ue-4].concat(je[Ue]);break;case 57:this.$=[je[Ue-2]],Ut.setClass(je[Ue-2],je[Ue]);break;case 58:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"square");break;case 59:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"doublecircle");break;case 60:this.$=je[Ue-5],Ut.addVertex(je[Ue-5],je[Ue-2],"circle");break;case 61:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"ellipse");break;case 62:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"stadium");break;case 63:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"subroutine");break;case 64:this.$=je[Ue-7],Ut.addVertex(je[Ue-7],je[Ue-1],"rect",void 0,void 0,void 0,Object.fromEntries([[je[Ue-5],je[Ue-3]]]));break;case 65:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"cylinder");break;case 66:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"round");break;case 67:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"diamond");break;case 68:this.$=je[Ue-5],Ut.addVertex(je[Ue-5],je[Ue-2],"hexagon");break;case 69:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"odd");break;case 70:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"trapezoid");break;case 71:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"inv_trapezoid");break;case 72:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"lean_right");break;case 73:this.$=je[Ue-3],Ut.addVertex(je[Ue-3],je[Ue-1],"lean_left");break;case 74:this.$=je[Ue],Ut.addVertex(je[Ue]);break;case 75:je[Ue-1].text=je[Ue],this.$=je[Ue-1];break;case 76:case 77:je[Ue-2].text=je[Ue-1],this.$=je[Ue-2];break;case 78:this.$=je[Ue];break;case 79:var yt=Ut.destructLink(je[Ue],je[Ue-2]);this.$={type:yt.type,stroke:yt.stroke,length:yt.length,text:je[Ue-1]};break;case 80:var yt=Ut.destructLink(je[Ue]);this.$={type:yt.type,stroke:yt.stroke,length:yt.length};break;case 81:this.$=je[Ue-1];break;case 83:case 97:case 153:this.$=je[Ue-1]+""+je[Ue];break;case 98:case 99:this.$=je[Ue-4],Ut.addClass(je[Ue-2],je[Ue]);break;case 100:this.$=je[Ue-4],Ut.setClass(je[Ue-2],je[Ue]);break;case 101:case 109:this.$=je[Ue-1],Ut.setClickEvent(je[Ue-1],je[Ue]);break;case 102:case 110:this.$=je[Ue-3],Ut.setClickEvent(je[Ue-3],je[Ue-2]),Ut.setTooltip(je[Ue-3],je[Ue]);break;case 103:this.$=je[Ue-2],Ut.setClickEvent(je[Ue-2],je[Ue-1],je[Ue]);break;case 104:this.$=je[Ue-4],Ut.setClickEvent(je[Ue-4],je[Ue-3],je[Ue-2]),Ut.setTooltip(je[Ue-4],je[Ue]);break;case 105:case 111:this.$=je[Ue-1],Ut.setLink(je[Ue-1],je[Ue]);break;case 106:case 112:this.$=je[Ue-3],Ut.setLink(je[Ue-3],je[Ue-2]),Ut.setTooltip(je[Ue-3],je[Ue]);break;case 107:case 113:this.$=je[Ue-3],Ut.setLink(je[Ue-3],je[Ue-2],je[Ue]);break;case 108:case 114:this.$=je[Ue-5],Ut.setLink(je[Ue-5],je[Ue-4],je[Ue]),Ut.setTooltip(je[Ue-5],je[Ue-2]);break;case 115:this.$=je[Ue-4],Ut.addVertex(je[Ue-2],void 0,void 0,je[Ue]);break;case 116:case 118:this.$=je[Ue-4],Ut.updateLink(je[Ue-2],je[Ue]);break;case 117:this.$=je[Ue-4],Ut.updateLink([je[Ue-2]],je[Ue]);break;case 119:this.$=je[Ue-8],Ut.updateLinkInterpolate([je[Ue-6]],je[Ue-2]),Ut.updateLink([je[Ue-6]],je[Ue]);break;case 120:this.$=je[Ue-8],Ut.updateLinkInterpolate(je[Ue-6],je[Ue-2]),Ut.updateLink(je[Ue-6],je[Ue]);break;case 121:this.$=je[Ue-6],Ut.updateLinkInterpolate([je[Ue-4]],je[Ue]);break;case 122:this.$=je[Ue-6],Ut.updateLinkInterpolate(je[Ue-4],je[Ue]);break;case 123:case 125:this.$=[je[Ue]];break;case 124:case 126:je[Ue-2].push(je[Ue]),this.$=je[Ue-2];break;case 128:this.$=je[Ue-1]+je[Ue];break;case 150:this.$=je[Ue];break;case 151:this.$=je[Ue-1]+""+je[Ue];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:H,16:4,21:U,22:W,24:G},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:H,16:4,21:U,22:W,24:G},C(X,Z,{17:11}),{7:12,13:[1,13]},{16:14,21:U,22:W,24:G},{16:15,21:U,22:W,24:G},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:Q,21:ee,22:ie,23:te,32:24,33:25,34:26,35:27,36:28,37:29,38:ne,43:31,44:ae,46:oe,48:se,50:35,51:45,52:le,54:46,66:ce,67:ue,86:de,87:ve,88:ge,89:he,90:me,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,118:Se,119:Te,120:xe,121:ke,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},{8:64,10:[1,65],15:Ve},C([10,15],[2,6]),C(X,[2,17]),C(X,[2,18]),C(X,[2,19]),{20:[1,68],21:[1,69],22:Le,27:67,30:70},C(De,[2,11]),C(De,[2,12]),C(De,[2,13]),C(De,[2,14]),C(De,[2,15]),C(De,[2,16]),{9:72,20:Je,21:ze,23:Ge,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Je,21:ze,23:Ge},{9:81,20:Je,21:ze,23:Ge},{9:82,20:Je,21:ze,23:Ge},{9:83,20:Je,21:ze,23:Ge},{9:84,20:Je,21:ze,23:Ge},{9:86,20:Je,21:ze,22:[1,85],23:Ge},C(De,[2,44]),{45:[1,87]},{47:[1,88]},C(De,[2,47]),C(qe,[2,54],{30:89,22:Le}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Ke,52:Ee,66:Ce,67:Pe,84:[1,97],91:Re,97:96,98:[1,94],100:[1,95],105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(De,[2,158]),C(De,[2,159]),C(De,[2,160]),C(De,[2,161]),C(St,[2,55],{53:[1,116]}),C(st,[2,74],{116:129,40:[1,117],52:le,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:ce,67:ue,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne}),C(it,[2,150]),C(it,[2,175]),C(it,[2,176]),C(it,[2,177]),C(it,[2,178]),C(it,[2,179]),C(it,[2,180]),C(it,[2,181]),C(it,[2,182]),C(it,[2,183]),C(it,[2,184]),C(it,[2,185]),C(it,[2,186]),C(it,[2,187]),C(it,[2,188]),C(it,[2,189]),C(it,[2,190]),{9:130,20:Je,21:ze,23:Ge},{11:131,14:[1,132]},C(pt,[2,8]),C(X,[2,20]),C(X,[2,26]),C(X,[2,27]),{21:[1,133]},C(wt,[2,34],{30:134,22:Le}),C(De,[2,35]),{50:135,51:45,52:le,54:46,66:ce,67:ue,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},C(xt,[2,48]),C(xt,[2,49]),C(xt,[2,50]),C(mt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:gt,24:lt,26:ct,38:vt,39:139,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),C(De,[2,36]),C(De,[2,37]),C(De,[2,38]),C(De,[2,39]),C(De,[2,40]),{22:gt,24:lt,26:ct,38:vt,39:163,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(on,Z,{17:164}),C(De,[2,45]),C(De,[2,46]),C(qe,[2,53],{52:un}),{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,97:166,102:[1,167],105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{95:[1,168],103:169,105:[1,170]},{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,95:[1,171],97:172,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,97:173,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(pt,[2,101],{22:[1,174],99:[1,175]}),C(pt,[2,105],{22:[1,176]}),C(pt,[2,109],{115:100,117:178,22:[1,177],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,122:We,123:He,124:Ye,125:nt,126:tt,127:at}),C(pt,[2,111],{22:[1,179]}),C(Yt,[2,152]),C(Yt,[2,154]),C(Yt,[2,155]),C(Yt,[2,156]),C(Yt,[2,157]),C(Wt,[2,162]),C(Wt,[2,163]),C(Wt,[2,164]),C(Wt,[2,165]),C(Wt,[2,166]),C(Wt,[2,167]),C(Wt,[2,168]),C(Wt,[2,169]),C(Wt,[2,170]),C(Wt,[2,171]),C(Wt,[2,172]),C(Wt,[2,173]),C(Wt,[2,174]),{52:le,54:180,66:ce,67:ue,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},{22:gt,24:lt,26:ct,38:vt,39:181,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:182,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:184,42:_t,52:Ee,57:[1,183],66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:185,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:186,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:187,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{66:[1,188]},{22:gt,24:lt,26:ct,38:vt,39:189,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:190,42:_t,52:Ee,66:Ce,67:Pe,71:[1,191],73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:192,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:193,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:194,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(it,[2,151]),C(Qt,[2,3]),{8:195,15:Ve},{15:[2,7]},C(X,[2,28]),C(wt,[2,33]),C(qe,[2,51],{30:196,22:Le}),C(mt,[2,75],{22:[1,197]}),{22:[1,198]},{22:gt,24:lt,26:ct,38:vt,39:199,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,82:[1,200],83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(Wt,[2,82]),C(Wt,[2,84]),C(Wt,[2,140]),C(Wt,[2,141]),C(Wt,[2,142]),C(Wt,[2,143]),C(Wt,[2,144]),C(Wt,[2,145]),C(Wt,[2,146]),C(Wt,[2,147]),C(Wt,[2,148]),C(Wt,[2,149]),C(Wt,[2,85]),C(Wt,[2,86]),C(Wt,[2,87]),C(Wt,[2,88]),C(Wt,[2,89]),C(Wt,[2,90]),C(Wt,[2,91]),C(Wt,[2,92]),C(Wt,[2,93]),C(Wt,[2,94]),C(Wt,[2,95]),{9:203,20:Je,21:ze,22:gt,23:Ge,24:lt,26:ct,38:vt,40:[1,202],42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{18:18,19:19,20:Q,21:ee,22:ie,23:te,32:24,33:25,34:26,35:27,36:28,37:29,38:ne,42:[1,204],43:31,44:ae,46:oe,48:se,50:35,51:45,52:le,54:46,66:ce,67:ue,86:de,87:ve,88:ge,89:he,90:me,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,118:Se,119:Te,120:xe,121:ke,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},{22:Le,30:205},{22:[1,206],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:178,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},C(Zt,[2,123]),{22:[1,211]},{22:[1,212],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:178,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:[1,213],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:178,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{84:[1,214]},C(pt,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},C(Yt,[2,153]),{84:[1,219],101:[1,220]},C(St,[2,57],{116:129,52:le,66:ce,67:ue,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne}),{22:gt,24:lt,26:ct,38:vt,41:[1,221],42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,56:[1,222],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:223,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,58:[1,224],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,60:[1,225],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,62:[1,226],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,64:[1,227],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{67:[1,228]},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,70:[1,229],73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,72:[1,230],73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,39:231,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,41:[1,232],42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,73:rt,75:[1,233],77:[1,234],81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,73:rt,75:[1,236],77:[1,235],81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{9:237,20:Je,21:ze,23:Ge},C(qe,[2,52],{52:un}),C(mt,[2,77]),C(mt,[2,76]),{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,68:[1,238],73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(mt,[2,79]),C(Wt,[2,83]),{22:gt,24:lt,26:ct,38:vt,39:239,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(on,Z,{17:240}),C(De,[2,43]),{51:241,52:le,54:46,66:ce,67:ue,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},{22:Xt,66:Jt,67:sn,86:en,96:242,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{22:Xt,66:Jt,67:sn,86:en,96:256,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{22:Xt,66:Jt,67:sn,86:en,96:257,102:dn,104:[1,258],105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{22:Xt,66:Jt,67:sn,86:en,96:259,102:dn,104:[1,260],105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{105:[1,261]},{22:Xt,66:Jt,67:sn,86:en,96:262,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{22:Xt,66:Jt,67:sn,86:en,96:263,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,97:264,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(pt,[2,102]),{84:[1,265]},C(pt,[2,106],{22:[1,266]}),C(pt,[2,107]),C(pt,[2,110]),C(pt,[2,112],{22:[1,267]}),C(pt,[2,113]),C(st,[2,58]),C(st,[2,59]),{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,58:[1,268],66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(st,[2,66]),C(st,[2,61]),C(st,[2,62]),C(st,[2,63]),{66:[1,269]},C(st,[2,65]),C(st,[2,67]),{22:gt,24:lt,26:ct,38:vt,42:_t,52:Ee,66:Ce,67:Pe,72:[1,270],73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(st,[2,69]),C(st,[2,70]),C(st,[2,72]),C(st,[2,71]),C(st,[2,73]),C(Qt,[2,4]),C([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:gt,24:lt,26:ct,38:vt,41:[1,271],42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{18:18,19:19,20:Q,21:ee,22:ie,23:te,32:24,33:25,34:26,35:27,36:28,37:29,38:ne,42:[1,272],43:31,44:ae,46:oe,48:se,50:35,51:45,52:le,54:46,66:ce,67:ue,86:de,87:ve,88:ge,89:he,90:me,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,118:Se,119:Te,120:xe,121:ke,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},C(St,[2,56]),C(pt,[2,115],{106:ln}),C(gn,[2,125],{108:274,22:Xt,66:Jt,67:sn,86:en,102:dn,105:Vt,109:ht,110:kt,111:Mt,112:zt,113:rn}),C(vn,[2,127]),C(vn,[2,129]),C(vn,[2,130]),C(vn,[2,131]),C(vn,[2,132]),C(vn,[2,133]),C(vn,[2,134]),C(vn,[2,135]),C(vn,[2,136]),C(vn,[2,137]),C(vn,[2,138]),C(vn,[2,139]),C(pt,[2,116],{106:ln}),C(pt,[2,117],{106:ln}),{22:[1,275]},C(pt,[2,118],{106:ln}),{22:[1,276]},C(Zt,[2,124]),C(pt,[2,98],{106:ln}),C(pt,[2,99],{106:ln}),C(pt,[2,100],{115:100,117:178,26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,122:We,123:He,124:Ye,125:nt,126:tt,127:at}),C(pt,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:Je,21:ze,23:Ge},C(De,[2,42]),{22:Xt,66:Jt,67:sn,86:en,102:dn,105:Vt,107:283,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},C(vn,[2,128]),{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,97:284,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{26:Ke,52:Ee,66:Ce,67:Pe,91:Re,97:285,105:Ze,106:Oe,109:Qe,111:Xe,112:et,115:100,117:98,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(pt,[2,108]),C(pt,[2,114]),C(st,[2,60]),{22:gt,24:lt,26:ct,38:vt,39:286,42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:140,84:ot,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},C(st,[2,68]),C(on,Z,{17:287}),C(gn,[2,126],{108:274,22:Xt,66:Jt,67:sn,86:en,102:dn,105:Vt,109:ht,110:kt,111:Mt,112:zt,113:rn}),C(pt,[2,121],{115:100,117:178,22:[1,288],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,122:We,123:He,124:Ye,125:nt,126:tt,127:at}),C(pt,[2,122],{115:100,117:178,22:[1,289],26:Ke,52:Ee,66:Ce,67:Pe,91:Re,105:Ze,106:Oe,109:Qe,111:Xe,112:et,122:We,123:He,124:Ye,125:nt,126:tt,127:at}),{22:gt,24:lt,26:ct,38:vt,41:[1,290],42:_t,52:Ee,66:Ce,67:Pe,73:rt,81:ut,83:201,85:151,86:Tt,87:ft,88:Ct,89:At,90:Rt,91:It,92:Ft,94:142,95:Pt,105:Ze,106:Oe,109:Ht,111:Xe,112:et,113:Dt,114:jt,115:148,122:We,123:He,124:Ye,125:nt,126:tt,127:at},{18:18,19:19,20:Q,21:ee,22:ie,23:te,32:24,33:25,34:26,35:27,36:28,37:29,38:ne,42:[1,291],43:31,44:ae,46:oe,48:se,50:35,51:45,52:le,54:46,66:ce,67:ue,86:de,87:ve,88:ge,89:he,90:me,91:_e,95:be,105:pe,106:fe,109:ye,111:$e,112:we,116:47,118:Se,119:Te,120:xe,121:ke,122:Ie,123:Ae,124:Me,125:Fe,126:Be,127:Ne},{22:Xt,66:Jt,67:sn,86:en,96:292,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},{22:Xt,66:Jt,67:sn,86:en,96:293,102:dn,105:Vt,107:243,108:244,109:ht,110:kt,111:Mt,112:zt,113:rn},C(st,[2,64]),C(De,[2,41]),C(pt,[2,119],{106:ln}),C(pt,[2,120],{106:ln})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(Gt,qt){if(qt.recoverable)this.trace(Gt);else{var tn=new Error(Gt);throw tn.hash=qt,tn}},parse:function(Gt){var qt=this,tn=[0],Ut=[],mn=[null],je=[],dt=this.table,Ue="",yt=0,$t=0,bt=2,Et=1,Nt=je.slice.call(arguments,1),Ot=Object.create(this.lexer),Lt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(Lt.yy[Bt]=this.yy[Bt]);Ot.setInput(Gt,Lt.yy),Lt.yy.lexer=Ot,Lt.yy.parser=this,typeof Ot.yylloc>"u"&&(Ot.yylloc={});var Kt=Ot.yylloc;je.push(Kt);var an=Ot.options&&Ot.options.ranges;typeof Lt.yy.parseError=="function"?this.parseError=Lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fn(){var xn;return xn=Ut.pop()||Ot.lex()||Et,typeof xn!="number"&&(xn instanceof Array&&(Ut=xn,xn=Ut.pop()),xn=qt.symbols_[xn]||xn),xn}for(var nn,pn,cn,yn,_n={},wn,Sn,Tn,kn;;){if(pn=tn[tn.length-1],this.defaultActions[pn]?cn=this.defaultActions[pn]:((nn===null||typeof nn>"u")&&(nn=fn()),cn=dt[pn]&&dt[pn][nn]),typeof cn>"u"||!cn.length||!cn[0]){var En="";kn=[];for(wn in dt[pn])this.terminals_[wn]&&wn>bt&&kn.push("'"+this.terminals_[wn]+"'");Ot.showPosition?En="Parse error on line "+(yt+1)+`:
|
||
`+Ot.showPosition()+`
|
||
Expecting `+kn.join(", ")+", got '"+(this.terminals_[nn]||nn)+"'":En="Parse error on line "+(yt+1)+": Unexpected "+(nn==Et?"end of input":"'"+(this.terminals_[nn]||nn)+"'"),this.parseError(En,{text:Ot.match,token:this.terminals_[nn]||nn,line:Ot.yylineno,loc:Kt,expected:kn})}if(cn[0]instanceof Array&&cn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pn+", token: "+nn);switch(cn[0]){case 1:tn.push(nn),mn.push(Ot.yytext),je.push(Ot.yylloc),tn.push(cn[1]),nn=null,$t=Ot.yyleng,Ue=Ot.yytext,yt=Ot.yylineno,Kt=Ot.yylloc;break;case 2:if(Sn=this.productions_[cn[1]][1],_n.$=mn[mn.length-Sn],_n._$={first_line:je[je.length-(Sn||1)].first_line,last_line:je[je.length-1].last_line,first_column:je[je.length-(Sn||1)].first_column,last_column:je[je.length-1].last_column},an&&(_n._$.range=[je[je.length-(Sn||1)].range[0],je[je.length-1].range[1]]),yn=this.performAction.apply(_n,[Ue,$t,yt,Lt.yy,cn[1],mn,je].concat(Nt)),typeof yn<"u")return yn;Sn&&(tn=tn.slice(0,-1*Sn*2),mn=mn.slice(0,-1*Sn),je=je.slice(0,-1*Sn)),tn.push(this.productions_[cn[1]][0]),mn.push(_n.$),je.push(_n._$),Tn=dt[tn[tn.length-2]][tn[tn.length-1]],tn.push(Tn);break;case 3:return!0}}return!0}},Cn=function(){var bn={EOF:1,parseError:function(qt,tn){if(this.yy.parser)this.yy.parser.parseError(qt,tn);else throw new Error(qt)},setInput:function(Gt,qt){return this.yy=qt||this.yy||{},this._input=Gt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Gt=this._input[0];this.yytext+=Gt,this.yyleng++,this.offset++,this.match+=Gt,this.matched+=Gt;var qt=Gt.match(/(?:\r\n?|\n).*/g);return qt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Gt},unput:function(Gt){var qt=Gt.length,tn=Gt.split(/(?:\r\n?|\n)/g);this._input=Gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qt),this.offset-=qt;var Ut=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),tn.length-1&&(this.yylineno-=tn.length-1);var mn=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:tn?(tn.length===Ut.length?this.yylloc.first_column:0)+Ut[Ut.length-tn.length].length-tn[0].length:this.yylloc.first_column-qt},this.options.ranges&&(this.yylloc.range=[mn[0],mn[0]+this.yyleng-qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Gt){this.unput(this.match.slice(Gt))},pastInput:function(){var Gt=this.matched.substr(0,this.matched.length-this.match.length);return(Gt.length>20?"...":"")+Gt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Gt=this.match;return Gt.length<20&&(Gt+=this._input.substr(0,20-Gt.length)),(Gt.substr(0,20)+(Gt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Gt=this.pastInput(),qt=new Array(Gt.length+1).join("-");return Gt+this.upcomingInput()+`
|
||
`+qt+"^"},test_match:function(Gt,qt){var tn,Ut,mn;if(this.options.backtrack_lexer&&(mn={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(mn.yylloc.range=this.yylloc.range.slice(0))),Ut=Gt[0].match(/(?:\r\n?|\n).*/g),Ut&&(this.yylineno+=Ut.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ut?Ut[Ut.length-1].length-Ut[Ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Gt[0].length},this.yytext+=Gt[0],this.match+=Gt[0],this.matches=Gt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Gt[0].length),this.matched+=Gt[0],tn=this.performAction.call(this,this.yy,this,qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),tn)return tn;if(this._backtrack){for(var je in mn)this[je]=mn[je];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Gt,qt,tn,Ut;this._more||(this.yytext="",this.match="");for(var mn=this._currentRules(),je=0;je<mn.length;je++)if(tn=this._input.match(this.rules[mn[je]]),tn&&(!qt||tn[0].length>qt[0].length)){if(qt=tn,Ut=je,this.options.backtrack_lexer){if(Gt=this.test_match(tn,mn[je]),Gt!==!1)return Gt;if(this._backtrack){qt=!1;continue}else return!1}else if(!this.options.flex)break}return qt?(Gt=this.test_match(qt,mn[Ut]),Gt!==!1?Gt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var qt=this.next();return qt||this.lex()},begin:function(qt){this.conditionStack.push(qt)},popState:function(){var qt=this.conditionStack.length-1;return qt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(qt){return qt=this.conditionStack.length-1-Math.abs(qt||0),qt>=0?this.conditionStack[qt]:"INITIAL"},pushState:function(qt){this.begin(qt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(qt,tn,Ut,mn){switch(Ut){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return qt.lex.firstGraph()&&this.begin("dir"),24;case 36:return qt.lex.firstGraph()&&this.begin("dir"),24;case 37:return qt.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}};return bn}();hn.lexer=Cn;function $n(){this.yy={}}return $n.prototype=hn,hn.Parser=$n,new $n}();parser$7.parser=parser$7;const parser$8=parser$7,flowDetector=(C,H)=>{var U,W;return((U=H==null?void 0:H.flowchart)==null?void 0:U.defaultRenderer)==="dagre-wrapper"||((W=H==null?void 0:H.flowchart)==null?void 0:W.defaultRenderer)==="elk"?!1:C.match(/^\s*graph/)!==null},flowDetectorV2=(C,H)=>{var U,W;return((U=H==null?void 0:H.flowchart)==null?void 0:U.defaultRenderer)==="dagre-d3"||((W=H==null?void 0:H.flowchart)==null?void 0:W.defaultRenderer)==="elk"?!1:C.match(/^\s*graph/)!==null?!0:C.match(/^\s*flowchart/)!==null},MERMAID_DOM_ID_PREFIX="flowchart-";let vertexCounter=0,config=getConfig$1(),vertices={},edges=[],classes$1={},subGraphs=[],subGraphLookup={},tooltips={},subCount=0,firstGraphFlag=!0,direction$1,version,funs$1=[];const sanitizeText=C=>common$1.sanitizeText(C,config),parseDirective$6=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},lookUpDomId=function(C){const H=Object.keys(vertices);for(const U of H)if(vertices[U].id===C)return vertices[U].domId;return C},addVertex=function(C,H,U,W,G,X,Z={}){let Q,ee=C;ee!==void 0&&ee.trim().length!==0&&(vertices[ee]===void 0&&(vertices[ee]={id:ee,domId:MERMAID_DOM_ID_PREFIX+ee+"-"+vertexCounter,styles:[],classes:[]}),vertexCounter++,H!==void 0?(config=getConfig$1(),Q=sanitizeText(H.trim()),Q[0]==='"'&&Q[Q.length-1]==='"'&&(Q=Q.substring(1,Q.length-1)),vertices[ee].text=Q):vertices[ee].text===void 0&&(vertices[ee].text=C),U!==void 0&&(vertices[ee].type=U),W!=null&&W.forEach(function(ie){vertices[ee].styles.push(ie)}),G!=null&&G.forEach(function(ie){vertices[ee].classes.push(ie)}),X!==void 0&&(vertices[ee].dir=X),vertices[ee].props===void 0?vertices[ee].props=Z:Z!==void 0&&Object.assign(vertices[ee].props,Z))},addSingleLink=function(C,H,U,W){const Z={start:C,end:H,type:void 0,text:""};W=U.text,W!==void 0&&(Z.text=sanitizeText(W.trim()),Z.text[0]==='"'&&Z.text[Z.text.length-1]==='"'&&(Z.text=Z.text.substring(1,Z.text.length-1))),U!==void 0&&(Z.type=U.type,Z.stroke=U.stroke,Z.length=U.length),edges.push(Z)},addLink=function(C,H,U,W){let G,X;for(G=0;G<C.length;G++)for(X=0;X<H.length;X++)addSingleLink(C[G],H[X],U,W)},updateLinkInterpolate=function(C,H){C.forEach(function(U){U==="default"?edges.defaultInterpolate=H:edges[U].interpolate=H})},updateLink=function(C,H){C.forEach(function(U){U==="default"?edges.defaultStyle=H:(utils$d.isSubstringInArray("fill",H)===-1&&H.push("fill:none"),edges[U].style=H)})},addClass=function(C,H){classes$1[C]===void 0&&(classes$1[C]={id:C,styles:[],textStyles:[]}),H!=null&&H.forEach(function(U){if(U.match("color")){const G=U.replace("fill","bgFill").replace("color","fill");classes$1[C].textStyles.push(G)}classes$1[C].styles.push(U)})},setDirection$1=function(C){direction$1=C,direction$1.match(/.*</)&&(direction$1="RL"),direction$1.match(/.*\^/)&&(direction$1="BT"),direction$1.match(/.*>/)&&(direction$1="LR"),direction$1.match(/.*v/)&&(direction$1="TB"),direction$1==="TD"&&(direction$1="TB")},setClass$1=function(C,H){C.split(",").forEach(function(U){let W=U;vertices[W]!==void 0&&vertices[W].classes.push(H),subGraphLookup[W]!==void 0&&subGraphLookup[W].classes.push(H)})},setTooltip=function(C,H){C.split(",").forEach(function(U){H!==void 0&&(tooltips[version==="gen-1"?lookUpDomId(U):U]=sanitizeText(H))})},setClickFun$1=function(C,H,U){let W=lookUpDomId(C);if(getConfig$1().securityLevel!=="loose"||H===void 0)return;let G=[];if(typeof U=="string"){G=U.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let X=0;X<G.length;X++){let Z=G[X].trim();Z.charAt(0)==='"'&&Z.charAt(Z.length-1)==='"'&&(Z=Z.substr(1,Z.length-2)),G[X]=Z}}G.length===0&&G.push(C),vertices[C]!==void 0&&(vertices[C].haveCallback=!0,funs$1.push(function(){const X=document.querySelector(`[id="${W}"]`);X!==null&&X.addEventListener("click",function(){utils$d.runFunc(H,...G)},!1)}))},setLink$1=function(C,H,U){C.split(",").forEach(function(W){vertices[W]!==void 0&&(vertices[W].link=utils$d.formatUrl(H,config),vertices[W].linkTarget=U)}),setClass$1(C,"clickable")},getTooltip=function(C){return tooltips[C]},setClickEvent$1=function(C,H,U){C.split(",").forEach(function(W){setClickFun$1(W,H,U)}),setClass$1(C,"clickable")},bindFunctions$1=function(C){funs$1.forEach(function(H){H(C)})},getDirection$1=function(){return direction$1.trim()},getVertices=function(){return vertices},getEdges=function(){return edges},getClasses$4=function(){return classes$1},setupToolTips=function(C){let H=select(".mermaidTooltip");(H._groups||H)[0][0]===null&&(H=select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),select(C).select("svg").selectAll("g.node").on("mouseover",function(){const G=select(this);if(G.attr("title")===null)return;const Z=this.getBoundingClientRect();H.transition().duration(200).style("opacity",".9"),H.text(G.attr("title")).style("left",window.scrollX+Z.left+(Z.right-Z.left)/2+"px").style("top",window.scrollY+Z.top-14+document.body.scrollTop+"px"),H.html(H.html().replace(/<br\/>/g,"<br/>")),G.classed("hover",!0)}).on("mouseout",function(){H.transition().duration(500).style("opacity",0),select(this).classed("hover",!1)})};funs$1.push(setupToolTips);const clear$6=function(C="gen-1"){vertices={},classes$1={},edges=[],funs$1=[setupToolTips],subGraphs=[],subGraphLookup={},subCount=0,tooltips=[],firstGraphFlag=!0,version=C,clear$g()},setGen=C=>{version=C||"gen-2"},defaultStyle=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph=function(C,H,U){let W=C.trim(),G=U;C===U&&U.match(/\s/)&&(W=void 0);function X(te){const ne={boolean:{},number:{},string:{}},ae=[];let oe;return{nodeList:te.filter(function(le){const ce=typeof le;return le.stmt&&le.stmt==="dir"?(oe=le.value,!1):le.trim()===""?!1:ce in ne?ne[ce].hasOwnProperty(le)?!1:ne[ce][le]=!0:ae.includes(le)?!1:ae.push(le)}),dir:oe}}let Z=[];const{nodeList:Q,dir:ee}=X(Z.concat.apply(Z,H));if(Z=Q,version==="gen-1")for(let te=0;te<Z.length;te++)Z[te]=lookUpDomId(Z[te]);W=W||"subGraph"+subCount,G=G||"",G=sanitizeText(G),subCount=subCount+1;const ie={id:W,nodes:Z,title:G.trim(),classes:[],dir:ee};return log$1.info("Adding",ie.id,ie.nodes,ie.dir),ie.nodes=makeUniq(ie,subGraphs).nodes,subGraphs.push(ie),subGraphLookup[W]=ie,W},getPosForId=function(C){for(const[H,U]of subGraphs.entries())if(U.id===C)return H;return-1};let secCount=-1;const posCrossRef=[],indexNodes2=function(C,H){const U=subGraphs[H].nodes;if(secCount=secCount+1,secCount>2e3)return;if(posCrossRef[secCount]=H,subGraphs[H].id===C)return{result:!0,count:0};let W=0,G=1;for(;W<U.length;){const X=getPosForId(U[W]);if(X>=0){const Z=indexNodes2(C,X);if(Z.result)return{result:!0,count:G+Z.count};G=G+Z.count}W=W+1}return{result:!1,count:G}},getDepthFirstPos=function(C){return posCrossRef[C]},indexNodes=function(){secCount=-1,subGraphs.length>0&&indexNodes2("none",subGraphs.length-1)},getSubGraphs=function(){return subGraphs},firstGraph=()=>firstGraphFlag?(firstGraphFlag=!1,!0):!1,destructStartLink=C=>{let H=C.trim(),U="arrow_open";switch(H[0]){case"<":U="arrow_point",H=H.slice(1);break;case"x":U="arrow_cross",H=H.slice(1);break;case"o":U="arrow_circle",H=H.slice(1);break}let W="normal";return H.includes("=")&&(W="thick"),H.includes(".")&&(W="dotted"),{type:U,stroke:W}},countChar=(C,H)=>{const U=H.length;let W=0;for(let G=0;G<U;++G)H[G]===C&&++W;return W},destructEndLink=C=>{const H=C.trim();let U=H.slice(0,-1),W="arrow_open";switch(H.slice(-1)){case"x":W="arrow_cross",H[0]==="x"&&(W="double_"+W,U=U.slice(1));break;case">":W="arrow_point",H[0]==="<"&&(W="double_"+W,U=U.slice(1));break;case"o":W="arrow_circle",H[0]==="o"&&(W="double_"+W,U=U.slice(1));break}let G="normal",X=U.length-1;U[0]==="="&&(G="thick");let Z=countChar(".",U);return Z&&(G="dotted",X=Z),{type:W,stroke:G,length:X}},destructLink=(C,H)=>{const U=destructEndLink(C);let W;if(H){if(W=destructStartLink(H),W.stroke!==U.stroke)return{type:"INVALID",stroke:"INVALID"};if(W.type==="arrow_open")W.type=U.type;else{if(W.type!==U.type)return{type:"INVALID",stroke:"INVALID"};W.type="double_"+W.type}return W.type==="double_arrow"&&(W.type="double_arrow_point"),W.length=U.length,W}return U},exists=(C,H)=>{let U=!1;return C.forEach(W=>{W.nodes.indexOf(H)>=0&&(U=!0)}),U},makeUniq=(C,H)=>{const U=[];return C.nodes.forEach((W,G)=>{exists(H,W)||U.push(C.nodes[G])}),{nodes:U}},lex={firstGraph},flowDb={parseDirective:parseDirective$6,defaultConfig:()=>defaultConfig.flowchart,setAccTitle,getAccTitle,getAccDescription,setAccDescription,addVertex,lookUpDomId,addLink,updateLinkInterpolate,updateLink,addClass,setDirection:setDirection$1,setClass:setClass$1,setTooltip,getTooltip,setClickEvent:setClickEvent$1,setLink:setLink$1,bindFunctions:bindFunctions$1,getDirection:getDirection$1,getVertices,getEdges,getClasses:getClasses$4,clear:clear$6,setGen,defaultStyle,addSubGraph,getDepthFirstPos,indexNodes,getSubGraphs,destructLink,lex,exists,makeUniq,setDiagramTitle,getDiagramTitle},db=Object.freeze(Object.defineProperty({__proto__:null,parseDirective:parseDirective$6,lookUpDomId,addVertex,addSingleLink,addLink,updateLinkInterpolate,updateLink,addClass,setDirection:setDirection$1,setClass:setClass$1,setLink:setLink$1,getTooltip,setClickEvent:setClickEvent$1,bindFunctions:bindFunctions$1,getDirection:getDirection$1,getVertices,getEdges,getClasses:getClasses$4,clear:clear$6,setGen,defaultStyle,addSubGraph,getDepthFirstPos,indexNodes,getSubGraphs,firstGraph,destructLink,lex,default:flowDb},Symbol.toStringTag,{value:"Module"}));function question(C,H,U){const W=H.width,G=H.height,X=(W+G)*.9,Z=[{x:X/2,y:0},{x:X,y:-X/2},{x:X/2,y:-X},{x:0,y:-X/2}],Q=insertPolygonShape(C,X,X,Z);return U.intersect=function(ee){return intersectPolygon$1(U,Z,ee)},Q}function hexagon(C,H,U){const G=H.height,X=G/4,Z=H.width+2*X,Q=[{x:X,y:0},{x:Z-X,y:0},{x:Z,y:-G/2},{x:Z-X,y:-G},{x:X,y:-G},{x:0,y:-G/2}],ee=insertPolygonShape(C,Z,G,Q);return U.intersect=function(ie){return intersectPolygon$1(U,Q,ie)},ee}function rect_left_inv_arrow(C,H,U){const W=H.width,G=H.height,X=[{x:-G/2,y:0},{x:W,y:0},{x:W,y:-G},{x:-G/2,y:-G},{x:0,y:-G/2}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function lean_right(C,H,U){const W=H.width,G=H.height,X=[{x:-2*G/6,y:0},{x:W-G/6,y:0},{x:W+2*G/6,y:-G},{x:G/6,y:-G}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function lean_left(C,H,U){const W=H.width,G=H.height,X=[{x:2*G/6,y:0},{x:W+G/6,y:0},{x:W-2*G/6,y:-G},{x:-G/6,y:-G}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function trapezoid(C,H,U){const W=H.width,G=H.height,X=[{x:-2*G/6,y:0},{x:W+2*G/6,y:0},{x:W-G/6,y:-G},{x:G/6,y:-G}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function inv_trapezoid(C,H,U){const W=H.width,G=H.height,X=[{x:G/6,y:0},{x:W-G/6,y:0},{x:W+2*G/6,y:-G},{x:-2*G/6,y:-G}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function rect_right_inv_arrow(C,H,U){const W=H.width,G=H.height,X=[{x:0,y:0},{x:W+G/2,y:0},{x:W,y:-G/2},{x:W+G/2,y:-G},{x:0,y:-G}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function stadium(C,H,U){const W=H.height,G=H.width+W/4,X=C.insert("rect",":first-child").attr("rx",W/2).attr("ry",W/2).attr("x",-G/2).attr("y",-W/2).attr("width",G).attr("height",W);return U.intersect=function(Z){return intersectRect$2(U,Z)},X}function subroutine(C,H,U){const W=H.width,G=H.height,X=[{x:0,y:0},{x:W,y:0},{x:W,y:-G},{x:0,y:-G},{x:0,y:0},{x:-8,y:0},{x:W+8,y:0},{x:W+8,y:-G},{x:-8,y:-G},{x:-8,y:0}],Z=insertPolygonShape(C,W,G,X);return U.intersect=function(Q){return intersectPolygon$1(U,X,Q)},Z}function cylinder(C,H,U){const W=H.width,G=W/2,X=G/(2.5+W/50),Z=H.height+X,Q="M 0,"+X+" a "+G+","+X+" 0,0,0 "+W+" 0 a "+G+","+X+" 0,0,0 "+-W+" 0 l 0,"+Z+" a "+G+","+X+" 0,0,0 "+W+" 0 l 0,"+-Z,ee=C.attr("label-offset-y",X).insert("path",":first-child").attr("d",Q).attr("transform","translate("+-W/2+","+-(Z/2+X)+")");return U.intersect=function(ie){const te=intersectRect$2(U,ie),ne=te.x-U.x;if(G!=0&&(Math.abs(ne)<U.width/2||Math.abs(ne)==U.width/2&&Math.abs(te.y-U.y)>U.height/2-X)){let ae=X*X*(1-ne*ne/(G*G));ae!=0&&(ae=Math.sqrt(ae)),ae=X-ae,ie.y-U.y>0&&(ae=-ae),te.y+=ae}return te},ee}function addToRender(C){C.shapes().question=question,C.shapes().hexagon=hexagon,C.shapes().stadium=stadium,C.shapes().subroutine=subroutine,C.shapes().cylinder=cylinder,C.shapes().rect_left_inv_arrow=rect_left_inv_arrow,C.shapes().lean_right=lean_right,C.shapes().lean_left=lean_left,C.shapes().trapezoid=trapezoid,C.shapes().inv_trapezoid=inv_trapezoid,C.shapes().rect_right_inv_arrow=rect_right_inv_arrow}function addToRenderV2(C){C({question}),C({hexagon}),C({stadium}),C({subroutine}),C({cylinder}),C({rect_left_inv_arrow}),C({lean_right}),C({lean_left}),C({trapezoid}),C({inv_trapezoid}),C({rect_right_inv_arrow})}function insertPolygonShape(C,H,U,W){return C.insert("polygon",":first-child").attr("points",W.map(function(G){return G.x+","+G.y}).join(" ")).attr("transform","translate("+-H/2+","+U/2+")")}const flowChartShapes={addToRender,addToRenderV2},conf$7={},setConf$7=function(C){const H=Object.keys(C);for(const U of H)conf$7[U]=C[U]},addVertices$1=function(C,H,U,W,G,X){const Z=W?W.select(`[id="${U}"]`):select(`[id="${U}"]`),Q=G||document;Object.keys(C).forEach(function(ie){const te=C[ie];let ne="default";te.classes.length>0&&(ne=te.classes.join(" "));const ae=getStylesFromArray(te.styles);let oe=te.text!==void 0?te.text:te.id,se;if(evaluate(getConfig$1().flowchart.htmlLabels)){const ue={label:oe.replace(/fa[blrs]?:fa-[\w-]+/g,de=>`<i class='${de.replace(":"," ")}'></i>`)};se=addHtmlLabel$1(Z,ue).node(),se.parentNode.removeChild(se)}else{const ue=Q.createElementNS("http://www.w3.org/2000/svg","text");ue.setAttribute("style",ae.labelStyle.replace("color:","fill:"));const de=oe.split(common$1.lineBreakRegex);for(const ve of de){const ge=Q.createElementNS("http://www.w3.org/2000/svg","tspan");ge.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ge.setAttribute("dy","1em"),ge.setAttribute("x","1"),ge.textContent=ve,ue.appendChild(ge)}se=ue}let le=0,ce="";switch(te.type){case"round":le=5,ce="rect";break;case"square":ce="rect";break;case"diamond":ce="question";break;case"hexagon":ce="hexagon";break;case"odd":ce="rect_left_inv_arrow";break;case"lean_right":ce="lean_right";break;case"lean_left":ce="lean_left";break;case"trapezoid":ce="trapezoid";break;case"inv_trapezoid":ce="inv_trapezoid";break;case"odd_right":ce="rect_left_inv_arrow";break;case"circle":ce="circle";break;case"ellipse":ce="ellipse";break;case"stadium":ce="stadium";break;case"subroutine":ce="subroutine";break;case"cylinder":ce="cylinder";break;case"group":ce="rect";break;default:ce="rect"}log$1.warn("Adding node",te.id,te.domId),H.setNode(X.db.lookUpDomId(te.id),{labelType:"svg",labelStyle:ae.labelStyle,shape:ce,label:se,rx:le,ry:le,class:ne,style:ae.style,id:X.db.lookUpDomId(te.id)})})},addEdges$1=function(C,H,U){let W=0,G,X;if(C.defaultStyle!==void 0){const Z=getStylesFromArray(C.defaultStyle);G=Z.style,X=Z.labelStyle}C.forEach(function(Z){W++;var Q="L-"+Z.start+"-"+Z.end,ee="LS-"+Z.start,ie="LE-"+Z.end;const te={};Z.type==="arrow_open"?te.arrowhead="none":te.arrowhead="normal";let ne="",ae="";if(Z.style!==void 0){const oe=getStylesFromArray(Z.style);ne=oe.style,ae=oe.labelStyle}else switch(Z.stroke){case"normal":ne="fill:none",G!==void 0&&(ne=G),X!==void 0&&(ae=X);break;case"dotted":ne="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ne=" stroke-width: 3.5px;fill:none";break}te.style=ne,te.labelStyle=ae,Z.interpolate!==void 0?te.curve=interpolateToCurve(Z.interpolate,curveLinear):C.defaultInterpolate!==void 0?te.curve=interpolateToCurve(C.defaultInterpolate,curveLinear):te.curve=interpolateToCurve(conf$7.curve,curveLinear),Z.text===void 0?Z.style!==void 0&&(te.arrowheadStyle="fill: #333"):(te.arrowheadStyle="fill: #333",te.labelpos="c",evaluate(getConfig$1().flowchart.htmlLabels)?(te.labelType="html",te.label=`<span id="L-${Q}" class="edgeLabel L-${ee}' L-${ie}" style="${te.labelStyle}">${Z.text.replace(/fa[blrs]?:fa-[\w-]+/g,oe=>`<i class='${oe.replace(":"," ")}'></i>`)}</span>`):(te.labelType="text",te.label=Z.text.replace(common$1.lineBreakRegex,`
|
||
`),Z.style===void 0&&(te.style=te.style||"stroke: #333; stroke-width: 1.5px;fill:none"),te.labelStyle=te.labelStyle.replace("color:","fill:"))),te.id=Q,te.class=ee+" "+ie,te.minlen=Z.length||1,H.setEdge(U.db.lookUpDomId(Z.start),U.db.lookUpDomId(Z.end),te,W)})},getClasses$3=function(C,H){log$1.info("Extracting classes"),H.db.clear();try{return H.parse(C),H.db.getClasses()}catch(U){return log$1.error(U),{}}},draw$a=function(C,H,U,W){log$1.info("Drawing flowchart"),W.db.clear();const{securityLevel:G,flowchart:X}=getConfig$1();let Z;G==="sandbox"&&(Z=select("#i"+H));const Q=select(G==="sandbox"?Z.nodes()[0].contentDocument.body:"body"),ee=G==="sandbox"?Z.nodes()[0].contentDocument:document;try{W.parser.parse(C)}catch{log$1.debug("Parsing failed")}let ie=W.db.getDirection();ie===void 0&&(ie="TD");const te=X.nodeSpacing||50,ne=X.rankSpacing||50,ae=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ie,nodesep:te,ranksep:ne,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let oe;const se=W.db.getSubGraphs();for(let me=se.length-1;me>=0;me--)oe=se[me],W.db.addVertex(oe.id,oe.title,"group",void 0,oe.classes);const le=W.db.getVertices();log$1.warn("Get vertices",le);const ce=W.db.getEdges();let ue=0;for(ue=se.length-1;ue>=0;ue--){oe=se[ue],selectAll("cluster").append("text");for(let me=0;me<oe.nodes.length;me++)log$1.warn("Setting subgraph",oe.nodes[me],W.db.lookUpDomId(oe.nodes[me]),W.db.lookUpDomId(oe.id)),ae.setParent(W.db.lookUpDomId(oe.nodes[me]),W.db.lookUpDomId(oe.id))}addVertices$1(le,ae,H,Q,ee,W),addEdges$1(ce,ae,W);const de=new render$2;flowChartShapes.addToRender(de),de.arrows().none=function(_e,be,pe,fe){const $e=_e.append("marker").attr("id",be).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");applyStyle$1($e,pe[fe+"Style"])},de.arrows().normal=function(_e,be){_e.append("marker").attr("id",be).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const ve=Q.select(`[id="${H}"]`),ge=Q.select("#"+H+" g");for(de(ge,ae),ge.selectAll("g.node").attr("title",function(){return W.db.getTooltip(this.id)}),W.db.indexNodes("subGraph"+ue),ue=0;ue<se.length;ue++)if(oe=se[ue],oe.title!=="undefined"){const me=ee.querySelectorAll("#"+H+' [id="'+W.db.lookUpDomId(oe.id)+'"] rect'),_e=ee.querySelectorAll("#"+H+' [id="'+W.db.lookUpDomId(oe.id)+'"]'),be=me[0].x.baseVal.value,pe=me[0].y.baseVal.value,fe=me[0].width.baseVal.value,$e=select(_e[0]).select(".label");$e.attr("transform",`translate(${be+fe/2}, ${pe+14})`),$e.attr("id",H+"Text");for(let we=0;we<oe.classes.length;we++)_e[0].classList.add(oe.classes[we])}if(!X.htmlLabels){const me=ee.querySelectorAll('[id="'+H+'"] .edgeLabel .label');for(const _e of me){const be=_e.getBBox(),pe=ee.createElementNS("http://www.w3.org/2000/svg","rect");pe.setAttribute("rx",0),pe.setAttribute("ry",0),pe.setAttribute("width",be.width),pe.setAttribute("height",be.height),_e.insertBefore(pe,_e.firstChild)}}setupGraphViewbox$1(ae,ve,X.diagramPadding,X.useMaxWidth),Object.keys(le).forEach(function(me){const _e=le[me];if(_e.link){const be=Q.select("#"+H+' [id="'+W.db.lookUpDomId(me)+'"]');if(be){const pe=ee.createElementNS("http://www.w3.org/2000/svg","a");pe.setAttributeNS("http://www.w3.org/2000/svg","class",_e.classes.join(" ")),pe.setAttributeNS("http://www.w3.org/2000/svg","href",_e.link),pe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),G==="sandbox"?pe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):_e.linkTarget&&pe.setAttributeNS("http://www.w3.org/2000/svg","target",_e.linkTarget);const fe=be.insert(function(){return pe},":first-child"),ye=be.select(".label-container");ye&&fe.append(function(){return ye.node()});const $e=be.select(".label");$e&&fe.append(function(){return $e.node()})}}})},flowRenderer={setConf:setConf$7,addVertices:addVertices$1,addEdges:addEdges$1,getClasses:getClasses$3,draw:draw$a},conf$6={},setConf$6=function(C){const H=Object.keys(C);for(const U of H)conf$6[U]=C[U]},addVertices=function(C,H,U,W,G,X){const Z=W.select(`[id="${U}"]`);Object.keys(C).forEach(function(ee){const ie=C[ee];let te="default";ie.classes.length>0&&(te=ie.classes.join(" "));const ne=getStylesFromArray(ie.styles);let ae=ie.text!==void 0?ie.text:ie.id,oe;if(evaluate(getConfig$1().flowchart.htmlLabels)){const ce={label:ae.replace(/fa[blrs]?:fa-[\w-]+/g,ue=>`<i class='${ue.replace(":"," ")}'></i>`)};oe=addHtmlLabel$1(Z,ce).node(),oe.parentNode.removeChild(oe)}else{const ce=G.createElementNS("http://www.w3.org/2000/svg","text");ce.setAttribute("style",ne.labelStyle.replace("color:","fill:"));const ue=ae.split(common$1.lineBreakRegex);for(const de of ue){const ve=G.createElementNS("http://www.w3.org/2000/svg","tspan");ve.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ve.setAttribute("dy","1em"),ve.setAttribute("x","1"),ve.textContent=de,ce.appendChild(ve)}oe=ce}let se=0,le="";switch(ie.type){case"round":se=5,le="rect";break;case"square":le="rect";break;case"diamond":le="question";break;case"hexagon":le="hexagon";break;case"odd":le="rect_left_inv_arrow";break;case"lean_right":le="lean_right";break;case"lean_left":le="lean_left";break;case"trapezoid":le="trapezoid";break;case"inv_trapezoid":le="inv_trapezoid";break;case"odd_right":le="rect_left_inv_arrow";break;case"circle":le="circle";break;case"ellipse":le="ellipse";break;case"stadium":le="stadium";break;case"subroutine":le="subroutine";break;case"cylinder":le="cylinder";break;case"group":le="rect";break;case"doublecircle":le="doublecircle";break;default:le="rect"}H.setNode(ie.id,{labelStyle:ne.labelStyle,shape:le,labelText:ae,rx:se,ry:se,class:te,style:ne.style,id:ie.id,link:ie.link,linkTarget:ie.linkTarget,tooltip:X.db.getTooltip(ie.id)||"",domId:X.db.lookUpDomId(ie.id),haveCallback:ie.haveCallback,width:ie.type==="group"?500:void 0,dir:ie.dir,type:ie.type,props:ie.props,padding:getConfig$1().flowchart.padding}),log$1.info("setNode",{labelStyle:ne.labelStyle,shape:le,labelText:ae,rx:se,ry:se,class:te,style:ne.style,id:ie.id,domId:X.db.lookUpDomId(ie.id),width:ie.type==="group"?500:void 0,type:ie.type,dir:ie.dir,props:ie.props,padding:getConfig$1().flowchart.padding})})},addEdges=function(C,H,U){log$1.info("abc78 edges = ",C);let W=0,G={},X,Z;if(C.defaultStyle!==void 0){const Q=getStylesFromArray(C.defaultStyle);X=Q.style,Z=Q.labelStyle}C.forEach(function(Q){W++;var ee="L-"+Q.start+"-"+Q.end;G[ee]===void 0?(G[ee]=0,log$1.info("abc78 new entry",ee,G[ee])):(G[ee]++,log$1.info("abc78 new entry",ee,G[ee]));let ie=ee+"-"+G[ee];log$1.info("abc78 new link id to be used is",ee,ie,G[ee]);var te="LS-"+Q.start,ne="LE-"+Q.end;const ae={style:"",labelStyle:""};switch(ae.minlen=Q.length||1,Q.type==="arrow_open"?ae.arrowhead="none":ae.arrowhead="normal",ae.arrowTypeStart="arrow_open",ae.arrowTypeEnd="arrow_open",Q.type){case"double_arrow_cross":ae.arrowTypeStart="arrow_cross";case"arrow_cross":ae.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":ae.arrowTypeStart="arrow_point";case"arrow_point":ae.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":ae.arrowTypeStart="arrow_circle";case"arrow_circle":ae.arrowTypeEnd="arrow_circle";break}let oe="",se="";switch(Q.stroke){case"normal":oe="fill:none;",X!==void 0&&(oe=X),Z!==void 0&&(se=Z),ae.thickness="normal",ae.pattern="solid";break;case"dotted":ae.thickness="normal",ae.pattern="dotted",ae.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ae.thickness="thick",ae.pattern="solid",ae.style="stroke-width: 3.5px;fill:none;";break}if(Q.style!==void 0){const le=getStylesFromArray(Q.style);oe=le.style,se=le.labelStyle}ae.style=ae.style+=oe,ae.labelStyle=ae.labelStyle+=se,Q.interpolate!==void 0?ae.curve=interpolateToCurve(Q.interpolate,curveLinear):C.defaultInterpolate!==void 0?ae.curve=interpolateToCurve(C.defaultInterpolate,curveLinear):ae.curve=interpolateToCurve(conf$6.curve,curveLinear),Q.text===void 0?Q.style!==void 0&&(ae.arrowheadStyle="fill: #333"):(ae.arrowheadStyle="fill: #333",ae.labelpos="c"),ae.labelType="text",ae.label=Q.text.replace(common$1.lineBreakRegex,`
|
||
`),Q.style===void 0&&(ae.style=ae.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),ae.labelStyle=ae.labelStyle.replace("color:","fill:"),ae.id=ie,ae.classes="flowchart-link "+te+" "+ne,H.setEdge(Q.start,Q.end,ae,W)})},getClasses$2=function(C,H){log$1.info("Extracting classes"),H.db.clear();try{return H.parse(C),H.db.getClasses()}catch{return}},draw$9=function(C,H,U,W){log$1.info("Drawing flowchart"),W.db.clear(),flowDb.setGen("gen-2"),W.parser.parse(C);let G=W.db.getDirection();G===void 0&&(G="TD");const{securityLevel:X,flowchart:Z}=getConfig$1(),Q=Z.nodeSpacing||50,ee=Z.rankSpacing||50;let ie;X==="sandbox"&&(ie=select("#i"+H));const te=select(X==="sandbox"?ie.nodes()[0].contentDocument.body:"body"),ne=X==="sandbox"?ie.nodes()[0].contentDocument:document,ae=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:G,nodesep:Q,ranksep:ee,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let oe;const se=W.db.getSubGraphs();log$1.info("Subgraphs - ",se);for(let he=se.length-1;he>=0;he--)oe=se[he],log$1.info("Subgraph - ",oe),W.db.addVertex(oe.id,oe.title,"group",void 0,oe.classes,oe.dir);const le=W.db.getVertices(),ce=W.db.getEdges();log$1.info("Edges",ce);let ue=0;for(ue=se.length-1;ue>=0;ue--){oe=se[ue],selectAll("cluster").append("text");for(let he=0;he<oe.nodes.length;he++)log$1.info("Setting up subgraphs",oe.nodes[he],oe.id),ae.setParent(oe.nodes[he],oe.id)}addVertices(le,ae,H,te,ne,W),addEdges(ce,ae);const de=te.select(`[id="${H}"]`),ve=te.select("#"+H+" g");if(render$1(ve,ae,["point","circle","cross"],"flowchart",H),utils$d.insertTitle(de,"flowchartTitleText",Z.titleTopMargin,W.db.getDiagramTitle()),setupGraphViewbox$1(ae,de,Z.diagramPadding,Z.useMaxWidth),W.db.indexNodes("subGraph"+ue),!Z.htmlLabels){const he=ne.querySelectorAll('[id="'+H+'"] .edgeLabel .label');for(const me of he){const _e=me.getBBox(),be=ne.createElementNS("http://www.w3.org/2000/svg","rect");be.setAttribute("rx",0),be.setAttribute("ry",0),be.setAttribute("width",_e.width),be.setAttribute("height",_e.height),me.insertBefore(be,me.firstChild)}}Object.keys(le).forEach(function(he){const me=le[he];if(me.link){const _e=select("#"+H+' [id="'+he+'"]');if(_e){const be=ne.createElementNS("http://www.w3.org/2000/svg","a");be.setAttributeNS("http://www.w3.org/2000/svg","class",me.classes.join(" ")),be.setAttributeNS("http://www.w3.org/2000/svg","href",me.link),be.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),X==="sandbox"?be.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):me.linkTarget&&be.setAttributeNS("http://www.w3.org/2000/svg","target",me.linkTarget);const pe=_e.insert(function(){return be},":first-child"),fe=_e.select(".label-container");fe&&pe.append(function(){return fe.node()});const ye=_e.select(".label");ye&&pe.append(function(){return ye.node()})}}})},flowRendererV2={setConf:setConf$6,addVertices,addEdges,getClasses:getClasses$2,draw:draw$9};var parser$6=function(){var C=function(be,pe,fe,ye){for(fe=fe||{},ye=be.length;ye--;fe[be[ye]]=pe);return fe},H=[1,3],U=[1,5],W=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],G=[1,15],X=[1,16],Z=[1,17],Q=[1,18],ee=[1,19],ie=[1,20],te=[1,21],ne=[1,22],ae=[1,23],oe=[1,24],se=[1,25],le=[1,26],ce=[1,27],ue=[1,29],de=[1,31],ve=[1,34],ge=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],he={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(pe,fe,ye,$e,we,Se,Te){var xe=Se.length-1;switch(we){case 2:return Se[xe-1];case 3:this.$=[];break;case 4:Se[xe-1].push(Se[xe]),this.$=Se[xe-1];break;case 5:case 6:this.$=Se[xe];break;case 7:case 8:this.$=[];break;case 9:$e.setDateFormat(Se[xe].substr(11)),this.$=Se[xe].substr(11);break;case 10:$e.enableInclusiveEndDates(),this.$=Se[xe].substr(18);break;case 11:$e.TopAxis(),this.$=Se[xe].substr(8);break;case 12:$e.setAxisFormat(Se[xe].substr(11)),this.$=Se[xe].substr(11);break;case 13:$e.setTickInterval(Se[xe].substr(13)),this.$=Se[xe].substr(13);break;case 14:$e.setExcludes(Se[xe].substr(9)),this.$=Se[xe].substr(9);break;case 15:$e.setIncludes(Se[xe].substr(9)),this.$=Se[xe].substr(9);break;case 16:$e.setTodayMarker(Se[xe].substr(12)),this.$=Se[xe].substr(12);break;case 17:$e.setDiagramTitle(Se[xe].substr(6)),this.$=Se[xe].substr(6);break;case 18:this.$=Se[xe].trim(),$e.setAccTitle(this.$);break;case 19:case 20:this.$=Se[xe].trim(),$e.setAccDescription(this.$);break;case 21:$e.addSection(Se[xe].substr(8)),this.$=Se[xe].substr(8);break;case 23:$e.addTask(Se[xe-1],Se[xe]),this.$="task";break;case 27:this.$=Se[xe-1],$e.setClickEvent(Se[xe-1],Se[xe],null);break;case 28:this.$=Se[xe-2],$e.setClickEvent(Se[xe-2],Se[xe-1],Se[xe]);break;case 29:this.$=Se[xe-2],$e.setClickEvent(Se[xe-2],Se[xe-1],null),$e.setLink(Se[xe-2],Se[xe]);break;case 30:this.$=Se[xe-3],$e.setClickEvent(Se[xe-3],Se[xe-2],Se[xe-1]),$e.setLink(Se[xe-3],Se[xe]);break;case 31:this.$=Se[xe-2],$e.setClickEvent(Se[xe-2],Se[xe],null),$e.setLink(Se[xe-2],Se[xe-1]);break;case 32:this.$=Se[xe-3],$e.setClickEvent(Se[xe-3],Se[xe-1],Se[xe]),$e.setLink(Se[xe-3],Se[xe-2]);break;case 33:this.$=Se[xe-1],$e.setLink(Se[xe-1],Se[xe]);break;case 34:case 40:this.$=Se[xe-1]+" "+Se[xe];break;case 35:case 36:case 38:this.$=Se[xe-2]+" "+Se[xe-1]+" "+Se[xe];break;case 37:case 39:this.$=Se[xe-3]+" "+Se[xe-2]+" "+Se[xe-1]+" "+Se[xe];break;case 41:$e.parseDirective("%%{","open_directive");break;case 42:$e.parseDirective(Se[xe],"type_directive");break;case 43:Se[xe]=Se[xe].trim().replace(/'/g,'"'),$e.parseDirective(Se[xe],"arg_directive");break;case 44:$e.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:H,30:4,40:U},{1:[3]},{3:6,4:2,5:H,30:4,40:U},C(W,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:G,13:X,14:Z,15:Q,16:ee,17:ie,18:te,19:ne,20:ae,21:oe,23:se,25:le,26:ce,27:28,28:ue,30:4,35:de,40:U},{32:32,33:[1,33],43:ve},C([33,43],[2,42]),C(W,[2,8],{1:[2,2]}),C(W,[2,4]),{4:30,10:35,12:G,13:X,14:Z,15:Q,16:ee,17:ie,18:te,19:ne,20:ae,21:oe,23:se,25:le,26:ce,27:28,28:ue,30:4,35:de,40:U},C(W,[2,6]),C(W,[2,7]),C(W,[2,9]),C(W,[2,10]),C(W,[2,11]),C(W,[2,12]),C(W,[2,13]),C(W,[2,14]),C(W,[2,15]),C(W,[2,16]),C(W,[2,17]),{22:[1,36]},{24:[1,37]},C(W,[2,20]),C(W,[2,21]),C(W,[2,22]),{29:[1,38]},C(W,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},C(W,[2,5]),C(W,[2,18]),C(W,[2,19]),C(W,[2,23]),C(W,[2,27],{37:[1,44],38:[1,45]}),C(W,[2,33],{36:[1,46]}),C(ge,[2,25]),{32:47,43:ve},{43:[2,43]},C(W,[2,28],{38:[1,48]}),C(W,[2,29]),C(W,[2,31],{37:[1,49]}),{11:[1,50]},C(W,[2,30]),C(W,[2,32]),C(ge,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(pe,fe){if(fe.recoverable)this.trace(pe);else{var ye=new Error(pe);throw ye.hash=fe,ye}},parse:function(pe){var fe=this,ye=[0],$e=[],we=[null],Se=[],Te=this.table,xe="",ke=0,Ie=0,Ae=2,Me=1,Fe=Se.slice.call(arguments,1),Be=Object.create(this.lexer),Ne={yy:{}};for(var Ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ve)&&(Ne.yy[Ve]=this.yy[Ve]);Be.setInput(pe,Ne.yy),Ne.yy.lexer=Be,Ne.yy.parser=this,typeof Be.yylloc>"u"&&(Be.yylloc={});var Le=Be.yylloc;Se.push(Le);var De=Be.options&&Be.options.ranges;typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Qe;return Qe=$e.pop()||Be.lex()||Me,typeof Qe!="number"&&(Qe instanceof Array&&($e=Qe,Qe=$e.pop()),Qe=fe.symbols_[Qe]||Qe),Qe}for(var ze,Ge,qe,Ke,Ee={},Ce,Pe,Re,Ze;;){if(Ge=ye[ye.length-1],this.defaultActions[Ge]?qe=this.defaultActions[Ge]:((ze===null||typeof ze>"u")&&(ze=Je()),qe=Te[Ge]&&Te[Ge][ze]),typeof qe>"u"||!qe.length||!qe[0]){var Oe="";Ze=[];for(Ce in Te[Ge])this.terminals_[Ce]&&Ce>Ae&&Ze.push("'"+this.terminals_[Ce]+"'");Be.showPosition?Oe="Parse error on line "+(ke+1)+`:
|
||
`+Be.showPosition()+`
|
||
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[ze]||ze)+"'":Oe="Parse error on line "+(ke+1)+": Unexpected "+(ze==Me?"end of input":"'"+(this.terminals_[ze]||ze)+"'"),this.parseError(Oe,{text:Be.match,token:this.terminals_[ze]||ze,line:Be.yylineno,loc:Le,expected:Ze})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+ze);switch(qe[0]){case 1:ye.push(ze),we.push(Be.yytext),Se.push(Be.yylloc),ye.push(qe[1]),ze=null,Ie=Be.yyleng,xe=Be.yytext,ke=Be.yylineno,Le=Be.yylloc;break;case 2:if(Pe=this.productions_[qe[1]][1],Ee.$=we[we.length-Pe],Ee._$={first_line:Se[Se.length-(Pe||1)].first_line,last_line:Se[Se.length-1].last_line,first_column:Se[Se.length-(Pe||1)].first_column,last_column:Se[Se.length-1].last_column},De&&(Ee._$.range=[Se[Se.length-(Pe||1)].range[0],Se[Se.length-1].range[1]]),Ke=this.performAction.apply(Ee,[xe,Ie,ke,Ne.yy,qe[1],we,Se].concat(Fe)),typeof Ke<"u")return Ke;Pe&&(ye=ye.slice(0,-1*Pe*2),we=we.slice(0,-1*Pe),Se=Se.slice(0,-1*Pe)),ye.push(this.productions_[qe[1]][0]),we.push(Ee.$),Se.push(Ee._$),Re=Te[ye[ye.length-2]][ye[ye.length-1]],ye.push(Re);break;case 3:return!0}}return!0}},me=function(){var be={EOF:1,parseError:function(fe,ye){if(this.yy.parser)this.yy.parser.parseError(fe,ye);else throw new Error(fe)},setInput:function(pe,fe){return this.yy=fe||this.yy||{},this._input=pe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var pe=this._input[0];this.yytext+=pe,this.yyleng++,this.offset++,this.match+=pe,this.matched+=pe;var fe=pe.match(/(?:\r\n?|\n).*/g);return fe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),pe},unput:function(pe){var fe=pe.length,ye=pe.split(/(?:\r\n?|\n)/g);this._input=pe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var $e=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ye.length-1&&(this.yylineno-=ye.length-1);var we=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ye?(ye.length===$e.length?this.yylloc.first_column:0)+$e[$e.length-ye.length].length-ye[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[we[0],we[0]+this.yyleng-fe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(pe){this.unput(this.match.slice(pe))},pastInput:function(){var pe=this.matched.substr(0,this.matched.length-this.match.length);return(pe.length>20?"...":"")+pe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var pe=this.match;return pe.length<20&&(pe+=this._input.substr(0,20-pe.length)),(pe.substr(0,20)+(pe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var pe=this.pastInput(),fe=new Array(pe.length+1).join("-");return pe+this.upcomingInput()+`
|
||
`+fe+"^"},test_match:function(pe,fe){var ye,$e,we;if(this.options.backtrack_lexer&&(we={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(we.yylloc.range=this.yylloc.range.slice(0))),$e=pe[0].match(/(?:\r\n?|\n).*/g),$e&&(this.yylineno+=$e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$e?$e[$e.length-1].length-$e[$e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+pe[0].length},this.yytext+=pe[0],this.match+=pe[0],this.matches=pe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(pe[0].length),this.matched+=pe[0],ye=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ye)return ye;if(this._backtrack){for(var Se in we)this[Se]=we[Se];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var pe,fe,ye,$e;this._more||(this.yytext="",this.match="");for(var we=this._currentRules(),Se=0;Se<we.length;Se++)if(ye=this._input.match(this.rules[we[Se]]),ye&&(!fe||ye[0].length>fe[0].length)){if(fe=ye,$e=Se,this.options.backtrack_lexer){if(pe=this.test_match(ye,we[Se]),pe!==!1)return pe;if(this._backtrack){fe=!1;continue}else return!1}else if(!this.options.flex)break}return fe?(pe=this.test_match(fe,we[$e]),pe!==!1?pe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var fe=this.next();return fe||this.lex()},begin:function(fe){this.conditionStack.push(fe)},popState:function(){var fe=this.conditionStack.length-1;return fe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(fe){return fe=this.conditionStack.length-1-Math.abs(fe||0),fe>=0?this.conditionStack[fe]:"INITIAL"},pushState:function(fe){this.begin(fe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(fe,ye,$e,we){switch($e){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return be}();he.lexer=me;function _e(){this.yy={}}return _e.prototype=he,he.Parser=_e,new _e}();parser$6.parser=parser$6;const ganttParser=parser$6,ganttDetector=C=>C.match(/^\s*gantt/)!==null;let dateFormat="",axisFormat="",tickInterval,todayMarker="",includes=[],excludes=[],links={},sections$2=[],tasks$1=[],currentSection$1="";const tags=["active","done","crit","milestone"];let funs=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0;const parseDirective$5=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},clear$5=function(){sections$2=[],tasks$1=[],currentSection$1="",funs=[],taskCnt=0,lastTask=void 0,lastTaskID=void 0,rawTasks$1=[],dateFormat="",axisFormat="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0,links={},clear$g()},setAxisFormat=function(C){axisFormat=C},getAxisFormat=function(){return axisFormat},setTickInterval=function(C){tickInterval=C},getTickInterval=function(){return tickInterval},setTodayMarker=function(C){todayMarker=C},getTodayMarker=function(){return todayMarker},setDateFormat=function(C){dateFormat=C},enableInclusiveEndDates=function(){inclusiveEndDates=!0},endDatesAreInclusive=function(){return inclusiveEndDates},enableTopAxis=function(){topAxis=!0},topAxisEnabled=function(){return topAxis},getDateFormat=function(){return dateFormat},setIncludes=function(C){includes=C.toLowerCase().split(/[\s,]+/)},getIncludes=function(){return includes},setExcludes=function(C){excludes=C.toLowerCase().split(/[\s,]+/)},getExcludes=function(){return excludes},getLinks=function(){return links},addSection$2=function(C){currentSection$1=C,sections$2.push(C)},getSections$2=function(){return sections$2},getTasks$1=function(){let C=compileTasks$1();const H=10;let U=0;for(;!C&&U<H;)C=compileTasks$1(),U++;return tasks$1=rawTasks$1,tasks$1},isInvalidDate=function(C,H,U,W){return W.includes(C.format(H.trim()))?!1:C.isoWeekday()>=6&&U.includes("weekends")||U.includes(C.format("dddd").toLowerCase())?!0:U.includes(C.format(H.trim()))},checkTaskDates=function(C,H,U,W){if(!U.length||C.manualEndTime)return;let G=hooks(C.startTime,H,!0);G.add(1,"d");let X=hooks(C.endTime,H,!0),Z=fixTaskDates(G,X,H,U,W);C.endTime=X.toDate(),C.renderEndTime=Z},fixTaskDates=function(C,H,U,W,G){let X=!1,Z=null;for(;C<=H;)X||(Z=H.toDate()),X=isInvalidDate(C,U,W,G),X&&H.add(1,"d"),C.add(1,"d");return Z},getStartDate=function(C,H,U){U=U.trim();const G=/^after\s+([\d\w- ]+)/.exec(U.trim());if(G!==null){let Z=null;if(G[1].split(" ").forEach(function(Q){let ee=findTaskById(Q);ee!==void 0&&(Z?ee.endTime>Z.endTime&&(Z=ee):Z=ee)}),Z)return Z.endTime;{const Q=new Date;return Q.setHours(0,0,0,0),Q}}let X=hooks(U,H.trim(),!0);if(X.isValid())return X.toDate();{log$1.debug("Invalid date:"+U),log$1.debug("With date format:"+H.trim());const Z=new Date(U);if(Z===void 0||isNaN(Z.getTime()))throw new Error("Invalid date:"+U);return Z}},parseDuration=function(C){const H=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(C.trim());return H!==null?hooks.duration(Number.parseFloat(H[1]),H[2]):hooks.duration.invalid()},getEndDate=function(C,H,U,W=!1){U=U.trim();let G=hooks(U,H.trim(),!0);if(G.isValid())return W&&G.add(1,"d"),G.toDate();const X=hooks(C),Z=parseDuration(U);return Z.isValid()&&X.add(Z),X.toDate()};let taskCnt=0;const parseId=function(C){return C===void 0?(taskCnt=taskCnt+1,"task"+taskCnt):C},compileData=function(C,H){let U;H.substr(0,1)===":"?U=H.substr(1,H.length):U=H;const W=U.split(","),G={};getTaskTags(W,G,tags);for(let Z=0;Z<W.length;Z++)W[Z]=W[Z].trim();let X="";switch(W.length){case 1:G.id=parseId(),G.startTime=C.endTime,X=W[0];break;case 2:G.id=parseId(),G.startTime=getStartDate(void 0,dateFormat,W[0]),X=W[1];break;case 3:G.id=parseId(W[0]),G.startTime=getStartDate(void 0,dateFormat,W[1]),X=W[2];break}return X&&(G.endTime=getEndDate(G.startTime,dateFormat,X,inclusiveEndDates),G.manualEndTime=hooks(X,"YYYY-MM-DD",!0).isValid(),checkTaskDates(G,dateFormat,excludes,includes)),G},parseData=function(C,H){let U;H.substr(0,1)===":"?U=H.substr(1,H.length):U=H;const W=U.split(","),G={};getTaskTags(W,G,tags);for(let X=0;X<W.length;X++)W[X]=W[X].trim();switch(W.length){case 1:G.id=parseId(),G.startTime={type:"prevTaskEnd",id:C},G.endTime={data:W[0]};break;case 2:G.id=parseId(),G.startTime={type:"getStartDate",startData:W[0]},G.endTime={data:W[1]};break;case 3:G.id=parseId(W[0]),G.startTime={type:"getStartDate",startData:W[1]},G.endTime={data:W[2]};break}return G};let lastTask,lastTaskID,rawTasks$1=[];const taskDb={},addTask$1=function(C,H){const U={section:currentSection$1,type:currentSection$1,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:H},task:C,classes:[]},W=parseData(lastTaskID,H);U.raw.startTime=W.startTime,U.raw.endTime=W.endTime,U.id=W.id,U.prevTaskId=lastTaskID,U.active=W.active,U.done=W.done,U.crit=W.crit,U.milestone=W.milestone,U.order=lastOrder,lastOrder++;const G=rawTasks$1.push(U);lastTaskID=U.id,taskDb[U.id]=G-1},findTaskById=function(C){const H=taskDb[C];return rawTasks$1[H]},addTaskOrg$1=function(C,H){const U={section:currentSection$1,type:currentSection$1,description:C,task:C,classes:[]},W=compileData(lastTask,H);U.startTime=W.startTime,U.endTime=W.endTime,U.id=W.id,U.active=W.active,U.done=W.done,U.crit=W.crit,U.milestone=W.milestone,lastTask=U,tasks$1.push(U)},compileTasks$1=function(){const C=function(U){const W=rawTasks$1[U];let G="";switch(rawTasks$1[U].raw.startTime.type){case"prevTaskEnd":{const X=findTaskById(W.prevTaskId);W.startTime=X.endTime;break}case"getStartDate":G=getStartDate(void 0,dateFormat,rawTasks$1[U].raw.startTime.startData),G&&(rawTasks$1[U].startTime=G);break}return rawTasks$1[U].startTime&&(rawTasks$1[U].endTime=getEndDate(rawTasks$1[U].startTime,dateFormat,rawTasks$1[U].raw.endTime.data,inclusiveEndDates),rawTasks$1[U].endTime&&(rawTasks$1[U].processed=!0,rawTasks$1[U].manualEndTime=hooks(rawTasks$1[U].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),checkTaskDates(rawTasks$1[U],dateFormat,excludes,includes))),rawTasks$1[U].processed};let H=!0;for(const[U,W]of rawTasks$1.entries())C(U),H=H&&W.processed;return H},setLink=function(C,H){let U=H;getConfig$1().securityLevel!=="loose"&&(U=sanitizeUrl_1(H)),C.split(",").forEach(function(W){findTaskById(W)!==void 0&&(pushFun(W,()=>{window.open(U,"_self")}),links[W]=U)}),setClass(C,"clickable")},setClass=function(C,H){C.split(",").forEach(function(U){let W=findTaskById(U);W!==void 0&&W.classes.push(H)})},setClickFun=function(C,H,U){if(getConfig$1().securityLevel!=="loose"||H===void 0)return;let W=[];if(typeof U=="string"){W=U.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let X=0;X<W.length;X++){let Z=W[X].trim();Z.charAt(0)==='"'&&Z.charAt(Z.length-1)==='"'&&(Z=Z.substr(1,Z.length-2)),W[X]=Z}}W.length===0&&W.push(C),findTaskById(C)!==void 0&&pushFun(C,()=>{utils$d.runFunc(H,...W)})},pushFun=function(C,H){funs.push(function(){const U=document.querySelector(`[id="${C}"]`);U!==null&&U.addEventListener("click",function(){H()})},function(){const U=document.querySelector(`[id="${C}-text"]`);U!==null&&U.addEventListener("click",function(){H()})})},setClickEvent=function(C,H,U){C.split(",").forEach(function(W){setClickFun(W,H,U)}),setClass(C,"clickable")},bindFunctions=function(C){funs.forEach(function(H){H(C)})},ganttDb={parseDirective:parseDirective$5,getConfig:()=>getConfig$1().gantt,clear:clear$5,setDateFormat,getDateFormat,enableInclusiveEndDates,endDatesAreInclusive,enableTopAxis,topAxisEnabled,setAxisFormat,getAxisFormat,setTickInterval,getTickInterval,setTodayMarker,getTodayMarker,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,setAccDescription,getAccDescription,addSection:addSection$2,getSections:getSections$2,getTasks:getTasks$1,addTask:addTask$1,findTaskById,addTaskOrg:addTaskOrg$1,setIncludes,getIncludes,setExcludes,getExcludes,setClickEvent,setLink,getLinks,bindFunctions,parseDuration,isInvalidDate};function getTaskTags(C,H,U){let W=!0;for(;W;)W=!1,U.forEach(function(G){const X="^\\s*"+G+"\\s*$",Z=new RegExp(X);C[0].match(Z)&&(H[G]=!0,C.shift(1),W=!0)})}const setConf$5=function(){log$1.debug("Something is calling, setConf, remove the call")};let w;const draw$8=function(C,H,U,W){const G=getConfig$1().gantt,X=getConfig$1().securityLevel;let Z;X==="sandbox"&&(Z=select("#i"+H));const Q=select(X==="sandbox"?Z.nodes()[0].contentDocument.body:"body"),ee=X==="sandbox"?Z.nodes()[0].contentDocument:document,ie=ee.getElementById(H);w=ie.parentElement.offsetWidth,w===void 0&&(w=1200),G.useWidth!==void 0&&(w=G.useWidth);const te=W.db.getTasks(),ne=te.length*(G.barHeight+G.barGap)+2*G.topPadding;ie.setAttribute("viewBox","0 0 "+w+" "+ne);const ae=Q.select(`[id="${H}"]`),oe=time$1().domain([min$2(te,function(fe){return fe.startTime}),max$2(te,function(fe){return fe.endTime})]).rangeRound([0,w-G.leftPadding-G.rightPadding]);let se=[];for(const fe of te)se.push(fe.type);const le=se;se=_e(se);function ce(fe,ye){const $e=fe.startTime,we=ye.startTime;let Se=0;return $e>we?Se=1:$e<we&&(Se=-1),Se}te.sort(ce),ue(te,w,ne),configureSvgSize(ae,ne,w,G.useMaxWidth),ae.append("text").text(W.db.getDiagramTitle()).attr("x",w/2).attr("y",G.titleTopMargin).attr("class","titleText");function ue(fe,ye,$e){const we=G.barHeight,Se=we+G.barGap,Te=G.topPadding,xe=G.leftPadding,ke=linear().domain([0,se.length]).range(["#00B9FA","#F95002"]).interpolate(interpolateHcl);ve(Se,Te,xe,ye,$e,fe,W.db.getExcludes(),W.db.getIncludes()),ge(xe,Te,ye,$e),de(fe,Se,Te,xe,we,ke,ye),he(Se,Te),me(xe,Te,ye,$e)}function de(fe,ye,$e,we,Se,Te,xe){ae.append("g").selectAll("rect").data(fe).enter().append("rect").attr("x",0).attr("y",function(Me,Fe){return Fe=Me.order,Fe*ye+$e-2}).attr("width",function(){return xe-G.rightPadding/2}).attr("height",ye).attr("class",function(Me){for(const[Fe,Be]of se.entries())if(Me.type===Be)return"section section"+Fe%G.numberSectionStyles;return"section section0"});const ke=ae.append("g").selectAll("rect").data(fe).enter(),Ie=W.db.getLinks();if(ke.append("rect").attr("id",function(Me){return Me.id}).attr("rx",3).attr("ry",3).attr("x",function(Me){return Me.milestone?oe(Me.startTime)+we+.5*(oe(Me.endTime)-oe(Me.startTime))-.5*Se:oe(Me.startTime)+we}).attr("y",function(Me,Fe){return Fe=Me.order,Fe*ye+$e}).attr("width",function(Me){return Me.milestone?Se:oe(Me.renderEndTime||Me.endTime)-oe(Me.startTime)}).attr("height",Se).attr("transform-origin",function(Me,Fe){return Fe=Me.order,(oe(Me.startTime)+we+.5*(oe(Me.endTime)-oe(Me.startTime))).toString()+"px "+(Fe*ye+$e+.5*Se).toString()+"px"}).attr("class",function(Me){const Fe="task";let Be="";Me.classes.length>0&&(Be=Me.classes.join(" "));let Ne=0;for(const[Le,De]of se.entries())Me.type===De&&(Ne=Le%G.numberSectionStyles);let Ve="";return Me.active?Me.crit?Ve+=" activeCrit":Ve=" active":Me.done?Me.crit?Ve=" doneCrit":Ve=" done":Me.crit&&(Ve+=" crit"),Ve.length===0&&(Ve=" task"),Me.milestone&&(Ve=" milestone "+Ve),Ve+=Ne,Ve+=" "+Be,Fe+Ve}),ke.append("text").attr("id",function(Me){return Me.id+"-text"}).text(function(Me){return Me.task}).attr("font-size",G.fontSize).attr("x",function(Me){let Fe=oe(Me.startTime),Be=oe(Me.renderEndTime||Me.endTime);Me.milestone&&(Fe+=.5*(oe(Me.endTime)-oe(Me.startTime))-.5*Se),Me.milestone&&(Be=Fe+Se);const Ne=this.getBBox().width;return Ne>Be-Fe?Be+Ne+1.5*G.leftPadding>xe?Fe+we-5:Be+we+5:(Be-Fe)/2+Fe+we}).attr("y",function(Me,Fe){return Fe=Me.order,Fe*ye+G.barHeight/2+(G.fontSize/2-2)+$e}).attr("text-height",Se).attr("class",function(Me){const Fe=oe(Me.startTime);let Be=oe(Me.endTime);Me.milestone&&(Be=Fe+Se);const Ne=this.getBBox().width;let Ve="";Me.classes.length>0&&(Ve=Me.classes.join(" "));let Le=0;for(const[Je,ze]of se.entries())Me.type===ze&&(Le=Je%G.numberSectionStyles);let De="";return Me.active&&(Me.crit?De="activeCritText"+Le:De="activeText"+Le),Me.done?Me.crit?De=De+" doneCritText"+Le:De=De+" doneText"+Le:Me.crit&&(De=De+" critText"+Le),Me.milestone&&(De+=" milestoneText"),Ne>Be-Fe?Be+Ne+1.5*G.leftPadding>xe?Ve+" taskTextOutsideLeft taskTextOutside"+Le+" "+De:Ve+" taskTextOutsideRight taskTextOutside"+Le+" "+De+" width-"+Ne:Ve+" taskText taskText"+Le+" "+De+" width-"+Ne}),getConfig$1().securityLevel==="sandbox"){let Me;Me=select("#i"+H);const Fe=Me.nodes()[0].contentDocument;ke.filter(function(Be){return Ie[Be.id]!==void 0}).each(function(Be){var Ne=Fe.querySelector("#"+Be.id),Ve=Fe.querySelector("#"+Be.id+"-text");const Le=Ne.parentNode;var De=Fe.createElement("a");De.setAttribute("xlink:href",Ie[Be.id]),De.setAttribute("target","_top"),Le.appendChild(De),De.appendChild(Ne),De.appendChild(Ve)})}}function ve(fe,ye,$e,we,Se,Te,xe,ke){const Ie=Te.reduce((Le,{startTime:De})=>Le?Math.min(Le,De):De,0),Ae=Te.reduce((Le,{endTime:De})=>Le?Math.max(Le,De):De,0),Me=W.db.getDateFormat();if(!Ie||!Ae)return;const Fe=[];let Be=null,Ne=hooks(Ie);for(;Ne.valueOf()<=Ae;)W.db.isInvalidDate(Ne,Me,xe,ke)?Be?Be.end=Ne.clone():Be={start:Ne.clone(),end:Ne.clone()}:Be&&(Fe.push(Be),Be=null),Ne.add(1,"d");ae.append("g").selectAll("rect").data(Fe).enter().append("rect").attr("id",function(Le){return"exclude-"+Le.start.format("YYYY-MM-DD")}).attr("x",function(Le){return oe(Le.start)+$e}).attr("y",G.gridLineStartPadding).attr("width",function(Le){const De=Le.end.clone().add(1,"day");return oe(De)-oe(Le.start)}).attr("height",Se-ye-G.gridLineStartPadding).attr("transform-origin",function(Le,De){return(oe(Le.start)+$e+.5*(oe(Le.end)-oe(Le.start))).toString()+"px "+(De*fe+.5*Se).toString()+"px"}).attr("class","exclude-range")}function ge(fe,ye,$e,we){let Se=axisBottom(oe).tickSize(-we+ye+G.gridLineStartPadding).tickFormat(timeFormat(W.db.getAxisFormat()||G.axisFormat||"%Y-%m-%d"));const xe=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(W.db.getTickInterval()||G.tickInterval);if(xe!==null){const ke=xe[1];switch(xe[2]){case"minute":Se.ticks(timeMinute.every(ke));break;case"hour":Se.ticks(timeHour.every(ke));break;case"day":Se.ticks(timeDay.every(ke));break;case"week":Se.ticks(timeSunday.every(ke));break;case"month":Se.ticks(timeMonth.every(ke));break}}if(ae.append("g").attr("class","grid").attr("transform","translate("+fe+", "+(we-50)+")").call(Se).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),W.db.topAxisEnabled()||G.topAxis){let ke=axisTop(oe).tickSize(-we+ye+G.gridLineStartPadding).tickFormat(timeFormat(W.db.getAxisFormat()||G.axisFormat||"%Y-%m-%d"));if(xe!==null){const Ie=xe[1];switch(xe[2]){case"minute":ke.ticks(timeMinute.every(Ie));break;case"hour":ke.ticks(timeHour.every(Ie));break;case"day":ke.ticks(timeDay.every(Ie));break;case"week":ke.ticks(timeSunday.every(Ie));break;case"month":ke.ticks(timeMonth.every(Ie));break}}ae.append("g").attr("class","grid").attr("transform","translate("+fe+", "+ye+")").call(ke).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function he(fe,ye){const $e=[];let we=0;for(const[Se,Te]of se.entries())$e[Se]=[Te,pe(Te,le)];ae.append("g").selectAll("text").data($e).enter().append(function(Se){const Te=Se[0].split(common$1.lineBreakRegex),xe=-(Te.length-1)/2,ke=ee.createElementNS("http://www.w3.org/2000/svg","text");ke.setAttribute("dy",xe+"em");for(const[Ie,Ae]of Te.entries()){const Me=ee.createElementNS("http://www.w3.org/2000/svg","tspan");Me.setAttribute("alignment-baseline","central"),Me.setAttribute("x","10"),Ie>0&&Me.setAttribute("dy","1em"),Me.textContent=Ae,ke.appendChild(Me)}return ke}).attr("x",10).attr("y",function(Se,Te){if(Te>0)for(let xe=0;xe<Te;xe++)return we+=$e[Te-1][1],Se[1]*fe/2+we*fe+ye;else return Se[1]*fe/2+ye}).attr("font-size",G.sectionFontSize).attr("font-size",G.sectionFontSize).attr("class",function(Se){for(const[Te,xe]of se.entries())if(Se[0]===xe)return"sectionTitle sectionTitle"+Te%G.numberSectionStyles;return"sectionTitle"})}function me(fe,ye,$e,we){const Se=W.db.getTodayMarker();if(Se==="off")return;const Te=ae.append("g").attr("class","today"),xe=new Date,ke=Te.append("line");ke.attr("x1",oe(xe)+fe).attr("x2",oe(xe)+fe).attr("y1",G.titleTopMargin).attr("y2",we-G.titleTopMargin).attr("class","today"),Se!==""&&ke.attr("style",Se.replace(/,/g,";"))}function _e(fe){const ye={},$e=[];for(let we=0,Se=fe.length;we<Se;++we)Object.prototype.hasOwnProperty.call(ye,fe[we])||(ye[fe[we]]=!0,$e.push(fe[we]));return $e}function be(fe){let ye=fe.length;const $e={};for(;ye;)$e[fe[--ye]]=($e[fe[ye]]||0)+1;return $e}function pe(fe,ye){return be(ye)[fe]||0}},ganttRenderer={setConf:setConf$5,draw:draw$8};var parser$5=function(){var C=function(X,Z,Q,ee){for(Q=Q||{},ee=X.length;ee--;Q[X[ee]]=Z);return Q},H=[6,9,10],U={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(Z,Q,ee,ie,te,ne,ae){switch(ne.length-1,te){case 1:return ie;case 4:break;case 6:ie.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},C(H,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},C(H,[2,3]),C(H,[2,4]),C(H,[2,5]),C(H,[2,6])],defaultActions:{4:[2,1]},parseError:function(Z,Q){if(Q.recoverable)this.trace(Z);else{var ee=new Error(Z);throw ee.hash=Q,ee}},parse:function(Z){var Q=this,ee=[0],ie=[],te=[null],ne=[],ae=this.table,oe="",se=0,le=0,ce=2,ue=1,de=ne.slice.call(arguments,1),ve=Object.create(this.lexer),ge={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(ge.yy[he]=this.yy[he]);ve.setInput(Z,ge.yy),ge.yy.lexer=ve,ge.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var me=ve.yylloc;ne.push(me);var _e=ve.options&&ve.options.ranges;typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(){var Ae;return Ae=ie.pop()||ve.lex()||ue,typeof Ae!="number"&&(Ae instanceof Array&&(ie=Ae,Ae=ie.pop()),Ae=Q.symbols_[Ae]||Ae),Ae}for(var pe,fe,ye,$e,we={},Se,Te,xe,ke;;){if(fe=ee[ee.length-1],this.defaultActions[fe]?ye=this.defaultActions[fe]:((pe===null||typeof pe>"u")&&(pe=be()),ye=ae[fe]&&ae[fe][pe]),typeof ye>"u"||!ye.length||!ye[0]){var Ie="";ke=[];for(Se in ae[fe])this.terminals_[Se]&&Se>ce&&ke.push("'"+this.terminals_[Se]+"'");ve.showPosition?Ie="Parse error on line "+(se+1)+`:
|
||
`+ve.showPosition()+`
|
||
Expecting `+ke.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Ie="Parse error on line "+(se+1)+": Unexpected "+(pe==ue?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Ie,{text:ve.match,token:this.terminals_[pe]||pe,line:ve.yylineno,loc:me,expected:ke})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+pe);switch(ye[0]){case 1:ee.push(pe),te.push(ve.yytext),ne.push(ve.yylloc),ee.push(ye[1]),pe=null,le=ve.yyleng,oe=ve.yytext,se=ve.yylineno,me=ve.yylloc;break;case 2:if(Te=this.productions_[ye[1]][1],we.$=te[te.length-Te],we._$={first_line:ne[ne.length-(Te||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Te||1)].first_column,last_column:ne[ne.length-1].last_column},_e&&(we._$.range=[ne[ne.length-(Te||1)].range[0],ne[ne.length-1].range[1]]),$e=this.performAction.apply(we,[oe,le,se,ge.yy,ye[1],te,ne].concat(de)),typeof $e<"u")return $e;Te&&(ee=ee.slice(0,-1*Te*2),te=te.slice(0,-1*Te),ne=ne.slice(0,-1*Te)),ee.push(this.productions_[ye[1]][0]),te.push(we.$),ne.push(we._$),xe=ae[ee[ee.length-2]][ee[ee.length-1]],ee.push(xe);break;case 3:return!0}}return!0}},W=function(){var X={EOF:1,parseError:function(Q,ee){if(this.yy.parser)this.yy.parser.parseError(Q,ee);else throw new Error(Q)},setInput:function(Z,Q){return this.yy=Q||this.yy||{},this._input=Z,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Z=this._input[0];this.yytext+=Z,this.yyleng++,this.offset++,this.match+=Z,this.matched+=Z;var Q=Z.match(/(?:\r\n?|\n).*/g);return Q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Z},unput:function(Z){var Q=Z.length,ee=Z.split(/(?:\r\n?|\n)/g);this._input=Z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ee.length-1&&(this.yylineno-=ee.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ee?(ee.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-ee.length].length-ee[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-Q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Z){this.unput(this.match.slice(Z))},pastInput:function(){var Z=this.matched.substr(0,this.matched.length-this.match.length);return(Z.length>20?"...":"")+Z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Z=this.match;return Z.length<20&&(Z+=this._input.substr(0,20-Z.length)),(Z.substr(0,20)+(Z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Z=this.pastInput(),Q=new Array(Z.length+1).join("-");return Z+this.upcomingInput()+`
|
||
`+Q+"^"},test_match:function(Z,Q){var ee,ie,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),ie=Z[0].match(/(?:\r\n?|\n).*/g),ie&&(this.yylineno+=ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Z[0].length},this.yytext+=Z[0],this.match+=Z[0],this.matches=Z,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Z[0].length),this.matched+=Z[0],ee=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ee)return ee;if(this._backtrack){for(var ne in te)this[ne]=te[ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Z,Q,ee,ie;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ne=0;ne<te.length;ne++)if(ee=this._input.match(this.rules[te[ne]]),ee&&(!Q||ee[0].length>Q[0].length)){if(Q=ee,ie=ne,this.options.backtrack_lexer){if(Z=this.test_match(ee,te[ne]),Z!==!1)return Z;if(this._backtrack){Q=!1;continue}else return!1}else if(!this.options.flex)break}return Q?(Z=this.test_match(Q,te[ie]),Z!==!1?Z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Q=this.next();return Q||this.lex()},begin:function(Q){this.conditionStack.push(Q)},popState:function(){var Q=this.conditionStack.length-1;return Q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Q){return Q=this.conditionStack.length-1-Math.abs(Q||0),Q>=0?this.conditionStack[Q]:"INITIAL"},pushState:function(Q){this.begin(Q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Q,ee,ie,te){switch(ie){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return X}();U.lexer=W;function G(){this.yy={}}return G.prototype=U,U.Parser=G,new G}();parser$5.parser=parser$5;const infoParser=parser$5;var message="",info=!1;const setMessage=C=>{log$1.debug("Setting message to: "+C),message=C},getMessage=()=>message,setInfo=C=>{info=C},getInfo=()=>info,infoDb={setMessage,getMessage,setInfo,getInfo,clear:clear$g},draw$7=(C,H,U)=>{try{log$1.debug(`Rendering info diagram
|
||
`+C);const W=getConfig$1().securityLevel;let G;W==="sandbox"&&(G=select("#i"+H));const Z=select(W==="sandbox"?G.nodes()[0].contentDocument.body:"body").select("#"+H);Z.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+U),Z.attr("height",100),Z.attr("width",400)}catch(W){log$1.error("Error while rendering info diagram"),log$1.error(W.message)}},infoRenderer={draw:draw$7},infoDetector=C=>C.match(/^\s*info/)!==null;var parser$4=function(){var C=function(me,_e,be,pe){for(be=be||{},pe=me.length;pe--;be[me[pe]]=_e);return be},H=[1,4],U=[1,5],W=[1,6],G=[1,7],X=[1,9],Z=[1,11,13,15,17,19,20,26,27,28,29],Q=[2,5],ee=[1,6,11,13,15,17,19,20,26,27,28,29],ie=[26,27,28],te=[2,8],ne=[1,18],ae=[1,19],oe=[1,20],se=[1,21],le=[1,22],ce=[1,23],ue=[1,28],de=[6,26,27,28,29],ve={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(_e,be,pe,fe,ye,$e,we){var Se=$e.length-1;switch(ye){case 4:fe.setShowData(!0);break;case 7:this.$=$e[Se-1];break;case 9:fe.addSection($e[Se-1],fe.cleanupValue($e[Se]));break;case 10:this.$=$e[Se].trim(),fe.setDiagramTitle(this.$);break;case 11:this.$=$e[Se].trim(),fe.setAccTitle(this.$);break;case 12:case 13:this.$=$e[Se].trim(),fe.setAccDescription(this.$);break;case 14:fe.addSection($e[Se].substr(8)),this.$=$e[Se].substr(8);break;case 21:fe.parseDirective("%%{","open_directive");break;case 22:fe.parseDirective($e[Se],"type_directive");break;case 23:$e[Se]=$e[Se].trim().replace(/'/g,'"'),fe.parseDirective($e[Se],"arg_directive");break;case 24:fe.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:H,21:8,26:U,27:W,28:G,29:X},{1:[3]},{3:10,4:2,5:3,6:H,21:8,26:U,27:W,28:G,29:X},{3:11,4:2,5:3,6:H,21:8,26:U,27:W,28:G,29:X},C(Z,Q,{7:12,8:[1,13]}),C(ee,[2,18]),C(ee,[2,19]),C(ee,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},C(ie,te,{21:8,9:16,10:17,5:24,1:[2,3],11:ne,13:ae,15:oe,17:se,19:le,20:ce,29:X}),C(Z,Q,{7:25}),{23:26,24:[1,27],32:ue},C([24,32],[2,22]),C(Z,[2,6]),{4:29,26:U,27:W,28:G},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},C(ie,[2,13]),C(ie,[2,14]),C(ie,[2,15]),C(ie,te,{21:8,9:16,10:17,5:24,1:[2,4],11:ne,13:ae,15:oe,17:se,19:le,20:ce,29:X}),C(de,[2,16]),{25:34,31:[1,35]},C(de,[2,24]),C(Z,[2,7]),C(ie,[2,9]),C(ie,[2,10]),C(ie,[2,11]),C(ie,[2,12]),{23:36,32:ue},{32:[2,23]},C(de,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(_e,be){if(be.recoverable)this.trace(_e);else{var pe=new Error(_e);throw pe.hash=be,pe}},parse:function(_e){var be=this,pe=[0],fe=[],ye=[null],$e=[],we=this.table,Se="",Te=0,xe=0,ke=2,Ie=1,Ae=$e.slice.call(arguments,1),Me=Object.create(this.lexer),Fe={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Fe.yy[Be]=this.yy[Be]);Me.setInput(_e,Fe.yy),Fe.yy.lexer=Me,Fe.yy.parser=this,typeof Me.yylloc>"u"&&(Me.yylloc={});var Ne=Me.yylloc;$e.push(Ne);var Ve=Me.options&&Me.options.ranges;typeof Fe.yy.parseError=="function"?this.parseError=Fe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var Ze;return Ze=fe.pop()||Me.lex()||Ie,typeof Ze!="number"&&(Ze instanceof Array&&(fe=Ze,Ze=fe.pop()),Ze=be.symbols_[Ze]||Ze),Ze}for(var De,Je,ze,Ge,qe={},Ke,Ee,Ce,Pe;;){if(Je=pe[pe.length-1],this.defaultActions[Je]?ze=this.defaultActions[Je]:((De===null||typeof De>"u")&&(De=Le()),ze=we[Je]&&we[Je][De]),typeof ze>"u"||!ze.length||!ze[0]){var Re="";Pe=[];for(Ke in we[Je])this.terminals_[Ke]&&Ke>ke&&Pe.push("'"+this.terminals_[Ke]+"'");Me.showPosition?Re="Parse error on line "+(Te+1)+`:
|
||
`+Me.showPosition()+`
|
||
Expecting `+Pe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":Re="Parse error on line "+(Te+1)+": Unexpected "+(De==Ie?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Re,{text:Me.match,token:this.terminals_[De]||De,line:Me.yylineno,loc:Ne,expected:Pe})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Je+", token: "+De);switch(ze[0]){case 1:pe.push(De),ye.push(Me.yytext),$e.push(Me.yylloc),pe.push(ze[1]),De=null,xe=Me.yyleng,Se=Me.yytext,Te=Me.yylineno,Ne=Me.yylloc;break;case 2:if(Ee=this.productions_[ze[1]][1],qe.$=ye[ye.length-Ee],qe._$={first_line:$e[$e.length-(Ee||1)].first_line,last_line:$e[$e.length-1].last_line,first_column:$e[$e.length-(Ee||1)].first_column,last_column:$e[$e.length-1].last_column},Ve&&(qe._$.range=[$e[$e.length-(Ee||1)].range[0],$e[$e.length-1].range[1]]),Ge=this.performAction.apply(qe,[Se,xe,Te,Fe.yy,ze[1],ye,$e].concat(Ae)),typeof Ge<"u")return Ge;Ee&&(pe=pe.slice(0,-1*Ee*2),ye=ye.slice(0,-1*Ee),$e=$e.slice(0,-1*Ee)),pe.push(this.productions_[ze[1]][0]),ye.push(qe.$),$e.push(qe._$),Ce=we[pe[pe.length-2]][pe[pe.length-1]],pe.push(Ce);break;case 3:return!0}}return!0}},ge=function(){var me={EOF:1,parseError:function(be,pe){if(this.yy.parser)this.yy.parser.parseError(be,pe);else throw new Error(be)},setInput:function(_e,be){return this.yy=be||this.yy||{},this._input=_e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _e=this._input[0];this.yytext+=_e,this.yyleng++,this.offset++,this.match+=_e,this.matched+=_e;var be=_e.match(/(?:\r\n?|\n).*/g);return be?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_e},unput:function(_e){var be=_e.length,pe=_e.split(/(?:\r\n?|\n)/g);this._input=_e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-be),this.offset-=be;var fe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),pe.length-1&&(this.yylineno-=pe.length-1);var ye=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:pe?(pe.length===fe.length?this.yylloc.first_column:0)+fe[fe.length-pe.length].length-pe[0].length:this.yylloc.first_column-be},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-be]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_e){this.unput(this.match.slice(_e))},pastInput:function(){var _e=this.matched.substr(0,this.matched.length-this.match.length);return(_e.length>20?"...":"")+_e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _e=this.match;return _e.length<20&&(_e+=this._input.substr(0,20-_e.length)),(_e.substr(0,20)+(_e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _e=this.pastInput(),be=new Array(_e.length+1).join("-");return _e+this.upcomingInput()+`
|
||
`+be+"^"},test_match:function(_e,be){var pe,fe,ye;if(this.options.backtrack_lexer&&(ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ye.yylloc.range=this.yylloc.range.slice(0))),fe=_e[0].match(/(?:\r\n?|\n).*/g),fe&&(this.yylineno+=fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:fe?fe[fe.length-1].length-fe[fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_e[0].length},this.yytext+=_e[0],this.match+=_e[0],this.matches=_e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_e[0].length),this.matched+=_e[0],pe=this.performAction.call(this,this.yy,this,be,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),pe)return pe;if(this._backtrack){for(var $e in ye)this[$e]=ye[$e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _e,be,pe,fe;this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),$e=0;$e<ye.length;$e++)if(pe=this._input.match(this.rules[ye[$e]]),pe&&(!be||pe[0].length>be[0].length)){if(be=pe,fe=$e,this.options.backtrack_lexer){if(_e=this.test_match(pe,ye[$e]),_e!==!1)return _e;if(this._backtrack){be=!1;continue}else return!1}else if(!this.options.flex)break}return be?(_e=this.test_match(be,ye[fe]),_e!==!1?_e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var be=this.next();return be||this.lex()},begin:function(be){this.conditionStack.push(be)},popState:function(){var be=this.conditionStack.length-1;return be>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(be){return be=this.conditionStack.length-1-Math.abs(be||0),be>=0?this.conditionStack[be]:"INITIAL"},pushState:function(be){this.begin(be)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(be,pe,fe,ye){switch(fe){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return me}();ve.lexer=ge;function he(){this.yy={}}return he.prototype=ve,ve.Parser=he,new he}();parser$4.parser=parser$4;const pieParser=parser$4,pieDetector=C=>C.match(/^\s*pie/)!==null||C.match(/^\s*bar/)!==null;let sections$1={},showData=!1;const parseDirective$4=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},addSection$1=function(C,H){C=common$1.sanitizeText(C,getConfig$1()),sections$1[C]===void 0&&(sections$1[C]=H,log$1.debug("Added new section :",C))},getSections$1=()=>sections$1,setShowData=function(C){showData=C},getShowData=function(){return showData},cleanupValue=function(C){return C.substring(0,1)===":"&&(C=C.substring(1).trim()),Number(C.trim())},clear$4=function(){sections$1={},showData=!1,clear$g()},pieDb={parseDirective:parseDirective$4,getConfig:()=>getConfig$1().pie,addSection:addSection$1,getSections:getSections$1,cleanupValue,clear:clear$4,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,setShowData,getShowData,getAccDescription,setAccDescription};let conf$5=getConfig$1(),width;const height=450,draw$6=(C,H,U,W)=>{try{conf$5=getConfig$1(),log$1.debug(`Rendering info diagram
|
||
`+C);const de=getConfig$1().securityLevel;let ve;de==="sandbox"&&(ve=select("#i"+H));const ge=select(de==="sandbox"?ve.nodes()[0].contentDocument.body:"body"),he=de==="sandbox"?ve.nodes()[0].contentDocument:document;W.db.clear(),W.parser.parse(C),log$1.debug("Parsed info diagram");const me=he.getElementById(H);width=me.parentElement.offsetWidth,width===void 0&&(width=1200),conf$5.useWidth!==void 0&&(width=conf$5.useWidth),conf$5.pie.useWidth!==void 0&&(width=conf$5.pie.useWidth);const _e=ge.select("#"+H);configureSvgSize(_e,height,width,conf$5.pie.useMaxWidth),me.setAttribute("viewBox","0 0 "+width+" "+height);var G=40,X=18,Z=4,Q=Math.min(width,height)/2-G,ee=_e.append("g").attr("transform","translate("+width/2+","+height/2+")"),ie=W.db.getSections(),te=0;Object.keys(ie).forEach(function(pe){te+=ie[pe]});const be=conf$5.themeVariables;var ne=[be.pie1,be.pie2,be.pie3,be.pie4,be.pie5,be.pie6,be.pie7,be.pie8,be.pie9,be.pie10,be.pie11,be.pie12],ae=ordinal().range(ne),oe=Object.entries(ie).map(function(pe,fe){return{order:fe,name:pe[0],value:pe[1]}}),se=pie().value(function(pe){return pe.value}).sort(function(pe,fe){return pe.order-fe.order}),le=se(oe),ce=arc().innerRadius(0).outerRadius(Q);ee.selectAll("mySlices").data(le).enter().append("path").attr("d",ce).attr("fill",function(pe){return ae(pe.data.name)}).attr("class","pieCircle"),ee.selectAll("mySlices").data(le).enter().append("text").text(function(pe){return(pe.data.value/te*100).toFixed(0)+"%"}).attr("transform",function(pe){return"translate("+ce.centroid(pe)+")"}).style("text-anchor","middle").attr("class","slice"),ee.append("text").text(W.db.getDiagramTitle()).attr("x",0).attr("y",-(height-50)/2).attr("class","pieTitleText");var ue=ee.selectAll(".legend").data(ae.domain()).enter().append("g").attr("class","legend").attr("transform",function(pe,fe){const ye=X+Z,$e=ye*ae.domain().length/2,we=12*X,Se=fe*ye-$e;return"translate("+we+","+Se+")"});ue.append("rect").attr("width",X).attr("height",X).style("fill",ae).style("stroke",ae),ue.data(le).append("text").attr("x",X+Z).attr("y",X-Z).text(function(pe){return W.db.getShowData()||conf$5.showData||conf$5.pie.showData?pe.data.name+" ["+pe.data.value+"]":pe.data.name})}catch(de){log$1.error("Error while rendering info diagram"),log$1.error(de)}},pieRenderer={draw:draw$6};var parser$3=function(){var C=function(Je,ze,Ge,qe){for(Ge=Ge||{},qe=Je.length;qe--;Ge[Je[qe]]=ze);return Ge},H=[1,3],U=[1,5],W=[1,6],G=[1,7],X=[1,8],Z=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Q=[1,22],ee=[2,13],ie=[1,26],te=[1,27],ne=[1,28],ae=[1,29],oe=[1,30],se=[1,31],le=[1,24],ce=[1,32],ue=[1,33],de=[1,36],ve=[71,72],ge=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],he=[1,56],me=[1,57],_e=[1,58],be=[1,59],pe=[1,60],fe=[1,61],ye=[1,62],$e=[62,63],we=[1,74],Se=[1,70],Te=[1,71],xe=[1,72],ke=[1,73],Ie=[1,75],Ae=[1,79],Me=[1,80],Fe=[1,77],Be=[1,78],Ne=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Ve={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(ze,Ge,qe,Ke,Ee,Ce,Pe){var Re=Ce.length-1;switch(Ee){case 6:this.$=Ce[Re].trim(),Ke.setAccTitle(this.$);break;case 7:case 8:this.$=Ce[Re].trim(),Ke.setAccDescription(this.$);break;case 9:Ke.parseDirective("%%{","open_directive");break;case 10:Ke.parseDirective(Ce[Re],"type_directive");break;case 11:Ce[Re]=Ce[Re].trim().replace(/'/g,'"'),Ke.parseDirective(Ce[Re],"arg_directive");break;case 12:Ke.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Ke.addRequirement(Ce[Re-3],Ce[Re-4]);break;case 20:Ke.setNewReqId(Ce[Re-2]);break;case 21:Ke.setNewReqText(Ce[Re-2]);break;case 22:Ke.setNewReqRisk(Ce[Re-2]);break;case 23:Ke.setNewReqVerifyMethod(Ce[Re-2]);break;case 26:this.$=Ke.RequirementType.REQUIREMENT;break;case 27:this.$=Ke.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Ke.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Ke.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Ke.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Ke.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Ke.RiskLevel.LOW_RISK;break;case 33:this.$=Ke.RiskLevel.MED_RISK;break;case 34:this.$=Ke.RiskLevel.HIGH_RISK;break;case 35:this.$=Ke.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Ke.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Ke.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Ke.VerifyType.VERIFY_TEST;break;case 39:Ke.addElement(Ce[Re-3]);break;case 40:Ke.setNewElementType(Ce[Re-2]);break;case 41:Ke.setNewElementDocRef(Ce[Re-2]);break;case 44:Ke.addRelationship(Ce[Re-2],Ce[Re],Ce[Re-4]);break;case 45:Ke.addRelationship(Ce[Re-2],Ce[Re-4],Ce[Re]);break;case 46:this.$=Ke.Relationships.CONTAINS;break;case 47:this.$=Ke.Relationships.COPIES;break;case 48:this.$=Ke.Relationships.DERIVES;break;case 49:this.$=Ke.Relationships.SATISFIES;break;case 50:this.$=Ke.Relationships.VERIFIES;break;case 51:this.$=Ke.Relationships.REFINES;break;case 52:this.$=Ke.Relationships.TRACES;break}},table:[{3:1,4:2,6:H,9:4,14:U,16:W,18:G,19:X},{1:[3]},{3:10,4:2,5:[1,9],6:H,9:4,14:U,16:W,18:G,19:X},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},C(Z,[2,8]),{20:[2,9]},{3:16,4:2,6:H,9:4,14:U,16:W,18:G,19:X},{1:[2,2]},{4:21,5:Q,7:17,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{11:34,12:[1,35],22:de},C([12,22],[2,10]),C(Z,[2,6]),C(Z,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:Q,7:38,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{4:21,5:Q,7:39,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{4:21,5:Q,7:40,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{4:21,5:Q,7:41,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{4:21,5:Q,7:42,8:ee,9:4,14:U,16:W,18:G,19:X,23:18,24:19,25:20,26:23,32:25,40:ie,41:te,42:ne,43:ae,44:oe,45:se,53:le,71:ce,72:ue},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},C(ve,[2,26]),C(ve,[2,27]),C(ve,[2,28]),C(ve,[2,29]),C(ve,[2,30]),C(ve,[2,31]),C(ge,[2,55]),C(ge,[2,56]),C(Z,[2,4]),{13:51,21:[1,52]},C(Z,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:he,65:me,66:_e,67:be,68:pe,69:fe,70:ye},{61:63,64:he,65:me,66:_e,67:be,68:pe,69:fe,70:ye},{11:64,22:de},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},C($e,[2,46]),C($e,[2,47]),C($e,[2,48]),C($e,[2,49]),C($e,[2,50]),C($e,[2,51]),C($e,[2,52]),{63:[1,68]},C(Z,[2,5]),{5:we,29:69,30:Se,33:Te,35:xe,37:ke,39:Ie},{5:Ae,39:Me,55:76,56:Fe,58:Be},{32:81,71:ce,72:ue},{32:82,71:ce,72:ue},C(Ne,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:we,29:87,30:Se,33:Te,35:xe,37:ke,39:Ie},C(Ne,[2,25]),C(Ne,[2,39]),{31:[1,88]},{31:[1,89]},{5:Ae,39:Me,55:90,56:Fe,58:Be},C(Ne,[2,43]),C(Ne,[2,44]),C(Ne,[2,45]),{32:91,71:ce,72:ue},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},C(Ne,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},C(Ne,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:we,29:116,30:Se,33:Te,35:xe,37:ke,39:Ie},{5:we,29:117,30:Se,33:Te,35:xe,37:ke,39:Ie},{5:we,29:118,30:Se,33:Te,35:xe,37:ke,39:Ie},{5:we,29:119,30:Se,33:Te,35:xe,37:ke,39:Ie},{5:Ae,39:Me,55:120,56:Fe,58:Be},{5:Ae,39:Me,55:121,56:Fe,58:Be},C(Ne,[2,20]),C(Ne,[2,21]),C(Ne,[2,22]),C(Ne,[2,23]),C(Ne,[2,40]),C(Ne,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(ze,Ge){if(Ge.recoverable)this.trace(ze);else{var qe=new Error(ze);throw qe.hash=Ge,qe}},parse:function(ze){var Ge=this,qe=[0],Ke=[],Ee=[null],Ce=[],Pe=this.table,Re="",Ze=0,Oe=0,Qe=2,Xe=1,et=Ce.slice.call(arguments,1),We=Object.create(this.lexer),He={yy:{}};for(var Ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ye)&&(He.yy[Ye]=this.yy[Ye]);We.setInput(ze,He.yy),He.yy.lexer=We,He.yy.parser=this,typeof We.yylloc>"u"&&(We.yylloc={});var nt=We.yylloc;Ce.push(nt);var tt=We.options&&We.options.ranges;typeof He.yy.parseError=="function"?this.parseError=He.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function at(){var vt;return vt=Ke.pop()||We.lex()||Xe,typeof vt!="number"&&(vt instanceof Array&&(Ke=vt,vt=Ke.pop()),vt=Ge.symbols_[vt]||vt),vt}for(var St,st,it,pt,wt={},xt,mt,gt,lt;;){if(st=qe[qe.length-1],this.defaultActions[st]?it=this.defaultActions[st]:((St===null||typeof St>"u")&&(St=at()),it=Pe[st]&&Pe[st][St]),typeof it>"u"||!it.length||!it[0]){var ct="";lt=[];for(xt in Pe[st])this.terminals_[xt]&&xt>Qe&<.push("'"+this.terminals_[xt]+"'");We.showPosition?ct="Parse error on line "+(Ze+1)+`:
|
||
`+We.showPosition()+`
|
||
Expecting `+lt.join(", ")+", got '"+(this.terminals_[St]||St)+"'":ct="Parse error on line "+(Ze+1)+": Unexpected "+(St==Xe?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(ct,{text:We.match,token:this.terminals_[St]||St,line:We.yylineno,loc:nt,expected:lt})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+st+", token: "+St);switch(it[0]){case 1:qe.push(St),Ee.push(We.yytext),Ce.push(We.yylloc),qe.push(it[1]),St=null,Oe=We.yyleng,Re=We.yytext,Ze=We.yylineno,nt=We.yylloc;break;case 2:if(mt=this.productions_[it[1]][1],wt.$=Ee[Ee.length-mt],wt._$={first_line:Ce[Ce.length-(mt||1)].first_line,last_line:Ce[Ce.length-1].last_line,first_column:Ce[Ce.length-(mt||1)].first_column,last_column:Ce[Ce.length-1].last_column},tt&&(wt._$.range=[Ce[Ce.length-(mt||1)].range[0],Ce[Ce.length-1].range[1]]),pt=this.performAction.apply(wt,[Re,Oe,Ze,He.yy,it[1],Ee,Ce].concat(et)),typeof pt<"u")return pt;mt&&(qe=qe.slice(0,-1*mt*2),Ee=Ee.slice(0,-1*mt),Ce=Ce.slice(0,-1*mt)),qe.push(this.productions_[it[1]][0]),Ee.push(wt.$),Ce.push(wt._$),gt=Pe[qe[qe.length-2]][qe[qe.length-1]],qe.push(gt);break;case 3:return!0}}return!0}},Le=function(){var Je={EOF:1,parseError:function(Ge,qe){if(this.yy.parser)this.yy.parser.parseError(Ge,qe);else throw new Error(Ge)},setInput:function(ze,Ge){return this.yy=Ge||this.yy||{},this._input=ze,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ze=this._input[0];this.yytext+=ze,this.yyleng++,this.offset++,this.match+=ze,this.matched+=ze;var Ge=ze.match(/(?:\r\n?|\n).*/g);return Ge?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ze},unput:function(ze){var Ge=ze.length,qe=ze.split(/(?:\r\n?|\n)/g);this._input=ze+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ge),this.offset-=Ge;var Ke=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),qe.length-1&&(this.yylineno-=qe.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:qe?(qe.length===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-qe.length].length-qe[0].length:this.yylloc.first_column-Ge},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-Ge]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ze){this.unput(this.match.slice(ze))},pastInput:function(){var ze=this.matched.substr(0,this.matched.length-this.match.length);return(ze.length>20?"...":"")+ze.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ze=this.match;return ze.length<20&&(ze+=this._input.substr(0,20-ze.length)),(ze.substr(0,20)+(ze.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ze=this.pastInput(),Ge=new Array(ze.length+1).join("-");return ze+this.upcomingInput()+`
|
||
`+Ge+"^"},test_match:function(ze,Ge){var qe,Ke,Ee;if(this.options.backtrack_lexer&&(Ee={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ee.yylloc.range=this.yylloc.range.slice(0))),Ke=ze[0].match(/(?:\r\n?|\n).*/g),Ke&&(this.yylineno+=Ke.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ze[0].length},this.yytext+=ze[0],this.match+=ze[0],this.matches=ze,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ze[0].length),this.matched+=ze[0],qe=this.performAction.call(this,this.yy,this,Ge,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),qe)return qe;if(this._backtrack){for(var Ce in Ee)this[Ce]=Ee[Ce];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ze,Ge,qe,Ke;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Ce=0;Ce<Ee.length;Ce++)if(qe=this._input.match(this.rules[Ee[Ce]]),qe&&(!Ge||qe[0].length>Ge[0].length)){if(Ge=qe,Ke=Ce,this.options.backtrack_lexer){if(ze=this.test_match(qe,Ee[Ce]),ze!==!1)return ze;if(this._backtrack){Ge=!1;continue}else return!1}else if(!this.options.flex)break}return Ge?(ze=this.test_match(Ge,Ee[Ke]),ze!==!1?ze:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ge=this.next();return Ge||this.lex()},begin:function(Ge){this.conditionStack.push(Ge)},popState:function(){var Ge=this.conditionStack.length-1;return Ge>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ge){return Ge=this.conditionStack.length-1-Math.abs(Ge||0),Ge>=0?this.conditionStack[Ge]:"INITIAL"},pushState:function(Ge){this.begin(Ge)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ge,qe,Ke,Ee){switch(Ke){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return qe.yytext=qe.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return Je}();Ve.lexer=Le;function De(){this.yy={}}return De.prototype=Ve,Ve.Parser=De,new De}();parser$3.parser=parser$3;const requirementParser=parser$3,requirementDetector=C=>C.match(/^\s*requirement(Diagram)?/)!==null;let relations=[],latestRequirement={},requirements={},latestElement={},elements={};const RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective$3=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},addRequirement=(C,H)=>(requirements[C]===void 0&&(requirements[C]={name:C,type:H,id:latestRequirement.id,text:latestRequirement.text,risk:latestRequirement.risk,verifyMethod:latestRequirement.verifyMethod}),latestRequirement={},requirements[C]),getRequirements=()=>requirements,setNewReqId=C=>{latestRequirement!==void 0&&(latestRequirement.id=C)},setNewReqText=C=>{latestRequirement!==void 0&&(latestRequirement.text=C)},setNewReqRisk=C=>{latestRequirement!==void 0&&(latestRequirement.risk=C)},setNewReqVerifyMethod=C=>{latestRequirement!==void 0&&(latestRequirement.verifyMethod=C)},addElement=C=>(elements[C]===void 0&&(elements[C]={name:C,type:latestElement.type,docRef:latestElement.docRef},log$1.info("Added new requirement: ",C)),latestElement={},elements[C]),getElements=()=>elements,setNewElementType=C=>{latestElement!==void 0&&(latestElement.type=C)},setNewElementDocRef=C=>{latestElement!==void 0&&(latestElement.docRef=C)},addRelationship=(C,H,U)=>{relations.push({type:C,src:H,dst:U})},getRelationships=()=>relations,clear$3=()=>{relations=[],latestRequirement={},requirements={},latestElement={},elements={},clear$g()},requirementDb={RequirementType,RiskLevel,VerifyType,Relationships,parseDirective:parseDirective$3,getConfig:()=>getConfig$1().req,addRequirement,getRequirements,setNewReqId,setNewReqText,setNewReqRisk,setNewReqVerifyMethod,setAccTitle,getAccTitle,setAccDescription,getAccDescription,addElement,getElements,setNewElementType,setNewElementDocRef,addRelationship,getRelationships,clear:clear$3},ReqMarkers={CONTAINS:"contains",ARROW:"arrow"},insertLineEndings=(C,H)=>{let U=C.append("defs").append("marker").attr("id",ReqMarkers.CONTAINS+"_line_ending").attr("refX",0).attr("refY",H.line_height/2).attr("markerWidth",H.line_height).attr("markerHeight",H.line_height).attr("orient","auto").append("g");U.append("circle").attr("cx",H.line_height/2).attr("cy",H.line_height/2).attr("r",H.line_height/2).attr("fill","none"),U.append("line").attr("x1",0).attr("x2",H.line_height).attr("y1",H.line_height/2).attr("y2",H.line_height/2).attr("stroke-width",1),U.append("line").attr("y1",0).attr("y2",H.line_height).attr("x1",H.line_height/2).attr("x2",H.line_height/2).attr("stroke-width",1),C.append("defs").append("marker").attr("id",ReqMarkers.ARROW+"_line_ending").attr("refX",H.line_height).attr("refY",.5*H.line_height).attr("markerWidth",H.line_height).attr("markerHeight",H.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
||
L${H.line_height},${H.line_height/2}
|
||
M${H.line_height},${H.line_height/2}
|
||
L0,${H.line_height}`).attr("stroke-width",1)},markers={ReqMarkers,insertLineEndings};let conf$4={},relCnt=0;const newRectNode=(C,H)=>C.insert("rect","#"+H).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",conf$4.rect_min_width+"px").attr("height",conf$4.rect_min_height+"px"),newTitleNode=(C,H,U)=>{let W=conf$4.rect_min_width/2,G=C.append("text").attr("class","req reqLabel reqTitle").attr("id",H).attr("x",W).attr("y",conf$4.rect_padding).attr("dominant-baseline","hanging"),X=0;U.forEach(ie=>{X==0?G.append("tspan").attr("text-anchor","middle").attr("x",conf$4.rect_min_width/2).attr("dy",0).text(ie):G.append("tspan").attr("text-anchor","middle").attr("x",conf$4.rect_min_width/2).attr("dy",conf$4.line_height*.75).text(ie),X++});let Z=1.5*conf$4.rect_padding,Q=X*conf$4.line_height*.75,ee=Z+Q;return C.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",conf$4.rect_min_width).attr("y1",ee).attr("y2",ee),{titleNode:G,y:ee}},newBodyNode=(C,H,U,W)=>{let G=C.append("text").attr("class","req reqLabel").attr("id",H).attr("x",conf$4.rect_padding).attr("y",W).attr("dominant-baseline","hanging"),X=0;const Z=30;let Q=[];return U.forEach(ee=>{let ie=ee.length;for(;ie>Z&&X<3;){let te=ee.substring(0,Z);ee=ee.substring(Z,ee.length),ie=ee.length,Q[Q.length]=te,X++}if(X==3){let te=Q[Q.length-1];Q[Q.length-1]=te.substring(0,te.length-4)+"..."}else Q[Q.length]=ee;X=0}),Q.forEach(ee=>{G.append("tspan").attr("x",conf$4.rect_padding).attr("dy",conf$4.line_height).text(ee)}),G},addEdgeLabel=(C,H,U,W)=>{const G=H.node().getTotalLength(),X=H.node().getPointAtLength(G*.5),Z="rel"+relCnt;relCnt++;const ee=C.append("text").attr("class","req relationshipLabel").attr("id",Z).attr("x",X.x).attr("y",X.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W).node().getBBox();C.insert("rect","#"+Z).attr("class","req reqLabelBox").attr("x",X.x-ee.width/2).attr("y",X.y-ee.height/2).attr("width",ee.width).attr("height",ee.height).attr("fill","white").attr("fill-opacity","85%")},drawRelationshipFromLayout=function(C,H,U,W,G){const X=U.edge(elementString(H.src),elementString(H.dst)),Z=line$1().x(function(ee){return ee.x}).y(function(ee){return ee.y}),Q=C.insert("path","#"+W).attr("class","er relationshipLine").attr("d",Z(X.points)).attr("fill","none");H.type==G.db.Relationships.CONTAINS?Q.attr("marker-start","url("+common$1.getUrl(conf$4.arrowMarkerAbsolute)+"#"+H.type+"_line_ending)"):(Q.attr("stroke-dasharray","10,7"),Q.attr("marker-end","url("+common$1.getUrl(conf$4.arrowMarkerAbsolute)+"#"+markers.ReqMarkers.ARROW+"_line_ending)")),addEdgeLabel(C,Q,conf$4,`<<${H.type}>>`)},drawReqs=(C,H,U)=>{Object.keys(C).forEach(W=>{let G=C[W];W=elementString(W),log$1.info("Added new requirement: ",W);const X=U.append("g").attr("id",W),Z="req-"+W,Q=newRectNode(X,Z);let ee=newTitleNode(X,W+"_title",[`<<${G.type}>>`,`${G.name}`]);newBodyNode(X,W+"_body",[`Id: ${G.id}`,`Text: ${G.text}`,`Risk: ${G.risk}`,`Verification: ${G.verifyMethod}`],ee.y);const ie=Q.node().getBBox();H.setNode(W,{width:ie.width,height:ie.height,shape:"rect",id:W})})},drawElements=(C,H,U)=>{Object.keys(C).forEach(W=>{let G=C[W];const X=elementString(W),Z=U.append("g").attr("id",X),Q="element-"+X,ee=newRectNode(Z,Q);let ie=newTitleNode(Z,Q+"_title",["<<Element>>",`${W}`]);newBodyNode(Z,Q+"_body",[`Type: ${G.type||"Not Specified"}`,`Doc Ref: ${G.docRef||"None"}`],ie.y);const te=ee.node().getBBox();H.setNode(X,{width:te.width,height:te.height,shape:"rect",id:X})})},addRelationships=(C,H)=>(C.forEach(function(U){let W=elementString(U.src),G=elementString(U.dst);H.setEdge(W,G,{relationship:U})}),C),adjustEntities=function(C,H){H.nodes().forEach(function(U){U!==void 0&&H.node(U)!==void 0&&(C.select("#"+U),C.select("#"+U).attr("transform","translate("+(H.node(U).x-H.node(U).width/2)+","+(H.node(U).y-H.node(U).height/2)+" )"))})},elementString=C=>C.replace(/\s/g,"").replace(/\./g,"_"),draw$5=(C,H,U,W)=>{conf$4=getConfig$1().requirement,W.db.clear(),W.parser.parse(C);const G=conf$4.securityLevel;let X;G==="sandbox"&&(X=select("#i"+H));const Q=select(G==="sandbox"?X.nodes()[0].contentDocument.body:"body").select(`[id='${H}']`);markers.insertLineEndings(Q,conf$4);const ee=new Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:conf$4.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let ie=W.db.getRequirements(),te=W.db.getElements(),ne=W.db.getRelationships();drawReqs(ie,ee,Q),drawElements(te,ee,Q),addRelationships(ne,ee),layout(ee),adjustEntities(Q,ee),ne.forEach(function(ce){drawRelationshipFromLayout(Q,ce,ee,H,W)});const ae=conf$4.rect_padding,oe=Q.node().getBBox(),se=oe.width+ae*2,le=oe.height+ae*2;configureSvgSize(Q,le,se,conf$4.useMaxWidth),Q.attr("viewBox",`${oe.x-ae} ${oe.y-ae} ${se} ${le}`)},requirementRenderer={draw:draw$5};var parser$2=function(){var C=function(Ge,qe,Ke,Ee){for(Ke=Ke||{},Ee=Ge.length;Ee--;Ke[Ge[Ee]]=qe);return Ke},H=[1,2],U=[1,3],W=[1,5],G=[1,7],X=[2,5],Z=[1,15],Q=[1,17],ee=[1,19],ie=[1,21],te=[1,22],ne=[1,23],ae=[1,29],oe=[1,30],se=[1,31],le=[1,32],ce=[1,33],ue=[1,34],de=[1,35],ve=[1,36],ge=[1,37],he=[1,38],me=[1,39],_e=[1,40],be=[1,42],pe=[1,43],fe=[1,45],ye=[1,46],$e=[1,47],we=[1,48],Se=[1,49],Te=[1,50],xe=[1,53],ke=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],Ie=[4,5,21,54,56],Ae=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],Me=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],Fe=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],Be=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],Ne=[71,72,73],Ve=[1,125],Le=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],De={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(qe,Ke,Ee,Ce,Pe,Re,Ze){var Oe=Re.length-1;switch(Pe){case 4:return Ce.apply(Re[Oe]),Re[Oe];case 5:case 10:this.$=[];break;case 6:case 11:Re[Oe-1].push(Re[Oe]),this.$=Re[Oe-1];break;case 7:case 8:case 12:case 13:this.$=Re[Oe];break;case 9:case 14:this.$=[];break;case 18:Re[Oe-1].unshift({type:"boxStart",boxData:Ce.parseBoxData(Re[Oe-2])}),Re[Oe-1].push({type:"boxEnd",boxText:Re[Oe-2]}),this.$=Re[Oe-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(Re[Oe-2]),sequenceIndexStep:Number(Re[Oe-1]),sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(Re[Oe-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ce.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Re[Oe-1]};break;case 25:this.$={type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Re[Oe-1]};break;case 31:Ce.setDiagramTitle(Re[Oe].substring(6)),this.$=Re[Oe].substring(6);break;case 32:Ce.setDiagramTitle(Re[Oe].substring(7)),this.$=Re[Oe].substring(7);break;case 33:this.$=Re[Oe].trim(),Ce.setAccTitle(this.$);break;case 34:case 35:this.$=Re[Oe].trim(),Ce.setAccDescription(this.$);break;case 36:Re[Oe-1].unshift({type:"loopStart",loopText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.LOOP_START}),Re[Oe-1].push({type:"loopEnd",loopText:Re[Oe-2],signalType:Ce.LINETYPE.LOOP_END}),this.$=Re[Oe-1];break;case 37:Re[Oe-1].unshift({type:"rectStart",color:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.RECT_START}),Re[Oe-1].push({type:"rectEnd",color:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.RECT_END}),this.$=Re[Oe-1];break;case 38:Re[Oe-1].unshift({type:"optStart",optText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.OPT_START}),Re[Oe-1].push({type:"optEnd",optText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.OPT_END}),this.$=Re[Oe-1];break;case 39:Re[Oe-1].unshift({type:"altStart",altText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.ALT_START}),Re[Oe-1].push({type:"altEnd",signalType:Ce.LINETYPE.ALT_END}),this.$=Re[Oe-1];break;case 40:Re[Oe-1].unshift({type:"parStart",parText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.PAR_START}),Re[Oe-1].push({type:"parEnd",signalType:Ce.LINETYPE.PAR_END}),this.$=Re[Oe-1];break;case 41:Re[Oe-1].unshift({type:"criticalStart",criticalText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.CRITICAL_START}),Re[Oe-1].push({type:"criticalEnd",signalType:Ce.LINETYPE.CRITICAL_END}),this.$=Re[Oe-1];break;case 42:Re[Oe-1].unshift({type:"breakStart",breakText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.BREAK_START}),Re[Oe-1].push({type:"breakEnd",optText:Ce.parseMessage(Re[Oe-2]),signalType:Ce.LINETYPE.BREAK_END}),this.$=Re[Oe-1];break;case 45:this.$=Re[Oe-3].concat([{type:"option",optionText:Ce.parseMessage(Re[Oe-1]),signalType:Ce.LINETYPE.CRITICAL_OPTION},Re[Oe]]);break;case 47:this.$=Re[Oe-3].concat([{type:"and",parText:Ce.parseMessage(Re[Oe-1]),signalType:Ce.LINETYPE.PAR_AND},Re[Oe]]);break;case 49:this.$=Re[Oe-3].concat([{type:"else",altText:Ce.parseMessage(Re[Oe-1]),signalType:Ce.LINETYPE.ALT_ELSE},Re[Oe]]);break;case 50:Re[Oe-3].type="addParticipant",Re[Oe-3].description=Ce.parseMessage(Re[Oe-1]),this.$=Re[Oe-3];break;case 51:Re[Oe-1].type="addParticipant",this.$=Re[Oe-1];break;case 52:Re[Oe-3].type="addActor",Re[Oe-3].description=Ce.parseMessage(Re[Oe-1]),this.$=Re[Oe-3];break;case 53:Re[Oe-1].type="addActor",this.$=Re[Oe-1];break;case 54:this.$=[Re[Oe-1],{type:"addNote",placement:Re[Oe-2],actor:Re[Oe-1].actor,text:Re[Oe]}];break;case 55:Re[Oe-2]=[].concat(Re[Oe-1],Re[Oe-1]).slice(0,2),Re[Oe-2][0]=Re[Oe-2][0].actor,Re[Oe-2][1]=Re[Oe-2][1].actor,this.$=[Re[Oe-1],{type:"addNote",placement:Ce.PLACEMENT.OVER,actor:Re[Oe-2].slice(0,2),text:Re[Oe]}];break;case 56:this.$=[Re[Oe-1],{type:"addLinks",actor:Re[Oe-1].actor,text:Re[Oe]}];break;case 57:this.$=[Re[Oe-1],{type:"addALink",actor:Re[Oe-1].actor,text:Re[Oe]}];break;case 58:this.$=[Re[Oe-1],{type:"addProperties",actor:Re[Oe-1].actor,text:Re[Oe]}];break;case 59:this.$=[Re[Oe-1],{type:"addDetails",actor:Re[Oe-1].actor,text:Re[Oe]}];break;case 62:this.$=[Re[Oe-2],Re[Oe]];break;case 63:this.$=Re[Oe];break;case 64:this.$=Ce.PLACEMENT.LEFTOF;break;case 65:this.$=Ce.PLACEMENT.RIGHTOF;break;case 66:this.$=[Re[Oe-4],Re[Oe-1],{type:"addMessage",from:Re[Oe-4].actor,to:Re[Oe-1].actor,signalType:Re[Oe-3],msg:Re[Oe]},{type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Re[Oe-1]}];break;case 67:this.$=[Re[Oe-4],Re[Oe-1],{type:"addMessage",from:Re[Oe-4].actor,to:Re[Oe-1].actor,signalType:Re[Oe-3],msg:Re[Oe]},{type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Re[Oe-4]}];break;case 68:this.$=[Re[Oe-3],Re[Oe-1],{type:"addMessage",from:Re[Oe-3].actor,to:Re[Oe-1].actor,signalType:Re[Oe-2],msg:Re[Oe]}];break;case 69:this.$={type:"addParticipant",actor:Re[Oe]};break;case 70:this.$=Ce.LINETYPE.SOLID_OPEN;break;case 71:this.$=Ce.LINETYPE.DOTTED_OPEN;break;case 72:this.$=Ce.LINETYPE.SOLID;break;case 73:this.$=Ce.LINETYPE.DOTTED;break;case 74:this.$=Ce.LINETYPE.SOLID_CROSS;break;case 75:this.$=Ce.LINETYPE.DOTTED_CROSS;break;case 76:this.$=Ce.LINETYPE.SOLID_POINT;break;case 77:this.$=Ce.LINETYPE.DOTTED_POINT;break;case 78:this.$=Ce.parseMessage(Re[Oe].trim().substring(1));break;case 79:Ce.parseDirective("%%{","open_directive");break;case 80:Ce.parseDirective(Re[Oe],"type_directive");break;case 81:Re[Oe]=Re[Oe].trim().replace(/'/g,'"'),Ce.parseDirective(Re[Oe],"arg_directive");break;case 82:Ce.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:H,5:U,6:4,7:W,14:6,83:G},{1:[3]},{3:8,4:H,5:U,6:4,7:W,14:6,83:G},{3:9,4:H,5:U,6:4,7:W,14:6,83:G},{3:10,4:H,5:U,6:4,7:W,14:6,83:G},C([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],X,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{16:51,17:[1,52],86:xe},C([17,86],[2,80]),C(ke,[2,6]),{6:41,10:54,13:18,14:6,19:ee,22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},C(ke,[2,8]),C(ke,[2,9]),C(ke,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:Te},{27:61,73:Te},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},C(ke,[2,31]),C(ke,[2,32]),{37:[1,67]},{39:[1,68]},C(ke,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},C(ke,[2,43]),{27:76,73:Te},{27:77,73:Te},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:Te},{27:92,73:Te},{27:93,73:Te},{27:94,73:Te},C([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},C(ke,[2,7]),C(Ie,[2,10],{11:98}),C(ke,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},C(ke,[2,23]),{5:[1,102]},{5:[1,103]},C(ke,[2,26]),C(ke,[2,27]),C(ke,[2,28]),C(ke,[2,29]),C(ke,[2,30]),C(ke,[2,33]),C(ke,[2,34]),C(Ae,X,{8:104}),C(Ae,X,{8:105}),C(Ae,X,{8:106}),C(Me,X,{45:107,8:108}),C(Fe,X,{47:109,8:110}),C(Be,X,{49:111,8:112}),C(Ae,X,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:Te},C(Ne,[2,70]),C(Ne,[2,71]),C(Ne,[2,72]),C(Ne,[2,73]),C(Ne,[2,74]),C(Ne,[2,75]),C(Ne,[2,76]),C(Ne,[2,77]),{27:121,73:Te},{27:123,61:122,73:Te},{73:[2,64]},{73:[2,65]},{59:124,82:Ve},{59:126,82:Ve},{59:127,82:Ve},{59:128,82:Ve},C(Le,[2,15]),{16:129,86:xe},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:be,56:pe},{5:[1,135]},C(ke,[2,21]),C(ke,[2,22]),C(ke,[2,24]),C(ke,[2,25]),{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[1,136],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[1,137],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[1,138],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{21:[1,139]},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[2,48],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,53:[1,140],54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{21:[1,141]},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[2,46],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,52:[1,142],54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{21:[1,143]},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[2,44],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,51:[1,144],54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{4:Z,5:Q,6:41,9:14,10:16,13:18,14:6,19:ee,21:[1,145],22:20,23:ie,26:te,27:44,28:ne,29:24,30:25,31:26,32:27,33:28,34:ae,35:oe,36:se,38:le,40:ce,41:ue,42:de,43:ve,44:ge,46:he,48:me,50:_e,54:be,56:pe,57:fe,62:ye,63:$e,64:we,65:Se,73:Te,83:G},{20:[1,146]},C(ke,[2,51]),{20:[1,147]},C(ke,[2,53]),{27:148,73:Te},{27:149,73:Te},{59:150,82:Ve},{59:151,82:Ve},{59:152,82:Ve},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},C(ke,[2,18]),C(Ie,[2,11]),{13:155,54:be,56:pe},C(Ie,[2,13]),C(Ie,[2,14]),C(ke,[2,20]),C(ke,[2,36]),C(ke,[2,37]),C(ke,[2,38]),C(ke,[2,39]),{20:[1,156]},C(ke,[2,40]),{20:[1,157]},C(ke,[2,41]),{20:[1,158]},C(ke,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:Ve},{59:162,82:Ve},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:Te},C(Le,[2,16]),C(Ie,[2,12]),C(Me,X,{8:108,45:164}),C(Fe,X,{8:110,47:165}),C(Be,X,{8:112,49:166}),C(ke,[2,50]),C(ke,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(qe,Ke){if(Ke.recoverable)this.trace(qe);else{var Ee=new Error(qe);throw Ee.hash=Ke,Ee}},parse:function(qe){var Ke=this,Ee=[0],Ce=[],Pe=[null],Re=[],Ze=this.table,Oe="",Qe=0,Xe=0,et=2,We=1,He=Re.slice.call(arguments,1),Ye=Object.create(this.lexer),nt={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(nt.yy[tt]=this.yy[tt]);Ye.setInput(qe,nt.yy),nt.yy.lexer=Ye,nt.yy.parser=this,typeof Ye.yylloc>"u"&&(Ye.yylloc={});var at=Ye.yylloc;Re.push(at);var St=Ye.options&&Ye.options.ranges;typeof nt.yy.parseError=="function"?this.parseError=nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(){var rt;return rt=Ce.pop()||Ye.lex()||We,typeof rt!="number"&&(rt instanceof Array&&(Ce=rt,rt=Ce.pop()),rt=Ke.symbols_[rt]||rt),rt}for(var it,pt,wt,xt,mt={},gt,lt,ct,vt;;){if(pt=Ee[Ee.length-1],this.defaultActions[pt]?wt=this.defaultActions[pt]:((it===null||typeof it>"u")&&(it=st()),wt=Ze[pt]&&Ze[pt][it]),typeof wt>"u"||!wt.length||!wt[0]){var _t="";vt=[];for(gt in Ze[pt])this.terminals_[gt]&>>et&&vt.push("'"+this.terminals_[gt]+"'");Ye.showPosition?_t="Parse error on line "+(Qe+1)+`:
|
||
`+Ye.showPosition()+`
|
||
Expecting `+vt.join(", ")+", got '"+(this.terminals_[it]||it)+"'":_t="Parse error on line "+(Qe+1)+": Unexpected "+(it==We?"end of input":"'"+(this.terminals_[it]||it)+"'"),this.parseError(_t,{text:Ye.match,token:this.terminals_[it]||it,line:Ye.yylineno,loc:at,expected:vt})}if(wt[0]instanceof Array&&wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+it);switch(wt[0]){case 1:Ee.push(it),Pe.push(Ye.yytext),Re.push(Ye.yylloc),Ee.push(wt[1]),it=null,Xe=Ye.yyleng,Oe=Ye.yytext,Qe=Ye.yylineno,at=Ye.yylloc;break;case 2:if(lt=this.productions_[wt[1]][1],mt.$=Pe[Pe.length-lt],mt._$={first_line:Re[Re.length-(lt||1)].first_line,last_line:Re[Re.length-1].last_line,first_column:Re[Re.length-(lt||1)].first_column,last_column:Re[Re.length-1].last_column},St&&(mt._$.range=[Re[Re.length-(lt||1)].range[0],Re[Re.length-1].range[1]]),xt=this.performAction.apply(mt,[Oe,Xe,Qe,nt.yy,wt[1],Pe,Re].concat(He)),typeof xt<"u")return xt;lt&&(Ee=Ee.slice(0,-1*lt*2),Pe=Pe.slice(0,-1*lt),Re=Re.slice(0,-1*lt)),Ee.push(this.productions_[wt[1]][0]),Pe.push(mt.$),Re.push(mt._$),ct=Ze[Ee[Ee.length-2]][Ee[Ee.length-1]],Ee.push(ct);break;case 3:return!0}}return!0}},Je=function(){var Ge={EOF:1,parseError:function(Ke,Ee){if(this.yy.parser)this.yy.parser.parseError(Ke,Ee);else throw new Error(Ke)},setInput:function(qe,Ke){return this.yy=Ke||this.yy||{},this._input=qe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var qe=this._input[0];this.yytext+=qe,this.yyleng++,this.offset++,this.match+=qe,this.matched+=qe;var Ke=qe.match(/(?:\r\n?|\n).*/g);return Ke?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),qe},unput:function(qe){var Ke=qe.length,Ee=qe.split(/(?:\r\n?|\n)/g);this._input=qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var Ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ee.length-1&&(this.yylineno-=Ee.length-1);var Pe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ee?(Ee.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-Ee.length].length-Ee[0].length:this.yylloc.first_column-Ke},this.options.ranges&&(this.yylloc.range=[Pe[0],Pe[0]+this.yyleng-Ke]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(qe){this.unput(this.match.slice(qe))},pastInput:function(){var qe=this.matched.substr(0,this.matched.length-this.match.length);return(qe.length>20?"...":"")+qe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var qe=this.match;return qe.length<20&&(qe+=this._input.substr(0,20-qe.length)),(qe.substr(0,20)+(qe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var qe=this.pastInput(),Ke=new Array(qe.length+1).join("-");return qe+this.upcomingInput()+`
|
||
`+Ke+"^"},test_match:function(qe,Ke){var Ee,Ce,Pe;if(this.options.backtrack_lexer&&(Pe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Pe.yylloc.range=this.yylloc.range.slice(0))),Ce=qe[0].match(/(?:\r\n?|\n).*/g),Ce&&(this.yylineno+=Ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+qe[0].length},this.yytext+=qe[0],this.match+=qe[0],this.matches=qe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(qe[0].length),this.matched+=qe[0],Ee=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ee)return Ee;if(this._backtrack){for(var Re in Pe)this[Re]=Pe[Re];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var qe,Ke,Ee,Ce;this._more||(this.yytext="",this.match="");for(var Pe=this._currentRules(),Re=0;Re<Pe.length;Re++)if(Ee=this._input.match(this.rules[Pe[Re]]),Ee&&(!Ke||Ee[0].length>Ke[0].length)){if(Ke=Ee,Ce=Re,this.options.backtrack_lexer){if(qe=this.test_match(Ee,Pe[Re]),qe!==!1)return qe;if(this._backtrack){Ke=!1;continue}else return!1}else if(!this.options.flex)break}return Ke?(qe=this.test_match(Ke,Pe[Ce]),qe!==!1?qe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ke=this.next();return Ke||this.lex()},begin:function(Ke){this.conditionStack.push(Ke)},popState:function(){var Ke=this.conditionStack.length-1;return Ke>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ke){return Ke=this.conditionStack.length-1-Math.abs(Ke||0),Ke>=0?this.conditionStack[Ke]:"INITIAL"},pushState:function(Ke){this.begin(Ke)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ke,Ee,Ce,Pe){switch(Ce){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return Ee.yytext=Ee.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return Ee.yytext=Ee.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return Ge}();De.lexer=Je;function ze(){this.yy={}}return ze.prototype=De,De.Parser=ze,new ze}();parser$2.parser=parser$2;const sequenceParser=parser$2,sequenceDetector=C=>C.match(/^\s*sequenceDiagram/)!==null;let prevActor,actors$1={},boxes=[],messages$1=[],sequenceNumbersEnabled=!1,wrapEnabled,currentBox;const parseDirective$2=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},addBox=function(C){boxes.push({name:C.text,wrap:C.wrap===void 0&&autoWrap()||!!C.wrap,fill:C.color,actorKeys:[]}),currentBox=boxes.slice(-1)[0]},addActor=function(C,H,U,W){let G=currentBox;const X=actors$1[C];if(X){if(currentBox&&X.box&¤tBox!==X.box)throw new Error("A same participant should only be defined in one Box: "+X.name+" can't be in '"+X.box.name+"' and in '"+currentBox.name+"' at the same time.");if(G=X.box?X.box:currentBox,X.box=G,X&&H===X.name&&U==null)return}(U==null||U.text==null)&&(U={text:H,wrap:null,type:W}),(W==null||U.text==null)&&(U={text:H,wrap:null,type:W}),actors$1[C]={box:G,name:H,description:U.text,wrap:U.wrap===void 0&&autoWrap()||!!U.wrap,prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:W||"participant"},prevActor&&actors$1[prevActor]&&(actors$1[prevActor].nextActor=C),currentBox&¤tBox.actorKeys.push(C),prevActor=C},activationCount=C=>{let H,U=0;for(H=0;H<messages$1.length;H++)messages$1[H].type===LINETYPE.ACTIVE_START&&messages$1[H].from.actor===C&&U++,messages$1[H].type===LINETYPE.ACTIVE_END&&messages$1[H].from.actor===C&&U--;return U},addMessage=function(C,H,U,W){messages$1.push({from:C,to:H,message:U.text,wrap:U.wrap===void 0&&autoWrap()||!!U.wrap,answer:W})},addSignal=function(C,H,U={text:void 0,wrap:void 0},W){if(W===LINETYPE.ACTIVE_END&&activationCount(C.actor)<1){let X=new Error("Trying to inactivate an inactive participant ("+C.actor+")");throw X.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},X}return messages$1.push({from:C,to:H,message:U.text,wrap:U.wrap===void 0&&autoWrap()||!!U.wrap,type:W}),!0},hasAtLeastOneBox=function(){return boxes.length>0},hasAtLeastOneBoxWithTitle=function(){return boxes.some(C=>C.name)},getMessages=function(){return messages$1},getBoxes=function(){return boxes},getActors$1=function(){return actors$1},getActor=function(C){return actors$1[C]},getActorKeys=function(){return Object.keys(actors$1)},enableSequenceNumbers=function(){sequenceNumbersEnabled=!0},disableSequenceNumbers=function(){sequenceNumbersEnabled=!1},showSequenceNumbers=()=>sequenceNumbersEnabled,setWrap=function(C){wrapEnabled=C},autoWrap=()=>wrapEnabled!==void 0?wrapEnabled:getConfig$1().sequence.wrap,clear$2=function(){actors$1={},boxes=[],messages$1=[],sequenceNumbersEnabled=!1,clear$g()},parseMessage=function(C){const H=C.trim(),U={text:H.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:H.match(/^:?wrap:/)!==null?!0:H.match(/^:?nowrap:/)!==null?!1:void 0};return log$1.debug("parseMessage:",U),U},parseBoxData=function(C){const H=C.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let U=H!=null&&H[1]?H[1].trim():"transparent",W=H!=null&&H[2]?H[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",U)||(U="transparent",W=C.trim());else{const X=new Option().style;X.color=U,X.color!==U&&(U="transparent",W=C.trim())}return{color:U,text:W!==void 0?sanitizeText$5(W.replace(/^:?(?:no)?wrap:/,""),getConfig$1()):void 0,wrap:W!==void 0?W.match(/^:?wrap:/)!==null?!0:W.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},LINETYPE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},ARROWTYPE={FILLED:0,OPEN:1},PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},addNote=function(C,H,U){U.text,U.wrap===void 0&&autoWrap()||U.wrap;const W=[].concat(C,C);messages$1.push({from:W[0],to:W[1],message:U.text,wrap:U.wrap===void 0&&autoWrap()||!!U.wrap,type:LINETYPE.NOTE,placement:H})},addLinks=function(C,H){const U=getActor(C);try{let W=sanitizeText$5(H.text,getConfig$1());W=W.replace(/&/g,"&"),W=W.replace(/=/g,"=");const G=JSON.parse(W);insertLinks(U,G)}catch(W){log$1.error("error while parsing actor link text",W)}},addALink=function(C,H){const U=getActor(C);try{const Z={};let Q=sanitizeText$5(H.text,getConfig$1());var W=Q.indexOf("@");Q=Q.replace(/&/g,"&"),Q=Q.replace(/=/g,"=");var G=Q.slice(0,W-1).trim(),X=Q.slice(W+1).trim();Z[G]=X,insertLinks(U,Z)}catch(Z){log$1.error("error while parsing actor link text",Z)}};function insertLinks(C,H){if(C.links==null)C.links=H;else for(let U in H)C.links[U]=H[U]}const addProperties=function(C,H){const U=getActor(C);try{let W=sanitizeText$5(H.text,getConfig$1());const G=JSON.parse(W);insertProperties(U,G)}catch(W){log$1.error("error while parsing actor properties text",W)}};function insertProperties(C,H){if(C.properties==null)C.properties=H;else for(let U in H)C.properties[U]=H[U]}function boxEnd(){currentBox=void 0}const addDetails=function(C,H){const U=getActor(C),W=document.getElementById(H.text);try{const G=W.innerHTML,X=JSON.parse(G);X.properties&&insertProperties(U,X.properties),X.links&&insertLinks(U,X.links)}catch(G){log$1.error("error while parsing actor details text",G)}},getActorProperty=function(C,H){if(C!==void 0&&C.properties!==void 0)return C.properties[H]},apply$1=function(C){if(Array.isArray(C))C.forEach(function(H){apply$1(H)});else switch(C.type){case"sequenceIndex":messages$1.push({from:void 0,to:void 0,message:{start:C.sequenceIndex,step:C.sequenceIndexStep,visible:C.sequenceVisible},wrap:!1,type:C.signalType});break;case"addParticipant":addActor(C.actor,C.actor,C.description,"participant");break;case"addActor":addActor(C.actor,C.actor,C.description,"actor");break;case"activeStart":addSignal(C.actor,void 0,void 0,C.signalType);break;case"activeEnd":addSignal(C.actor,void 0,void 0,C.signalType);break;case"addNote":addNote(C.actor,C.placement,C.text);break;case"addLinks":addLinks(C.actor,C.text);break;case"addALink":addALink(C.actor,C.text);break;case"addProperties":addProperties(C.actor,C.text);break;case"addDetails":addDetails(C.actor,C.text);break;case"addMessage":addSignal(C.from,C.to,C.msg,C.signalType);break;case"boxStart":addBox(C.boxData);break;case"boxEnd":boxEnd();break;case"loopStart":addSignal(void 0,void 0,C.loopText,C.signalType);break;case"loopEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"rectStart":addSignal(void 0,void 0,C.color,C.signalType);break;case"rectEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"optStart":addSignal(void 0,void 0,C.optText,C.signalType);break;case"optEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"altStart":addSignal(void 0,void 0,C.altText,C.signalType);break;case"else":addSignal(void 0,void 0,C.altText,C.signalType);break;case"altEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"setAccTitle":setAccTitle(C.text);break;case"parStart":addSignal(void 0,void 0,C.parText,C.signalType);break;case"and":addSignal(void 0,void 0,C.parText,C.signalType);break;case"parEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"criticalStart":addSignal(void 0,void 0,C.criticalText,C.signalType);break;case"option":addSignal(void 0,void 0,C.optionText,C.signalType);break;case"criticalEnd":addSignal(void 0,void 0,void 0,C.signalType);break;case"breakStart":addSignal(void 0,void 0,C.breakText,C.signalType);break;case"breakEnd":addSignal(void 0,void 0,void 0,C.signalType);break}},sequenceDb={addActor,addMessage,addSignal,addLinks,addDetails,addProperties,autoWrap,setWrap,enableSequenceNumbers,disableSequenceNumbers,showSequenceNumbers,getMessages,getActors:getActors$1,getActor,getActorKeys,getActorProperty,getAccTitle,getBoxes,getDiagramTitle,setDiagramTitle,parseDirective:parseDirective$2,getConfig:()=>getConfig$1().sequence,clear:clear$2,parseMessage,parseBoxData,LINETYPE,ARROWTYPE,PLACEMENT,addNote,setAccTitle,apply:apply$1,setAccDescription,getAccDescription,hasAtLeastOneBox,hasAtLeastOneBoxWithTitle};let interactionFunctions=[];const addFunction=C=>{interactionFunctions.push(C)},attachFunctions=()=>{interactionFunctions.forEach(C=>{C()}),interactionFunctions=[]},drawRect$1=function(C,H){const U=C.append("rect");return U.attr("x",H.x),U.attr("y",H.y),U.attr("fill",H.fill),U.attr("stroke",H.stroke),U.attr("width",H.width),U.attr("height",H.height),U.attr("rx",H.rx),U.attr("ry",H.ry),H.class!==void 0&&U.attr("class",H.class),U},addPopupInteraction=(C,H)=>{addFunction(()=>{const U=document.querySelectorAll(C);U.length!==0&&(U[0].addEventListener("mouseover",function(){popupMenuUpFunc("actor"+H+"_popup")}),U[0].addEventListener("mouseout",function(){popupMenuDownFunc("actor"+H+"_popup")}))})},drawPopup=function(C,H,U,W,G){if(H.links===void 0||H.links===null||Object.keys(H.links).length===0)return{height:0,width:0};const X=H.links,Z=H.actorCnt,Q=H.rectData;var ee="none";G&&(ee="block !important");const ie=C.append("g");ie.attr("id","actor"+Z+"_popup"),ie.attr("class","actorPopupMenu"),ie.attr("display",ee),addPopupInteraction("#actor"+Z+"_popup",Z);var te="";Q.class!==void 0&&(te=" "+Q.class);let ne=Q.width>U?Q.width:U;const ae=ie.append("rect");if(ae.attr("class","actorPopupMenuPanel"+te),ae.attr("x",Q.x),ae.attr("y",Q.height),ae.attr("fill",Q.fill),ae.attr("stroke",Q.stroke),ae.attr("width",ne),ae.attr("height",Q.height),ae.attr("rx",Q.rx),ae.attr("ry",Q.ry),X!=null){var oe=20;for(let ce in X){var se=ie.append("a"),le=sanitizeUrl_1(X[ce]);se.attr("xlink:href",le),se.attr("target","_blank"),_drawMenuItemTextCandidateFunc(W)(ce,se,Q.x+10,Q.height+oe,ne,20,{class:"actor"},W),oe+=30}}return ae.attr("height",oe),{height:Q.height+oe,width:ne}},drawImage=function(C,H,U,W){const G=C.append("image");G.attr("x",H),G.attr("y",U);var X=sanitizeUrl_1(W);G.attr("xlink:href",X)},drawEmbeddedImage=function(C,H,U,W){const G=C.append("use");G.attr("x",H),G.attr("y",U);var X=sanitizeUrl_1(W);G.attr("xlink:href","#"+X)},popupMenu=function(C){return"var pu = document.getElementById('"+C+"'); if (pu != null) { pu.style.display = 'block'; }"},popdownMenu=function(C){return"var pu = document.getElementById('"+C+"'); if (pu != null) { pu.style.display = 'none'; }"},popupMenuUpFunc=function(C){var H=document.getElementById(C);H!=null&&(H.style.display="block")},popupMenuDownFunc=function(C){var H=document.getElementById(C);H!=null&&(H.style.display="none")},drawText$1=function(C,H){let U=0,W=0;const G=H.text.split(common$1.lineBreakRegex),[X,Z]=parseFontSize(H.fontSize);let Q=[],ee=0,ie=()=>H.y;if(H.valign!==void 0&&H.textMargin!==void 0&&H.textMargin>0)switch(H.valign){case"top":case"start":ie=()=>Math.round(H.y+H.textMargin);break;case"middle":case"center":ie=()=>Math.round(H.y+(U+W+H.textMargin)/2);break;case"bottom":case"end":ie=()=>Math.round(H.y+(U+W+2*H.textMargin)-H.textMargin);break}if(H.anchor!==void 0&&H.textMargin!==void 0&&H.width!==void 0)switch(H.anchor){case"left":case"start":H.x=Math.round(H.x+H.textMargin),H.anchor="start",H.dominantBaseline="middle",H.alignmentBaseline="middle";break;case"middle":case"center":H.x=Math.round(H.x+H.width/2),H.anchor="middle",H.dominantBaseline="middle",H.alignmentBaseline="middle";break;case"right":case"end":H.x=Math.round(H.x+H.width-H.textMargin),H.anchor="end",H.dominantBaseline="middle",H.alignmentBaseline="middle";break}for(let[te,ne]of G.entries()){H.textMargin!==void 0&&H.textMargin===0&&X!==void 0&&(ee=te*X);const ae=C.append("text");if(ae.attr("x",H.x),ae.attr("y",ie()),H.anchor!==void 0&&ae.attr("text-anchor",H.anchor).attr("dominant-baseline",H.dominantBaseline).attr("alignment-baseline",H.alignmentBaseline),H.fontFamily!==void 0&&ae.style("font-family",H.fontFamily),Z!==void 0&&ae.style("font-size",Z),H.fontWeight!==void 0&&ae.style("font-weight",H.fontWeight),H.fill!==void 0&&ae.attr("fill",H.fill),H.class!==void 0&&ae.attr("class",H.class),H.dy!==void 0?ae.attr("dy",H.dy):ee!==0&&ae.attr("dy",ee),H.tspan){const oe=ae.append("tspan");oe.attr("x",H.x),H.fill!==void 0&&oe.attr("fill",H.fill),oe.text(ne)}else ae.text(ne);H.valign!==void 0&&H.textMargin!==void 0&&H.textMargin>0&&(W+=(ae._groups||ae)[0][0].getBBox().height,U=W),Q.push(ae)}return Q},drawLabel$1=function(C,H){function U(G,X,Z,Q,ee){return G+","+X+" "+(G+Z)+","+X+" "+(G+Z)+","+(X+Q-ee)+" "+(G+Z-ee*1.2)+","+(X+Q)+" "+G+","+(X+Q)}const W=C.append("polygon");return W.attr("points",U(H.x,H.y,H.width,H.height,7)),W.attr("class","labelBox"),H.y=H.y+H.height/2,drawText$1(C,H),W};let actorCnt=-1;const fixLifeLineHeights=(C,H)=>{!C.selectAll||C.selectAll(".actor-line").attr("class","200").attr("y2",H-55)},drawActorTypeParticipant=function(C,H,U,W){const G=H.x+H.width/2,X=H.y+5,Z=C.append("g");var Q=Z;W||(actorCnt++,Q.append("line").attr("id","actor"+actorCnt).attr("x1",G).attr("y1",X).attr("x2",G).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),Q=Z.append("g"),H.actorCnt=actorCnt,H.links!=null&&(Q.attr("id","root-"+actorCnt),addPopupInteraction("#root-"+actorCnt,actorCnt)));const ee=getNoteRect$1();var ie="actor";H.properties!=null&&H.properties.class?ie=H.properties.class:ee.fill="#eaeaea",ee.x=H.x,ee.y=H.y,ee.width=H.width,ee.height=H.height,ee.class=ie,ee.rx=3,ee.ry=3;const te=drawRect$1(Q,ee);if(H.rectData=ee,H.properties!=null&&H.properties.icon){const ae=H.properties.icon.trim();ae.charAt(0)==="@"?drawEmbeddedImage(Q,ee.x+ee.width-20,ee.y+10,ae.substr(1)):drawImage(Q,ee.x+ee.width-20,ee.y+10,ae)}_drawTextCandidateFunc$1(U)(H.description,Q,ee.x,ee.y,ee.width,ee.height,{class:"actor"},U);let ne=H.height;if(te.node){const ae=te.node().getBBox();H.height=ae.height,ne=ae.height}return ne},drawActorTypeActor=function(C,H,U,W){const G=H.x+H.width/2,X=H.y+80;W||(actorCnt++,C.append("line").attr("id","actor"+actorCnt).attr("x1",G).attr("y1",X).attr("x2",G).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const Z=C.append("g");Z.attr("class","actor-man");const Q=getNoteRect$1();Q.x=H.x,Q.y=H.y,Q.fill="#eaeaea",Q.width=H.width,Q.height=H.height,Q.class="actor",Q.rx=3,Q.ry=3,Z.append("line").attr("id","actor-man-torso"+actorCnt).attr("x1",G).attr("y1",H.y+25).attr("x2",G).attr("y2",H.y+45),Z.append("line").attr("id","actor-man-arms"+actorCnt).attr("x1",G-18).attr("y1",H.y+33).attr("x2",G+18).attr("y2",H.y+33),Z.append("line").attr("x1",G-18).attr("y1",H.y+60).attr("x2",G).attr("y2",H.y+45),Z.append("line").attr("x1",G).attr("y1",H.y+45).attr("x2",G+16).attr("y2",H.y+60);const ee=Z.append("circle");ee.attr("cx",H.x+H.width/2),ee.attr("cy",H.y+10),ee.attr("r",15),ee.attr("width",H.width),ee.attr("height",H.height);const ie=Z.node().getBBox();return H.height=ie.height,_drawTextCandidateFunc$1(U)(H.description,Z,Q.x,Q.y+35,Q.width,Q.height,{class:"actor"},U),H.height},drawActor=function(C,H,U,W){switch(H.type){case"actor":return drawActorTypeActor(C,H,U,W);case"participant":return drawActorTypeParticipant(C,H,U,W)}},drawBox=function(C,H,U){const G=C.append("g");drawBackgroundRect$1(G,H),H.name&&_drawTextCandidateFunc$1(U)(H.name,G,H.x,H.y+(H.textMaxHeight||0)/2,H.width,0,{class:"text"},U),G.lower()},anchorElement=function(C){return C.append("g")},drawActivation=function(C,H,U,W,G){const X=getNoteRect$1(),Z=H.anchored;X.x=H.startx,X.y=H.starty,X.class="activation"+G%3,X.width=H.stopx-H.startx,X.height=U-H.starty,drawRect$1(Z,X)},drawLoop=function(C,H,U,W){const{boxMargin:G,boxTextMargin:X,labelBoxHeight:Z,labelBoxWidth:Q,messageFontFamily:ee,messageFontSize:ie,messageFontWeight:te}=W,ne=C.append("g"),ae=function(le,ce,ue,de){return ne.append("line").attr("x1",le).attr("y1",ce).attr("x2",ue).attr("y2",de).attr("class","loopLine")};ae(H.startx,H.starty,H.stopx,H.starty),ae(H.stopx,H.starty,H.stopx,H.stopy),ae(H.startx,H.stopy,H.stopx,H.stopy),ae(H.startx,H.starty,H.startx,H.stopy),H.sections!==void 0&&H.sections.forEach(function(le){ae(H.startx,le.y,H.stopx,le.y).style("stroke-dasharray","3, 3")});let oe=getTextObj$1();oe.text=U,oe.x=H.startx,oe.y=H.starty,oe.fontFamily=ee,oe.fontSize=ie,oe.fontWeight=te,oe.anchor="middle",oe.valign="middle",oe.tspan=!1,oe.width=Q||50,oe.height=Z||20,oe.textMargin=X,oe.class="labelText",drawLabel$1(ne,oe),oe=getTextObj$1(),oe.text=H.title,oe.x=H.startx+Q/2+(H.stopx-H.startx)/2,oe.y=H.starty+G+X,oe.anchor="middle",oe.valign="middle",oe.textMargin=X,oe.class="loopText",oe.fontFamily=ee,oe.fontSize=ie,oe.fontWeight=te,oe.wrap=!0;let se=drawText$1(ne,oe);return H.sectionTitles!==void 0&&H.sectionTitles.forEach(function(le,ce){if(le.message){oe.text=le.message,oe.x=H.startx+(H.stopx-H.startx)/2,oe.y=H.sections[ce].y+G+X,oe.class="loopText",oe.anchor="middle",oe.valign="middle",oe.tspan=!1,oe.fontFamily=ee,oe.fontSize=ie,oe.fontWeight=te,oe.wrap=H.wrap,se=drawText$1(ne,oe);let ue=Math.round(se.map(de=>(de._groups||de)[0][0].getBBox().height).reduce((de,ve)=>de+ve));H.sections[ce].height+=ue-(G+X)}}),H.height=Math.round(H.stopy-H.starty),ne},drawBackgroundRect$1=function(C,H){drawRect$1(C,{x:H.startx,y:H.starty,width:H.stopx-H.startx,height:H.stopy-H.starty,fill:H.fill,stroke:H.stroke,class:"rect"}).lower()},insertDatabaseIcon=function(C){C.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon=function(C){C.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon=function(C){C.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},insertArrowHead=function(C){C.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead=function(C){C.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber=function(C){C.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead=function(C){C.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},getTextObj$1=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},getNoteRect$1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc$1=function(){function C(G,X,Z,Q,ee,ie,te){const ne=X.append("text").attr("x",Z+ee/2).attr("y",Q+ie/2+5).style("text-anchor","middle").text(G);W(ne,te)}function H(G,X,Z,Q,ee,ie,te,ne){const{actorFontSize:ae,actorFontFamily:oe,actorFontWeight:se}=ne,[le,ce]=parseFontSize(ae),ue=G.split(common$1.lineBreakRegex);for(let de=0;de<ue.length;de++){const ve=de*le-le*(ue.length-1)/2,ge=X.append("text").attr("x",Z+ee/2).attr("y",Q).style("text-anchor","middle").style("font-size",ce).style("font-weight",se).style("font-family",oe);ge.append("tspan").attr("x",Z+ee/2).attr("dy",ve).text(ue[de]),ge.attr("y",Q+ie/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),W(ge,te)}}function U(G,X,Z,Q,ee,ie,te,ne){const ae=X.append("switch"),se=ae.append("foreignObject").attr("x",Z).attr("y",Q).attr("width",ee).attr("height",ie).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");se.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(G),H(G,ae,Z,Q,ee,ie,te,ne),W(se,te)}function W(G,X){for(const Z in X)X.hasOwnProperty(Z)&&G.attr(Z,X[Z])}return function(G){return G.textPlacement==="fo"?U:G.textPlacement==="old"?C:H}}(),_drawMenuItemTextCandidateFunc=function(){function C(G,X,Z,Q,ee,ie,te){const ne=X.append("text").attr("x",Z).attr("y",Q).style("text-anchor","start").text(G);W(ne,te)}function H(G,X,Z,Q,ee,ie,te,ne){const{actorFontSize:ae,actorFontFamily:oe,actorFontWeight:se}=ne,le=G.split(common$1.lineBreakRegex);for(let ce=0;ce<le.length;ce++){const ue=ce*ae-ae*(le.length-1)/2,de=X.append("text").attr("x",Z).attr("y",Q).style("text-anchor","start").style("font-size",ae).style("font-weight",se).style("font-family",oe);de.append("tspan").attr("x",Z).attr("dy",ue).text(le[ce]),de.attr("y",Q+ie/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),W(de,te)}}function U(G,X,Z,Q,ee,ie,te,ne){const ae=X.append("switch"),se=ae.append("foreignObject").attr("x",Z).attr("y",Q).attr("width",ee).attr("height",ie).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");se.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(G),H(G,ae,Z,Q,ee,ie,te,ne),W(se,te)}function W(G,X){for(const Z in X)X.hasOwnProperty(Z)&&G.attr(Z,X[Z])}return function(G){return G.textPlacement==="fo"?U:G.textPlacement==="old"?C:H}}(),svgDraw$1={drawRect:drawRect$1,drawText:drawText$1,drawLabel:drawLabel$1,drawActor,drawBox,drawPopup,drawImage,drawEmbeddedImage,anchorElement,drawActivation,drawLoop,drawBackgroundRect:drawBackgroundRect$1,insertArrowHead,insertArrowFilledHead,insertSequenceNumber,insertArrowCrossHead,insertDatabaseIcon,insertComputerIcon,insertClockIcon,getTextObj:getTextObj$1,getNoteRect:getNoteRect$1,popupMenu,popdownMenu,fixLifeLineHeights,sanitizeUrl:sanitizeUrl_1};let conf$3={};const bounds$1={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(C=>C.height||0))+(this.loops.length===0?0:this.loops.map(C=>C.height||0).reduce((C,H)=>C+H))+(this.messages.length===0?0:this.messages.map(C=>C.height||0).reduce((C,H)=>C+H))+(this.notes.length===0?0:this.notes.map(C=>C.height||0).reduce((C,H)=>C+H))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(C){this.boxes.push(C)},addActor:function(C){this.actors.push(C)},addLoop:function(C){this.loops.push(C)},addMessage:function(C){this.messages.push(C)},addNote:function(C){this.notes.push(C)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,setConf$4(getConfig$1())},updateVal:function(C,H,U,W){C[H]===void 0?C[H]=U:C[H]=W(U,C[H])},updateBounds:function(C,H,U,W){const G=this;let X=0;function Z(Q){return function(ie){X++;const te=G.sequenceItems.length-X+1;G.updateVal(ie,"starty",H-te*conf$3.boxMargin,Math.min),G.updateVal(ie,"stopy",W+te*conf$3.boxMargin,Math.max),G.updateVal(bounds$1.data,"startx",C-te*conf$3.boxMargin,Math.min),G.updateVal(bounds$1.data,"stopx",U+te*conf$3.boxMargin,Math.max),Q!=="activation"&&(G.updateVal(ie,"startx",C-te*conf$3.boxMargin,Math.min),G.updateVal(ie,"stopx",U+te*conf$3.boxMargin,Math.max),G.updateVal(bounds$1.data,"starty",H-te*conf$3.boxMargin,Math.min),G.updateVal(bounds$1.data,"stopy",W+te*conf$3.boxMargin,Math.max))}}this.sequenceItems.forEach(Z()),this.activations.forEach(Z("activation"))},insert:function(C,H,U,W){const G=Math.min(C,U),X=Math.max(C,U),Z=Math.min(H,W),Q=Math.max(H,W);this.updateVal(bounds$1.data,"startx",G,Math.min),this.updateVal(bounds$1.data,"starty",Z,Math.min),this.updateVal(bounds$1.data,"stopx",X,Math.max),this.updateVal(bounds$1.data,"stopy",Q,Math.max),this.updateBounds(G,Z,X,Q)},newActivation:function(C,H,U){const W=U[C.from.actor],G=actorActivations(C.from.actor).length||0,X=W.x+W.width/2+(G-1)*conf$3.activationWidth/2;this.activations.push({startx:X,starty:this.verticalPos+2,stopx:X+conf$3.activationWidth,stopy:void 0,actor:C.from.actor,anchored:svgDraw$1.anchorElement(H)})},endActivation:function(C){const H=this.activations.map(function(U){return U.actor}).lastIndexOf(C.from.actor);return this.activations.splice(H,1)[0]},createLoop:function(C={message:void 0,wrap:!1,width:void 0},H){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:C.message,wrap:C.wrap,width:C.width,height:0,fill:H}},newLoop:function(C={message:void 0,wrap:!1,width:void 0},H){this.sequenceItems.push(this.createLoop(C,H))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(C){const H=this.sequenceItems.pop();H.sections=H.sections||[],H.sectionTitles=H.sectionTitles||[],H.sections.push({y:bounds$1.getVerticalPos(),height:0}),H.sectionTitles.push(C),this.sequenceItems.push(H)},bumpVerticalPos:function(C){this.verticalPos=this.verticalPos+C,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},drawNote$1=function(C,H){bounds$1.bumpVerticalPos(conf$3.boxMargin),H.height=conf$3.boxMargin,H.starty=bounds$1.getVerticalPos();const U=svgDraw$1.getNoteRect();U.x=H.startx,U.y=H.starty,U.width=H.width||conf$3.width,U.class="note";const W=C.append("g"),G=svgDraw$1.drawRect(W,U),X=svgDraw$1.getTextObj();X.x=H.startx,X.y=H.starty,X.width=U.width,X.dy="1em",X.text=H.message,X.class="noteText",X.fontFamily=conf$3.noteFontFamily,X.fontSize=conf$3.noteFontSize,X.fontWeight=conf$3.noteFontWeight,X.anchor=conf$3.noteAlign,X.textMargin=conf$3.noteMargin,X.valign="center";const Z=drawText$1(W,X),Q=Math.round(Z.map(ee=>(ee._groups||ee)[0][0].getBBox().height).reduce((ee,ie)=>ee+ie));G.attr("height",Q+2*conf$3.noteMargin),H.height+=Q+2*conf$3.noteMargin,bounds$1.bumpVerticalPos(Q+2*conf$3.noteMargin),H.stopy=H.starty+Q+2*conf$3.noteMargin,H.stopx=H.startx+U.width,bounds$1.insert(H.startx,H.starty,H.stopx,H.stopy),bounds$1.models.addNote(H)},messageFont=C=>({fontFamily:C.messageFontFamily,fontSize:C.messageFontSize,fontWeight:C.messageFontWeight}),noteFont=C=>({fontFamily:C.noteFontFamily,fontSize:C.noteFontSize,fontWeight:C.noteFontWeight}),actorFont=C=>({fontFamily:C.actorFontFamily,fontSize:C.actorFontSize,fontWeight:C.actorFontWeight});function boundMessage(C,H){bounds$1.bumpVerticalPos(10);const{startx:U,stopx:W,message:G}=H,X=common$1.splitBreaks(G).length,Z=utils$d.calculateTextDimensions(G,messageFont(conf$3)),Q=Z.height/X;H.height+=Q,bounds$1.bumpVerticalPos(Q);let ee,ie=Z.height-10;const te=Z.width;if(U===W){ee=bounds$1.getVerticalPos()+ie,conf$3.rightAngles||(ie+=conf$3.boxMargin,ee=bounds$1.getVerticalPos()+ie),ie+=30;const ne=Math.max(te/2,conf$3.width/2);bounds$1.insert(U-ne,bounds$1.getVerticalPos()-10+ie,W+ne,bounds$1.getVerticalPos()+30+ie)}else ie+=conf$3.boxMargin,ee=bounds$1.getVerticalPos()+ie,bounds$1.insert(U,ee-10,W,ee);return bounds$1.bumpVerticalPos(ie),H.height+=ie,H.stopy=H.starty+H.height,bounds$1.insert(H.fromBounds,H.starty,H.toBounds,H.stopy),ee}const drawMessage=function(C,H,U,W){const{startx:G,stopx:X,starty:Z,message:Q,type:ee,sequenceIndex:ie,sequenceVisible:te}=H,ne=utils$d.calculateTextDimensions(Q,messageFont(conf$3)),ae=svgDraw$1.getTextObj();ae.x=G,ae.y=Z+10,ae.width=X-G,ae.class="messageText",ae.dy="1em",ae.text=Q,ae.fontFamily=conf$3.messageFontFamily,ae.fontSize=conf$3.messageFontSize,ae.fontWeight=conf$3.messageFontWeight,ae.anchor=conf$3.messageAlign,ae.valign="center",ae.textMargin=conf$3.wrapPadding,ae.tspan=!1,drawText$1(C,ae);const oe=ne.width;let se;G===X?conf$3.rightAngles?se=C.append("path").attr("d",`M ${G},${U} H ${G+Math.max(conf$3.width/2,oe/2)} V ${U+25} H ${G}`):se=C.append("path").attr("d","M "+G+","+U+" C "+(G+60)+","+(U-10)+" "+(G+60)+","+(U+30)+" "+G+","+(U+20)):(se=C.append("line"),se.attr("x1",G),se.attr("y1",U),se.attr("x2",X),se.attr("y2",U)),ee===W.db.LINETYPE.DOTTED||ee===W.db.LINETYPE.DOTTED_CROSS||ee===W.db.LINETYPE.DOTTED_POINT||ee===W.db.LINETYPE.DOTTED_OPEN?(se.style("stroke-dasharray","3, 3"),se.attr("class","messageLine1")):se.attr("class","messageLine0");let le="";conf$3.arrowMarkerAbsolute&&(le=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,le=le.replace(/\(/g,"\\("),le=le.replace(/\)/g,"\\)")),se.attr("stroke-width",2),se.attr("stroke","none"),se.style("fill","none"),(ee===W.db.LINETYPE.SOLID||ee===W.db.LINETYPE.DOTTED)&&se.attr("marker-end","url("+le+"#arrowhead)"),(ee===W.db.LINETYPE.SOLID_POINT||ee===W.db.LINETYPE.DOTTED_POINT)&&se.attr("marker-end","url("+le+"#filled-head)"),(ee===W.db.LINETYPE.SOLID_CROSS||ee===W.db.LINETYPE.DOTTED_CROSS)&&se.attr("marker-end","url("+le+"#crosshead)"),(te||conf$3.showSequenceNumbers)&&(se.attr("marker-start","url("+le+"#sequencenumber)"),C.append("text").attr("x",G).attr("y",U+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(ie))},drawActors=function(C,H,U,W,G,X,Z){if(G.hideUnusedParticipants===!0){const ne=new Set;X.forEach(ae=>{ne.add(ae.from),ne.add(ae.to)}),U=U.filter(ae=>ne.has(ae))}let Q=0,ee=0,ie=0,te;for(const ne of U){const ae=H[ne],oe=ae.box;te&&te!=oe&&(Z||bounds$1.models.addBox(te),ee+=conf$3.boxMargin+te.margin),oe&&oe!=te&&(Z||(oe.x=Q+ee,oe.y=W),ee+=oe.margin),ae.width=ae.width||conf$3.width,ae.height=Math.max(ae.height||conf$3.height,conf$3.height),ae.margin=ae.margin||conf$3.actorMargin,ae.x=Q+ee,ae.y=bounds$1.getVerticalPos();const se=svgDraw$1.drawActor(C,ae,conf$3,Z);ie=Math.max(ie,se),bounds$1.insert(ae.x,W,ae.x+ae.width,ae.height),Q+=ae.width+ee,ae.box&&(ae.box.width=Q+oe.margin-ae.box.x),ee=ae.margin,te=ae.box,bounds$1.models.addActor(ae)}te&&!Z&&bounds$1.models.addBox(te),bounds$1.bumpVerticalPos(ie)},drawActorsPopup=function(C,H,U,W){let G=0,X=0;for(const Z of U){const Q=H[Z],ee=getRequiredPopupWidth(Q),ie=svgDraw$1.drawPopup(C,Q,ee,conf$3,conf$3.forceMenus,W);ie.height>G&&(G=ie.height),ie.width+Q.x>X&&(X=ie.width+Q.x)}return{maxHeight:G,maxWidth:X}},setConf$4=function(C){assignWithDepth$1(conf$3,C),C.fontFamily&&(conf$3.actorFontFamily=conf$3.noteFontFamily=conf$3.messageFontFamily=C.fontFamily),C.fontSize&&(conf$3.actorFontSize=conf$3.noteFontSize=conf$3.messageFontSize=C.fontSize),C.fontWeight&&(conf$3.actorFontWeight=conf$3.noteFontWeight=conf$3.messageFontWeight=C.fontWeight)},actorActivations=function(C){return bounds$1.activations.filter(function(H){return H.actor===C})},activationBounds=function(C,H){const U=H[C],W=actorActivations(C),G=W.reduce(function(Z,Q){return Math.min(Z,Q.startx)},U.x+U.width/2),X=W.reduce(function(Z,Q){return Math.max(Z,Q.stopx)},U.x+U.width/2);return[G,X]};function adjustLoopHeightForWrap(C,H,U,W,G){bounds$1.bumpVerticalPos(U);let X=W;if(H.id&&H.message&&C[H.id]){const Z=C[H.id].width,Q=messageFont(conf$3);H.message=utils$d.wrapLabel(`[${H.message}]`,Z-2*conf$3.wrapPadding,Q),H.width=Z,H.wrap=!0;const ee=utils$d.calculateTextDimensions(H.message,Q),ie=Math.max(ee.height,conf$3.labelBoxHeight);X=W+ie,log$1.debug(`${ie} - ${H.message}`)}G(H),bounds$1.bumpVerticalPos(X)}const draw$4=function(C,H,U,W){const{securityLevel:G,sequence:X}=getConfig$1();conf$3=X,W.db.clear(),W.parser.parse(C);let Z;G==="sandbox"&&(Z=select("#i"+H));const Q=select(G==="sandbox"?Z.nodes()[0].contentDocument.body:"body"),ee=G==="sandbox"?Z.nodes()[0].contentDocument:document;bounds$1.init(),log$1.debug(W.db);const ie=G==="sandbox"?Q.select(`[id="${H}"]`):select(`[id="${H}"]`),te=W.db.getActors(),ne=W.db.getBoxes(),ae=W.db.getActorKeys(),oe=W.db.getMessages(),se=W.db.getDiagramTitle(),le=W.db.hasAtLeastOneBox(),ce=W.db.hasAtLeastOneBoxWithTitle(),ue=getMaxMessageWidthPerActor(te,oe,W);conf$3.height=calculateActorMargins(te,ue,ne),svgDraw$1.insertComputerIcon(ie),svgDraw$1.insertDatabaseIcon(ie),svgDraw$1.insertClockIcon(ie),le&&(bounds$1.bumpVerticalPos(conf$3.boxMargin),ce&&bounds$1.bumpVerticalPos(ne[0].textMaxHeight)),drawActors(ie,te,ae,0,conf$3,oe,!1);const de=calculateLoopBounds(oe,te,ue,W);svgDraw$1.insertArrowHead(ie),svgDraw$1.insertArrowCrossHead(ie),svgDraw$1.insertArrowFilledHead(ie),svgDraw$1.insertSequenceNumber(ie);function ve(Te,xe){const ke=bounds$1.endActivation(Te);ke.starty+18>xe&&(ke.starty=xe-6,xe+=12),svgDraw$1.drawActivation(ie,ke,xe,conf$3,actorActivations(Te.from.actor).length),bounds$1.insert(ke.startx,xe-10,ke.stopx,xe)}let ge=1,he=1;const me=[];oe.forEach(function(Te){let xe,ke,Ie;switch(Te.type){case W.db.LINETYPE.NOTE:ke=Te.noteModel,drawNote$1(ie,ke);break;case W.db.LINETYPE.ACTIVE_START:bounds$1.newActivation(Te,ie,te);break;case W.db.LINETYPE.ACTIVE_END:ve(Te,bounds$1.getVerticalPos());break;case W.db.LINETYPE.LOOP_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.LOOP_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"loop",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;case W.db.LINETYPE.RECT_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin,Ae=>bounds$1.newLoop(void 0,Ae.message));break;case W.db.LINETYPE.RECT_END:xe=bounds$1.endLoop(),svgDraw$1.drawBackgroundRect(ie,xe),bounds$1.models.addLoop(xe),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos());break;case W.db.LINETYPE.OPT_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.OPT_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"opt",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;case W.db.LINETYPE.ALT_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.ALT_ELSE:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin+conf$3.boxTextMargin,conf$3.boxMargin,Ae=>bounds$1.addSectionToLoop(Ae));break;case W.db.LINETYPE.ALT_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"alt",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;case W.db.LINETYPE.PAR_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.PAR_AND:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin+conf$3.boxTextMargin,conf$3.boxMargin,Ae=>bounds$1.addSectionToLoop(Ae));break;case W.db.LINETYPE.PAR_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"par",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;case W.db.LINETYPE.AUTONUMBER:ge=Te.message.start||ge,he=Te.message.step||he,Te.message.visible?W.db.enableSequenceNumbers():W.db.disableSequenceNumbers();break;case W.db.LINETYPE.CRITICAL_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.CRITICAL_OPTION:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin+conf$3.boxTextMargin,conf$3.boxMargin,Ae=>bounds$1.addSectionToLoop(Ae));break;case W.db.LINETYPE.CRITICAL_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"critical",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;case W.db.LINETYPE.BREAK_START:adjustLoopHeightForWrap(de,Te,conf$3.boxMargin,conf$3.boxMargin+conf$3.boxTextMargin,Ae=>bounds$1.newLoop(Ae));break;case W.db.LINETYPE.BREAK_END:xe=bounds$1.endLoop(),svgDraw$1.drawLoop(ie,xe,"break",conf$3),bounds$1.bumpVerticalPos(xe.stopy-bounds$1.getVerticalPos()),bounds$1.models.addLoop(xe);break;default:try{Ie=Te.msgModel,Ie.starty=bounds$1.getVerticalPos(),Ie.sequenceIndex=ge,Ie.sequenceVisible=W.db.showSequenceNumbers();const Ae=boundMessage(ie,Ie);me.push({messageModel:Ie,lineStartY:Ae}),bounds$1.models.addMessage(Ie)}catch(Ae){log$1.error("error while drawing message",Ae)}}[W.db.LINETYPE.SOLID_OPEN,W.db.LINETYPE.DOTTED_OPEN,W.db.LINETYPE.SOLID,W.db.LINETYPE.DOTTED,W.db.LINETYPE.SOLID_CROSS,W.db.LINETYPE.DOTTED_CROSS,W.db.LINETYPE.SOLID_POINT,W.db.LINETYPE.DOTTED_POINT].includes(Te.type)&&(ge=ge+he)}),me.forEach(Te=>drawMessage(ie,Te.messageModel,Te.lineStartY,W)),conf$3.mirrorActors&&(bounds$1.bumpVerticalPos(conf$3.boxMargin*2),drawActors(ie,te,ae,bounds$1.getVerticalPos(),conf$3,oe,!0),bounds$1.bumpVerticalPos(conf$3.boxMargin),fixLifeLineHeights(ie,bounds$1.getVerticalPos())),bounds$1.models.boxes.forEach(function(Te){Te.height=bounds$1.getVerticalPos()-Te.y,bounds$1.insert(Te.x,Te.y,Te.x+Te.width,Te.height),Te.startx=Te.x,Te.starty=Te.y,Te.stopx=Te.startx+Te.width,Te.stopy=Te.starty+Te.height,Te.stroke="rgb(0,0,0, 0.5)",svgDraw$1.drawBox(ie,Te,conf$3)}),le&&bounds$1.bumpVerticalPos(conf$3.boxMargin);const _e=drawActorsPopup(ie,te,ae,ee),{bounds:be}=bounds$1.getBounds();log$1.debug("For line height fix Querying: #"+H+" .actor-line"),selectAll("#"+H+" .actor-line").attr("y2",be.stopy);let fe=be.stopy-be.starty;fe<_e.maxHeight&&(fe=_e.maxHeight);let ye=fe+2*conf$3.diagramMarginY;conf$3.mirrorActors&&(ye=ye-conf$3.boxMargin+conf$3.bottomMarginAdj);let $e=be.stopx-be.startx;$e<_e.maxWidth&&($e=_e.maxWidth);const we=$e+2*conf$3.diagramMarginX;se&&ie.append("text").text(se).attr("x",(be.stopx-be.startx)/2-2*conf$3.diagramMarginX).attr("y",-25),configureSvgSize(ie,ye,we,conf$3.useMaxWidth);const Se=se?40:0;ie.attr("viewBox",be.startx-conf$3.diagramMarginX+" -"+(conf$3.diagramMarginY+Se)+" "+we+" "+(ye+Se)),log$1.debug("models:",bounds$1.models)};function getMaxMessageWidthPerActor(C,H,U){const W={};return H.forEach(function(G){if(C[G.to]&&C[G.from]){const X=C[G.to];if(G.placement===U.db.PLACEMENT.LEFTOF&&!X.prevActor||G.placement===U.db.PLACEMENT.RIGHTOF&&!X.nextActor)return;const Z=G.placement!==void 0,Q=!Z,ee=Z?noteFont(conf$3):messageFont(conf$3),ie=G.wrap?utils$d.wrapLabel(G.message,conf$3.width-2*conf$3.wrapPadding,ee):G.message,ne=utils$d.calculateTextDimensions(ie,ee).width+2*conf$3.wrapPadding;Q&&G.from===X.nextActor?W[G.to]=Math.max(W[G.to]||0,ne):Q&&G.from===X.prevActor?W[G.from]=Math.max(W[G.from]||0,ne):Q&&G.from===G.to?(W[G.from]=Math.max(W[G.from]||0,ne/2),W[G.to]=Math.max(W[G.to]||0,ne/2)):G.placement===U.db.PLACEMENT.RIGHTOF?W[G.from]=Math.max(W[G.from]||0,ne):G.placement===U.db.PLACEMENT.LEFTOF?W[X.prevActor]=Math.max(W[X.prevActor]||0,ne):G.placement===U.db.PLACEMENT.OVER&&(X.prevActor&&(W[X.prevActor]=Math.max(W[X.prevActor]||0,ne/2)),X.nextActor&&(W[G.from]=Math.max(W[G.from]||0,ne/2)))}}),log$1.debug("maxMessageWidthPerActor:",W),W}const getRequiredPopupWidth=function(C){let H=0;const U=actorFont(conf$3);for(const W in C.links){const X=utils$d.calculateTextDimensions(W,U).width+2*conf$3.wrapPadding+2*conf$3.boxMargin;H<X&&(H=X)}return H};function calculateActorMargins(C,H,U){let W=0;Object.keys(C).forEach(X=>{const Z=C[X];Z.wrap&&(Z.description=utils$d.wrapLabel(Z.description,conf$3.width-2*conf$3.wrapPadding,actorFont(conf$3)));const Q=utils$d.calculateTextDimensions(Z.description,actorFont(conf$3));Z.width=Z.wrap?conf$3.width:Math.max(conf$3.width,Q.width+2*conf$3.wrapPadding),Z.height=Z.wrap?Math.max(Q.height,conf$3.height):conf$3.height,W=Math.max(W,Z.height)});for(const X in H){const Z=C[X];if(!Z)continue;const Q=C[Z.nextActor];if(!Q){const ne=H[X]+conf$3.actorMargin-Z.width/2;Z.margin=Math.max(ne,conf$3.actorMargin);continue}const ie=H[X]+conf$3.actorMargin-Z.width/2-Q.width/2;Z.margin=Math.max(ie,conf$3.actorMargin)}let G=0;return U.forEach(X=>{const Z=messageFont(conf$3);let Q=X.actorKeys.reduce((te,ne)=>te+=C[ne].width+(C[ne].margin||0),0);Q-=2*conf$3.boxTextMargin,X.wrap&&(X.name=utils$d.wrapLabel(X.name,Q-2*conf$3.wrapPadding,Z));const ee=utils$d.calculateTextDimensions(X.name,Z);G=Math.max(ee.height,G);const ie=Math.max(Q,ee.width+2*conf$3.wrapPadding);if(X.margin=conf$3.boxTextMargin,Q<ie){const te=(ie-Q)/2;X.margin+=te}}),U.forEach(X=>X.textMaxHeight=G),Math.max(W,conf$3.height)}const buildNoteModel=function(C,H,U){const W=H[C.from].x,G=H[C.to].x,X=C.wrap&&C.message;let Z=utils$d.calculateTextDimensions(X?utils$d.wrapLabel(C.message,conf$3.width,noteFont(conf$3)):C.message,noteFont(conf$3));const Q={width:X?conf$3.width:Math.max(conf$3.width,Z.width+2*conf$3.noteMargin),height:0,startx:H[C.from].x,stopx:0,starty:0,stopy:0,message:C.message};return C.placement===U.db.PLACEMENT.RIGHTOF?(Q.width=X?Math.max(conf$3.width,Z.width):Math.max(H[C.from].width/2+H[C.to].width/2,Z.width+2*conf$3.noteMargin),Q.startx=W+(H[C.from].width+conf$3.actorMargin)/2):C.placement===U.db.PLACEMENT.LEFTOF?(Q.width=Math.max(X?conf$3.width:H[C.from].width/2+H[C.to].width/2,Z.width+2*conf$3.noteMargin),Q.startx=W-Q.width+(H[C.from].width-conf$3.actorMargin)/2):C.to===C.from?(Z=utils$d.calculateTextDimensions(X?utils$d.wrapLabel(C.message,Math.max(conf$3.width,H[C.from].width),noteFont(conf$3)):C.message,noteFont(conf$3)),Q.width=X?Math.max(conf$3.width,H[C.from].width):Math.max(H[C.from].width,conf$3.width,Z.width+2*conf$3.noteMargin),Q.startx=W+(H[C.from].width-Q.width)/2):(Q.width=Math.abs(W+H[C.from].width/2-(G+H[C.to].width/2))+conf$3.actorMargin,Q.startx=W<G?W+H[C.from].width/2-conf$3.actorMargin/2:G+H[C.to].width/2-conf$3.actorMargin/2),X&&(Q.message=utils$d.wrapLabel(C.message,Q.width-2*conf$3.wrapPadding,noteFont(conf$3))),log$1.debug(`NM:[${Q.startx},${Q.stopx},${Q.starty},${Q.stopy}:${Q.width},${Q.height}=${C.message}]`),Q},buildMessageModel=function(C,H,U){let W=!1;if([U.db.LINETYPE.SOLID_OPEN,U.db.LINETYPE.DOTTED_OPEN,U.db.LINETYPE.SOLID,U.db.LINETYPE.DOTTED,U.db.LINETYPE.SOLID_CROSS,U.db.LINETYPE.DOTTED_CROSS,U.db.LINETYPE.SOLID_POINT,U.db.LINETYPE.DOTTED_POINT].includes(C.type)&&(W=!0),!W)return{};const G=activationBounds(C.from,H),X=activationBounds(C.to,H),Z=G[0]<=X[0]?1:0,Q=G[0]<X[0]?0:1,ee=[...G,...X],ie=Math.abs(X[Q]-G[Z]);C.wrap&&C.message&&(C.message=utils$d.wrapLabel(C.message,Math.max(ie+2*conf$3.wrapPadding,conf$3.width),messageFont(conf$3)));const te=utils$d.calculateTextDimensions(C.message,messageFont(conf$3));return{width:Math.max(C.wrap?0:te.width+2*conf$3.wrapPadding,ie+2*conf$3.wrapPadding,conf$3.width),height:0,startx:G[Z],stopx:X[Q],starty:0,stopy:0,message:C.message,type:C.type,wrap:C.wrap,fromBounds:Math.min.apply(null,ee),toBounds:Math.max.apply(null,ee)}},calculateLoopBounds=function(C,H,U,W){const G={},X=[];let Z,Q,ee;return C.forEach(function(ie){switch(ie.id=utils$d.random({length:10}),ie.type){case W.db.LINETYPE.LOOP_START:case W.db.LINETYPE.ALT_START:case W.db.LINETYPE.OPT_START:case W.db.LINETYPE.PAR_START:case W.db.LINETYPE.CRITICAL_START:case W.db.LINETYPE.BREAK_START:X.push({id:ie.id,msg:ie.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case W.db.LINETYPE.ALT_ELSE:case W.db.LINETYPE.PAR_AND:case W.db.LINETYPE.CRITICAL_OPTION:ie.message&&(Z=X.pop(),G[Z.id]=Z,G[ie.id]=Z,X.push(Z));break;case W.db.LINETYPE.LOOP_END:case W.db.LINETYPE.ALT_END:case W.db.LINETYPE.OPT_END:case W.db.LINETYPE.PAR_END:case W.db.LINETYPE.CRITICAL_END:case W.db.LINETYPE.BREAK_END:Z=X.pop(),G[Z.id]=Z;break;case W.db.LINETYPE.ACTIVE_START:{const ne=H[ie.from?ie.from.actor:ie.to.actor],ae=actorActivations(ie.from?ie.from.actor:ie.to.actor).length,oe=ne.x+ne.width/2+(ae-1)*conf$3.activationWidth/2,se={startx:oe,stopx:oe+conf$3.activationWidth,actor:ie.from.actor,enabled:!0};bounds$1.activations.push(se)}break;case W.db.LINETYPE.ACTIVE_END:{const ne=bounds$1.activations.map(ae=>ae.actor).lastIndexOf(ie.from.actor);delete bounds$1.activations.splice(ne,1)[0]}break}ie.placement!==void 0?(Q=buildNoteModel(ie,H,W),ie.noteModel=Q,X.forEach(ne=>{Z=ne,Z.from=Math.min(Z.from,Q.startx),Z.to=Math.max(Z.to,Q.startx+Q.width),Z.width=Math.max(Z.width,Math.abs(Z.from-Z.to))-conf$3.labelBoxWidth})):(ee=buildMessageModel(ie,H,W),ie.msgModel=ee,ee.startx&&ee.stopx&&X.length>0&&X.forEach(ne=>{if(Z=ne,ee.startx===ee.stopx){const ae=H[ie.from],oe=H[ie.to];Z.from=Math.min(ae.x-ee.width/2,ae.x-ae.width/2,Z.from),Z.to=Math.max(oe.x+ee.width/2,oe.x+ae.width/2,Z.to),Z.width=Math.max(Z.width,Math.abs(Z.to-Z.from))-conf$3.labelBoxWidth}else Z.from=Math.min(ee.startx,Z.from),Z.to=Math.max(ee.stopx,Z.to),Z.width=Math.max(Z.width,ee.width)-conf$3.labelBoxWidth}))}),bounds$1.activations=[],log$1.debug("Loop type widths:",G),G},sequenceRenderer={bounds:bounds$1,drawActors,drawActorsPopup,setConf:setConf$4,draw:draw$4};var parser$1=function(){var C=function(Me,Fe,Be,Ne){for(Be=Be||{},Ne=Me.length;Ne--;Be[Me[Ne]]=Fe);return Be},H=[1,2],U=[1,3],W=[1,5],G=[1,7],X=[2,5],Z=[1,15],Q=[1,17],ee=[1,21],ie=[1,22],te=[1,23],ne=[1,24],ae=[1,37],oe=[1,25],se=[1,26],le=[1,27],ce=[1,28],ue=[1,29],de=[1,32],ve=[1,33],ge=[1,34],he=[1,35],me=[1,36],_e=[1,39],be=[1,40],pe=[1,41],fe=[1,42],ye=[1,38],$e=[1,45],we=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Se=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Te=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],xe=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ke={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(Fe,Be,Ne,Ve,Le,De,Je){var ze=De.length-1;switch(Le){case 4:return Ve.setRootDoc(De[ze]),De[ze];case 5:this.$=[];break;case 6:De[ze]!="nl"&&(De[ze-1].push(De[ze]),this.$=De[ze-1]);break;case 7:case 8:this.$=De[ze];break;case 9:this.$="nl";break;case 12:this.$=De[ze];break;case 13:const Ee=De[ze-1];Ee.description=Ve.trimColon(De[ze]),this.$=Ee;break;case 14:this.$={stmt:"relation",state1:De[ze-2],state2:De[ze]};break;case 15:const Ce=Ve.trimColon(De[ze]);this.$={stmt:"relation",state1:De[ze-3],state2:De[ze-1],description:Ce};break;case 19:this.$={stmt:"state",id:De[ze-3],type:"default",description:"",doc:De[ze-1]};break;case 20:var Ge=De[ze],qe=De[ze-2].trim();if(De[ze].match(":")){var Ke=De[ze].split(":");Ge=Ke[0],qe=[qe,Ke[1]]}this.$={stmt:"state",id:Ge,type:"default",description:qe};break;case 21:this.$={stmt:"state",id:De[ze-3],type:"default",description:De[ze-5],doc:De[ze-1]};break;case 22:this.$={stmt:"state",id:De[ze],type:"fork"};break;case 23:this.$={stmt:"state",id:De[ze],type:"join"};break;case 24:this.$={stmt:"state",id:De[ze],type:"choice"};break;case 25:this.$={stmt:"state",id:Ve.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:De[ze-1].trim(),note:{position:De[ze-2].trim(),text:De[ze].trim()}};break;case 30:this.$=De[ze].trim(),Ve.setAccTitle(this.$);break;case 31:case 32:this.$=De[ze].trim(),Ve.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:De[ze-1].trim(),classes:De[ze].trim()};break;case 35:this.$={stmt:"applyClass",id:De[ze-1].trim(),styleClass:De[ze].trim()};break;case 38:Ve.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:Ve.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:Ve.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:Ve.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:De[ze].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:De[ze-2].trim(),classes:[De[ze].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:De[ze-2].trim(),classes:[De[ze].trim()],type:"default",description:""};break;case 50:Ve.parseDirective("%%{","open_directive");break;case 51:Ve.parseDirective(De[ze],"type_directive");break;case 52:De[ze]=De[ze].trim().replace(/'/g,'"'),Ve.parseDirective(De[ze],"arg_directive");break;case 53:Ve.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:H,5:U,6:4,7:W,45:6,60:G},{1:[3]},{3:8,4:H,5:U,6:4,7:W,45:6,60:G},{3:9,4:H,5:U,6:4,7:W,45:6,60:G},{3:10,4:H,5:U,6:4,7:W,45:6,60:G},C([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],X,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:Z,5:Q,6:30,9:14,10:16,11:18,12:19,13:20,16:ee,17:ie,19:te,22:ne,24:ae,25:oe,26:se,27:le,28:ce,29:ue,32:31,33:de,35:ve,37:ge,38:he,42:me,45:6,50:_e,51:be,52:pe,53:fe,56:ye,60:G},{47:43,48:[1,44],63:$e},C([48,63],[2,51]),C(we,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:ee,17:ie,19:te,22:ne,24:ae,25:oe,26:se,27:le,28:ce,29:ue,32:31,33:de,35:ve,37:ge,38:he,42:me,45:6,50:_e,51:be,52:pe,53:fe,56:ye,60:G},C(we,[2,8]),C(we,[2,9]),C(we,[2,10]),C(we,[2,11]),C(we,[2,12],{14:[1,47],15:[1,48]}),C(we,[2,16]),{18:[1,49]},C(we,[2,18],{20:[1,50]}),{23:[1,51]},C(we,[2,22]),C(we,[2,23]),C(we,[2,24]),C(we,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},C(we,[2,28]),C(we,[2,29]),{34:[1,56]},{36:[1,57]},C(we,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},C(Se,[2,44],{57:[1,61]}),C(Se,[2,45],{57:[1,62]}),C(we,[2,38]),C(we,[2,39]),C(we,[2,40]),C(we,[2,41]),C(Te,[2,36]),{49:63,62:[1,64]},C(Te,[2,53]),C(we,[2,7]),C(we,[2,13]),{13:65,24:ae,56:ye},C(we,[2,17]),C(xe,X,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},C(we,[2,30]),C(we,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:$e},{63:[2,52]},C(we,[2,14],{14:[1,76]}),{4:Z,5:Q,6:30,9:14,10:16,11:18,12:19,13:20,16:ee,17:ie,19:te,21:[1,77],22:ne,24:ae,25:oe,26:se,27:le,28:ce,29:ue,32:31,33:de,35:ve,37:ge,38:he,42:me,45:6,50:_e,51:be,52:pe,53:fe,56:ye,60:G},C(we,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},C(we,[2,33]),C(we,[2,34]),C(we,[2,35]),C(Se,[2,46]),C(Se,[2,47]),C(Te,[2,37]),C(we,[2,15]),C(we,[2,19]),C(xe,X,{8:81}),C(we,[2,26]),C(we,[2,27]),{4:Z,5:Q,6:30,9:14,10:16,11:18,12:19,13:20,16:ee,17:ie,19:te,21:[1,82],22:ne,24:ae,25:oe,26:se,27:le,28:ce,29:ue,32:31,33:de,35:ve,37:ge,38:he,42:me,45:6,50:_e,51:be,52:pe,53:fe,56:ye,60:G},C(we,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(Fe,Be){if(Be.recoverable)this.trace(Fe);else{var Ne=new Error(Fe);throw Ne.hash=Be,Ne}},parse:function(Fe){var Be=this,Ne=[0],Ve=[],Le=[null],De=[],Je=this.table,ze="",Ge=0,qe=0,Ke=2,Ee=1,Ce=De.slice.call(arguments,1),Pe=Object.create(this.lexer),Re={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Re.yy[Ze]=this.yy[Ze]);Pe.setInput(Fe,Re.yy),Re.yy.lexer=Pe,Re.yy.parser=this,typeof Pe.yylloc>"u"&&(Pe.yylloc={});var Oe=Pe.yylloc;De.push(Oe);var Qe=Pe.options&&Pe.options.ranges;typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var pt;return pt=Ve.pop()||Pe.lex()||Ee,typeof pt!="number"&&(pt instanceof Array&&(Ve=pt,pt=Ve.pop()),pt=Be.symbols_[pt]||pt),pt}for(var et,We,He,Ye,nt={},tt,at,St,st;;){if(We=Ne[Ne.length-1],this.defaultActions[We]?He=this.defaultActions[We]:((et===null||typeof et>"u")&&(et=Xe()),He=Je[We]&&Je[We][et]),typeof He>"u"||!He.length||!He[0]){var it="";st=[];for(tt in Je[We])this.terminals_[tt]&&tt>Ke&&st.push("'"+this.terminals_[tt]+"'");Pe.showPosition?it="Parse error on line "+(Ge+1)+`:
|
||
`+Pe.showPosition()+`
|
||
Expecting `+st.join(", ")+", got '"+(this.terminals_[et]||et)+"'":it="Parse error on line "+(Ge+1)+": Unexpected "+(et==Ee?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(it,{text:Pe.match,token:this.terminals_[et]||et,line:Pe.yylineno,loc:Oe,expected:st})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+We+", token: "+et);switch(He[0]){case 1:Ne.push(et),Le.push(Pe.yytext),De.push(Pe.yylloc),Ne.push(He[1]),et=null,qe=Pe.yyleng,ze=Pe.yytext,Ge=Pe.yylineno,Oe=Pe.yylloc;break;case 2:if(at=this.productions_[He[1]][1],nt.$=Le[Le.length-at],nt._$={first_line:De[De.length-(at||1)].first_line,last_line:De[De.length-1].last_line,first_column:De[De.length-(at||1)].first_column,last_column:De[De.length-1].last_column},Qe&&(nt._$.range=[De[De.length-(at||1)].range[0],De[De.length-1].range[1]]),Ye=this.performAction.apply(nt,[ze,qe,Ge,Re.yy,He[1],Le,De].concat(Ce)),typeof Ye<"u")return Ye;at&&(Ne=Ne.slice(0,-1*at*2),Le=Le.slice(0,-1*at),De=De.slice(0,-1*at)),Ne.push(this.productions_[He[1]][0]),Le.push(nt.$),De.push(nt._$),St=Je[Ne[Ne.length-2]][Ne[Ne.length-1]],Ne.push(St);break;case 3:return!0}}return!0}},Ie=function(){var Me={EOF:1,parseError:function(Be,Ne){if(this.yy.parser)this.yy.parser.parseError(Be,Ne);else throw new Error(Be)},setInput:function(Fe,Be){return this.yy=Be||this.yy||{},this._input=Fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Fe=this._input[0];this.yytext+=Fe,this.yyleng++,this.offset++,this.match+=Fe,this.matched+=Fe;var Be=Fe.match(/(?:\r\n?|\n).*/g);return Be?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Fe},unput:function(Fe){var Be=Fe.length,Ne=Fe.split(/(?:\r\n?|\n)/g);this._input=Fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Be),this.offset-=Be;var Ve=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ne.length-1&&(this.yylineno-=Ne.length-1);var Le=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ne?(Ne.length===Ve.length?this.yylloc.first_column:0)+Ve[Ve.length-Ne.length].length-Ne[0].length:this.yylloc.first_column-Be},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-Be]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Fe){this.unput(this.match.slice(Fe))},pastInput:function(){var Fe=this.matched.substr(0,this.matched.length-this.match.length);return(Fe.length>20?"...":"")+Fe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Fe=this.match;return Fe.length<20&&(Fe+=this._input.substr(0,20-Fe.length)),(Fe.substr(0,20)+(Fe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Fe=this.pastInput(),Be=new Array(Fe.length+1).join("-");return Fe+this.upcomingInput()+`
|
||
`+Be+"^"},test_match:function(Fe,Be){var Ne,Ve,Le;if(this.options.backtrack_lexer&&(Le={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Le.yylloc.range=this.yylloc.range.slice(0))),Ve=Fe[0].match(/(?:\r\n?|\n).*/g),Ve&&(this.yylineno+=Ve.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ve?Ve[Ve.length-1].length-Ve[Ve.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Fe[0].length},this.yytext+=Fe[0],this.match+=Fe[0],this.matches=Fe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Fe[0].length),this.matched+=Fe[0],Ne=this.performAction.call(this,this.yy,this,Be,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ne)return Ne;if(this._backtrack){for(var De in Le)this[De]=Le[De];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Fe,Be,Ne,Ve;this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),De=0;De<Le.length;De++)if(Ne=this._input.match(this.rules[Le[De]]),Ne&&(!Be||Ne[0].length>Be[0].length)){if(Be=Ne,Ve=De,this.options.backtrack_lexer){if(Fe=this.test_match(Ne,Le[De]),Fe!==!1)return Fe;if(this._backtrack){Be=!1;continue}else return!1}else if(!this.options.flex)break}return Be?(Fe=this.test_match(Be,Le[Ve]),Fe!==!1?Fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Be=this.next();return Be||this.lex()},begin:function(Be){this.conditionStack.push(Be)},popState:function(){var Be=this.conditionStack.length-1;return Be>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Be){return Be=this.conditionStack.length-1-Math.abs(Be||0),Be>=0?this.conditionStack[Be]:"INITIAL"},pushState:function(Be){this.begin(Be)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Be,Ne,Ve,Le){switch(Ve){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),Ne.yytext=Ne.yytext.substr(2).trim(),31;case 69:return this.popState(),Ne.yytext=Ne.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return Ne.yytext=Ne.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};return Me}();ke.lexer=Ie;function Ae(){this.yy={}}return Ae.prototype=ke,ke.Parser=Ae,new Ae}();parser$1.parser=parser$1;const stateParser=parser$1,stateDetector=(C,H)=>{var U;return((U=H==null?void 0:H.state)==null?void 0:U.defaultRenderer)==="dagre-wrapper"?!1:C.match(/^\s*stateDiagram/)!==null},stateDetectorV2=(C,H)=>{var U;return!!(C.match(/^\s*stateDiagram-v2/)!==null||C.match(/^\s*stateDiagram/)&&((U=H==null?void 0:H.state)==null?void 0:U.defaultRenderer)==="dagre-wrapper")},DEFAULT_DIAGRAM_DIRECTION="LR",DEFAULT_NESTED_DOC_DIR="TB",STMT_STATE="state",STMT_RELATION="relation",STMT_CLASSDEF="classDef",STMT_APPLYCLASS="applyClass",DEFAULT_STATE_TYPE="default",DIVIDER_TYPE="divider",START_NODE="[*]",START_TYPE="start",END_NODE=START_NODE,END_TYPE="end",COLOR_KEYWORD="color",FILL_KEYWORD="fill",BG_FILL="bgFill",STYLECLASS_SEP=",";function newClassesList(){return{}}let direction=DEFAULT_DIAGRAM_DIRECTION,rootDoc=[],classes=newClassesList();const newDoc=()=>({relations:[],states:{},documents:{}});let documents={root:newDoc()},currentDocument=documents.root,startEndCount=0,dividerCnt=0;const lineType={LINE:0,DOTTED_LINE:1},relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},clone=C=>JSON.parse(JSON.stringify(C)),parseDirective$1=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},setRootDoc=C=>{log$1.info("Setting root doc",C),rootDoc=C},getRootDoc=()=>rootDoc,docTranslator=(C,H,U)=>{if(H.stmt===STMT_RELATION)docTranslator(C,H.state1,!0),docTranslator(C,H.state2,!1);else if(H.stmt===STMT_STATE&&(H.id==="[*]"?(H.id=U?C.id+"_start":C.id+"_end",H.start=U):H.id=H.id.trim()),H.doc){const W=[];let G=[],X;for(X=0;X<H.doc.length;X++)if(H.doc[X].type===DIVIDER_TYPE){const Z=clone(H.doc[X]);Z.doc=clone(G),W.push(Z),G=[]}else G.push(H.doc[X]);if(W.length>0&&G.length>0){const Z={stmt:STMT_STATE,id:generateId$1(),type:"divider",doc:clone(G)};W.push(clone(Z)),H.doc=W}H.doc.forEach(Z=>docTranslator(H,Z,!0))}},getRootDocV2=()=>(docTranslator({id:"root"},{id:"root",doc:rootDoc},!0),{id:"root",doc:rootDoc}),extract=C=>{let H;C.doc?H=C.doc:H=C,log$1.info(H),clear$1(!0),log$1.info("Extract",H),H.forEach(U=>{switch(U.stmt){case STMT_STATE:addState(U.id.trim(),U.type,U.doc,U.description,U.note,U.classes,U.styles,U.textStyles);break;case STMT_RELATION:addRelation(U.state1,U.state2,U.description);break;case STMT_CLASSDEF:addStyleClass(U.id.trim(),U.classes);break;case STMT_APPLYCLASS:setCssClass(U.id.trim(),U.styleClass);break}})},addState=function(C,H=DEFAULT_STATE_TYPE,U=null,W=null,G=null,X=null,Z=null,Q=null){const ee=C==null?void 0:C.trim();currentDocument.states[ee]===void 0?(log$1.info("Adding state ",ee,W),currentDocument.states[ee]={id:ee,descriptions:[],type:H,doc:U,note:G,classes:[],styles:[],textStyles:[]}):(currentDocument.states[ee].doc||(currentDocument.states[ee].doc=U),currentDocument.states[ee].type||(currentDocument.states[ee].type=H)),W&&(log$1.info("Setting state description",ee,W),typeof W=="string"&&addDescription(ee,W.trim()),typeof W=="object"&&W.forEach(ie=>addDescription(ee,ie.trim()))),G&&(currentDocument.states[ee].note=G,currentDocument.states[ee].note.text=common$1.sanitizeText(currentDocument.states[ee].note.text,getConfig$1())),X&&(log$1.info("Setting state classes",ee,X),(typeof X=="string"?[X]:X).forEach(te=>setCssClass(ee,te.trim()))),Z&&(log$1.info("Setting state styles",ee,Z),(typeof Z=="string"?[Z]:Z).forEach(te=>setStyle(ee,te.trim()))),Q&&(log$1.info("Setting state styles",ee,Z),(typeof Q=="string"?[Q]:Q).forEach(te=>setTextStyle(ee,te.trim())))},clear$1=function(C){documents={root:newDoc()},currentDocument=documents.root,startEndCount=0,classes=newClassesList(),C||clear$g()},getState=function(C){return currentDocument.states[C]},getStates=function(){return currentDocument.states},logDocuments=function(){log$1.info("Documents = ",documents)},getRelations=function(){return currentDocument.relations};function startIdIfNeeded(C=""){let H=C;return C===START_NODE&&(startEndCount++,H=`${START_TYPE}${startEndCount}`),H}function startTypeIfNeeded(C="",H=DEFAULT_STATE_TYPE){return C===START_NODE?START_TYPE:H}function endIdIfNeeded(C=""){let H=C;return C===END_NODE&&(startEndCount++,H=`${END_TYPE}${startEndCount}`),H}function endTypeIfNeeded(C="",H=DEFAULT_STATE_TYPE){return C===END_NODE?END_TYPE:H}function addRelationObjs(C,H,U){let W=startIdIfNeeded(C.id.trim()),G=startTypeIfNeeded(C.id.trim(),C.type),X=startIdIfNeeded(H.id.trim()),Z=startTypeIfNeeded(H.id.trim(),H.type);addState(W,G,C.doc,C.description,C.note,C.classes,C.styles,C.textStyles),addState(X,Z,H.doc,H.description,H.note,H.classes,H.styles,H.textStyles),currentDocument.relations.push({id1:W,id2:X,relationTitle:common$1.sanitizeText(U,getConfig$1())})}const addRelation=function(C,H,U){if(typeof C=="object")addRelationObjs(C,H,U);else{const W=startIdIfNeeded(C.trim()),G=startTypeIfNeeded(C),X=endIdIfNeeded(H.trim()),Z=endTypeIfNeeded(H);addState(W,G),addState(X,Z),currentDocument.relations.push({id1:W,id2:X,title:common$1.sanitizeText(U,getConfig$1())})}},addDescription=function(C,H){const U=currentDocument.states[C],W=H.startsWith(":")?H.replace(":","").trim():H;U.descriptions.push(common$1.sanitizeText(W,getConfig$1()))},cleanupLabel=function(C){return C.substring(0,1)===":"?C.substr(2).trim():C.trim()},getDividerId=()=>(dividerCnt++,"divider-id-"+dividerCnt),addStyleClass=function(C,H=""){classes[C]===void 0&&(classes[C]={id:C,styles:[],textStyles:[]});const U=classes[C];H!=null&&H.split(STYLECLASS_SEP).forEach(W=>{const G=W.replace(/([^;]*);/,"$1").trim();if(W.match(COLOR_KEYWORD)){const Z=G.replace(FILL_KEYWORD,BG_FILL).replace(COLOR_KEYWORD,FILL_KEYWORD);U.textStyles.push(Z)}U.styles.push(G)})},getClasses$1=function(){return classes},setCssClass=function(C,H){C.split(",").forEach(function(U){let W=getState(U);if(W===void 0){const G=U.trim();addState(G),W=getState(G)}W.classes.push(H)})},setStyle=function(C,H){const U=getState(C);U!==void 0&&U.textStyles.push(H)},setTextStyle=function(C,H){const U=getState(C);U!==void 0&&U.textStyles.push(H)},getDirection=()=>direction,setDirection=C=>{direction=C},trimColon=C=>C&&C[0]===":"?C.substr(1).trim():C.trim(),stateDb={parseDirective:parseDirective$1,getConfig:()=>getConfig$1().state,addState,clear:clear$1,getState,getStates,getRelations,getClasses:getClasses$1,getDirection,addRelation,getDividerId,setDirection,cleanupLabel,lineType,relationType,logDocuments,getRootDoc,setRootDoc,getRootDocV2,extract,trimColon,getAccTitle,setAccTitle,getAccDescription,setAccDescription,addStyleClass,setCssClass,addDescription,setDiagramTitle,getDiagramTitle},drawStartState=C=>C.append("circle").attr("class","start-state").attr("r",getConfig$1().state.sizeUnit).attr("cx",getConfig$1().state.padding+getConfig$1().state.sizeUnit).attr("cy",getConfig$1().state.padding+getConfig$1().state.sizeUnit),drawDivider=C=>C.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",getConfig$1().state.textHeight).attr("class","divider").attr("x2",getConfig$1().state.textHeight*2).attr("y1",0).attr("y2",0),drawSimpleState=(C,H)=>{const U=C.append("text").attr("x",2*getConfig$1().state.padding).attr("y",getConfig$1().state.textHeight+2*getConfig$1().state.padding).attr("font-size",getConfig$1().state.fontSize).attr("class","state-title").text(H.id),W=U.node().getBBox();return C.insert("rect",":first-child").attr("x",getConfig$1().state.padding).attr("y",getConfig$1().state.padding).attr("width",W.width+2*getConfig$1().state.padding).attr("height",W.height+2*getConfig$1().state.padding).attr("rx",getConfig$1().state.radius),U},drawDescrState=(C,H)=>{const U=function(ae,oe,se){const le=ae.append("tspan").attr("x",2*getConfig$1().state.padding).text(oe);se||le.attr("dy",getConfig$1().state.textHeight)},G=C.append("text").attr("x",2*getConfig$1().state.padding).attr("y",getConfig$1().state.textHeight+1.3*getConfig$1().state.padding).attr("font-size",getConfig$1().state.fontSize).attr("class","state-title").text(H.descriptions[0]).node().getBBox(),X=G.height,Z=C.append("text").attr("x",getConfig$1().state.padding).attr("y",X+getConfig$1().state.padding*.4+getConfig$1().state.dividerMargin+getConfig$1().state.textHeight).attr("class","state-description");let Q=!0,ee=!0;H.descriptions.forEach(function(ae){Q||(U(Z,ae,ee),ee=!1),Q=!1});const ie=C.append("line").attr("x1",getConfig$1().state.padding).attr("y1",getConfig$1().state.padding+X+getConfig$1().state.dividerMargin/2).attr("y2",getConfig$1().state.padding+X+getConfig$1().state.dividerMargin/2).attr("class","descr-divider"),te=Z.node().getBBox(),ne=Math.max(te.width,G.width);return ie.attr("x2",ne+3*getConfig$1().state.padding),C.insert("rect",":first-child").attr("x",getConfig$1().state.padding).attr("y",getConfig$1().state.padding).attr("width",ne+2*getConfig$1().state.padding).attr("height",te.height+X+2*getConfig$1().state.padding).attr("rx",getConfig$1().state.radius),C},addTitleAndBox=(C,H,U)=>{const W=getConfig$1().state.padding,G=2*getConfig$1().state.padding,X=C.node().getBBox(),Z=X.width,Q=X.x,ee=C.append("text").attr("x",0).attr("y",getConfig$1().state.titleShift).attr("font-size",getConfig$1().state.fontSize).attr("class","state-title").text(H.id),te=ee.node().getBBox().width+G;let ne=Math.max(te,Z);ne===Z&&(ne=ne+G);let ae;const oe=C.node().getBBox();H.doc,ae=Q-W,te>Z&&(ae=(Z-ne)/2+W),Math.abs(Q-oe.x)<W&&te>Z&&(ae=Q-(te-Z)/2);const se=1-getConfig$1().state.textHeight;return C.insert("rect",":first-child").attr("x",ae).attr("y",se).attr("class",U?"alt-composit":"composit").attr("width",ne).attr("height",oe.height+getConfig$1().state.textHeight+getConfig$1().state.titleShift+1).attr("rx","0"),ee.attr("x",ae+W),te<=Z&&ee.attr("x",Q+(ne-G)/2-te/2+W),C.insert("rect",":first-child").attr("x",ae).attr("y",getConfig$1().state.titleShift-getConfig$1().state.textHeight-getConfig$1().state.padding).attr("width",ne).attr("height",getConfig$1().state.textHeight*3).attr("rx",getConfig$1().state.radius),C.insert("rect",":first-child").attr("x",ae).attr("y",getConfig$1().state.titleShift-getConfig$1().state.textHeight-getConfig$1().state.padding).attr("width",ne).attr("height",oe.height+3+2*getConfig$1().state.textHeight).attr("rx",getConfig$1().state.radius),C},drawEndState=C=>(C.append("circle").attr("class","end-state-outer").attr("r",getConfig$1().state.sizeUnit+getConfig$1().state.miniPadding).attr("cx",getConfig$1().state.padding+getConfig$1().state.sizeUnit+getConfig$1().state.miniPadding).attr("cy",getConfig$1().state.padding+getConfig$1().state.sizeUnit+getConfig$1().state.miniPadding),C.append("circle").attr("class","end-state-inner").attr("r",getConfig$1().state.sizeUnit).attr("cx",getConfig$1().state.padding+getConfig$1().state.sizeUnit+2).attr("cy",getConfig$1().state.padding+getConfig$1().state.sizeUnit+2)),drawForkJoinState=(C,H)=>{let U=getConfig$1().state.forkWidth,W=getConfig$1().state.forkHeight;if(H.parentId){let G=U;U=W,W=G}return C.append("rect").style("stroke","black").style("fill","black").attr("width",U).attr("height",W).attr("x",getConfig$1().state.padding).attr("y",getConfig$1().state.padding)},_drawLongText=(C,H,U,W)=>{let G=0;const X=W.append("text");X.style("text-anchor","start"),X.attr("class","noteText");let Z=C.replace(/\r\n/g,"<br/>");Z=Z.replace(/\n/g,"<br/>");const Q=Z.split(common$1.lineBreakRegex);let ee=1.25*getConfig$1().state.noteMargin;for(const ie of Q){const te=ie.trim();if(te.length>0){const ne=X.append("tspan");if(ne.text(te),ee===0){const ae=ne.node().getBBox();ee+=ae.height}G+=ee,ne.attr("x",H+getConfig$1().state.noteMargin),ne.attr("y",U+G+1.25*getConfig$1().state.noteMargin)}}return{textWidth:X.node().getBBox().width,textHeight:G}},drawNote=(C,H)=>{H.attr("class","state-note");const U=H.append("rect").attr("x",0).attr("y",getConfig$1().state.padding),W=H.append("g"),{textWidth:G,textHeight:X}=_drawLongText(C,0,0,W);return U.attr("height",X+2*getConfig$1().state.noteMargin),U.attr("width",G+getConfig$1().state.noteMargin*2),U},drawState=function(C,H){const U=H.id,W={id:U,label:H.id,width:0,height:0},G=C.append("g").attr("id",U).attr("class","stateGroup");H.type==="start"&&drawStartState(G),H.type==="end"&&drawEndState(G),(H.type==="fork"||H.type==="join")&&drawForkJoinState(G,H),H.type==="note"&&drawNote(H.note.text,G),H.type==="divider"&&drawDivider(G),H.type==="default"&&H.descriptions.length===0&&drawSimpleState(G,H),H.type==="default"&&H.descriptions.length>0&&drawDescrState(G,H);const X=G.node().getBBox();return W.width=X.width+2*getConfig$1().state.padding,W.height=X.height+2*getConfig$1().state.padding,W};let edgeCount=0;const drawEdge=function(C,H,U){const W=function(ee){switch(ee){case stateDb.relationType.AGGREGATION:return"aggregation";case stateDb.relationType.EXTENSION:return"extension";case stateDb.relationType.COMPOSITION:return"composition";case stateDb.relationType.DEPENDENCY:return"dependency"}};H.points=H.points.filter(ee=>!Number.isNaN(ee.y));const G=H.points,X=line$1().x(function(ee){return ee.x}).y(function(ee){return ee.y}).curve(curveBasis),Z=C.append("path").attr("d",X(G)).attr("id","edge"+edgeCount).attr("class","transition");let Q="";if(getConfig$1().state.arrowMarkerAbsolute&&(Q=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,"\\("),Q=Q.replace(/\)/g,"\\)")),Z.attr("marker-end","url("+Q+"#"+W(stateDb.relationType.DEPENDENCY)+"End)"),U.title!==void 0){const ee=C.append("g").attr("class","stateLabel"),{x:ie,y:te}=utils$d.calcLabelPosition(H.points),ne=common$1.getRows(U.title);let ae=0;const oe=[];let se=0,le=0;for(let de=0;de<=ne.length;de++){const ve=ee.append("text").attr("text-anchor","middle").text(ne[de]).attr("x",ie).attr("y",te+ae),ge=ve.node().getBBox();se=Math.max(se,ge.width),le=Math.min(le,ge.x),log$1.info(ge.x,ie,te+ae),ae===0&&(ae=ve.node().getBBox().height,log$1.info("Title height",ae,te)),oe.push(ve)}let ce=ae*ne.length;if(ne.length>1){const de=(ne.length-1)*ae*.5;oe.forEach((ve,ge)=>ve.attr("y",te+ge*ae-de)),ce=ae*ne.length}const ue=ee.node().getBBox();ee.insert("rect",":first-child").attr("class","box").attr("x",ie-se/2-getConfig$1().state.padding/2).attr("y",te-ce/2-getConfig$1().state.padding/2-3.5).attr("width",se+getConfig$1().state.padding).attr("height",ce+getConfig$1().state.padding),log$1.info(ue)}edgeCount++};let conf$2;const transformationLog={},setConf$3=function(){},insertMarkers=function(C){C.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},draw$3=function(C,H,U,W){conf$2=getConfig$1().state;const G=getConfig$1().securityLevel;let X;G==="sandbox"&&(X=select("#i"+H));const Z=select(G==="sandbox"?X.nodes()[0].contentDocument.body:"body"),Q=G==="sandbox"?X.nodes()[0].contentDocument:document;log$1.debug("Rendering diagram "+C);const ee=Z.select(`[id='${H}']`);insertMarkers(ee),new Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const te=W.db.getRootDoc();renderDoc(te,ee,void 0,!1,Z,Q,W);const ne=conf$2.padding,ae=ee.node().getBBox(),oe=ae.width+ne*2,se=ae.height+ne*2,le=oe*1.75;configureSvgSize(ee,se,le,conf$2.useMaxWidth),ee.attr("viewBox",`${ae.x-conf$2.padding} ${ae.y-conf$2.padding} `+oe+" "+se)},getLabelWidth=C=>C?C.length*conf$2.fontSizeFactor:1,renderDoc=(C,H,U,W,G,X,Z)=>{const Q=new Graph({compound:!0,multigraph:!0});let ee,ie=!0;for(ee=0;ee<C.length;ee++)if(C[ee].stmt==="relation"){ie=!1;break}U?Q.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:ie?1:conf$2.edgeLengthFactor,nodeSep:ie?1:50,isMultiGraph:!0}):Q.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:ie?1:conf$2.edgeLengthFactor,nodeSep:ie?1:50,ranker:"tight-tree",isMultiGraph:!0}),Q.setDefaultEdgeLabel(function(){return{}}),Z.db.extract(C);const te=Z.db.getStates(),ne=Z.db.getRelations(),ae=Object.keys(te);for(const ue of ae){const de=te[ue];U&&(de.parentId=U);let ve;if(de.doc){let ge=H.append("g").attr("id",de.id).attr("class","stateGroup");ve=renderDoc(de.doc,ge,de.id,!W,G,X,Z);{ge=addTitleAndBox(ge,de,W);let he=ge.node().getBBox();ve.width=he.width,ve.height=he.height+conf$2.padding/2,transformationLog[de.id]={y:conf$2.compositTitleSize}}}else ve=drawState(H,de);if(de.note){const ge={descriptions:[],id:de.id+"-note",note:de.note,type:"note"},he=drawState(H,ge);de.note.position==="left of"?(Q.setNode(ve.id+"-note",he),Q.setNode(ve.id,ve)):(Q.setNode(ve.id,ve),Q.setNode(ve.id+"-note",he)),Q.setParent(ve.id,ve.id+"-group"),Q.setParent(ve.id+"-note",ve.id+"-group")}else Q.setNode(ve.id,ve)}log$1.debug("Count=",Q.nodeCount(),Q);let oe=0;ne.forEach(function(ue){oe++,log$1.debug("Setting edge",ue),Q.setEdge(ue.id1,ue.id2,{relation:ue,width:getLabelWidth(ue.title),height:conf$2.labelHeight*common$1.getRows(ue.title).length,labelpos:"c"},"id"+oe)}),layout(Q),log$1.debug("Graph after layout",Q.nodes());const se=H.node();Q.nodes().forEach(function(ue){ue!==void 0&&Q.node(ue)!==void 0?(log$1.warn("Node "+ue+": "+JSON.stringify(Q.node(ue))),G.select("#"+se.id+" #"+ue).attr("transform","translate("+(Q.node(ue).x-Q.node(ue).width/2)+","+(Q.node(ue).y+(transformationLog[ue]?transformationLog[ue].y:0)-Q.node(ue).height/2)+" )"),G.select("#"+se.id+" #"+ue).attr("data-x-shift",Q.node(ue).x-Q.node(ue).width/2),X.querySelectorAll("#"+se.id+" #"+ue+" .divider").forEach(ve=>{const ge=ve.parentElement;let he=0,me=0;ge&&(ge.parentElement&&(he=ge.parentElement.getBBox().width),me=parseInt(ge.getAttribute("data-x-shift"),10),Number.isNaN(me)&&(me=0)),ve.setAttribute("x1",0-me+8),ve.setAttribute("x2",he-me-8)})):log$1.debug("No Node "+ue+": "+JSON.stringify(Q.node(ue)))});let le=se.getBBox();Q.edges().forEach(function(ue){ue!==void 0&&Q.edge(ue)!==void 0&&(log$1.debug("Edge "+ue.v+" -> "+ue.w+": "+JSON.stringify(Q.edge(ue))),drawEdge(H,Q.edge(ue),Q.edge(ue).relation))}),le=se.getBBox();const ce={id:U||"root",label:U||"root",width:0,height:0};return ce.width=le.width+2*conf$2.padding,ce.height=le.height+2*conf$2.padding,log$1.debug("Doc rendered",ce,Q),ce},stateRenderer={setConf:setConf$3,draw:draw$3},SHAPE_STATE="rect",SHAPE_STATE_WITH_DESC="rectWithTitle",SHAPE_START="start",SHAPE_END="end",SHAPE_DIVIDER="divider",SHAPE_GROUP="roundedWithTitle",SHAPE_NOTE="note",SHAPE_NOTEGROUP="noteGroup",CSS_DIAGRAM="statediagram",CSS_STATE="state",CSS_DIAGRAM_STATE=`${CSS_DIAGRAM}-${CSS_STATE}`,CSS_EDGE="transition",CSS_NOTE="note",CSS_NOTE_EDGE="note-edge",CSS_EDGE_NOTE_EDGE=`${CSS_EDGE} ${CSS_NOTE_EDGE}`,CSS_DIAGRAM_NOTE=`${CSS_DIAGRAM}-${CSS_NOTE}`,CSS_CLUSTER="cluster",CSS_DIAGRAM_CLUSTER=`${CSS_DIAGRAM}-${CSS_CLUSTER}`,CSS_CLUSTER_ALT="cluster-alt",CSS_DIAGRAM_CLUSTER_ALT=`${CSS_DIAGRAM}-${CSS_CLUSTER_ALT}`,PARENT="parent",NOTE="note",DOMID_STATE="state",DOMID_TYPE_SPACER="----",NOTE_ID=`${DOMID_TYPE_SPACER}${NOTE}`,PARENT_ID=`${DOMID_TYPE_SPACER}${PARENT}`,G_EDGE_STYLE="fill:none",G_EDGE_ARROWHEADSTYLE="fill: #333",G_EDGE_LABELPOS="c",G_EDGE_LABELTYPE="text",G_EDGE_THICKNESS="normal";let nodeDb={},graphItemCount=0;const setConf$2=function(C){const H=Object.keys(C);for(const U of H)C[U]},getClasses=function(C,H){log$1.trace("Extracting classes"),H.db.clear();try{return H.parser.parse(C),H.db.extract(H.db.getRootDocV2()),H.db.getClasses()}catch(U){return U}};function getClassesFromDbInfo(C){return C==null?"":C.classes?C.classes.join(" "):""}function stateDomId(C="",H=0,U="",W=DOMID_TYPE_SPACER){const G=U!==null&&U.length>0?`${W}${U}`:"";return`${DOMID_STATE}-${C}${G}-${H}`}const setupNode=(C,H,U,W,G,X)=>{const Z=U.id,Q=getClassesFromDbInfo(W[Z]);if(Z!=="root"){let ee=SHAPE_STATE;U.start===!0&&(ee=SHAPE_START),U.start===!1&&(ee=SHAPE_END),U.type!==DEFAULT_STATE_TYPE&&(ee=U.type),nodeDb[Z]||(nodeDb[Z]={id:Z,shape:ee,description:common$1.sanitizeText(Z,getConfig$1()),classes:`${Q} ${CSS_DIAGRAM_STATE}`});const ie=nodeDb[Z];U.description&&(Array.isArray(ie.description)?(ie.shape=SHAPE_STATE_WITH_DESC,ie.description.push(U.description)):ie.description.length>0?(ie.shape=SHAPE_STATE_WITH_DESC,ie.description===Z?ie.description=[U.description]:ie.description=[ie.description,U.description]):(ie.shape=SHAPE_STATE,ie.description=U.description),ie.description=common$1.sanitizeTextOrArray(ie.description,getConfig$1())),ie.description.length===1&&ie.shape===SHAPE_STATE_WITH_DESC&&(ie.shape=SHAPE_STATE),!ie.type&&U.doc&&(log$1.info("Setting cluster for ",Z,getDir(U)),ie.type="group",ie.dir=getDir(U),ie.shape=U.type===DIVIDER_TYPE?SHAPE_DIVIDER:SHAPE_GROUP,ie.classes=ie.classes+" "+CSS_DIAGRAM_CLUSTER+" "+(X?CSS_DIAGRAM_CLUSTER_ALT:""));const te={labelStyle:"",shape:ie.shape,labelText:ie.description,classes:ie.classes,style:"",id:Z,dir:ie.dir,domId:stateDomId(Z,graphItemCount),type:ie.type,padding:15};if(U.note){const ne={labelStyle:"",shape:SHAPE_NOTE,labelText:U.note.text,classes:CSS_DIAGRAM_NOTE,style:"",id:Z+NOTE_ID+"-"+graphItemCount,domId:stateDomId(Z,graphItemCount,NOTE),type:ie.type,padding:15},ae={labelStyle:"",shape:SHAPE_NOTEGROUP,labelText:U.note.text,classes:ie.classes,style:"",id:Z+PARENT_ID,domId:stateDomId(Z,graphItemCount,PARENT),type:"group",padding:0};graphItemCount++;const oe=Z+PARENT_ID;C.setNode(oe,ae),C.setNode(ne.id,ne),C.setNode(Z,te),C.setParent(Z,oe),C.setParent(ne.id,oe);let se=Z,le=ne.id;U.note.position==="left of"&&(se=ne.id,le=Z),C.setEdge(se,le,{arrowhead:"none",arrowType:"",style:G_EDGE_STYLE,labelStyle:"",classes:CSS_EDGE_NOTE_EDGE,arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS})}else C.setNode(Z,te)}H&&H.id!=="root"&&(log$1.trace("Setting node ",Z," to be child of its parent ",H.id),C.setParent(Z,H.id)),U.doc&&(log$1.trace("Adding nodes children "),setupDoc(C,U,U.doc,W,G,!X))},setupDoc=(C,H,U,W,G,X)=>{log$1.trace("items",U),U.forEach(Z=>{switch(Z.stmt){case STMT_STATE:setupNode(C,H,Z,W,G,X);break;case DEFAULT_STATE_TYPE:setupNode(C,H,Z,W,G,X);break;case STMT_RELATION:{setupNode(C,H,Z.state1,W,G,X),setupNode(C,H,Z.state2,W,G,X);const Q={id:"edge"+graphItemCount,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:G_EDGE_STYLE,labelStyle:"",label:common$1.sanitizeText(Z.description,getConfig$1()),arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS,classes:CSS_EDGE};C.setEdge(Z.state1.id,Z.state2.id,Q,graphItemCount),graphItemCount++}break}})},getDir=(C,H=DEFAULT_NESTED_DOC_DIR)=>{let U=H;if(C.doc)for(let W=0;W<C.doc.length;W++){const G=C.doc[W];G.stmt==="dir"&&(U=G.value)}return U},draw$2=function(C,H,U,W){log$1.info("Drawing state diagram (v2)",H),nodeDb={},W.db.getDirection();const{securityLevel:G,state:X}=getConfig$1(),Z=X.nodeSpacing||50,Q=X.rankSpacing||50;log$1.info(W.db.getRootDocV2()),W.db.extract(W.db.getRootDocV2()),log$1.info(W.db.getRootDocV2());const ee=W.db.getStates(),ie=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:getDir(W.db.getRootDocV2()),nodesep:Z,ranksep:Q,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});setupNode(ie,void 0,W.db.getRootDocV2(),ee,W.db,!0);let te;G==="sandbox"&&(te=select("#i"+H));const ne=select(G==="sandbox"?te.nodes()[0].contentDocument.body:"body"),ae=ne.select(`[id="${H}"]`),oe=ne.select("#"+H+" g");render$1(oe,ie,["barb"],CSS_DIAGRAM,H);const se=8;utils$d.insertTitle(ae,"statediagramTitleText",X.titleTopMargin,W.db.getDiagramTitle());const le=ae.node().getBBox(),ce=le.width+se*2,ue=le.height+se*2;ae.attr("class",CSS_DIAGRAM);const de=ae.node().getBBox();configureSvgSize(ae,ue,ce,X.useMaxWidth);const ve=`${de.x-se} ${de.y-se} ${ce} ${ue}`;log$1.debug(`viewBox ${ve}`),ae.attr("viewBox",ve);const ge=document.querySelectorAll('[id="'+H+'"] .edgeLabel .label');for(const he of ge){const me=he.getBBox(),_e=document.createElementNS("http://www.w3.org/2000/svg",SHAPE_STATE);_e.setAttribute("rx",0),_e.setAttribute("ry",0),_e.setAttribute("width",me.width),_e.setAttribute("height",me.height),he.insertBefore(_e,he.firstChild)}},stateRendererV2={setConf:setConf$2,getClasses,draw:draw$2};var parser=function(){var C=function(le,ce,ue,de){for(ue=ue||{},de=le.length;de--;ue[le[de]]=ce);return ue},H=[1,2],U=[1,5],W=[6,9,11,17,18,20,22,23,24,26],G=[1,15],X=[1,16],Z=[1,17],Q=[1,18],ee=[1,19],ie=[1,20],te=[1,24],ne=[4,6,9,11,17,18,20,22,23,24,26],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(ce,ue,de,ve,ge,he,me){var _e=he.length-1;switch(ge){case 1:return he[_e-1];case 3:this.$=[];break;case 4:he[_e-1].push(he[_e]),this.$=he[_e-1];break;case 5:case 6:this.$=he[_e];break;case 7:case 8:this.$=[];break;case 11:ve.setDiagramTitle(he[_e].substr(6)),this.$=he[_e].substr(6);break;case 12:this.$=he[_e].trim(),ve.setAccTitle(this.$);break;case 13:case 14:this.$=he[_e].trim(),ve.setAccDescription(this.$);break;case 15:ve.addSection(he[_e].substr(8)),this.$=he[_e].substr(8);break;case 16:ve.addTask(he[_e-1],he[_e]),this.$="task";break;case 18:ve.parseDirective("%%{","open_directive");break;case 19:ve.parseDirective(he[_e],"type_directive");break;case 20:he[_e]=he[_e].trim().replace(/'/g,'"'),ve.parseDirective(he[_e],"arg_directive");break;case 21:ve.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:H,7:3,12:4,26:U},{1:[3]},C(W,[2,3],{5:6}),{3:7,4:H,7:3,12:4,26:U},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:G,18:X,20:Z,22:Q,23:ee,24:ie,26:U},{1:[2,2]},{14:22,15:[1,23],29:te},C([15,29],[2,19]),C(W,[2,8],{1:[2,1]}),C(W,[2,4]),{7:21,10:25,12:4,17:G,18:X,20:Z,22:Q,23:ee,24:ie,26:U},C(W,[2,6]),C(W,[2,7]),C(W,[2,11]),{19:[1,26]},{21:[1,27]},C(W,[2,14]),C(W,[2,15]),{25:[1,28]},C(W,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},C(W,[2,5]),C(W,[2,12]),C(W,[2,13]),C(W,[2,16]),C(ne,[2,9]),{14:32,29:te},{29:[2,20]},{11:[1,33]},C(ne,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(ce,ue){if(ue.recoverable)this.trace(ce);else{var de=new Error(ce);throw de.hash=ue,de}},parse:function(ce){var ue=this,de=[0],ve=[],ge=[null],he=[],me=this.table,_e="",be=0,pe=0,fe=2,ye=1,$e=he.slice.call(arguments,1),we=Object.create(this.lexer),Se={yy:{}};for(var Te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Te)&&(Se.yy[Te]=this.yy[Te]);we.setInput(ce,Se.yy),Se.yy.lexer=we,Se.yy.parser=this,typeof we.yylloc>"u"&&(we.yylloc={});var xe=we.yylloc;he.push(xe);var ke=we.options&&we.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var Ge;return Ge=ve.pop()||we.lex()||ye,typeof Ge!="number"&&(Ge instanceof Array&&(ve=Ge,Ge=ve.pop()),Ge=ue.symbols_[Ge]||Ge),Ge}for(var Ae,Me,Fe,Be,Ne={},Ve,Le,De,Je;;){if(Me=de[de.length-1],this.defaultActions[Me]?Fe=this.defaultActions[Me]:((Ae===null||typeof Ae>"u")&&(Ae=Ie()),Fe=me[Me]&&me[Me][Ae]),typeof Fe>"u"||!Fe.length||!Fe[0]){var ze="";Je=[];for(Ve in me[Me])this.terminals_[Ve]&&Ve>fe&&Je.push("'"+this.terminals_[Ve]+"'");we.showPosition?ze="Parse error on line "+(be+1)+`:
|
||
`+we.showPosition()+`
|
||
Expecting `+Je.join(", ")+", got '"+(this.terminals_[Ae]||Ae)+"'":ze="Parse error on line "+(be+1)+": Unexpected "+(Ae==ye?"end of input":"'"+(this.terminals_[Ae]||Ae)+"'"),this.parseError(ze,{text:we.match,token:this.terminals_[Ae]||Ae,line:we.yylineno,loc:xe,expected:Je})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+Ae);switch(Fe[0]){case 1:de.push(Ae),ge.push(we.yytext),he.push(we.yylloc),de.push(Fe[1]),Ae=null,pe=we.yyleng,_e=we.yytext,be=we.yylineno,xe=we.yylloc;break;case 2:if(Le=this.productions_[Fe[1]][1],Ne.$=ge[ge.length-Le],Ne._$={first_line:he[he.length-(Le||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Le||1)].first_column,last_column:he[he.length-1].last_column},ke&&(Ne._$.range=[he[he.length-(Le||1)].range[0],he[he.length-1].range[1]]),Be=this.performAction.apply(Ne,[_e,pe,be,Se.yy,Fe[1],ge,he].concat($e)),typeof Be<"u")return Be;Le&&(de=de.slice(0,-1*Le*2),ge=ge.slice(0,-1*Le),he=he.slice(0,-1*Le)),de.push(this.productions_[Fe[1]][0]),ge.push(Ne.$),he.push(Ne._$),De=me[de[de.length-2]][de[de.length-1]],de.push(De);break;case 3:return!0}}return!0}},oe=function(){var le={EOF:1,parseError:function(ue,de){if(this.yy.parser)this.yy.parser.parseError(ue,de);else throw new Error(ue)},setInput:function(ce,ue){return this.yy=ue||this.yy||{},this._input=ce,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ce=this._input[0];this.yytext+=ce,this.yyleng++,this.offset++,this.match+=ce,this.matched+=ce;var ue=ce.match(/(?:\r\n?|\n).*/g);return ue?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ce},unput:function(ce){var ue=ce.length,de=ce.split(/(?:\r\n?|\n)/g);this._input=ce+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ue),this.offset-=ue;var ve=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),de.length-1&&(this.yylineno-=de.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:de?(de.length===ve.length?this.yylloc.first_column:0)+ve[ve.length-de.length].length-de[0].length:this.yylloc.first_column-ue},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-ue]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ce){this.unput(this.match.slice(ce))},pastInput:function(){var ce=this.matched.substr(0,this.matched.length-this.match.length);return(ce.length>20?"...":"")+ce.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ce=this.match;return ce.length<20&&(ce+=this._input.substr(0,20-ce.length)),(ce.substr(0,20)+(ce.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ce=this.pastInput(),ue=new Array(ce.length+1).join("-");return ce+this.upcomingInput()+`
|
||
`+ue+"^"},test_match:function(ce,ue){var de,ve,ge;if(this.options.backtrack_lexer&&(ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ge.yylloc.range=this.yylloc.range.slice(0))),ve=ce[0].match(/(?:\r\n?|\n).*/g),ve&&(this.yylineno+=ve.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ve?ve[ve.length-1].length-ve[ve.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ce[0].length},this.yytext+=ce[0],this.match+=ce[0],this.matches=ce,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ce[0].length),this.matched+=ce[0],de=this.performAction.call(this,this.yy,this,ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),de)return de;if(this._backtrack){for(var he in ge)this[he]=ge[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ce,ue,de,ve;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),he=0;he<ge.length;he++)if(de=this._input.match(this.rules[ge[he]]),de&&(!ue||de[0].length>ue[0].length)){if(ue=de,ve=he,this.options.backtrack_lexer){if(ce=this.test_match(de,ge[he]),ce!==!1)return ce;if(this._backtrack){ue=!1;continue}else return!1}else if(!this.options.flex)break}return ue?(ce=this.test_match(ue,ge[ve]),ce!==!1?ce:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ue=this.next();return ue||this.lex()},begin:function(ue){this.conditionStack.push(ue)},popState:function(){var ue=this.conditionStack.length-1;return ue>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ue){return ue=this.conditionStack.length-1-Math.abs(ue||0),ue>=0?this.conditionStack[ue]:"INITIAL"},pushState:function(ue){this.begin(ue)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ue,de,ve,ge){switch(ve){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return le}();ae.lexer=oe;function se(){this.yy={}}return se.prototype=ae,ae.Parser=se,new se}();parser.parser=parser;const journeyParser=parser,journeyDetector=C=>C.match(/^\s*journey/)!==null;let currentSection="";const sections=[],tasks=[],rawTasks=[],parseDirective=function(C,H,U){mermaidAPI.parseDirective(this,C,H,U)},clear=function(){sections.length=0,tasks.length=0,currentSection="",rawTasks.length=0,clear$g()},addSection=function(C){currentSection=C,sections.push(C)},getSections=function(){return sections},getTasks=function(){let C=compileTasks();const H=100;let U=0;for(;!C&&U<H;)C=compileTasks(),U++;return tasks.push(...rawTasks),tasks},updateActors=function(){const C=[];return tasks.forEach(U=>{U.people&&C.push(...U.people)}),[...new Set(C)].sort()},addTask=function(C,H){const U=H.substr(1).split(":");let W=0,G=[];U.length===1?(W=Number(U[0]),G=[]):(W=Number(U[0]),G=U[1].split(","));const X=G.map(Q=>Q.trim()),Z={section:currentSection,type:currentSection,people:X,task:C,score:W};rawTasks.push(Z)},addTaskOrg=function(C){const H={section:currentSection,type:currentSection,description:C,task:C,classes:[]};tasks.push(H)},compileTasks=function(){const C=function(U){return rawTasks[U].processed};let H=!0;for(const[U,W]of rawTasks.entries())C(U),H=H&&W.processed;return H},getActors=function(){return updateActors()},journeyDb={parseDirective,getConfig:()=>getConfig$1().journey,clear,setDiagramTitle,getDiagramTitle,setAccTitle,getAccTitle,setAccDescription,getAccDescription,addSection,getSections,getTasks,addTask,addTaskOrg,getActors},drawRect=function(C,H){const U=C.append("rect");return U.attr("x",H.x),U.attr("y",H.y),U.attr("fill",H.fill),U.attr("stroke",H.stroke),U.attr("width",H.width),U.attr("height",H.height),U.attr("rx",H.rx),U.attr("ry",H.ry),H.class!==void 0&&U.attr("class",H.class),U},drawFace=function(C,H){const W=C.append("circle").attr("cx",H.cx).attr("cy",H.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),G=C.append("g");G.append("circle").attr("cx",H.cx-15/3).attr("cy",H.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),G.append("circle").attr("cx",H.cx+15/3).attr("cy",H.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function X(ee){const ie=arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ee.append("path").attr("class","mouth").attr("d",ie).attr("transform","translate("+H.cx+","+(H.cy+2)+")")}function Z(ee){const ie=arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ee.append("path").attr("class","mouth").attr("d",ie).attr("transform","translate("+H.cx+","+(H.cy+7)+")")}function Q(ee){ee.append("line").attr("class","mouth").attr("stroke",2).attr("x1",H.cx-5).attr("y1",H.cy+7).attr("x2",H.cx+5).attr("y2",H.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return H.score>3?X(G):H.score<3?Z(G):Q(G),W},drawCircle=function(C,H){const U=C.append("circle");return U.attr("cx",H.cx),U.attr("cy",H.cy),U.attr("class","actor-"+H.pos),U.attr("fill",H.fill),U.attr("stroke",H.stroke),U.attr("r",H.r),U.class!==void 0&&U.attr("class",U.class),H.title!==void 0&&U.append("title").text(H.title),U},drawText=function(C,H){const U=H.text.replace(/<br\s*\/?>/gi," "),W=C.append("text");W.attr("x",H.x),W.attr("y",H.y),W.attr("class","legend"),W.style("text-anchor",H.anchor),H.class!==void 0&&W.attr("class",H.class);const G=W.append("tspan");return G.attr("x",H.x+H.textMargin*2),G.text(U),W},drawLabel=function(C,H){function U(G,X,Z,Q,ee){return G+","+X+" "+(G+Z)+","+X+" "+(G+Z)+","+(X+Q-ee)+" "+(G+Z-ee*1.2)+","+(X+Q)+" "+G+","+(X+Q)}const W=C.append("polygon");W.attr("points",U(H.x,H.y,50,20,7)),W.attr("class","labelBox"),H.y=H.y+H.labelMargin,H.x=H.x+.5*H.labelMargin,drawText(C,H)},drawSection=function(C,H,U){const W=C.append("g"),G=getNoteRect();G.x=H.x,G.y=H.y,G.fill=H.fill,G.width=U.width,G.height=U.height,G.class="journey-section section-type-"+H.num,G.rx=3,G.ry=3,drawRect(W,G),_drawTextCandidateFunc(U)(H.text,W,G.x,G.y,G.width,G.height,{class:"journey-section section-type-"+H.num},U,H.colour)};let taskCount=-1;const drawTask=function(C,H,U){const W=H.x+U.width/2,G=C.append("g");taskCount++;const X=300+5*30;G.append("line").attr("id","task"+taskCount).attr("x1",W).attr("y1",H.y).attr("x2",W).attr("y2",X).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace(G,{cx:W,cy:300+(5-H.score)*30,score:H.score});const Z=getNoteRect();Z.x=H.x,Z.y=H.y,Z.fill=H.fill,Z.width=U.width,Z.height=U.height,Z.class="task task-type-"+H.num,Z.rx=3,Z.ry=3,drawRect(G,Z);let Q=H.x+14;H.people.forEach(ee=>{const ie=H.actors[ee].color,te={cx:Q,cy:H.y,r:7,fill:ie,stroke:"#000",title:ee,pos:H.actors[ee].position};drawCircle(G,te),Q+=10}),_drawTextCandidateFunc(U)(H.task,G,Z.x,Z.y,Z.width,Z.height,{class:"task"},U,H.colour)},drawBackgroundRect=function(C,H){drawRect(C,{x:H.startx,y:H.starty,width:H.stopx-H.startx,height:H.stopy-H.starty,fill:H.fill,class:"rect"}).lower()},getTextObj=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},getNoteRect=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc=function(){function C(G,X,Z,Q,ee,ie,te,ne){const ae=X.append("text").attr("x",Z+ee/2).attr("y",Q+ie/2+5).style("font-color",ne).style("text-anchor","middle").text(G);W(ae,te)}function H(G,X,Z,Q,ee,ie,te,ne,ae){const{taskFontSize:oe,taskFontFamily:se}=ne,le=G.split(/<br\s*\/?>/gi);for(let ce=0;ce<le.length;ce++){const ue=ce*oe-oe*(le.length-1)/2,de=X.append("text").attr("x",Z+ee/2).attr("y",Q).attr("fill",ae).style("text-anchor","middle").style("font-size",oe).style("font-family",se);de.append("tspan").attr("x",Z+ee/2).attr("dy",ue).text(le[ce]),de.attr("y",Q+ie/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),W(de,te)}}function U(G,X,Z,Q,ee,ie,te,ne){const ae=X.append("switch"),se=ae.append("foreignObject").attr("x",Z).attr("y",Q).attr("width",ee).attr("height",ie).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");se.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(G),H(G,ae,Z,Q,ee,ie,te,ne),W(se,te)}function W(G,X){for(const Z in X)Z in X&&G.attr(Z,X[Z])}return function(G){return G.textPlacement==="fo"?U:G.textPlacement==="old"?C:H}}(),initGraphics=function(C){C.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},svgDraw={drawRect,drawCircle,drawSection,drawText,drawLabel,drawTask,drawBackgroundRect,getTextObj,getNoteRect,initGraphics},setConf$1=function(C){Object.keys(C).forEach(function(U){conf$1[U]=C[U]})},actors={};function drawActorLegend(C){const H=getConfig$1().journey;let U=60;Object.keys(actors).forEach(W=>{const G=actors[W].color,X={cx:20,cy:U,r:7,fill:G,stroke:"#000",pos:actors[W].position};svgDraw.drawCircle(C,X);const Z={x:40,y:U+7,fill:"#666",text:W,textMargin:H.boxTextMargin|5};svgDraw.drawText(C,Z),U+=20})}const conf$1=getConfig$1().journey,LEFT_MARGIN=conf$1.leftMargin,draw$1=function(C,H,U,W){const G=getConfig$1().journey;W.db.clear(),W.parser.parse(C+`
|
||
`);const X=getConfig$1().securityLevel;let Z;X==="sandbox"&&(Z=select("#i"+H));const Q=select(X==="sandbox"?Z.nodes()[0].contentDocument.body:"body");bounds.init();const ee=Q.select("#"+H);svgDraw.initGraphics(ee);const ie=W.db.getTasks(),te=W.db.getDiagramTitle(),ne=W.db.getActors();for(const ue in actors)delete actors[ue];let ae=0;ne.forEach(ue=>{actors[ue]={color:G.actorColours[ae%G.actorColours.length],position:ae},ae++}),drawActorLegend(ee),bounds.insert(0,0,LEFT_MARGIN,Object.keys(actors).length*50),drawTasks(ee,ie,0);const oe=bounds.getBounds();te&&ee.append("text").text(te).attr("x",LEFT_MARGIN).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const se=oe.stopy-oe.starty+2*G.diagramMarginY,le=LEFT_MARGIN+oe.stopx+2*G.diagramMarginX;configureSvgSize(ee,se,le,G.useMaxWidth),ee.append("line").attr("x1",LEFT_MARGIN).attr("y1",G.height*4).attr("x2",le-LEFT_MARGIN-4).attr("y2",G.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const ce=te?70:0;ee.attr("viewBox",`${oe.startx} -25 ${le} ${se+ce}`),ee.attr("preserveAspectRatio","xMinYMin meet"),ee.attr("height",se+ce+25)},bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(C,H,U,W){C[H]===void 0?C[H]=U:C[H]=W(U,C[H])},updateBounds:function(C,H,U,W){const G=getConfig$1().journey,X=this;let Z=0;function Q(ee){return function(te){Z++;const ne=X.sequenceItems.length-Z+1;X.updateVal(te,"starty",H-ne*G.boxMargin,Math.min),X.updateVal(te,"stopy",W+ne*G.boxMargin,Math.max),X.updateVal(bounds.data,"startx",C-ne*G.boxMargin,Math.min),X.updateVal(bounds.data,"stopx",U+ne*G.boxMargin,Math.max),ee!=="activation"&&(X.updateVal(te,"startx",C-ne*G.boxMargin,Math.min),X.updateVal(te,"stopx",U+ne*G.boxMargin,Math.max),X.updateVal(bounds.data,"starty",H-ne*G.boxMargin,Math.min),X.updateVal(bounds.data,"stopy",W+ne*G.boxMargin,Math.max))}}this.sequenceItems.forEach(Q())},insert:function(C,H,U,W){const G=Math.min(C,U),X=Math.max(C,U),Z=Math.min(H,W),Q=Math.max(H,W);this.updateVal(bounds.data,"startx",G,Math.min),this.updateVal(bounds.data,"starty",Z,Math.min),this.updateVal(bounds.data,"stopx",X,Math.max),this.updateVal(bounds.data,"stopy",Q,Math.max),this.updateBounds(G,Z,X,Q)},bumpVerticalPos:function(C){this.verticalPos=this.verticalPos+C,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},fills=conf$1.sectionFills,textColours=conf$1.sectionColours,drawTasks=function(C,H,U){const W=getConfig$1().journey;let G="";const X=W.height*2+W.diagramMarginY,Z=U+X;let Q=0,ee="#CCC",ie="black",te=0;for(const[ne,ae]of H.entries()){if(G!==ae.section){ee=fills[Q%fills.length],te=Q%fills.length,ie=textColours[Q%textColours.length];const se={x:ne*W.taskMargin+ne*W.width+LEFT_MARGIN,y:50,text:ae.section,fill:ee,num:te,colour:ie};svgDraw.drawSection(C,se,W),G=ae.section,Q++}const oe=ae.people.reduce((se,le)=>(actors[le]&&(se[le]=actors[le]),se),{});ae.x=ne*W.taskMargin+ne*W.width+LEFT_MARGIN,ae.y=Z,ae.width=W.diagramMarginX,ae.height=W.diagramMarginY,ae.colour=ie,ae.fill=ee,ae.num=te,ae.actors=oe,svgDraw.drawTask(C,ae,W),bounds.insert(ae.x,ae.y,ae.x+ae.width+W.taskMargin,300+5*30)}},journeyRenderer={setConf:setConf$1,draw:draw$1};let conf={};const setConf=function(C){conf={...conf,...C}},draw=(C,H,U)=>{try{log$1.debug(`Renering svg for syntax error
|
||
`);const W=select("#"+H),G=W.append("g");G.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"),G.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"),G.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"),G.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"),G.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"),G.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"),G.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),G.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+U),W.attr("height",100),W.attr("width",500),W.attr("viewBox","768 0 912 512")}catch(W){log$1.error("Error while rendering info diagram"),log$1.error(getErrorMessage(W))}},errorRenderer={setConf,draw},id$2="flowchart-elk",detector$2=(C,H)=>{var U;return!!(C.match(/^\s*flowchart-elk/)||C.match(/^\s*flowchart|graph/)&&((U=H==null?void 0:H.flowchart)==null?void 0:U.defaultRenderer)==="elk")},loader$2=async()=>{const{diagram:C}=await __vitePreload(()=>import("./diagram-definition.e55ec334-2e3ed2ff.js"),[],import.meta.url);return{id:id$2,diagram:C}},plugin$2={id:id$2,detector:detector$2,loader:loader$2},flowchartElk=plugin$2,id$1="timeline",detector$1=C=>C.match(/^\s*timeline/)!==null,loader$1=async()=>{const{diagram:C}=await __vitePreload(()=>import("./diagram-definition.444bacb8-48bcd703.js"),["./diagram-definition.444bacb8-48bcd703.js","./is_dark-f23e070c.js"],import.meta.url);return{id:id$1,diagram:C}},plugin$1={id:id$1,detector:detector$1,loader:loader$1},timelineDetector=plugin$1,id="mindmap",detector=C=>C.match(/^\s*mindmap/)!==null,loader=async()=>{const{diagram:C}=await __vitePreload(()=>import("./diagram-definition.2c0ce47b-f7604107.js"),["./diagram-definition.2c0ce47b-f7604107.js","./is_dark-f23e070c.js"],import.meta.url);return{id,diagram:C}},plugin={id,detector,loader},mindmapDetector=plugin;let hasLoadedDiagrams=!1;const addDiagrams=()=>{hasLoadedDiagrams||(hasLoadedDiagrams=!0,registerLazyLoadedDiagrams(flowchartElk,timelineDetector,mindmapDetector),registerDiagram("error",{db:{clear:()=>{}},styles:errorStyles,renderer:errorRenderer,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},C=>C.toLowerCase().trim()==="error"),registerDiagram("---",{db:{clear:()=>{}},styles:errorStyles,renderer:errorRenderer,parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:()=>null},C=>C.toLowerCase().trimStart().startsWith("---")),registerDiagram("c4",{parser:c4Parser,db:c4Db,renderer:c4Renderer,styles:c4Styles,init:C=>{c4Renderer.setConf(C.c4)}},c4Detector),registerDiagram("class",{parser:classParser,db:classDb,renderer:classRenderer,styles:classStyles,init:C=>{C.class||(C.class={}),C.class.arrowMarkerAbsolute=C.arrowMarkerAbsolute,classDb.clear()}},classDetector),registerDiagram("classDiagram",{parser:classParser,db:classDb,renderer:classRendererV2,styles:classStyles,init:C=>{C.class||(C.class={}),C.class.arrowMarkerAbsolute=C.arrowMarkerAbsolute,classDb.clear()}},classDetectorV2),registerDiagram("er",{parser:erParser,db:erDb,renderer:erRenderer,styles:erStyles},erDetector),registerDiagram("gantt",{parser:ganttParser,db:ganttDb,renderer:ganttRenderer,styles:ganttStyles},ganttDetector),registerDiagram("info",{parser:infoParser,db:infoDb,renderer:infoRenderer,styles:infoStyles},infoDetector),registerDiagram("pie",{parser:pieParser,db:pieDb,renderer:pieRenderer,styles:pieStyles},pieDetector),registerDiagram("requirement",{parser:requirementParser,db:requirementDb,renderer:requirementRenderer,styles:requirementStyles},requirementDetector),registerDiagram("sequence",{parser:sequenceParser,db:sequenceDb,renderer:sequenceRenderer,styles:sequenceStyles,init:C=>{if(C.sequence||(C.sequence={}),C.sequence.arrowMarkerAbsolute=C.arrowMarkerAbsolute,"sequenceDiagram"in C)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");sequenceDb.setWrap(C.wrap),sequenceRenderer.setConf(C.sequence)}},sequenceDetector),registerDiagram("state",{parser:stateParser,db:stateDb,renderer:stateRenderer,styles:stateStyles,init:C=>{C.state||(C.state={}),C.state.arrowMarkerAbsolute=C.arrowMarkerAbsolute,stateDb.clear()}},stateDetector),registerDiagram("stateDiagram",{parser:stateParser,db:stateDb,renderer:stateRendererV2,styles:stateStyles,init:C=>{C.state||(C.state={}),C.state.arrowMarkerAbsolute=C.arrowMarkerAbsolute,stateDb.clear()}},stateDetectorV2),registerDiagram("journey",{parser:journeyParser,db:journeyDb,renderer:journeyRenderer,styles:journeyStyles,init:C=>{journeyRenderer.setConf(C.journey),journeyDb.clear()}},journeyDetector),registerDiagram("flowchart",{parser:parser$8,db:flowDb,renderer:flowRendererV2,styles:flowStyles,init:C=>{C.flowchart||(C.flowchart={}),C.flowchart.arrowMarkerAbsolute=C.arrowMarkerAbsolute,flowRenderer.setConf(C.flowchart),flowDb.clear(),flowDb.setGen("gen-1")}},flowDetector),registerDiagram("flowchart-v2",{parser:parser$8,db:flowDb,renderer:flowRendererV2,styles:flowStyles,init:C=>{C.flowchart||(C.flowchart={}),C.flowchart.arrowMarkerAbsolute=C.arrowMarkerAbsolute,setConfig({flowchart:{arrowMarkerAbsolute:C.arrowMarkerAbsolute}}),flowRendererV2.setConf(C.flowchart),flowDb.clear(),flowDb.setGen("gen-2")}},flowDetectorV2),registerDiagram("gitGraph",{parser:gitGraphParser,db:gitGraphDb,renderer:gitGraphRenderer,styles:gitGraphStyles},gitGraphDetector))};class Diagram{constructor(H,U){__publicField(this,"type","graph"),__publicField(this,"parser"),__publicField(this,"renderer"),__publicField(this,"db"),__publicField(this,"detectTypeFailed",!1);var W,G;this.txt=H;const X=getConfig$1();this.txt=H;try{this.type=detectType(H,X)}catch(ee){this.handleError(ee,U),this.type="error",this.detectTypeFailed=!0}const Z=getDiagram(this.type);log$1.debug("Type "+this.type),this.db=Z.db,(G=(W=this.db).clear)==null||G.call(W),this.renderer=Z.renderer,this.parser=Z.parser;const Q=this.parser.parse.bind(this.parser);this.parser.parse=ee=>Q(extractFrontMatter(ee,this.db)),this.parser.parser.yy=this.db,Z.init&&(Z.init(X),log$1.info("Initialized diagram "+this.type,X)),this.txt+=`
|
||
`,this.parse(this.txt,U)}parse(H,U){var W,G;if(this.detectTypeFailed)return!1;try{return H=H+`
|
||
`,(G=(W=this.db).clear)==null||G.call(W),this.parser.parse(H),!0}catch(X){this.handleError(X,U)}return!1}handleError(H,U){if(U===void 0)throw H;if(isDetailedError(H)){U(H.str,H.hash);return}U(H)}getParser(){return this.parser}getType(){return this.type}}const getDiagramFromText=(C,H)=>{const U=detectType(C,getConfig$1());try{getDiagram(U)}catch{const G=getDiagramLoader(U);if(!G)throw new Error(`Diagram ${U} not found.`);return G().then(({diagram:X})=>(registerDiagram(U,X,void 0),new Diagram(C,H)))}return new Diagram(C,H)},Diagram$1=Diagram,SVG_ROLE="graphics-document document";function setA11yDiagramInfo(C,H){C.attr("role",SVG_ROLE),isEmpty(H)||C.attr("aria-roledescription",H)}function addSVGa11yTitleDescription(C,H,U,W){if(C.insert!==void 0)if(H||U){if(U){const G="chart-desc-"+W;C.attr("aria-describedby",G),C.insert("desc",":first-child").attr("id",G).text(U)}if(H){const G="chart-title-"+W;C.attr("aria-labelledby",G),C.insert("title",":first-child").attr("id",G).text(H)}}else return}const CLASSDEF_DIAGRAMS=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],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 parse$1(C,H){return addDiagrams(),new Diagram$1(C,H).parse(C,H)}async function parseAsync$1(C,H){return addDiagrams(),(await getDiagramFromText(C,H)).parse(C,H)}const encodeEntities=function(C){let H=C;return H=H.replace(/style.*:\S*#.*;/g,function(U){return U.substring(0,U.length-1)}),H=H.replace(/classDef.*:\S*#.*;/g,function(U){return U.substring(0,U.length-1)}),H=H.replace(/#\w+;/g,function(U){const W=U.substring(1,U.length-1);return/^\+?\d+$/.test(W)?"\uFB02\xB0\xB0"+W+"\xB6\xDF":"\uFB02\xB0"+W+"\xB6\xDF"}),H},decodeEntities=function(C){let H=C;return H=H.replace(/fl°°/g,"&#"),H=H.replace(/fl°/g,"&"),H=H.replace(/¶ß/g,";"),H},cssImportantStyles=(C,H,U=[])=>`
|
||
.${C} ${H} { ${U.join(" !important; ")} !important; }`,createCssStyles=(C,H,U={})=>{var W;let G="";if(C.themeCSS!==void 0&&(G+=`
|
||
${C.themeCSS}`),C.fontFamily!==void 0&&(G+=`
|
||
:root { --mermaid-font-family: ${C.fontFamily}}`),C.altFontFamily!==void 0&&(G+=`
|
||
:root { --mermaid-alt-font-family: ${C.altFontFamily}}`),!isEmpty(U)&&CLASSDEF_DIAGRAMS.includes(H)){const ee=C.htmlLabels||((W=C.flowchart)==null?void 0:W.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const ie in U){const te=U[ie];isEmpty(te.styles)||ee.forEach(ne=>{G+=cssImportantStyles(te.id,ne,te.styles)}),isEmpty(te.textStyles)||(G+=cssImportantStyles(te.id,"tspan",te.textStyles))}}return G},createUserStyles=(C,H,U,W)=>{const G=createCssStyles(C,H,U),X=getStyles$2(H,G,C.themeVariables);return serialize(compile(`${W}{${X}}`),stringify)},cleanUpSvgCode=(C="",H,U)=>{let W=C;return!U&&!H&&(W=W.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),W=decodeEntities(W),W=W.replace(/<br>/g,"<br/>"),W},putIntoIFrame=(C="",H)=>{const U=H?H.viewBox.baseVal.height+"px":IFRAME_HEIGHT,W=btoa('<body style="'+IFRAME_BODY_STYLE+'">'+C+"</body>");return`<iframe style="width:${IFRAME_WIDTH};height:${U};${IFRAME_STYLES}" src="data:text/html;base64,${W}" sandbox="${IFRAME_SANDBOX_OPTS}">
|
||
${IFRAME_NOT_SUPPORTED_MSG}
|
||
</iframe>`},appendDivSvgG=(C,H,U,W,G)=>{const X=C.append("div");X.attr("id",U),W&&X.attr("style",W);const Z=X.append("svg").attr("id",H).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return G&&Z.attr("xmlns:xlink",G),Z.append("g"),C};function sandboxedIframe(C,H){return C.append("iframe").attr("id",H).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(C,H,U,W)=>{var G,X,Z;(G=C.getElementById(H))==null||G.remove(),(X=C.getElementById(U))==null||X.remove(),(Z=C.getElementById(W))==null||Z.remove()},render=function(C,H,U,W){var G,X,Z,Q,ee;addDiagrams(),reset();const ie=utils$d.detectInit(H);ie&&(directiveSanitizer(ie),addDirective(ie));const te=getConfig$1();log$1.debug(te),H.length>((G=te==null?void 0:te.maxTextSize)!=null?G:5e4)&&(H=MAX_TEXTLENGTH_EXCEEDED_MSG),H=H.replace(/\r\n?/g,`
|
||
`);const ne="#"+C,ae="i"+C,oe="#"+ae,se="d"+C,le="#"+se;let ce=select("body");const ue=te.securityLevel===SECURITY_LVL_SANDBOX,de=te.securityLevel===SECURITY_LVL_LOOSE,ve=te.fontFamily;if(W!==void 0){if(W&&(W.innerHTML=""),ue){const Ae=sandboxedIframe(select(W),ae);ce=select(Ae.nodes()[0].contentDocument.body),ce.node().style.margin=0}else ce=select(W);appendDivSvgG(ce,C,se,`font-family: ${ve}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,C,se,ae),ue){const Ae=sandboxedIframe(select("body"),ae);ce=select(Ae.nodes()[0].contentDocument.body),ce.node().style.margin=0}else ce=select("body");appendDivSvgG(ce,C,se)}H=encodeEntities(H);let ge,he;try{if(ge=getDiagramFromText(H),"then"in ge)throw new Error("Diagram is a promise. Use renderAsync.")}catch(Ae){ge=new Diagram$1("error"),he=Ae}const me=ce.select(le).node(),_e=ge.type,be=me.firstChild,pe=be.firstChild,fe=CLASSDEF_DIAGRAMS.includes(_e)?ge.renderer.getClasses(H,ge):{},ye=createUserStyles(te,_e,fe,ne),$e=document.createElement("style");$e.innerHTML=ye,be.insertBefore($e,pe);try{ge.renderer.draw(H,C,pkg.version,ge)}catch(Ae){throw errorRenderer.draw(H,C,pkg.version),Ae}const we=ce.select(`${le} svg`),Se=(Z=(X=ge.db).getAccTitle)==null?void 0:Z.call(X),Te=(ee=(Q=ge.db).getAccDescription)==null?void 0:ee.call(Q);addA11yInfo(_e,we,Se,Te),ce.select(`[id="${C}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let xe=ce.select(le).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",te.arrowMarkerAbsolute),xe=cleanUpSvgCode(xe,ue,evaluate(te.arrowMarkerAbsolute)),ue){const Ae=ce.select(le+" svg").node();xe=putIntoIFrame(xe,Ae)}else de||(xe=purify.sanitize(xe,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(U!==void 0)switch(_e){case"flowchart":case"flowchart-v2":U(xe,flowDb.bindFunctions);break;case"gantt":U(xe,ganttDb.bindFunctions);break;case"class":case"classDiagram":U(xe,classDb.bindFunctions);break;default:U(xe)}else log$1.debug("CB = undefined!");attachFunctions();const Ie=select(ue?oe:le).node();if(Ie&&"remove"in Ie&&Ie.remove(),he)throw he;return xe},renderAsync$1=async function(C,H,U,W){var G,X,Z,Q,ee;addDiagrams(),reset();const ie=utils$d.detectInit(H);ie&&(directiveSanitizer(ie),addDirective(ie));const te=getConfig$1();log$1.debug(te),H.length>((G=te==null?void 0:te.maxTextSize)!=null?G:5e4)&&(H=MAX_TEXTLENGTH_EXCEEDED_MSG),H=H.replace(/\r\n?/g,`
|
||
`);const ne="#"+C,ae="i"+C,oe="#"+ae,se="d"+C,le="#"+se;let ce=select("body");const ue=te.securityLevel===SECURITY_LVL_SANDBOX,de=te.securityLevel===SECURITY_LVL_LOOSE,ve=te.fontFamily;if(W!==void 0){if(W&&(W.innerHTML=""),ue){const Ae=sandboxedIframe(select(W),ae);ce=select(Ae.nodes()[0].contentDocument.body),ce.node().style.margin=0}else ce=select(W);appendDivSvgG(ce,C,se,`font-family: ${ve}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,C,se,ae),ue){const Ae=sandboxedIframe(select("body"),ae);ce=select(Ae.nodes()[0].contentDocument.body),ce.node().style.margin=0}else ce=select("body");appendDivSvgG(ce,C,se)}H=encodeEntities(H);let ge,he;try{ge=await getDiagramFromText(H)}catch(Ae){ge=new Diagram$1("error"),he=Ae}const me=ce.select(le).node(),_e=ge.type,be=me.firstChild,pe=be.firstChild,fe=CLASSDEF_DIAGRAMS.includes(_e)?ge.renderer.getClasses(H,ge):{},ye=createUserStyles(te,_e,fe,ne),$e=document.createElement("style");$e.innerHTML=ye,be.insertBefore($e,pe);try{await ge.renderer.draw(H,C,pkg.version,ge)}catch(Ae){throw errorRenderer.draw(H,C,pkg.version),Ae}const we=ce.select(`${le} svg`),Se=(Z=(X=ge.db).getAccTitle)==null?void 0:Z.call(X),Te=(ee=(Q=ge.db).getAccDescription)==null?void 0:ee.call(Q);addA11yInfo(_e,we,Se,Te),ce.select(`[id="${C}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let xe=ce.select(le).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",te.arrowMarkerAbsolute),xe=cleanUpSvgCode(xe,ue,evaluate(te.arrowMarkerAbsolute)),ue){const Ae=ce.select(le+" svg").node();xe=putIntoIFrame(xe,Ae)}else de||(xe=purify.sanitize(xe,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(U!==void 0)switch(_e){case"flowchart":case"flowchart-v2":U(xe,flowDb.bindFunctions);break;case"gantt":U(xe,ganttDb.bindFunctions);break;case"class":case"classDiagram":U(xe,classDb.bindFunctions);break;default:U(xe)}else log$1.debug("CB = undefined!");attachFunctions();const Ie=select(ue?oe:le).node();if(Ie&&"remove"in Ie&&Ie.remove(),he)throw he;return xe};function initialize$1(C={}){var H;(C==null?void 0:C.fontFamily)&&!((H=C.themeVariables)!=null&&H.fontFamily)&&(C.themeVariables={fontFamily:C.fontFamily}),saveConfigFromInitialize(C),(C==null?void 0:C.theme)&&C.theme in theme?C.themeVariables=theme[C.theme].getThemeVariables(C.themeVariables):C&&(C.themeVariables=theme.default.getThemeVariables(C.themeVariables));const U=typeof C=="object"?setSiteConfig(C):getSiteConfig();setLogLevel$1(U.logLevel),addDiagrams()}function addA11yInfo(C,H,U,W){setA11yDiagramInfo(H,C),addSVGa11yTitleDescription(H,U,W,H.attr("id"))}const mermaidAPI=Object.freeze({render,renderAsync:renderAsync$1,parse:parse$1,parseAsync:parseAsync$1,parseDirective:parseDirective$c,initialize:initialize$1,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig)},defaultConfig});setLogLevel$1(getConfig$1().logLevel);reset(getConfig$1());const init=async function(C,H,U){try{await initThrowsErrorsAsync(C,H,U)}catch(W){log$1.warn("Syntax Error rendering"),isDetailedError(W)&&log$1.warn(W.str),mermaid.parseError&&mermaid.parseError(W)}},handleError=(C,H,U)=>{log$1.warn(C),isDetailedError(C)?(U&&U(C.str,C.hash),H.push({...C,message:C.str,error:C})):(U&&U(C),C instanceof Error&&H.push({str:C.message,message:C.message,hash:C.name,error:C}))},initThrowsErrors=function(C,H,U){const W=mermaidAPI.getConfig();C&&(mermaid.sequenceConfig=C),log$1.debug(`${U?"":"No "}Callback function found`);let G;if(H===void 0)G=document.querySelectorAll(".mermaid");else if(typeof H=="string")G=document.querySelectorAll(H);else if(H instanceof HTMLElement)G=[H];else if(H instanceof NodeList)G=H;else throw new Error("Invalid argument nodes for mermaid.init");log$1.debug(`Found ${G.length} diagrams`),(C==null?void 0:C.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(C==null?void 0:C.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:C==null?void 0:C.startOnLoad}));const X=new utils$d.initIdGenerator(W.deterministicIds,W.deterministicIDSeed);let Z;const Q=[];for(const ee of Array.from(G)){log$1.info("Rendering diagram: "+ee.id);/*! Check if previously processed */if(ee.getAttribute("data-processed"))continue;ee.setAttribute("data-processed","true");const ie=`mermaid-${X.next()}`;Z=ee.innerHTML,Z=dedent(utils$d.entityDecode(Z)).trim().replace(/<br\s*\/?>/gi,"<br/>");const te=utils$d.detectInit(Z);te&&log$1.debug("Detected early reinit: ",te);try{mermaidAPI.render(ie,Z,(ne,ae)=>{ee.innerHTML=ne,U!==void 0&&U(ie),ae&&ae(ee)},ee)}catch(ne){handleError(ne,Q,mermaid.parseError)}}if(Q.length>0)throw Q[0]},loadExternalDiagrams=async(...C)=>{log$1.debug(`Loading ${C.length} external diagrams`);const U=(await Promise.allSettled(C.map(async({id:W,detector:G,loader:X})=>{const{diagram:Z}=await X();registerDiagram(W,Z,G)}))).filter(W=>W.status==="rejected");if(U.length>0){log$1.error(`Failed to load ${U.length} external diagrams`);for(const W of U)log$1.error(W);throw new Error(`Failed to load ${U.length} external diagrams`)}},initThrowsErrorsAsync=async function(C,H,U){const W=mermaidAPI.getConfig();C&&(mermaid.sequenceConfig=C),log$1.debug(`${U?"":"No "}Callback function found`);let G;if(H===void 0)G=document.querySelectorAll(".mermaid");else if(typeof H=="string")G=document.querySelectorAll(H);else if(H instanceof HTMLElement)G=[H];else if(H instanceof NodeList)G=H;else throw new Error("Invalid argument nodes for mermaid.init");log$1.debug(`Found ${G.length} diagrams`),(C==null?void 0:C.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(C==null?void 0:C.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:C==null?void 0:C.startOnLoad}));const X=new utils$d.initIdGenerator(W.deterministicIds,W.deterministicIDSeed);let Z;const Q=[];for(const ee of Array.from(G)){log$1.info("Rendering diagram: "+ee.id);/*! Check if previously processed */if(ee.getAttribute("data-processed"))continue;ee.setAttribute("data-processed","true");const ie=`mermaid-${X.next()}`;Z=ee.innerHTML,Z=dedent(utils$d.entityDecode(Z)).trim().replace(/<br\s*\/?>/gi,"<br/>");const te=utils$d.detectInit(Z);te&&log$1.debug("Detected early reinit: ",te);try{await mermaidAPI.renderAsync(ie,Z,(ne,ae)=>{ee.innerHTML=ne,U!==void 0&&U(ie),ae&&ae(ee)},ee)}catch(ne){handleError(ne,Q,mermaid.parseError)}}if(Q.length>0)throw Q[0]},initialize=function(C){mermaidAPI.initialize(C)},registerExternalDiagrams=async(C,{lazyLoad:H=!0}={})=>{H?registerLazyLoadedDiagrams(...C):await loadExternalDiagrams(...C)},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:C}=mermaidAPI.getConfig();C&&mermaid.init().catch(H=>log$1.error("Mermaid failed to initialize",H))}};if(typeof document<"u"){/*!
|
||
* Wait for document loaded before starting the execution
|
||
*/window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(C){mermaid.parseError=C},parse=C=>mermaidAPI.parse(C,mermaid.parseError),executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const C=executionQueue.shift();if(C)try{await C()}catch(H){log$1.error("Error executing queue",H)}}executionQueueRunning=!1}},parseAsync=C=>new Promise((H,U)=>{const W=()=>new Promise((G,X)=>{mermaidAPI.parseAsync(C,mermaid.parseError).then(Z=>{G(Z),H(Z)},Z=>{log$1.error("Error parsing",Z),X(Z),U(Z)})});executionQueue.push(W),executeQueue().catch(U)}),renderAsync=(C,H,U,W)=>new Promise((G,X)=>{const Z=()=>new Promise((Q,ee)=>{mermaidAPI.renderAsync(C,H,U,W).then(ie=>{Q(ie),G(ie)},ie=>{log$1.error("Error parsing",ie),ee(ie),X(ie)})});executionQueue.push(Z),executeQueue().catch(X)}),mermaid={startOnLoad:!0,diagrams:{},mermaidAPI,parse,parseAsync,render:mermaidAPI.render,renderAsync,init,initThrowsErrors,initThrowsErrorsAsync,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler};var nativeFloor=Math.floor,nativeRandom$1=Math.random;function baseRandom$1(C,H){return C+nativeFloor(nativeRandom$1()*(H-C+1))}var _baseRandom=baseRandom$1;function eq$3(C,H){return C===H||C!==C&&H!==H}var eq_1=eq$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$5=root$7.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(C){var H=hasOwnProperty$a.call(C,symToStringTag$1),U=C[symToStringTag$1];try{C[symToStringTag$1]=void 0;var W=!0}catch{}var G=nativeObjectToString$1.call(C);return W&&(H?C[symToStringTag$1]=U:delete C[symToStringTag$1]),G}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(C){return nativeObjectToString.call(C)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$6(C){return C==null?C===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(C)?getRawTag(C):objectToString(C)}var _baseGetTag=baseGetTag$6;function isObject$8(C){var H=typeof C;return C!=null&&(H=="object"||H=="function")}var isObject_1=isObject$8,baseGetTag$5=_baseGetTag,isObject$7=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(C){if(!isObject$7(C))return!1;var H=baseGetTag$5(C);return H==funcTag$2||H==genTag$1||H==asyncTag||H==proxyTag}var isFunction_1=isFunction$3,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,isFunction$2=isFunction_1,isLength$2=isLength_1;function isArrayLike$4(C){return C!=null&&isLength$2(C.length)&&!isFunction$2(C)}var isArrayLike_1=isArrayLike$4,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$3(C,H){var U=typeof C;return H=H==null?MAX_SAFE_INTEGER:H,!!H&&(U=="number"||U!="symbol"&&reIsUint.test(C))&&C>-1&&C%1==0&&C<H}var _isIndex=isIndex$3,eq$2=eq_1,isArrayLike$3=isArrayLike_1,isIndex$2=_isIndex,isObject$6=isObject_1;function isIterateeCall$1(C,H,U){if(!isObject$6(U))return!1;var W=typeof H;return(W=="number"?isArrayLike$3(U)&&isIndex$2(H,U.length):W=="string"&&H in U)?eq$2(U[H],C):!1}var _isIterateeCall=isIterateeCall$1,reWhitespace=/\s/;function trimmedEndIndex$1(C){for(var H=C.length;H--&&reWhitespace.test(C.charAt(H)););return H}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(C){return C&&C.slice(0,trimmedEndIndex(C)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1;function isObjectLike$7(C){return C!=null&&typeof C=="object"}var isObjectLike_1=isObjectLike$7,baseGetTag$4=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(C){return typeof C=="symbol"||isObjectLike$6(C)&&baseGetTag$4(C)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$5=isObject_1,isSymbol$3=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(C){if(typeof C=="number")return C;if(isSymbol$3(C))return NAN;if(isObject$5(C)){var H=typeof C.valueOf=="function"?C.valueOf():C;C=isObject$5(H)?H+"":H}if(typeof C!="string")return C===0?C:+C;C=baseTrim(C);var U=reIsBinary.test(C);return U||reIsOctal.test(C)?freeParseInt(C.slice(2),U?2:8):reIsBadHex.test(C)?NAN:+C}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY$2=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(C){if(!C)return C===0?C:0;if(C=toNumber(C),C===INFINITY$2||C===-INFINITY$2){var H=C<0?-1:1;return H*MAX_INTEGER}return C===C?C:0}var toFinite_1=toFinite$1,baseRandom=_baseRandom,isIterateeCall=_isIterateeCall,toFinite=toFinite_1,freeParseFloat=parseFloat,nativeMin=Math.min,nativeRandom=Math.random;function random(C,H,U){if(U&&typeof U!="boolean"&&isIterateeCall(C,H,U)&&(H=U=void 0),U===void 0&&(typeof H=="boolean"?(U=H,H=void 0):typeof C=="boolean"&&(U=C,C=void 0)),C===void 0&&H===void 0?(C=0,H=1):(C=toFinite(C),H===void 0?(H=C,C=0):H=toFinite(H)),C>H){var W=C;C=H,H=W}if(U||C%1||H%1){var G=nativeRandom();return nativeMin(C+G*(H-C+freeParseFloat("1e-"+((G+"").length-1))),H)}return baseRandom(C,H)}var random_1=random;mermaid.initialize({logLevel:5});function MermaIdCall(C){}var renderer=new marked.Renderer;renderer.code=function(C,H){if(H==="mermaid"){let U="mermaId-"+random_1(1,1e6)+random_1(1,10);try{let W=mermaid.mermaidAPI.render(U,C,MermaIdCall);return'<div class="mermaid" id="'+U+'">'+W+"</div>"}catch{}return'<pre><code class="language-'+H+'">'+C+"</code></pre>"}else return'<pre><code class="language-'+H+'">'+C+"</code></pre>"};marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1,renderer});const _sfc_main$g={name:"Markdown",props:{source:{type:String}},computed:{markdownSource(){return marked.parse(this.source)}}},_hoisted_1$b=["innerHTML"];function _sfc_render$f(C,H,U,W,G,X){return openBlock(),createElementBlock("div",{class:"knife4j-markdown",innerHTML:X.markdownSource},null,8,_hoisted_1$b)}const __unplugin_components_0$1=_export_sfc(_sfc_main$g,[["render",_sfc_render$f]]),index$e=Object.freeze(Object.defineProperty({__proto__:null,default:__unplugin_components_0$1},Symbol.toStringTag,{value:"Module"})),index_vue_vue_type_style_index_0_scoped_e3efc57d_lang="",_sfc_main$f={name:"GlobalFooter",components:{Markdown:__unplugin_components_0$1,CopyrightOutlined:CopyrightOutlined$1},props:{links:{type:Array,default:()=>[]}},setup(){const C=useGlobalsStore();return{settings:computed(()=>C.settings)}}},_withScopeId$2=C=>(pushScopeId("data-v-e3efc57d"),C=C(),popScopeId(),C),_hoisted_1$a={class:"globalFooter"},_hoisted_2$7={key:1,style:{"text-align":"center"}},_hoisted_3$7={class:"copyright"},_hoisted_4$6=_withScopeId$2(()=>createBaseVNode("a",{target:"_blank",href:"https://gitee.com/xiaoym/knife4j"},"Knife4j",-1));function _sfc_render$e(C,H,U,W,G,X){const Z=__unplugin_components_0$1,Q=__unplugin_components_1$1,ee=resolveComponent("copyright-outlined");return openBlock(),createElementBlock("div",_hoisted_1$a,[W.settings.enableFooterCustom?(openBlock(),createBlock(Q,{key:0},{default:withCtx(()=>[W.settings.enableFooterCustom?(openBlock(),createBlock(Z,{key:0,source:W.settings.footerCustomContent},null,8,["source"])):createCommentVNode("",!0)]),_:1})):W.settings.enableFooter?(openBlock(),createElementBlock("div",_hoisted_2$7,[createBaseVNode("div",_hoisted_3$7,[createTextVNode("Apache License 2.0 | Copyright "),createVNode(ee),createTextVNode(" 2019-"),_hoisted_4$6])])):createCommentVNode("",!0)])}const GlobalFooter=_export_sfc(_sfc_main$f,[["render",_sfc_render$e],["__scopeId","data-v-e3efc57d"]]);var md5$1={exports:{}};/**
|
||
* [js-md5]{@link https://github.com/emn178/js-md5}
|
||
*
|
||
* @namespace md5
|
||
* @version 0.7.3
|
||
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
||
* @copyright Chen, Yi-Cyuan 2014-2017
|
||
* @license MIT
|
||
*/(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(C){return Object.prototype.toString.call(C)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(C){return typeof C=="object"&&C.buffer&&C.buffer.constructor===ArrayBuffer});var createOutputMethod=function(C){return function(H){return new Md5(!0).update(H)[C]()}},createMethod=function(){var C=createOutputMethod("hex");NODE_JS&&(C=nodeWrap(C)),C.create=function(){return new Md5},C.update=function(W){return C.create().update(W)};for(var H=0;H<OUTPUT_TYPES.length;++H){var U=OUTPUT_TYPES[H];C[U]=createOutputMethod(U)}return C},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(C){if(typeof C=="string")return crypto.createHash("md5").update(C,"utf8").digest("hex");if(C==null)throw ERROR;return C.constructor===ArrayBuffer&&(C=new Uint8Array(C)),Array.isArray(C)||ArrayBuffer.isView(C)||C.constructor===Buffer?crypto.createHash("md5").update(new Buffer(C)).digest("hex"):method(C)};return nodeMethod};function Md5(C){if(C)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var H=new ArrayBuffer(68);this.buffer8=new Uint8Array(H),this.blocks=new Uint32Array(H)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(C){if(!this.finalized){var H,U=typeof C;if(U!=="string"){if(U==="object"){if(C===null)throw ERROR;if(ARRAY_BUFFER&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(C)))throw ERROR}else throw ERROR;H=!0}for(var W,G=0,X,Z=C.length,Q=this.blocks,ee=this.buffer8;G<Z;){if(this.hashed&&(this.hashed=!1,Q[0]=Q[16],Q[16]=Q[1]=Q[2]=Q[3]=Q[4]=Q[5]=Q[6]=Q[7]=Q[8]=Q[9]=Q[10]=Q[11]=Q[12]=Q[13]=Q[14]=Q[15]=0),H)if(ARRAY_BUFFER)for(X=this.start;G<Z&&X<64;++G)ee[X++]=C[G];else for(X=this.start;G<Z&&X<64;++G)Q[X>>2]|=C[G]<<SHIFT[X++&3];else if(ARRAY_BUFFER)for(X=this.start;G<Z&&X<64;++G)W=C.charCodeAt(G),W<128?ee[X++]=W:W<2048?(ee[X++]=192|W>>6,ee[X++]=128|W&63):W<55296||W>=57344?(ee[X++]=224|W>>12,ee[X++]=128|W>>6&63,ee[X++]=128|W&63):(W=65536+((W&1023)<<10|C.charCodeAt(++G)&1023),ee[X++]=240|W>>18,ee[X++]=128|W>>12&63,ee[X++]=128|W>>6&63,ee[X++]=128|W&63);else for(X=this.start;G<Z&&X<64;++G)W=C.charCodeAt(G),W<128?Q[X>>2]|=W<<SHIFT[X++&3]:W<2048?(Q[X>>2]|=(192|W>>6)<<SHIFT[X++&3],Q[X>>2]|=(128|W&63)<<SHIFT[X++&3]):W<55296||W>=57344?(Q[X>>2]|=(224|W>>12)<<SHIFT[X++&3],Q[X>>2]|=(128|W>>6&63)<<SHIFT[X++&3],Q[X>>2]|=(128|W&63)<<SHIFT[X++&3]):(W=65536+((W&1023)<<10|C.charCodeAt(++G)&1023),Q[X>>2]|=(240|W>>18)<<SHIFT[X++&3],Q[X>>2]|=(128|W>>12&63)<<SHIFT[X++&3],Q[X>>2]|=(128|W>>6&63)<<SHIFT[X++&3],Q[X>>2]|=(128|W&63)<<SHIFT[X++&3]);this.lastByteIndex=X,this.bytes+=X-this.start,X>=64?(this.start=X-64,this.hash(),this.hashed=!0):this.start=X}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var C=this.blocks,H=this.lastByteIndex;C[H>>2]|=EXTRA[H&3],H>=56&&(this.hashed||this.hash(),C[0]=C[16],C[16]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=0),C[14]=this.bytes<<3,C[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var C,H,U,W,G,X,Z=this.blocks;this.first?(C=Z[0]-680876937,C=(C<<7|C>>>25)-271733879<<0,W=(-1732584194^C&2004318071)+Z[1]-117830708,W=(W<<12|W>>>20)+C<<0,U=(-271733879^W&(C^-271733879))+Z[2]-1126478375,U=(U<<17|U>>>15)+W<<0,H=(C^U&(W^C))+Z[3]-1316259209,H=(H<<22|H>>>10)+U<<0):(C=this.h0,H=this.h1,U=this.h2,W=this.h3,C+=(W^H&(U^W))+Z[0]-680876936,C=(C<<7|C>>>25)+H<<0,W+=(U^C&(H^U))+Z[1]-389564586,W=(W<<12|W>>>20)+C<<0,U+=(H^W&(C^H))+Z[2]+606105819,U=(U<<17|U>>>15)+W<<0,H+=(C^U&(W^C))+Z[3]-1044525330,H=(H<<22|H>>>10)+U<<0),C+=(W^H&(U^W))+Z[4]-176418897,C=(C<<7|C>>>25)+H<<0,W+=(U^C&(H^U))+Z[5]+1200080426,W=(W<<12|W>>>20)+C<<0,U+=(H^W&(C^H))+Z[6]-1473231341,U=(U<<17|U>>>15)+W<<0,H+=(C^U&(W^C))+Z[7]-45705983,H=(H<<22|H>>>10)+U<<0,C+=(W^H&(U^W))+Z[8]+1770035416,C=(C<<7|C>>>25)+H<<0,W+=(U^C&(H^U))+Z[9]-1958414417,W=(W<<12|W>>>20)+C<<0,U+=(H^W&(C^H))+Z[10]-42063,U=(U<<17|U>>>15)+W<<0,H+=(C^U&(W^C))+Z[11]-1990404162,H=(H<<22|H>>>10)+U<<0,C+=(W^H&(U^W))+Z[12]+1804603682,C=(C<<7|C>>>25)+H<<0,W+=(U^C&(H^U))+Z[13]-40341101,W=(W<<12|W>>>20)+C<<0,U+=(H^W&(C^H))+Z[14]-1502002290,U=(U<<17|U>>>15)+W<<0,H+=(C^U&(W^C))+Z[15]+1236535329,H=(H<<22|H>>>10)+U<<0,C+=(U^W&(H^U))+Z[1]-165796510,C=(C<<5|C>>>27)+H<<0,W+=(H^U&(C^H))+Z[6]-1069501632,W=(W<<9|W>>>23)+C<<0,U+=(C^H&(W^C))+Z[11]+643717713,U=(U<<14|U>>>18)+W<<0,H+=(W^C&(U^W))+Z[0]-373897302,H=(H<<20|H>>>12)+U<<0,C+=(U^W&(H^U))+Z[5]-701558691,C=(C<<5|C>>>27)+H<<0,W+=(H^U&(C^H))+Z[10]+38016083,W=(W<<9|W>>>23)+C<<0,U+=(C^H&(W^C))+Z[15]-660478335,U=(U<<14|U>>>18)+W<<0,H+=(W^C&(U^W))+Z[4]-405537848,H=(H<<20|H>>>12)+U<<0,C+=(U^W&(H^U))+Z[9]+568446438,C=(C<<5|C>>>27)+H<<0,W+=(H^U&(C^H))+Z[14]-1019803690,W=(W<<9|W>>>23)+C<<0,U+=(C^H&(W^C))+Z[3]-187363961,U=(U<<14|U>>>18)+W<<0,H+=(W^C&(U^W))+Z[8]+1163531501,H=(H<<20|H>>>12)+U<<0,C+=(U^W&(H^U))+Z[13]-1444681467,C=(C<<5|C>>>27)+H<<0,W+=(H^U&(C^H))+Z[2]-51403784,W=(W<<9|W>>>23)+C<<0,U+=(C^H&(W^C))+Z[7]+1735328473,U=(U<<14|U>>>18)+W<<0,H+=(W^C&(U^W))+Z[12]-1926607734,H=(H<<20|H>>>12)+U<<0,G=H^U,C+=(G^W)+Z[5]-378558,C=(C<<4|C>>>28)+H<<0,W+=(G^C)+Z[8]-2022574463,W=(W<<11|W>>>21)+C<<0,X=W^C,U+=(X^H)+Z[11]+1839030562,U=(U<<16|U>>>16)+W<<0,H+=(X^U)+Z[14]-35309556,H=(H<<23|H>>>9)+U<<0,G=H^U,C+=(G^W)+Z[1]-1530992060,C=(C<<4|C>>>28)+H<<0,W+=(G^C)+Z[4]+1272893353,W=(W<<11|W>>>21)+C<<0,X=W^C,U+=(X^H)+Z[7]-155497632,U=(U<<16|U>>>16)+W<<0,H+=(X^U)+Z[10]-1094730640,H=(H<<23|H>>>9)+U<<0,G=H^U,C+=(G^W)+Z[13]+681279174,C=(C<<4|C>>>28)+H<<0,W+=(G^C)+Z[0]-358537222,W=(W<<11|W>>>21)+C<<0,X=W^C,U+=(X^H)+Z[3]-722521979,U=(U<<16|U>>>16)+W<<0,H+=(X^U)+Z[6]+76029189,H=(H<<23|H>>>9)+U<<0,G=H^U,C+=(G^W)+Z[9]-640364487,C=(C<<4|C>>>28)+H<<0,W+=(G^C)+Z[12]-421815835,W=(W<<11|W>>>21)+C<<0,X=W^C,U+=(X^H)+Z[15]+530742520,U=(U<<16|U>>>16)+W<<0,H+=(X^U)+Z[2]-995338651,H=(H<<23|H>>>9)+U<<0,C+=(U^(H|~W))+Z[0]-198630844,C=(C<<6|C>>>26)+H<<0,W+=(H^(C|~U))+Z[7]+1126891415,W=(W<<10|W>>>22)+C<<0,U+=(C^(W|~H))+Z[14]-1416354905,U=(U<<15|U>>>17)+W<<0,H+=(W^(U|~C))+Z[5]-57434055,H=(H<<21|H>>>11)+U<<0,C+=(U^(H|~W))+Z[12]+1700485571,C=(C<<6|C>>>26)+H<<0,W+=(H^(C|~U))+Z[3]-1894986606,W=(W<<10|W>>>22)+C<<0,U+=(C^(W|~H))+Z[10]-1051523,U=(U<<15|U>>>17)+W<<0,H+=(W^(U|~C))+Z[1]-2054922799,H=(H<<21|H>>>11)+U<<0,C+=(U^(H|~W))+Z[8]+1873313359,C=(C<<6|C>>>26)+H<<0,W+=(H^(C|~U))+Z[15]-30611744,W=(W<<10|W>>>22)+C<<0,U+=(C^(W|~H))+Z[6]-1560198380,U=(U<<15|U>>>17)+W<<0,H+=(W^(U|~C))+Z[13]+1309151649,H=(H<<21|H>>>11)+U<<0,C+=(U^(H|~W))+Z[4]-145523070,C=(C<<6|C>>>26)+H<<0,W+=(H^(C|~U))+Z[11]-1120210379,W=(W<<10|W>>>22)+C<<0,U+=(C^(W|~H))+Z[2]+718787259,U=(U<<15|U>>>17)+W<<0,H+=(W^(U|~C))+Z[9]-343485551,H=(H<<21|H>>>11)+U<<0,this.first?(this.h0=C+1732584193<<0,this.h1=H-271733879<<0,this.h2=U-1732584194<<0,this.h3=W+271733878<<0,this.first=!1):(this.h0=this.h0+C<<0,this.h1=this.h1+H<<0,this.h2=this.h2+U<<0,this.h3=this.h3+W<<0)},Md5.prototype.hex=function(){this.finalize();var C=this.h0,H=this.h1,U=this.h2,W=this.h3;return HEX_CHARS[C>>4&15]+HEX_CHARS[C&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[H&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[U&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[W&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var C=this.h0,H=this.h1,U=this.h2,W=this.h3;return[C&255,C>>8&255,C>>16&255,C>>24&255,H&255,H>>8&255,H>>16&255,H>>24&255,U&255,U>>8&255,U>>16&255,U>>24&255,W&255,W>>8&255,W>>16&255,W>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var C=new ArrayBuffer(16),H=new Uint32Array(C);return H[0]=this.h0,H[1]=this.h1,H[2]=this.h2,H[3]=this.h3,C},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var C,H,U,W="",G=this.array(),X=0;X<15;)C=G[X++],H=G[X++],U=G[X++],W+=BASE64_ENCODE_CHAR[C>>>2]+BASE64_ENCODE_CHAR[(C<<4|H>>>4)&63]+BASE64_ENCODE_CHAR[(H<<2|U>>>6)&63]+BASE64_ENCODE_CHAR[U&63];return C=G[X],W+=BASE64_ENCODE_CHAR[C>>>2]+BASE64_ENCODE_CHAR[C<<4&63]+"==",W};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5$1);const md5=md5$1.exports;var JSON5=typeof exports=="object"?exports:{};JSON5.parse=function(){var C,H,U,W,G={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:`
|
||
`,r:"\r",t:" "},X=[" "," ","\r",`
|
||
`,"\v","\f","\xA0","\uFEFF"],Z,Q=function(me){return me===""?"EOF":"'"+me+"'"},ee=function(me){var _e=new SyntaxError;throw _e.message=me+" at line "+H+" column "+U+" of the JSON5 data. Still to read: "+JSON.stringify(Z.substring(C-1,C+19)),_e.at=C,_e.lineNumber=H,_e.columnNumber=U,_e},ie=function(me){return me&&me!==W&&ee("Expected "+Q(me)+" instead of "+Q(W)),W=Z.charAt(C),C++,U++,(W===`
|
||
`||W==="\r"&&te()!==`
|
||
`)&&(H++,U=0),W},te=function(){return Z.charAt(C)},ne=function(){var me=W;for(W!=="_"&&W!=="$"&&(W<"a"||W>"z")&&(W<"A"||W>"Z")&&ee("Bad identifier as unquoted key");ie()&&(W==="_"||W==="$"||W>="a"&&W<="z"||W>="A"&&W<="Z"||W>="0"&&W<="9");)me+=W;return me},ae=function(){var me,_e="",be="",pe=10;if((W==="-"||W==="+")&&(_e=W,ie(W)),W==="I")return me=de(),(typeof me!="number"||isNaN(me))&&ee("Unexpected word for number"),_e==="-"?-me:me;if(W==="N")return me=de(),isNaN(me)||ee("expected word to be NaN"),me;switch(W==="0"&&(be+=W,ie(),W==="x"||W==="X"?(be+=W,ie(),pe=16):W>="0"&&W<="9"&&ee("Octal literal")),pe){case 10:for(;W>="0"&&W<="9";)be+=W,ie();if(W===".")for(be+=".";ie()&&W>="0"&&W<="9";)be+=W;if(W==="e"||W==="E")for(be+=W,ie(),(W==="-"||W==="+")&&(be+=W,ie());W>="0"&&W<="9";)be+=W,ie();break;case 16:for(;W>="0"&&W<="9"||W>="A"&&W<="F"||W>="a"&&W<="f";)be+=W,ie();break}if(_e==="-"?me=-be:me=+be,be.length>15&&(me=new Number(be),me.toString=function(){return _e+be}),!isFinite(me))ee("Bad number");else return me},oe=function(){var me,_e,be="",pe,fe;if(W==='"'||W==="'")for(pe=W;ie();){if(W===pe)return ie(),be;if(W==="\\")if(ie(),W==="u"){for(fe=0,_e=0;_e<4&&(me=parseInt(ie(),16),!!isFinite(me));_e+=1)fe=fe*16+me;be+=String.fromCharCode(fe)}else if(W==="\r")te()===`
|
||
`&&ie();else if(typeof G[W]=="string")be+=G[W];else break;else{if(W===`
|
||
`)break;be+=W}}ee("Bad string")},se=function(){W!=="/"&&ee("Not an inline comment");do if(ie(),W===`
|
||
`||W==="\r"){ie();return}while(W)},le=function(){W!=="*"&&ee("Not a block comment");do for(ie();W==="*";)if(ie("*"),W==="/"){ie("/");return}while(W);ee("Unterminated block comment")},ce=function(){W!=="/"&&ee("Not a comment"),ie("/"),W==="/"?se():W==="*"?le():ee("Unrecognized comment")},ue=function(){for(;W;)if(W==="/")ce();else if(X.indexOf(W)>=0)ie();else return},de=function(){switch(W){case"t":return ie("t"),ie("r"),ie("u"),ie("e"),!0;case"f":return ie("f"),ie("a"),ie("l"),ie("s"),ie("e"),!1;case"n":return ie("n"),ie("u"),ie("l"),ie("l"),null;case"I":return ie("I"),ie("n"),ie("f"),ie("i"),ie("n"),ie("i"),ie("t"),ie("y"),1/0;case"N":return ie("N"),ie("a"),ie("N"),NaN}ee("Unexpected "+Q(W))},ve,ge=function(){var me=[];if(W==="[")for(ie("["),ue();W;){if(W==="]"||(W===","?ee("Missing array element"):me.push(ve()),ue(),W!==","))return ie("]"),me;ie(","),ue()}ee("Bad array")},he=function(){var me,_e={};if(W==="{")for(ie("{"),ue();W;){if(W==="}"||(W==='"'||W==="'"?me=oe():me=ne(),ue(),ie(":"),_e[me]=ve(),ue(),W!==","))return ie("}"),_e;ie(","),ue()}ee("Bad object")};return ve=function(){switch(ue(),W){case"{":return he();case"[":return ge();case'"':case"'":return oe();case"-":case"+":case".":return ae();default:return W>="0"&&W<="9"?ae():de()}},function(me,_e){var be;return Z=String(me),C=0,H=1,U=1,W=" ",be=ve(),ue(),W&&ee("Syntax error"),typeof _e=="function"?function pe(fe,ye){var $e,we,Se=fe[ye];if(Se&&typeof Se=="object")for($e in Se)Object.prototype.hasOwnProperty.call(Se,$e)&&(we=pe(Se,$e),we!==void 0?Se[$e]=we:delete Se[$e]);return _e.call(fe,ye,Se)}({"":be},""):be}}();JSON5.stringify=function(C,H,U){if(H&&typeof H!="function"&&!Q(H))throw new Error("Replacer must be a function or an array");var W=function(ve,ge,he){var me=ve[ge];return me&&me.toJSON&&typeof me.toJSON=="function"&&(me=me.toJSON()),typeof H=="function"?H.call(ve,ge,me):H?he||Q(ve)||H.indexOf(ge)>=0?me:void 0:me};function G(ve){return ve>="a"&&ve<="z"||ve>="A"&&ve<="Z"||ve>="0"&&ve<="9"||ve==="_"||ve==="$"}function X(ve){return ve>="a"&&ve<="z"||ve>="A"&&ve<="Z"||ve==="_"||ve==="$"}function Z(ve){if(typeof ve!="string"||!X(ve[0]))return!1;for(var ge=1,he=ve.length;ge<he;){if(!G(ve[ge]))return!1;ge++}return!0}JSON5.isWord=Z;function Q(ve){return Array.isArray?Array.isArray(ve):Object.prototype.toString.call(ve)==="[object Array]"}function ee(ve){return Object.prototype.toString.call(ve)==="[object Number]"}function ie(ve){return Object.prototype.toString.call(ve)==="[object Date]"}var te=[];function ne(ve){for(var ge=0;ge<te.length;ge++)if(te[ge]===ve)throw new TypeError("Converting circular structure to JSON")}function ae(ve,ge,he){if(!ve)return"";ve.length>10&&(ve=ve.substring(0,10));for(var me=he?"":`
|
||
`,_e=0;_e<ge;_e++)me+=ve;return me}var oe;U&&(typeof U=="string"?oe=U:typeof U=="number"&&U>=0&&(oe=ae(" ",U,!0)));var se=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,le={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function ce(ve){return se.lastIndex=0,se.test(ve)?'"'+ve.replace(se,function(ge){var he=le[ge];return typeof he=="string"?he:"\\u"+("0000"+ge.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ve+'"'}function ue(ve,ge,he){var me,_e,be=W(ve,ge,he);switch(be&&!ie(be)&&!ee(be)&&(be=be.valueOf()),typeof be){case"boolean":return be.toString();case"number":return isNaN(be)||!isFinite(be)?"null":be.toString();case"string":return ce(be.toString());case"object":if(be===null)return"null";if(Q(be)){ne(be),me="[",te.push(be);for(var pe=0;pe<be.length;pe++)_e=ue(be,pe,!1),me+=ae(oe,te.length),_e===null||typeof _e>"u"?me+="null":me+=_e,pe<be.length-1?me+=",":oe&&(me+=`
|
||
`);te.pop(),be.length&&(me+=ae(oe,te.length,!0)),me+="]"}else{if(ee(be))return be.toString();ne(be),me="{";var fe=!1;te.push(be);for(var ye in be)if(be.hasOwnProperty(ye)){var $e=ue(be,ye,!1);if(he=!1,typeof $e<"u"&&$e!==null){me+=ae(oe,te.length),fe=!0,JSON5.compatible?ge=ce(ye):ge=Z(ye)?ye:ce(ye);var we=new RegExp('".*?"',"ig");we.test(ge)?me+=ge+":"+(oe?" ":"")+$e+",":me+='"'+ge+'":'+(oe?" ":"")+$e+","}}te.pop(),fe?me=me.substring(0,me.length-1)+ae(oe,te.length)+"}":me="{}"}return me;default:return}}var de={"":C};return C===void 0?W(de,"",!0):ue(de,"",!0)};var baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,numberTag$3="[object Number]";function isNumber$1(C){return typeof C=="number"||isObjectLike$5(C)&&baseGetTag$3(C)==numberTag$3}var isNumber_1=isNumber$1;const reg=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/g,binaryContentType={"application/octet-stream":!0,"application/x-001":!0,"text/h323":!0,"drawing/907":!0,"audio/x-mei-aac":!0,"audio/aiff":!0,"text/asa":!0,"text/asp":!0,"audio/basic":!0,"application/vnd.adobe.workflow":!0,"application/x-bmp":!0,"application/x-c4t":!0,"application/x-cals":!0,"application/x-netcdf":!0,"application/x-cel":!0,"application/x-g4":!0,"application/x-cit":!0,"text/xml":!0,"application/x-cmx":!0,"application/pkix-crl":!0,"application/x-csi":!0,"application/x-cut":!0,"application/x-dbm":!0,"application/x-x509-ca-cert":!0,"application/x-dib":!0,"application/msword":!0,"application/x-drw":!0,"Model/vnd.dwf":!0,"application/x-dwg":!0,"application/x-dxf":!0,"application/x-emf":!0,"application/x-ps":!0,"application/x-ebx":!0,"image/fax":!0,"application/fractals":!0,"application/x-frm":!0,"application/x-gbr":!0,"image/gif":!0,"application/x-gp4":!0,"application/x-hmr":!0,"application/x-hpl":!0,"application/x-hrf":!0,"text/x-component":!0,"text/html":!0,"image/x-icon":!0,"application/x-iff":!0,"application/x-igs":!0,"application/x-img":!0,"application/x-internet-signup":!0,"java/*":!0,"image/jpeg":!0,"application/x-jpg":!0,"application/x-laplayer-reg":!0,"audio/x-liquid-secure":!0,"audio/x-la-lms":!0,"application/x-ltr":!0,"video/x-mpeg":!0,"video/mpeg4":!0,"application/x-troff-man":!0,"application/msaccess":!0,"application/x-shockwave-flash":!0,"message/rfc822":!0,"audio/mid":!0,"application/x-mil":!0,"audio/x-musicnet-download":!0,"application/x-javascript":!0,"audio/mp1":!0,"video/mpeg":!0,"application/vnd.ms-project":!0,"video/mpg":!0,"audio/rn-mpeg":!0,"image/pnetvue":!0,"application/x-out":!0,"application/x-pkcs12":!0,"application/pkcs7-mime":!0,"application/x-pkcs7-certreqresp":!0,"application/x-pc5":!0,"application/x-pcl":!0,"application/pdf":!0,"application/vnd.adobe.pdx":!0,"application/x-pgl":!0,"application/vnd.ms-pki.pko":!0,"application/x-plt":!0,"application/x-png":!0,"application/vnd.ms-powerpoint":!0,"application/x-ppt":!0,"application/pics-rules":!0,"application/x-prt":!0,"application/postscript":!0,"audio/vnd.rn-realaudio":!0,"application/x-ras":!0,"application/x-red":!0,"application/vnd.rn-realsystem-rjs":!0,"application/x-rlc":!0,"application/vnd.rn-realmedia":!0,"audio/x-pn-realaudio":!0,"application/vnd.rn-realmedia-secure":!0,"application/vnd.rn-realsystem-rmx":!0,"image/vnd.rn-realpix":!0,"application/vnd.rn-rsml":!0,"video/vnd.rn-realvideo":!0,"application/x-sat":!0,"application/x-sdw":!0,"application/x-slb":!0,"drawing/x-slk":!0,"application/smil":!0,"text/plain":!0,"application/futuresplash":!0,"application/streamingmedia":!0,"application/vnd.ms-pki.stl":!0,"application/x-sty":!0,"application/x-tg4":!0,"image/tiff":!0,"image/png":!0,"drawing/x-top":!0,"application/x-icq":!0,"text/x-vcard":!0,"application/vnd.visio":!0,"application/x-vpeg005":!0,"application/x-vsd":!0,"audio/wav":!0,"application/x-wb1":!0,"application/x-wb3":!0,"application/x-wk4":!0,"application/x-wks":!0,"audio/x-ms-wma":!0,"application/x-wmf":!0,"video/x-ms-wmv":!0,"application/x-ms-wmz":!0,"application/x-wpd":!0,"application/vnd.ms-wpl":!0,"application/x-wr1":!0,"application/x-wrk":!0,"application/x-ws":!0,"application/vnd.adobe.xdp":!0,"application/vnd.adobe.xfd":!0,"application/x-xls":!0,"application/x-xwd":!0,"application/vnd.symbian.install":!0,"application/x-x_t":!0,"application/vnd.android.package-archive":!0};function isUrl(C){return reg.test(C)}const utils$c={getOAuth2Html(C){return C?"webjars/oauth/oauth2.html":"oauth/oauth2.html"},getOAuth2BearerValue(C,H){return C=="bearer"&&H!=null&&H!=""?H.toLocaleLowerCase().indexOf("bearer")>-1?H:"Bearer "+H:H},groupName(C,H){var U=H,W=new RegExp(".*?group=(.*?)(&.*?)?$");if(W.test(C)){var G=RegExp.$1;this.strNotBlank(G)&&G!=H&&(U=G)}return U},oasmodel(C){return C?"#/definitions/(.*)$":"#/components/schemas/(.*)$"},filterIgnoreParameters(C,H,U){if(U==null)return!0;var W=Object.keys(U||{}),G=[],X=new RegExp("\\[0\\]","gm");if(W!=null&&W.length>0&&W.forEach(Q=>{G.push(Q),Q.indexOf("[0]")>-1&&G.push(Q.replace(X,""))}),H.indexOf("[0]")>-1)if(G.length>0){var Z=G.filter(Q=>H.startsWith(Q));return!(Z.length>0)}else return!0;else return C=="query"?!G.some(Q=>new RegExp(`^(${Q}$|${Q}[.[])`).test(H)||new RegExp(Q,"g").test(H)):!G.includes(H)},appendBasePath(C,H){var U=!1;try{if(this.checkUndefined(H)&&this.strNotBlank(H)&&H!="/"){var W=Object.keys(C||{}),G=W.length,X=0;let Q=H+"/";for(var Z=0;Z<W.length;Z++)W[Z].startsWith(Q)&&X++;X==G&&(U=!0)}else U=!0}catch{U=!0}return U},filterIncludeParameters(C,H,U){if(U==null)return!0;var W=Object.keys(U||{}),G=[],X=new RegExp("\\[0\\]","gm");if(W!=null&&W.length>0&&W.forEach(Q=>{G.push(Q),Q.indexOf("[0]")>-1&&G.push(Q.replace(X,""))}),H.indexOf("[0]")>-1)if(G.length>0){var Z=G.filter(Q=>H.startsWith(Q));return Z.length>0}else return!0;else return C=="query"?G.includes(H):C=="body"?!0:G.includes(H)},rootKeysPath(C,H,U){var W=[];if(H!=null&&H!=null)for(var G in H){var X=C+"."+G,Z=U.some(ie=>ie.startsWith(X));if(!Z){W.push(X);var Q=H[G];if(Array.isArray(Q)){var ee=C+"."+G+"[0]";W=W.concat(this.rootKeysPath(ee,Q[0],U))}else isObject_1(Q)&&(W=W.concat(this.rootKeysPath(X,Q,U)))}}return W},binaryContentType(C,H){var U=!1,W="";C!=null&&C!=null&&C.forEach(function(X){binaryContentType[X]&&(W=X,U=!0)}),H!=null&&!U&&binaryContentType[H]&&(U=!0,W=H);var G={binary:U,binaryType:W};return G},copyOneObject(C){var H={};for(var U in C)H[U]=C[U];return H},randomMd5(){return md5(new Date().getTime().toString()+Math.floor(Math.random()*1e5).toString())},randomMd5Str(C){return md5(new Date().getTime().toString()+Math.floor(Math.random()*1e4).toString()+C)},formatter:function(C,H="/",U){return C.map(W=>{let{path:G}=W;isUrl(G)||(G=H+W.path);const X={...W,path:G,authority:W.authority||U};return W.children&&(X.children=this.formatter(W.children,`${H}${W.path}/`,W.authority)),X})},md5Id:function(C){var H="";try{if(C!=null&&C!=null){var U=JSON.stringify(C);if(U!=""){var W=U.split("");W.sort();var G=W.join("");H=md5(G)}}}catch{}return H},checkParamArrsExists:function(C,H){return(C||[]).some(U=>U.name+U.in==H.name+H.in)},isChinese:function(C){var H=new RegExp("[\\u4E00-\\u9FFF]+","g");return H.test(C)},json5stringifyNoFormat:function(C){var H=null;try{H=JSON5.stringify(C)}catch{H=JSON.stringify(C)}return H},json5stringify:function(C){let H=null;try{H=JSON5.stringify(C,null,2)}catch{H=JSON.stringify(C,null,2)}return H},json5stringifyFormat:function(C,H,U){var W=null;try{W=JSON5.stringify(C,H,U)}catch{W=JSON.stringify(C,H,U)}return W},json5parse:function(C){var H=null;try{H=JSON5.parse(C)}catch{H=JSON.parse(C)}return H},filterJsonObject:function(C,H,U){var W=null;try{W=utils$c.filterObject(C,H,U)}catch{W=H}return W},filterObject:function(C,H,U){var W={};if(U!=null&&U!=null)for(var G in H){var X=H[G],Z=C+"."+G;U.hasOwnProperty(Z)||(W[G]=X);var Q=utils$c.genericType(X);if(Q=="object")W[G]=utils$c.filterObject(Z,X,U);else if(Q=="array"){var ee=X[0],ie=new Array;ie.push(utils$c.filterObject(Z,ee,U)),W[G]=ie}}else W=H;return W},genericType:function(C){var H=Object.prototype.toString.call(C),U="";return H!=null&&H!=null&&(H.indexOf("Array")!=-1?U="array":H.indexOf("Object")!=-1&&(U="object")),U},getJsonKeyLength:function(C){var H=0;if(C!=null)for(key in C)C.hasOwnProperty(key)&&H++;return H},regexMatchStr:function(C,H){var U=!1;if(C!=null&&C!=null&&H!=null&&H!=null){var W=H.match(C);W!=null&&(U=!0)}return U},searchMatch(C,H){var U=!1;return C!=null&&C!=null&&H!=null&&H!=null&&(U=new RegExp(C,"ig").test(H)),U},validateJSR303:function(C,H){var U=H.maximum,W=H.minimum,G=H.exclusiveMinimum,X=H.exclusiveMaximum,Z=H.pattern,Q=H.maxLength,ee=H.minLength;U||W||G||X?(C.validateStatus=!0,C.validateInstance={minimum:W,maximum:U,exclusiveMaximum:X,exclusiveMinimum:G}):Z?(C.validateStatus=!0,C.validateInstance={pattern:H.pattern}):(Q||ee)&&(C.validateStatus=!0,C.validateInstance={maxLength:Q,minLength:ee})},checkUndefined:function(C){var H=!1;return C!=null&&C!=null&&typeof C<"u"&&(H=!0),H},arrNotEmpty(C){var H=!1;return C!=null&&C!=null&&C.length>0&&(H=!0),H},arrEmpty(C){return!this.arrNotEmpty(C)},strBlank(C){return!this.strNotBlank(C)},strNotBlank(C){var H=!1;return C!=null&&C!=null&&C!=""&&(H=!0),H},propValue:function(C,H,U){var W=U;return H.hasOwnProperty(C)&&(W=H[C]),W},getExample(C,H,U){var W=this.propValue(C,H,U);return isNumber_1(W)||typeof W=="object"&&(W=this.json5stringifyNoFormat(W)),W},checkIsBasicType:function(C){var H=["string","integer","number","object","boolean","int32","int64","float","double"],U=!1;return C!=null&&H.indexOf(C)>-1&&(U=!0),U},getBasicTypeValue:function(C){var H="";return C=="integer"&&(H=0),C=="boolean"&&(H=!0),C=="object"&&(H={}),C=="number"&&(H=parseFloat(0)),H},getValue:function(C,H,U,W){var G=U;return C!=null&&C!=null&&C.hasOwnProperty(H)&&(G=C[H],W&&(G==null||G=="")&&(G=U)),G},getClassName:function(C,H){if(H){var U=new RegExp("#/definitions/(.*)$","ig");if(U.test(C)){var W=RegExp.$1;return W}}else{var U=new RegExp("#/components/schemas/(.*)$","ig");if(U.test(C)){var W=RegExp.$1;return W}}return null},getRefParameterName:function(C){var H=new RegExp("#/components/parameters/(.*)$","ig");if(H.test(C)){var U=RegExp.$1;return U}return null},trim(C){var H="[\\x20\\t\\r\\n\\f]",U=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g");return C==null?"":(C+"").replace(U,"")},getStringValue:function(C){var H="";return C!=null&&typeof C<"u"&&C!=null&&(H=C.toString()),H},toString(C,H){var U=H;return C!=null&&typeof C<"u"&&C!=null&&(U=C.toString()),U},randomNumber:function(){return((1+Math.random())*65536|0).toString(16).substring(1)},htmlEncode:function(C){return C!==null?C.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""},jsString:function(C){return C=JSON.stringify(C).slice(1,-1),utils$c.htmlEncode(C)},replaceMultipLineStr:function(C){if(C!=null&&C!=null&&C!=""){var H=/(\r\n|\n\r|\r|\n)/g;if(H.test(C)){var U=C.replace(H,"\\n");return U}return C}return""},camelCase:function(C){return C!=null&&C!=null&&C!=""?C.length==1?C.toLocaleLowerCase():C.substr(0,1).toLocaleLowerCase()+C.substr(1):""},generUUID:function(){return utils$c.randomNumber()+utils$c.randomNumber()+"-"+utils$c.randomNumber()+"-"+utils$c.randomNumber()+"-"+utils$c.randomNumber()+"-"+utils$c.randomNumber()+utils$c.randomNumber()+utils$c.randomNumber()},base64Encode:function(C){for(var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U="",W=0,G=C.length,X,Z,Q;W<G;){if(X=C.charCodeAt(W++)&255,W==G){U+=H.charAt(X>>2),U+=H.charAt((X&3)<<4),U+="==";break}if(Z=C.charCodeAt(W++),W==G){U+=H.charAt(X>>2),U+=H.charAt((X&3)<<4|(Z&240)>>4),U+=H.charAt((Z&15)<<2),U+="=";break}Q=C.charCodeAt(W++),U+=H.charAt(X>>2),U+=H.charAt((X&3)<<4|(Z&240)>>4),U+=H.charAt((Z&15)<<2|(Q&192)>>6),U+=H.charAt(Q&63)}return U},binToBase64:function(C){for(var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),U="",W=C.length%6,G=C.substr(0,C.length-W),X=C.substr(C.length-W,W),Z=0;Z<G.length;Z+=6){var Q=parseInt(G.substr(Z,6),2);U+=H[Q]}return X+=new Array(7-W).join("0"),W&&(U+=H[parseInt(X,2)],U+=new Array((6-W)/2+1).join("=")),U}};function apply(C,...H){return(...U)=>C(...H,...U)}function initialParams(C){return function(...H){var U=H.pop();return C.call(this,H,U)}}var hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function fallback(C){setTimeout(C,0)}function wrap(C){return(H,...U)=>C(()=>H(...U))}var _defer;hasQueueMicrotask?_defer=queueMicrotask:hasSetImmediate?_defer=setImmediate:hasNextTick?_defer=process.nextTick:_defer=fallback;var setImmediate$1=wrap(_defer);function asyncify(C){return isAsync(C)?function(...H){const U=H.pop(),W=C.apply(this,H);return handlePromise(W,U)}:initialParams(function(H,U){var W;try{W=C.apply(this,H)}catch(G){return U(G)}if(W&&typeof W.then=="function")return handlePromise(W,U);U(null,W)})}function handlePromise(C,H){return C.then(U=>{invokeCallback(H,null,U)},U=>{invokeCallback(H,U&&U.message?U:new Error(U))})}function invokeCallback(C,H,U){try{C(H,U)}catch(W){setImmediate$1(G=>{throw G},W)}}function isAsync(C){return C[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(C){return C[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(C){return typeof C[Symbol.asyncIterator]=="function"}function wrapAsync(C){if(typeof C!="function")throw new Error("expected a function");return isAsync(C)?asyncify(C):C}function awaitify(C,H=C.length){if(!H)throw new Error("arity is undefined");function U(...W){return typeof W[H-1]=="function"?C.apply(this,W):new Promise((G,X)=>{W[H-1]=(Z,...Q)=>{if(Z)return X(Z);G(Q.length>1?Q:Q[0])},C.apply(this,W)})}return U}function applyEach(C){return function(U,...W){return awaitify(function(X){var Z=this;return C(U,(Q,ee)=>{wrapAsync(Q).apply(Z,W.concat(ee))},X)})}}function _asyncMap(C,H,U,W){H=H||[];var G=[],X=0,Z=wrapAsync(U);return C(H,(Q,ee,ie)=>{var te=X++;Z(Q,(ne,ae)=>{G[te]=ae,ie(ne)})},Q=>{W(Q,G)})}function isArrayLike$2(C){return C&&typeof C.length=="number"&&C.length>=0&&C.length%1===0}const breakLoop={};function once(C){function H(...U){if(C!==null){var W=C;C=null,W.apply(this,U)}}return Object.assign(H,C),H}function getIterator(C){return C[Symbol.iterator]&&C[Symbol.iterator]()}function createArrayIterator(C){var H=-1,U=C.length;return function(){return++H<U?{value:C[H],key:H}:null}}function createES2015Iterator(C){var H=-1;return function(){var W=C.next();return W.done?null:(H++,{value:W.value,key:H})}}function createObjectIterator(C){var H=C?Object.keys(C):[],U=-1,W=H.length;return function G(){var X=H[++U];return X==="__proto__"?G():U<W?{value:C[X],key:X}:null}}function createIterator(C){if(isArrayLike$2(C))return createArrayIterator(C);var H=getIterator(C);return H?createES2015Iterator(H):createObjectIterator(C)}function onlyOnce(C){return function(...H){if(C===null)throw new Error("Callback was already called.");var U=C;C=null,U.apply(this,H)}}function asyncEachOfLimit(C,H,U,W){let G=!1,X=!1,Z=!1,Q=0,ee=0;function ie(){Q>=H||Z||G||(Z=!0,C.next().then(({value:ae,done:oe})=>{if(!(X||G)){if(Z=!1,oe){G=!0,Q<=0&&W(null);return}Q++,U(ae,ee,te),ee++,ie()}}).catch(ne))}function te(ae,oe){if(Q-=1,!X){if(ae)return ne(ae);if(ae===!1){G=!0,X=!0;return}if(oe===breakLoop||G&&Q<=0)return G=!0,W(null);ie()}}function ne(ae){X||(Z=!1,G=!0,W(ae))}ie()}var eachOfLimit=C=>(H,U,W)=>{if(W=once(W),C<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!H)return W(null);if(isAsyncGenerator(H))return asyncEachOfLimit(H,C,U,W);if(isAsyncIterable(H))return asyncEachOfLimit(H[Symbol.asyncIterator](),C,U,W);var G=createIterator(H),X=!1,Z=!1,Q=0,ee=!1;function ie(ne,ae){if(!Z)if(Q-=1,ne)X=!0,W(ne);else if(ne===!1)X=!0,Z=!0;else{if(ae===breakLoop||X&&Q<=0)return X=!0,W(null);ee||te()}}function te(){for(ee=!0;Q<C&&!X;){var ne=G();if(ne===null){X=!0,Q<=0&&W(null);return}Q+=1,U(ne.value,ne.key,onlyOnce(ie))}ee=!1}te()};function eachOfLimit$1(C,H,U,W){return eachOfLimit(H)(C,wrapAsync(U),W)}var eachOfLimit$2=awaitify(eachOfLimit$1,4);function eachOfArrayLike(C,H,U){U=once(U);var W=0,G=0,{length:X}=C,Z=!1;X===0&&U(null);function Q(ee,ie){ee===!1&&(Z=!0),Z!==!0&&(ee?U(ee):(++G===X||ie===breakLoop)&&U(null))}for(;W<X;W++)H(C[W],W,onlyOnce(Q))}function eachOfGeneric(C,H,U){return eachOfLimit$2(C,1/0,H,U)}function eachOf(C,H,U){var W=isArrayLike$2(C)?eachOfArrayLike:eachOfGeneric;return W(C,wrapAsync(H),U)}var eachOf$1=awaitify(eachOf,3);function map(C,H,U){return _asyncMap(eachOf$1,C,H,U)}var map$1=awaitify(map,3),applyEach$1=applyEach(map$1);function eachOfSeries(C,H,U){return eachOfLimit$2(C,1,H,U)}var eachOfSeries$1=awaitify(eachOfSeries,3);function mapSeries(C,H,U){return _asyncMap(eachOfSeries$1,C,H,U)}var mapSeries$1=awaitify(mapSeries,3),applyEachSeries=applyEach(mapSeries$1);const PROMISE_SYMBOL=Symbol("promiseCallback");function promiseCallback(){let C,H;function U(W,...G){if(W)return H(W);C(G.length>1?G:G[0])}return U[PROMISE_SYMBOL]=new Promise((W,G)=>{C=W,H=G}),U}function auto(C,H,U){typeof H!="number"&&(U=H,H=null),U=once(U||promiseCallback());var W=Object.keys(C).length;if(!W)return U(null);H||(H=W);var G={},X=0,Z=!1,Q=!1,ee=Object.create(null),ie=[],te=[],ne={};Object.keys(C).forEach(ve=>{var ge=C[ve];if(!Array.isArray(ge)){ae(ve,[ge]),te.push(ve);return}var he=ge.slice(0,ge.length-1),me=he.length;if(me===0){ae(ve,ge),te.push(ve);return}ne[ve]=me,he.forEach(_e=>{if(!C[_e])throw new Error("async.auto task `"+ve+"` has a non-existent dependency `"+_e+"` in "+he.join(", "));se(_e,()=>{me--,me===0&&ae(ve,ge)})})}),ue(),oe();function ae(ve,ge){ie.push(()=>ce(ve,ge))}function oe(){if(!Z){if(ie.length===0&&X===0)return U(null,G);for(;ie.length&&X<H;){var ve=ie.shift();ve()}}}function se(ve,ge){var he=ee[ve];he||(he=ee[ve]=[]),he.push(ge)}function le(ve){var ge=ee[ve]||[];ge.forEach(he=>he()),oe()}function ce(ve,ge){if(!Q){var he=onlyOnce((_e,...be)=>{if(X--,_e===!1){Z=!0;return}if(be.length<2&&([be]=be),_e){var pe={};if(Object.keys(G).forEach(fe=>{pe[fe]=G[fe]}),pe[ve]=be,Q=!0,ee=Object.create(null),Z)return;U(_e,pe)}else G[ve]=be,le(ve)});X++;var me=wrapAsync(ge[ge.length-1]);ge.length>1?me(G,he):me(he)}}function ue(){for(var ve,ge=0;te.length;)ve=te.pop(),ge++,de(ve).forEach(he=>{--ne[he]===0&&te.push(he)});if(ge!==W)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function de(ve){var ge=[];return Object.keys(C).forEach(he=>{const me=C[he];Array.isArray(me)&&me.indexOf(ve)>=0&&ge.push(he)}),ge}return U[PROMISE_SYMBOL]}var FN_ARGS=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,ARROW_FN_ARGS=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/;function stripComments(C){let H="",U=0,W=C.indexOf("*/");for(;U<C.length;)if(C[U]==="/"&&C[U+1]==="/"){let G=C.indexOf(`
|
||
`,U);U=G===-1?C.length:G}else if(W!==-1&&C[U]==="/"&&C[U+1]==="*"){let G=C.indexOf("*/",U);G!==-1?(U=G+2,W=C.indexOf("*/",U)):(H+=C[U],U++)}else H+=C[U],U++;return H}function parseParams(C){const H=stripComments(C.toString());let U=H.match(FN_ARGS);if(U||(U=H.match(ARROW_FN_ARGS)),!U)throw new Error(`could not parse args in autoInject
|
||
Source:
|
||
`+H);let[,W]=U;return W.replace(/\s/g,"").split(FN_ARG_SPLIT).map(G=>G.replace(FN_ARG,"").trim())}function autoInject(C,H){var U={};return Object.keys(C).forEach(W=>{var G=C[W],X,Z=isAsync(G),Q=!Z&&G.length===1||Z&&G.length===0;if(Array.isArray(G))X=[...G],G=X.pop(),U[W]=X.concat(X.length>0?ee:G);else if(Q)U[W]=G;else{if(X=parseParams(G),G.length===0&&!Z&&X.length===0)throw new Error("autoInject task functions require explicit parameters.");Z||X.pop(),U[W]=X.concat(ee)}function ee(ie,te){var ne=X.map(ae=>ie[ae]);ne.push(te),wrapAsync(G)(...ne)}}),auto(U,H)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(H){return H.prev?H.prev.next=H.next:this.head=H.next,H.next?H.next.prev=H.prev:this.tail=H.prev,H.prev=H.next=null,this.length-=1,H}empty(){for(;this.head;)this.shift();return this}insertAfter(H,U){U.prev=H,U.next=H.next,H.next?H.next.prev=U:this.tail=U,H.next=U,this.length+=1}insertBefore(H,U){U.prev=H.prev,U.next=H,H.prev?H.prev.next=U:this.head=U,H.prev=U,this.length+=1}unshift(H){this.head?this.insertBefore(this.head,H):setInitial(this,H)}push(H){this.tail?this.insertAfter(this.tail,H):setInitial(this,H)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var H=this.head;H;)yield H.data,H=H.next}remove(H){for(var U=this.head;U;){var{next:W}=U;H(U)&&this.removeLink(U),U=W}return this}}function setInitial(C,H){C.length=1,C.head=C.tail=H}function queue(C,H,U){if(H==null)H=1;else if(H===0)throw new RangeError("Concurrency must not be zero");var W=wrapAsync(C),G=0,X=[];const Z={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Q(de,ve){Z[de].push(ve)}function ee(de,ve){const ge=(...he)=>{ie(de,ge),ve(...he)};Z[de].push(ge)}function ie(de,ve){if(!de)return Object.keys(Z).forEach(ge=>Z[ge]=[]);if(!ve)return Z[de]=[];Z[de]=Z[de].filter(ge=>ge!==ve)}function te(de,...ve){Z[de].forEach(ge=>ge(...ve))}var ne=!1;function ae(de,ve,ge,he){if(he!=null&&typeof he!="function")throw new Error("task callback must be a function");ue.started=!0;var me,_e;function be(fe,...ye){if(fe)return ge?_e(fe):me();if(ye.length<=1)return me(ye[0]);me(ye)}var pe=ue._createTaskItem(de,ge?be:he||be);if(ve?ue._tasks.unshift(pe):ue._tasks.push(pe),ne||(ne=!0,setImmediate$1(()=>{ne=!1,ue.process()})),ge||!he)return new Promise((fe,ye)=>{me=fe,_e=ye})}function oe(de){return function(ve,...ge){G-=1;for(var he=0,me=de.length;he<me;he++){var _e=de[he],be=X.indexOf(_e);be===0?X.shift():be>0&&X.splice(be,1),_e.callback(ve,...ge),ve!=null&&te("error",ve,_e.data)}G<=ue.concurrency-ue.buffer&&te("unsaturated"),ue.idle()&&te("drain"),ue.process()}}function se(de){return de.length===0&&ue.idle()?(setImmediate$1(()=>te("drain")),!0):!1}const le=de=>ve=>{if(!ve)return new Promise((ge,he)=>{ee(de,(me,_e)=>{if(me)return he(me);ge(_e)})});ie(de),Q(de,ve)};var ce=!1,ue={_tasks:new DLL,_createTaskItem(de,ve){return{data:de,callback:ve}},*[Symbol.iterator](){yield*ue._tasks[Symbol.iterator]()},concurrency:H,payload:U,buffer:H/4,started:!1,paused:!1,push(de,ve){return Array.isArray(de)?se(de)?void 0:de.map(ge=>ae(ge,!1,!1,ve)):ae(de,!1,!1,ve)},pushAsync(de,ve){return Array.isArray(de)?se(de)?void 0:de.map(ge=>ae(ge,!1,!0,ve)):ae(de,!1,!0,ve)},kill(){ie(),ue._tasks.empty()},unshift(de,ve){return Array.isArray(de)?se(de)?void 0:de.map(ge=>ae(ge,!0,!1,ve)):ae(de,!0,!1,ve)},unshiftAsync(de,ve){return Array.isArray(de)?se(de)?void 0:de.map(ge=>ae(ge,!0,!0,ve)):ae(de,!0,!0,ve)},remove(de){ue._tasks.remove(de)},process(){if(!ce){for(ce=!0;!ue.paused&&G<ue.concurrency&&ue._tasks.length;){var de=[],ve=[],ge=ue._tasks.length;ue.payload&&(ge=Math.min(ge,ue.payload));for(var he=0;he<ge;he++){var me=ue._tasks.shift();de.push(me),X.push(me),ve.push(me.data)}G+=1,ue._tasks.length===0&&te("empty"),G===ue.concurrency&&te("saturated");var _e=onlyOnce(oe(de));W(ve,_e)}ce=!1}},length(){return ue._tasks.length},running(){return G},workersList(){return X},idle(){return ue._tasks.length+G===0},pause(){ue.paused=!0},resume(){ue.paused!==!1&&(ue.paused=!1,setImmediate$1(ue.process))}};return Object.defineProperties(ue,{saturated:{writable:!1,value:le("saturated")},unsaturated:{writable:!1,value:le("unsaturated")},empty:{writable:!1,value:le("empty")},drain:{writable:!1,value:le("drain")},error:{writable:!1,value:le("error")}}),ue}function cargo(C,H){return queue(C,1,H)}function cargo$1(C,H,U){return queue(C,H,U)}function reduce(C,H,U,W){W=once(W);var G=wrapAsync(U);return eachOfSeries$1(C,(X,Z,Q)=>{G(H,X,(ee,ie)=>{H=ie,Q(ee)})},X=>W(X,H))}var reduce$1=awaitify(reduce,4);function seq(...C){var H=C.map(wrapAsync);return function(...U){var W=this,G=U[U.length-1];return typeof G=="function"?U.pop():G=promiseCallback(),reduce$1(H,U,(X,Z,Q)=>{Z.apply(W,X.concat((ee,...ie)=>{Q(ee,ie)}))},(X,Z)=>G(X,...Z)),G[PROMISE_SYMBOL]}}function compose(...C){return seq(...C.reverse())}function mapLimit(C,H,U,W){return _asyncMap(eachOfLimit(H),C,U,W)}var mapLimit$1=awaitify(mapLimit,4);function concatLimit(C,H,U,W){var G=wrapAsync(U);return mapLimit$1(C,H,(X,Z)=>{G(X,(Q,...ee)=>Q?Z(Q):Z(Q,ee))},(X,Z)=>{for(var Q=[],ee=0;ee<Z.length;ee++)Z[ee]&&(Q=Q.concat(...Z[ee]));return W(X,Q)})}var concatLimit$1=awaitify(concatLimit,4);function concat(C,H,U){return concatLimit$1(C,1/0,H,U)}var concat$1=awaitify(concat,3);function concatSeries(C,H,U){return concatLimit$1(C,1,H,U)}var concatSeries$1=awaitify(concatSeries,3);function constant(...C){return function(...H){var U=H.pop();return U(null,...C)}}function _createTester(C,H){return(U,W,G,X)=>{var Z=!1,Q;const ee=wrapAsync(G);U(W,(ie,te,ne)=>{ee(ie,(ae,oe)=>{if(ae||ae===!1)return ne(ae);if(C(oe)&&!Q)return Z=!0,Q=H(!0,ie),ne(null,breakLoop);ne()})},ie=>{if(ie)return X(ie);X(null,Z?Q:H(!1))})}}function detect(C,H,U){return _createTester(W=>W,(W,G)=>G)(eachOf$1,C,H,U)}var detect$1=awaitify(detect,3);function detectLimit(C,H,U,W){return _createTester(G=>G,(G,X)=>X)(eachOfLimit(H),C,U,W)}var detectLimit$1=awaitify(detectLimit,4);function detectSeries(C,H,U){return _createTester(W=>W,(W,G)=>G)(eachOfLimit(1),C,H,U)}var detectSeries$1=awaitify(detectSeries,3);function consoleFunc(C){return(H,...U)=>wrapAsync(H)(...U,(W,...G)=>{typeof console=="object"&&(W?console.error&&console.error(W):console[C]&&G.forEach(X=>console[C](X)))})}var dir=consoleFunc("dir");function doWhilst(C,H,U){U=onlyOnce(U);var W=wrapAsync(C),G=wrapAsync(H),X;function Z(ee,...ie){if(ee)return U(ee);ee!==!1&&(X=ie,G(...ie,Q))}function Q(ee,ie){if(ee)return U(ee);if(ee!==!1){if(!ie)return U(null,...X);W(Z)}}return Q(null,!0)}var doWhilst$1=awaitify(doWhilst,3);function doUntil(C,H,U){const W=wrapAsync(H);return doWhilst$1(C,(...G)=>{const X=G.pop();W(...G,(Z,Q)=>X(Z,!Q))},U)}function _withoutIndex(C){return(H,U,W)=>C(H,W)}function eachLimit(C,H,U){return eachOf$1(C,_withoutIndex(wrapAsync(H)),U)}var each=awaitify(eachLimit,3);function eachLimit$1(C,H,U,W){return eachOfLimit(H)(C,_withoutIndex(wrapAsync(U)),W)}var eachLimit$2=awaitify(eachLimit$1,4);function eachSeries(C,H,U){return eachLimit$2(C,1,H,U)}var eachSeries$1=awaitify(eachSeries,3);function ensureAsync(C){return isAsync(C)?C:function(...H){var U=H.pop(),W=!0;H.push((...G)=>{W?setImmediate$1(()=>U(...G)):U(...G)}),C.apply(this,H),W=!1}}function every(C,H,U){return _createTester(W=>!W,W=>!W)(eachOf$1,C,H,U)}var every$1=awaitify(every,3);function everyLimit(C,H,U,W){return _createTester(G=>!G,G=>!G)(eachOfLimit(H),C,U,W)}var everyLimit$1=awaitify(everyLimit,4);function everySeries(C,H,U){return _createTester(W=>!W,W=>!W)(eachOfSeries$1,C,H,U)}var everySeries$1=awaitify(everySeries,3);function filterArray(C,H,U,W){var G=new Array(H.length);C(H,(X,Z,Q)=>{U(X,(ee,ie)=>{G[Z]=!!ie,Q(ee)})},X=>{if(X)return W(X);for(var Z=[],Q=0;Q<H.length;Q++)G[Q]&&Z.push(H[Q]);W(null,Z)})}function filterGeneric(C,H,U,W){var G=[];C(H,(X,Z,Q)=>{U(X,(ee,ie)=>{if(ee)return Q(ee);ie&&G.push({index:Z,value:X}),Q(ee)})},X=>{if(X)return W(X);W(null,G.sort((Z,Q)=>Z.index-Q.index).map(Z=>Z.value))})}function _filter(C,H,U,W){var G=isArrayLike$2(H)?filterArray:filterGeneric;return G(C,H,wrapAsync(U),W)}function filter(C,H,U){return _filter(eachOf$1,C,H,U)}var filter$1=awaitify(filter,3);function filterLimit(C,H,U,W){return _filter(eachOfLimit(H),C,U,W)}var filterLimit$1=awaitify(filterLimit,4);function filterSeries(C,H,U){return _filter(eachOfSeries$1,C,H,U)}var filterSeries$1=awaitify(filterSeries,3);function forever(C,H){var U=onlyOnce(H),W=wrapAsync(ensureAsync(C));function G(X){if(X)return U(X);X!==!1&&W(G)}return G()}var forever$1=awaitify(forever,2);function groupByLimit(C,H,U,W){var G=wrapAsync(U);return mapLimit$1(C,H,(X,Z)=>{G(X,(Q,ee)=>Q?Z(Q):Z(Q,{key:ee,val:X}))},(X,Z)=>{for(var Q={},{hasOwnProperty:ee}=Object.prototype,ie=0;ie<Z.length;ie++)if(Z[ie]){var{key:te}=Z[ie],{val:ne}=Z[ie];ee.call(Q,te)?Q[te].push(ne):Q[te]=[ne]}return W(X,Q)})}var groupByLimit$1=awaitify(groupByLimit,4);function groupBy(C,H,U){return groupByLimit$1(C,1/0,H,U)}function groupBySeries(C,H,U){return groupByLimit$1(C,1,H,U)}var log=consoleFunc("log");function mapValuesLimit(C,H,U,W){W=once(W);var G={},X=wrapAsync(U);return eachOfLimit(H)(C,(Z,Q,ee)=>{X(Z,Q,(ie,te)=>{if(ie)return ee(ie);G[Q]=te,ee(ie)})},Z=>W(Z,G))}var mapValuesLimit$1=awaitify(mapValuesLimit,4);function mapValues(C,H,U){return mapValuesLimit$1(C,1/0,H,U)}function mapValuesSeries(C,H,U){return mapValuesLimit$1(C,1,H,U)}function memoize$2(C,H=U=>U){var U=Object.create(null),W=Object.create(null),G=wrapAsync(C),X=initialParams((Z,Q)=>{var ee=H(...Z);ee in U?setImmediate$1(()=>Q(null,...U[ee])):ee in W?W[ee].push(Q):(W[ee]=[Q],G(...Z,(ie,...te)=>{ie||(U[ee]=te);var ne=W[ee];delete W[ee];for(var ae=0,oe=ne.length;ae<oe;ae++)ne[ae](ie,...te)}))});return X.memo=U,X.unmemoized=C,X}var _defer$1;hasNextTick?_defer$1=process.nextTick:hasSetImmediate?_defer$1=setImmediate:_defer$1=fallback;var nextTick=wrap(_defer$1),parallel=awaitify((C,H,U)=>{var W=isArrayLike$2(H)?[]:{};C(H,(G,X,Z)=>{wrapAsync(G)((Q,...ee)=>{ee.length<2&&([ee]=ee),W[X]=ee,Z(Q)})},G=>U(G,W))},3);function parallel$1(C,H){return parallel(eachOf$1,C,H)}function parallelLimit(C,H,U){return parallel(eachOfLimit(H),C,U)}function queue$1(C,H){var U=wrapAsync(C);return queue((W,G)=>{U(W[0],G)},H,1)}class Heap{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(H){let U;for(;H>0&&smaller(this.heap[H],this.heap[U=parent$2(H)]);){let W=this.heap[H];this.heap[H]=this.heap[U],this.heap[U]=W,H=U}}percDown(H){let U;for(;(U=leftChi(H))<this.heap.length&&(U+1<this.heap.length&&smaller(this.heap[U+1],this.heap[U])&&(U=U+1),!smaller(this.heap[H],this.heap[U]));){let W=this.heap[H];this.heap[H]=this.heap[U],this.heap[U]=W,H=U}}push(H){H.pushCount=++this.pushCount,this.heap.push(H),this.percUp(this.heap.length-1)}unshift(H){return this.heap.push(H)}shift(){let[H]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),H}toArray(){return[...this]}*[Symbol.iterator](){for(let H=0;H<this.heap.length;H++)yield this.heap[H].data}remove(H){let U=0;for(let W=0;W<this.heap.length;W++)H(this.heap[W])||(this.heap[U]=this.heap[W],U++);this.heap.splice(U);for(let W=parent$2(this.heap.length-1);W>=0;W--)this.percDown(W);return this}}function leftChi(C){return(C<<1)+1}function parent$2(C){return(C+1>>1)-1}function smaller(C,H){return C.priority!==H.priority?C.priority<H.priority:C.pushCount<H.pushCount}function priorityQueue(C,H){var U=queue$1(C,H),{push:W,pushAsync:G}=U;U._tasks=new Heap,U._createTaskItem=({data:Z,priority:Q},ee)=>({data:Z,priority:Q,callback:ee});function X(Z,Q){return Array.isArray(Z)?Z.map(ee=>({data:ee,priority:Q})):{data:Z,priority:Q}}return U.push=function(Z,Q=0,ee){return W(X(Z,Q),ee)},U.pushAsync=function(Z,Q=0,ee){return G(X(Z,Q),ee)},delete U.unshift,delete U.unshiftAsync,U}function race(C,H){if(H=once(H),!Array.isArray(C))return H(new TypeError("First argument to race must be an array of functions"));if(!C.length)return H();for(var U=0,W=C.length;U<W;U++)wrapAsync(C[U])(H)}var race$1=awaitify(race,2);function reduceRight(C,H,U,W){var G=[...C].reverse();return reduce$1(G,H,U,W)}function reflect(C){var H=wrapAsync(C);return initialParams(function(W,G){return W.push((X,...Z)=>{let Q={};if(X&&(Q.error=X),Z.length>0){var ee=Z;Z.length<=1&&([ee]=Z),Q.value=ee}G(null,Q)}),H.apply(this,W)})}function reflectAll(C){var H;return Array.isArray(C)?H=C.map(reflect):(H={},Object.keys(C).forEach(U=>{H[U]=reflect.call(this,C[U])})),H}function reject(C,H,U,W){const G=wrapAsync(U);return _filter(C,H,(X,Z)=>{G(X,(Q,ee)=>{Z(Q,!ee)})},W)}function reject$1(C,H,U){return reject(eachOf$1,C,H,U)}var reject$2=awaitify(reject$1,3);function rejectLimit(C,H,U,W){return reject(eachOfLimit(H),C,U,W)}var rejectLimit$1=awaitify(rejectLimit,4);function rejectSeries(C,H,U){return reject(eachOfSeries$1,C,H,U)}var rejectSeries$1=awaitify(rejectSeries,3);function constant$1(C){return function(){return C}}const DEFAULT_TIMES=5,DEFAULT_INTERVAL=0;function retry(C,H,U){var W={times:DEFAULT_TIMES,intervalFunc:constant$1(DEFAULT_INTERVAL)};if(arguments.length<3&&typeof C=="function"?(U=H||promiseCallback(),H=C):(parseTimes(W,C),U=U||promiseCallback()),typeof H!="function")throw new Error("Invalid arguments for async.retry");var G=wrapAsync(H),X=1;function Z(){G((Q,...ee)=>{Q!==!1&&(Q&&X++<W.times&&(typeof W.errorFilter!="function"||W.errorFilter(Q))?setTimeout(Z,W.intervalFunc(X-1)):U(Q,...ee))})}return Z(),U[PROMISE_SYMBOL]}function parseTimes(C,H){if(typeof H=="object")C.times=+H.times||DEFAULT_TIMES,C.intervalFunc=typeof H.interval=="function"?H.interval:constant$1(+H.interval||DEFAULT_INTERVAL),C.errorFilter=H.errorFilter;else if(typeof H=="number"||typeof H=="string")C.times=+H||DEFAULT_TIMES;else throw new Error("Invalid arguments for async.retry")}function retryable(C,H){H||(H=C,C=null);let U=C&&C.arity||H.length;isAsync(H)&&(U+=1);var W=wrapAsync(H);return initialParams((G,X)=>{(G.length<U-1||X==null)&&(G.push(X),X=promiseCallback());function Z(Q){W(...G,Q)}return C?retry(C,Z,X):retry(Z,X),X[PROMISE_SYMBOL]})}function series(C,H){return parallel(eachOfSeries$1,C,H)}function some(C,H,U){return _createTester(Boolean,W=>W)(eachOf$1,C,H,U)}var some$1=awaitify(some,3);function someLimit(C,H,U,W){return _createTester(Boolean,G=>G)(eachOfLimit(H),C,U,W)}var someLimit$1=awaitify(someLimit,4);function someSeries(C,H,U){return _createTester(Boolean,W=>W)(eachOfSeries$1,C,H,U)}var someSeries$1=awaitify(someSeries,3);function sortBy(C,H,U){var W=wrapAsync(H);return map$1(C,(X,Z)=>{W(X,(Q,ee)=>{if(Q)return Z(Q);Z(Q,{value:X,criteria:ee})})},(X,Z)=>{if(X)return U(X);U(null,Z.sort(G).map(Q=>Q.value))});function G(X,Z){var Q=X.criteria,ee=Z.criteria;return Q<ee?-1:Q>ee?1:0}}var sortBy$1=awaitify(sortBy,3);function timeout(C,H,U){var W=wrapAsync(C);return initialParams((G,X)=>{var Z=!1,Q;function ee(){var ie=C.name||"anonymous",te=new Error('Callback function "'+ie+'" timed out.');te.code="ETIMEDOUT",U&&(te.info=U),Z=!0,X(te)}G.push((...ie)=>{Z||(X(...ie),clearTimeout(Q))}),Q=setTimeout(ee,H),W(...G)})}function range(C){for(var H=Array(C);C--;)H[C]=C;return H}function timesLimit(C,H,U,W){var G=wrapAsync(U);return mapLimit$1(range(C),H,G,W)}function times(C,H,U){return timesLimit(C,1/0,H,U)}function timesSeries(C,H,U){return timesLimit(C,1,H,U)}function transform(C,H,U,W){arguments.length<=3&&typeof H=="function"&&(W=U,U=H,H=Array.isArray(C)?[]:{}),W=once(W||promiseCallback());var G=wrapAsync(U);return eachOf$1(C,(X,Z,Q)=>{G(H,X,Z,Q)},X=>W(X,H)),W[PROMISE_SYMBOL]}function tryEach(C,H){var U=null,W;return eachSeries$1(C,(G,X)=>{wrapAsync(G)((Z,...Q)=>{if(Z===!1)return X(Z);Q.length<2?[W]=Q:W=Q,U=Z,X(Z?null:{})})},()=>H(U,W))}var tryEach$1=awaitify(tryEach);function unmemoize(C){return(...H)=>(C.unmemoized||C)(...H)}function whilst(C,H,U){U=onlyOnce(U);var W=wrapAsync(H),G=wrapAsync(C),X=[];function Z(ee,...ie){if(ee)return U(ee);X=ie,ee!==!1&&G(Q)}function Q(ee,ie){if(ee)return U(ee);if(ee!==!1){if(!ie)return U(null,...X);W(Z)}}return G(Q)}var whilst$1=awaitify(whilst,3);function until(C,H,U){const W=wrapAsync(C);return whilst$1(G=>W((X,Z)=>G(X,!Z)),H,U)}function waterfall(C,H){if(H=once(H),!Array.isArray(C))return H(new Error("First argument to waterfall must be an array of functions"));if(!C.length)return H();var U=0;function W(X){var Z=wrapAsync(C[U++]);Z(...X,onlyOnce(G))}function G(X,...Z){if(X!==!1){if(X||U===C.length)return H(X,...Z);W(Z)}}W([])}var waterfall$1=awaitify(waterfall),index$d={apply,applyEach:applyEach$1,applyEachSeries,asyncify,auto,autoInject,cargo,cargoQueue:cargo$1,compose,concat:concat$1,concatLimit:concatLimit$1,concatSeries:concatSeries$1,constant,detect:detect$1,detectLimit:detectLimit$1,detectSeries:detectSeries$1,dir,doUntil,doWhilst:doWhilst$1,each,eachLimit:eachLimit$2,eachOf:eachOf$1,eachOfLimit:eachOfLimit$2,eachOfSeries:eachOfSeries$1,eachSeries:eachSeries$1,ensureAsync,every:every$1,everyLimit:everyLimit$1,everySeries:everySeries$1,filter:filter$1,filterLimit:filterLimit$1,filterSeries:filterSeries$1,forever:forever$1,groupBy,groupByLimit:groupByLimit$1,groupBySeries,log,map:map$1,mapLimit:mapLimit$1,mapSeries:mapSeries$1,mapValues,mapValuesLimit:mapValuesLimit$1,mapValuesSeries,memoize:memoize$2,nextTick,parallel:parallel$1,parallelLimit,priorityQueue,queue:queue$1,race:race$1,reduce:reduce$1,reduceRight,reflect,reflectAll,reject:reject$2,rejectLimit:rejectLimit$1,rejectSeries:rejectSeries$1,retry,retryable,seq,series,setImmediate:setImmediate$1,some:some$1,someLimit:someLimit$1,someSeries:someSeries$1,sortBy:sortBy$1,timeout,times,timesLimit,timesSeries,transform,tryEach:tryEach$1,unmemoize,until,waterfall:waterfall$1,whilst:whilst$1,all:every$1,allLimit:everyLimit$1,allSeries:everySeries$1,any:some$1,anyLimit:someLimit$1,anySeries:someSeries$1,find:detect$1,findLimit:detectLimit$1,findSeries:detectSeries$1,flatMap:concat$1,flatMapLimit:concatLimit$1,flatMapSeries:concatSeries$1,forEach:each,forEachSeries:eachSeries$1,forEachLimit:eachLimit$2,forEachOf:eachOf$1,forEachOfSeries:eachOfSeries$1,forEachOfLimit:eachOfLimit$2,inject:reduce$1,foldl:reduce$1,foldr:reduceRight,select:filter$1,selectLimit:filterLimit$1,selectSeries:filterSeries$1,wrapSync:asyncify,during:whilst$1,doDuring:doWhilst$1};function Knife4jOAS3ExampleInfo(C,H,U,W){this.summary=C,this.description=H,this.example=U,this.externalValue=W}function Knife4jOAS3ResponseExampleReader(C){this.source=C,this.hasExample=!1,this.hasMoreExample=!1,this.responseText=null,this.responseValue=null,this.responseTextArray=[],this.init()}Knife4jOAS3ResponseExampleReader.prototype.init=function(){if(utils$c.checkUndefined(this.source)){let C=utils$c.propValue("example",this.source,null),H=utils$c.propValue("examples",this.source,null);this.hasExample=C!=null,this.hasMoreExample=H!=null,this.hasExample&&this.oneExample(C),this.hasMoreExample&&this.multipleExample(H)}};Knife4jOAS3ResponseExampleReader.prototype.oneExample=function(C){utils$c.checkUndefined(C)&&(this.responseText=C,this.responseValue=utils$c.json5stringifyFormat(C,null," "))};Knife4jOAS3ResponseExampleReader.prototype.multipleExample=function(C){if(utils$c.checkUndefined(C))for(let H in C){let U=utils$c.propValue(H,C,null);if(utils$c.checkUndefined(U)){let W=utils$c.propValue("summary",U,null);if(utils$c.checkUndefined(W)){let G=utils$c.propValue("description",U,null),X=utils$c.propValue("example",U,null),Z=utils$c.propValue("externalValue",U,null);this.responseTextArray.push(new Knife4jOAS3ExampleInfo(W,G,X,Z))}}}};function arrayMap$1(C,H){for(var U=-1,W=C==null?0:C.length,G=Array(W);++U<W;)G[U]=H(C[U],U,C);return G}var _arrayMap=arrayMap$1,isArray$8=Array.isArray,isArray_1=isArray$8,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$7=isArray_1,isSymbol$2=isSymbol_1,INFINITY$1=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(C){if(typeof C=="string")return C;if(isArray$7(C))return arrayMap(C,baseToString$1)+"";if(isSymbol$2(C))return symbolToString?symbolToString.call(C):"";var H=C+"";return H=="0"&&1/C==-INFINITY$1?"-0":H}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(C){return C==null?"":baseToString(C)}var toString_1=toString$3,toString$2=toString_1,idCounter=0;function uniqueId(C){var H=++idCounter;return toString$2(C)+H}var uniqueId_1=uniqueId,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function baseHas$1(C,H){return C!=null&&hasOwnProperty$9.call(C,H)}var _baseHas=baseHas$1,isArray$6=isArray_1,isSymbol$1=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(C,H){if(isArray$6(C))return!1;var U=typeof C;return U=="number"||U=="symbol"||U=="boolean"||C==null||isSymbol$1(C)?!0:reIsPlainProp.test(C)||!reIsDeepProp.test(C)||H!=null&&C in Object(H)}var _isKey=isKey$1,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var C=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function isMasked$1(C){return!!maskSrcKey&&maskSrcKey in C}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(C){if(C!=null){try{return funcToString$1.call(C)}catch{}try{return C+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$4=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$a=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$a.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(C){if(!isObject$4(C)||isMasked(C))return!1;var H=isFunction$1(C)?reIsNative:reIsHostCtor;return H.test(toSource$1(C))}var _baseIsNative=baseIsNative$1;function getValue$1(C,H){return C==null?void 0:C[H]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(C,H){var U=getValue(C,H);return baseIsNative(U)?U:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(C){var H=this.has(C)&&delete this.__data__[C];return this.size-=H?1:0,H}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashGet$1(C){var H=this.__data__;if(nativeCreate$2){var U=H[C];return U===HASH_UNDEFINED$1?void 0:U}return hasOwnProperty$7.call(H,C)?H[C]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function hashHas$1(C){var H=this.__data__;return nativeCreate$1?H[C]!==void 0:hasOwnProperty$6.call(H,C)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(C,H){var U=this.__data__;return this.size+=this.has(C)?0:1,U[C]=nativeCreate&&H===void 0?HASH_UNDEFINED:H,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1,eq$1=eq_1;function assocIndexOf$4(C,H){for(var U=C.length;U--;)if(eq$1(C[U][0],H))return U;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(C){var H=this.__data__,U=assocIndexOf$3(H,C);if(U<0)return!1;var W=H.length-1;return U==W?H.pop():splice.call(H,U,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(C){var H=this.__data__,U=assocIndexOf$2(H,C);return U<0?void 0:H[U][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(C){return assocIndexOf$1(this.__data__,C)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(C,H){var U=this.__data__,W=assocIndexOf(U,C);return W<0?(++this.size,U.push([C,H])):U[W][1]=H,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(C){var H=typeof C;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?C!=="__proto__":C===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(C,H){var U=C.__data__;return isKeyable(H)?U[typeof H=="string"?"string":"hash"]:U.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(C){var H=getMapData$3(this,C).delete(C);return this.size-=H?1:0,H}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(C){return getMapData$2(this,C).get(C)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(C){return getMapData$1(this,C).has(C)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(C,H){var U=getMapData(this,C),W=U.size;return U.set(C,H),this.size+=U.size==W?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(C){var H=-1,U=C==null?0:C.length;for(this.clear();++H<U;){var W=C[H];this.set(W[0],W[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(C,H){if(typeof C!="function"||H!=null&&typeof H!="function")throw new TypeError(FUNC_ERROR_TEXT);var U=function(){var W=arguments,G=H?H.apply(this,W):W[0],X=U.cache;if(X.has(G))return X.get(G);var Z=C.apply(this,W);return U.cache=X.set(G,Z)||X,Z};return U.cache=new(memoize$1.Cache||MapCache$1),U}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(C){var H=memoize(C,function(W){return U.size===MAX_MEMOIZE_SIZE&&U.clear(),W}),U=H.cache;return H}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(C){var H=[];return C.charCodeAt(0)===46&&H.push(""),C.replace(rePropName,function(U,W,G,X){H.push(G?X.replace(reEscapeChar,"$1"):W||U)}),H}),_stringToPath=stringToPath$1,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1;function castPath$3(C,H){return isArray$5(C)?C:isKey(C,H)?[C]:stringToPath(toString$1(C))}var _castPath=castPath$3,baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(C){return isObjectLike$4(C)&&baseGetTag$2(C)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(C){return isObjectLike$3(C)&&hasOwnProperty$5.call(C,"callee")&&!propertyIsEnumerable$1.call(C,"callee")},isArguments_1=isArguments$2,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$3(C){if(typeof C=="string"||isSymbol(C))return C;var H=C+"";return H=="0"&&1/C==-INFINITY?"-0":H}var _toKey=toKey$3,castPath$2=_castPath,isArguments$1=isArguments_1,isArray$4=isArray_1,isIndex$1=_isIndex,isLength$1=isLength_1,toKey$2=_toKey;function hasPath$1(C,H,U){H=castPath$2(H,C);for(var W=-1,G=H.length,X=!1;++W<G;){var Z=toKey$2(H[W]);if(!(X=C!=null&&U(C,Z)))break;C=C[Z]}return X||++W!=G?X:(G=C==null?0:C.length,!!G&&isLength$1(G)&&isIndex$1(Z,G)&&(isArray$4(C)||isArguments$1(C)))}var _hasPath=hasPath$1,baseHas=_baseHas,hasPath=_hasPath;function has(C,H){return C!=null&&hasPath(C,H,baseHas)}var has_1=has,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(C){var H=this.__data__,U=H.delete(C);return this.size=H.size,U}var _stackDelete=stackDelete$1;function stackGet$1(C){return this.__data__.get(C)}var _stackGet=stackGet$1;function stackHas$1(C){return this.__data__.has(C)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(C,H){var U=this.__data__;if(U instanceof ListCache$1){var W=U.__data__;if(!Map$2||W.length<LARGE_ARRAY_SIZE-1)return W.push([C,H]),this.size=++U.size,this;U=this.__data__=new MapCache(W)}return U.set(C,H),this.size=U.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(C){var H=this.__data__=new ListCache(C);this.size=H.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$1(C,H){for(var U=-1,W=C==null?0:C.length;++U<W&&H(C[U],U,C)!==!1;);return C}var _arrayEach=arrayEach$1,getNative$4=_getNative,defineProperty$1=function(){try{var C=getNative$4(Object,"defineProperty");return C({},"",{}),C}catch{}}(),_defineProperty=defineProperty$1,defineProperty=_defineProperty;function baseAssignValue$2(C,H,U){H=="__proto__"&&defineProperty?defineProperty(C,H,{configurable:!0,enumerable:!0,value:U,writable:!0}):C[H]=U}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function assignValue$2(C,H,U){var W=C[H];(!(hasOwnProperty$4.call(C,H)&&eq(W,U))||U===void 0&&!(H in C))&&baseAssignValue$1(C,H,U)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$4(C,H,U,W){var G=!U;U||(U={});for(var X=-1,Z=H.length;++X<Z;){var Q=H[X],ee=W?W(U[Q],C[Q],Q,U,C):void 0;ee===void 0&&(ee=C[Q]),G?baseAssignValue(U,Q,ee):assignValue$1(U,Q,ee)}return U}var _copyObject=copyObject$4;function baseTimes$1(C,H){for(var U=-1,W=Array(C);++U<C;)W[U]=H(U);return W}var _baseTimes=baseTimes$1,isBuffer$3={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;(function(C,H){var U=_root,W=stubFalse_1,G=H&&!H.nodeType&&H,X=G&&!0&&C&&!C.nodeType&&C,Z=X&&X.exports===G,Q=Z?U.Buffer:void 0,ee=Q?Q.isBuffer:void 0,ie=ee||W;C.exports=ie})(isBuffer$3,isBuffer$3.exports);var baseGetTag$1=_baseGetTag,isLength=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(C){return isObjectLike$2(C)&&isLength(C.length)&&!!typedArrayTags[baseGetTag$1(C)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(C){return function(H){return C(H)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};(function(C,H){var U=_freeGlobal,W=H&&!H.nodeType&&H,G=W&&!0&&C&&!C.nodeType&&C,X=G&&G.exports===W,Z=X&&U.process,Q=function(){try{var ee=G&&G.require&&G.require("util").types;return ee||Z&&Z.binding&&Z.binding("util")}catch{}}();C.exports=Q})(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$3=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(C,H){var U=isArray$3(C),W=!U&&isArguments(C),G=!U&&!W&&isBuffer$2(C),X=!U&&!W&&!G&&isTypedArray$1(C),Z=U||W||G||X,Q=Z?baseTimes(C.length,String):[],ee=Q.length;for(var ie in C)(H||hasOwnProperty$3.call(C,ie))&&!(Z&&(ie=="length"||G&&(ie=="offset"||ie=="parent")||X&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||isIndex(ie,ee)))&&Q.push(ie);return Q}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(C){var H=C&&C.constructor,U=typeof H=="function"&&H.prototype||objectProto$4;return C===U}var _isPrototype=isPrototype$3;function overArg$2(C,H){return function(U){return C(H(U))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(C){if(!isPrototype$2(C))return nativeKeys(C);var H=[];for(var U in Object(C))hasOwnProperty$2.call(C,U)&&U!="constructor"&&H.push(U);return H}var _baseKeys=baseKeys$1,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(C){return isArrayLike$1(C)?arrayLikeKeys$1(C):baseKeys(C)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(C,H){return C&©Object$3(H,keys$2(H),C)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(C){var H=[];if(C!=null)for(var U in Object(C))H.push(U);return H}var _nativeKeysIn=nativeKeysIn$1,isObject$3=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(C){if(!isObject$3(C))return nativeKeysIn(C);var H=isPrototype$1(C),U=[];for(var W in C)W=="constructor"&&(H||!hasOwnProperty$1.call(C,W))||U.push(W);return U}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(C){return isArrayLike(C)?arrayLikeKeys(C,!0):baseKeysIn(C)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(C,H){return C&©Object$2(H,keysIn$2(H),C)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};(function(C,H){var U=_root,W=H&&!H.nodeType&&H,G=W&&!0&&C&&!C.nodeType&&C,X=G&&G.exports===W,Z=X?U.Buffer:void 0,Q=Z?Z.allocUnsafe:void 0;function ee(ie,te){if(te)return ie.slice();var ne=ie.length,ae=Q?Q(ne):new ie.constructor(ne);return ie.copy(ae),ae}C.exports=ee})(_cloneBuffer,_cloneBuffer.exports);function copyArray$1(C,H){var U=-1,W=C.length;for(H||(H=Array(W));++U<W;)H[U]=C[U];return H}var _copyArray=copyArray$1;function arrayFilter$1(C,H){for(var U=-1,W=C==null?0:C.length,G=0,X=[];++U<W;){var Z=C[U];H(Z,U,C)&&(X[G++]=Z)}return X}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$1=Object.prototype,propertyIsEnumerable=objectProto$1.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(C){return C==null?[]:(C=Object(C),arrayFilter(nativeGetSymbols$1(C),function(H){return propertyIsEnumerable.call(C,H)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$1=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(C,H){return copyObject$1(C,getSymbols$2(C),H)}var _copySymbols=copySymbols$1;function arrayPush$2(C,H){for(var U=-1,W=H.length,G=C.length;++U<W;)C[G+U]=H[U];return C}var _arrayPush=arrayPush$2,overArg=_overArg,getPrototype$2=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$2,arrayPush$1=_arrayPush,getPrototype$1=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(C){for(var H=[];C;)arrayPush$1(H,getSymbols$1(C)),C=getPrototype$1(C);return H}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(C,H){return copyObject(C,getSymbolsIn$1(C),H)}var _copySymbolsIn=copySymbolsIn$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$2(C,H,U){var W=H(C);return isArray$2(C)?W:arrayPush(W,U(C))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$1=keys_1;function getAllKeys$1(C){return baseGetAllKeys$1(C,keys$1,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$1(C){return baseGetAllKeys(C,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$1,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag;(DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1)&&(getTag$3=function(C){var H=baseGetTag(C),U=H==objectTag$1?C.constructor:void 0,W=U?toSource(U):"";if(W)switch(W){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return H});var _getTag=getTag$3,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function initCloneArray$1(C){var H=C.length,U=new C.constructor(H);return H&&typeof C[0]=="string"&&hasOwnProperty.call(C,"index")&&(U.index=C.index,U.input=C.input),U}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=_Uint8Array;function cloneArrayBuffer$3(C){var H=new C.constructor(C.byteLength);return new Uint8Array$1(H).set(new Uint8Array$1(C)),H}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(C,H){var U=H?cloneArrayBuffer$2(C.buffer):C.buffer;return new C.constructor(U,C.byteOffset,C.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(C){var H=new C.constructor(C.source,reFlags.exec(C));return H.lastIndex=C.lastIndex,H}var _cloneRegExp=cloneRegExp$1,Symbol$1=_Symbol,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol$1(C){return symbolValueOf?Object(symbolValueOf.call(C)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(C,H){var U=H?cloneArrayBuffer$1(C.buffer):C.buffer;return new C.constructor(U,C.byteOffset,C.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(C,H,U){var W=C.constructor;switch(H){case arrayBufferTag$1:return cloneArrayBuffer(C);case boolTag$1:case dateTag$1:return new W(+C);case dataViewTag$1:return cloneDataView(C,U);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(C,U);case mapTag$2:return new W;case numberTag$1:case stringTag$1:return new W(C);case regexpTag$1:return cloneRegExp(C);case setTag$2:return new W;case symbolTag$1:return cloneSymbol(C)}}var _initCloneByTag=initCloneByTag$1,isObject$2=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function C(){}return function(H){if(!isObject$2(H))return{};if(objectCreate)return objectCreate(H);C.prototype=H;var U=new C;return C.prototype=void 0,U}}(),_baseCreate=baseCreate$1,baseCreate=_baseCreate,getPrototype=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(C){return typeof C.constructor=="function"&&!isPrototype(C)?baseCreate(getPrototype(C)):{}}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$1=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(C){return isObjectLike$1(C)&&getTag$2(C)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtil.exports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(C){return isObjectLike(C)&&getTag$1(C)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBuffer.exports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$1=isArray_1,isBuffer$1=isBuffer$3.exports,isMap=isMap_1,isObject$1=isObject_1,isSet=isSet_1,keys=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone$1(C,H,U,W,G,X){var Z,Q=H&CLONE_DEEP_FLAG$1,ee=H&CLONE_FLAT_FLAG,ie=H&CLONE_SYMBOLS_FLAG$1;if(U&&(Z=G?U(C,W,G,X):U(C)),Z!==void 0)return Z;if(!isObject$1(C))return C;var te=isArray$1(C);if(te){if(Z=initCloneArray(C),!Q)return copyArray(C,Z)}else{var ne=getTag(C),ae=ne==funcTag||ne==genTag;if(isBuffer$1(C))return cloneBuffer(C,Q);if(ne==objectTag||ne==argsTag||ae&&!G){if(Z=ee||ae?{}:initCloneObject(C),!Q)return ee?copySymbolsIn(C,baseAssignIn(Z,C)):copySymbols(C,baseAssign(Z,C))}else{if(!cloneableTags[ne])return G?C:{};Z=initCloneByTag(C,ne,Q)}}X||(X=new Stack);var oe=X.get(C);if(oe)return oe;X.set(C,Z),isSet(C)?C.forEach(function(ce){Z.add(baseClone$1(ce,H,U,ce,C,X))}):isMap(C)&&C.forEach(function(ce,ue){Z.set(ue,baseClone$1(ce,H,U,ue,C,X))});var se=ie?ee?getAllKeysIn:getAllKeys:ee?keysIn:keys,le=te?void 0:se(C);return arrayEach(le||C,function(ce,ue){le&&(ue=ce,ce=C[ue]),assignValue(Z,ue,baseClone$1(ce,H,U,ue,C,X))}),Z}var _baseClone=baseClone$1,baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(C){return baseClone(C,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;function last$1(C){var H=C==null?0:C.length;return H?C[H-1]:void 0}var last_1=last$1,castPath$1=_castPath,toKey$1=_toKey;function baseGet$1(C,H){H=castPath$1(H,C);for(var U=0,W=H.length;C!=null&&U<W;)C=C[toKey$1(H[U++])];return U&&U==W?C:void 0}var _baseGet=baseGet$1;function baseSlice$1(C,H,U){var W=-1,G=C.length;H<0&&(H=-H>G?0:G+H),U=U>G?G:U,U<0&&(U+=G),G=H>U?0:U-H>>>0,H>>>=0;for(var X=Array(G);++W<G;)X[W]=C[W+H];return X}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=_baseSlice;function parent$1(C,H){return H.length<2?C:baseGet(C,baseSlice(H,0,-1))}var _parent=parent$1,castPath=_castPath,last=last_1,parent=_parent,toKey=_toKey;function baseUnset$1(C,H){return H=castPath(H,C),C=parent(C,H),C==null||delete C[toKey(last(H))]}var _baseUnset=baseUnset$1,baseUnset=_baseUnset;function unset(C,H){return C==null?!0:baseUnset(C,H)}var unset_1=unset;function isNull(C){return C===null}var isNull_1=isNull;function isUndefined$1(C){return C===void 0}var isUndefined_1=isUndefined$1,axios$2={exports:{}},axios$1={exports:{}},bind$2=function C(H,U){return function(){for(var G=new Array(arguments.length),X=0;X<G.length;X++)G[X]=arguments[X];return H.apply(U,G)}},bind$1=bind$2,toString=Object.prototype.toString,kindOf=function(C){return function(H){var U=toString.call(H);return C[U]||(C[U]=U.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(C){return C=C.toLowerCase(),function(U){return kindOf(U)===C}}function isArray(C){return Array.isArray(C)}function isUndefined(C){return typeof C>"u"}function isBuffer(C){return C!==null&&!isUndefined(C)&&C.constructor!==null&&!isUndefined(C.constructor)&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(C){var H;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?H=ArrayBuffer.isView(C):H=C&&C.buffer&&isArrayBuffer(C.buffer),H}function isString(C){return typeof C=="string"}function isNumber(C){return typeof C=="number"}function isObject(C){return C!==null&&typeof C=="object"}function isPlainObject(C){if(kindOf(C)!=="object")return!1;var H=Object.getPrototypeOf(C);return H===null||H===Object.prototype}var isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction(C){return toString.call(C)==="[object Function]"}function isStream(C){return isObject(C)&&isFunction(C.pipe)}function isFormData(C){var H="[object FormData]";return C&&(typeof FormData=="function"&&C instanceof FormData||toString.call(C)===H||isFunction(C.toString)&&C.toString()===H)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim(C){return C.trim?C.trim():C.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(C,H){if(!(C===null||typeof C>"u"))if(typeof C!="object"&&(C=[C]),isArray(C))for(var U=0,W=C.length;U<W;U++)H.call(null,C[U],U,C);else for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&H.call(null,C[G],G,C)}function merge(){var C={};function H(G,X){isPlainObject(C[X])&&isPlainObject(G)?C[X]=merge(C[X],G):isPlainObject(G)?C[X]=merge({},G):isArray(G)?C[X]=G.slice():C[X]=G}for(var U=0,W=arguments.length;U<W;U++)forEach(arguments[U],H);return C}function extend(C,H,U){return forEach(H,function(G,X){U&&typeof G=="function"?C[X]=bind$1(G,U):C[X]=G}),C}function stripBOM(C){return C.charCodeAt(0)===65279&&(C=C.slice(1)),C}function inherits(C,H,U,W){C.prototype=Object.create(H.prototype,W),C.prototype.constructor=C,U&&Object.assign(C.prototype,U)}function toFlatObject(C,H,U){var W,G,X,Z={};H=H||{};do{for(W=Object.getOwnPropertyNames(C),G=W.length;G-- >0;)X=W[G],Z[X]||(H[X]=C[X],Z[X]=!0);C=Object.getPrototypeOf(C)}while(C&&(!U||U(C,H))&&C!==Object.prototype);return H}function endsWith(C,H,U){C=String(C),(U===void 0||U>C.length)&&(U=C.length),U-=H.length;var W=C.indexOf(H,U);return W!==-1&&W===U}function toArray(C){if(!C)return null;var H=C.length;if(isUndefined(H))return null;for(var U=new Array(H);H-- >0;)U[H]=C[H];return U}var isTypedArray=function(C){return function(H){return C&&H instanceof C}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),utils$b={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,isTypedArray,isFileList},utils$a=utils$b;function encode(C){return encodeURIComponent(C).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function C(H,U,W){if(!U)return H;var G;if(W)G=W(U);else if(utils$a.isURLSearchParams(U))G=U.toString();else{var X=[];utils$a.forEach(U,function(ee,ie){ee===null||typeof ee>"u"||(utils$a.isArray(ee)?ie=ie+"[]":ee=[ee],utils$a.forEach(ee,function(ne){utils$a.isDate(ne)?ne=ne.toISOString():utils$a.isObject(ne)&&(ne=JSON.stringify(ne)),X.push(encode(ie)+"="+encode(ne))}))}),G=X.join("&")}if(G){var Z=H.indexOf("#");Z!==-1&&(H=H.slice(0,Z)),H+=(H.indexOf("?")===-1?"?":"&")+G}return H},utils$9=utils$b;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function C(H,U,W){return this.handlers.push({fulfilled:H,rejected:U,synchronous:W?W.synchronous:!1,runWhen:W?W.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function C(H){this.handlers[H]&&(this.handlers[H]=null)};InterceptorManager$1.prototype.forEach=function C(H){utils$9.forEach(this.handlers,function(W){W!==null&&H(W)})};var InterceptorManager_1=InterceptorManager$1,utils$8=utils$b,normalizeHeaderName$1=function C(H,U){utils$8.forEach(H,function(G,X){X!==U&&X.toUpperCase()===U.toUpperCase()&&(H[U]=G,delete H[X])})},utils$7=utils$b;function AxiosError$2(C,H,U,W,G){Error.call(this),this.message=C,this.name="AxiosError",H&&(this.code=H),U&&(this.config=U),W&&(this.request=W),G&&(this.response=G)}utils$7.inherits(AxiosError$2,Error,{toJSON:function C(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype=AxiosError$2.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(C){descriptors[C]={value:C}});Object.defineProperties(AxiosError$2,descriptors);Object.defineProperty(prototype,"isAxiosError",{value:!0});AxiosError$2.from=function(C,H,U,W,G,X){var Z=Object.create(prototype);return utils$7.toFlatObject(C,Z,function(ee){return ee!==Error.prototype}),AxiosError$2.call(Z,C.message,H,U,W,G),Z.name=C.name,X&&Object.assign(Z,X),Z};var AxiosError_1=AxiosError$2,transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},utils$6=utils$b;function toFormData$1(C,H){H=H||new FormData;var U=[];function W(X){return X===null?"":utils$6.isDate(X)?X.toISOString():utils$6.isArrayBuffer(X)||utils$6.isTypedArray(X)?typeof Blob=="function"?new Blob([X]):Buffer.from(X):X}function G(X,Z){if(utils$6.isPlainObject(X)||utils$6.isArray(X)){if(U.indexOf(X)!==-1)throw Error("Circular reference detected in "+Z);U.push(X),utils$6.forEach(X,function(ee,ie){if(!utils$6.isUndefined(ee)){var te=Z?Z+"."+ie:ie,ne;if(ee&&!Z&&typeof ee=="object"){if(utils$6.endsWith(ie,"{}"))ee=JSON.stringify(ee);else if(utils$6.endsWith(ie,"[]")&&(ne=utils$6.toArray(ee))){ne.forEach(function(ae){!utils$6.isUndefined(ae)&&H.append(te,W(ae))});return}}G(ee,te)}}),U.pop()}else H.append(Z,W(X))}return G(C),H}var toFormData_1=toFormData$1,settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var C=AxiosError_1;return settle=function(U,W,G){var X=G.config.validateStatus;!G.status||!X||X(G.status)?U(G):W(new C("Request failed with status code "+G.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(G.status/100)-4],G.config,G.request,G))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var C=utils$b;return cookies=C.isStandardBrowserEnv()?function(){return{write:function(W,G,X,Z,Q,ee){var ie=[];ie.push(W+"="+encodeURIComponent(G)),C.isNumber(X)&&ie.push("expires="+new Date(X).toGMTString()),C.isString(Z)&&ie.push("path="+Z),C.isString(Q)&&ie.push("domain="+Q),ee===!0&&ie.push("secure"),document.cookie=ie.join("; ")},read:function(W){var G=document.cookie.match(new RegExp("(^|;\\s*)("+W+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove:function(W){this.write(W,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL$1=function C(H){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(H)},combineURLs$1=function C(H,U){return U?H.replace(/\/+$/,"")+"/"+U.replace(/^\/+/,""):H},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function C(H,U){return H&&!isAbsoluteURL(U)?combineURLs(H,U):U},parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var C=utils$b,H=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(W){var G={},X,Z,Q;return W&&C.forEach(W.split(`
|
||
`),function(ie){if(Q=ie.indexOf(":"),X=C.trim(ie.substr(0,Q)).toLowerCase(),Z=C.trim(ie.substr(Q+1)),X){if(G[X]&&H.indexOf(X)>=0)return;X==="set-cookie"?G[X]=(G[X]?G[X]:[]).concat([Z]):G[X]=G[X]?G[X]+", "+Z:Z}}),G},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var C=utils$b;return isURLSameOrigin=C.isStandardBrowserEnv()?function(){var U=/(msie|trident)/i.test(navigator.userAgent),W=document.createElement("a"),G;function X(Z){var Q=Z;return U&&(W.setAttribute("href",Q),Q=W.href),W.setAttribute("href",Q),{href:W.href,protocol:W.protocol?W.protocol.replace(/:$/,""):"",host:W.host,search:W.search?W.search.replace(/^\?/,""):"",hash:W.hash?W.hash.replace(/^#/,""):"",hostname:W.hostname,port:W.port,pathname:W.pathname.charAt(0)==="/"?W.pathname:"/"+W.pathname}}return G=X(window.location.href),function(Q){var ee=C.isString(Q)?X(Q):Q;return ee.protocol===G.protocol&&ee.host===G.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var CanceledError_1,hasRequiredCanceledError;function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var C=AxiosError_1,H=utils$b;function U(W){C.call(this,W==null?"canceled":W,C.ERR_CANCELED),this.name="CanceledError"}return H.inherits(U,C,{__CANCEL__:!0}),CanceledError_1=U,CanceledError_1}var parseProtocol,hasRequiredParseProtocol;function requireParseProtocol(){return hasRequiredParseProtocol||(hasRequiredParseProtocol=1,parseProtocol=function(H){var U=/^([-+\w]{1,25})(:?\/\/|:)/.exec(H);return U&&U[1]||""}),parseProtocol}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var C=utils$b,H=requireSettle(),U=requireCookies(),W=buildURL$1,G=buildFullPath$1,X=requireParseHeaders(),Z=requireIsURLSameOrigin(),Q=transitional,ee=AxiosError_1,ie=requireCanceledError(),te=requireParseProtocol();return xhr=function(ae){return new Promise(function(se,le){var ce=ae.data,ue=ae.headers,de=ae.responseType,ve;function ge(){ae.cancelToken&&ae.cancelToken.unsubscribe(ve),ae.signal&&ae.signal.removeEventListener("abort",ve)}C.isFormData(ce)&&C.isStandardBrowserEnv()&&delete ue["Content-Type"];var he=new XMLHttpRequest;if(ae.auth){var me=ae.auth.username||"",_e=ae.auth.password?unescape(encodeURIComponent(ae.auth.password)):"";ue.Authorization="Basic "+btoa(me+":"+_e)}var be=G(ae.baseURL,ae.url);he.open(ae.method.toUpperCase(),W(be,ae.params,ae.paramsSerializer),!0),he.timeout=ae.timeout;function pe(){if(!!he){var $e="getAllResponseHeaders"in he?X(he.getAllResponseHeaders()):null,we=!de||de==="text"||de==="json"?he.responseText:he.response,Se={data:we,status:he.status,statusText:he.statusText,headers:$e,config:ae,request:he};H(function(xe){se(xe),ge()},function(xe){le(xe),ge()},Se),he=null}}if("onloadend"in he?he.onloadend=pe:he.onreadystatechange=function(){!he||he.readyState!==4||he.status===0&&!(he.responseURL&&he.responseURL.indexOf("file:")===0)||setTimeout(pe)},he.onabort=function(){!he||(le(new ee("Request aborted",ee.ECONNABORTED,ae,he)),he=null)},he.onerror=function(){le(new ee("Network Error",ee.ERR_NETWORK,ae,he,he)),he=null},he.ontimeout=function(){var we=ae.timeout?"timeout of "+ae.timeout+"ms exceeded":"timeout exceeded",Se=ae.transitional||Q;ae.timeoutErrorMessage&&(we=ae.timeoutErrorMessage),le(new ee(we,Se.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,ae,he)),he=null},C.isStandardBrowserEnv()){var fe=(ae.withCredentials||Z(be))&&ae.xsrfCookieName?U.read(ae.xsrfCookieName):void 0;fe&&(ue[ae.xsrfHeaderName]=fe)}"setRequestHeader"in he&&C.forEach(ue,function(we,Se){typeof ce>"u"&&Se.toLowerCase()==="content-type"?delete ue[Se]:he.setRequestHeader(Se,we)}),C.isUndefined(ae.withCredentials)||(he.withCredentials=!!ae.withCredentials),de&&de!=="json"&&(he.responseType=ae.responseType),typeof ae.onDownloadProgress=="function"&&he.addEventListener("progress",ae.onDownloadProgress),typeof ae.onUploadProgress=="function"&&he.upload&&he.upload.addEventListener("progress",ae.onUploadProgress),(ae.cancelToken||ae.signal)&&(ve=function($e){!he||(le(!$e||$e&&$e.type?new ie:$e),he.abort(),he=null)},ae.cancelToken&&ae.cancelToken.subscribe(ve),ae.signal&&(ae.signal.aborted?ve():ae.signal.addEventListener("abort",ve))),ce||(ce=null);var ye=te(be);if(ye&&["http","https","file"].indexOf(ye)===-1){le(new ee("Unsupported protocol "+ye+":",ee.ERR_BAD_REQUEST,ae));return}he.send(ce)})},xhr}var _null,hasRequired_null;function require_null(){return hasRequired_null||(hasRequired_null=1,_null=null),_null}var utils$5=utils$b,normalizeHeaderName=normalizeHeaderName$1,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(C,H){!utils$5.isUndefined(C)&&utils$5.isUndefined(C["Content-Type"])&&(C["Content-Type"]=H)}function getDefaultAdapter(){var C;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(C=requireXhr()),C}function stringifySafely(C,H,U){if(utils$5.isString(C))try{return(H||JSON.parse)(C),utils$5.trim(C)}catch(W){if(W.name!=="SyntaxError")throw W}return(U||JSON.stringify)(C)}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function C(H,U){if(normalizeHeaderName(U,"Accept"),normalizeHeaderName(U,"Content-Type"),utils$5.isFormData(H)||utils$5.isArrayBuffer(H)||utils$5.isBuffer(H)||utils$5.isStream(H)||utils$5.isFile(H)||utils$5.isBlob(H))return H;if(utils$5.isArrayBufferView(H))return H.buffer;if(utils$5.isURLSearchParams(H))return setContentTypeIfUnset(U,"application/x-www-form-urlencoded;charset=utf-8"),H.toString();var W=utils$5.isObject(H),G=U&&U["Content-Type"],X;if((X=utils$5.isFileList(H))||W&&G==="multipart/form-data"){var Z=this.env&&this.env.FormData;return toFormData(X?{"files[]":H}:H,Z&&new Z)}else if(W||G==="application/json")return setContentTypeIfUnset(U,"application/json"),stringifySafely(H);return H}],transformResponse:[function C(H){var U=this.transitional||defaults$3.transitional,W=U&&U.silentJSONParsing,G=U&&U.forcedJSONParsing,X=!W&&this.responseType==="json";if(X||G&&utils$5.isString(H)&&H.length)try{return JSON.parse(H)}catch(Z){if(X)throw Z.name==="SyntaxError"?AxiosError$1.from(Z,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):Z}return H}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:require_null()},validateStatus:function C(H){return H>=200&&H<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$5.forEach(["delete","get","head"],function C(H){defaults$3.headers[H]={}});utils$5.forEach(["post","put","patch"],function C(H){defaults$3.headers[H]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$4=utils$b,defaults$2=defaults_1,transformData$1=function C(H,U,W){var G=this||defaults$2;return utils$4.forEach(W,function(Z){H=Z.call(G,H,U)}),H},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(H){return!!(H&&H.__CANCEL__)}),isCancel$1}var utils$3=utils$b,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1,CanceledError=requireCanceledError();function throwIfCancellationRequested(C){if(C.cancelToken&&C.cancelToken.throwIfRequested(),C.signal&&C.signal.aborted)throw new CanceledError}var dispatchRequest$1=function C(H){throwIfCancellationRequested(H),H.headers=H.headers||{},H.data=transformData.call(H,H.data,H.headers,H.transformRequest),H.headers=utils$3.merge(H.headers.common||{},H.headers[H.method]||{},H.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(G){delete H.headers[G]});var U=H.adapter||defaults$1.adapter;return U(H).then(function(G){return throwIfCancellationRequested(H),G.data=transformData.call(H,G.data,G.headers,H.transformResponse),G},function(G){return isCancel(G)||(throwIfCancellationRequested(H),G&&G.response&&(G.response.data=transformData.call(H,G.response.data,G.response.headers,H.transformResponse))),Promise.reject(G)})},utils$2=utils$b,mergeConfig$2=function C(H,U){U=U||{};var W={};function G(te,ne){return utils$2.isPlainObject(te)&&utils$2.isPlainObject(ne)?utils$2.merge(te,ne):utils$2.isPlainObject(ne)?utils$2.merge({},ne):utils$2.isArray(ne)?ne.slice():ne}function X(te){if(utils$2.isUndefined(U[te])){if(!utils$2.isUndefined(H[te]))return G(void 0,H[te])}else return G(H[te],U[te])}function Z(te){if(!utils$2.isUndefined(U[te]))return G(void 0,U[te])}function Q(te){if(utils$2.isUndefined(U[te])){if(!utils$2.isUndefined(H[te]))return G(void 0,H[te])}else return G(void 0,U[te])}function ee(te){if(te in U)return G(H[te],U[te]);if(te in H)return G(void 0,H[te])}var ie={url:Z,method:Z,data:Z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:ee};return utils$2.forEach(Object.keys(H).concat(Object.keys(U)),function(ne){var ae=ie[ne]||X,oe=ae(ne);utils$2.isUndefined(oe)&&ae!==ee||(W[ne]=oe)}),W},data,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data={version:"0.27.2"}),data}var VERSION=requireData().version,AxiosError=AxiosError_1,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(C,H){validators$1[C]=function(W){return typeof W===C||"a"+(H<1?"n ":" ")+C}});var deprecatedWarnings={};validators$1.transitional=function C(H,U,W){function G(X,Z){return"[Axios v"+VERSION+"] Transitional option '"+X+"'"+Z+(W?". "+W:"")}return function(X,Z,Q){if(H===!1)throw new AxiosError(G(Z," has been removed"+(U?" in "+U:"")),AxiosError.ERR_DEPRECATED);return U&&!deprecatedWarnings[Z]&&(deprecatedWarnings[Z]=!0,console.warn(G(Z," has been deprecated since v"+U+" and will be removed in the near future"))),H?H(X,Z,Q):!0}};function assertOptions(C,H,U){if(typeof C!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var W=Object.keys(C),G=W.length;G-- >0;){var X=W[G],Z=H[X];if(Z){var Q=C[X],ee=Q===void 0||Z(Q,X,C);if(ee!==!0)throw new AxiosError("option "+X+" must be "+ee,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(U!==!0)throw new AxiosError("Unknown option "+X,AxiosError.ERR_BAD_OPTION)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$b,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,buildFullPath=buildFullPath$1,validator=validator$1,validators=validator.validators;function Axios$1(C){this.defaults=C,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function C(H,U){typeof H=="string"?(U=U||{},U.url=H):U=H||{},U=mergeConfig$1(this.defaults,U),U.method?U.method=U.method.toLowerCase():this.defaults.method?U.method=this.defaults.method.toLowerCase():U.method="get";var W=U.transitional;W!==void 0&&validator.assertOptions(W,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var G=[],X=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(U)===!1||(X=X&&oe.synchronous,G.unshift(oe.fulfilled,oe.rejected))});var Z=[];this.interceptors.response.forEach(function(oe){Z.push(oe.fulfilled,oe.rejected)});var Q;if(!X){var ee=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(ee,G),ee=ee.concat(Z),Q=Promise.resolve(U);ee.length;)Q=Q.then(ee.shift(),ee.shift());return Q}for(var ie=U;G.length;){var te=G.shift(),ne=G.shift();try{ie=te(ie)}catch(ae){ne(ae);break}}try{Q=dispatchRequest(ie)}catch(ae){return Promise.reject(ae)}for(;Z.length;)Q=Q.then(Z.shift(),Z.shift());return Q};Axios$1.prototype.getUri=function C(H){H=mergeConfig$1(this.defaults,H);var U=buildFullPath(H.baseURL,H.url);return buildURL(U,H.params,H.paramsSerializer)};utils$1.forEach(["delete","get","head","options"],function C(H){Axios$1.prototype[H]=function(U,W){return this.request(mergeConfig$1(W||{},{method:H,url:U,data:(W||{}).data}))}});utils$1.forEach(["post","put","patch"],function C(H){function U(W){return function(X,Z,Q){return this.request(mergeConfig$1(Q||{},{method:H,headers:W?{"Content-Type":"multipart/form-data"}:{},url:X,data:Z}))}}Axios$1.prototype[H]=U(),Axios$1.prototype[H+"Form"]=U(!0)});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var C=requireCanceledError();function H(U){if(typeof U!="function")throw new TypeError("executor must be a function.");var W;this.promise=new Promise(function(Z){W=Z});var G=this;this.promise.then(function(X){if(!!G._listeners){var Z,Q=G._listeners.length;for(Z=0;Z<Q;Z++)G._listeners[Z](X);G._listeners=null}}),this.promise.then=function(X){var Z,Q=new Promise(function(ee){G.subscribe(ee),Z=ee}).then(X);return Q.cancel=function(){G.unsubscribe(Z)},Q},U(function(Z){G.reason||(G.reason=new C(Z),W(G.reason))})}return H.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},H.prototype.subscribe=function(W){if(this.reason){W(this.reason);return}this._listeners?this._listeners.push(W):this._listeners=[W]},H.prototype.unsubscribe=function(W){if(!!this._listeners){var G=this._listeners.indexOf(W);G!==-1&&this._listeners.splice(G,1)}},H.source=function(){var W,G=new H(function(Z){W=Z});return{token:G,cancel:W}},CancelToken_1=H,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(H){return function(W){return H.apply(null,W)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var C=utils$b;return isAxiosError=function(U){return C.isObject(U)&&U.isAxiosError===!0},isAxiosError}var utils=utils$b,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=defaults_1;function createInstance(C){var H=new Axios(C),U=bind(Axios.prototype.request,H);return utils.extend(U,Axios.prototype,H),utils.extend(U,H),U.create=function(G){return createInstance(mergeConfig(C,G))},U}var axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=requireCanceledError();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.VERSION=requireData().version;axios.toFormData=toFormData_1;axios.AxiosError=AxiosError_1;axios.Cancel=axios.CanceledError;axios.all=function C(H){return Promise.all(H)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;(function(C){C.exports=axios$1.exports})(axios$2);const DebugAxios=getDefaultExportFromCjs(axios$2.exports);marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1});function SwaggerBootstrapUi(C){if(this.swaggerData=null,this.springdoc=C.springdoc||!1,this.springdoc){const H=window.location.pathname,U=H.lastIndexOf("/");H.length==U+1||H.substring(0,U),this.url="../api.json"}else this.url=C.url||"swagger-resources";this.i18n=C.i18n||"zh-CN",this.desktop=C.desktop||!1,this.desktopCode=null,this.i18nVue=C.i18nVue||null,this.i18nFlag=C.i18nFlag||!1,this.baseSpringFox=C.baseSpringFox||!1,this.configUrl=C.configUrl||"swagger-resources/configuration/ui",this.configSupport=C.configSupport||!1,this.securitySupport=C.securitySupport||!1,this.serviceOptions=null,this.defaultServiceOption=null,this.routeParams=C.routeParams||null,this.menuData=null,this.store=C.store||{},this.localStore=C.localStore||{},this.plus=C.plus,this.docId="content",this.title="knife4j",this.titleOfUrl="https://gitee.com/xiaoym/knife4j",this.load=1,this.tabId="tabUl",this.tabContentId="tabContent",this.searchEleId="spanSearch",this.searchTxtEleId="searchTxt",this.menuId="menu",this.searchMenuId="searchMenu",this.instances=[],this.currentInstance=null,this.globalMenuDatas=[],this.globalTabId="sbu-dynamic-tab",this.globalTabs=[],this.layui=C.layui,this.ace=C.ace,this.treetable=C.treetable,this.layTabFilter="admin-pagetabs",this.version="1.9.6",this.requestOrigion="SwaggerBootstrapUi",this.requestParameter={},this.settings=C.settings||{enableDebug:!0,enableFooter:!0,enableFooterCustom:!1,footerCustomContent:"",enableSearch:!0,enableOpenApi:!0,enableHomeCustom:!1,homeCustomLocation:"",enableGroup:!0,enableResponseCode:!0,enableSwaggerModels:!0,swaggerModelName:"Swagger Models",enableReloadCacheParameter:!1,enableAfterScript:!0,enableDocumentManage:!0,enableVersion:!1,showApiUrl:!1,showTagStatus:!1,enableSwaggerBootstrapUi:!1,treeExplain:!0,enableDynamicParameter:!1,enableFilterMultipartApis:!1,enableFilterMultipartApiMethodType:"POST",enableRequestCache:!0,enableCacheOpenApiTable:!1,enableHost:!1,enableHostText:"",language:C.i18n||"zh-CN"},this.extUrl="/v2/api-docs",this.ext3Url="/v3/api-docs",this.validateExtUrl="",this.cacheApis=C.cacheApis||[],this.hasLoad=!1,this.i18nInstance=C.i18nInstance||{},this.configuration={supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"]}}SwaggerBootstrapUi.prototype.main=function(){var C=this;C.initRequestParameters(),C.initSettings()};SwaggerBootstrapUi.prototype.initRequestParameters=function(){var C=this,H=window.location.search;if(H!=null&&H!=""){var U=H.substr(1);if(U!=null&&U!=null&&U!="")for(var W=U.split("&"),G=0;G<W.length;G++){var X=W[G];if(X!=null&&X!=null&&X!=""){var Z=X.split("=");C.requestParameter[utils$c.trim(Z[0])]=utils$c.trim(Z[1])}}}C.log("\u8BF7\u6C42\u53C2\u6570========================================"),C.log(C.requestParameter)};SwaggerBootstrapUi.prototype.initSettings=function(){var C=this;C.log("\u672C\u5730Settings\u521D\u59CB\u5316"),C.configSupport&&C.configInit(),C.analysisGroup()};SwaggerBootstrapUi.prototype.initApis=function(){var C=this;if(window.localStorage){var H=window.localStorage,U=H.SwaggerBootstrapUiCacheApis;if(U!=null&&U!=null&&U!=""){var W=utils$c.json5parse(U);C.cacheApis=W}else C.cacheApis=[]}};SwaggerBootstrapUi.prototype.configInit=function(){var C=this;this.ajax({url:C.configUrl,type:"get",timeout:2e4,dataType:"json"},H=>{if(H!=null&&H!=null&&H.hasOwnProperty("supportedSubmitMethods")){var U=H.supportedSubmitMethods;if(U.length>0){var W=[];U.forEach(function(G){W.push(G.toLowerCase())}),C.configuration.supportedSubmitMethods=W}else C.configuration.supportedSubmitMethods=[]}},H=>{C.error(H)})};SwaggerBootstrapUi.prototype.analysisGroup=function(){var C=this;try{var H={};if(C.desktop){var U=window.location.pathname,W="ROOT",G=new RegExp("(?:/(.*?))?/doc.html","ig");if(G.exec(U)){var X=RegExp.$1;utils$c.strNotBlank(X)&&(W=X)}H={"knife4j-gateway-code":W},this.desktopCode=W}C.ajax({url:"../api.json",type:"get",timeout:2e4,dataType:"json",headers:H},Z=>{C.springdoc?C.analysisSpringDocOpenApiGroupSuccess(Z):C.analysisGroupSuccess(Z),C.createGroupElement()},Z=>{message$1.error("Knife4j\u6587\u6863\u8BF7\u6C42\u5F02\u5E38"),C.error(Z)})}catch(Z){C.error(Z)}};SwaggerBootstrapUi.prototype.analysisSpringDocOpenApiGroupSuccess=function(C){const H=useGlobalsStore();var U=this,W=typeof C,G=null;W=="string"?G=utils$c.json5parse(C):G=C,U.log("\u54CD\u5E94\u5206\u7EC4json\u6570\u636E"),U.log(G);var X=[],Z=[],Q=utils$c.getValue(G,"urls",[],!0),ee=[];utils$c.arrNotEmpty(Q)?Q.forEach(ie=>{var te={name:utils$c.getValue(ie,"name","knife4j",!0),url:utils$c.getValue(ie,"url","",!0),location:utils$c.getValue(ie,"url","",!0),swaggerVersion:"3.0.3"};ee.push(te)}):ee.push({name:utils$c.getValue(G,"url","default",!0),url:utils$c.getValue(G,"url","",!0),location:utils$c.getValue(G,"url","",!0),swaggerVersion:"3.0.3"}),ee.forEach(function(ie){var te=new SwaggerBootstrapUiInstance(utils$c.toString(ie.name,"").replace(/\//g,"-"),ie.location,ie.swaggerVersion);te.url=ie.url,te.desktop=U.desktop,te.desktopCode=U.desktopCode;var ne="";if(ie.url!=null&&ie.url!=null&&ie.url!=""?ne=ie.url:ne=ie.location,te.extUrl=ne,U.validateExtUrl==""&&(U.validateExtUrl=te.extUrl),ie.basePath!=null&&ie.basePath!=null&&ie.basePath!=""&&(te.baseUrl=ie.basePath),U.cacheApis.length>0){var ae=null;U.cacheApis.forEach(oe=>{oe.id==te.groupId&&(ae=oe)}),ae!=null?(te.firstLoad=!1,ae.hasOwnProperty("updateApis")||(ae.updateApis={}),te.cacheInstance=ae,U.log(te)):te.cacheInstance=new SwaggerBootstrapUiCacheApis({id:te.groupId,name:te.name})}else te.cacheInstance=new SwaggerBootstrapUiCacheApis({id:te.groupId,name:te.name});X.push({label:te.name,value:te.id}),Z.push(te.id),U.instances.push(te)}),utils$c.arrNotEmpty(U.instances)&&U.instances.forEach(ie=>{ie.allGroupIds=Z}),this.serviceOptions=X,H.setServiceOptions(X),X.length>0&&(this.defaultServiceOption=X[0].value,H.setDefaultService(X[0].value))};SwaggerBootstrapUi.prototype.analysisGroupSuccess=function(C){var H=this,U=typeof C,W=null;U=="string"?W=utils$c.json5parse(C):W=C,H.log("\u54CD\u5E94\u5206\u7EC4json\u6570\u636E"),H.log(W);var G=[],X=[];W.forEach(function(Q){var ee=new SwaggerBootstrapUiInstance(utils$c.toString(Q.name,"").replace(/\//g,"-"),Q.location,Q.swaggerVersion);ee.url=Q.url,ee.header=utils$c.getValue(Q,"header",null,!0),ee.basicAuth=utils$c.getValue(Q,"basicAuth",null,!0),ee.servicePath=utils$c.getValue(Q,"servicePath",null,!0),ee.desktop=H.desktop,ee.desktopCode=H.desktopCode;var ie="";if(Q.url!=null&&Q.url!=null&&Q.url!=""?ie=Q.url:ie=Q.location,ee.extUrl=ie,H.validateExtUrl==""&&(H.validateExtUrl=ee.extUrl),Q.basePath!=null&&Q.basePath!=null&&Q.basePath!=""&&(ee.baseUrl=Q.basePath),H.cacheApis.length>0){var te=null;H.cacheApis.forEach(ne=>{ne.id==ee.groupId&&(te=ne)}),te!=null?(ee.firstLoad=!1,te.hasOwnProperty("updateApis")||(te.updateApis={}),ee.cacheInstance=te,H.log(ee)):ee.cacheInstance=new SwaggerBootstrapUiCacheApis({id:ee.groupId,name:ee.name})}else ee.cacheInstance=new SwaggerBootstrapUiCacheApis({id:ee.groupId,name:ee.name});G.push({label:ee.name,value:ee.id}),X.push(ee.id),H.instances.push(ee)}),utils$c.arrNotEmpty(H.instances)&&H.instances.forEach(Q=>{Q.allGroupIds=X}),this.serviceOptions=G;const Z=useGlobalsStore();Z.setServiceOptions(G),G.length>0&&(this.defaultServiceOption=G[0].value,Z.setDefaultService(G[0].value))};SwaggerBootstrapUi.prototype.createGroupElement=function(){const C=useGlobalsStore();var H=this;H.log("\u5206\u7EC4-------------------------------");var U=this.routeParams;if(utils$c.checkUndefined(U))if(U.hasOwnProperty("groupName")){var W=U.groupName;if(utils$c.checkUndefined(W)&&W!=""){let G=H.selectInstanceByGroupName(W);H.log("\u5305\u542B\u5206\u7EC4\u540D\u79F0"),H.log(G),this.defaultServiceOption=G.id,C.setDefaultService(G.id),H.analysisApi(G)}else H.analysisApi(H.instances[0])}else H.analysisApi(H.instances[0]);else H.analysisApi(H.instances[0])};SwaggerBootstrapUi.prototype.selectInstanceByGroupName=function(C){var H=this,U=null;return H.instances.forEach(function(W){if(W.name==C){U=W;return}}),U};SwaggerBootstrapUi.prototype.analysisApi=function(C){var H=this;try{if(H.currentInstance=C,H.currentInstance.load)H.createDescriptionElement(),H.createDetailMenu(!1),H.afterApiInitSuccess(),useGlobalsStore().setSwaggerInstance(this.currentInstance);else{var U=C.url;if((U==null||U==null||U=="")&&(U=C.location),H.settings.enableSwaggerBootstrapUi&&(U=C.extUrl),!H.springdoc){var W=U.indexOf("/");W==0&&(U=U.substr(1))}var G={language:H.settings.language},X={url:"../api.json",dataType:"json",timeout:2e4,type:"get",transformResponse:[function(Z){return utils$c.json5parse(Z)}]};H.desktop&&(G=Object.assign({},G,{"knife4j-gateway-code":H.desktopCode})),utils$c.checkUndefined(this.currentInstance.header)&&(G=Object.assign({},G,{"knfie4j-gateway-request":H.currentInstance.header})),utils$c.checkUndefined(this.currentInstance.basicAuth)&&(G=Object.assign({},G,{"knife4j-gateway-basic-request":H.currentInstance.basicAuth})),X=Object.assign({},X,{headers:G}),H.ajax(X,Z=>{H.analysisApiSuccess(Z)},Z=>{message$1.error("Knife4j\u6587\u6863\u8BF7\u6C42\u5F02\u5E38"),H.error(Z)})}}catch(Z){H.error(Z),window.console&&console.error(Z)}};SwaggerBootstrapUi.prototype.afterApiInitSuccess=function(){var C=this;C.initOpenTable()};SwaggerBootstrapUi.prototype.initOpenTable=function(){var C=this;if(!!C.settings.enableCacheOpenApiTable&&window.localStorage){var H=window.localStorage,G=H.SwaggerBootstrapUiCacheOpenApiTableApis||"{}",U=utils$c.json5parse(G),W=C.currentInstance.groupId,G=U[W]||[];if(G.length>0)for(var X=0;X<G.length;X++){var Z=G[X];C.log(Z)}}};SwaggerBootstrapUi.prototype.analysisApiSuccess=function(C){var H=this;H.hasLoad=!0,H.log(C);var U=typeof C,W=null;U=="string"?W=utils$c.json5parse(C):W=C,H.setInstanceBasicPorperties(W),H.resolvedOASVersion(W),this.currentInstance.oas2()?(H.openSettings(W),H.openDocuments(W)):(H.openV3Settings(W),H.openV3Documents(W)),H.dispatchSettings(),H.analysisDefinition(W),H.mergeLocalSecurityContext(),H.log(W),H.createDescriptionElement(),H.currentInstance.load=!0,H.createDetailMenu(!0),useGlobalsStore().setSwaggerInstance(this.currentInstance)};SwaggerBootstrapUi.prototype.resolvedOASVersion=function(C){let H=utils$c.getValue(C,"openapi","",!0),U="2.0";utils$c.strNotBlank(H)&&(U=H),this.currentInstance.groupVersion=U};SwaggerBootstrapUi.prototype.dispatchSettings=function(){const C=useGlobalsStore();C.setAfterScript(this.settings.enableAfterScript),C.setReloadCacheParameter(this.settings.enableReloadCacheParameter),C.setResponseCode(this.settings.enableResponseCode),C.setSettings(this.settings)};SwaggerBootstrapUi.prototype.mergeLocalSecurityContext=function(){var C=this,H=C.currentInstance.securityArrs,U=constants$1.globalSecurityParamPrefix+C.currentInstance.id,W=[],G={},X=[];C.localStore.getItem(constants$1.globalSecurityParameterObject).then(Z=>{utils$c.arrNotEmpty(H)?C.localStore.getItem(U).then(Q=>{if(utils$c.checkUndefined(Q)){var ee=[];H.forEach(ie=>{var te=Q.filter(ne=>ne.id==ie.id);te.length>0?utils$c.strNotBlank(ie.value)?ee.push(ie):ee.push(te[0]):ee.push(ie)}),X=ee}else X=H;utils$c.checkUndefined(Z)?(G=Z,W=W.concat(Z),X.forEach(ie=>{var te=Z[ie.id];utils$c.checkUndefined(te)?ie.value=te:G[ie.id]=ie.value})):X.forEach(ie=>{G[ie.id]=ie.value}),C.localStore.setItem(U,X),C.localStore.setItem(constants$1.globalSecurityParameterObject,G)}):this.localStore.removeItem(U)})};SwaggerBootstrapUi.prototype.openSettings=function(C){var H=this,U=C["x-openapi"];if(utils$c.checkUndefined(U))if(utils$c.checkUndefined(U["x-setting"])){var W=U["x-setting"],G=Object.assign({},H.settings,W);H.i18nFlag&&(G=Object.assign({},G,{language:H.i18n})),H.settings=G,H.localStore.setItem(constants$1.globalSettingsKey,G);var X=utils$c.getValue(G,"language","zh-CN",!0);this.localStore.setItem(constants$1.globalI18nCache,X),setTimeout(()=>{utils$c.checkUndefined(H.i18nVue)&&(H.i18nVue.locale=X),H.store.dispatch("globals/setLang",X)},500)}else H.setDefaultSettings();else H.setDefaultSettings()};SwaggerBootstrapUi.prototype.setDefaultSettings=function(){let C=this.settings,H=constants$1.defaultSettings,U=constants$1.defaultWebSettings;var W=Object.assign({},H,C);W=Object.assign({},W,U),this.localStore.setItem(constants$1.globalSettingsKey,W),this.settings=W};SwaggerBootstrapUi.prototype.openV3Settings=function(C){var H=this,U=C.extensions;if(utils$c.checkUndefined(U))if(utils$c.checkUndefined(U["x-setting"])){var W=U["x-setting"];if(utils$c.arrNotEmpty(W)){var G=W[0],X=Object.assign({},H.settings,G);H.i18nFlag&&(X=Object.assign({},X,{language:H.i18n})),H.settings=X,H.localStore.setItem(constants$1.globalSettingsKey,X);var Z=utils$c.getValue(X,"language","zh-CN",!0);this.localStore.setItem(constants$1.globalI18nCache,Z),setTimeout(()=>{utils$c.checkUndefined(H.i18nVue)&&(H.i18nVue.locale=Z),H.store.dispatch("globals/setLang",Z)},500)}}else H.setDefaultSettings();else H.setDefaultSettings()};SwaggerBootstrapUi.prototype.openDocuments=function(C){var H=this,U=C["x-openapi"];if(utils$c.checkUndefined(U)&&utils$c.arrNotEmpty(U["x-markdownFiles"])){var W=U["x-markdownFiles"],G={};W.forEach(Z=>{var Q=new SwaggerBootstrapUiMarkdownTag(Z.name);if(utils$c.arrNotEmpty(Z.children)){var ee=Z.children;ee.forEach(ie=>{var te=new SwaggerBootstrapUiMarkdownFile(ie.title);Q.children.push(te),G[te.id]=utils$c.getValue(ie,"content","",!0)})}H.currentInstance.markdownFiles.push(Q)});var X=H.currentInstance.id+"markdownFiles";H.localStore.removeItem(X),H.localStore.setItem(X,G)}};SwaggerBootstrapUi.prototype.openV3Documents=function(C){var H=this,U=C.extensions;if(utils$c.checkUndefined(U)&&utils$c.arrNotEmpty(U["x-markdownFiles"])){var W=U["x-markdownFiles"],G={};W.forEach(Z=>{var Q=new SwaggerBootstrapUiMarkdownTag(Z.name);if(utils$c.arrNotEmpty(Z.children)){var ee=Z.children;ee.forEach(ie=>{var te=new SwaggerBootstrapUiMarkdownFile(ie.title),ne=utils$c.getValue(ie,"content","",!0);Q.children.push(te),G[te.id]=ne})}H.currentInstance.markdownFiles.push(Q)});var X=H.currentInstance.id+"markdownFiles";H.localStore.removeItem(X),H.localStore.setItem(X,G)}};SwaggerBootstrapUi.prototype.updateCurrentInstanceSecuritys=function(){var C=this;if(C.currentInstance.securityArrs!=null&&C.currentInstance.securityArrs.length>0){var H=C.getSecurityStores();H!=null&&H!=null&&H.forEach(function(U){C.currentInstance.securityArrs.forEach(function(W){U.key==W.key&&U.name==W.name&&(W.value=U.value)})})}};SwaggerBootstrapUi.prototype.getSecurityStores=function(){var C=null;if(window.localStorage){var H=window.localStorage,U=H.SwaggerBootstrapUiCacheSecuritys;if(U!=null&&U!=null&&U!=""){var W=utils$c.json5parse(cacheApis);C=W}}return C};SwaggerBootstrapUi.prototype.setInstanceBasicPorperties=function(C){this.currentInstance.oas2()?this.basicInfoOAS2(C):(console.log("====>",C),this.basicInfoOAS3(C))};SwaggerBootstrapUi.prototype.basicInfoOAS2=function(C){var H=this,U="",W="",G="",X="",Z="",Q=utils$c.getValue(C,"host","",!0);if(H.currentInstance.host=Q,C!=null&&C!=null){if(C.hasOwnProperty("info")){var ee=C.info;if(U=utils$c.getValue(ee,"title","",!0),W=utils$c.getValue(ee,"description","",!0),ee.hasOwnProperty("contact")){var ie=ee.contact;G=utils$c.getValue(ie,"name","",!0)}X=utils$c.getValue(ee,"version","",!0),Z=utils$c.getValue(ee,"termsOfService","",!0)}H.currentInstance.title=U,H.currentInstance.description=marked.parse(W),H.currentInstance.contact=G,H.currentInstance.version=X,H.currentInstance.termsOfService=Z,H.currentInstance.basePath=utils$c.getValue(C,"basePath","/",!0);var te={swagger:C.swagger||"2.0",info:C.info||{},host:C.host||"",basePath:C.basePath||"/",schemes:C.schemes||[],consumes:C.consumes||["*/*"],produces:C.produces||["*/*"]};H.currentInstance.openApiBaseInfo=te}else U=H.currentInstance.title};SwaggerBootstrapUi.prototype.basicInfoOAS3=function(C){var H=this,U="",W="",G="",X="",Z="",Q=utils$c.getValue(C,"host","",!0);if(utils$c.checkUndefined(C)){if(C.hasOwnProperty("servers")&&utils$c.checkUndefined(C.servers)){var ee=C.servers;utils$c.arrNotEmpty(ee)&&(Q=ee[0].url)}if(H.currentInstance.host=Q,C.hasOwnProperty("info")&&utils$c.checkUndefined(C.info)){var ie=C.info;if(U=utils$c.getValue(ie,"title","",!0),W=utils$c.getValue(ie,"description","",!0),ie.hasOwnProperty("contact")){var te=ie.contact;G=utils$c.getValue(te,"name","",!0)}X=utils$c.getValue(ie,"version","",!0),Z=utils$c.getValue(ie,"termsOfService","",!0),H.currentInstance.title=U,H.currentInstance.description=marked.parse(W),H.currentInstance.contact=G,H.currentInstance.version=X,H.currentInstance.termsOfService=Z,H.currentInstance.basePath=utils$c.getValue(C,"basePath","/",!0)}else U=H.currentInstance.title;var ne={openapi:C.openapi||"3.0.3",info:C.info||{},servers:C.servers||[]};H.currentInstance.openApiBaseInfo=ne}};SwaggerBootstrapUi.prototype.deepAdditionalProperties=function(C,H){var U="";if(utils$c.checkUndefined(C)){if(C.hasOwnProperty("additionalProperties")){var W=C.additionalProperties;return this.deepAdditionalProperties(W,H)}else if(C.hasOwnProperty("$ref")){var G=C.$ref,X=new RegExp(utils$c.oasmodel(H),"ig");X.test(G)&&(U=RegExp.$1)}else if(C.hasOwnProperty("items")){var Z=C.items;if(Z.hasOwnProperty("$ref")){var Q=Z.$ref,ee=new RegExp(utils$c.oasmodel(H),"ig");ee.test(Q)&&(U=RegExp.$1)}}}return U};SwaggerBootstrapUi.prototype.analysisDefinitionAsync=function(C,H,U){U?this.analysisDefinitionAsyncOAS2(C,H,U):this.analysisDefinitionAsyncOAS3(C,H,U)};SwaggerBootstrapUi.prototype.analysisDefinitionAsyncOAS2=function(C,H,U){var W=this,G=H.name;if(C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("definitions")){var X=C.definitions;for(var Z in X)if(Z==G){var Q=X[Z];if(utils$c.checkUndefined(Q)&&(H.description=utils$c.propValue("description",Q,""),H.type=utils$c.propValue("type",Q,""),H.title=utils$c.propValue("title",Q,""),Q.hasOwnProperty("required")&&(H.required=Q.required),Q.hasOwnProperty("properties"))){var ee=Q.properties,ie={};for(var te in ee){var ne=ee[te];!ne.hasOwnProperty("readOnly")||ne.readOnly;var ae=new SwaggerBootstrapUiProperty;ne.hasOwnProperty("readOnly")&&(ae.readOnly=ne.readOnly),ae.name=te,ae.originProperty=ne,ae.type=utils$c.propValue("type",ne,"string"),ae.description=utils$c.propValue("description",ne,""),ne.hasOwnProperty("enum")&&(ae.enum=ne.enum,ae.description!=""&&(ae.description+=","),ae.description=ae.description+"\u53EF\u7528\u503C:"+ae.enum.join(",")),ae.type=="string"?ae.example=utils$c.getExample("example",ne,""):ae.example=utils$c.propValue("example",ne,""),ae.format=utils$c.propValue("format",ne,""),ae.required=utils$c.propValue("required",ne,!1),H.required.length>0&&H.required.indexOf(ae.name)>-1&&(ae.required=!0);var oe="";if(ne.hasOwnProperty("type")){var se=ne.type;if(ne.hasOwnProperty("example"))se=="string"?oe=utils$c.getExample("example",ne,""):oe=ne.example;else if(utils$c.checkIsBasicType(se)){if(oe=utils$c.getBasicTypeValue(se),se=="object"&&ne.hasOwnProperty("additionalProperties")){var le=ne.additionalProperties;W.log("------\u89E3\u6790map-=-----------additionalProperties,defName:"+Z);var ce=this.deepAdditionalProperties(le,U);if(utils$c.strNotBlank(ce)){var ue=new Array;ue.push(Z);var de=null;ce!=Z?de=W.findRefDefinition(ce,X,!1,ue,null,U):de=W.findRefDefinition(ce,X,!0,ue,Z,U),oe={additionalProperties1:de},ae.type=ce,ae.refType=ce}else if(le.hasOwnProperty("$ref")){var ve=le.$ref,ge=new RegExp(utils$c.oasmodel(U),"ig");if(ge.test(ve)){var he=RegExp.$1,de=null,ue=new Array;ue.push(Z),he!=Z?de=W.findRefDefinition(he,X,!1,ue,null,U):de=W.findRefDefinition(he,X,!0,ue,Z,U),oe={additionalProperties1:de},W.log("\u89E3\u6790map-=\u5B8C\u6BD5\uFF1A"),W.log(oe),ae.type=he,ae.refType=he}}else if(le.hasOwnProperty("items")){var me=le.items,ve=me.$ref,ge=new RegExp(utils$c.oasmodel(U),"ig");if(ge.test(ve)){var he=RegExp.$1,de=null,ue=new Array;ue.push(Z),he!=Z?de=W.findRefDefinition(he,X,!1,ue,null,U):de=W.findRefDefinition(he,X,!0,ue,Z,U);var _e=new Array;_e.push(de),oe={additionalProperties1:_e},W.log("\u89E3\u6790map-=\u5B8C\u6BD5\uFF1A"),W.log(oe),ae.type="array",ae.refType=he}}}}else if(se=="array"){oe=new Array;var be=ne.items,pe=be.$ref;be.hasOwnProperty("type")&&be.type=="array"&&(pe=be.items.$ref),be.hasOwnProperty("enum")&&(ae.description!=""&&(ae.description+=","),ae.description=ae.description+"\u53EF\u7528\u503C:"+be.enum.join(","));var ge=new RegExp(utils$c.oasmodel(U),"ig");if(ge.test(pe)){var fe=RegExp.$1;ae.refType=fe;var ue=new Array;ue.push(Z),fe!=Z?oe.push(W.findRefDefinition(fe,X,!1,ue,null,U)):oe.push(W.findRefDefinition(fe,X,!0,ue,Z,U))}else ae.refType=be.type}}else if(ne.hasOwnProperty("$ref")){var pe=ne.$ref,ge=new RegExp(utils$c.oasmodel(U),"ig");if(ge.test(pe)){var fe=RegExp.$1;ae.refType=fe;var ue=new Array;ue.push(Z),fe!=Z?oe=W.findRefDefinition(fe,X,!1,ue,null,U):oe=W.findRefDefinition(fe,X,!0,ue,null,U)}}else oe={};ae.value=oe,ae.format!=null&&ae.format!=null&&ae.format!=""&&(ae.type+="("+ae.format+")"),ae.refType!=null&&ae.refType!=""&&ae.type=="string"&&(ae.type=ae.refType),W.checkPropertiesExists(H.properties,ae)||(H.properties.push(ae),ae.readOnly||(ie[te]=oe))}H.value=ie}deepTreeTableRefParameter(H,W,H,H,U),H.init=!0;break}}};SwaggerBootstrapUi.prototype.analysisDefinitionAsyncOAS3=function(C,H,U){var W=this,G=H.name,X={};if(utils$c.checkUndefined(C)&&C.hasOwnProperty("components")){var Z=C.components;if(utils$c.checkUndefined(Z)&&Z.hasOwnProperty("schemas")){var Q=Z.schemas;utils$c.checkUndefined(Q)&&(X=Q)}}if(utils$c.checkUndefined(X)){for(var ee in X)if(ee==G){var ie=X[ee];if(utils$c.checkUndefined(ie)&&(H.description=utils$c.propValue("description",ie,""),H.type=utils$c.propValue("type",ie,""),H.title=utils$c.propValue("title",ie,""),ie.hasOwnProperty("required")&&(H.required=ie.required),ie.hasOwnProperty("properties"))){var te=ie.properties,ne={};for(var ae in te){var oe=te[ae];!oe.hasOwnProperty("readOnly")||oe.readOnly;var se=new SwaggerBootstrapUiProperty;W.validateJSR303(se,oe),oe.hasOwnProperty("readOnly")&&(se.readOnly=oe.readOnly),se.name=ae,se.originProperty=oe,se.type=utils$c.propValue("type",oe,"string"),se.description=utils$c.propValue("description",oe,""),oe.hasOwnProperty("enum")&&(se.enum=oe.enum,se.description!=""&&(se.description+=","),se.description=se.description+"\u53EF\u7528\u503C:"+se.enum.join(",")),se.type=="string"?se.example=utils$c.getExample("example",oe,""):se.example=utils$c.propValue("example",oe,""),se.format=utils$c.propValue("format",oe,""),se.required=utils$c.propValue("required",oe,!1),H.required.length>0&&H.required.indexOf(se.name)>-1&&(se.required=!0);var le="";if(oe.hasOwnProperty("type")){var ce=oe.type;if(oe.hasOwnProperty("example"))ce=="string"?le=utils$c.getExample("example",oe,""):le=oe.example;else if(oe.hasOwnProperty("default"))le=utils$c.propValue("default",oe,"");else if(utils$c.checkIsBasicType(ce)){if(le=utils$c.getBasicTypeValue(ce),ce=="object"&&oe.hasOwnProperty("additionalProperties")){var ue=oe.additionalProperties;W.log("------\u89E3\u6790map-=-----------additionalProperties,defName:"+ee);var de=this.deepAdditionalProperties(ue,U);if(utils$c.strNotBlank(de)){var ve=new Array;ve.push(ee);var ge=null;de!=ee?ge=W.findRefDefinition(de,X,!1,ve,null,U):ge=W.findRefDefinition(de,X,!0,ve,ee,U),le={additionalProperties1:ge},se.type=de,se.refType=de}else if(ue.hasOwnProperty("$ref")){var he=ue.$ref,me=new RegExp(utils$c.oasmodel(U),"ig");if(me.test(he)){var _e=RegExp.$1,ge=null,ve=new Array;ve.push(ee),_e!=ee?ge=W.findRefDefinition(_e,X,!1,ve,null,U):ge=W.findRefDefinition(_e,X,!0,ve,ee,U),le={additionalProperties1:ge},W.log("\u89E3\u6790map-=\u5B8C\u6BD5\uFF1A"),W.log(le),se.type=_e,se.refType=_e}}else if(ue.hasOwnProperty("items")){var be=ue.items,he=be.$ref,me=new RegExp(utils$c.oasmodel(U),"ig");if(me.test(he)){var _e=RegExp.$1,ge=null,ve=new Array;ve.push(ee),_e!=ee?ge=W.findRefDefinition(_e,X,!1,ve,null,U):ge=W.findRefDefinition(_e,X,!0,ve,ee,U);var pe=new Array;pe.push(ge),le={additionalProperties1:pe},W.log("\u89E3\u6790map-=\u5B8C\u6BD5\uFF1A"),W.log(le),se.type="array",se.refType=_e}}}}else if(ce=="array"){le=new Array;var fe=oe.items,ye=fe.$ref;fe.hasOwnProperty("type")&&fe.type=="array"&&(ye=fe.items.$ref),fe.hasOwnProperty("enum")&&(se.description!=""&&(se.description+=","),se.description=se.description+"\u53EF\u7528\u503C:"+fe.enum.join(","));var me=new RegExp(utils$c.oasmodel(U),"ig");if(me.test(ye)){var $e=RegExp.$1;se.refType=$e;var ve=new Array;ve.push(ee),$e!=ee?le.push(W.findRefDefinition($e,X,!1,ve,null,U)):le.push(W.findRefDefinition($e,X,!0,ve,ee,U))}else se.refType=fe.type}}else if(oe.hasOwnProperty("$ref")){var ye=oe.$ref,me=new RegExp(utils$c.oasmodel(U),"ig");if(me.test(ye)){var $e=RegExp.$1;se.refType=$e;var ve=new Array;ve.push(ee),$e!=ee?le=W.findRefDefinition($e,X,!1,ve,null,U):le=W.findRefDefinition($e,X,!0,ve,null,U)}}else le={};se.value=le,se.format!=null&&se.format!=null&&se.format!=""&&(se.type+="("+se.format+")"),se.refType!=null&&se.refType!=""&&se.type=="string"&&(se.type=se.refType),W.checkPropertiesExists(H.properties,se)||(H.properties.push(se),se.readOnly||(ne[ae]=le))}H.value=ne}deepTreeTableRefParameter(H,W,H,H,U),H.init=!0;break}}};SwaggerBootstrapUi.prototype.analysisDefinitionRefModel=function(C){this.currentInstance.oas2()?this.analysisDefinitionRefModelOAS2(C):this.analysisDefinitionRefModelOAS3(C)};SwaggerBootstrapUi.prototype.analysisDefinitionRefModelOAS2=function(C){var H=this;if(C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("definitions")){var U=C.definitions;for(var W in U){var G=G=new SwaggerBootstrapUiDefinition;G.name=W,G.ignoreFilterName=W,H.currentInstance.difArrs.push(G);var X=new SwaggerBootstrapUiTreeTableRefParameter;X.name=W,X.id=md5(W),H.currentInstance.swaggerTreeTableModels[W]=X}}};SwaggerBootstrapUi.prototype.analysisDefinitionRefModelOAS3=function(C){var H=this;if(C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("components")){var U=C.components;if(utils$c.checkUndefined(U)&&U.hasOwnProperty("schemas")){var W=U.schemas;if(utils$c.checkUndefined(W))for(var G in W){var X=X=new SwaggerBootstrapUiDefinition;X.name=G,X.ignoreFilterName=G,H.currentInstance.difArrs.push(X);var Z=new SwaggerBootstrapUiTreeTableRefParameter;Z.name=G,Z.id=md5(G),H.currentInstance.swaggerTreeTableModels[G]=Z}}}};SwaggerBootstrapUi.prototype.analysisDefinitionRefTableModel=function(C,H){var U=this,W=H;if(!H.init){var G=null;this.instances.forEach(de=>{de.id==C&&(G=de)});for(name in G.swaggerTreeTableModels)if(name==H.name&&(W=G.swaggerTreeTableModels[name],!W.init)){W.init=!0;var X=G.getOASDefinitions(),Z=G.oas2();if(utils$c.checkUndefined(X)){for(var Q in X)if(Q==W.name){var ee=X[Q];if(utils$c.checkUndefined(ee)){if(ee.hasOwnProperty("properties")){var ie=ee.properties,te=ee.hasOwnProperty("required")?ee.required:new Array;for(var ne in ie){var ae=ie[ne];ae.refType=U.getSwaggerModelRefType(ae,Z);var oe=new SwaggerBootstrapUiParameter;oe.pid=W.id,oe.readOnly=ae.readOnly,oe.parentTypes.push(H.name),oe.parentTypes.push(Q),oe.name=ne,oe.type=ae.type;var se=utils$c.propValue("format",ae,"");utils$c.strNotBlank(se)&&(oe.type=oe.type+"("+se+")"),ae.type!="array"&&ae.refType!=null&&ae.refType!=null&&ae.refType!=""&&(oe.type=ae.refType),utils$c.checkUndefined(ae.require)?oe.require=ae.required:te.includes(ne)&&(oe.require=!0),oe.example=ae.example,oe.txtValue=ae.example,utils$c.checkUndefined(ae.example)||(oe.example=ae.default,oe.txtValue=ae.default,oe.value=ae.default);var le=utils$c.propValue("description",ae,"");if(ae.hasOwnProperty("enum")&&(le!=""&&(le+=","),le=le+"\u53EF\u7528\u503C:"+ae.enum.join(",")),oe.description=utils$c.replaceMultipLineStr(le),U.validateJSR303(oe,ae),W.params.push(oe),utils$c.checkUndefined(ae.refType)&&!utils$c.checkIsBasicType(ae.refType)){oe.schemaValue=ae.refType,oe.schema=!0;var ce=U.getOriginalDefinitionByName(ae.refType,X);utils$c.checkUndefined(ce)&&(oe.parentTypes.includes(ae.refType)||deepSwaggerModelsTreeTableRefParameter(oe,X,ce,W,U,Z))}else if(ae.type=="array"&&ae.refType!=null&&ae.refType!=null&&ae.refType!=""){oe.schemaValue=ae.refType;var ce=U.getOriginalDefinitionByName(ae.refType,X);utils$c.checkUndefined(ce)&&(oe.parentTypes.includes(ae.refType)||deepSwaggerModelsTreeTableRefParameter(oe,X,ce,W,U,Z))}}}else if(ee.hasOwnProperty("additionalProperties")){var ue=U.getSwaggerModelRefType(ee,Z),oe=new SwaggerBootstrapUiParameter;oe.pid=W.id,oe.readOnly=!0,oe.parentTypes.push(H.name),oe.name="additionalProperty1",oe.type=utils$c.propValue("title",ee,""),utils$c.checkUndefined(ue)&&(oe.type=ue),oe.parentTypes.push(H.name),W.params.push(oe);var ce=U.getOriginalDefinitionByName(ue,X);utils$c.checkUndefined(ce)&&(oe.schemaValue=oe.type,oe.schema=!0,oe.parentTypes.includes(ue)||deepSwaggerModelsTreeTableRefParameter(oe,X,ce,W,U,Z))}else if(ee.hasOwnProperty("enum")){var oe=new SwaggerBootstrapUiParameter;oe.pid=W.id,oe.readOnly=ee.readOnly,oe.parentTypes.push(H.name),oe.parentTypes.push(Q),oe.name=ne,oe.type=ee.type,oe.example=ee.example,le="\u53EF\u7528\u503C:"+ee.enum.join(","),oe.description=utils$c.replaceMultipLineStr(le),W.params.push(oe)}}}}G.refTreeTableModels[name]=W}}return W};SwaggerBootstrapUi.prototype.getOriginalDefinitionByName=function(C,H){var U={name:C};for(var W in H)if(W==C){U.properties=H[W];break}return U};SwaggerBootstrapUi.prototype.getSwaggerModelRefArray=function(C,H){var U=!1;if(C.hasOwnProperty("type")){var W=C.type;W=="array"&&(U=!0)}return U};SwaggerBootstrapUi.prototype.getSwaggerModelRefType=function(C,H){var U=null;if(C.hasOwnProperty("type")){var W=C.type;if(utils$c.checkIsBasicType(W)){if(W=="object")if(C.hasOwnProperty("additionalProperties")){var G=C.additionalProperties,X=this.deepAdditionalProperties(G,H);if(utils$c.strNotBlank(X))U=X;else if(G.hasOwnProperty("$ref")){var Z=G.$ref,Q=new RegExp(utils$c.oasmodel(H),"ig");Q.test(Z)&&(U=RegExp.$1)}else if(G.hasOwnProperty("items")){var ee=G.items,Z=ee.$ref,Q=new RegExp(utils$c.oasmodel(H),"ig");Q.test(Z)&&(U=RegExp.$1)}}else U=W}else if(W=="array"){var ie=C.items;if(utils$c.checkUndefined(ie)){var te=ie.$ref;ie.hasOwnProperty("type")&&ie.type=="array"&&(te=ie.items.$ref);var Q=new RegExp(utils$c.oasmodel(H),"ig");Q.test(te)?U=RegExp.$1:U=ie.type}}}else if(C.hasOwnProperty("$ref")){var te=C.$ref,Q=new RegExp(utils$c.oasmodel(H),"ig");Q.test(te)&&(U=RegExp.$1)}return U};function deepSwaggerModelsTreeTableRefParameter(C,H,U,W,G,X){if(utils$c.checkUndefined(H)){for(var Z in H)if(Z==U.name){var Q=H[Z];if(utils$c.checkUndefined(Q)){let ce=utils$c.propValue("description",Q,null);if(ce!=null&&(C.description=ce),Q.hasOwnProperty("properties")){var ee=Q.properties,ie=Q.hasOwnProperty("required")?Q.required:new Array;for(var te in ee){var ne=ee[te];ne.refType=G.getSwaggerModelRefType(ne,X);var ae=new SwaggerBootstrapUiParameter;ae.pid=C.id,ae.readOnly=ne.readOnly,C.parentTypes.forEach(function(ue){ae.parentTypes.push(ue)}),ae.parentTypes.push(Z),ae.level=C.level+1,ae.name=te,ae.type=ne.type,ne.type!="array"&&ne.refType!=null&&ne.refType!=null&&ne.refType!=""&&(ae.type=ne.refType),utils$c.checkUndefined(ne.require)?ae.require=ne.required:ie.includes(te)&&(ae.require=!0),ae.example=ne.example,ae.txtValue=ne.example,utils$c.checkUndefined(ne.example)||(ae.example=ne.default,ae.txtValue=ne.default,ae.value=ne.default);var oe=utils$c.propValue("description",ne,"");if(ne.hasOwnProperty("enum")&&(oe!=""&&(oe+=","),oe=oe+"\u53EF\u7528\u503C:"+ne.enum.join(",")),ae.description=utils$c.replaceMultipLineStr(oe),C.children==null&&(C.children=new Array),C.children.push(ae),utils$c.checkUndefined(ne.refType)&&!utils$c.checkIsBasicType(ne.refType)){ae.schemaValue=ne.refType,ae.schema=!0;var se=G.getOriginalDefinitionByName(ne.refType,H);ae.parentTypes.includes(ne.refType)||deepSwaggerModelsTreeTableRefParameter(ae,H,se,W,G,X)}else if(ne.type=="array"&&ne.refType!=null&&ne.refType!=null&&ne.refType!=""){ae.schemaValue=ne.refType;var se=G.getOriginalDefinitionByName(ne.refType,H);ae.parentTypes.includes(ne.refType)||deepSwaggerModelsTreeTableRefParameter(ae,H,se,W,G,X)}}}else if(Q.hasOwnProperty("additionalProperties")){var le=G.getSwaggerModelRefType(Q,X),ae=new SwaggerBootstrapUiParameter;ae.pid=W.id,ae.readOnly=!0,ae.parentTypes.push(W.name),ae.name="additionalProperty1",ae.type=utils$c.propValue("title",Q,""),utils$c.checkUndefined(le)&&(ae.type=le),C.children==null&&(C.children=new Array),C.children.push(ae);var U=G.getOriginalDefinitionByName(le,H);utils$c.checkUndefined(U)&&(ae.schemaValue=ae.type,ae.schema=!0,ae.parentTypes.includes(le)||deepSwaggerModelsTreeTableRefParameter(ae,H,U,W,G,X))}}}}}SwaggerBootstrapUi.prototype.analysisDefinition=function(C){var H=this;if(this.currentInstance.swaggerData=C,H.analysisDefinitionRefModel(C),C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("tags")){var U=C.tags,W=[];if(U.forEach(function(oe){var se=utils$c.getValue(oe,"description","",!0),le=null,ce=null;if(H.currentInstance.oas2())le=utils$c.getValue(oe,"x-author","",!0),ce=utils$c.getValue(oe,"x-order","",!0);else{if(utils$c.checkUndefined(oe.extensions)){var ue=oe.extensions;le=utils$c.getValue(ue,"x-author","",!0),ce=utils$c.getValue(ue,"x-order","",!0)}utils$c.strBlank(ce)&&(ce=utils$c.getValue(oe,"x-order","",!0))}var de=new SwaggerBootstrapUiTag(utils$c.toString(oe.name,"").replace(/\//g,"-"),se);utils$c.strNotBlank(le)&&(de.author=le),utils$c.strNotBlank(ce)&&(de.order=parseInt(ce)),W.push(de)}),utils$c.arrNotEmpty(W))W.sort((oe,se)=>oe.order-se.order);else{var G=new SwaggerBootstrapUiTag("default","default");W.push(G)}H.currentInstance.tags=W}if(C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("paths")){var X=C.paths,Z=utils$c.appendBasePath(X,H.currentInstance.basePath),ne=new Date().getTime(),Q=["get","post","put","delete","patch","options","trace","head","connect"];if(index$d.forEachOf(X,function(se,le,ce){var ue=null;Q.forEach(function(de){if(se.hasOwnProperty(de)&&(ue=se[de],ue!=null)){var ve=H.createApiInfoInstance(le,de,ue,Z);H.currentInstance.paths.push(ve),ve.hashCollections.forEach(function(ge){H.currentInstance.pathsDictionary[ge]=ve}),H.methodCountAndDown(de.toUpperCase())}})}),H.settings.enableFilterMultipartApis){H.currentInstance.paths.forEach(function(se){var le=H.currentInstance.pathFilters[se.url];if(le==null||le==null){var ce=new SwaggerBootstrapUiApiFilter;ce.methods.push(se),H.currentInstance.pathFilters[se.url]=ce}else le.methods.push(se),H.currentInstance.pathFilters[se.url]=le});var ee=new Array;H.log(H.currentInstance.pathFilters);for(var ie in H.currentInstance.pathFilters){var te=H.currentInstance.pathFilters[ie];ee=ee.concat(te.api(H.settings.enableFilterMultipartApiMethodType))}H.log("\u91CD\u65B0\u8D4B\u503C\u3002\u3002\u3002\u3002\u3002"),H.currentInstance.paths=ee}}H.readSecurityContextSchemes(C),H.currentInstance.clearOAuth2(),H.currentInstance.tags.forEach(function(oe){if(H.currentInstance.firstLoad)H.currentInstance.paths.forEach(function(ce){ce.tags.forEach(function(ue){ue==oe.name&&(utils$c.strNotBlank(ce.author)||utils$c.strNotBlank(oe.author)&&(ce.author=oe.author),oe.childrens.push(ce))})});else{var se=!1,le=!1;H.currentInstance.paths.forEach(ce=>{ce.tags.forEach(ue=>{ue==oe.name&&(H.currentInstance.cacheInstance.cacheApis.includes(ce.id)||(se=!0,ce.hasNew=!0),utils$c.strNotBlank(ce.author)||utils$c.strNotBlank(oe.author)&&(ce.author=oe.author),oe.childrens.push(ce))})}),se?oe.hasNew=!0:(H.currentInstance.paths.forEach(function(ce){ce.tags.forEach(function(ue){ue==oe.name&&ce.hasChanged&&(le=!0)})}),oe.hasChanged=le)}oe.childrens.sort(function(ce,ue){return ce.order-ue.order})}),H.currentInstance.firstLoad?H.cacheApis.push(H.currentInstance.cacheInstance):H.cacheApis.length>0&&H.cacheApis.forEach(function(oe){oe.id==H.currentInstance.cacheInstance.id&&(oe.updateApis=H.currentInstance.cacheInstance.updateApis)}),H.storeCacheApis(),H.log("\u5F00\u59CB\u89E3\u6790refTreetableparameters\u5C5E\u6027................."),H.log(new Date().toTimeString());var ne=new Date().getTime();if(H.settings.enableSwaggerBootstrapUi){var ae=C.swaggerBootstrapUi;utils$c.checkUndefined(ae)&&utils$c.checkUndefined(ae.markdownFiles)&&ae.markdownFiles.forEach(function(oe){let se=md5(oe.title);H.currentInstance.markdownFiles.push({...oe,id:se})})}H.log("\u89E3\u6790refTreetableparameters\u7ED3\u675F,\u8017\u65F6\uFF1A"+(new Date().getTime()-ne)),H.log(new Date().toTimeString())};SwaggerBootstrapUi.prototype.readSecurityContextSchemes=function(C){if(this.currentInstance.oas2()){if(C!=null&&typeof C<"u"&&C!=null&&C.hasOwnProperty("securityDefinitions")){var H=C.securityDefinitions;this.readSecurityContextSchemesCommon(H)}}else if(utils$c.checkUndefined(C)&&C.hasOwnProperty("components")){var U=C.components;if(utils$c.checkUndefined(U)&&U.hasOwnProperty("securitySchemes")){var H=U.securitySchemes;this.readSecurityContextSchemesCommon(H)}}};SwaggerBootstrapUi.prototype.readSecurityContextSchemesCommon=function(C){var H=this;if(utils$c.checkUndefined(C)){var U=H.getGlobalSecurityInfos(),W=new Array;for(var G in C){var X=C[G];if(X.type=="oauth2")if(this.currentInstance.oas2()){var Z=new SwaggerBootstrapUiOAuth2(utils$c.getValue(X,"flow","",!0),utils$c.getValue(X,"tokenUrl","",!0),utils$c.getValue(X,"authorizationUrl","",!0),H.currentInstance.id);Z.sync(),H.currentInstance.oauths=Z}else for(var Q in X.flows){var Z=new SwaggerBootstrapUiOAuth2(Q,X.flows[Q].tokenUrl||"",X.flows[Q].authorizationUrl||"",H.currentInstance.id);Z.sync(),H.currentInstance.oauths=Z}else{var ee=new SwaggerBootstrapUiSecurityDefinition;ee.key=G,ee.type=X.type,ee.name=X.name,ee.in=X.in,ee.schema=utils$c.propValue("scheme",X,null),utils$c.strBlank(X.name)&&(ee.name=G,ee.in="header"),U!=null&&U!=null&&U.forEach(function(te){te.key==ee.key&&te.name==ee.name&&(ee.value=te.value)});var ie=ee.key+ee.type+ee.in+ee.name+ee.schema;ee.id=md5(ie),W.push(ee)}}W.length>0?(H.currentInstance.securityArrs=W,H.log("\u89E3\u6790securityDefinitions\u5C5E\u6027--------------------------------------------------------------->")):H.clearSecuritys()}else H.clearSecuritys()};function SwaggerBootstrapUiOAuth2(C,H,U,W){this.grantType=C,this.name="Authorization",this.username=null,this.password=null,this.redirectUri=null,this.granted=!1,this.tokenUrl=H,this.authorizeUrl=U,this.clientId="",this.clientSecret="",this.accessToken=null,this.tokenType=null,this.state="OAuth"+W}SwaggerBootstrapUiOAuth2.prototype.syncOAuth=function(){var C=this;if(window.localStorage){var H=C.state,U=window.localStorage.getItem(H);if(utils$c.strNotBlank(U)){var W=utils$c.json5parse(U);this.accessToken=utils$c.getValue(W,"tokenType","Bearer",!0)+" "+W.accessToken,this.tokenType=W.tokenType,this.granted=!0}}};SwaggerBootstrapUiOAuth2.prototype.sync=function(){if(this.syncOAuth(),window.localStorage){var C="SELF"+this.state,H=window.localStorage.getItem(C);if(utils$c.strNotBlank(H)){var U=utils$c.json5parse(H);this.grantType==U.grantType&&(this.granted=U.granted,utils$c.strBlank(this.clientId)&&(this.clientId=U.clientId),utils$c.strBlank(this.clientSecret)&&(this.clientSecret=U.clientSecret),utils$c.strBlank(this.redirectUri)&&(this.redirectUri=U.redirectUri),utils$c.strBlank(this.username)&&(this.username=U.username),utils$c.strBlank(this.password)&&(this.password=U.password),utils$c.strBlank(this.accessToken)&&(this.accessToken=U.accessToken),utils$c.strBlank(this.tokenType)&&(this.tokenType=U.tokenType)),window.localStorage.setItem(C,utils$c.json5stringify(this))}else window.localStorage.setItem(C,utils$c.json5stringify(this))}};SwaggerBootstrapUiOAuth2.prototype.clear=function(){this.username=null,this.password=null,this.accessToken=null,this.redirectUri=null,this.granted=!1,this.clientId="",this.clientSecret="",this.accessToken=null,this.tokenType=null;var C="SELF"+this.state;window.localStorage.setItem(C,utils$c.json5stringify(this))};SwaggerBootstrapUi.prototype.clearSecuritys=function(){this.localStore.setItem(constants$1.globalSecurityParamPrefix,[])};SwaggerBootstrapUi.prototype.processModels=function(){var C=this;if(utils$c.checkUndefined(this.currentInstance.refTreeTableModels))for(var H in C.currentInstance.refTreeTableModels){C.currentInstance.modelNames.push(H);var U=C.currentInstance.refTreeTableModels[H],W=new SwaggerBootstrapUiModel(U.id,H);utils$c.arrNotEmpty(U.params)&&U.params.forEach(function(G){var X={...G,pid:"-1"};W.data.push(X),G.schema&&deepTreeTableSchemaModel(W,C.currentInstance.refTreeTableModels,G,X)}),C.currentInstance.models.push(W)}};function deepTreeTableSchemaModel(C,H,U,W){if(utils$c.checkUndefined(U.schemaValue)){var G=H[U.schemaValue];utils$c.checkUndefined(G)&&(W.parentTypes.push(U.schemaValue),utils$c.arrNotEmpty(G.params)&&G.params.forEach(function(X){var Z={childrenTypes:X.childrenTypes,def:X.def,description:X.description,enum:X.enum,example:X.example,id:X.id,ignoreFilterName:X.ignoreFilterName,in:X.in,level:X.level,name:X.name,parentTypes:X.parentTypes,pid:X.pid,readOnly:X.readOnly,require:X.require,schema:X.schema,schemaValue:X.schemaValue,show:X.show,txtValue:X.txtValue,type:X.type,validateInstance:X.validateInstance,validateStatus:X.validateStatus,value:X.value};Z.pid=U.id,Z.parentParam=U,C.data.push(Z),Z.schema&&W.parentTypes.indexOf(Z.schemaValue)==-1&&deepTreeTableSchemaModel(C,H,Z,W)}))}}SwaggerBootstrapUi.prototype.createDescriptionElement=function(){};SwaggerBootstrapUi.prototype.selectInstanceByGroupId=function(C){var H=this,U=null;return H.instances.forEach(function(W){if(W.id==C){U=W;return}}),U};SwaggerBootstrapUi.prototype.getI18n=function(){return this.i18nInstance};SwaggerBootstrapUi.prototype.createDetailMenu=function(C){var H=this,U=[];H.log(H.currentInstance);var W=H.currentInstance.name,G=H.currentInstance.id;if(U.push({groupName:W,groupId:G,key:"kmain",name:this.getI18n().menu.home,i18n:"home",component:"Main",icon:"icon-home",path:"home"}),(utils$c.arrNotEmpty(H.currentInstance.securityArrs)||utils$c.checkUndefined(H.currentInstance.oauths))&&U.push({groupName:W,groupId:G,key:"Authorize"+md5(W),name:"Authorize",tabName:"Authorize("+W+")",component:"Authorize",icon:"icon-authenticationsystem",path:"Authorize/"+W}),H.settings.enableSwaggerModels){var X=utils$c.getValue(H.settings,"swaggerModelName","Swagger Models",!0);U.push({groupName:W,groupId:G,key:"swaggerModel"+md5(W),name:X,component:"SwaggerModels",tabName:X+"("+W+")",icon:"icon-modeling",path:"SwaggerModels/"+W})}H.settings.enableDocumentManage&&U.push({groupName:W,groupId:G,key:"documentManager"+md5(W),i18n:"manager",name:this.getI18n().menu.manager,icon:"icon-zdlxb",path:"documentManager",children:[{groupName:W,groupId:G,key:"globalParameters"+md5(W),name:this.getI18n().menu.globalsettings,i18n:"globalsettings",tabName:this.getI18n().menu.globalsettings+"("+W+")",component:"GlobalParameters",path:"GlobalParameters-"+W},{groupName:W,groupId:G,key:"OfficelineDocument"+md5(W),name:this.getI18n().menu.officeline,i18n:"officeline",tabName:this.getI18n().menu.officeline+"("+W+")",component:"OfficelineDocument",path:"OfficelineDocument-"+W},{groupName:W,groupId:G,key:"Settings"+md5(W),name:this.getI18n().menu.selfSettings,i18n:"selfSettings",component:"Settings",path:"Settings"}]}),utils$c.arrNotEmpty(H.currentInstance.markdownFiles)&&H.currentInstance.markdownFiles.forEach(ee=>{var ie=ee.id.substr(0,10),te={groupName:W,groupId:G,key:ee.id,name:ee.name,i18n:"other",icon:"icon-APIwendang",path:W+"-"+ie+"-omd",children:[]};utils$c.arrNotEmpty(ee.children)&&ee.children.forEach(ne=>{te.children.push({groupName:W,groupId:G,key:ne.id,component:"OtherMarkdown",name:ne.title,path:ne.id})}),U.push(te)}),H.currentInstance.tags.forEach(function(ee){var ie=ee.childrens.length,te="";if(ie==0)H.settings.showTagStatus?te=ee.name+"("+ee.description+")":te=ee.name,U.push({groupName:W,groupId:G,key:md5(te),name:te,icon:"icon-APIwendang",path:""});else{H.settings.showTagStatus?te=ee.name+"("+ee.description+")":te=ee.name;var ne={groupName:W,groupId:G,key:md5(te),name:te,icon:"icon-APIwendang",path:W+"/"+ee.name,hasNew:ee.hasNew||ee.hasChanged,num:null,children:[]};ee.childrens.forEach(function(ae){var oe={groupName:W,groupId:G,key:md5(W+ae.summary+ae.operationId),name:ae.summary,description:ae.description,path:ae.operationId,component:"ApiInfo",hasNew:ae.hasNew||ae.hasChanged,deprecated:ae.deprecated,url:ae.url,method:ae.methodType.toUpperCase(),menuClass:"knife4j-menu-left-style"};ne.children.push(oe)}),ne.num=ne.children.length,U.push(ne)}});var Z=utils$c.formatter(U);C&&(H.globalMenuDatas=H.globalMenuDatas.concat(Z)),this.menuData=Z;const Q=useGlobalsStore();Q.setMenuData(Z),Q.setGitVersion(this.settings.enableVersion),H.log("\u83DC\u5355\u521D\u59CB\u5316\u5B8C\u6210...")};SwaggerBootstrapUi.prototype.checkPropertiesExists=function(C,H){var U=!1;return C!=null&&C!=null&&C.length>0&&H!=null&&H!=null&&C.forEach(function(W){W.name==H.name&&W.in==H.in&&W.type==H.type&&(U=!0)}),U};SwaggerBootstrapUi.prototype.storeCacheApis=function(){var C=this;C.log("\u7F13\u5B58\u5BF9\u8C61...storeCacheApis-->"),C.localStore.setItem(constants$1.globalGitApiVersionCaches,C.cacheApis)};SwaggerBootstrapUi.prototype.initApiInfoAsync=function(C){C.oas2?this.initApiInfoAsyncOAS2(C):this.initApiInfoAsyncOAS3(C)};SwaggerBootstrapUi.prototype.initApiInfoAsyncOAS2=function(C){var H=this,U=C.originalApiInfo;if(!C.init){if(U.hasOwnProperty("parameters")){var W=U.parameters;W.forEach(function(Ge){var qe=utils$c.propValue("name",Ge,""),Ke=utils$c.propValue("in",Ge,"");C.includeParameters!=null?utils$c.filterIncludeParameters(Ke,qe,C.includeParameters)&&H.assembleParameter(Ge,C):utils$c.filterIgnoreParameters(Ke,qe,C.ignoreParameters)&&H.assembleParameter(Ge,C)})}var G=null,X=!1;if(typeof U.responses<"u"&&U.responses!=null){var Z=U.responses,Q=0;for(var ee in Z){var ie=new SwaggerBootstrapUiResponseCode,te=Z[ee];ie.code=ee,ie.oas2=C.oas2,ie.description=te.description;var ne=null;if(te.hasOwnProperty("schema")&&utils$c.checkUndefined(te.schema)){var ae=te.schema,oe=new RegExp("#/definitions/(.*)$","ig");if(ae.hasOwnProperty("$ref")){if(oe.test(ae.$ref)){var se=RegExp.$1;C.responseParameterRefName=se,ie.responseParameterRefName=se,G=se,ne=se,ie.schema=se}}else if(ae.hasOwnProperty("type")){var le=ae.type;if(le=="array"){if(X=!0,ae.hasOwnProperty("items")){var ce=ae.items,ue=ce.$ref;if(ce.hasOwnProperty("type")&&ce.type=="array"&&(ue=ce.items.$ref),oe.test(ue)){var se=RegExp.$1;C.responseParameterRefName=se,ie.responseParameterRefName=se,G=se,ne=se,ie.schema=se}}}else if(ae.hasOwnProperty("properties")){ie.schema=le;var de=new SwaggerBootstrapUiDefinition;de.name=C.id,de.description="\u81EA\u5B9A\u4E49Schema",G=de.name,ne=de.name,ie.responseParameterRefName=de.name;var ve=ae.properties,ge={};for(var he in ve){var me=new SwaggerBootstrapUiProperty;me.name=he;var _e=ve[he];me.originProperty=_e,me.type=utils$c.propValue("type",_e,"string"),me.description=utils$c.propValue("description",_e,""),me.example=utils$c.getExample("example",_e,""),me.format=utils$c.propValue("format",_e,""),me.required=utils$c.propValue("required",_e,!1),de.required.length>0&&de.required.includes(me.name)&&(me.required=!0);var be="";if(_e.hasOwnProperty("type")){var pe=_e.type;_e.hasOwnProperty("example")?pe=="string"?be=utils$c.getExample("example",_e,""):be=_e.example:utils$c.checkIsBasicType(pe)&&(be=utils$c.getBasicTypeValue(pe))}me.value=be,me.format!=null&&me.format!=null&&me.format!=""&&(me.type+="("+me.format+")"),de.properties.push(me),ge[he]=be}de.value=ge,de.init=!0,H.currentInstance.difArrs.push(de)}else if(utils$c.checkIsBasicType(le)){var fe=le;C.responseText=le,C.responseBasicType=!0,ie.responseText=le,ie.responseBasicType=!0;var ye=utils$c.propValue("format",ae,"");utils$c.strNotBlank(ye)&&(fe=fe+"("+ye+")"),ie.schemaTitle=fe}}}if(ne!=null){var $e=H.getDefinitionByName(ne,C.oas2);if($e!=null){if(X){var we=new Array;we.push($e.value),ie.responseValue=utils$c.json5stringifyFormat(we,null," "),ie.responseJson=we}else ie.responseValue=utils$c.json5stringifyFormat($e.value,null," "),ie.responseJson=$e.value;if($e.hasOwnProperty("properties")){var Se=$e.properties;Se.forEach(function(Ge){var qe=new SwaggerBootstrapUiParameter;if(qe.name=Ge.name,!utils$c.checkParamArrsExists(ie.responseParameters,qe)){if(ie.responseParameters.push(qe),qe.description=utils$c.replaceMultipLineStr(Ge.description),Ge.type==null||Ge.type==""){if(Ge.refType!=null&&!utils$c.checkIsBasicType(Ge.refType)){qe.schemaValue=Ge.refType,qe.schema=!0,qe.type=Ge.refType;var Ke=H.getDefinitionByName(Ge.refType,C.oas2);deepResponseRefParameter(ie,H,Ke,qe),qe.parentTypes.push(Ge.refType),deepTreeTableResponseRefParameter(ie,H,Ke,qe)}}else if(qe.type=Ge.type,!utils$c.checkIsBasicType(Ge.type))if(Ge.refType!=null){if(!utils$c.checkIsBasicType(Ge.refType)){qe.schemaValue=Ge.refType,qe.schema=!0,Ge.type!="array"&&(qe.type=Ge.refType);var Ke=H.getDefinitionByName(Ge.refType,C.oas2);deepResponseRefParameter(ie,H,Ke,qe),qe.parentTypes.push(Ge.refType),deepTreeTableResponseRefParameter(ie,H,Ke,qe)}}else{qe.schemaValue=Ge.type,qe.schema=!0,qe.type=Ge.type;var Ke=H.getDefinitionByName(Ge.type,C.oas2);deepResponseRefParameter(ie,H,Ke,qe),qe.parentTypes.push(Ge.type),deepTreeTableResponseRefParameter(ie,H,Ke,qe)}}})}}}if(ie.schema!=null&&ie.schema!=null&&(Q=Q+1),te.hasOwnProperty("headers")){var Te=te.headers;ie.responseHeaderParameters=new Array;for(var xe in Te){var ke={...Te[xe],name:xe,id:md5(xe),pid:"-1"};ie.responseHeaderParameters.push(ke)}ee=="200"&&(C.responseHeaderParameters=ie.responseHeaderParameters)}C.responseCodes.push(ie)}C.multipartResponseSchemaCount=Q,Q>1&&(C.multipartResponseSchema=!0)}if(G!=null&&!C.multipartResponseSchema){for(var Ie=0;Ie<H.currentInstance.difArrs.length;Ie++){var Ae=H.currentInstance.difArrs[Ie];if(Ae.name==G)if(Ae.init||H.analysisDefinitionAsync(H.currentInstance.swaggerData,Ae),X){var we=new Array;we.push(Ae.value),C.responseValue=utils$c.json5stringifyFormat(we,null," "),C.responseJson=we}else C.responseValue=utils$c.json5stringifyFormat(Ae.value,null," "),C.responseJson=Ae.value}var $e=H.getDefinitionByName(G,C.oas2);if($e!=null&&$e.hasOwnProperty("properties")){var Se=$e.properties;Se.forEach(function(Ke){var Ee=new SwaggerBootstrapUiParameter;if(Ee.name=Ke.name,!utils$c.checkParamArrsExists(C.responseParameters,Ee)){if(C.responseParameters.push(Ee),Ee.description=utils$c.replaceMultipLineStr(Ke.description),Ke.type==null||Ke.type==""){if(Ke.refType!=null&&!utils$c.checkIsBasicType(Ke.refType)){Ee.schemaValue=Ke.refType,Ee.schema=!0,Ee.type=Ke.refType;var Ce=H.getDefinitionByName(Ke.refType,C.oas2);deepResponseRefParameter(C,H,Ce,Ee),Ee.parentTypes.push(Ke.refType),deepTreeTableResponseRefParameter(C,H,Ce,Ee)}}else if(Ee.type=Ke.type,!utils$c.checkIsBasicType(Ke.type))if(Ke.refType!=null){if(!utils$c.checkIsBasicType(Ke.refType)){Ee.schemaValue=Ke.refType,Ke.type!="array"&&(Ee.type=Ke.refType);var Ce=H.getDefinitionByName(Ke.refType,C.oas2);deepResponseRefParameter(C,H,Ce,Ee),Ee.parentTypes.push(Ke.refType),deepTreeTableResponseRefParameter(C,H,Ce,Ee)}}else{Ee.schemaValue=Ke.type,Ee.type=Ke.type;var Ce=H.getDefinitionByName(Ke.type,C.oas2);deepResponseRefParameter(C,H,Ce,Ee),Ee.parentTypes.push(Ke.type),deepTreeTableResponseRefParameter(C,H,Ce,Ee)}}})}}if(C.parameters!=null){var Me=0,Fe=null;if(C.parameters.forEach(function(Ge){Ge.in=="body"&&(Me=Me+1,Ge.txtValue!=null&&Ge.txtValue!=""&&(Fe=Ge.txtValue,Ge.schemaValue))}),Me==1&&(C.requestValue=Fe,utils$c.arrNotEmpty(C.consumes))){var Be=C.consumes.filter(Ge=>utils$c.strNotBlank(Ge));if(utils$c.arrNotEmpty(Be)){var Ne=Be.some(Ge=>Ge.toLowerCase().indexOf("xml")>-1);if(Ne&&utils$c.strNotBlank(Fe)){var Ve=utils$c.json5parse(Fe);C.requestValue=Ve,C.xmlRequest=!0}}}if(U.consumes!=null&&U.consumes!=null&&U.consumes.length>0){var Le=U.consumes[0];if(Le.indexOf("multipart/form-data")>=0)C.contentType=Le,C.contentValue="form-data";else if(Le.indexOf("text/plain")>=0)C.contentType=Le,C.contentValue="raw",C.contentShowValue="Text(text/plain)",C.contentMode="text";else if(Le.indexOf("application/xml")>=0)C.contentType=Le,C.contentValue="raw",C.contentShowValue="XML(application/xml)",C.contentMode="xml";else{var De="application/x-www-form-urlencoded;charset=UTF-8",Je="x-www-form-urlencoded";if(utils$c.arrNotEmpty(C.parameters)){for(var Ie=0;Ie<C.parameters.length;Ie++){var ze=C.parameters[Ie];if(ze.in=="body")if(ze.schemaValue=="MultipartFile"||ze.type=="file"){De="multipart/form-data",Je="form-data";break}else{Je="raw",De="application/json",Le.indexOf("application/json")>=0&&(De=Le),C.contentMode="json";break}else if(ze.schemaValue=="MultipartFile"||ze.type=="file"){De="multipart/form-data",Je="form-data";break}}C.contentType=De,C.contentValue=Je}else Le.indexOf("application/json")>=0?(C.contentType=Le,C.contentValue="raw",C.contentShowValue="JSON(application/json)",C.contentMode="json"):(C.contentType=Le,C.contentValue=Je)}}else{for(var De="application/x-www-form-urlencoded;charset=UTF-8",Je="x-www-form-urlencoded",Ie=0;Ie<C.parameters.length;Ie++){var ze=C.parameters[Ie];if(ze.in=="body")if(ze.schemaValue=="MultipartFile"||ze.type=="file"){De="multipart/form-data",Je="form-data";break}else{Je="raw",De="application/json",C.contentMode="json";break}else if(ze.schemaValue=="MultipartFile"||ze.type=="file"){De="multipart/form-data",Je="form-data";break}}C.contentType=De,C.contentValue=Je}}else console.log("123"),C.contentType="application/x-www-form-urlencoded",C.contentValue="x-www-form-urlencoded";C.init=!0}};SwaggerBootstrapUi.prototype.initApiInfoAsyncOAS3=function(C){var H=this,U=C.originalApiInfo;if(!C.init){let nt=H.currentInstance.swaggerData.components.parameters,tt=null;if(U.hasOwnProperty("parameters")){var W=U.parameters;W.forEach(function(at){var St=utils$c.propValue("name",at,""),st=utils$c.propValue("in",at,"");let it=utils$c.propValue("$ref",at,"");if(utils$c.strNotBlank(it)){let pt=utils$c.getRefParameterName(it);if(utils$c.strNotBlank(pt)&&utils$c.checkUndefined(nt)){let wt=nt[pt];utils$c.checkUndefined(wt)&&H.assembleParameterOAS3(wt,C,[])}}else C.includeParameters!=null?utils$c.filterIncludeParameters(st,St,C.includeParameters)&&H.assembleParameterOAS3(at,C,[]):utils$c.filterIgnoreParameters(st,St,C.ignoreParameters)&&H.assembleParameterOAS3(at,C,[])})}if(U.hasOwnProperty("requestBody")){var G=U.requestBody;if(utils$c.checkUndefined(G)&&G.hasOwnProperty("content")&&utils$c.checkUndefined(G.content)){var X=G.content;for(var Z in X){var Q=X[Z];if(utils$c.checkUndefined(Q)&&Q.hasOwnProperty("schema")){var ee=Q.schema;if(utils$c.arrNotEmpty(C.consumes))C.consumes.includes(Z)||C.consumes.push(Z);else{var ie=[];ie.push(Z),C.consumes=ie}if(ee.hasOwnProperty("properties")&&utils$c.checkUndefined(ee.properties)){var te=ee.properties,ne=[];ee.hasOwnProperty("required")&&utils$c.checkUndefined(ee.required)&&(ne=ee.required);for(var ae in te){var oe=te[ae];oe.name=ae,oe.in="query",H.assembleParameterOAS3(oe,C,ne)}}else{var se=H.getSwaggerModelRefArray(ee,C.oas2),le=H.getSwaggerModelRefType(ee,C.oas2);if(utils$c.checkUndefined(le)){var ce=null,ue=utils$c.camelCase(le);se?(ce={type:"array",items:{originalRef:le,$ref:"#/components/schemas/"+le}},ue=ue+"s"):ce={originalRef:le,$ref:"#/components/schemas/"+le};var de={in:"body",description:le,name:ue,required:!0,schema:ce};le=="object"&&(de=Object.assign({},de,{default:"{}"})),H.assembleParameterOAS3(de,C,[])}}}}if(utils$c.arrNotEmpty(C.consumes)){var ve=C.consumes.filter(at=>at.indexOf("xml")>-1);utils$c.arrNotEmpty(ve)&&(C.consumes=["application/xml"])}}}var ge=null,he=!1;if(typeof U.responses<"u"&&U.responses!=null){var me=U.responses,_e=0;for(var be in me){var pe=new SwaggerBootstrapUiResponseCode,fe=me[be];pe.oas2=C.oas2,pe.code=be,pe.description=fe.description;var ye=null;if(fe.hasOwnProperty("content")&&utils$c.checkUndefined(fe.content)){var $e=fe.content;for(var we in $e){var Se=$e[we];if(Se.hasOwnProperty("schema")&&utils$c.checkUndefined(Se.schema)){C.produces.includes(we)||(C.produces.push(we),C.produces[0]==="*/*"&&C.produces.shift());var ee=Se.schema;tt=new Knife4jOAS3ResponseExampleReader(ee);var Te=new RegExp(utils$c.oasmodel(C.oas2),"ig");if(ee.hasOwnProperty("$ref")){if(Te.test(ee.$ref)){var xe=RegExp.$1;C.responseParameterRefName=xe,pe.responseParameterRefName=xe,ge=xe,ye=xe,pe.schema=xe}}else if(ee.hasOwnProperty("type")){var ke=ee.type;if(ke=="array"){if(he=!0,ee.hasOwnProperty("items")){var Ie=ee.items,Ae=Ie.$ref;if(Ie.hasOwnProperty("type")&&Ie.type=="array"&&(Ae=Ie.items.$ref),Te.test(Ae)){var xe=RegExp.$1;C.responseParameterRefName=xe,pe.responseParameterRefName=xe,ge=xe,ye=xe,pe.schema=xe}}}else if(ee.hasOwnProperty("properties")){pe.schema=ke;var Me=new SwaggerBootstrapUiDefinition;Me.name=C.id,Me.description="\u81EA\u5B9A\u4E49Schema",ge=Me.name,ye=Me.name,pe.responseParameterRefName=Me.name;var Fe=ee.properties,Be={};for(var Ne in Fe){var Ve=new SwaggerBootstrapUiProperty;Ve.name=Ne;var Le=Fe[Ne];Ve.originProperty=Le,Ve.type=utils$c.propValue("type",Le,"string"),Ve.description=utils$c.propValue("description",Le,""),Ve.example=utils$c.getExample("example",Le,""),Ve.format=utils$c.propValue("format",Le,""),Ve.required=utils$c.propValue("required",Le,!1),Me.required.length>0&&Me.required.includes(Ve.name)&&(Ve.required=!0);var De="";if(Le.hasOwnProperty("type")){var le=Le.type;Le.hasOwnProperty("example")?le=="string"?De=utils$c.getExample("example",Le,""):De=Le.example:utils$c.checkIsBasicType(le)&&(De=utils$c.getBasicTypeValue(le))}Ve.value=De,Ve.format!=null&&Ve.format!=null&&Ve.format!=""&&(Ve.type+="("+Ve.format+")"),Me.properties.push(Ve),Be[Ne]=De}Me.value=Be,Me.init=!0,H.currentInstance.difArrs.push(Me)}else utils$c.checkIsBasicType(ke)&&(C.responseText=ke,C.responseBasicType=!0,pe.responseText=ke,pe.responseBasicType=!0)}}else tt=new Knife4jOAS3ResponseExampleReader(Se);break}}if(fe.hasOwnProperty("schema")&&utils$c.checkUndefined(fe.schema))var ee=fe.schema;if(ye!=null){var Je=H.getDefinitionByName(ye,C.oas2);if(Je!=null){if(he){var ze=new Array;ze.push(Je.value),pe.responseValue=utils$c.json5stringifyFormat(ze,null," "),pe.responseJson=ze}else pe.responseValue=utils$c.json5stringifyFormat(Je.value,null," "),pe.responseJson=Je.value;if(Je.hasOwnProperty("properties")){var Ge=Je.properties;Ge.forEach(function(at){var St=new SwaggerBootstrapUiParameter;if(St.name=at.name,!utils$c.checkParamArrsExists(pe.responseParameters,St)){if(pe.responseParameters.push(St),St.description=utils$c.replaceMultipLineStr(at.description),at.type==null||at.type==""){if(at.refType!=null&&!utils$c.checkIsBasicType(at.refType)){St.schemaValue=at.refType,St.schema=!0,St.type=at.refType;var st=H.getDefinitionByName(at.refType,C.oas2);deepResponseRefParameter(pe,H,st,St),St.parentTypes.push(at.refType),deepTreeTableResponseRefParameter(pe,H,st,St)}}else if(St.type=at.type,!utils$c.checkIsBasicType(at.type))if(at.refType!=null){if(!utils$c.checkIsBasicType(at.refType)){St.schemaValue=at.refType,St.schema=!0,at.type!="array"&&(St.type=at.refType);var st=H.getDefinitionByName(at.refType,C.oas2);deepResponseRefParameter(pe,H,st,St),St.parentTypes.push(at.refType),deepTreeTableResponseRefParameter(pe,H,st,St)}}else{St.schemaValue=at.type,St.schema=!0,St.type=at.type;var st=H.getDefinitionByName(at.type,C.oas2);deepResponseRefParameter(pe,H,st,St),St.parentTypes.push(at.type),deepTreeTableResponseRefParameter(pe,H,st,St)}}})}}}if(pe.schema!=null&&pe.schema!=null&&(_e=_e+1),fe.hasOwnProperty("headers")){var qe=fe.headers;pe.responseHeaderParameters=new Array;for(var Ke in qe){var Ee={...qe[Ke],name:Ke,id:md5(Ke),pid:"-1"};pe.responseHeaderParameters.push(Ee)}be=="200"&&(C.responseHeaderParameters=pe.responseHeaderParameters)}console.log("example",tt),utils$c.checkUndefined(tt)&&utils$c.checkUndefined(tt.responseText)&&(pe.responseValue=tt.responseValue,pe.responseJson=tt.responseText),C.responseCodes.push(pe)}C.multipartResponseSchemaCount=_e,_e>1&&(C.multipartResponseSchema=!0)}if(ge!=null&&!C.multipartResponseSchema){for(var Ce=0;Ce<H.currentInstance.difArrs.length;Ce++){var Pe=H.currentInstance.difArrs[Ce];if(Pe.name==ge)if(Pe.init||H.analysisDefinitionAsync(H.currentInstance.swaggerData,Pe),he){var ze=new Array;ze.push(Pe.value),C.responseValue=utils$c.json5stringifyFormat(ze,null," "),C.responseJson=ze}else C.responseValue=utils$c.json5stringifyFormat(Pe.value,null," "),C.responseJson=Pe.value}var Je=H.getDefinitionByName(ge,C.oas2);if(Je!=null&&Je.hasOwnProperty("properties")){var Ge=Je.properties;Ge.forEach(function(st){var it=new SwaggerBootstrapUiParameter;if(it.name=st.name,!utils$c.checkParamArrsExists(C.responseParameters,it)){if(C.responseParameters.push(it),it.description=utils$c.replaceMultipLineStr(st.description),st.type==null||st.type==""){if(st.refType!=null&&!utils$c.checkIsBasicType(st.refType)){it.schemaValue=st.refType,it.schema=!0,it.type=st.refType;var pt=H.getDefinitionByName(st.refType,C.oas2);deepResponseRefParameter(C,H,pt,it),it.parentTypes.push(st.refType),deepTreeTableResponseRefParameter(C,H,pt,it)}}else if(it.type=st.type,!utils$c.checkIsBasicType(st.type))if(st.refType!=null){if(!utils$c.checkIsBasicType(st.refType)){it.schemaValue=st.refType,st.type!="array"&&(it.type=st.refType);var pt=H.getDefinitionByName(st.refType,C.oas2);deepResponseRefParameter(C,H,pt,it),it.parentTypes.push(st.refType),deepTreeTableResponseRefParameter(C,H,pt,it)}}else{it.schemaValue=st.type,it.type=st.type;var pt=H.getDefinitionByName(st.type,C.oas2);deepResponseRefParameter(C,H,pt,it),it.parentTypes.push(st.type),deepTreeTableResponseRefParameter(C,H,pt,it)}}})}}if(C.parameters!=null){var Re=0,Ze=null;if(C.parameters.forEach(function(at){at.in=="body"&&(Re=Re+1,at.txtValue!=null&&at.txtValue!=""&&(Ze=at.txtValue,at.schemaValue))}),Re==1&&(C.requestValue=Ze,utils$c.arrNotEmpty(C.consumes))){var Oe=C.consumes.filter(at=>utils$c.strNotBlank(at));if(utils$c.arrNotEmpty(Oe)){var Qe=Oe.some(at=>at.toLowerCase().indexOf("xml")>-1);Qe&&utils$c.strNotBlank(Ze)&&(utils$c.json5parse(Ze),C.requestValue=tmpJsonObject,C.xmlRequest=!0)}}if(C.consumes!=null&&C.consumes!=null&&C.consumes.length>0){var Xe=C.consumes[0];if(Xe.indexOf("multipart/form-data")>=0)C.contentType=Xe,C.contentValue="form-data";else if(Xe.indexOf("text/plain")>=0)C.contentType=Xe,C.contentValue="raw",C.contentShowValue="Text(text/plain)",C.contentMode="text";else if(Xe.indexOf("application/xml")>=0)C.contentType=Xe,C.contentValue="raw",C.contentShowValue="XML(application/xml)",C.contentMode="xml";else{var et="application/x-www-form-urlencoded;charset=UTF-8",We="x-www-form-urlencoded";if(utils$c.arrNotEmpty(C.parameters)){for(var Ce=0;Ce<C.parameters.length;Ce++){var He=C.parameters[Ce];if(He.in=="body")if(He.schemaValue=="MultipartFile"||He.type=="file"){et="multipart/form-data",We="form-data";break}else{We="raw",et="application/json",Xe.indexOf("application/json")>=0&&(et=Xe),C.contentMode="json";break}else if(He.schemaValue=="MultipartFile"||He.type=="file"){et="multipart/form-data",We="form-data";break}}C.contentType=et,C.contentValue=We}else Xe.indexOf("application/json")>=0?(C.contentType=Xe,C.contentValue="raw",C.contentShowValue="JSON(application/json)",C.contentMode="json"):(C.contentType=Xe,C.contentValue=We)}}else{for(var et="application/x-www-form-urlencoded;charset=UTF-8",We="x-www-form-urlencoded",Ce=0;Ce<C.parameters.length;Ce++){var He=C.parameters[Ce];if(He.in=="body")if(He.schemaValue=="MultipartFile"||He.type=="file"){et="multipart/form-data",We="form-data";break}else{We="raw",et="application/json",C.contentMode="json";break}else if(He.schemaValue=="MultipartFile"||He.type=="file"){et="multipart/form-data",We="form-data";break}}C.contentType=et,C.contentValue=We}}console.log("example",tt),utils$c.checkUndefined(tt)&&utils$c.checkUndefined(tt.responseText)&&(C.responseValue=tt.responseValue,C.responseJson=tt.responseText),C.init=!0,console.log("\u5F02\u6B65\u521D\u59CB\u5316ApiInfo\u5B8C\u6210"),console.log(C)}};SwaggerBootstrapUi.prototype.createApiInfoInstance=function(C,H,U,W){var G=this,X=new SwaggerBootstrapUiApiInfo;G.currentInstance.oas2()?X.oas2=!0:X.oas2=!1,X.originalApiInfo=U;var Z=G.currentInstance.basePath,Q="",ee=!1;if(Z!=""&&Z!="/"&&(ee=!0),W||(Q+=Z),G.springdoc){var ie=window.location.pathname,te=new RegExp("(.*?)/doc.html.*$","ig"),ne="";te.test(ie)&&(ne=RegExp.$1),Q+=ne}Q+=C;var ae=Q;if(utils$c.strNotBlank(G.currentInstance.servicePath)){var oe=G.currentInstance.servicePath;Q.startsWith("/")||(oe=oe+"/"),oe=oe+Q,ae=oe}X.showUrl=ae,X.instanceId=G.currentInstance.id,X.host=G.currentInstance.host,X.url=ae,X.originalUrl=ae,X.basePathFlag=ee,X.methodType=H.toUpperCase(),utils$c.checkUndefined(G.configuration.supportedSubmitMethods)&&(G.configuration.supportedSubmitMethods.includes(H.toLowerCase())||(X.configurationDebugSupport=!1));var se=ae+H.toUpperCase();if(X.id=md5(se),X.versionId=utils$c.md5Id(U),U!=null){this.readApiSecurity(X,U),this.readOpenApiSpeci(C,X,U,G.currentInstance.swaggerData,G.currentInstance.openApiBaseInfo),U.hasOwnProperty("deprecated")&&(X.deprecated=U.deprecated),utils$c.arrEmpty(U.tags)&&(U.tags=["default"]),X.consumes=utils$c.getValue(U,"consumes",[].concat("application/x-www-form-urlencoded"),!0),X.description=utils$c.getValue(U,"description","",!0),utils$c.strNotBlank(X.description)&&(X.description=marked.parse(X.description)),U.operationId=U.operationId||X.id,X.operationId=U.operationId,X.summary=utils$c.toString(U.summary,"").replace(/\//g,"-"),utils$c.strBlank(X.summary)&&(X.summary=U.operationId),X.tags=U.tags,this.readApiInfoInstanceExt(X,U),X.operationId=utils$c.getValue(U,"operationId","",!0);var le=G.currentInstance.name;X.tags.forEach(function(he){var me="#/"+le+"/"+he+"/"+X.operationId;X.hashCollections.push(me)}),utils$c.checkUndefined(U.produces)?X.produces=U.produces:X.produces=[].concat("*/*");for(var ce=0;ce<U.tags.length;ce++){var ue=U.tags[ce];G.mergeApiInfoSelfTags(ue)}}if(G.currentInstance.firstLoad){G.currentInstance.cacheInstance.cacheApis.push(X.id);var de=new SwaggerBootstrapUiCacheUptApi(X.versionId);de.url=X.url,G.currentInstance.cacheInstance.updateApis[X.id]=de}else{var ve=G.currentInstance.cacheInstance.updateApis;if(ve.hasOwnProperty(X.id)){var ge=ve[X.id];ge!=null&&ge!=null&&ge.versionId!=X.versionId&&(X.hasChanged=!0)}else{var de=new SwaggerBootstrapUiCacheUptApi(X.versionId);de.url=X.url,G.currentInstance.cacheInstance.updateApis[X.id]=de,G.log(G.currentInstance.cacheInstance)}}return X};SwaggerBootstrapUi.prototype.readApiSecurity=function(C,H){C.oas2?this.readApiSecurityOAS2(C,H):this.readApiSecurityOAS3(C,H)};SwaggerBootstrapUi.prototype.readApiSecurityOAS2=function(C,H){if(utils$c.checkUndefined(H)&&H.hasOwnProperty("security")){var U=H.security;if(utils$c.arrNotEmpty(U)){var W=new Array;U.forEach(G=>{var X=Object.keys(G||{});utils$c.arrNotEmpty(X)&&(W=W.concat(X))}),utils$c.arrNotEmpty(W)&&(C.securityFlag=!0,C.securityKeys=W)}}};SwaggerBootstrapUi.prototype.readApiSecurityOAS3=function(C,H){if(utils$c.checkUndefined(H)&&H.hasOwnProperty("security")){var U=H.security;if(utils$c.arrNotEmpty(U)){var W=new Array;U.forEach(G=>{var X=Object.keys(G||{});utils$c.arrNotEmpty(X)&&(W=W.concat(X))}),utils$c.arrNotEmpty(W)&&(C.securityFlag=!0,C.securityKeys=W)}}};SwaggerBootstrapUi.prototype.readOpenApiSpeci=function(C,H,U,W,G){try{var X=cloneDeep_1(G||{}),Z=H.methodType.toLowerCase(),Q={};Q[Z]=U;var ee={};ee[C]=Q,X.paths=ee;var ie={};H.oas2?(ie=this.readOpenApiSpeciOAS2(U,W),X.definitions=ie):(ie=this.readOpenApiSpeciOAS3(U,W),X.components=ie),H.openApiRaw=X}catch(te){window.console&&window.console.error(te)}};SwaggerBootstrapUi.prototype.readOpenApiSpeciOAS2=function(C,H){var U={},W=utils$c.json5stringify(C),G=new RegExp("'#/definitions/(.*?)'","ig");let X;for(var Z=H.definitions,Q=new Array;(X=G.exec(W))!=null;){var ee=X[1];utils$c.checkUndefined(ee)&&(Q.includes(ee)||Q.push(ee))}return Q.length>0&&(Q.forEach(ie=>{readOpenAPIModel(ie,Q,Z,!0)}),Q.forEach(ie=>{U[ie]=Z[ie]})),U};function readOpenAPIModel(C,H,U,W){if(utils$c.checkUndefined(C)&&utils$c.strNotBlank(C)){var G=U[C];if(utils$c.checkUndefined(G)){var X=utils$c.json5stringify(G),Z;W?Z=new RegExp("'#/definitions/(.*?)'","ig"):Z=new RegExp("'#/components/schemas/(.*?)'","ig");let ee;for(;(ee=Z.exec(X))!=null;){var Q=ee[1];utils$c.checkUndefined(Q)&&(H.includes(Q)||(H.push(Q),readOpenAPIModel(Q,H,U,W)))}}}}SwaggerBootstrapUi.prototype.readOpenApiSpeciOAS3=function(C,H){var U={},W=utils$c.json5stringify(C),G=new RegExp("'#/components/schemas/(.*?)'","ig");let X;for(var Z=H.components,Q=new Array;(X=G.exec(W))!=null;){var ee=X[1];utils$c.checkUndefined(ee)&&(Q.includes(ee)||Q.push(ee))}return Q.length>0&&(Q.forEach(ie=>{readOpenAPIModel(ie,Q,Z,!1)}),Q.forEach(ie=>{U[ie]=Z[ie]})),U};SwaggerBootstrapUi.prototype.readApiInfoInstanceExt=function(C,H){C.oas2?this.readApiInfoInstanceExtOAS2(C,H):this.readApiInfoInstanceExtOAS3(C,H)};SwaggerBootstrapUi.prototype.readApiInfoInstanceExtOAS2=function(C,H){if(H.hasOwnProperty("x-ignoreParameters")){var U=H["x-ignoreParameters"];C.ignoreParameters=U[0]}if(H.hasOwnProperty("x-includeParameters")){var W=H["x-includeParameters"];C.includeParameters=W[0]}if(H.hasOwnProperty("x-order")&&(C.order=parseInt(H["x-order"])),H.hasOwnProperty("x-author")){var G=H["x-author"];utils$c.strNotBlank(G)&&(C.author=G)}};SwaggerBootstrapUi.prototype.readApiInfoInstanceExtOAS3=function(C,H){if(H.hasOwnProperty("extensions")&&utils$c.checkUndefined(H.extensions)){var U=H.extensions;if(U.hasOwnProperty("x-ignoreParameters")){var W=U["x-ignoreParameters"];C.ignoreParameters=W[0]}if(U.hasOwnProperty("x-includeParameters")){var G=U["x-includeParameters"];C.includeParameters=G[0]}if(U.hasOwnProperty("x-order")&&(C.order=parseInt(U["x-order"])),U.hasOwnProperty("x-author")){var X=U["x-author"];utils$c.strNotBlank(X)&&(C.author=X)}}};SwaggerBootstrapUi.prototype.assembleParameter=function(C,H){var U=this,W=utils$c.propValue("name",C,""),G=utils$c.propValue("in",C,""),X=new SwaggerBootstrapUiParameter;X.name=W,X.ignoreFilterName=W,X.type=utils$c.propValue("type",C,""),X.in=G,X.require=utils$c.propValue("required",C,!1),X.description=utils$c.replaceMultipLineStr(utils$c.propValue("description",C,""));var Z=utils$c.propValue("format",C,"");if(utils$c.strNotBlank(Z)){var Q=X.type+"("+Z+")";X.type=Q}if(C.hasOwnProperty("enum")){X.enum=C.enum;var ee=C.enum.join(",");C.description!=null&&C.description!=null&&C.description!=""?X.description=C.description+",\u53EF\u7528\u503C:"+ee:X.description="\u679A\u4E3E\u7C7B\u578B,\u53EF\u7528\u503C:"+ee}if(C.hasOwnProperty("default")&&(X.txtValue=C.default,X.example=C.default),C.hasOwnProperty("x-example")&&(X.txtValue=C["x-example"],utils$c.checkUndefined(X.txtValue)&&(X.example=X.txtValue)),C.hasOwnProperty("schema")){X.schema=!0;var ie=C.schema,te=ie.type;if(te=="array"){X.type=te;var ne=ie.items,ae=ne.$ref,oe=utils$c.getClassName(ae,H.oas2);X.schemaValue=oe;var se=U.getDefinitionByName(oe,H.oas2);if(se!=null)X.def=se,X.value=se.value,se.description!=null&&se.description!=null&&se.description!=""&&(X.description=utils$c.replaceMultipLineStr(se.description));else{var le=ne.type;X.schemaValue=ne.type,le=="string"&&(X.value=""),le=="integer"&&(ne.format!=null&&ne.format!=null&&ne.format=="int32"?X.value=0:X.value=0xea2e8e293c84000),le=="number"&&(ne.format!=null&&ne.format!=null&&ne.format=="double"?X.value=.5:X.value=0)}}else if(ie.hasOwnProperty("$ref")){var ae=C.schema.$ref,oe=utils$c.getClassName(ae,H.oas2);X.type!="array"&&(X.type=oe),X.schemaValue=oe;var se=U.getDefinitionByName(oe,H.oas2);se!=null&&(X.def=se,X.value=se.value,se.description!=null&&se.description!=null&&se.description!=""&&(X.description=utils$c.replaceMultipLineStr(se.description)))}else if(ie.hasOwnProperty("additionalProperties")){var ce=ie.additionalProperties;if(ce.hasOwnProperty("$ref")){var oe=utils$c.getClassName(ce.$ref,H.oas2);if(oe!=null){var se=U.getDefinitionByName(oe,H.oas2);se!=null&&(X.def=se,X.value={additionalProperties1:se.value},se.description!=null&&se.description!=null&&se.description!=""&&(X.description=utils$c.replaceMultipLineStr(se.description)))}}else if(ce.hasOwnProperty("items")){var ue=ce.items,oe=utils$c.getClassName(ue.$ref,H.oas2);if(oe!=null){var se=U.getDefinitionByName(oe,H.oas2);if(se!=null){var de=new Array;de.push(se.value),X.def=se,X.value={additionalProperties1:de},se.description!=null&&se.description!=null&&se.description!=""&&(X.description=utils$c.replaceMultipLineStr(se.description))}}}}else{if(ie.hasOwnProperty("type")&&(X.type=ie.type,ie.hasOwnProperty("example"))){let ge=utils$c.propValue("example",ie,null);ge!=null&&ge!=""&&(X.txtValue=ge,X.example=ge)}X.value=""}}if(C.hasOwnProperty("items")){var ve=C.items;if(ve.hasOwnProperty("$ref")){var ae=ve.$ref,oe=utils$c.getClassName(ae,H.oas2);X.schemaValue=oe;var se=U.getDefinitionByName(oe,H.oas2);se!=null&&(X.def=se,X.value=se.value,se.description!=null&&se.description!=null&&se.description!=""&&(X.description=utils$c.replaceMultipLineStr(se.description)))}else ve.hasOwnProperty("type")&&(X.schemaValue=ve.type),X.value=""}if(X.in=="body"&&(isUndefined_1(X.txtValue)||isNull_1(X.txtValue))){const ge=(()=>{if(isObject_1(X.value)){let me=null;var he=utils$c.json5parse(utils$c.json5stringify(X.value));return H.includeParameters!=null?me=new IncludeAssemble(he,H.includeParameters).result():(me=he,H.ignoreParameters&&isObject_1(X.value)&&Object.keys(H.ignoreParameters||{}).forEach(_e=>{const be=_e.startsWith(`${W}.`)?_e.replace(`${W}.`,""):_e;Object.keys(me||{}).forEach(pe=>{if(has_1(me,be))pe===be&&unset_1(me,pe);else{let fe=be;be.endsWith("$")||(fe+="$"),new RegExp(fe,"g").test(pe)&&unset_1(me,pe)}})})),me}return null})();isUndefined_1(ge)||isNull_1(ge)?X.type==="array"&&(X.txtValue=JSON.stringify([])):X.txtValue=utils$c.json5stringify(X.type==="array"?[ge]:ge,null," ")}(X.in=="query"||X.in=="formData")&&X.schema&&utils$c.checkUndefined(X.value)&&utils$c.strBlank(X.txtValue)&&(X.txtValue=utils$c.json5stringify(X.type==="array"?[X.value]:X.value,null," ")),U.validateJSR303(X,C),utils$c.checkParamArrsExists(H.parameters,X)||(Object.keys(H.ignoreParameters||{}).includes(W)||H.parameters.push(X),X.schema&&X.parentTypes.push(X.schemaValue))};SwaggerBootstrapUi.prototype.assembleParameterOAS3=function(C,H,U){var W=this,G=utils$c.propValue("name",C,""),X=utils$c.propValue("in",C,""),Z=new SwaggerBootstrapUiParameter;if(Z.deprecated=utils$c.propValue("deprecated",C,!1),Z.allowEmptyValue=utils$c.propValue("allowEmptyValue",C,!1),Z.name=G,Z.ignoreFilterName=G,Z.type=utils$c.propValue("type",C,""),Z.in=X,Z.require=utils$c.propValue("required",C,!1),utils$c.arrNotEmpty(U)&&(Z.require=U.includes(Z.name)),Z.description=utils$c.replaceMultipLineStr(utils$c.propValue("description",C,"")),C.hasOwnProperty("enum")){Z.enum=C.enum;var Q=C.enum.join(",");C.description!=null&&C.description!=null&&C.description!=""?Z.description=C.description+",\u53EF\u7528\u503C:"+Q:Z.description="\u679A\u4E3E\u7C7B\u578B,\u53EF\u7528\u503C:"+Q}C.hasOwnProperty("default")&&(Z.txtValue=C.default),C.hasOwnProperty("x-example")&&(Z.txtValue=C["x-example"],utils$c.checkUndefined(Z.txtValue)&&(Z.example=Z.txtValue)),C.hasOwnProperty("example")&&(Z.example=utils$c.propValue("example",C,""),Z.txtValue=utils$c.propValue("example",C,""));var ee=utils$c.propValue("format",C,"");ee=="binary"&&(Z.type="file");var ie={};if(C.hasOwnProperty("schema")){Z.schema=!0;var te=C.schema,ne=te.type;if(Z.type=ne,ne=="array"){Z.type=ne;var ae=te.items,oe=ae.$ref,se=utils$c.getClassName(oe,H.oas2);Z.schemaValue=se;var le=W.getDefinitionByName(se,H.oas2);if(le!=null)Z.def=le,Z.value=le.value,le.description!=null&&le.description!=null&&le.description!=""&&(Z.description=utils$c.replaceMultipLineStr(le.description));else{var ce=ae.type;Z.schemaValue=ae.type,ce=="string"&&(Z.value=""),ce=="integer"&&(ae.format!=null&&ae.format!=null&&ae.format=="int32"?Z.value=0:Z.value=0xea2e8e293c84000),ce=="number"&&(ae.format!=null&&ae.format!=null&&ae.format=="double"?Z.value=.5:Z.value=0);var ue=utils$c.propValue("enum",te,[]);if(utils$c.arrNotEmpty(ue)){Z.enum=ue;var Q=ue.join(",");C.description!=null&&C.description!=null&&C.description!=""?Z.description=C.description+",\u53EF\u7528\u503C:"+Q:Z.description="\u679A\u4E3E\u7C7B\u578B,\u53EF\u7528\u503C:"+Q}}}else if(utils$c.checkIsBasicType(ne)){var de=utils$c.propValue("format",te,"");if(utils$c.strNotBlank(de)){var ve=ne+"("+de+")";Z.type=ve,de=="binary"&&(Z.type="file")}var ue=utils$c.propValue("enum",te,[]);if(utils$c.arrNotEmpty(ue)){Z.enum=ue;var Q=ue.join(",");C.description!=null&&C.description!=null&&C.description!=""?Z.description=C.description+",\u53EF\u7528\u503C:"+Q:Z.description="\u679A\u4E3E\u7C7B\u578B,\u53EF\u7528\u503C:"+Q}te.hasOwnProperty("default")&&(Z.example=utils$c.propValue("default",te,null),Z.txtValue=utils$c.propValue("default",te,null))}else if(te.hasOwnProperty("$ref")){var oe=C.schema.$ref,se=utils$c.getClassName(oe,H.oas2);Z.type!="array"&&(Z.type=se),Z.schemaValue=se;var le=W.getDefinitionByName(se,H.oas2);le!=null&&(Z.def=le,Z.value=le.value,le.description!=null&&le.description!=null&&le.description!=""&&(Z.description=utils$c.replaceMultipLineStr(le.description)))}else if(te.hasOwnProperty("additionalProperties")){var ge=te.additionalProperties;if(ge.hasOwnProperty("$ref")){var se=utils$c.getClassName(ge.$ref,H.oas2);if(se!=null){var le=W.getDefinitionByName(se,H.oas2);le!=null&&(Z.def=le,Z.value={additionalProperties1:le.value},le.description!=null&&le.description!=null&&le.description!=""&&(Z.description=utils$c.replaceMultipLineStr(le.description)))}}else if(ge.hasOwnProperty("items")){var he=ge.items,se=utils$c.getClassName(he.$ref,H.oas2);if(se!=null){var le=W.getDefinitionByName(se,H.oas2);if(le!=null){var me=new Array;me.push(le.value),Z.def=le,Z.value={additionalProperties1:me},le.description!=null&&le.description!=null&&le.description!=""&&(Z.description=utils$c.replaceMultipLineStr(le.description))}}}}else te.hasOwnProperty("type")&&(Z.type=te.type),Z.value="";ie=te}else ie=C;if(W.validateJSR303(Z,ie),C.hasOwnProperty("items")){var _e=C.items;if(_e.hasOwnProperty("$ref")){var oe=_e.$ref,se=utils$c.getClassName(oe,H.oas2);Z.schemaValue=se;var le=W.getDefinitionByName(se,H.oas2);le!=null&&(Z.schema=!0,Z.def=le,Z.value=le.value,le.description!=null&&le.description!=null&&le.description!=""&&(Z.description=utils$c.replaceMultipLineStr(le.description)))}else _e.hasOwnProperty("type")&&(Z.schemaValue=_e.type),Z.value=""}if(Z.in=="body"&&(isUndefined_1(Z.txtValue)||isNull_1(Z.txtValue))){const be=(()=>{if(isObject_1(Z.value)){let fe=null;var pe=utils$c.json5parse(utils$c.json5stringify(Z.value));return H.includeParameters!=null?(fe=new IncludeAssemble(pe,H.includeParameters).result(),console.log(fe)):(fe=pe,H.ignoreParameters&&isObject_1(Z.value)&&Object.keys(H.ignoreParameters||{}).forEach(ye=>{const $e=ye.startsWith(`${G}.`)?ye.replace(`${G}.`,""):ye;Object.keys(fe||{}).forEach(we=>{if(has_1(fe,$e))we===$e&&unset_1(fe,we);else{let Se=$e;$e.endsWith("$")||(Se+="$"),new RegExp(Se,"g").test(we)&&unset_1(fe,we)}})})),fe}return null})();isUndefined_1(be)||isNull_1(be)?Z.type==="array"&&(Z.txtValue=JSON.stringify([])):Z.txtValue=utils$c.json5stringify(Z.type==="array"?[be]:be,null," ")}(Z.in=="query"||Z.in=="formData")&&Z.schema&&utils$c.checkUndefined(Z.value)&&utils$c.strBlank(Z.txtValue)&&(Z.txtValue=utils$c.json5stringify(Z.type==="array"?[Z.value]:Z.value,null," ")),utils$c.checkParamArrsExists(H.parameters,Z)||(Object.keys(H.ignoreParameters||{}).includes(G)||H.parameters.push(Z),Z.schema&&Z.parentTypes.push(Z.schemaValue))};function IncludeAssemble(C,H){this.json=C;var U=new Array,W=Object.keys(H||{});W.forEach(G=>{U.push(G.substring(G.indexOf(".")+1))}),this.includeArrays=U}IncludeAssemble.prototype={isObjInArray(C){return!this.isArray(C)||C.length===0?!1:this.isObject(C[0])},isObject(C){return Object.prototype.toString.call(C)==="[object Object]"},isArray(C){return Object.prototype.toString.call(C)==="[object Array]"},merge(C,H){if(this.isObject(C))for(let U in H)C[U]=this.isObject(C[U])||this.isObjInArray(C[U])?this.merge(C[U],H[U]):C[U]=H[U];else this.isObjInArray(H)?C.forEach((U,W)=>{this.merge(U,H[W])}):C.push.apply(C,H);return C},getByPath(C,H){if(this.isObjInArray(C)){const U=[];return C.forEach(W=>{U.push(this.getByPath(W,H))}),U}else{const U=H.split("."),W=utils$c.json5parse(utils$c.json5stringify(C));let G=W;const X=U.length;for(let Z=0;Z<X;Z++){let Q=U[Z];for(let ee in G)ee!==Q&&delete G[ee];if(!G[Q])break;if(this.isObjInArray(G[Q])){let ee=this.getByPath(G[Q],U.slice(Z+1).join("."));G[Q]=utils$c.json5parse(utils$c.json5stringify(ee));break}G=G[Q]}return W}},result(){if(this.includeArrays==null||this.includeArrays.length==0)return this.json;{let C=[];return this.includeArrays.forEach(H=>{C.push(this.getByPath(this.json,H))}),C.reduce((H,U)=>H?(this.merge(H,U),H):U)}}};SwaggerBootstrapUi.prototype.mergeApiInfoSelfTags=function(C){var H=this,U=!1;if(H.currentInstance.tags.forEach(function(G){G.name==C&&(U=!0)}),!U){var W=new SwaggerBootstrapUiTag(C,C);H.currentInstance.tags.push(W)}};SwaggerBootstrapUi.prototype.validateJSR303=function(C,H){var U=H.maximum,W=H.minimum,G=H.exclusiveMinimum,X=H.exclusiveMaximum,Z=H.pattern,Q=H.maxLength,ee=H.minLength;U||W||G||X?(C.validateStatus=!0,C.validateInstance={minimum:W,maximum:U,exclusiveMaximum:X,exclusiveMinimum:G}):Z?(C.validateStatus=!0,C.validateInstance={pattern:H.pattern}):(Q||ee)&&(C.validateStatus=!0,C.validateInstance={maxLength:Q,minLength:ee})};SwaggerBootstrapUi.prototype.getDefinitionByName=function(C,H){var U=this,W=null,G=!0;return utils$c.checkUndefined(H)&&(G=H),U.currentInstance.difArrs.forEach(function(X){if(X.name==C){X.init||(X.init=!0,U.analysisDefinitionAsync(U.currentInstance.swaggerData,X,G)),W=X;return}}),W};SwaggerBootstrapUi.prototype.findRefDefinition=function(C,H,U,W,G,X){var Z=this,Q="";if(utils$c.checkUndefined(Z.currentInstance.definitionValues[C]))Q=Z.currentInstance.definitionValues[C];else{for(var ee in H)if(C==ee){Z.log("\u89E3\u6790definitionName:"+C);var ie=H[ee];if(ie.hasOwnProperty("properties")){var te=ie.properties,ne={};for(var ae in te){var oe=te[ae];if(!oe.hasOwnProperty("readOnly")||!oe.readOnly){var se="";if(oe.hasOwnProperty("type")){var le=oe.type;if(oe.hasOwnProperty("example"))se=utils$c.getExample("example",oe,"");else if(oe.hasOwnProperty("default"))se=utils$c.getExample("default",oe,"");else if(utils$c.checkIsBasicType(le)){if(se=utils$c.getBasicTypeValue(le),le=="object"&&oe.hasOwnProperty("additionalProperties")){var ce=oe.additionalProperties,ue=this.deepAdditionalProperties(ce,X);if(utils$c.strNotBlank(ue))W.indexOf(ue)==-1&&(W.push(ue),he=Z.findRefDefinition(ue,H,!1,W,G,X),se={additionalProperties1:he});else if(ce.hasOwnProperty("$ref")){var de=ce.$ref,ve=new RegExp(utils$c.oasmodel(X),"ig");if(ve.test(de)){var ge=RegExp.$1,he=null;U||W.indexOf(ge)==-1&&(W.push(ge),he=Z.findRefDefinition(ge,H,U,W,G,X),se={additionalProperties1:he})}}}}else if(le=="array"){se=new Array;var me=oe.items,_e=me.$ref;me.hasOwnProperty("type")&&me.type=="array"&&(_e=me.items.$ref);var ve=new RegExp(utils$c.oasmodel(X),"ig");if(ve.test(_e)){var be=RegExp.$1;U||(W.indexOf(be)!=-1?se.push({}):(W.push(C),se.push(Z.findRefDefinition(be,H,U,W,G,X))))}}}else if(oe.hasOwnProperty("$ref")){var _e=oe.$ref,ve=new RegExp(utils$c.oasmodel(X),"ig");if(ve.test(_e)){var be=RegExp.$1;U||(W.indexOf(be)!=-1?se={}:(W.push(C),se=Z.findRefDefinition(be,H,U,W,G,X)))}}else se={};ne[ae]=se}}Q=ne}else Q={}}Z.currentInstance.definitionValues[C]=Q}return Q};SwaggerBootstrapUi.prototype.methodCountAndDown=function(C){var H=this,U=!1;if(H.currentInstance.pathArrs.forEach(function(G){G.method==C&&(U=!0,G.count=G.count+1)}),!U){var W=new SwaggerBootstrapUiPathCountDownLatch;W.method=C,W.count=1,H.currentInstance.pathArrs.push(W)}};SwaggerBootstrapUi.prototype.getGlobalSecurityInfos=function(){var C=[];if(window.localStorage){var H=window.localStorage,U=H.SwaggerBootstrapUiSecuritys;if(U!=null&&U!=null&&U!=""){var W=utils$c.json5parse(U);W.forEach(function(G){C=C.concat(G.value)})}}return C};var SwaggerBootstrapUiPathCountDownLatch=function(){this.method="",this.count=0};function deepResponseRefParameter(C,H,U,W){if(U!=null&&U.hasOwnProperty("properties")){var G=new SwaggerBootstrapUiRefParameter;if(G.name=U.name,!utils$c.checkParamArrsExists(C.responseRefParameters,G)&&(C.responseRefParameters.push(G),U.hasOwnProperty("properties"))){var X=U.properties;X.forEach(function(Z){var Q=new SwaggerBootstrapUiParameter;if(Q.pid=W.id,Q.name=Z.name,Q.type=Z.type,Q.description=utils$c.replaceMultipLineStr(Z.description),G.params.push(Q),!utils$c.checkIsBasicType(Z.refType)&&(Q.schemaValue=Z.refType,Q.schema=!0,W.name!=Q.name||W.schemaValue!=Z.refType)){var ee=H.getDefinitionByName(Z.refType,C.oas2);deepResponseRefParameter(C,H,ee,Q)}})}}}function deepTreeTableResponseRefParameter(C,H,U,W){if(U!=null&&U.hasOwnProperty("properties")){var G=new SwaggerBootstrapUiTreeTableRefParameter;if(G.name=U.name,G.id=W.id,!checkParamTreeTableArrsExists(C.responseTreetableRefParameters,G)&&(C.responseTreetableRefParameters.push(G),U.hasOwnProperty("properties"))){var X=U.properties;X.forEach(function(Z){var Q=new SwaggerBootstrapUiParameter;if(W.parentTypes.forEach(function(ie){Q.parentTypes.push(ie)}),Z.hasOwnProperty("readOnly")&&(Q.readOnly=Z.readOnly),Q.parentTypes.push(U.name),Q.pid=W.id,Q.name=Z.name,Q.type=Z.type,Q.description=utils$c.replaceMultipLineStr(Z.description),Q.example=Z.example,G.params.push(Q),utils$c.checkIsBasicType(Z.refType))Z.type=="array"&&Z.refType!=null&&Z.refType!=null&&Z.refType!=""&&(Q.schemaValue=Z.refType);else if(Q.schemaValue=Z.refType,Q.schema=!0,W.name!=Q.name||W.schemaValue!=Z.refType){var ee=H.getDefinitionByName(Z.refType,C.oas2);checkDeepTypeAppear(Q.parentTypes,Z.refType)||deepTreeTableResponseRefParameter(C,H,ee,Q)}})}}}function deepTreeTableRefParameter(C,H,U,W,G){if(U!=null)if(utils$c.checkUndefined(H.currentInstance.refTreeTableModels[U.name])){var X=H.currentInstance.refTreeTableModels[U.name];W.refTreetableparameters.push(X),W.refTreetableModelsparameters.push(X)}else{var X=new SwaggerBootstrapUiTreeTableRefParameter;X.name=U.name,X.id=C.id;var Z=new SwaggerBootstrapUiTreeTableRefParameter;if(Z.name=U.name,Z.id=C.id,!checkParamTreeTableArrsExists(W.refTreetableparameters,X)&&(W.refTreetableparameters.push(X),W.refTreetableModelsparameters.push(Z),U.hasOwnProperty("properties"))){var Q=U.properties;Q.forEach(function(ie){var te=C.ignoreFilterName+"."+ie.name;if(W.ignoreParameters==null||W.ignoreParameters!=null&&!W.ignoreParameters.hasOwnProperty(te)){var ne=new SwaggerBootstrapUiParameter;if(ne.pid=C.id,C.parentTypes.forEach(function(oe){ne.parentTypes.push(oe)}),ne.readOnly=ie.readOnly,ne.parentTypes.push(U.name),ne.level=C.level+1,ne.name=ie.name,ne.ignoreFilterName=te,ne.type=ie.type,ie.type!="array"&&ie.refType!=null&&ie.refType!=null&&ie.refType!=""&&(ne.type=ie.refType),ne.in=C.in,ne.require=ie.required,ne.example=ie.example,ne.description=utils$c.replaceMultipLineStr(ie.description),H.validateJSR303(ne,ie.originProperty),Z.params.push(ne),ie.readOnly||X.params.push(ne),utils$c.checkUndefined(ie.refType)&&!utils$c.checkIsBasicType(ie.refType)){if(ne.schemaValue=ie.refType,ne.schema=!0,C.name!=ne.name||C.schemaValue!=ie.refType){var ae=H.getDefinitionByName(ie.refType,G);checkDeepTypeAppear(ne.parentTypes,ie.refType)||deepTreeTableRefParameter(ne,H,ae,W,G)}}else ie.type=="array"&&ie.refType!=null&&ie.refType!=null&&ie.refType!=""&&(ne.schemaValue=ie.refType)}})}H.currentInstance.refTreeTableModels[U.name]=X}}function checkDeepTypeAppear(C,H){var U=!1;return C.forEach(function(W){W==H&&(U=!0)}),U}function checkParamTreeTableArrsExists(C,H){var U=!1;return C!=null&&C.length>0&&C.forEach(function(W){W.name==H.name&&W.id==H.id&&(U=!0)}),U}var SwaggerBootstrapUiModel=function(C,H){this.id=C,this.name=H,this.data=new Array,this.random=parseInt(Math.random()*(6-1+1)+1,10),this.modelClass=function(){var U="panel-default";switch(this.random){case 1:U="panel-success";break;case 2:U="panel-success";break;case 3:U="panel-info";break;case 4:U="panel-warning";break;case 5:U="panel-danger";break;case 6:U="panel-default";break}return U}},SwaggerBootstrapUiResponseCode=function(){this.oas2=!1,this.code=null,this.description=null,this.schema=null,this.schemaTitle=null,this.refTreetableparameters=new Array,this.responseCodes=new Array,this.responseValue=null,this.responseJson=null,this.responseText=null,this.responseBasicType=!1,this.responseHeaderParameters=null,this.responseParameters=new Array,this.responseParameterRefName="",this.responseRefParameters=new Array,this.responseTreetableRefParameters=new Array,this.responseDescriptionFind=function(C,H,U){this.responseDescriptions||(this.responseDescriptions=getKeyDescriptions(this.responseParameters,U));var W=C.join(">")+">"+H;return W=W.replace(/0>/g,""),this.responseDescriptions&&this.responseDescriptions[W]?this.responseDescriptions[W]:""}},getKeyDescriptions=function(C,H,U){var W={};if(typeof C=="object"&&Array.isArray(C))for(var G in C){var X=C[G];if((U==null||U==null)&&(U=new Array),typeof X=="object"){var Z=X.name,Q;if(W[Z]=X.description,X.schemaValue||X.refType){if(U.indexOf(X.schemaValue||X.refType)==-1){U.push(X.schemaValue||X.refType);var ee=H.getDefinitionByName(X.schemaValue||X.refType);ee&&ee.properties&&(Q=getKeyDescriptions(ee.properties,H,U))}}else X.params&&(Q=getKeyDescriptions(X.params,H));if(Q)for(var ie in Q)W[Z+">"+ie]=Q[ie]}}return W},SwaggerBootstrapUiApiFilter=function(){this.api=function(C){var H=new Array;if(this.methods.length>1){for(var U=null,W=0;W<this.methods.length;W++)this.methods[W].methodType==C&&(U=this.methods[W]);U==null&&(U=this.methods[0]),H.push(U)}else H=H.concat(this.methods);return H},this.methods=new Array},SwaggerBootstrapUiCacheUptApi=function(C){this.url="",this.versionId=C,this.lastTime=new Date};function SwaggerBootstrapUiCacheApis(C){this.id=C.id||"",this.name=C.name||"",this.cacheApis=[],this.updateApis={}}var SwaggerBootstrapUiDefinition=function(){this.init=!1,this.name="",this.ignoreFilterName=null,this.schemaValue=null,this.id="definition"+utils$c.randomMd5(),this.pid="-1",this.level=1,this.childrenTypes=new Array,this.parentTypes=new Array,this.description="",this.type="",this.properties=new Array,this.value=null,this.required=new Array,this.title="",this.refTreetableparameters=new Array,this.refTreetableModelsparameters=new Array},SwaggerBootstrapUiSecurityDefinition=function(){this.key="",this.type="",this.in="",this.name="",this.value="",this.id="",this.schema=null},SwaggerBootstrapUiProperty=function(){this.basic=!0,this.name="",this.type="",this.refType=null,this.description="",this.example="",this.format="",this.required=!1,this.value=null,this.property=null,this.originProperty=null,this.enum=null,this.readOnly=!1,this.validateStatus=!1,this.validateInstance=null},SwaggerBootstrapUiTag=function(C,H){this.name=C,this.description=H,this.order=2147483647,this.author=null,this.childrens=new Array,this.hasNew=!1,this.hasChanged=!1},SwaggerBootstrapUiApiInfo=function(){this.init=!1,this.oas2=!0,this.openApiRaw="",this.originalApiInfo=null,this.url=null,this.originalUrl=null,this.configurationDebugSupport=!0,this.showUrl="",this.basePathFlag=!1,this.author=null,this.methodType=null,this.description=null,this.summary=null,this.consumes=null,this.operationId=null,this.produces=null,this.tags=null,this.contentType="application/json",this.contentShowValue="JSON(application/json)",this.contentMode="Text",this.contentValue="raw",this.parameters=new Array,this.parameterSize=0,this.requestValue=null,this.xmlRequest=!1,this.refparameters=new Array,this.refTreetableparameters=new Array,this.refTreetableModelsparameters=new Array,this.reqParameters=new Array,this.responseCodes=new Array,this.responseHttpObject=null,this.getHttpSuccessCodeObject=function(){if(this.responseHttpObject==null&&this.responseCodes!=null&&this.responseCodes.length>0){for(var C=null,H=0;H<this.responseCodes.length;H++)if(this.responseCodes[H].code=="200"){C=this.responseCodes[H];break}this.responseHttpObject=C}return this.responseHttpObject},this.responseValue=null,this.responseJson=null,this.responseText=null,this.hasMoreExample=!1,this.responseTextArray=[],this.responseBasicType=!1,this.responseHeaderParameters=null,this.responseParameters=new Array,this.responseParameterRefName="",this.responseRefParameters=new Array,this.responseTreetableRefParameters=new Array,this.id="",this.versionId="",this.order=2147483647,this.hasNew=!1,this.hasChanged=!1,this.deprecated=!1,this.multipartResponseSchema=!1,this.multipartResponseSchemaCount=0,this.hashCollections=[],this.ignoreParameters=null,this.includeParameters=null,this.instanceId=null,this.host=null,this.securityFlag=!1,this.securityKeys=null},SwaggerBootstrapUiRefParameter=function(){this.name=null,this.params=new Array},SwaggerBootstrapUiTreeTableRefParameter=function(){this.init=!1,this.id="",this.name=null,this.params=new Array,this.level=1,this.childrenTypes=new Array},SwaggerBootstrapUiParameter=function(){this.name=null,this.ignoreFilterName=null,this.deprecated=!1,this.allowEmptyValue=!1,this.require=!1,this.type=null,this.in=null,this.schema=!1,this.schemaValue=null,this.value=null,this.validateStatus=!1,this.validateInstance=null,this.def=null,this.description=null,this.txtValue=null,this.enum=null,this.id=uniqueId_1("param"),this.pid="-1",this.level=1,this.show=!0,this.readOnly=!1,this.example=null,this.childrenTypes=new Array,this.children=null,this.parentTypes=new Array};function SwaggerBootstrapUiInstance(C,H,U){this.swaggerData=null,this.oauths=null,this.openApiBaseInfo={},this.id="SwaggerBootstrapUiInstance"+md5(C+H+U),this.load=!1,this.name=C,this.location=H,this.url=null,this.extUrl=null,utils$c.strNotBlank(U)?this.groupVersion=U:this.groupVersion="2.0",this.allGroupIds=null,this.basePath="",this.baseUrl="",this.host="",this.swagger="",this.description="",this.title="",this.version="",this.termsOfService="",this.contact="",this.difArrs=[],this.definitionValues={},this.swaggerModelsDifinitions=[],this.swaggerTreeTableModels={},this.refTreeTableModels={},this.tags=[],this.paths=[],this.pathsDictionary={},this.globalParameters=[],this.pathArrs=[],this.pathFilters={},this.securityArrs=[],this.models=[],this.modelNames=[],this.modelArrs=[],this.groupId=md5(C),this.firstLoad=!0,this.groupApis=[],this.cacheInstance=null,this.markdownFiles=[],this.i18n=null,this.header=null,this.basicAuth=null,this.servicePath=null,this.desktop=!1,this.desktopCode=null}SwaggerBootstrapUiInstance.prototype.clearOAuth2=function(){if(!utils$c.checkUndefined(this.oauths)&&window.localStorage){var C="SELFOAuth"+this.id;window.localStorage.removeItem(C)}};function SwaggerBootstrapUiMarkdownTag(C){this.id="mdtag"+md5(C),this.name=C,this.children=[]}function SwaggerBootstrapUiMarkdownFile(C){this.id="document-"+md5(C),this.title=C,this.content=null}SwaggerBootstrapUiInstance.prototype.oas2=function(){return console.log("groupVersion",this.groupVersion),!(utils$c.strNotBlank(this.groupVersion)&&this.groupVersion.indexOf("3")>=0)};SwaggerBootstrapUiInstance.prototype.getOASDefinitions=function(){var C={},H=this.swaggerData;if(this.oas2())utils$c.checkUndefined(H)&&H.hasOwnProperty("definitions")&&utils$c.checkUndefined(H.definitions)&&(C=H.definitions);else if(utils$c.checkUndefined(H)&&H.hasOwnProperty("components")){var U=H.components;if(utils$c.checkUndefined(U)&&U.hasOwnProperty("schemas")){var W=U.schemas;utils$c.checkUndefined(W)&&(C=W)}}return C};SwaggerBootstrapUiInstance.prototype.getDefinitionByName=function(C,H){var U=this,W=null;return U.difArrs.forEach(function(G){if(G.name==C){G.init||(G.init=!0,U.analysisDefinitionAsync(this.currentInstance.swaggerData,G,H)),W=G;return}}),W};SwaggerBootstrapUiInstance.prototype.freeMemory=function(){this.difArrs=[],this.definitionValues={},this.swaggerModelsDifinitions=[],this.refTreeTableModels={},this.tags=[],this.paths=[],this.pathsDictionary={},this.globalParameters=[],this.pathArrs=[],this.pathFilters={},this.securityArrs=[],this.models=[],this.modelNames=[],this.modelArrs=[],this.firstLoad=!0,this.groupApis=[],this.cacheInstance=null,this.markdownFiles=[],this.i18n=null};SwaggerBootstrapUi.prototype.log=function(C){};SwaggerBootstrapUi.prototype.ajax=function(C,H,U){const W=DebugAxios.create({baseURL:""});W.interceptors.response.use(G=>G.data,G=>Promise.reject(G)),W.request(C).then(G=>{H(G)}).catch(G=>{U(G)})};SwaggerBootstrapUi.prototype.error=function(C){window.console&&window.console.error(C)};function findComponentsByPath(C,H){C=decodeURIComponent(C);for(var U=null,W=0;W<H.length;W++){if(H[W].path==C){U=H[W];break}if(U==null){var G=H[W].children;G!=null&&G!==null&&(U=findComponentsByPath(C,G))}}return U}function findMenuByKey(C,H){for(var U=null,W=0;W<H.length;W++){if(H[W].key==C){U=H[W];break}if(U==null){var G=H[W].children;G!=null&&G!==null&&(U=findMenuByKey(C,G))}}return U}function urlToList(C){const H=C.split("/").filter(U=>U);return H.map((U,W)=>`/${H.slice(0,W+1).join("/")}`)}const index$c="",_sfc_main$e={props:{item:Object},setup(){const C=useGlobalsStore();return{enableVersion:computed(()=>C.enableVersion)}}},_hoisted_1$9={key:2,class:"knife4j-menu-line"};function _sfc_render$d(C,H,U,W,G,X){const Z=resolveComponent("my-icon"),Q=Badge,ee=resolveComponent("router-link");return openBlock(),createBlock(ee,{class:normalizeClass({"knife4j-menu-api-deprecated":U.item.deprecated,[U.item.menuClass]:!0}),to:U.item.path},{default:withCtx(()=>[U.item.icon?(openBlock(),createBlock(Z,{key:0,type:U.item.icon},null,8,["type"])):createCommentVNode("",!0),W.enableVersion&&U.item.hasNew?(openBlock(),createBlock(Q,{key:1,status:"processing",title:"\u65B0\u63A5\u53E3",style:{"margin-bottom":"3px"}})):createCommentVNode("",!0),U.item.method?(openBlock(),createElementBlock("span",_hoisted_1$9,toDisplayString$1(U.item.method),1)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString$1(U.item.name),1)]),_:1},8,["class","to"])}const __unplugin_components_2=_export_sfc(_sfc_main$e,[["render",_sfc_render$d]]),_sfc_main$d={props:{item:Object,collapsed:{type:Boolean,default:!1}},setup(){const C=useGlobalsStore();return{enableVersion:computed(()=>C.enableVersion)}}};function _sfc_render$c(C,H,U,W,G,X){const Z=resolveComponent("my-icon"),Q=Badge;return openBlock(),createElementBlock("span",null,[U.item.icon?(openBlock(),createBlock(Z,{key:0,type:U.item.icon},null,8,["type"])):createCommentVNode("",!0),W.enableVersion&&U.item.hasNew?(openBlock(),createBlock(Q,{key:1,status:"processing",title:"\u65B0\u63A5\u53E3",style:{"margin-bottom":"3px"}})):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString$1(U.item.name),1),U.item.num&&!U.collapsed?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass([U.item.menuClass,"knife4j-menu-badge-num"])},toDisplayString$1(U.item.num),3)):createCommentVNode("",!0)])}const __unplugin_components_0=_export_sfc(_sfc_main$d,[["render",_sfc_render$c]]),_sfc_main$c=defineComponent({name:"ThreeMenu",components:{ThreeTitle:__unplugin_components_0,ThreeRoute:__unplugin_components_2},props:{menuData:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:!1}}});function _sfc_render$b(C,H,U,W,G,X){const Z=__unplugin_components_0,Q=resolveComponent("three-menu",!0),ee=__unplugin_components_1$2,ie=__unplugin_components_2,te=__unplugin_components_13;return C.menuData?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(C.menuData,ne=>(openBlock(),createElementBlock(Fragment,{key:ne.key},[ne.children&&ne.children.some(ae=>ae.name)?(openBlock(),createBlock(ee,{key:ne.key},{title:withCtx(()=>[createVNode(Z,{collapsed:C.collapsed,item:ne},null,8,["collapsed","item"])]),default:withCtx(()=>[createVNode(Q,{"menu-data":ne.children,collapsed:C.collapsed},null,8,["menu-data","collapsed"])]),_:2},1024)):(openBlock(),createBlock(te,{key:ne.key},{default:withCtx(()=>[createVNode(ie,{item:ne},null,8,["item"])]),_:2},1024))],64))),128)):createCommentVNode("",!0)}const ThreeMenu=_export_sfc(_sfc_main$c,[["render",_sfc_render$b]]),ContextMenu_vue_vue_type_style_index_0_scoped_cdf21f0b_lang="",_sfc_main$b={name:"Contextmenu",components:{AlipayCircleOutlined:AlipayCircleOutlined$1},props:{visible:{type:Boolean,required:!1,default:!1},itemList:{type:Array,required:!0,default:()=>[]}},emits:["update:visible"],data(){return{left:0,top:0,target:null,selectedKeys:[]}},computed:{style(){return{left:this.left+"px",top:this.top+"px"}}},created(){window.addEventListener("mousedown",C=>this.closeMenu(C)),window.addEventListener("contextmenu",C=>this.setPosition(C))},methods:{closeMenu(C){["menuitemicon","menuitem"].indexOf(C.target.getAttribute("role"))<0&&this.$emit("update:visible",!1)},setPosition(C){this.left=C.clientX,this.top=C.clientY,this.target=C.target},handleClick({key:C}){this.$emit("select",C,this.target),this.$emit("update:visible",!1)}}};function _sfc_render$a(C,H,U,W,G,X){const Z=resolveComponent("AlipayCircleOutlined"),Q=__unplugin_components_13,ee=Menu;return withDirectives((openBlock(),createBlock(ee,{style:normalizeStyle(X.style),class:"contextmenu",onClick:X.handleClick,selectedKeys:G.selectedKeys},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(U.itemList,ie=>(openBlock(),createBlock(Q,{key:ie.key},{default:withCtx(()=>[ie.icon?(openBlock(),createBlock(Z,{key:0,role:"menuitemicon",type:ie.icon},null,8,["type"])):createCommentVNode("",!0),createTextVNode(toDisplayString$1(ie.text),1)]),_:2},1024))),128))]),_:1},8,["style","onClick","selectedKeys"])),[[vShow,U.visible]])}const ContextMenu=_export_sfc(_sfc_main$b,[["render",_sfc_render$a],["__scopeId","data-v-cdf21f0b"]]),useHeadersStore=defineStore("Headers",{state(){return{userCurrent:{}}},actions:{getCurrentUser(){this.userCurrent={name:"\u516B\u4E00\u83DC\u5200",avatar:""}}}}),index$b="",index$a="",Main_vue_vue_type_style_index_0_scoped_f2954673_lang="",_sfc_main$a={props:{data:{type:Object}},components:{Markdown:defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index$e),void 0,import.meta.url))},setup(){const C=useGlobalsStore(),H=computed(()=>C.swaggerCurrentInstance),U=computed(()=>C.settings);return console.log("\u5B50\u7EC4\u4EF6\u6E32\u67D3"),{swaggerCurrentInstance:H,settings:U,title:"knife4j"}}},_hoisted_1$8={class:"title"},_hoisted_2$6={class:"description"},_hoisted_3$6=["innerHTML"],_hoisted_4$5=["innerHTML"],_hoisted_5$5=["innerHTML"],_hoisted_6$4=["innerHTML"],_hoisted_7$2=["innerHTML"],_hoisted_8$2=["innerHTML"],_hoisted_9$2=["innerHTML"],_hoisted_10$2=["innerHTML"],_hoisted_11$2=["innerHTML"],_hoisted_12$2=["innerHTML"],_hoisted_13$2=["innerHTML"],_hoisted_14$2=["innerHTML"],_hoisted_15$2=["innerHTML"],_hoisted_16$2=["innerHTML"],_hoisted_17$2=["innerHTML"],_hoisted_18$2=["innerHTML"],_hoisted_19$2=["innerHTML"],_hoisted_20$2=["innerHTML"],_hoisted_21$2=["innerHTML"];function _sfc_render$9(C,H,U,W,G,X){const Z=__unplugin_components_0$1,Q=__unplugin_components_1$1,ee=__unplugin_components_5$1,ie=__unplugin_components_2$1,te=__unplugin_components_7$1,ne=LayoutContent;return openBlock(),createBlock(ne,{class:"knife4j-body-content"},{default:withCtx(()=>[this.settings.enableHomeCustom?(openBlock(),createBlock(Q,{key:0,class:"markdown-body editormd-preview-container"},{default:withCtx(()=>[createVNode(Z,{source:W.settings.homeCustomLocation},null,8,["source"])]),_:1})):(openBlock(),createBlock(Q,{key:1},{default:withCtx(()=>[createVNode(ee,{span:24},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$8,[createBaseVNode("h2",null,toDisplayString$1(W.swaggerCurrentInstance.title),1)]),createBaseVNode("div",_hoisted_2$6,[createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.description")},null,8,_hoisted_3$6)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.description},null,8,_hoisted_4$5)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.author")},null,8,_hoisted_5$5)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.contact},null,8,_hoisted_6$4)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.version")},null,8,_hoisted_7$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.version},null,8,_hoisted_8$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.host")},null,8,_hoisted_9$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.host},null,8,_hoisted_10$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.basePath")},null,8,_hoisted_11$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.basePath},null,8,_hoisted_12$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.serviceUrl")},null,8,_hoisted_13$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.termsOfService},null,8,_hoisted_14$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.groupName")},null,8,_hoisted_15$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.name},null,8,_hoisted_16$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.groupUrl")},null,8,_hoisted_17$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.url},null,8,_hoisted_18$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.groupLocation")},null,8,_hoisted_19$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:W.swaggerCurrentInstance.location},null,8,_hoisted_20$2)]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:5},{default:withCtx(()=>[createBaseVNode("h3",{innerHTML:C.$t("homePage.apiCountNumber")},null,8,_hoisted_21$2)]),_:1}),createVNode(ee,{span:19},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(W.swaggerCurrentInstance.pathArrs,ae=>(openBlock(),createBlock(Q,{class:"content-line-count",key:ae.method},{default:withCtx(()=>[createVNode(ee,{span:3},{default:withCtx(()=>[createTextVNode(toDisplayString$1(ae.method),1)]),_:2},1024),createVNode(ee,{span:2},{default:withCtx(()=>[createVNode(te,{color:"#108ee9"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(ae.count),1)]),_:2},1024)]),_:2},1024),createVNode(ie,{class:"divider-count"})]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})]),_:1}))]),_:1})}const Main=_export_sfc(_sfc_main$a,[["render",_sfc_render$9],["__scopeId","data-v-f2954673"]]),Main$1=Object.freeze(Object.defineProperty({__proto__:null,default:Main},Symbol.toStringTag,{value:"Module"})),_sfc_main$9={name:"index"};function _sfc_render$8(C,H,U,W,G,X){return null}const Othermarkdown=_export_sfc(_sfc_main$9,[["render",_sfc_render$8]]),index$9=Object.freeze(Object.defineProperty({__proto__:null,default:Othermarkdown},Symbol.toStringTag,{value:"Module"})),_sfc_main$8={name:"Authorize"};function _sfc_render$7(C,H,U,W,G,X){return null}const Authorize=_export_sfc(_sfc_main$8,[["render",_sfc_render$7]]),Authorize$1=Object.freeze(Object.defineProperty({__proto__:null,default:Authorize},Symbol.toStringTag,{value:"Module"})),index$8="",index$7="",index$6="",index$5="",index$4="",index$3="",index$2="",GlobalParameters_vue_vue_type_style_index_0_scoped_f0dbe596_lang="",_sfc_main$7={props:{data:{type:Object}},components:{PlusOutlined:PlusOutlined$1},setup(){const C=useGlobalsStore(),H=computed(()=>C.language),{messages:U}=useI18n(),W=ref(null),G=reactive({name:"",value:"",in:"header"});return{language:H,messages:U,formRef:W,form:G}},data(){return{modelTitle:"\u65B0\u589E\u53C2\u6570",columns:[],visible:!1,pagination:!1,groupId:"",globalParameters:[],labelCol:{xs:{span:21},sm:{span:6}},wrapperCol:{xs:{span:27},sm:{span:15}}}},watch:{language:function(C,H){this.initI18n()}},created(){this.groupId=this.data.instance.id;const C=this.groupId;localStore.getItem(constants$1.globalParameter).then(H=>{if(console.log(H),H!=null)H[C]!=null&&H[C]!=null&&(this.globalParameters=H[C]);else{const U={};U[C]=[],localStore.setItem(constants$1.globalParameter,U)}}),this.initI18n()},methods:{getCurrentI18nInstance(){return this.messages[this.language]},initI18n(){var C=this.getCurrentI18nInstance();this.modelTitle=C.global.model,this.columns=C.global.tableHeader},headerContentChange(C){var H=C.target.value,U=C.target.getAttribute("data-key"),W=[];this.globalParameters.forEach(G=>{G.pkid!=U?W.push(G):W.push({name:G.name,value:H,in:G.in,pkid:U})}),this.globalParameters=W,this.storeGlobalParameters()},globalParamTypeChange(C,H){const U=this.globalParameters,W=H.data.attrs["data-key"],G=H.data.attrs["data-name"],X=G+C;if(this.globalParameters.filter(Q=>Q.name==G&&Q.in==C).length==0){const Q=[];this.globalParameters.forEach(ee=>{ee.pkid!=W?Q.push(ee):Q.push({name:ee.name,value:ee.value,in:C,pkid:X})}),this.globalParameters=Q,this.storeGlobalParameters()}else message$1.info("\u53C2\u6570\u5DF2\u5B58\u5728,\u4E0D\u53EF\u91CD\u590D\u6DFB\u52A0"),this.globalParameters=[],setTimeout(()=>{this.globalParameters=U},10)},storeGlobalParameters(){localStore.getItem(constants$1.globalParameter).then(C=>{const H=C;H[this.groupId]=this.globalParameters,localStore.setItem(constants$1.globalParameter,H)})},deleteParam(C){const H=[];this.globalParameters.forEach(function(U){U.name==C.name&&U.in==C.in||H.push(U)}),this.globalParameters=H,this.storeGlobalParameters()},handleOk(C){C.preventDefault();const H=this.groupId;this.formRef.validateFields().then(U=>{if(this.globalParameters.filter(G=>G.name==U.name&&G.in==U.in).length==0){const G=U.name+U.in,X={...U,pkid:G};this.globalParameters.push(X),localStore.getItem(constants$1.globalParameter).then(Z=>{const Q=Z;Q[H]=this.globalParameters,localStore.setItem(constants$1.globalParameter,Q)}),this.visible=!1}else message$1.info("\u53C2\u6570\u5DF2\u5B58\u5728,\u4E0D\u53EF\u91CD\u590D\u6DFB\u52A0")})},handleCancel(C){this.visible=!1},addGlobalParameters(){console.log(this.form),this.formRef.resetFields(),this.visible=!0}}},_hoisted_1$7={class:"globalparameters"},_hoisted_2$5=["innerHTML"],_hoisted_3$5={class:"globalparameters"},_hoisted_4$4={class:"globalparameters"},_hoisted_5$4={slot:"paramContentLabel","slot-scope":"text,record"},_hoisted_6$3={slot:"paramTypeLable","slot-scope":"text,record"};function _sfc_render$6(C,H,U,W,G,X){const Z=resolveComponent("plus-outlined"),Q=Button$1,ee=__unplugin_components_1$1,ie=__unplugin_components_4,te=SelectOption,ne=__unplugin_components_1$3,ae=__unplugin_components_5,oe=Input,se=__unplugin_components_7$2,le=Form$1,ce=Modal,ue=LayoutContent;return openBlock(),createBlock(ue,{class:"knife4j-body-content"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$7,[createBaseVNode("div",{class:"gptips",innerHTML:C.$t("global.note")},null,8,_hoisted_2$5)]),createBaseVNode("div",_hoisted_3$5,[createVNode(Q,{type:"primary",onClick:X.addGlobalParameters},{default:withCtx(()=>[createVNode(Z,{type:"plus"}),createBaseVNode("span",null,toDisplayString$1(C.$t("global.add")),1)]),_:1},8,["onClick"])]),createBaseVNode("div",_hoisted_4$4,[createVNode(ae,{columns:G.columns,rowKey:"pkid",size:"small",dataSource:G.globalParameters,pagination:G.pagination,bordered:""},{default:withCtx(()=>[createVNode(ee,{slot:"operation","slot-scope":"text,record"},{default:withCtx(()=>[createVNode(Q,{icon:"delete",type:"danger",onClick:H[0]||(H[0]=de=>X.deleteParam(C.record)),style:{"margin-left":"10px"}},{default:withCtx(()=>[createTextVNode(toDisplayString$1(C.$t("global.delete")),1)]),_:1})]),_:1}),createBaseVNode("template",_hoisted_5$4,[createVNode(ie,{onChange:X.headerContentChange,"data-key":C.record.pkid,defaultValue:C.text,autoSize:{minRows:2,maxRows:6},allowClear:""},null,8,["onChange","data-key","defaultValue"])]),createBaseVNode("template",_hoisted_6$3,[createVNode(ne,{defaultValue:C.text,onChange:X.globalParamTypeChange},{default:withCtx(()=>[createVNode(te,{"data-name":C.record.name,"data-key":C.record.pkid,value:"header"},{default:withCtx(()=>[createTextVNode("header")]),_:1},8,["data-name","data-key"]),createVNode(te,{"data-name":C.record.name,"data-key":C.record.pkid,value:"query"},{default:withCtx(()=>[createTextVNode("query")]),_:1},8,["data-name","data-key"])]),_:1},8,["defaultValue","onChange"])])]),_:1},8,["columns","dataSource","pagination"])]),createVNode(ce,{title:G.modelTitle,forceRender:"",cancelText:C.$t("global.cancel"),okText:C.$t("global.ok"),visible:G.visible,"onUpdate:visible":H[4]||(H[4]=de=>G.visible=de),onOk:X.handleOk,onCancel:X.handleCancel},{default:withCtx(()=>[createVNode(le,{model:W.form,ref:"formRef"},{default:withCtx(()=>[createVNode(se,{name:"name",rules:[{required:!0,message:""}],"label-col":G.labelCol,"wrapper-col":G.wrapperCol,label:C.$t("global.form.name")},{default:withCtx(()=>[createVNode(oe,{value:W.form.name,"onUpdate:value":H[1]||(H[1]=de=>W.form.name=de),placeholder:C.$t("global.form.validate.name")},null,8,["value","placeholder"])]),_:1},8,["label-col","wrapper-col","label"]),createVNode(se,{name:"value",rules:[{required:!0,message:""}],"label-col":G.labelCol,"wrapper-col":G.wrapperCol,label:C.$t("global.form.value")},{default:withCtx(()=>[createVNode(oe,{value:W.form.value,"onUpdate:value":H[2]||(H[2]=de=>W.form.value=de),placeholder:C.$t("global.form.validate.value")},null,8,["value","placeholder"])]),_:1},8,["label-col","wrapper-col","label"]),createVNode(se,{name:"in",rules:{required:!0,message:"\u8BF7\u9009\u62E9\u53C2\u6570\u7C7B\u578B"},"label-col":G.labelCol,"wrapper-col":G.wrapperCol,label:C.$t("global.form.type")},{default:withCtx(()=>[createVNode(ne,{value:W.form.in,"onUpdate:value":H[3]||(H[3]=de=>W.form.in=de)},{default:withCtx(()=>[createVNode(te,{value:"header"},{default:withCtx(()=>[createTextVNode("header")]),_:1}),createVNode(te,{value:"query"},{default:withCtx(()=>[createTextVNode("query")]),_:1})]),_:1},8,["value"])]),_:1},8,["label-col","wrapper-col","label"])]),_:1},8,["model"])]),_:1},8,["title","cancelText","okText","visible","onOk","onCancel"])]),_:1})}const GlobalParameters=_export_sfc(_sfc_main$7,[["render",_sfc_render$6],["__scopeId","data-v-f0dbe596"]]),GlobalParameters$1=Object.freeze(Object.defineProperty({__proto__:null,default:GlobalParameters},Symbol.toStringTag,{value:"Module"})),Settings_vue_vue_type_style_index_0_scoped_28c5d23b_lang="";let instance$1=null;const _sfc_main$6={props:{data:{type:Object}},setup(){const C=useGlobalsStore(),H=computed(()=>C.swaggerCurrentInstance),U=computed(()=>C.language);return{swaggerCurrentInstance:H,language:U}},data(){return{settings:constants$1.defaultSettings,hostValue:"",labelCol:{xs:{span:21},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:12}}}},beforeCreate(){instance$1=this,message$1.config({top:"100px"})},created(){const C=this.swaggerCurrentInstance.host;localStore.getItem(constants$1.globalSettingsKey).then(function(H){H!=null?((H.enableDynamicParameter==null||H.enableDynamicParameter==null)&&(H.enableDynamicParameter=!1),instance$1.settings=H,H.hasOwnProperty("enableHost")?(instance$1.settings.enableHostText==null||instance$1.settings.enableHostText==""||instance$1.settings.enableHostText==null)&&(instance$1.settings.enableHostText=C):(instance$1.settings.enableHost=!1,instance$1.settings.enableHostText=C)):(instance$1.settings.enableHostText=C,localStore.setItem(constants$1.globalSettingsKey,instance$1.settings))})},methods:{getCurrentI18nInstance(){return this.$i18n.messages[this.language]},hostChange(C){var H=C.target.value;this.settings.enableHostText=H,this.saveSettingForLocal()},checkboxChange(C){const H=this.settings[C];H!=null&&H!=null?this.settings[C]=!H:this.settings[C]=!0,C=="enableSwaggerBootstrapUi"?this.settings.enableSwaggerBootstrapUi?this.validateKnife4j():this.saveSettingForLocal():C=="enableHost"?this.settings.enableHost?this.validateHost():this.saveSettingForLocal():this.saveSettingForLocal()},filterOptionsChange(C){this.settings.enableFilterMultipartApiMethodType=C,this.saveSettingForLocal()},saveSettingForLocal(){localStore.setItem(constants$1.globalSettingsKey,instance$1.settings)},validateHost(){const C=this.settings.enableHostText;if(C==null||C==""||C==null)return this.settings.enableHost=!1,message$1.error("Please Check Host Value"),!1;const H=this.getCurrentI18nInstance();message$1.success(H.message.settingHost,2),this.saveSettingForLocal()},validateKnife4j(){let C=this.data.instance.extUrl;C.indexOf("/")==0&&(C=C.substr(1));let U=!0;DebugAxios({url:C,dataType:"json",type:"get"}).then(function(W){if(W!=null&&W.hasOwnProperty("swaggerBootstrapUi")){var G=W.swaggerBootstrapUi;if(G!=null&&G!=null&&G.hasOwnProperty("errorMsg")){var X=G.errorMsg;if(X!=null&&X!=null&&X!=""){var Z=constants$1.i18n.zh.message.settings.plusError+X;message$1.info(Z),U=!1}}}instance$1.settings.enableSwaggerBootstrapUi=U,instance$1.saveSettingForLocal()}).catch(function(W){message$1.info(constants$1.i18n.zh.message.settings.plusFail),U=!1,instance$1.settings.enableSwaggerBootstrapUi=U,instance$1.saveSettingForLocal()})},saveSettings(){if(this.settings.enableFilterMultipartApis||(this.settings.enableFilterMultipartApiMethodType="POST"),this.settings.enableSwaggerBootstrapUi){let C=this.data.instance.extUrl;C.indexOf("/")==0&&(C=C.substr(1)),C="/tx/fff/www/xx";let U=!0;DebugAxios({url:C,dataType:"json",type:"get"}).then(function(W){if(W!=null&&W.hasOwnProperty("swaggerBootstrapUi")){var G=W.swaggerBootstrapUi;if(G!=null&&G!=null&&G.hasOwnProperty("errorMsg")){var X=G.errorMsg;if(X!=null&&X!=null&&X!=""){var Z=constants$1.i18n.zh.message.settings.plusError+X;message$1.info(Z),U=!1}}}instance$1.settings.enableSwaggerBootstrapUi=U,instance$1.saveSettingForLocal(U)}).catch(function(W){message$1.info(constants$1.i18n.zh.message.settings.plusFail),U=!1,instance$1.settings.enableSwaggerBootstrapUi=U,instance$1.saveSettingForLocal(U)})}else instance$1.saveSettingForLocal(!0)}}},_hoisted_1$6=["innerHTML"],_hoisted_2$4=["innerHTML"],_hoisted_3$4=["innerHTML"];function _sfc_render$5(C,H,U,W,G,X){const Z=__unplugin_components_1$1,Q=Checkbox,ee=__unplugin_components_5$1,ie=__unplugin_components_2$1,te=SelectOption,ne=__unplugin_components_1$3,ae=Input,oe=LayoutContent;return openBlock(),createBlock(oe,{class:"knife4j-body-content"},{default:withCtx(()=>[createVNode(Z,{class:"settingConfig"},{default:withCtx(()=>[createVNode(Z,{class:"gptips",innerHTML:C.$t("message.settingTip")},null,8,["innerHTML"])]),_:1}),createVNode(Z,{class:"settingConfig"},{default:withCtx(()=>[createVNode(Z,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:24},{default:withCtx(()=>[createVNode(Q,{onChange:H[0]||(H[0]=se=>X.checkboxChange("enableRequestCache")),checked:G.settings.enableRequestCache},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:C.$t("settings.openCache")},null,8,_hoisted_1$6)]),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Z,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:24},{default:withCtx(()=>[createVNode(Q,{onChange:H[1]||(H[1]=se=>X.checkboxChange("enableDynamicParameter")),checked:G.settings.enableDynamicParameter},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:C.$t("settings.dynamicParameter")},null,8,_hoisted_2$4)]),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(Z,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:24},{default:withCtx(()=>[createVNode(Q,{onChange:H[2]||(H[2]=se=>X.checkboxChange("enableFilterMultipartApis")),checked:G.settings.enableFilterMultipartApis},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:C.$t("settings.apiFilter")},null,8,_hoisted_3$4)]),_:1},8,["checked"]),createVNode(ne,{style:{width:"140px"},onChange:X.filterOptionsChange,value:G.settings.enableFilterMultipartApiMethodType},{default:withCtx(()=>[createVNode(te,{value:"GET"},{default:withCtx(()=>[createTextVNode("GET")]),_:1}),createVNode(te,{value:"POST"},{default:withCtx(()=>[createTextVNode("POST")]),_:1}),createVNode(te,{value:"PUT"},{default:withCtx(()=>[createTextVNode("PUT")]),_:1}),createVNode(te,{value:"DELETE"},{default:withCtx(()=>[createTextVNode("DELETE")]),_:1}),createVNode(te,{value:"PATCH"},{default:withCtx(()=>[createTextVNode("PATCH")]),_:1}),createVNode(te,{value:"OPTIONS"},{default:withCtx(()=>[createTextVNode("OPTIONS")]),_:1}),createVNode(te,{value:"HEAD"},{default:withCtx(()=>[createTextVNode("HEAD")]),_:1})]),_:1},8,["onChange","value"])]),_:1})]),_:1}),createVNode(ie,{class:"divider"}),createVNode(ie,{class:"divider"}),createVNode(Z,{class:"content-line"},{default:withCtx(()=>[createVNode(ee,{span:24},{default:withCtx(()=>[createVNode(Q,{onChange:H[3]||(H[3]=se=>X.checkboxChange("enableHost")),checked:G.settings.enableHost},{default:withCtx(()=>[createBaseVNode("span",null,[createTextVNode("Host: "),createVNode(ae,{onChange:X.hostChange,style:{width:"300px"},value:G.settings.enableHostText},null,8,["onChange","value"])])]),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(ie,{class:"divider"})]),_:1})]),_:1})}const Settings=_export_sfc(_sfc_main$6,[["render",_sfc_render$5],["__scopeId","data-v-28c5d23b"]]),Settings$1=Object.freeze(Object.defineProperty({__proto__:null,default:Settings},Symbol.toStringTag,{value:"Module"})),index$1="",useknife4jModels=defineStore("knife4jModels",{state(){return{instance:{},load:{},tags:{}}},actions:{setTags(C,H){},setValue(C,H){console.log(this);var U=this,W=this.instance[C];if(W==null||W==null){var G=H;for(var X in G){var Z=G[X];if(Z!=null&&Z!=null){var Q=Z.params;Q!=null&&Q!=null&&Q.forEach(function(ee){ee.schema&&(ee.children=U.deepModel(G,ee,ee))})}}this.instance[C]=G}},deepModel(C,H,U){var W=[],G=this,X=C[H.schemaValue];return X!=null&&X!=null&&X.params!=null&&X.params!=null&&X.params.forEach(function(Z){var Q=G.deepCopy(Z);Q.pid=H.id,Q.schema&&(U.parentTypes.push(H.schemaValue),U.parentTypes.indexOf(Q.schemaValue)==-1&&(Q.children=G.deepModel(C,Q,U))),W.push(Q)}),W},deepCopy(C){var H={childrenTypes:C.childrenTypes,def:C.def,description:C.description,enum:C.enum,example:C.example,id:C.id,ignoreFilterName:C.ignoreFilterName,in:C.in,level:C.level,name:C.name,parentTypes:C.parentTypes,pid:C.pid,readOnly:C.readOnly,require:C.require,schema:C.schema,schemaValue:C.schemaValue,show:C.show,txtValue:C.txtValue,type:C.type,validateInstance:C.validateInstance,validateStatus:C.validateStatus,value:C.value};return H},getByModelName(C,H){return this.instance[C][H]},addModels(C,H,U){utils$c.checkUndefined(this.instance[C])||this.initInstance(C),this.instance[C][H]=U},exists(C,H){utils$c.checkUndefined(this.instance[C])||this.initInstance(C);var U=!1,W=this.instance[C][H];return W!=null&&W!=null&&(U=!0),U}}}),SwaggerModels_vue_vue_type_style_index_0_scoped_3cb5d641_lang="",_sfc_main$5={props:{data:{type:Object}},setup(C){const H=ref(!0),U=ref(!1),W=ref([]),{messages:G}=useI18n(),X=useGlobalsStore(),Z=computed(()=>X.swagger),Q=computed(()=>G.value[X.language].table.swaggerModelsColumns),ee=useknife4jModels();function ie(){const ne=constants$1.globalTreeTableModelParams+C.data.instance.id,ae=C.data.instance.swaggerTreeTableModels;if(ee.setValue(ne,ae),utils$c.checkUndefined(ae))for(const oe in ae){const se=parseInt(Math.random()*6+1,10),le={id:oe,name:oe,load:!1,data:[],random:se};le.modelClass=function(){let ce="panel-default";switch(se){case 1:ce="panel-success";break;case 2:ce="panel-success";break;case 3:ce="panel-info";break;case 4:ce="panel-warning";break;case 5:ce="panel-danger";break;case 6:ce="panel-default";break}return ce},W.value.push(le)}}function te(ne){const ae=constants$1.globalTreeTableModelParams+C.data.instance.id;if(utils$c.arrNotEmpty(ne)){const oe=ne.length-1,se=ne[oe];W.value.forEach(function(le){if(le.id==se&&!le.load){const ce=[];let ue=ee.getByModelName(ae,le.name);ue=Z.value.analysisDefinitionRefTableModel(C.data.instance.id,ue),console.log(ue.children),utils$c.checkUndefined(ue)&&utils$c.arrNotEmpty(ue.params)&&ue.params.forEach(function(de){const ve={children:de.children,childrenTypes:de.childrenTypes,def:de.def,description:de.description,enum:de.enum,example:de.example,id:de.id,ignoreFilterName:de.ignoreFilterName,in:de.in,level:de.level,name:de.name,parentTypes:de.parentTypes,pid:"-1",readOnly:de.readOnly,require:de.require,schema:de.schema,schemaValue:de.schemaValue,show:de.show,txtValue:de.txtValue,type:de.type,validateInstance:de.validateInstance,validateStatus:de.validateStatus,value:de.value};ce.push(ve)}),le.data=ce,le.load=!0}}),console.log(W.value)}H.value=!0}return ie(),watch(()=>W.value,()=>{for(let ne of W.value)console.log(ne.data)}),{columns:Q,expanRows:H,page:U,modelNames:W,swagger:Z,modelChange:te}}},_hoisted_1$5={class:"swaggermododel"};function _sfc_render$4(C,H,U,W,G,X){const Z=__unplugin_components_5,Q=__unplugin_components_1,ee=Collapse,ie=LayoutContent;return openBlock(),createBlock(ie,{class:"knife4j-body-content"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$5,[createVNode(ee,{onChange:W.modelChange},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(W.modelNames,te=>(openBlock(),createBlock(Q,{header:te.name,key:te.id,class:normalizeClass(te.modelClass())},{default:withCtx(()=>[te.load?(openBlock(),createBlock(Z,{key:0,columns:W.columns,dataSource:te.data,rowKey:ne=>ne.id+ne.name,size:"middle",pagination:W.page},null,8,["columns","dataSource","rowKey","pagination"])):createCommentVNode("",!0)]),_:2},1032,["header","class"]))),128))]),_:1},8,["onChange"])])]),_:1})}const SwaggerModels=_export_sfc(_sfc_main$5,[["render",_sfc_render$4],["__scopeId","data-v-3cb5d641"]]),SwaggerModels$1=Object.freeze(Object.defineProperty({__proto__:null,default:SwaggerModels},Symbol.toStringTag,{value:"Module"})),resumecss=`
|
||
.content-line {
|
||
height: 25px;
|
||
line-height: 25px;
|
||
}
|
||
.content-line-count {
|
||
height: 35px;
|
||
line-height: 35px;
|
||
}
|
||
.title {
|
||
margin-top: 25px;
|
||
}
|
||
.knife4j-description {
|
||
/* width: 90%;
|
||
margin: 15px auto; */
|
||
margin-top: 5px;
|
||
}
|
||
.divider {
|
||
margin: 4px 0;
|
||
}
|
||
.divider-count {
|
||
margin: 8px 0;
|
||
}
|
||
.knife4j-document {
|
||
margin-top: 30px;
|
||
}
|
||
.api-tab {
|
||
margin-top: 15px;
|
||
|
||
.ant-tag {
|
||
height: 32px;
|
||
line-height: 32px;
|
||
}
|
||
}
|
||
.knife4j-menu-api-deprecated {
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.knife4j-api-title {
|
||
margin-top: 10px;
|
||
margin-bottom: 5px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #616368;
|
||
height: 35px;
|
||
line-height: 35px;
|
||
}
|
||
.knife4j-api-row {
|
||
height: 45px;
|
||
line-height: 45px;
|
||
}
|
||
|
||
.knife4j-api-summary {
|
||
border-color: #49cc90;
|
||
display: -webkit-box;
|
||
display: -ms-flexbox;
|
||
display: flex;
|
||
-webkit-box-align: center;
|
||
-ms-flex-align: center;
|
||
align-items: center;
|
||
padding: 2px;
|
||
cursor: pointer;
|
||
}
|
||
.knife4j-api-summary-method {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
min-width: 80px;
|
||
padding: 6px 15px;
|
||
text-align: center;
|
||
border-radius: 3px;
|
||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
||
font-family: Titillium Web, sans-serif;
|
||
color: #fff;
|
||
}
|
||
.knife4j-api-summary-path {
|
||
font-size: 14px;
|
||
display: flex;
|
||
-webkit-box-flex: 0;
|
||
-ms-flex: 0 3 auto;
|
||
flex: 0 3 auto;
|
||
-webkit-box-align: center;
|
||
-ms-flex-align: center;
|
||
align-items: center;
|
||
word-break: break-all;
|
||
padding: 0 32px;
|
||
}
|
||
|
||
.knife4j-api-post {
|
||
border-color: #49cc90;
|
||
background: rgba(73, 204, 144, 0.1);
|
||
}
|
||
.knife4j-api-post .knife4j-api-summary-method {
|
||
background: #49cc90;
|
||
}
|
||
|
||
.knife4j-api-get {
|
||
border-color: #61affe;
|
||
background: rgba(97, 175, 254, 0.1);
|
||
}
|
||
.knife4j-api-get .knife4j-api-summary-method {
|
||
background: #61affe;
|
||
}
|
||
.knife4j-api-head {
|
||
border-color: #9012fe;
|
||
background: rgba(144, 18, 254, 0.1);
|
||
}
|
||
.knife4j-api-head .knife4j-api-summary-method {
|
||
background: #9012fe;
|
||
}
|
||
.knife4j-api-put {
|
||
border-color: #fca130;
|
||
background: rgba(252, 161, 48, 0.1);
|
||
}
|
||
.knife4j-api-put .knife4j-api-summary-method {
|
||
background: #fca130;
|
||
}
|
||
.knife4j-api-delete {
|
||
border-color: #f93e3e;
|
||
background: rgba(249, 62, 62, 0.1);
|
||
}
|
||
.knife4j-api-delete .knife4j-api-summary-method {
|
||
background: #f93e3e;
|
||
}
|
||
.knife4j-api-options {
|
||
border-color: #0d5aa7;
|
||
background: rgba(13, 90, 167, 0.1);
|
||
}
|
||
.knife4j-api-options .knife4j-api-summary-method {
|
||
background: #0d5aa7;
|
||
}
|
||
.knife4j-api-patch {
|
||
border-color: #50e3c2;
|
||
background: rgba(80, 227, 194, 0.1);
|
||
}
|
||
.knife4j-api-patch .knife4j-api-summary-method {
|
||
background: #50e3c2;
|
||
}
|
||
#knife4jDoc ul{
|
||
padding-left: 10px;
|
||
list-style: none;
|
||
counter-reset: ordered;
|
||
}
|
||
|
||
#knife4jDoc ul li:before {
|
||
counter-increment: ordered;
|
||
content: counters(ordered,".")" ";
|
||
color:#1890ff;
|
||
}
|
||
.api-basic {
|
||
padding: 11px;
|
||
}
|
||
.api-basic-title {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
}
|
||
.api-basic-body {
|
||
font-size: 14px;
|
||
font-family: -webkit-body;
|
||
}
|
||
.knife4j-api-editor-show {
|
||
margin: 15px 0;
|
||
font: 100 12px/18px monaco, andale mono, courier new;
|
||
padding: 10px 12px;
|
||
border: #ccc 1px solid;
|
||
border-left-width: 4px;
|
||
background-color: #fefefe;
|
||
box-shadow: 0 0 4px #eee;
|
||
word-break: break-all;
|
||
word-wrap: break-word;
|
||
color: #444;
|
||
}
|
||
.knife4j-api-editor-show .string { color: green; } /*\u5B57\u7B26\u4E32\u7684\u6837\u5F0F*/
|
||
.knife4j-api-editor-show .number { color: darkorange; } /*\u6570\u5B57\u7684\u6837\u5F0F*/
|
||
.knife4j-api-editor-show .boolean { color: blue; } /*\u5E03\u5C14\u578B\u6570\u636E\u7684\u6837\u5F0F*/
|
||
.knife4j-api-editor-show .null { color: magenta; } /*null\u503C\u7684\u6837\u5F0F*/
|
||
.knife4j-api-editor-show .key { color: red; } /*key\u503C\u7684\u6837\u5F0F*/
|
||
.api-description {
|
||
border-left: 4px solid #ddd;
|
||
line-height: 30px;
|
||
}
|
||
.api-body-desc {
|
||
padding: 10px;
|
||
min-height: 35px;
|
||
box-sizing: border-box;
|
||
border: 1px solid #e8e8e8;
|
||
}
|
||
.ant-card-body {
|
||
padding: 5px;
|
||
}
|
||
.api-title {
|
||
margin-top: 10px;
|
||
margin-bottom: 5px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
height: 30px;
|
||
line-height: 30px;
|
||
border-left: 4px solid #00ab6d;
|
||
text-indent: 8px;
|
||
}
|
||
.content-line {
|
||
height: 25px;
|
||
line-height: 25px;
|
||
}
|
||
.content-line-count {
|
||
height: 35px;
|
||
line-height: 35px;
|
||
}
|
||
.divider {
|
||
margin: 4px 0;
|
||
}
|
||
.knife4j-doc-m{
|
||
position: fixed;
|
||
height: 500px;
|
||
width: 400px;
|
||
border: 1px solid #b7b4b4;
|
||
overflow-y: auto;
|
||
right: 12px;
|
||
top: 40px;
|
||
z-index: 9999;
|
||
background: #fcfafa;
|
||
}
|
||
`;function getDocumentVueTemplates(C,H,U){return`<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||
<title>${C}</title>
|
||
<link rel="stylesheet" href="https://unpkg.com/ant-design-vue@1.4.10/dist/antd.min.css" />
|
||
<style>
|
||
${H}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div id="knife4jDocument" class="resume_preview_page" style="margin:10px auto;width:88%">
|
||
<div class="htmledit_views" >
|
||
<a-row>
|
||
<!--\u57FA\u7840\u4FE1\u606F-->
|
||
<a-row>
|
||
<a-col :span="24">
|
||
<div class="title">
|
||
<h2>{{instance.title}}</h2>
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u7B80\u4ECB</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.description" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u4F5C\u8005</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.contact" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u7248\u672C</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.version" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>host</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.host" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>basePath</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.basePath" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u670D\u52A1Url</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.termsOfService" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u5206\u7EC4\u540D\u79F0</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.name" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u5206\u7EC4url</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.url" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u5206\u7EC4location</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.location" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>\u63A5\u53E3\u7EDF\u8BA1\u4FE1\u606F</h3>
|
||
</a-col>
|
||
<a-col :span="19">
|
||
<a-row class="content-line-count" v-for="param in instance.pathArrs" :key="param.method">
|
||
<a-col :span="3">
|
||
{{param.method}}
|
||
</a-col>
|
||
<a-col :span="2">
|
||
<a-tag color="#108ee9">{{param.count}}</a-tag>
|
||
</a-col>
|
||
<a-divider class="divider-count" />
|
||
</a-row>
|
||
</a-col>
|
||
</a-row>
|
||
</div>
|
||
</a-col>
|
||
</a-row>
|
||
|
||
<!--\u76EE\u5F55-->
|
||
<a-row id="knife4j-doc-m" class="knife4j-doc-m">
|
||
<a-row style="float: right;width: 57px;z-index: 10000;overflow: hidden;">
|
||
<a-button type="link" id="btnHide">\u9690\u85CF</a-button>
|
||
</a-row>
|
||
<a-row v-if="hideShow" id="knife4jDoc">
|
||
<ul>
|
||
<li><a href="#knife4jDocument">\u4E3B\u9875</a></li>
|
||
<li v-for="tag in tags" :key="tag.name">
|
||
<a :href="'#'+tag.name">{{tag.name}}</a>
|
||
<ul>
|
||
<li v-for="c in tag.childrens" :key="c.id"><a :href="'#'+c.operationId">{{c.summary}}</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</a-row>
|
||
</a-row>
|
||
<!--\u5206\u7EC4API\u4FE1\u606F-->
|
||
<!--\u904D\u5386tags-->
|
||
<a-row v-for="tag in tags" :key="tag.name">
|
||
<h1 :id="tag.name">{{tag.name}}</h1>
|
||
<div class="knife4j-document" v-for="api in tag.childrens">
|
||
<!--\u63A5\u53E3\u57FA\u672C\u4FE1\u606F-->
|
||
<a-row>
|
||
<a-row :id="api.operationId" class="knife4j-api-title">
|
||
<span v-if="api.deprecated" class="knife4j-menu-api-deprecated">
|
||
{{ api.summary }}
|
||
</span>
|
||
<span v-else>
|
||
{{ api.summary }}
|
||
</span>
|
||
</a-row>
|
||
<a-row :class="'knife4j-api-' + api.methodType.toLowerCase()">
|
||
<div class="knife4j-api-summary">
|
||
<span class="knife4j-api-summary-method">{{ api.methodType }}</span>
|
||
<span class="knife4j-api-summary-path">{{ api.showUrl }}</span>
|
||
</div>
|
||
</a-row>
|
||
<a-row class="knife4j-api-row">
|
||
<a-col :span="12">
|
||
<a-row>
|
||
<a-col class="api-basic-title" :span="6">\u8BF7\u6C42\u6570\u636E\u7C7B\u578B</a-col>
|
||
{{ api.consumes }}
|
||
</a-row>
|
||
</a-col>
|
||
<a-col :span="12">
|
||
<a-row>
|
||
<a-col class="api-basic-title" :span="6">\u54CD\u5E94\u6570\u636E\u7C7B\u578B</a-col>
|
||
{{ api.produces }}
|
||
</a-row>
|
||
</a-col>
|
||
</a-row>
|
||
</a-row>
|
||
<div v-if="api.author">
|
||
<div class="api-title">
|
||
\u5F00\u53D1\u8005
|
||
</div>
|
||
<div v-if="api.author" v-html="api.author" class="api-body-desc"></div>
|
||
</div>
|
||
<!--\u63A5\u53E3\u63CF\u8FF0-->
|
||
<div v-if="api.description">
|
||
<div class="api-title">
|
||
\u63A5\u53E3\u63CF\u8FF0
|
||
</div>
|
||
<div
|
||
v-if="api.description"
|
||
v-html="api.description"
|
||
class="api-body-desc"
|
||
></div>
|
||
</div>
|
||
<!--\u8BF7\u6C42\u793A\u4F8B-->
|
||
<div v-if="api.requestValue">
|
||
<div class="api-title">
|
||
\u8BF7\u6C42\u793A\u4F8B
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-html="formaterJson(api.requestValue)"
|
||
></pre>
|
||
</div>
|
||
<div class="api-title">
|
||
\u8BF7\u6C42\u53C2\u6570
|
||
</div>
|
||
<a-table default-expand-all-rows :columns="columns" :data-source="api.reqParameters"
|
||
:row-key="genUnionTableKey"
|
||
size="small"
|
||
:pagination="page" >
|
||
<template slot="requireTemplate" slot-scope="text">
|
||
<span v-if="text" style="color:red">{{ text.toLocaleString() }}</span>
|
||
<span v-else>{{ text.toLocaleString() }}</span>
|
||
</template>
|
||
|
||
<template slot="typeTemplate" slot-scope="text">
|
||
<span :class="'knife4j-request-' + text">{{ text }}</span>
|
||
</template>
|
||
|
||
<template slot="datatypeTemplate" slot-scope="text, record">
|
||
<data-type :text="text" :record="record"></data-type>
|
||
</template>
|
||
</a-table>
|
||
<!--\u54CD\u5E94\u72B6\u6001-->
|
||
<div class="api-title">
|
||
\u54CD\u5E94\u72B6\u6001
|
||
</div>
|
||
<a-table
|
||
:columns="responseStatuscolumns"
|
||
:data-source="api.responseCodes"
|
||
row-key="code"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
<template slot="descriptionTemplate" slot-scope="text">
|
||
<div v-html="text"></div>
|
||
</template>
|
||
</a-table>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<!--\u54CD\u5E94\u53C2\u6570\u9700\u8981\u5224\u65AD\u662F\u5426\u5B58\u5728\u591A\u4E2Acode-schema\u7684\u60C5\u51B5-->
|
||
<div v-if="api.multipartResponseSchema">
|
||
<!--\u591A\u4E2A\u54CD\u5E94\u7F16\u7801code\u7684\u60C5\u51B5\u5728\u79BB\u7EBF\u6587\u6863\u4E2D\u9700\u8981\u5355\u72EC\u904D\u5386\u5206\u5F00-->
|
||
<a-tabs v-for="resp in api.multipCodeDatas" :key="resp.code">
|
||
<a-tab-pane :tab="resp.code">
|
||
<!--\u5224\u65AD\u54CD\u5E94\u5934-->
|
||
<div v-if="resp.responseHeaderParameters">
|
||
<div class="api-title">
|
||
\u54CD\u5E94Header
|
||
</div>
|
||
<a-table
|
||
:columns="responseHeaderColumns"
|
||
:data-source="resp.responseHeaderParameters"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
</div>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<div class="api-title">
|
||
\u54CD\u5E94\u53C2\u6570
|
||
</div>
|
||
<a-table
|
||
:columns="responseParametersColumns"
|
||
:data-source="resp.data"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
<div class="api-title">
|
||
\u54CD\u5E94\u793A\u4F8B
|
||
</div>
|
||
<div class="api-editor-show" v-if="resp.responseBasicType">
|
||
{{ resp.responseText }}
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-else
|
||
v-html="formaterJson(resp.responseValue)"
|
||
></pre>
|
||
<!-- <editor-show :value="resp.responseBasicType ? resp.responseText : resp.responseValue"></editor-show> -->
|
||
<!-- <editor :value="resp.responseBasicType ? resp.responseText : resp.responseValue" @init="multiResponseSampleEditorInit" lang="json" theme="eclipse" width="100%" :height="editorMultiHeight"></editor> -->
|
||
</a-tab-pane>
|
||
</a-tabs>
|
||
</div>
|
||
<div v-else>
|
||
<!--\u5224\u65AD\u54CD\u5E94\u5934-->
|
||
<div v-if="api.responseHeaderParameters">
|
||
<div class="api-title">
|
||
\u54CD\u5E94Header
|
||
</div>
|
||
<a-table
|
||
:columns="responseHeaderColumns"
|
||
:data-source="api.responseHeaderParameters"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
</div>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<div class="api-title">
|
||
\u54CD\u5E94\u53C2\u6570
|
||
</div>
|
||
<a-table
|
||
:columns="responseParametersColumns"
|
||
:data-source="api.multipData.data"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
<div class="api-title">
|
||
\u54CD\u5E94\u793A\u4F8B
|
||
</div>
|
||
<div class="api-editor-show" v-if="api.multipData.responseBasicType">
|
||
{{ api.multipData.responseText }}
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-else
|
||
v-html="formaterJson(api.multipData.responseValue)"
|
||
></pre>
|
||
</div>
|
||
|
||
|
||
<!--\u63A5\u53E3\u904D\u5386\u7ED3\u675F-->
|
||
</div>
|
||
</a-row>
|
||
</a-row>
|
||
|
||
</div>
|
||
</div>
|
||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.9/dist/vue.js"><\/script>
|
||
<script src="https://cdn.jsdelivr.net/npm/ant-design-vue@1.4.10/dist/antd.min.js"><\/script>
|
||
<script type="text/javascript">
|
||
function getData(){
|
||
var datas=${U};
|
||
//console(datas);
|
||
return datas;
|
||
}
|
||
|
||
function main(){
|
||
//\u5F53\u524D\u63A5\u53E3json\u6570\u636E
|
||
var d=getData();
|
||
//\u8BF7\u6C42\u53C2\u6570table-header
|
||
const requestcolumns = [
|
||
{
|
||
title: "\u53C2\u6570\u540D\u79F0",
|
||
dataIndex: "name",
|
||
width: "30%"
|
||
},
|
||
{
|
||
title: "\u53C2\u6570\u8BF4\u660E",
|
||
dataIndex: "description",
|
||
width: "25%"
|
||
},
|
||
{
|
||
title: "\u8BF7\u6C42\u7C7B\u578B",
|
||
dataIndex: "in",
|
||
scopedSlots: { customRender: "typeTemplate" }
|
||
},
|
||
{
|
||
title: "\u662F\u5426\u5FC5\u987B",
|
||
dataIndex: "require",
|
||
scopedSlots: { customRender: "requireTemplate" }
|
||
},
|
||
{
|
||
title: "\u6570\u636E\u7C7B\u578B",
|
||
dataIndex: "type",
|
||
scopedSlots: { customRender: "datatypeTemplate" }
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schemaValue",
|
||
width: "15%"
|
||
}
|
||
];
|
||
//\u54CD\u5E94\u72B6\u6001table-header
|
||
const responseStatuscolumns = [
|
||
{
|
||
title: "\u72B6\u6001\u7801",
|
||
dataIndex: "code",
|
||
width: "20%"
|
||
},
|
||
{
|
||
title: "\u8BF4\u660E",
|
||
dataIndex: "description",
|
||
width: "55%",
|
||
scopedSlots: { customRender: "descriptionTemplate" }
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schema"
|
||
}
|
||
];
|
||
//\u54CD\u5E94\u5934-header
|
||
const responseHeaderColumns = [
|
||
{
|
||
title: "\u53C2\u6570\u540D\u79F0",
|
||
dataIndex: "name",
|
||
width: "30%"
|
||
},
|
||
{
|
||
title: "\u53C2\u6570\u8BF4\u660E",
|
||
dataIndex: "description",
|
||
width: "55%"
|
||
},
|
||
{
|
||
title: "\u6570\u636E\u7C7B\u578B",
|
||
dataIndex: "type"
|
||
}
|
||
];
|
||
const responseParametersColumns = [
|
||
{
|
||
title: "\u53C2\u6570\u540D\u79F0",
|
||
dataIndex: "name",
|
||
width: "35%"
|
||
},
|
||
{
|
||
title: "\u53C2\u6570\u8BF4\u660E",
|
||
dataIndex: "description",
|
||
width: "40%"
|
||
},
|
||
{
|
||
title: "\u7C7B\u578B",
|
||
dataIndex: "type"
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schemaValue",
|
||
width: "15%"
|
||
}
|
||
];
|
||
//dataType\u7EC4\u4EF6
|
||
var dataType={
|
||
name: "DataType",
|
||
props: {
|
||
text: {
|
||
type: String,
|
||
required: true
|
||
},
|
||
record: {
|
||
type: Object,
|
||
required: true
|
||
}
|
||
},
|
||
data:function(){
|
||
return {
|
||
validators: []
|
||
}
|
||
},
|
||
created() {
|
||
this.intiValidator();
|
||
},
|
||
methods: {
|
||
intiValidator() {
|
||
var that = this;
|
||
const record = this.record;
|
||
if (record.validateInstance != null) {
|
||
var len = that.getJsonKeyLength(record.validateInstance);
|
||
var _size = 0;
|
||
for (var k in record.validateInstance) {
|
||
var str = k + ":" + record.validateInstance[k];
|
||
that.validators.push({ key: k, val: str });
|
||
}
|
||
}
|
||
},
|
||
getJsonKeyLength(json) {
|
||
var size = 0;
|
||
if (json != null) {
|
||
for (var key in json) {
|
||
if (json.hasOwnProperty(key)) size++;
|
||
}
|
||
}
|
||
return size;
|
||
}
|
||
},
|
||
template:'<div><span v-if="!record.validateStatus">{{text}}</span><span v-else class="knife4j-request-validate-jsr"><a-tooltip placement="right"><template slot="title"><div v-for="pt in validators" :key="pt.key">{{pt.val}}</div></template>{{text}}</a-tooltip></span></div>'
|
||
|
||
}
|
||
var data={
|
||
tags:d.tags,
|
||
instance:d.instance,
|
||
columns: requestcolumns,
|
||
responseHeaderColumns: responseHeaderColumns,
|
||
responseStatuscolumns: responseStatuscolumns,
|
||
responseParametersColumns: responseParametersColumns,
|
||
expanRows: true,
|
||
//\u63A5\u6536\u4E00\u4E2A\u54CD\u5E94\u4FE1\u606F\u5BF9\u8C61,\u904D\u5386\u5F97\u5230\u6811\u5F62\u7ED3\u6784\u7684\u503C
|
||
multipCode: false,
|
||
multipCodeDatas: [],
|
||
multipData: {},
|
||
page: false,
|
||
hideShow:true
|
||
}
|
||
new Vue({
|
||
el:"#knife4jDocument",
|
||
components:{
|
||
"DataType":dataType
|
||
},
|
||
data(){
|
||
return data
|
||
},
|
||
mounted(){
|
||
//\u521D\u59CB\u5316\u5B8C\u6210
|
||
//\u8D4B\u4E88\u70B9\u51FB\u4E8B\u4EF6;
|
||
document.getElementById("btnHide").addEventListener("click",function(){
|
||
//\u9690\u85CF\u76EE\u5F55
|
||
var doc=document.getElementById("knife4jDoc");
|
||
var docGlobal=document.getElementById("knife4j-doc-m");
|
||
if(doc.style.display=="none"){
|
||
doc.style.display="";
|
||
document.getElementById("btnHide").innerHTML="\u9690 \u85CF";
|
||
docGlobal.style.width="400px";
|
||
docGlobal.style.height="500px";
|
||
}else{
|
||
doc.style.display="none";
|
||
document.getElementById("btnHide").innerHTML="\u76EE \u5F55";
|
||
docGlobal.style.width="52px";
|
||
docGlobal.style.height="35px";
|
||
}
|
||
})
|
||
},
|
||
created(){
|
||
|
||
},
|
||
methods:{
|
||
genUnionTableKey() {
|
||
var key="param"+new Date().getTime().toString() + Math.floor(Math.random() * 1000000).toString();
|
||
return key;
|
||
},
|
||
formaterJson(json) {
|
||
try {
|
||
if (typeof json != "string") {
|
||
json = JSON.stringify(json, undefined, 2);
|
||
}
|
||
json = json
|
||
.replace(/&/g, "&")
|
||
.replace(/</g, "<")
|
||
.replace(/>/g, ">");
|
||
return json.replace(
|
||
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(s*:)?|\b(true|false|null)\b|-?d+(?:.d*)?(?:[eE][+-]?d+)?)/g,
|
||
function(match) {
|
||
var cls = "number";
|
||
if (/^"/.test(match)) {
|
||
if (/:$/.test(match)) {
|
||
cls = "key";
|
||
} else {
|
||
cls = "string";
|
||
}
|
||
} else if (/true|false/.test(match)) {
|
||
cls = "boolean";
|
||
} else if (/null/.test(match)) {
|
||
cls = "null";
|
||
}
|
||
return '<span class="' + cls + '">' + match + "</span>";
|
||
}
|
||
);
|
||
} catch (error) {
|
||
return json;
|
||
}
|
||
}
|
||
}
|
||
})
|
||
|
||
}
|
||
|
||
main();
|
||
|
||
|
||
<\/script>
|
||
</body>
|
||
</html>`}function getDocumentVueTemplatesUS(C,H,U){return`<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||
<title>${C}</title>
|
||
<link rel="stylesheet" href="https://unpkg.com/ant-design-vue@1.4.10/dist/antd.min.css" />
|
||
<style>
|
||
${H}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div id="knife4jDocument" class="resume_preview_page" style="margin:10px auto;width:88%">
|
||
<div class="htmledit_views" >
|
||
<a-row>
|
||
<!--\u57FA\u7840\u4FE1\u606F-->
|
||
<a-row>
|
||
<a-col :span="24">
|
||
<div class="title">
|
||
<h2>{{instance.title}}</h2>
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>Description</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.description" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>Author</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.contact" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>Version</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.version" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>Host</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.host" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>basePath</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.basePath" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>serviceUrl</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.termsOfService" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>GroupName</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.name" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>GroupUrl</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.url" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>GroupLocation</h3>
|
||
</a-col>
|
||
<a-col :span="19"><span v-html="instance.location" /></a-col>
|
||
</a-row>
|
||
<a-divider class="divider" />
|
||
</div>
|
||
<div class="knife4j-description">
|
||
<a-row class="content-line">
|
||
<a-col :span="5">
|
||
<h3>count</h3>
|
||
</a-col>
|
||
<a-col :span="19">
|
||
<a-row class="content-line-count" v-for="param in instance.pathArrs" :key="param.method">
|
||
<a-col :span="3">
|
||
{{param.method}}
|
||
</a-col>
|
||
<a-col :span="2">
|
||
<a-tag color="#108ee9">{{param.count}}</a-tag>
|
||
</a-col>
|
||
<a-divider class="divider-count" />
|
||
</a-row>
|
||
</a-col>
|
||
</a-row>
|
||
</div>
|
||
</a-col>
|
||
</a-row>
|
||
|
||
<!--\u76EE\u5F55-->
|
||
<a-row id="knife4j-doc-m" class="knife4j-doc-m">
|
||
<a-row style="float: right;width: 57px;z-index: 10000;overflow: hidden;">
|
||
<a-button type="link" id="btnHide">Hide</a-button>
|
||
</a-row>
|
||
<a-row v-if="hideShow" id="knife4jDoc">
|
||
<ul>
|
||
<li><a href="#knife4jDocument">Home</a></li>
|
||
<li v-for="tag in tags" :key="tag.name">
|
||
<a :href="'#'+tag.name">{{tag.name}}</a>
|
||
<ul>
|
||
<li v-for="c in tag.childrens" :key="c.id"><a :href="'#'+c.operationId">{{c.summary}}</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</a-row>
|
||
</a-row>
|
||
<!--\u5206\u7EC4API\u4FE1\u606F-->
|
||
<!--\u904D\u5386tags-->
|
||
<a-row v-for="tag in tags" :key="tag.name">
|
||
<h1 :id="tag.name">{{tag.name}}</h1>
|
||
<div class="knife4j-document" v-for="api in tag.childrens">
|
||
<!--\u63A5\u53E3\u57FA\u672C\u4FE1\u606F-->
|
||
<a-row>
|
||
<a-row :id="api.operationId" class="knife4j-api-title">
|
||
<span v-if="api.deprecated" class="knife4j-menu-api-deprecated">
|
||
{{ api.summary }}
|
||
</span>
|
||
<span v-else>
|
||
{{ api.summary }}
|
||
</span>
|
||
</a-row>
|
||
<a-row :class="'knife4j-api-' + api.methodType.toLowerCase()">
|
||
<div class="knife4j-api-summary">
|
||
<span class="knife4j-api-summary-method">{{ api.methodType }}</span>
|
||
<span class="knife4j-api-summary-path">{{ api.showUrl }}</span>
|
||
</div>
|
||
</a-row>
|
||
<a-row class="knife4j-api-row">
|
||
<a-col :span="12">
|
||
<a-row>
|
||
<a-col class="api-basic-title" :span="6">produces</a-col>
|
||
{{ api.consumes }}
|
||
</a-row>
|
||
</a-col>
|
||
<a-col :span="12">
|
||
<a-row>
|
||
<a-col class="api-basic-title" :span="6">consumes</a-col>
|
||
{{ api.produces }}
|
||
</a-row>
|
||
</a-col>
|
||
</a-row>
|
||
</a-row>
|
||
<div v-if="api.author">
|
||
<div class="api-title">
|
||
Author
|
||
</div>
|
||
<div v-if="api.author" v-html="api.author" class="api-body-desc"></div>
|
||
</div>
|
||
<!--\u63A5\u53E3\u63CF\u8FF0-->
|
||
<div v-if="api.description">
|
||
<div class="api-title">
|
||
Note
|
||
</div>
|
||
<div
|
||
v-if="api.description"
|
||
v-html="api.description"
|
||
class="api-body-desc"
|
||
></div>
|
||
</div>
|
||
<!--\u8BF7\u6C42\u793A\u4F8B-->
|
||
<div v-if="api.requestValue">
|
||
<div class="api-title">
|
||
Example
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-html="formaterJson(api.requestValue)"
|
||
></pre>
|
||
</div>
|
||
<div class="api-title">
|
||
Params
|
||
</div>
|
||
<a-table default-expand-all-rows :columns="columns" :data-source="api.reqParameters"
|
||
:row-key="genUnionTableKey"
|
||
size="small"
|
||
:pagination="page" >
|
||
<template slot="requireTemplate" slot-scope="text">
|
||
<span v-if="text" style="color:red">{{ text.toLocaleString() }}</span>
|
||
<span v-else>{{ text.toLocaleString() }}</span>
|
||
</template>
|
||
|
||
<template slot="typeTemplate" slot-scope="text">
|
||
<span :class="'knife4j-request-' + text">{{ text }}</span>
|
||
</template>
|
||
|
||
<template slot="datatypeTemplate" slot-scope="text, record">
|
||
<data-type :text="text" :record="record"></data-type>
|
||
</template>
|
||
</a-table>
|
||
<!--\u54CD\u5E94\u72B6\u6001-->
|
||
<div class="api-title">
|
||
Status
|
||
</div>
|
||
<a-table
|
||
:columns="responseStatuscolumns"
|
||
:data-source="api.responseCodes"
|
||
row-key="code"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
<template slot="descriptionTemplate" slot-scope="text">
|
||
<div v-html="text"></div>
|
||
</template>
|
||
</a-table>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<!--\u54CD\u5E94\u53C2\u6570\u9700\u8981\u5224\u65AD\u662F\u5426\u5B58\u5728\u591A\u4E2Acode-schema\u7684\u60C5\u51B5-->
|
||
<div v-if="api.multipartResponseSchema">
|
||
<!--\u591A\u4E2A\u54CD\u5E94\u7F16\u7801code\u7684\u60C5\u51B5\u5728\u79BB\u7EBF\u6587\u6863\u4E2D\u9700\u8981\u5355\u72EC\u904D\u5386\u5206\u5F00-->
|
||
<a-tabs v-for="resp in api.multipCodeDatas" :key="resp.code">
|
||
<a-tab-pane :tab="resp.code">
|
||
<!--\u5224\u65AD\u54CD\u5E94\u5934-->
|
||
<div v-if="resp.responseHeaderParameters">
|
||
<div class="api-title">
|
||
Response Header
|
||
</div>
|
||
<a-table
|
||
:columns="responseHeaderColumns"
|
||
:data-source="resp.responseHeaderParameters"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
</div>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<div class="api-title">
|
||
Response Params
|
||
</div>
|
||
<a-table
|
||
:columns="responseParametersColumns"
|
||
:data-source="resp.data"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
<div class="api-title">
|
||
Response Example
|
||
</div>
|
||
<div class="api-editor-show" v-if="resp.responseBasicType">
|
||
{{ resp.responseText }}
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-else
|
||
v-html="formaterJson(resp.responseValue)"
|
||
></pre>
|
||
<!-- <editor-show :value="resp.responseBasicType ? resp.responseText : resp.responseValue"></editor-show> -->
|
||
<!-- <editor :value="resp.responseBasicType ? resp.responseText : resp.responseValue" @init="multiResponseSampleEditorInit" lang="json" theme="eclipse" width="100%" :height="editorMultiHeight"></editor> -->
|
||
</a-tab-pane>
|
||
</a-tabs>
|
||
</div>
|
||
<div v-else>
|
||
<!--\u5224\u65AD\u54CD\u5E94\u5934-->
|
||
<div v-if="api.responseHeaderParameters">
|
||
<div class="api-title">
|
||
Response Header
|
||
</div>
|
||
<a-table
|
||
:columns="responseHeaderColumns"
|
||
:data-source="api.responseHeaderParameters"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
</div>
|
||
<!--\u54CD\u5E94\u53C2\u6570-->
|
||
<div class="api-title">
|
||
Response Params
|
||
</div>
|
||
<a-table
|
||
:columns="responseParametersColumns"
|
||
:data-source="api.multipData.data"
|
||
row-key="id"
|
||
size="small"
|
||
:pagination="page"
|
||
>
|
||
</a-table>
|
||
<div class="api-title">
|
||
Response Example
|
||
</div>
|
||
<div class="api-editor-show" v-if="api.multipData.responseBasicType">
|
||
{{ api.multipData.responseText }}
|
||
</div>
|
||
<pre
|
||
class="knife4j-api-editor-show"
|
||
v-else
|
||
v-html="formaterJson(api.multipData.responseValue)"
|
||
></pre>
|
||
</div>
|
||
|
||
|
||
<!--\u63A5\u53E3\u904D\u5386\u7ED3\u675F-->
|
||
</div>
|
||
</a-row>
|
||
</a-row>
|
||
|
||
</div>
|
||
</div>
|
||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.9/dist/vue.js"><\/script>
|
||
<script src="https://cdn.jsdelivr.net/npm/ant-design-vue@1.4.10/dist/antd.min.js"><\/script>
|
||
<script type="text/javascript">
|
||
function getData(){
|
||
var datas=${U};
|
||
//console(datas);
|
||
return datas;
|
||
}
|
||
|
||
function main(){
|
||
//\u5F53\u524D\u63A5\u53E3json\u6570\u636E
|
||
var d=getData();
|
||
//\u8BF7\u6C42\u53C2\u6570table-header
|
||
const requestcolumns = [
|
||
{
|
||
title: "name",
|
||
dataIndex: "name",
|
||
width: "30%"
|
||
},
|
||
{
|
||
title: "description",
|
||
dataIndex: "description",
|
||
width: "25%"
|
||
},
|
||
{
|
||
title: "in",
|
||
dataIndex: "in",
|
||
scopedSlots: { customRender: "typeTemplate" }
|
||
},
|
||
{
|
||
title: "require",
|
||
dataIndex: "require",
|
||
scopedSlots: { customRender: "requireTemplate" }
|
||
},
|
||
{
|
||
title: "type",
|
||
dataIndex: "type",
|
||
scopedSlots: { customRender: "datatypeTemplate" }
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schemaValue",
|
||
width: "15%"
|
||
}
|
||
];
|
||
//\u54CD\u5E94\u72B6\u6001table-header
|
||
const responseStatuscolumns = [
|
||
{
|
||
title: "code",
|
||
dataIndex: "code",
|
||
width: "20%"
|
||
},
|
||
{
|
||
title: "description",
|
||
dataIndex: "description",
|
||
width: "55%",
|
||
scopedSlots: { customRender: "descriptionTemplate" }
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schema"
|
||
}
|
||
];
|
||
//\u54CD\u5E94\u5934-header
|
||
const responseHeaderColumns = [
|
||
{
|
||
title: "name",
|
||
dataIndex: "name",
|
||
width: "30%"
|
||
},
|
||
{
|
||
title: "description",
|
||
dataIndex: "description",
|
||
width: "55%"
|
||
},
|
||
{
|
||
title: "type",
|
||
dataIndex: "type"
|
||
}
|
||
];
|
||
const responseParametersColumns = [
|
||
{
|
||
title: "name",
|
||
dataIndex: "name",
|
||
width: "35%"
|
||
},
|
||
{
|
||
title: "description",
|
||
dataIndex: "description",
|
||
width: "40%"
|
||
},
|
||
{
|
||
title: "type",
|
||
dataIndex: "type"
|
||
},
|
||
{
|
||
title: "schema",
|
||
dataIndex: "schemaValue",
|
||
width: "15%"
|
||
}
|
||
];
|
||
//dataType\u7EC4\u4EF6
|
||
var dataType={
|
||
name: "DataType",
|
||
props: {
|
||
text: {
|
||
type: String,
|
||
required: true
|
||
},
|
||
record: {
|
||
type: Object,
|
||
required: true
|
||
}
|
||
},
|
||
data:function(){
|
||
return {
|
||
validators: []
|
||
}
|
||
},
|
||
created() {
|
||
this.intiValidator();
|
||
},
|
||
methods: {
|
||
intiValidator() {
|
||
var that = this;
|
||
const record = this.record;
|
||
if (record.validateInstance != null) {
|
||
var len = that.getJsonKeyLength(record.validateInstance);
|
||
var _size = 0;
|
||
for (var k in record.validateInstance) {
|
||
var str = k + ":" + record.validateInstance[k];
|
||
that.validators.push({ key: k, val: str });
|
||
}
|
||
}
|
||
},
|
||
getJsonKeyLength(json) {
|
||
var size = 0;
|
||
if (json != null) {
|
||
for (var key in json) {
|
||
if (json.hasOwnProperty(key)) size++;
|
||
}
|
||
}
|
||
return size;
|
||
}
|
||
},
|
||
template:'<div><span v-if="!record.validateStatus">{{text}}</span><span v-else class="knife4j-request-validate-jsr"><a-tooltip placement="right"><template slot="title"><div v-for="pt in validators" :key="pt.key">{{pt.val}}</div></template>{{text}}</a-tooltip></span></div>'
|
||
|
||
}
|
||
var data={
|
||
tags:d.tags,
|
||
instance:d.instance,
|
||
columns: requestcolumns,
|
||
responseHeaderColumns: responseHeaderColumns,
|
||
responseStatuscolumns: responseStatuscolumns,
|
||
responseParametersColumns: responseParametersColumns,
|
||
expanRows: true,
|
||
//\u63A5\u6536\u4E00\u4E2A\u54CD\u5E94\u4FE1\u606F\u5BF9\u8C61,\u904D\u5386\u5F97\u5230\u6811\u5F62\u7ED3\u6784\u7684\u503C
|
||
multipCode: false,
|
||
multipCodeDatas: [],
|
||
multipData: {},
|
||
page: false,
|
||
hideShow:true
|
||
}
|
||
new Vue({
|
||
el:"#knife4jDocument",
|
||
components:{
|
||
"DataType":dataType
|
||
},
|
||
data(){
|
||
return data
|
||
},
|
||
mounted(){
|
||
//\u521D\u59CB\u5316\u5B8C\u6210
|
||
//\u8D4B\u4E88\u70B9\u51FB\u4E8B\u4EF6;
|
||
document.getElementById("btnHide").addEventListener("click",function(){
|
||
//\u9690\u85CF\u76EE\u5F55
|
||
var doc=document.getElementById("knife4jDoc");
|
||
var docGlobal=document.getElementById("knife4j-doc-m");
|
||
if(doc.style.display=="none"){
|
||
doc.style.display="";
|
||
document.getElementById("btnHide").innerHTML="Hide";
|
||
docGlobal.style.width="400px";
|
||
docGlobal.style.height="500px";
|
||
}else{
|
||
doc.style.display="none";
|
||
document.getElementById("btnHide").innerHTML="Home";
|
||
docGlobal.style.width="52px";
|
||
docGlobal.style.height="35px";
|
||
}
|
||
})
|
||
},
|
||
created(){
|
||
|
||
},
|
||
methods:{
|
||
genUnionTableKey() {
|
||
var key="param"+new Date().getTime().toString() + Math.floor(Math.random() * 1000000).toString();
|
||
return key;
|
||
},
|
||
formaterJson(json) {
|
||
try {
|
||
if (typeof json != "string") {
|
||
json = JSON.stringify(json, undefined, 2);
|
||
}
|
||
json = json
|
||
.replace(/&/g, "&")
|
||
.replace(/</g, "<")
|
||
.replace(/>/g, ">");
|
||
return json.replace(
|
||
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(s*:)?|\b(true|false|null)\b|-?d+(?:.d*)?(?:[eE][+-]?d+)?)/g,
|
||
function(match) {
|
||
var cls = "number";
|
||
if (/^"/.test(match)) {
|
||
if (/:$/.test(match)) {
|
||
cls = "key";
|
||
} else {
|
||
cls = "string";
|
||
}
|
||
} else if (/true|false/.test(match)) {
|
||
cls = "boolean";
|
||
} else if (/null/.test(match)) {
|
||
cls = "null";
|
||
}
|
||
return '<span class="' + cls + '">' + match + "</span>";
|
||
}
|
||
);
|
||
} catch (error) {
|
||
return json;
|
||
}
|
||
}
|
||
}
|
||
})
|
||
|
||
}
|
||
|
||
main();
|
||
|
||
|
||
<\/script>
|
||
</body>
|
||
</html>`}function markdownText(C){var H=[];return C!=null&&C!=null&&(createBasicInfo$1(C,H),createTagsInfo$1(C,H),createPlusInfo$1(C,H)),H.join(`
|
||
`)}function markdownLines$1(C){C.push(`
|
||
`)}function createBasicInfo$1(C,H){H.push("# "+C.title),markdownLines$1(H),H.push("**\u7B80\u4ECB**:"+C.description),markdownLines$1(H),H.push("**HOST**:"+C.host),markdownLines$1(H),H.push("**\u8054\u7CFB\u4EBA**:"+C.contact),markdownLines$1(H),H.push("**Version**:"+C.version),markdownLines$1(H),H.push("**\u63A5\u53E3\u8DEF\u5F84**:"+C.url),markdownLines$1(H),H.push("[TOC]"),markdownLines$1(H)}function createPlusInfo$1(C,H){utils$c.checkUndefined(C.markdownFiles)&&C.markdownFiles.length>0&&(markdownLines$1(H),H.push("# \u9644\u5F55"),C.markdownFiles.forEach(function(U){markdownLines$1(H),utils$c.arrNotEmpty(U.children)&&(H.push("## "+U.name),markdownLines$1(H),U.children.forEach(W=>{H.push("### "+W.title),H.push(W.content)}))}))}function createTagsInfo$1(C,H){C.tags!=null&&C.tags!=null&&(H.push(`
|
||
`),C.tags.forEach(function(U){markdownLines$1(H),H.push("# "+U.name),U.childrens!=null&&U.childrens!=null&&U.childrens.length>0?U.childrens.forEach(function(W){createApiInfo$1(W,H)}):H.push("\u6682\u65E0\u63A5\u53E3\u6587\u6863")}))}function createApiInfo$1(C,H){markdownLines$1(H),H.push("## "+C.summary),markdownLines$1(H),H.push("**\u63A5\u53E3\u5730\u5740**:`"+C.showUrl+"`"),markdownLines$1(H),H.push("**\u8BF7\u6C42\u65B9\u5F0F**:`"+C.methodType+"`"),markdownLines$1(H),H.push("**\u8BF7\u6C42\u6570\u636E\u7C7B\u578B**:`"+utils$c.toString(C.consumes,"*")+"`"),markdownLines$1(H),H.push("**\u54CD\u5E94\u6570\u636E\u7C7B\u578B**:`"+utils$c.toString(C.produces,"*")+"`"),markdownLines$1(H),utils$c.strNotBlank(C.author)&&(H.push("**\u5F00\u53D1\u8005**:"+utils$c.toString(C.author,"\u6682\u65E0")),markdownLines$1(H)),H.push("**\u63A5\u53E3\u63CF\u8FF0**:"+utils$c.toString(C.description,"\u6682\u65E0")),utils$c.checkUndefined(C.requestValue)&&(markdownLines$1(H),H.push("**\u8BF7\u6C42\u793A\u4F8B**:"),markdownLines$1(H),H.push("```javascript"),H.push(C.requestValue),H.push("```")),createApiRequestParameters$1(C,H),createApiResponseStatus$1(C,H),createApiResponseParameters$1(C,H)}function createApiResponseStatus$1(C,H){utils$c.checkUndefined(C.responseCodes)&&C.responseCodes.length>0&&(markdownLines$1(H),H.push("**\u54CD\u5E94\u72B6\u6001**:"),markdownLines$1(H),H.push("| \u72B6\u6001\u7801 | \u8BF4\u660E | schema |"),H.push("| -------- | -------- | ----- | "),C.responseCodes.forEach(function(U){H.push("|"+utils$c.toString(U.code,"")+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.schema,"")+"|")}))}function createApiResponseHeaderParams$1(C,H){utils$c.checkUndefined(C)&&C.length>0&&(markdownLines$1(H),H.push("**\u54CD\u5E94Header**:"),markdownLines$1(H),H.push("| \u53C2\u6570\u540D\u79F0 | \u53C2\u6570\u8BF4\u660E | \u6570\u636E\u7C7B\u578B |"),H.push("| -------- | -------- | ----- | "),C.forEach(function(U){H.push("|"+utils$c.toString(U.name,"")+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.type,"")+"|")}))}function createApiResponseParameters$1(C,H){if(C.multipartResponseSchema){var U=C.multipCodeDatas;utils$c.arrNotEmpty(U)&&U.forEach(function(W){markdownLines$1(H),H.push("**\u54CD\u5E94\u72B6\u6001\u7801-"+utils$c.toString(W.code,"")+"**:"),createApiResponseSingleParam$1(W,H)})}else createApiResponseSingleParam$1(C.multipData,H)}function createApiResponseSingleParam$1(C,H){createApiResponseHeaderParams$1(C.responseHeaderParameters,H),markdownLines$1(H),H.push("**\u54CD\u5E94\u53C2\u6570**:"),markdownLines$1(H),utils$c.arrNotEmpty(C.data)?(H.push("| \u53C2\u6570\u540D\u79F0 | \u53C2\u6570\u8BF4\u660E | \u7C7B\u578B | schema |"),H.push("| -------- | -------- | ----- |----- | "),C.data.forEach(function(U){U.level=1,H.push("|"+getMdTableByLevel$1(U)+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.type,"")+"|"+utils$c.toString(U.schemaValue,"")+"|"),deepMdTableByResponseParameter$1(U.children,H,U.level+1)})):H.push("\u6682\u65E0"),markdownLines$1(H),H.push("**\u54CD\u5E94\u793A\u4F8B**:"),C.responseBasicType?(H.push("```text"),H.push(C.responseText),H.push("```")):(H.push("```javascript"),H.push(C.responseValue),H.push("```"))}function createApiRequestParameters$1(C,H){let U=C.reqParameters;markdownLines$1(H),H.push("**\u8BF7\u6C42\u53C2\u6570**:"),utils$c.arrNotEmpty(U)?(markdownLines$1(H),H.push("| \u53C2\u6570\u540D\u79F0 | \u53C2\u6570\u8BF4\u660E | \u8BF7\u6C42\u7C7B\u578B | \u662F\u5426\u5FC5\u987B | \u6570\u636E\u7C7B\u578B | schema |"),H.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),deepMdTableByRequestParameter$1(U,H,1)):(markdownLines$1(H),H.push("\u6682\u65E0"))}function deepMdTableByResponseParameter$1(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("|"+getMdTableByLevel$1(W)+"|"+utils$c.toString(W.description,"")+"|"+utils$c.toString(W.type,"")+"|"+utils$c.toString(W.schemaValue,"")+"|"),deepMdTableByResponseParameter$1(W.children,H,W.level+1)})}function deepMdTableByRequestParameter$1(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("|"+getMdTableByLevel$1(W)+"|"+utils$c.toString(W.description,"")+"|"+utils$c.toString(W.in,"")+"|"+utils$c.toString(W.require,"")+"|"+utils$c.toString(W.type,"")+"|"+utils$c.toString(W.schemaValue,"")+"|"),deepMdTableByRequestParameter$1(W.children,H,W.level+1)})}function getMdTableByLevel$1(C){for(var H=[],U=1;U<C.level;U++)H.push("  ");var W=H.join("")+C.name;return W}marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1});function wordText(C){var H=[];return C!=null&&C!=null&&(createWordHeader$1(H),createWordBasicInfo$1(C,H),createWordTagsInfo$1(C,H),createWordPlusInfo$1(C,H),createWordFooter$1(H)),H.join(`
|
||
`)}function wordLines$1(C){C.push(`
|
||
`)}function createWordHeader$1(C){var H=`<!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.0 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||
<title>\u5BFC\u51FASwagger\u6587\u6863\u5230Word</title>
|
||
<script src="https:// cdn.bootcss.com/jquery/3.2.1/jquery.min.js"><\/script>
|
||
<style type="text/css">
|
||
.knife4j-word-body{
|
||
width: 90%;
|
||
margin: 20px auto;
|
||
font-family:"\u5B8B\u4F53";
|
||
font-size: 16px;
|
||
}
|
||
.knife4j-word-row{
|
||
position: relative;
|
||
height: auto;
|
||
margin-right: 0;
|
||
margin-left: 0;
|
||
zoom: 1;
|
||
display: block;
|
||
box-sizing: border-box;
|
||
}
|
||
.knife4j-word-line{
|
||
height: 35px;
|
||
line-height:35px;
|
||
}
|
||
.knife4j-word-divider{
|
||
height: 1px;
|
||
background: #e8e8e8;
|
||
border-bottom: 1px solid #e8e8e8;
|
||
}
|
||
.knife4j-word-title{
|
||
font-weight: 600;
|
||
font-size: 18px;
|
||
margin-top: 15px;
|
||
border-left: 3px solid #00ab6d;
|
||
}
|
||
.knife4j-word-api{
|
||
margin-top: 10px;
|
||
}
|
||
.knife4j-word-content{
|
||
margin-top: 10px;
|
||
}
|
||
.knife4j-word-code-editor{
|
||
border: #ccc 1px solid;
|
||
border-left-width: 4px;
|
||
background-color: #fefefe;
|
||
box-shadow: 0 0 4px #eee;
|
||
word-break: break-all;
|
||
word-wrap: break-word;
|
||
color: #444;
|
||
}
|
||
.knife4j-word-code-editor .string { color: green; } /*\u5B57\u7B26\u4E32\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .number { color: darkorange; } /*\u6570\u5B57\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .boolean { color: blue; } /*\u5E03\u5C14\u578B\u6570\u636E\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .null { color: magenta; } /*null\u503C\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .key { color: red; } /*key\u503C\u7684\u6837\u5F0F*/
|
||
.knife4j-word-method{
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin-right: 10px;
|
||
text-align: center;
|
||
border-radius: 3px;
|
||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
||
}
|
||
.knife4j-word-table{
|
||
width: 120%;
|
||
border: 1px solid #c7c4c4;
|
||
border-collapse: collapse;
|
||
}
|
||
.knife4j-word-table tr{
|
||
border: 1px solid #c7c4c4;
|
||
height: 40px;
|
||
}
|
||
.knife4j-word-table th{
|
||
border: 1px solid #c7c4c4;
|
||
background-color: #dfdada;
|
||
}
|
||
.knife4j-word-table td{
|
||
border: 1px solid #c7c4c4;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="knife4j-word-body">`;C.push(H)}function createWordFooter$1(C){C.push("</div></body></html>")}function createWordBasicInfo$1(C,H){H.push("<h1>1.\u9879\u76EE\u8BF4\u660E</h1>"),H.push('<div class="knife4j-word-row">'),H.push('<div class="knife4j-word-line"><strong>\u6807\u9898</strong>:'+C.title+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>\u7B80\u4ECB</strong>:'+C.description+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>\u4F5C\u8005</strong>:<code>'+C.contact+"</code></div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>HOST</strong>:'+C.host+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>basePath</strong>:'+C.basePath+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>termsOfService</strong>:'+C.termsOfService+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>\u8054\u7CFB\u4EBA</strong>:'+C.contact+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Version</strong>:'+C.version+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>GroupName</strong>:'+C.name+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>\u5206\u7EC4Url</strong>:'+C.url+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>\u5206\u7EC4Location</strong>:'+C.location+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push("</div>")}function createWordPlusInfo$1(C,H){utils$c.checkUndefined(C.markdownFiles)&&utils$c.arrNotEmpty(C.markdownFiles)&&(wordLines$1(H),H.push("<h1>3.\u9644\u5F55</h1>"),C.markdownFiles.forEach(function(U,W){wordLines$1(H);var G=W+1,X="3."+G+U.name;H.push("<h2>"+X+"</h2>"),utils$c.arrNotEmpty(U.children)&&U.children.forEach(Z=>{H.push("<h3>"+Z.title+"</h3>"),H.push('<div class="knife4j-word-content">'),utils$c.strNotBlank(Z.content)&&H.push(marked.parse(Z.content)),H.push("</div>")})}))}function createWordTagsInfo$1(C,H){C.tags!=null&&C.tags!=null&&(H.push(`
|
||
`),H.push("<h1>2.\u63A5\u53E3\u5217\u8868</h1>"),C.tags.forEach(function(U,W){var G=parseInt(W)+1,X="2."+G,Z=X+U.name;H.push("<h2>"+Z+"</h2>"),wordLines$1(H),U.childrens!=null&&U.childrens!=null&&U.childrens.length>0?U.childrens.forEach(function(Q,ee){var ie=ee+1;createWrodApiInfo$1(Q,H,X,ie)}):H.push("\u6682\u65E0\u63A5\u53E3\u6587\u6863")}))}function createWrodApiInfo$1(C,H,U,W){wordLines$1(H);var G=U+"."+W+C.summary;H.push("<h3>"+G+"</h3>"),H.push('<div class="knife4j-word-api">'),H.push('<div class="knife4j-word-title">\u63A5\u53E3\u5730\u5740</div>'),H.push('<div class="knife4j-word-content"><span class="knife4j-word-method">'+C.methodType+"</span> <code>"+C.showUrl+"</code></div>"),H.push('<div class="knife4j-word-title">\u63A5\u53E3\u63CF\u8FF0</div>'),H.push('<div class="knife4j-word-content">'+utils$c.toString(C.description,"\u6682\u65E0")+"</div>"),H.push('<div class="knife4j-word-title">\u8BF7\u6C42\u6570\u636E\u7C7B\u578B</div>'),H.push('<div class="knife4j-word-content"><code>'+utils$c.toString(C.consumes,"*")+"</code></div>"),H.push('<div class="knife4j-word-title">\u54CD\u5E94\u6570\u636E\u7C7B\u578B</div>'),H.push('<div class="knife4j-word-content"><code>'+utils$c.toString(C.produces,"*")+"</code></div>"),utils$c.strNotBlank(C.author)&&(H.push('<div class="knife4j-word-title">\u5F00\u53D1\u8005</div>'),H.push('<div class="knife4j-word-content">'+utils$c.toString(C.author,"\u6682\u65E0")+"</div>")),utils$c.checkUndefined(C.requestValue)&&(H.push('<div class="knife4j-word-title">\u8BF7\u6C42\u793A\u4F8B</div>'),H.push('<div class="knife4j-word-content">'),H.push('<pre class="knife4j-word-code-editor">'),C.xmlRequest?H.push(C.requestValue):H.push(wordJsonFormatter$1(C.requestValue)),H.push("</pre>"),H.push("</div>")),createWordApiRequestParameters$1(C,H),createWordApiResponseStatus$1(C,H),createWordApiResponseParameters$1(C,H),H.push("</div>")}function createWordApiResponseStatus$1(C,H){utils$c.checkUndefined(C.responseCodes)&&C.responseCodes.length>0&&(wordLines$1(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94\u72B6\u6001</div><br/>'),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>\u72B6\u6001\u7801</th><th>\u8BF4\u660E</th><th>schema</th></tr></thead>"),H.push("<tbody>"),wordLines$1(H),C.responseCodes.forEach(function(U){H.push("<tr>"),H.push("<td>"+utils$c.toString(U.code,"")+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.schema,"")+"</td>"),H.push("</tr>")}),H.push("</tbody>"),H.push("</table><br/>"),H.push("</div>"))}function createWordApiResponseHeaderParams$1(C,H){utils$c.checkUndefined(C)&&utils$c.arrNotEmpty(C)&&(wordLines$1(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94Header</div>'),wordLines$1(H),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>\u53C2\u6570\u540D\u79F0</th><th>\u53C2\u6570\u8BF4\u660E</th><th>\u7C7B\u578B</th></tr></thead>"),H.push("<tbody>"),C.forEach(function(U){H.push("<tr>"),H.push("<td>"+utils$c.toString(U.name,"")+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.type,"")+"</td>"),H.push("</tr>")}),H.push("</tbody>"),H.push("</table>"),H.push("</div>"))}function createWordApiResponseParameters$1(C,H){if(C.multipartResponseSchema){var U=C.multipCodeDatas;utils$c.arrNotEmpty(U)&&U.forEach(function(W){wordLines$1(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94\u72B6\u6001\u7801-'+utils$c.toString(W.code,"")+"</div>"),createWordApiResponseSingleParam$1(W,H)})}else createWordApiResponseSingleParam$1(C.multipData,H)}function createWordApiResponseSingleParam$1(C,H){createWordApiResponseHeaderParams$1(C.responseHeaderParameters,H),wordLines$1(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94\u53C2\u6570</div>'),wordLines$1(H),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>\u53C2\u6570\u540D\u79F0</th><th>\u53C2\u6570\u8BF4\u660E</th><th>\u7C7B\u578B</th><th>schema</th></tr></thead>"),H.push("<tbody>"),utils$c.arrNotEmpty(C.data)?C.data.forEach(function(U){U.level=1,H.push("<tr>"),H.push("<td>"+getWordTableByLevel$1(U)+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.type,"")+"</td>"),H.push("<td>"+utils$c.toString(U.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByResponseParameter$1(U.children,H,U.level+1)}):H.push('<tr><td colspan="4">\u6682\u65E0</td></tr>'),H.push("</tbody>"),H.push("</table>"),H.push("</div>"),wordLines$1(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94\u793A\u4F8B</div>'),H.push('<div class="knife4j-word-content"><pre class="knife4j-word-code-editor">'),C.responseBasicType?H.push(C.responseText):H.push(wordJsonFormatter$1(C.responseValue)),H.push("</pre></div>")}function createWordApiRequestParameters$1(C,H){let U=C.reqParameters;wordLines$1(H),H.push('<div class="knife4j-word-title">\u8BF7\u6C42\u53C2\u6570</div><br/>'),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>\u53C2\u6570\u540D\u79F0</th><th>\u53C2\u6570\u8BF4\u660E</th><th>\u8BF7\u6C42\u7C7B\u578B</th><th>\u5FC5\u987B</th><th>\u6570\u636E\u7C7B\u578B</th><th>schema</th></tr></thead>"),H.push("<tbody>"),utils$c.arrNotEmpty(U)?deepWordTableByRequestParameter$1(U,H,1):H.push('<tr><td colspan="6">\u6682\u65E0</td></tr>'),H.push("</tbody>"),H.push("</table>"),H.push("</div>")}function deepWordTableByResponseParameter$1(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("<tr>"),H.push("<td>"+getWordTableByLevel$1(W)+"</td>"),H.push("<td>"+utils$c.toString(W.description,"")+"</td>"),H.push("<td>"+utils$c.toString(W.type,"")+"</td>"),H.push("<td>"+utils$c.toString(W.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByResponseParameter$1(W.children,H,W.level+1)})}function deepWordTableByRequestParameter$1(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("<tr>"),H.push("<td>"+getWordTableByLevel$1(W)+"</td>"),H.push("<td>"+utils$c.toString(W.description,"")+"</td>"),H.push("<td>"+utils$c.toString(W.in,"")+"</td>"),H.push("<td>"+utils$c.toString(W.require,"")+"</td>"),H.push("<td>"+utils$c.toString(W.type,"")+"</td>"),H.push("<td>"+utils$c.toString(W.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByRequestParameter$1(W.children,H,W.level+1)})}function getWordTableByLevel$1(C){for(var H=[],U=1;U<C.level;U++)H.push(" ");var W=H.join("")+C.name;return W}function wordJsonFormatter$1(C){try{return typeof C!="string"&&(C=JSON.stringify(C,void 0,2)),C=C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),C.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(H){var U="number";return/^"/.test(H)?/:$/.test(H)?U="key":U="string":/true|false/.test(H)?U="boolean":/null/.test(H)&&(U="null"),'<span class="'+U+'">'+H+"</span>"})}catch{return C}}marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1});function wordTextUS(C){var H=[];return C!=null&&C!=null&&(createWordHeader(H),createWordBasicInfo(C,H),createWordTagsInfo(C,H),createWordPlusInfo(C,H),createWordFooter(H)),H.join(`
|
||
`)}function wordLines(C){C.push(`
|
||
`)}function createWordHeader(C){var H=`<!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.0 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||
<title>Export Word API</title>
|
||
<script src="https:// cdn.bootcss.com/jquery/3.2.1/jquery.min.js"><\/script>
|
||
<style type="text/css">
|
||
.knife4j-word-body{
|
||
width: 90%;
|
||
margin: 20px auto;
|
||
font-family:"\u5B8B\u4F53";
|
||
font-size: 16px;
|
||
}
|
||
.knife4j-word-row{
|
||
position: relative;
|
||
height: auto;
|
||
margin-right: 0;
|
||
margin-left: 0;
|
||
zoom: 1;
|
||
display: block;
|
||
box-sizing: border-box;
|
||
}
|
||
.knife4j-word-line{
|
||
height: 35px;
|
||
line-height:35px;
|
||
}
|
||
.knife4j-word-divider{
|
||
height: 1px;
|
||
background: #e8e8e8;
|
||
border-bottom: 1px solid #e8e8e8;
|
||
}
|
||
.knife4j-word-title{
|
||
font-weight: 600;
|
||
font-size: 18px;
|
||
margin-top: 15px;
|
||
border-left: 3px solid #00ab6d;
|
||
}
|
||
.knife4j-word-api{
|
||
margin-top: 10px;
|
||
}
|
||
.knife4j-word-content{
|
||
margin-top: 10px;
|
||
}
|
||
.knife4j-word-code-editor{
|
||
border: #ccc 1px solid;
|
||
border-left-width: 4px;
|
||
background-color: #fefefe;
|
||
box-shadow: 0 0 4px #eee;
|
||
word-break: break-all;
|
||
word-wrap: break-word;
|
||
color: #444;
|
||
}
|
||
.knife4j-word-code-editor .string { color: green; } /*\u5B57\u7B26\u4E32\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .number { color: darkorange; } /*\u6570\u5B57\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .boolean { color: blue; } /*\u5E03\u5C14\u578B\u6570\u636E\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .null { color: magenta; } /*null\u503C\u7684\u6837\u5F0F*/
|
||
.knife4j-word-code-editor .key { color: red; } /*key\u503C\u7684\u6837\u5F0F*/
|
||
.knife4j-word-method{
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin-right: 10px;
|
||
text-align: center;
|
||
border-radius: 3px;
|
||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
||
}
|
||
.knife4j-word-table{
|
||
width: 120%;
|
||
border: 1px solid #c7c4c4;
|
||
border-collapse: collapse;
|
||
}
|
||
.knife4j-word-table tr{
|
||
border: 1px solid #c7c4c4;
|
||
height: 40px;
|
||
}
|
||
.knife4j-word-table th{
|
||
border: 1px solid #c7c4c4;
|
||
background-color: #dfdada;
|
||
}
|
||
.knife4j-word-table td{
|
||
border: 1px solid #c7c4c4;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="knife4j-word-body">`;C.push(H)}function createWordFooter(C){C.push("</div></body></html>")}function createWordBasicInfo(C,H){H.push("<h1>1.Project</h1>"),H.push('<div class="knife4j-word-row">'),H.push('<div class="knife4j-word-line"><strong>title</strong>:'+C.title+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Description</strong>:'+C.description+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Author</strong>:<code>'+C.contact+"</code></div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>HOST</strong>:'+C.host+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>basePath</strong>:'+C.basePath+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>termsOfService</strong>:'+C.termsOfService+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Concat</strong>:'+C.contact+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Version</strong>:'+C.version+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>GroupName</strong>:'+C.name+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Group Url</strong>:'+C.url+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push('<div class="knife4j-word-line"><strong>Location</strong>:'+C.location+"</div>"),H.push('<div class="knife4j-word-divider"></div>'),H.push("</div>")}function createWordPlusInfo(C,H){utils$c.checkUndefined(C.markdownFiles)&&utils$c.arrNotEmpty(C.markdownFiles)&&(wordLines(H),H.push("<h1>3.appendix</h1>"),C.markdownFiles.forEach(function(U,W){wordLines(H);var G=W+1,X="3."+G+U.name;H.push("<h2>"+X+"</h2>"),utils$c.arrNotEmpty(U.children)&&U.children.forEach(Z=>{H.push("<h3>"+Z.title+"</h3>"),H.push('<div class="knife4j-word-content">'),utils$c.strNotBlank(Z.content)&&H.push(marked.parse(Z.content)),H.push("</div>")})}))}function createWordTagsInfo(C,H){C.tags!=null&&C.tags!=null&&(H.push(`
|
||
`),H.push("<h1>2.Interface list</h1>"),C.tags.forEach(function(U,W){var G=parseInt(W)+1,X="2."+G,Z=X+U.name;H.push("<h2>"+Z+"</h2>"),wordLines(H),U.childrens!=null&&U.childrens!=null&&U.childrens.length>0?U.childrens.forEach(function(Q,ee){var ie=ee+1;createWrodApiInfo(Q,H,X,ie)}):H.push("None")}))}function createWrodApiInfo(C,H,U,W){wordLines(H);var G=U+"."+W+C.summary;H.push("<h3>"+G+"</h3>"),H.push('<div class="knife4j-word-api">'),H.push('<div class="knife4j-word-title">method</div>'),H.push('<div class="knife4j-word-content"><span class="knife4j-word-method">'+C.methodType+"</span> <code>"+C.showUrl+"</code></div>"),H.push('<div class="knife4j-word-title">Note</div>'),H.push('<div class="knife4j-word-content">'+utils$c.toString(C.description,"\u6682\u65E0")+"</div>"),H.push('<div class="knife4j-word-title">Produces</div>'),H.push('<div class="knife4j-word-content"><code>'+utils$c.toString(C.consumes,"*")+"</code></div>"),H.push('<div class="knife4j-word-title">Consumes</div>'),H.push('<div class="knife4j-word-content"><code>'+utils$c.toString(C.produces,"*")+"</code></div>"),utils$c.strNotBlank(C.author)&&(H.push('<div class="knife4j-word-title">Developer</div>'),H.push('<div class="knife4j-word-content">'+utils$c.toString(C.author,"\u6682\u65E0")+"</div>")),utils$c.checkUndefined(C.requestValue)&&(H.push('<div class="knife4j-word-title">Example</div>'),H.push('<div class="knife4j-word-content">'),H.push('<pre class="knife4j-word-code-editor">'),C.xmlRequest?H.push(C.requestValue):H.push(wordJsonFormatter(C.requestValue)),H.push("</pre>"),H.push("</div>")),createWordApiRequestParameters(C,H),createWordApiResponseStatus(C,H),createWordApiResponseParameters(C,H),H.push("</div>")}function createWordApiResponseStatus(C,H){utils$c.checkUndefined(C.responseCodes)&&C.responseCodes.length>0&&(wordLines(H),H.push('<div class="knife4j-word-title">Status</div><br/>'),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>code</th><th>description</th><th>schema</th></tr></thead>"),H.push("<tbody>"),wordLines(H),C.responseCodes.forEach(function(U){H.push("<tr>"),H.push("<td>"+utils$c.toString(U.code,"")+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.schema,"")+"</td>"),H.push("</tr>")}),H.push("</tbody>"),H.push("</table><br/>"),H.push("</div>"))}function createWordApiResponseHeaderParams(C,H){utils$c.checkUndefined(C)&&utils$c.arrNotEmpty(C)&&(wordLines(H),H.push('<div class="knife4j-word-title">\u54CD\u5E94Header</div>'),wordLines(H),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>name</th><th>description</th><th>type</th></tr></thead>"),H.push("<tbody>"),C.forEach(function(U){H.push("<tr>"),H.push("<td>"+utils$c.toString(U.name,"")+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.type,"")+"</td>"),H.push("</tr>")}),H.push("</tbody>"),H.push("</table>"),H.push("</div>"))}function createWordApiResponseParameters(C,H){if(C.multipartResponseSchema){var U=C.multipCodeDatas;utils$c.arrNotEmpty(U)&&U.forEach(function(W){wordLines(H),H.push('<div class="knife4j-word-title">code-'+utils$c.toString(W.code,"")+"</div>"),createWordApiResponseSingleParam(W,H)})}else createWordApiResponseSingleParam(C.multipData,H)}function createWordApiResponseSingleParam(C,H){createWordApiResponseHeaderParams(C.responseHeaderParameters,H),wordLines(H),H.push('<div class="knife4j-word-title">Response Params</div>'),wordLines(H),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>name</th><th>description</th><th>type</th><th>schema</th></tr></thead>"),H.push("<tbody>"),utils$c.arrNotEmpty(C.data)?C.data.forEach(function(U){U.level=1,H.push("<tr>"),H.push("<td>"+getWordTableByLevel(U)+"</td>"),H.push("<td>"+utils$c.toString(U.description,"")+"</td>"),H.push("<td>"+utils$c.toString(U.type,"")+"</td>"),H.push("<td>"+utils$c.toString(U.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByResponseParameter(U.children,H,U.level+1)}):H.push('<tr><td colspan="4">None</td></tr>'),H.push("</tbody>"),H.push("</table>"),H.push("</div>"),wordLines(H),H.push('<div class="knife4j-word-title">Response Example</div>'),H.push('<div class="knife4j-word-content"><pre class="knife4j-word-code-editor">'),C.responseBasicType?H.push(C.responseText):H.push(wordJsonFormatter(C.responseValue)),H.push("</pre></div>")}function createWordApiRequestParameters(C,H){let U=C.reqParameters;wordLines(H),H.push('<div class="knife4j-word-title">Params</div><br/>'),H.push('<div class="knife4j-word-content">'),H.push('<table class="knife4j-word-table">'),H.push("<thead><tr><th>name</th><th>description</th><th>type</th><th>require</th><th>type</th><th>schema</th></tr></thead>"),H.push("<tbody>"),utils$c.arrNotEmpty(U)?deepWordTableByRequestParameter(U,H,1):H.push('<tr><td colspan="6">None</td></tr>'),H.push("</tbody>"),H.push("</table>"),H.push("</div>")}function deepWordTableByResponseParameter(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("<tr>"),H.push("<td>"+getWordTableByLevel(W)+"</td>"),H.push("<td>"+utils$c.toString(W.description,"")+"</td>"),H.push("<td>"+utils$c.toString(W.type,"")+"</td>"),H.push("<td>"+utils$c.toString(W.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByResponseParameter(W.children,H,W.level+1)})}function deepWordTableByRequestParameter(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("<tr>"),H.push("<td>"+getWordTableByLevel(W)+"</td>"),H.push("<td>"+utils$c.toString(W.description,"")+"</td>"),H.push("<td>"+utils$c.toString(W.in,"")+"</td>"),H.push("<td>"+utils$c.toString(W.require,"")+"</td>"),H.push("<td>"+utils$c.toString(W.type,"")+"</td>"),H.push("<td>"+utils$c.toString(W.schemaValue,"")+"</td>"),H.push("</tr>"),deepWordTableByRequestParameter(W.children,H,W.level+1)})}function getWordTableByLevel(C){for(var H=[],U=1;U<C.level;U++)H.push(" ");var W=H.join("")+C.name;return W}function wordJsonFormatter(C){try{return typeof C!="string"&&(C=JSON.stringify(C,void 0,2)),C=C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),C.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(H){var U="number";return/^"/.test(H)?/:$/.test(H)?U="key":U="string":/true|false/.test(H)?U="boolean":/null/.test(H)&&(U="null"),'<span class="'+U+'">'+H+"</span>"})}catch{return C}}function markdownTextUS(C){var H=[];return C!=null&&C!=null&&(createBasicInfo(C,H),createTagsInfo(C,H),createPlusInfo(C,H)),H.join(`
|
||
`)}function markdownLines(C){C.push(`
|
||
`)}function createBasicInfo(C,H){H.push("# "+C.title),markdownLines(H),H.push("**Description**:"+C.description),markdownLines(H),H.push("**HOST**:"+C.host),markdownLines(H),H.push("**Contacts**:"+C.contact),markdownLines(H),H.push("**Version**:"+C.version),markdownLines(H),H.push("**URL**:"+C.url),markdownLines(H),H.push("[TOC]"),markdownLines(H)}function createPlusInfo(C,H){utils$c.checkUndefined(C.markdownFiles)&&C.markdownFiles.length>0&&(markdownLines(H),H.push("# appendix"),C.markdownFiles.forEach(function(U){markdownLines(H),utils$c.arrNotEmpty(U.children)&&(H.push("## "+U.name),markdownLines(H),U.children.forEach(W=>{H.push("### "+W.title),H.push(W.content)}))}))}function createTagsInfo(C,H){C.tags!=null&&C.tags!=null&&(H.push(`
|
||
`),C.tags.forEach(function(U){markdownLines(H),H.push("# "+U.name),U.childrens!=null&&U.childrens!=null&&U.childrens.length>0?U.childrens.forEach(function(W){createApiInfo(W,H)}):H.push("None")}))}function createApiInfo(C,H){markdownLines(H),H.push("## "+C.summary),markdownLines(H),H.push("**url**:`"+C.showUrl+"`"),markdownLines(H),H.push("**method**:`"+C.methodType+"`"),markdownLines(H),H.push("**produces**:`"+utils$c.toString(C.consumes,"*")+"`"),markdownLines(H),H.push("**consumes**:`"+utils$c.toString(C.produces,"*")+"`"),markdownLines(H),utils$c.strNotBlank(C.author)&&(H.push("**author**:"+utils$c.toString(C.author,"\u6682\u65E0")),markdownLines(H)),H.push("**Note**:"+utils$c.toString(C.description,"\u6682\u65E0")),utils$c.checkUndefined(C.requestValue)&&(markdownLines(H),H.push("**Example**:"),markdownLines(H),H.push("```javascript"),H.push(C.requestValue),H.push("```")),createApiRequestParameters(C,H),createApiResponseStatus(C,H),createApiResponseParameters(C,H)}function createApiResponseStatus(C,H){utils$c.checkUndefined(C.responseCodes)&&C.responseCodes.length>0&&(markdownLines(H),H.push("**Status**:"),markdownLines(H),H.push("| code | description | schema |"),H.push("| -------- | -------- | ----- | "),C.responseCodes.forEach(function(U){H.push("|"+utils$c.toString(U.code,"")+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.schema,"")+"|")}))}function createApiResponseHeaderParams(C,H){utils$c.checkUndefined(C)&&C.length>0&&(markdownLines(H),H.push("**Response Header**:"),markdownLines(H),H.push("| name | description | type |"),H.push("| -------- | -------- | ----- | "),C.forEach(function(U){H.push("|"+utils$c.toString(U.name,"")+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.type,"")+"|")}))}function createApiResponseParameters(C,H){if(C.multipartResponseSchema){var U=C.multipCodeDatas;utils$c.arrNotEmpty(U)&&U.forEach(function(W){markdownLines(H),H.push("**code-"+utils$c.toString(W.code,"")+"**:"),createApiResponseSingleParam(W,H)})}else createApiResponseSingleParam(C.multipData,H)}function createApiResponseSingleParam(C,H){createApiResponseHeaderParams(C.responseHeaderParameters,H),markdownLines(H),H.push("**Response Params**:"),markdownLines(H),utils$c.arrNotEmpty(C.data)?(H.push("| name | description | type | schema |"),H.push("| -------- | -------- | ----- |----- | "),C.data.forEach(function(U){U.level=1,H.push("|"+getMdTableByLevel(U)+"|"+utils$c.toString(U.description,"")+"|"+utils$c.toString(U.type,"")+"|"+utils$c.toString(U.schemaValue,"")+"|"),deepMdTableByResponseParameter(U.children,H,U.level+1)})):H.push("None"),markdownLines(H),H.push("**Response Example**:"),C.responseBasicType?(H.push("```text"),H.push(C.responseText),H.push("```")):(H.push("```javascript"),H.push(C.responseValue),H.push("```"))}function createApiRequestParameters(C,H){let U=C.reqParameters;markdownLines(H),H.push("**Params**:"),utils$c.arrNotEmpty(U)?(markdownLines(H),H.push("| name | description | in | require | type | schema |"),H.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),deepMdTableByRequestParameter(U,H,1)):(markdownLines(H),H.push("\u6682\u65E0"))}function deepMdTableByResponseParameter(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("|"+getMdTableByLevel(W)+"|"+utils$c.toString(W.description,"")+"|"+utils$c.toString(W.type,"")+"|"+utils$c.toString(W.schemaValue,"")+"|"),deepMdTableByResponseParameter(W.children,H,W.level+1)})}function deepMdTableByRequestParameter(C,H,U){C!=null&&C!=null&&C.length>0&&C.forEach(function(W){W.level=U,H.push("|"+getMdTableByLevel(W)+"|"+utils$c.toString(W.description,"")+"|"+utils$c.toString(W.in,"")+"|"+utils$c.toString(W.require,"")+"|"+utils$c.toString(W.type,"")+"|"+utils$c.toString(W.schemaValue,"")+"|"),deepMdTableByRequestParameter(W.children,H,W.level+1)})}function getMdTableByLevel(C){for(var H=[],U=1;U<C.level;U++)H.push("  ");var W=H.join("")+C.name;return W}var ace$2={exports:{}};(function(C,H){(function(){var U="ace",W=function(){return this}();!W&&typeof window<"u"&&(W=window);var G=function(te,ne,ae){if(typeof te!="string"){G.original?G.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(ae=ne),G.modules[te]||(G.payloads[te]=ae,G.modules[te]=null)};G.modules={},G.payloads={};var X=function(te,ne,ae){if(typeof ne=="string"){var oe=ee(te,ne);if(oe!=null)return ae&&ae(),oe}else if(Object.prototype.toString.call(ne)==="[object Array]"){for(var se=[],le=0,ce=ne.length;le<ce;++le){var ue=ee(te,ne[le]);if(ue==null&&Z.original)return;se.push(ue)}return ae&&ae.apply(null,se)||!0}},Z=function(te,ne){var ae=X("",te,ne);return ae==null&&Z.original?Z.original.apply(this,arguments):ae},Q=function(te,ne){if(ne.indexOf("!")!==-1){var ae=ne.split("!");return Q(te,ae[0])+"!"+Q(te,ae[1])}if(ne.charAt(0)=="."){var oe=te.split("/").slice(0,-1).join("/");for(ne=oe+"/"+ne;ne.indexOf(".")!==-1&&se!=ne;){var se=ne;ne=ne.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return ne},ee=function(te,ne){ne=Q(te,ne);var ae=G.modules[ne];if(!ae){if(ae=G.payloads[ne],typeof ae=="function"){var oe={},se={id:ne,uri:"",exports:oe,packaged:!0},le=function(ue,de){return X(ne,ue,de)},ce=ae(le,oe,se);oe=ce||se.exports,G.modules[ne]=oe,delete G.payloads[ne]}ae=G.modules[ne]=oe||ae}return ae};function ie(te){var ne=W;te&&(W[te]||(W[te]={}),ne=W[te]),(!ne.define||!ne.define.packaged)&&(G.original=ne.define,ne.define=G,ne.define.packaged=!0),(!ne.require||!ne.require.packaged)&&(Z.original=ne.require,ne.require=Z,ne.require.packaged=!0)}ie(U)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(U,W,G){function X(Z,Q,ee){Object.defineProperty(Z,Q,{value:ee,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||X(String.prototype,"startsWith",function(Z,Q){return Q=Q||0,this.lastIndexOf(Z,Q)===Q}),String.prototype.endsWith||X(String.prototype,"endsWith",function(Z,Q){var ee=this;(Q===void 0||Q>ee.length)&&(Q=ee.length),Q-=Z.length;var ie=ee.indexOf(Z,Q);return ie!==-1&&ie===Q}),String.prototype.repeat||X(String.prototype,"repeat",function(Z){for(var Q="",ee=this;Z>0;)Z&1&&(Q+=ee),(Z>>=1)&&(ee+=ee);return Q}),String.prototype.includes||X(String.prototype,"includes",function(Z,Q){return this.indexOf(Z,Q)!=-1}),Object.assign||(Object.assign=function(Z){if(Z==null)throw new TypeError("Cannot convert undefined or null to object");for(var Q=Object(Z),ee=1;ee<arguments.length;ee++){var ie=arguments[ee];ie!=null&&Object.keys(ie).forEach(function(te){Q[te]=ie[te]})}return Q}),Object.values||(Object.values=function(Z){return Object.keys(Z).map(function(Q){return Z[Q]})}),Array.prototype.find||X(Array.prototype,"find",function(Z){for(var Q=this.length,ee=arguments[1],ie=0;ie<Q;ie++){var te=this[ie];if(Z.call(ee,te,ie,this))return te}}),Array.prototype.findIndex||X(Array.prototype,"findIndex",function(Z){for(var Q=this.length,ee=arguments[1],ie=0;ie<Q;ie++){var te=this[ie];if(Z.call(ee,te,ie,this))return ie}}),Array.prototype.includes||X(Array.prototype,"includes",function(Z,Q){return this.indexOf(Z,Q)!=-1}),Array.prototype.fill||X(Array.prototype,"fill",function(Z){for(var Q=this,ee=Q.length>>>0,ie=arguments[1],te=ie>>0,ne=te<0?Math.max(ee+te,0):Math.min(te,ee),ae=arguments[2],oe=ae===void 0?ee:ae>>0,se=oe<0?Math.max(ee+oe,0):Math.min(oe,ee);ne<se;)Q[ne]=Z,ne++;return Q}),Array.of||X(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(U,W,G){U("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(U,W,G){W.last=function(Q){return Q[Q.length-1]},W.stringReverse=function(Q){return Q.split("").reverse().join("")},W.stringRepeat=function(Q,ee){for(var ie="";ee>0;)ee&1&&(ie+=Q),(ee>>=1)&&(Q+=Q);return ie};var X=/^\s\s*/,Z=/\s\s*$/;W.stringTrimLeft=function(Q){return Q.replace(X,"")},W.stringTrimRight=function(Q){return Q.replace(Z,"")},W.copyObject=function(Q){var ee={};for(var ie in Q)ee[ie]=Q[ie];return ee},W.copyArray=function(Q){for(var ee=[],ie=0,te=Q.length;ie<te;ie++)Q[ie]&&typeof Q[ie]=="object"?ee[ie]=this.copyObject(Q[ie]):ee[ie]=Q[ie];return ee},W.deepCopy=function Q(ee){if(typeof ee!="object"||!ee)return ee;var ie;if(Array.isArray(ee)){ie=[];for(var te=0;te<ee.length;te++)ie[te]=Q(ee[te]);return ie}if(Object.prototype.toString.call(ee)!=="[object Object]")return ee;ie={};for(var te in ee)ie[te]=Q(ee[te]);return ie},W.arrayToMap=function(Q){for(var ee={},ie=0;ie<Q.length;ie++)ee[Q[ie]]=1;return ee},W.createMap=function(Q){var ee=Object.create(null);for(var ie in Q)ee[ie]=Q[ie];return ee},W.arrayRemove=function(Q,ee){for(var ie=0;ie<=Q.length;ie++)ee===Q[ie]&&Q.splice(ie,1)},W.escapeRegExp=function(Q){return Q.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},W.escapeHTML=function(Q){return(""+Q).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},W.getMatchOffsets=function(Q,ee){var ie=[];return Q.replace(ee,function(te){ie.push({offset:arguments[arguments.length-2],length:te.length})}),ie},W.deferredCall=function(Q){var ee=null,ie=function(){ee=null,Q()},te=function(ne){return te.cancel(),ee=setTimeout(ie,ne||0),te};return te.schedule=te,te.call=function(){return this.cancel(),Q(),te},te.cancel=function(){return clearTimeout(ee),ee=null,te},te.isPending=function(){return ee},te},W.delayedCall=function(Q,ee){var ie=null,te=function(){ie=null,Q()},ne=function(ae){ie==null&&(ie=setTimeout(te,ae||ee))};return ne.delay=function(ae){ie&&clearTimeout(ie),ie=setTimeout(te,ae||ee)},ne.schedule=ne,ne.call=function(){this.cancel(),Q()},ne.cancel=function(){ie&&clearTimeout(ie),ie=null},ne.isPending=function(){return ie},ne}}),ace.define("ace/lib/oop",["require","exports","module"],function(U,W,G){W.inherits=function(X,Z){X.super_=Z,X.prototype=Object.create(Z.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}})},W.mixin=function(X,Z){for(var Q in Z)X[Q]=Z[Q];return X},W.implement=function(X,Z){W.mixin(X,Z)}}),ace.define("ace/lib/useragent",["require","exports","module"],function(U,W,G){W.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},W.getOS=function(){return W.isMac?W.OS.MAC:W.isLinux?W.OS.LINUX:W.OS.WINDOWS};var X=typeof navigator=="object"?navigator:{},Z=(/mac|win|linux/i.exec(X.platform)||["other"])[0].toLowerCase(),Q=X.userAgent||"",ee=X.appName||"";W.isWin=Z=="win",W.isMac=Z=="mac",W.isLinux=Z=="linux",W.isIE=ee=="Microsoft Internet Explorer"||ee.indexOf("MSAppHost")>=0?parseFloat((Q.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((Q.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),W.isOldIE=W.isIE&&W.isIE<9,W.isGecko=W.isMozilla=Q.match(/ Gecko\/\d+/),W.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",W.isWebKit=parseFloat(Q.split("WebKit/")[1])||void 0,W.isChrome=parseFloat(Q.split(" Chrome/")[1])||void 0,W.isEdge=parseFloat(Q.split(" Edge/")[1])||void 0,W.isAIR=Q.indexOf("AdobeAIR")>=0,W.isAndroid=Q.indexOf("Android")>=0,W.isChromeOS=Q.indexOf(" CrOS ")>=0,W.isIOS=/iPad|iPhone|iPod/.test(Q)&&!window.MSStream,W.isIOS&&(W.isMac=!0),W.isMobile=W.isIOS||W.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(U,W,G){var X=U("./useragent"),Z="http://www.w3.org/1999/xhtml";W.buildDom=function ae(oe,se,le){if(typeof oe=="string"&&oe){var ce=document.createTextNode(oe);return se&&se.appendChild(ce),ce}if(!Array.isArray(oe))return oe&&oe.appendChild&&se&&se.appendChild(oe),oe;if(typeof oe[0]!="string"||!oe[0]){for(var ue=[],de=0;de<oe.length;de++){var ve=ae(oe[de],se,le);ve&&ue.push(ve)}return ue}var ge=document.createElement(oe[0]),he=oe[1],me=1;he&&typeof he=="object"&&!Array.isArray(he)&&(me=2);for(var de=me;de<oe.length;de++)ae(oe[de],ge,le);return me==2&&Object.keys(he).forEach(function(_e){var be=he[_e];_e==="class"?ge.className=Array.isArray(be)?be.join(" "):be:typeof be=="function"||_e=="value"||_e[0]=="$"?ge[_e]=be:_e==="ref"?le&&(le[be]=ge):_e==="style"?typeof be=="string"&&(ge.style.cssText=be):be!=null&&ge.setAttribute(_e,be)}),se&&se.appendChild(ge),ge},W.getDocumentHead=function(ae){return ae||(ae=document),ae.head||ae.getElementsByTagName("head")[0]||ae.documentElement},W.createElement=function(ae,oe){return document.createElementNS?document.createElementNS(oe||Z,ae):document.createElement(ae)},W.removeChildren=function(ae){ae.innerHTML=""},W.createTextNode=function(ae,oe){var se=oe?oe.ownerDocument:document;return se.createTextNode(ae)},W.createFragment=function(ae){var oe=ae?ae.ownerDocument:document;return oe.createDocumentFragment()},W.hasCssClass=function(ae,oe){var se=(ae.className+"").split(/\s+/g);return se.indexOf(oe)!==-1},W.addCssClass=function(ae,oe){W.hasCssClass(ae,oe)||(ae.className+=" "+oe)},W.removeCssClass=function(ae,oe){for(var se=ae.className.split(/\s+/g);;){var le=se.indexOf(oe);if(le==-1)break;se.splice(le,1)}ae.className=se.join(" ")},W.toggleCssClass=function(ae,oe){for(var se=ae.className.split(/\s+/g),le=!0;;){var ce=se.indexOf(oe);if(ce==-1)break;le=!1,se.splice(ce,1)}return le&&se.push(oe),ae.className=se.join(" "),le},W.setCssClass=function(ae,oe,se){se?W.addCssClass(ae,oe):W.removeCssClass(ae,oe)},W.hasCssString=function(ae,oe){var se=0,le;if(oe=oe||document,le=oe.querySelectorAll("style")){for(;se<le.length;)if(le[se++].id===ae)return!0}},W.removeElementById=function(ae,oe){oe=oe||document,oe.getElementById(ae)&&oe.getElementById(ae).remove()};var Q,ee=[];W.useStrictCSP=function(ae){Q=ae,ae==!1?ie():ee||(ee=[])};function ie(){var ae=ee;ee=null,ae&&ae.forEach(function(oe){te(oe[0],oe[1])})}function te(ae,oe,se){if(!(typeof document>"u")){if(ee){if(se)ie();else if(se===!1)return ee.push([ae,oe])}if(!Q){var le=se;!se||!se.getRootNode?le=document:(le=se.getRootNode(),(!le||le==se)&&(le=document));var ce=le.ownerDocument||le;if(oe&&W.hasCssString(oe,le))return null;oe&&(ae+=`
|
||
/*# sourceURL=ace/css/`+oe+" */");var ue=W.createElement("style");ue.appendChild(ce.createTextNode(ae)),oe&&(ue.id=oe),le==ce&&(le=W.getDocumentHead(ce)),le.insertBefore(ue,le.firstChild)}}}if(W.importCssString=te,W.importCssStylsheet=function(ae,oe){W.buildDom(["link",{rel:"stylesheet",href:ae}],W.getDocumentHead(oe))},W.scrollbarWidth=function(ae){var oe=W.createElement("ace_inner");oe.style.width="100%",oe.style.minWidth="0px",oe.style.height="200px",oe.style.display="block";var se=W.createElement("ace_outer"),le=se.style;le.position="absolute",le.left="-10000px",le.overflow="hidden",le.width="200px",le.minWidth="0px",le.height="150px",le.display="block",se.appendChild(oe);var ce=ae&&ae.documentElement||document&&document.documentElement;if(!ce)return 0;ce.appendChild(se);var ue=oe.offsetWidth;le.overflow="scroll";var de=oe.offsetWidth;return ue===de&&(de=se.clientWidth),ce.removeChild(se),ue-de},W.computedStyle=function(ae,oe){return window.getComputedStyle(ae,"")||{}},W.setStyle=function(ae,oe,se){ae[oe]!==se&&(ae[oe]=se)},W.HAS_CSS_ANIMATION=!1,W.HAS_CSS_TRANSFORMS=!1,W.HI_DPI=X.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,X.isChromeOS&&(W.HI_DPI=!1),typeof document<"u"){var ne=document.createElement("div");W.HI_DPI&&ne.style.transform!==void 0&&(W.HAS_CSS_TRANSFORMS=!0),!X.isEdge&&typeof ne.style.animationName<"u"&&(W.HAS_CSS_ANIMATION=!0),ne=null}W.HAS_CSS_TRANSFORMS?W.translate=function(ae,oe,se){ae.style.transform="translate("+Math.round(oe)+"px, "+Math.round(se)+"px)"}:W.translate=function(ae,oe,se){ae.style.top=Math.round(se)+"px",ae.style.left=Math.round(oe)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(U,W,G){/*
|
||
* based on code from:
|
||
*
|
||
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||
* Available via the MIT or new BSD license.
|
||
* see: http://github.com/jrburke/requirejs for details
|
||
*/var X=U("./dom");W.get=function(Z,Q){var ee=new XMLHttpRequest;ee.open("GET",Z,!0),ee.onreadystatechange=function(){ee.readyState===4&&Q(ee.responseText)},ee.send(null)},W.loadScript=function(Z,Q){var ee=X.getDocumentHead(),ie=document.createElement("script");ie.src=Z,ee.appendChild(ie),ie.onload=ie.onreadystatechange=function(te,ne){(ne||!ie.readyState||ie.readyState=="loaded"||ie.readyState=="complete")&&(ie=ie.onload=ie.onreadystatechange=null,ne||Q())}},W.qualifyURL=function(Z){var Q=document.createElement("a");return Q.href=Z,Q.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(U,W,G){var X={},Z=function(){this.propagationStopped=!0},Q=function(){this.defaultPrevented=!0};X._emit=X._dispatchEvent=function(ee,ie){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var te=this._eventRegistry[ee]||[],ne=this._defaultHandlers[ee];if(!(!te.length&&!ne)){(typeof ie!="object"||!ie)&&(ie={}),ie.type||(ie.type=ee),ie.stopPropagation||(ie.stopPropagation=Z),ie.preventDefault||(ie.preventDefault=Q),te=te.slice();for(var ae=0;ae<te.length&&(te[ae](ie,this),!ie.propagationStopped);ae++);if(ne&&!ie.defaultPrevented)return ne(ie,this)}},X._signal=function(ee,ie){var te=(this._eventRegistry||{})[ee];if(!!te){te=te.slice();for(var ne=0;ne<te.length;ne++)te[ne](ie,this)}},X.once=function(ee,ie){var te=this;if(this.on(ee,function ne(){te.off(ee,ne),ie.apply(null,arguments)}),!ie)return new Promise(function(ne){ie=ne})},X.setDefaultHandler=function(ee,ie){var te=this._defaultHandlers;if(te||(te=this._defaultHandlers={_disabled_:{}}),te[ee]){var ne=te[ee],ae=te._disabled_[ee];ae||(te._disabled_[ee]=ae=[]),ae.push(ne);var oe=ae.indexOf(ie);oe!=-1&&ae.splice(oe,1)}te[ee]=ie},X.removeDefaultHandler=function(ee,ie){var te=this._defaultHandlers;if(!!te){var ne=te._disabled_[ee];if(te[ee]==ie)ne&&this.setDefaultHandler(ee,ne.pop());else if(ne){var ae=ne.indexOf(ie);ae!=-1&&ne.splice(ae,1)}}},X.on=X.addEventListener=function(ee,ie,te){this._eventRegistry=this._eventRegistry||{};var ne=this._eventRegistry[ee];return ne||(ne=this._eventRegistry[ee]=[]),ne.indexOf(ie)==-1&&ne[te?"unshift":"push"](ie),ie},X.off=X.removeListener=X.removeEventListener=function(ee,ie){this._eventRegistry=this._eventRegistry||{};var te=this._eventRegistry[ee];if(!!te){var ne=te.indexOf(ie);ne!==-1&&te.splice(ne,1)}},X.removeAllListeners=function(ee){ee||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[ee]=void 0),this._defaultHandlers&&(this._defaultHandlers[ee]=void 0)},W.EventEmitter=X}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(U,W,G){var X=U("./oop"),Z=U("./event_emitter").EventEmitter,Q={setOptions:function(ne){Object.keys(ne).forEach(function(ae){this.setOption(ae,ne[ae])},this)},getOptions:function(ne){var ae={};if(ne)Array.isArray(ne)||(ae=ne,ne=Object.keys(ae));else{var oe=this.$options;ne=Object.keys(oe).filter(function(se){return!oe[se].hidden})}return ne.forEach(function(se){ae[se]=this.getOption(se)},this),ae},setOption:function(ne,ae){if(this["$"+ne]!==ae){var oe=this.$options[ne];if(!oe)return ee('misspelled option "'+ne+'"');if(oe.forwardTo)return this[oe.forwardTo]&&this[oe.forwardTo].setOption(ne,ae);oe.handlesSet||(this["$"+ne]=ae),oe&&oe.set&&oe.set.call(this,ae)}},getOption:function(ne){var ae=this.$options[ne];return ae?ae.forwardTo?this[ae.forwardTo]&&this[ae.forwardTo].getOption(ne):ae&&ae.get?ae.get.call(this):this["$"+ne]:ee('misspelled option "'+ne+'"')}};function ee(ne){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}function ie(ne,ae){var oe=new Error(ne);oe.data=ae,typeof console=="object"&&console.error&&console.error(oe),setTimeout(function(){throw oe})}var te=function(){this.$defaultOptions={}};(function(){X.implement(this,Z),this.defineOptions=function(ne,ae,oe){return ne.$options||(this.$defaultOptions[ae]=ne.$options={}),Object.keys(oe).forEach(function(se){var le=oe[se];typeof le=="string"&&(le={forwardTo:le}),le.name||(le.name=se),ne.$options[le.name]=le,"initialValue"in le&&(ne["$"+le.name]=le.initialValue)}),X.implement(ne,Q),this},this.resetOptions=function(ne){Object.keys(ne.$options).forEach(function(ae){var oe=ne.$options[ae];"value"in oe&&ne.setOption(ae,oe.value)})},this.setDefaultValue=function(ne,ae,oe){if(!ne){for(ne in this.$defaultOptions)if(this.$defaultOptions[ne][ae])break;if(!this.$defaultOptions[ne][ae])return!1}var se=this.$defaultOptions[ne]||(this.$defaultOptions[ne]={});se[ae]&&(se.forwardTo?this.setDefaultValue(se.forwardTo,ae,oe):se[ae].value=oe)},this.setDefaultValues=function(ne,ae){Object.keys(ae).forEach(function(oe){this.setDefaultValue(ne,oe,ae[oe])},this)},this.warn=ee,this.reportError=ie}).call(te.prototype),W.AppConfig=te}),ace.define("ace/theme/textmate.css",["require","exports","module"],function(U,W,G){G.exports=`.ace-tm .ace_gutter {
|
||
background: #f0f0f0;
|
||
color: #333;
|
||
}
|
||
|
||
.ace-tm .ace_print-margin {
|
||
width: 1px;
|
||
background: #e8e8e8;
|
||
}
|
||
|
||
.ace-tm .ace_fold {
|
||
background-color: #6B72E6;
|
||
}
|
||
|
||
.ace-tm {
|
||
background-color: #FFFFFF;
|
||
color: black;
|
||
}
|
||
|
||
.ace-tm .ace_cursor {
|
||
color: black;
|
||
}
|
||
|
||
.ace-tm .ace_invisible {
|
||
color: rgb(191, 191, 191);
|
||
}
|
||
|
||
.ace-tm .ace_storage,
|
||
.ace-tm .ace_keyword {
|
||
color: blue;
|
||
}
|
||
|
||
.ace-tm .ace_constant {
|
||
color: rgb(197, 6, 11);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_buildin {
|
||
color: rgb(88, 72, 246);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_language {
|
||
color: rgb(88, 92, 246);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_library {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-tm .ace_invalid {
|
||
background-color: rgba(255, 0, 0, 0.1);
|
||
color: red;
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_function {
|
||
color: rgb(60, 76, 114);
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_constant {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_type,
|
||
.ace-tm .ace_support.ace_class {
|
||
color: rgb(109, 121, 222);
|
||
}
|
||
|
||
.ace-tm .ace_keyword.ace_operator {
|
||
color: rgb(104, 118, 135);
|
||
}
|
||
|
||
.ace-tm .ace_string {
|
||
color: rgb(3, 106, 7);
|
||
}
|
||
|
||
.ace-tm .ace_comment {
|
||
color: rgb(76, 136, 107);
|
||
}
|
||
|
||
.ace-tm .ace_comment.ace_doc {
|
||
color: rgb(0, 102, 255);
|
||
}
|
||
|
||
.ace-tm .ace_comment.ace_doc.ace_tag {
|
||
color: rgb(128, 159, 191);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_numeric {
|
||
color: rgb(0, 0, 205);
|
||
}
|
||
|
||
.ace-tm .ace_variable {
|
||
color: rgb(49, 132, 149);
|
||
}
|
||
|
||
.ace-tm .ace_xml-pe {
|
||
color: rgb(104, 104, 91);
|
||
}
|
||
|
||
.ace-tm .ace_entity.ace_name.ace_function {
|
||
color: #0000A2;
|
||
}
|
||
|
||
|
||
.ace-tm .ace_heading {
|
||
color: rgb(12, 7, 255);
|
||
}
|
||
|
||
.ace-tm .ace_list {
|
||
color:rgb(185, 6, 144);
|
||
}
|
||
|
||
.ace-tm .ace_meta.ace_tag {
|
||
color:rgb(0, 22, 142);
|
||
}
|
||
|
||
.ace-tm .ace_string.ace_regex {
|
||
color: rgb(255, 0, 0)
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_selection {
|
||
background: rgb(181, 213, 255);
|
||
}
|
||
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
||
box-shadow: 0 0 3px 0px white;
|
||
}
|
||
.ace-tm .ace_marker-layer .ace_step {
|
||
background: rgb(252, 255, 0);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_stack {
|
||
background: rgb(164, 229, 101);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_bracket {
|
||
margin: -1px 0 0 -1px;
|
||
border: 1px solid rgb(192, 192, 192);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_active-line {
|
||
background: rgba(0, 0, 0, 0.07);
|
||
}
|
||
|
||
.ace-tm .ace_gutter-active-line {
|
||
background-color : #dcdcdc;
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_selected-word {
|
||
background: rgb(250, 250, 255);
|
||
border: 1px solid rgb(200, 200, 250);
|
||
}
|
||
|
||
.ace-tm .ace_indent-guide {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||
}
|
||
|
||
.ace-tm .ace_indent-guide-active {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
||
}
|
||
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"],function(U,W,G){W.isDark=!1,W.cssClass="ace-tm",W.cssText=U("./textmate.css"),W.$id="ace/theme/textmate";var X=U("../lib/dom");X.importCssString(W.cssText,W.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(U,W,G){var X=U("./lib/lang");U("./lib/oop");var Z=U("./lib/net"),Q=U("./lib/dom"),ee=U("./lib/app_config").AppConfig;G.exports=W=new ee;var ie={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};W.get=function(ae){if(!ie.hasOwnProperty(ae))throw new Error("Unknown config key: "+ae);return ie[ae]},W.set=function(ae,oe){if(ie.hasOwnProperty(ae))ie[ae]=oe;else if(this.setDefaultValue("",ae,oe)==!1)throw new Error("Unknown config key: "+ae);ae=="useStrictCSP"&&Q.useStrictCSP(oe)},W.all=function(){return X.copyObject(ie)},W.$modes={},W.moduleUrl=function(ae,oe){if(ie.$moduleUrls[ae])return ie.$moduleUrls[ae];var se=ae.split("/");oe=oe||se[se.length-2]||"";var le=oe=="snippets"?"/":"-",ce=se[se.length-1];if(oe=="worker"&&le=="-"){var ue=new RegExp("^"+oe+"[\\-_]|[\\-_]"+oe+"$","g");ce=ce.replace(ue,"")}(!ce||ce==oe)&&se.length>1&&(ce=se[se.length-2]);var de=ie[oe+"Path"];return de==null?de=ie.basePath:le=="/"&&(oe=le=""),de&&de.slice(-1)!="/"&&(de+="/"),de+oe+le+ce+this.get("suffix")},W.setModuleUrl=function(ae,oe){return ie.$moduleUrls[ae]=oe};var te=function(ae,oe){return ae=="ace/theme/textmate"?oe(null,U("./theme/textmate")):console.error("loader is not configured")};W.setLoader=function(ae){te=ae},W.$loading={},W.loadModule=function(ae,oe){var se,le;Array.isArray(ae)&&(le=ae[0],ae=ae[1]);try{se=U(ae)}catch{}if(se&&!W.$loading[ae])return oe&&oe(se);if(W.$loading[ae]||(W.$loading[ae]=[]),W.$loading[ae].push(oe),!(W.$loading[ae].length>1)){var ce=function(){te(ae,function(ue,de){W._emit("load.module",{name:ae,module:de});var ve=W.$loading[ae];W.$loading[ae]=null,ve.forEach(function(ge){ge&&ge(de)})})};if(!W.get("packaged"))return ce();Z.loadScript(W.moduleUrl(ae,le),ce),ne()}};var ne=function(){!ie.basePath&&!ie.workerPath&&!ie.modePath&&!ie.themePath&&!Object.keys(ie.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),ne=function(){})};W.version="1.13.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(U,W,G){U("./lib/fixoldbrowsers");var X=U("./config");X.setLoader(function(ie,te){U([ie],function(ne){te(null,ne)})});var Z=function(){return this||typeof window<"u"&&window}();G.exports=function(ie){X.init=Q,ie.require=U},Q(!0);function Q(ie){if(!(!Z||!Z.document)){X.set("packaged",ie||U.packaged||G.packaged||Z.define&&(void 0).packaged);for(var te={},ne="",ae=document.currentScript||document._currentScript,oe=ae&&ae.ownerDocument||document,se=oe.getElementsByTagName("script"),le=0;le<se.length;le++){var ce=se[le],ue=ce.src||ce.getAttribute("src");if(!!ue){for(var de=ce.attributes,ve=0,ge=de.length;ve<ge;ve++){var he=de[ve];he.name.indexOf("data-ace-")===0&&(te[ee(he.name.replace(/^data-ace-/,""))]=he.value)}var me=ue.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);me&&(ne=me[1])}}ne&&(te.base=te.base||ne,te.packaged=!0),te.basePath=te.base,te.workerPath=te.workerPath||te.base,te.modePath=te.modePath||te.base,te.themePath=te.themePath||te.base,delete te.base;for(var _e in te)typeof te[_e]<"u"&&X.set(_e,te[_e])}}function ee(ie){return ie.replace(/-(.)/g,function(te,ne){return ne.toUpperCase()})}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(U,W,G){/*! @license
|
||
==========================================================================
|
||
SproutCore -- JavaScript Application Framework
|
||
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a
|
||
copy of this software and associated documentation files (the "Software"),
|
||
to deal in the Software without restriction, including without limitation
|
||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
and/or sell copies of the Software, and to permit persons to whom the
|
||
Software is furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in
|
||
all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||
DEALINGS IN THE SOFTWARE.
|
||
|
||
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
||
|
||
For more information about SproutCore, visit http://www.sproutcore.com
|
||
|
||
|
||
==========================================================================
|
||
@license */var X=U("./oop"),Z=function(){var Q={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};Q.PRINTABLE_KEYS[173]="-";var ee,ie;for(ie in Q.FUNCTION_KEYS)ee=Q.FUNCTION_KEYS[ie].toLowerCase(),Q[ee]=parseInt(ie,10);for(ie in Q.PRINTABLE_KEYS)ee=Q.PRINTABLE_KEYS[ie].toLowerCase(),Q[ee]=parseInt(ie,10);return X.mixin(Q,Q.MODIFIER_KEYS),X.mixin(Q,Q.PRINTABLE_KEYS),X.mixin(Q,Q.FUNCTION_KEYS),Q.enter=Q.return,Q.escape=Q.esc,Q.del=Q.delete,function(){for(var te=["cmd","ctrl","alt","shift"],ne=Math.pow(2,te.length);ne--;)Q.KEY_MODS[ne]=te.filter(function(ae){return ne&Q.KEY_MODS[ae]}).join("-")+"-"}(),Q.KEY_MODS[0]="",Q.KEY_MODS[-1]="input-",Q}();X.mixin(W,Z),W.keyCodeToString=function(Q){var ee=Z[Q];return typeof ee!="string"&&(ee=String.fromCharCode(Q)),ee.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(U,W,G){var X=U("./keys"),Z=U("./useragent"),Q=null,ee=0,ie;function te(){ie=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){ie={passive:!1}}})}catch{}}function ne(){return ie==null&&te(),ie}function ae(ve,ge,he){this.elem=ve,this.type=ge,this.callback=he}ae.prototype.destroy=function(){se(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var oe=W.addListener=function(ve,ge,he,me){ve.addEventListener(ge,he,ne()),me&&me.$toDestroy.push(new ae(ve,ge,he))},se=W.removeListener=function(ve,ge,he){ve.removeEventListener(ge,he,ne())};W.stopEvent=function(ve){return W.stopPropagation(ve),W.preventDefault(ve),!1},W.stopPropagation=function(ve){ve.stopPropagation&&ve.stopPropagation()},W.preventDefault=function(ve){ve.preventDefault&&ve.preventDefault()},W.getButton=function(ve){return ve.type=="dblclick"?0:ve.type=="contextmenu"||Z.isMac&&ve.ctrlKey&&!ve.altKey&&!ve.shiftKey?2:ve.button},W.capture=function(ve,ge,he){var me=ve&&ve.ownerDocument||document;function _e(be){ge&&ge(be),he&&he(be),se(me,"mousemove",ge),se(me,"mouseup",_e),se(me,"dragstart",_e)}return oe(me,"mousemove",ge),oe(me,"mouseup",_e),oe(me,"dragstart",_e),_e},W.addMouseWheelListener=function(ve,ge,he){oe(ve,"wheel",function(me){var _e=.15,be=me.deltaX||0,pe=me.deltaY||0;switch(me.deltaMode){case me.DOM_DELTA_PIXEL:me.wheelX=be*_e,me.wheelY=pe*_e;break;case me.DOM_DELTA_LINE:var fe=15;me.wheelX=be*fe,me.wheelY=pe*fe;break;case me.DOM_DELTA_PAGE:var ye=150;me.wheelX=be*ye,me.wheelY=pe*ye;break}ge(me)},he)},W.addMultiMouseDownListener=function(ve,ge,he,me,_e){var be=0,pe,fe,ye,$e={2:"dblclick",3:"tripleclick",4:"quadclick"};function we(Se){if(W.getButton(Se)!==0?be=0:Se.detail>1?(be++,be>4&&(be=1)):be=1,Z.isIE){var Te=Math.abs(Se.clientX-pe)>5||Math.abs(Se.clientY-fe)>5;(!ye||Te)&&(be=1),ye&&clearTimeout(ye),ye=setTimeout(function(){ye=null},ge[be-1]||600),be==1&&(pe=Se.clientX,fe=Se.clientY)}if(Se._clicks=be,he[me]("mousedown",Se),be>4)be=0;else if(be>1)return he[me]($e[be],Se)}Array.isArray(ve)||(ve=[ve]),ve.forEach(function(Se){oe(Se,"mousedown",we,_e)})};var le=function(ve){return 0|(ve.ctrlKey?1:0)|(ve.altKey?2:0)|(ve.shiftKey?4:0)|(ve.metaKey?8:0)};W.getModifierString=function(ve){return X.KEY_MODS[le(ve)]};function ce(ve,ge,he){var me=le(ge);if(!Z.isMac&&Q){if(ge.getModifierState&&(ge.getModifierState("OS")||ge.getModifierState("Win"))&&(me|=8),Q.altGr)if((3&me)!=3)Q.altGr=0;else return;if(he===18||he===17){var _e="location"in ge?ge.location:ge.keyLocation;if(he===17&&_e===1)Q[he]==1&&(ee=ge.timeStamp);else if(he===18&&me===3&&_e===2){var be=ge.timeStamp-ee;be<50&&(Q.altGr=!0)}}}if(he in X.MODIFIER_KEYS&&(he=-1),!me&&he===13){var _e="location"in ge?ge.location:ge.keyLocation;if(_e===3&&(ve(ge,me,-he),ge.defaultPrevented))return}if(Z.isChromeOS&&me&8){if(ve(ge,me,he),ge.defaultPrevented)return;me&=-9}return!me&&!(he in X.FUNCTION_KEYS)&&!(he in X.PRINTABLE_KEYS)?!1:ve(ge,me,he)}W.addCommandKeyListener=function(ve,ge,he){if(Z.isOldGecko||Z.isOpera&&!("KeyboardEvent"in window)){var me=null;oe(ve,"keydown",function(be){me=be.keyCode},he),oe(ve,"keypress",function(be){return ce(ge,be,me)},he)}else{var _e=null;oe(ve,"keydown",function(be){Q[be.keyCode]=(Q[be.keyCode]||0)+1;var pe=ce(ge,be,be.keyCode);return _e=be.defaultPrevented,pe},he),oe(ve,"keypress",function(be){_e&&(be.ctrlKey||be.altKey||be.shiftKey||be.metaKey)&&(W.stopEvent(be),_e=null)},he),oe(ve,"keyup",function(be){Q[be.keyCode]=null},he),Q||(ue(),oe(window,"focus",ue))}};function ue(){Q=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!Z.isOldIE){var de=1;W.nextTick=function(ve,ge){ge=ge||window;var he="zero-timeout-message-"+de++,me=function(_e){_e.data==he&&(W.stopPropagation(_e),se(ge,"message",me),ve())};oe(ge,"message",me),ge.postMessage(he,"*")}}W.$idleBlocked=!1,W.onIdle=function(ve,ge){return setTimeout(function he(){W.$idleBlocked?setTimeout(he,100):ve()},ge)},W.$idleBlockId=null,W.blockIdle=function(ve){W.$idleBlockId&&clearTimeout(W.$idleBlockId),W.$idleBlocked=!0,W.$idleBlockId=setTimeout(function(){W.$idleBlocked=!1},ve||100)},W.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),W.nextFrame?W.nextFrame=W.nextFrame.bind(window):W.nextFrame=function(ve){setTimeout(ve,17)}}),ace.define("ace/range",["require","exports","module"],function(U,W,G){var X=function(Q,ee){return Q.row-ee.row||Q.column-ee.column},Z=function(Q,ee,ie,te){this.start={row:Q,column:ee},this.end={row:ie,column:te}};(function(){this.isEqual=function(Q){return this.start.row===Q.start.row&&this.end.row===Q.end.row&&this.start.column===Q.start.column&&this.end.column===Q.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(Q,ee){return this.compare(Q,ee)==0},this.compareRange=function(Q){var ee,ie=Q.end,te=Q.start;return ee=this.compare(ie.row,ie.column),ee==1?(ee=this.compare(te.row,te.column),ee==1?2:ee==0?1:0):ee==-1?-2:(ee=this.compare(te.row,te.column),ee==-1?-1:ee==1?42:0)},this.comparePoint=function(Q){return this.compare(Q.row,Q.column)},this.containsRange=function(Q){return this.comparePoint(Q.start)==0&&this.comparePoint(Q.end)==0},this.intersects=function(Q){var ee=this.compareRange(Q);return ee==-1||ee==0||ee==1},this.isEnd=function(Q,ee){return this.end.row==Q&&this.end.column==ee},this.isStart=function(Q,ee){return this.start.row==Q&&this.start.column==ee},this.setStart=function(Q,ee){typeof Q=="object"?(this.start.column=Q.column,this.start.row=Q.row):(this.start.row=Q,this.start.column=ee)},this.setEnd=function(Q,ee){typeof Q=="object"?(this.end.column=Q.column,this.end.row=Q.row):(this.end.row=Q,this.end.column=ee)},this.inside=function(Q,ee){return this.compare(Q,ee)==0?!(this.isEnd(Q,ee)||this.isStart(Q,ee)):!1},this.insideStart=function(Q,ee){return this.compare(Q,ee)==0?!this.isEnd(Q,ee):!1},this.insideEnd=function(Q,ee){return this.compare(Q,ee)==0?!this.isStart(Q,ee):!1},this.compare=function(Q,ee){return!this.isMultiLine()&&Q===this.start.row?ee<this.start.column?-1:ee>this.end.column?1:0:Q<this.start.row?-1:Q>this.end.row?1:this.start.row===Q?ee>=this.start.column?0:-1:this.end.row===Q?ee<=this.end.column?0:1:0},this.compareStart=function(Q,ee){return this.start.row==Q&&this.start.column==ee?-1:this.compare(Q,ee)},this.compareEnd=function(Q,ee){return this.end.row==Q&&this.end.column==ee?1:this.compare(Q,ee)},this.compareInside=function(Q,ee){return this.end.row==Q&&this.end.column==ee?1:this.start.row==Q&&this.start.column==ee?-1:this.compare(Q,ee)},this.clipRows=function(Q,ee){if(this.end.row>ee)var ie={row:ee+1,column:0};else if(this.end.row<Q)var ie={row:Q,column:0};if(this.start.row>ee)var te={row:ee+1,column:0};else if(this.start.row<Q)var te={row:Q,column:0};return Z.fromPoints(te||this.start,ie||this.end)},this.extend=function(Q,ee){var ie=this.compare(Q,ee);if(ie==0)return this;if(ie==-1)var te={row:Q,column:ee};else var ne={row:Q,column:ee};return Z.fromPoints(te||this.start,ne||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Z.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new Z(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Z(this.start.row,0,this.end.row,0)},this.toScreenRange=function(Q){var ee=Q.documentToScreenPosition(this.start),ie=Q.documentToScreenPosition(this.end);return new Z(ee.row,ee.column,ie.row,ie.column)},this.moveBy=function(Q,ee){this.start.row+=Q,this.start.column+=ee,this.end.row+=Q,this.end.column+=ee}}).call(Z.prototype),Z.fromPoints=function(Q,ee){return new Z(Q.row,Q.column,ee.row,ee.column)},Z.comparePoints=X,Z.comparePoints=function(Q,ee){return Q.row-ee.row||Q.column-ee.column},W.Range=Z}),ace.define("ace/clipboard",["require","exports","module"],function(U,W,G){var X;G.exports={lineMode:!1,pasteCancelled:function(){return X&&X>Date.now()-50?!0:X=!1},cancel:function(){X=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(U,W,G){var X=U("../lib/event"),Z=U("../lib/useragent"),Q=U("../lib/dom"),ee=U("../lib/lang"),ie=U("../clipboard"),te=Z.isChrome<18,ne=Z.isIE,ae=Z.isChrome>63,oe=400,se=U("../lib/keys"),le=se.KEY_MODS,ce=Z.isIOS,ue=ce?/\s/:/\n/,de=Z.isMobile,ve=function(ge,he){var me=Q.createElement("textarea");me.className="ace_text-input",me.setAttribute("wrap","off"),me.setAttribute("autocorrect","off"),me.setAttribute("autocapitalize","off"),me.setAttribute("spellcheck",!1),me.style.opacity="0",ge.insertBefore(me,ge.firstChild);var _e=!1,be=!1,pe=!1,fe=!1,ye="";de||(me.style.fontSize="1px");var $e=!1,we=!1,Se="",Te=0,xe=0,ke=0;try{var Ie=document.activeElement===me}catch{}X.addListener(me,"blur",function(We){we||(he.onBlur(We),Ie=!1)},he),X.addListener(me,"focus",function(We){if(!we){if(Ie=!0,Z.isEdge)try{if(!document.hasFocus())return}catch{}he.onFocus(We),Z.isEdge?setTimeout(Ae):Ae()}},he),this.$focusScroll=!1,this.focus=function(){if(ye||ae||this.$focusScroll=="browser")return me.focus({preventScroll:!0});var We=me.style.top;me.style.position="fixed",me.style.top="0px";try{var He=me.getBoundingClientRect().top!=0}catch{return}var Ye=[];if(He)for(var nt=me.parentElement;nt&&nt.nodeType==1;)Ye.push(nt),nt.setAttribute("ace_nocontext",!0),!nt.parentElement&&nt.getRootNode?nt=nt.getRootNode().host:nt=nt.parentElement;me.focus({preventScroll:!0}),He&&Ye.forEach(function(tt){tt.removeAttribute("ace_nocontext")}),setTimeout(function(){me.style.position="",me.style.top=="0px"&&(me.style.top=We)},0)},this.blur=function(){me.blur()},this.isFocused=function(){return Ie},he.on("beforeEndOperation",function(){var We=he.curOp,He=We&&We.command&&We.command.name;if(He!="insertstring"){var Ye=He&&(We.docChanged||We.selectionChanged);pe&&Ye&&(Se=me.value="",Ce()),Ae()}});var Ae=ce?function(We){if(!(!Ie||_e&&!We||fe)){We||(We="");var He=`
|
||
ab`+We+`cde fg
|
||
`;He!=me.value&&(me.value=Se=He);var Ye=4,nt=4+(We.length||(he.selection.isEmpty()?0:1));(Te!=Ye||xe!=nt)&&me.setSelectionRange(Ye,nt),Te=Ye,xe=nt}}:function(){if(!(pe||fe)&&!(!Ie&&!Ne)){pe=!0;var We=0,He=0,Ye="";if(he.session){var nt=he.selection,tt=nt.getRange(),at=nt.cursor.row;if(We=tt.start.column,He=tt.end.column,Ye=he.session.getLine(at),tt.start.row!=at){var St=he.session.getLine(at-1);We=tt.start.row<at-1?0:We,He+=St.length+1,Ye=St+`
|
||
`+Ye}else if(tt.end.row!=at){var st=he.session.getLine(at+1);He=tt.end.row>at+1?st.length:He,He+=Ye.length+1,Ye=Ye+`
|
||
`+st}else de&&at>0&&(Ye=`
|
||
`+Ye,He+=1,We+=1);Ye.length>oe&&(We<oe&&He<oe?Ye=Ye.slice(0,oe):(Ye=`
|
||
`,We==He?We=He=0:(We=0,He=1)))}var it=Ye+`
|
||
|
||
`;if(it!=Se&&(me.value=Se=it,Te=xe=it.length),Ne&&(Te=me.selectionStart,xe=me.selectionEnd),xe!=He||Te!=We||me.selectionEnd!=xe)try{me.setSelectionRange(We,He),Te=We,xe=He}catch{}pe=!1}};this.resetSelection=Ae,Ie&&he.onFocus();var Me=function(We){return We.selectionStart===0&&We.selectionEnd>=Se.length&&We.value===Se&&Se&&We.selectionEnd!==xe},Fe=function(We){pe||(_e?_e=!1:Me(me)?(he.selectAll(),Ae()):de&&me.selectionStart!=Te&&Ae())},Be=null;this.setInputHandler=function(We){Be=We},this.getInputHandler=function(){return Be};var Ne=!1,Ve=function(We,He){if(Ne&&(Ne=!1),be)return Ae(),We&&he.onPaste(We),be=!1,"";for(var Ye=me.selectionStart,nt=me.selectionEnd,tt=Te,at=Se.length-xe,St=We,st=We.length-Ye,it=We.length-nt,pt=0;tt>0&&Se[pt]==We[pt];)pt++,tt--;for(St=St.slice(pt),pt=1;at>0&&Se.length-pt>Te-1&&Se[Se.length-pt]==We[We.length-pt];)pt++,at--;st-=pt-1,it-=pt-1;var wt=St.length-pt+1;if(wt<0&&(tt=-wt,wt=0),St=St.slice(0,wt),!He&&!St&&!st&&!tt&&!at&&!it)return"";fe=!0;var xt=!1;return Z.isAndroid&&St==". "&&(St=" ",xt=!0),St&&!tt&&!at&&!st&&!it||$e?he.onTextInput(St):he.onTextInput(St,{extendLeft:tt,extendRight:at,restoreStart:st,restoreEnd:it}),fe=!1,Se=We,Te=Ye,xe=nt,ke=it,xt?`
|
||
`:St},Le=function(We){if(pe)return Ee();if(We&&We.inputType){if(We.inputType=="historyUndo")return he.execCommand("undo");if(We.inputType=="historyRedo")return he.execCommand("redo")}var He=me.value,Ye=Ve(He,!0);(He.length>oe+100||ue.test(Ye)||de&&Te<1&&Te==xe)&&Ae()},De=function(We,He,Ye){var nt=We.clipboardData||window.clipboardData;if(!(!nt||te)){var tt=ne||Ye?"Text":"text/plain";try{return He?nt.setData(tt,He)!==!1:nt.getData(tt)}catch(at){if(!Ye)return De(at,He,!0)}}},Je=function(We,He){var Ye=he.getCopyText();if(!Ye)return X.preventDefault(We);De(We,Ye)?(ce&&(Ae(Ye),_e=Ye,setTimeout(function(){_e=!1},10)),He?he.onCut():he.onCopy(),X.preventDefault(We)):(_e=!0,me.value=Ye,me.select(),setTimeout(function(){_e=!1,Ae(),He?he.onCut():he.onCopy()}))},ze=function(We){Je(We,!0)},Ge=function(We){Je(We,!1)},qe=function(We){var He=De(We);ie.pasteCancelled()||(typeof He=="string"?(He&&he.onPaste(He,We),Z.isIE&&setTimeout(Ae),X.preventDefault(We)):(me.value="",be=!0))};X.addCommandKeyListener(me,he.onCommandKey.bind(he),he),X.addListener(me,"select",Fe,he),X.addListener(me,"input",Le,he),X.addListener(me,"cut",ze,he),X.addListener(me,"copy",Ge,he),X.addListener(me,"paste",qe,he),(!("oncut"in me)||!("oncopy"in me)||!("onpaste"in me))&&X.addListener(ge,"keydown",function(We){if(!(Z.isMac&&!We.metaKey||!We.ctrlKey))switch(We.keyCode){case 67:Ge(We);break;case 86:qe(We);break;case 88:ze(We);break}},he);var Ke=function(We){if(!(pe||!he.onCompositionStart||he.$readOnly)&&(pe={},!$e)){We.data&&(pe.useTextareaForIME=!1),setTimeout(Ee,0),he._signal("compositionStart"),he.on("mousedown",Pe);var He=he.getSelectionRange();He.end.row=He.start.row,He.end.column=He.start.column,pe.markerRange=He,pe.selectionStart=Te,he.onCompositionStart(pe),pe.useTextareaForIME?(Se=me.value="",Te=0,xe=0):(me.msGetInputContext&&(pe.context=me.msGetInputContext()),me.getInputContext&&(pe.context=me.getInputContext()))}},Ee=function(){if(!(!pe||!he.onCompositionUpdate||he.$readOnly)){if($e)return Pe();if(pe.useTextareaForIME)he.onCompositionUpdate(me.value);else{var We=me.value;Ve(We),pe.markerRange&&(pe.context&&(pe.markerRange.start.column=pe.selectionStart=pe.context.compositionStartOffset),pe.markerRange.end.column=pe.markerRange.start.column+xe-pe.selectionStart+ke)}}},Ce=function(We){!he.onCompositionEnd||he.$readOnly||(pe=!1,he.onCompositionEnd(),he.off("mousedown",Pe),We&&Le())};function Pe(){we=!0,me.blur(),me.focus(),we=!1}var Re=ee.delayedCall(Ee,50).schedule.bind(null,null);function Ze(We){We.keyCode==27&&me.value.length<me.selectionStart&&(pe||(Se=me.value),Te=xe=-1,Ae()),Re()}X.addListener(me,"compositionstart",Ke,he),X.addListener(me,"compositionupdate",Ee,he),X.addListener(me,"keyup",Ze,he),X.addListener(me,"keydown",Re,he),X.addListener(me,"compositionend",Ce,he),this.getElement=function(){return me},this.setCommandMode=function(We){$e=We,me.readOnly=!1},this.setReadOnly=function(We){$e||(me.readOnly=We)},this.setCopyWithEmptySelection=function(We){},this.onContextMenu=function(We){Ne=!0,Ae(),he._emit("nativecontextmenu",{target:he,domEvent:We}),this.moveToMouse(We,!0)},this.moveToMouse=function(We,He){ye||(ye=me.style.cssText),me.style.cssText=(He?"z-index:100000;":"")+(Z.isIE?"opacity:0.1;":"")+"text-indent: -"+(Te+xe)*he.renderer.characterWidth*.5+"px;";var Ye=he.container.getBoundingClientRect(),nt=Q.computedStyle(he.container),tt=Ye.top+(parseInt(nt.borderTopWidth)||0),at=Ye.left+(parseInt(Ye.borderLeftWidth)||0),St=Ye.bottom-tt-me.clientHeight-2,st=function(it){Q.translate(me,it.clientX-at-2,Math.min(it.clientY-tt-2,St))};st(We),We.type=="mousedown"&&(he.renderer.$isMousePressed=!0,clearTimeout(Oe),Z.isWin&&X.capture(he.container,st,Qe))},this.onContextMenuClose=Qe;var Oe;function Qe(){clearTimeout(Oe),Oe=setTimeout(function(){ye&&(me.style.cssText=ye,ye=""),he.renderer.$isMousePressed=!1,he.renderer.$keepTextAreaAtCursor&&he.renderer.$moveTextAreaToCursor()},0)}var Xe=function(We){he.textInput.onContextMenu(We),Qe()};X.addListener(me,"mouseup",Xe,he),X.addListener(me,"mousedown",function(We){We.preventDefault(),Qe()},he),X.addListener(he.renderer.scroller,"contextmenu",Xe,he),X.addListener(me,"contextmenu",Xe,he),ce&&et(ge,he,me);function et(We,He,Ye){var nt=null,tt=!1;Ye.addEventListener("keydown",function(St){nt&&clearTimeout(nt),tt=!0},!0),Ye.addEventListener("keyup",function(St){nt=setTimeout(function(){tt=!1},100)},!0);var at=function(St){if(document.activeElement===Ye&&!(tt||pe||He.$mouseHandler.isMousePressed)&&!_e){var st=Ye.selectionStart,it=Ye.selectionEnd,pt=null,wt=0;if(st==0?pt=se.up:st==1?pt=se.home:it>xe&&Se[it]==`
|
||
`?pt=se.end:st<Te&&Se[st-1]==" "?(pt=se.left,wt=le.option):st<Te||st==Te&&xe!=Te&&st==it?pt=se.left:it>xe&&Se.slice(0,it).split(`
|
||
`).length>2?pt=se.down:it>xe&&Se[it-1]==" "?(pt=se.right,wt=le.option):(it>xe||it==xe&&xe!=Te&&st==it)&&(pt=se.right),st!==it&&(wt|=le.shift),pt){var xt=He.onCommandKey({},wt,pt);if(!xt&&He.commands){pt=se.keyCodeToString(pt);var mt=He.commands.findKeyCommand(wt,pt);mt&&He.execCommand(mt)}Te=st,xe=it,Ae("")}}};document.addEventListener("selectionchange",at),He.on("destroy",function(){document.removeEventListener("selectionchange",at)})}this.destroy=function(){me.parentElement&&me.parentElement.removeChild(me)}};W.TextInput=ve,W.$setUserAgentForTests=function(ge,he){de=ge,ce=he}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(U,W,G){var X=U("../lib/useragent"),Z=0,Q=550;function ee(ne){ne.$clickSelection=null;var ae=ne.editor;ae.setDefaultHandler("mousedown",this.onMouseDown.bind(ne)),ae.setDefaultHandler("dblclick",this.onDoubleClick.bind(ne)),ae.setDefaultHandler("tripleclick",this.onTripleClick.bind(ne)),ae.setDefaultHandler("quadclick",this.onQuadClick.bind(ne)),ae.setDefaultHandler("mousewheel",this.onMouseWheel.bind(ne));var oe=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];oe.forEach(function(se){ne[se]=this[se]},this),ne.selectByLines=this.extendSelectionBy.bind(ne,"getLineRange"),ne.selectByWords=this.extendSelectionBy.bind(ne,"getWordRange")}(function(){this.onMouseDown=function(ne){var ae=ne.inSelection(),oe=ne.getDocumentPosition();this.mousedownEvent=ne;var se=this.editor,le=ne.getButton();if(le!==0){var ce=se.getSelectionRange(),ue=ce.isEmpty();(ue||le==1)&&se.selection.moveToPosition(oe),le==2&&(se.textInput.onContextMenu(ne.domEvent),X.isMozilla||ne.preventDefault());return}if(this.mousedownEvent.time=Date.now(),ae&&!se.isFocused()&&(se.focus(),this.$focusTimeout&&!this.$clickSelection&&!se.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(ne);return}return this.captureMouse(ne),this.startSelect(oe,ne.domEvent._clicks>1),ne.preventDefault()},this.startSelect=function(ne,ae){ne=ne||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var oe=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?oe.selection.selectToPosition(ne):ae||oe.selection.moveToPosition(ne),ae||this.select(),oe.renderer.scroller.setCapture&&oe.renderer.scroller.setCapture(),oe.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var ne,ae=this.editor,oe=ae.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var se=this.$clickSelection.comparePoint(oe);if(se==-1)ne=this.$clickSelection.end;else if(se==1)ne=this.$clickSelection.start;else{var le=te(this.$clickSelection,oe);oe=le.cursor,ne=le.anchor}ae.selection.setSelectionAnchor(ne.row,ne.column)}ae.selection.selectToPosition(oe),ae.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(ne){var ae,oe=this.editor,se=oe.renderer.screenToTextCoordinates(this.x,this.y),le=oe.selection[ne](se.row,se.column);if(this.$clickSelection){var ce=this.$clickSelection.comparePoint(le.start),ue=this.$clickSelection.comparePoint(le.end);if(ce==-1&&ue<=0)ae=this.$clickSelection.end,(le.end.row!=se.row||le.end.column!=se.column)&&(se=le.start);else if(ue==1&&ce>=0)ae=this.$clickSelection.start,(le.start.row!=se.row||le.start.column!=se.column)&&(se=le.end);else if(ce==-1&&ue==1)se=le.end,ae=le.start;else{var de=te(this.$clickSelection,se);se=de.cursor,ae=de.anchor}oe.selection.setSelectionAnchor(ae.row,ae.column)}oe.selection.selectToPosition(se),oe.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var ne=ie(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),ae=Date.now();(ne>Z||ae-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(ne){var ae=ne.getDocumentPosition(),oe=this.editor,se=oe.session,le=se.getBracketRange(ae);le?(le.isEmpty()&&(le.start.column--,le.end.column++),this.setState("select")):(le=oe.selection.getWordRange(ae.row,ae.column),this.setState("selectByWords")),this.$clickSelection=le,this.select()},this.onTripleClick=function(ne){var ae=ne.getDocumentPosition(),oe=this.editor;this.setState("selectByLines");var se=oe.getSelectionRange();se.isMultiLine()&&se.contains(ae.row,ae.column)?(this.$clickSelection=oe.selection.getLineRange(se.start.row),this.$clickSelection.end=oe.selection.getLineRange(se.end.row).end):this.$clickSelection=oe.selection.getLineRange(ae.row),this.select()},this.onQuadClick=function(ne){var ae=this.editor;ae.selectAll(),this.$clickSelection=ae.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(ne){if(!ne.getAccelKey()){ne.getShiftKey()&&ne.wheelY&&!ne.wheelX&&(ne.wheelX=ne.wheelY,ne.wheelY=0);var ae=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var oe=this.$lastScroll,se=ne.domEvent.timeStamp,le=se-oe.t,ce=le?ne.wheelX/le:oe.vx,ue=le?ne.wheelY/le:oe.vy;le<Q&&(ce=(ce+oe.vx)/2,ue=(ue+oe.vy)/2);var de=Math.abs(ce/ue),ve=!1;if(de>=1&&ae.renderer.isScrollableBy(ne.wheelX*ne.speed,0)&&(ve=!0),de<=1&&ae.renderer.isScrollableBy(0,ne.wheelY*ne.speed)&&(ve=!0),ve)oe.allowed=se;else if(se-oe.allowed<Q){var ge=Math.abs(ce)<=1.5*Math.abs(oe.vx)&&Math.abs(ue)<=1.5*Math.abs(oe.vy);ge?(ve=!0,oe.allowed=se):oe.allowed=0}if(oe.t=se,oe.vx=ce,oe.vy=ue,ve)return ae.renderer.scrollBy(ne.wheelX*ne.speed,ne.wheelY*ne.speed),ne.stop()}}}).call(ee.prototype),W.DefaultHandlers=ee;function ie(ne,ae,oe,se){return Math.sqrt(Math.pow(oe-ne,2)+Math.pow(se-ae,2))}function te(ne,ae){if(ne.start.row==ne.end.row)var oe=2*ae.column-ne.start.column-ne.end.column;else if(ne.start.row==ne.end.row-1&&!ne.start.column&&!ne.end.column)var oe=ae.column-4;else var oe=2*ae.row-ne.start.row-ne.end.row;return oe<0?{cursor:ne.start,anchor:ne.end}:{cursor:ne.end,anchor:ne.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(U,W,G){U("./lib/oop");var X=U("./lib/dom"),Z="ace_tooltip";function Q(ee){this.isOpen=!1,this.$element=null,this.$parentNode=ee}(function(){this.$init=function(){return this.$element=X.createElement("div"),this.$element.className=Z,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(ee){this.getElement().textContent=ee},this.setHtml=function(ee){this.getElement().innerHTML=ee},this.setPosition=function(ee,ie){this.getElement().style.left=ee+"px",this.getElement().style.top=ie+"px"},this.setClassName=function(ee){X.addCssClass(this.getElement(),ee)},this.show=function(ee,ie,te){ee!=null&&this.setText(ee),ie!=null&&te!=null&&this.setPosition(ie,te),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=Z,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(Q.prototype),W.Tooltip=Q}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(U,W,G){var X=U("../lib/dom"),Z=U("../lib/oop"),Q=U("../lib/event"),ee=U("../tooltip").Tooltip;function ie(ne){var ae=ne.editor,oe=ae.renderer.$gutterLayer,se=new te(ae.container);ne.editor.setDefaultHandler("guttermousedown",function(he){if(!(!ae.isFocused()||he.getButton()!=0)){var me=oe.getRegion(he);if(me!="foldWidgets"){var _e=he.getDocumentPosition().row,be=ae.session.selection;if(he.getShiftKey())be.selectTo(_e,0);else{if(he.domEvent.detail==2)return ae.selectAll(),he.preventDefault();ne.$clickSelection=ae.selection.getLineRange(_e)}return ne.setState("selectByLines"),ne.captureMouse(he),he.preventDefault()}}});var le,ce,ue;function de(){var he=ce.getDocumentPosition().row,me=oe.$annotations[he];if(!me)return ve();var _e=ae.session.getLength();if(he==_e){var be=ae.renderer.pixelToScreenCoordinates(0,ce.y).row,pe=ce.$pos;if(be>ae.session.documentToScreenRow(pe.row,pe.column))return ve()}if(ue!=me){ue=me.text.join("<br/>"),se.setHtml(ue);var fe=me.className;if(fe&&se.setClassName(fe.trim()),se.show(),ae._signal("showGutterTooltip",se),ae.on("mousewheel",ve),ne.$tooltipFollowsMouse)ge(ce);else{var ye=ce.domEvent.target,$e=ye.getBoundingClientRect(),we=se.getElement().style;we.left=$e.right+"px",we.top=$e.bottom+"px"}}}function ve(){le&&(le=clearTimeout(le)),ue&&(se.hide(),ue=null,ae._signal("hideGutterTooltip",se),ae.off("mousewheel",ve))}function ge(he){se.setPosition(he.x,he.y)}ne.editor.setDefaultHandler("guttermousemove",function(he){var me=he.domEvent.target||he.domEvent.srcElement;if(X.hasCssClass(me,"ace_fold-widget"))return ve();ue&&ne.$tooltipFollowsMouse&&ge(he),ce=he,!le&&(le=setTimeout(function(){le=null,ce&&!ne.isMousePressed?de():ve()},50))}),Q.addListener(ae.renderer.$gutter,"mouseout",function(he){ce=null,!(!ue||le)&&(le=setTimeout(function(){le=null,ve()},50))},ae),ae.on("changeSession",ve)}function te(ne){ee.call(this,ne)}Z.inherits(te,ee),function(){this.setPosition=function(ne,ae){var oe=window.innerWidth||document.documentElement.clientWidth,se=window.innerHeight||document.documentElement.clientHeight,le=this.getWidth(),ce=this.getHeight();ne+=15,ae+=15,ne+le>oe&&(ne-=ne+le-oe),ae+ce>se&&(ae-=20+ce),ee.prototype.setPosition.call(this,ne,ae)}}.call(te.prototype),W.GutterHandler=ie}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(U,W,G){var X=U("../lib/event"),Z=U("../lib/useragent"),Q=W.MouseEvent=function(ee,ie){this.domEvent=ee,this.editor=ie,this.x=this.clientX=ee.clientX,this.y=this.clientY=ee.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){X.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){X.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var ee=this.editor,ie=ee.getSelectionRange();if(ie.isEmpty())this.$inSelection=!1;else{var te=this.getDocumentPosition();this.$inSelection=ie.contains(te.row,te.column)}return this.$inSelection},this.getButton=function(){return X.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=Z.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(Q.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(U,W,G){var X=U("../lib/dom"),Z=U("../lib/event"),Q=U("../lib/useragent"),ee=200,ie=200,te=5;function ne(oe){var se=oe.editor,le=X.createElement("div");le.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",le.textContent="\xA0";var ce=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];ce.forEach(function(Ne){oe[Ne]=this[Ne]},this),se.on("mousedown",this.onMouseDown.bind(oe));var ue=se.container,de,ve,ge,he,me,_e,be=0,pe,fe,ye,$e,we;this.onDragStart=function(Ne){if(this.cancelDrag||!ue.draggable){var Ve=this;return setTimeout(function(){Ve.startSelect(),Ve.captureMouse(Ne)},0),Ne.preventDefault()}me=se.getSelectionRange();var Le=Ne.dataTransfer;Le.effectAllowed=se.getReadOnly()?"copy":"copyMove",se.container.appendChild(le),Le.setDragImage&&Le.setDragImage(le,0,0),setTimeout(function(){se.container.removeChild(le)}),Le.clearData(),Le.setData("Text",se.session.getTextRange()),fe=!0,this.setState("drag")},this.onDragEnd=function(Ne){if(ue.draggable=!1,fe=!1,this.setState(null),!se.getReadOnly()){var Ve=Ne.dataTransfer.dropEffect;!pe&&Ve=="move"&&se.session.remove(se.getSelectionRange()),se.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Ne){if(!(se.getReadOnly()||!Fe(Ne.dataTransfer)))return ve=Ne.clientX,ge=Ne.clientY,de||ke(),be++,Ne.dataTransfer.dropEffect=pe=Be(Ne),Z.preventDefault(Ne)},this.onDragOver=function(Ne){if(!(se.getReadOnly()||!Fe(Ne.dataTransfer)))return ve=Ne.clientX,ge=Ne.clientY,de||(ke(),be++),Ae!==null&&(Ae=null),Ne.dataTransfer.dropEffect=pe=Be(Ne),Z.preventDefault(Ne)},this.onDragLeave=function(Ne){if(be--,be<=0&&de)return Ie(),pe=null,Z.preventDefault(Ne)},this.onDrop=function(Ne){if(!!_e){var Ve=Ne.dataTransfer;if(fe)switch(pe){case"move":me.contains(_e.row,_e.column)?me={start:_e,end:_e}:me=se.moveText(me,_e);break;case"copy":me=se.moveText(me,_e,!0);break}else{var Le=Ve.getData("Text");me={start:_e,end:se.session.insert(_e,Le)},se.focus(),pe=null}return Ie(),Z.preventDefault(Ne)}},Z.addListener(ue,"dragstart",this.onDragStart.bind(oe),se),Z.addListener(ue,"dragend",this.onDragEnd.bind(oe),se),Z.addListener(ue,"dragenter",this.onDragEnter.bind(oe),se),Z.addListener(ue,"dragover",this.onDragOver.bind(oe),se),Z.addListener(ue,"dragleave",this.onDragLeave.bind(oe),se),Z.addListener(ue,"drop",this.onDrop.bind(oe),se);function Se(Ne,Ve){var Le=Date.now(),De=!Ve||Ne.row!=Ve.row,Je=!Ve||Ne.column!=Ve.column;if(!$e||De||Je)se.moveCursorToPosition(Ne),$e=Le,we={x:ve,y:ge};else{var ze=ae(we.x,we.y,ve,ge);ze>te?$e=null:Le-$e>=ie&&(se.renderer.scrollCursorIntoView(),$e=null)}}function Te(Ne,Ve){var Le=Date.now(),De=se.renderer.layerConfig.lineHeight,Je=se.renderer.layerConfig.characterWidth,ze=se.renderer.scroller.getBoundingClientRect(),Ge={x:{left:ve-ze.left,right:ze.right-ve},y:{top:ge-ze.top,bottom:ze.bottom-ge}},qe=Math.min(Ge.x.left,Ge.x.right),Ke=Math.min(Ge.y.top,Ge.y.bottom),Ee={row:Ne.row,column:Ne.column};qe/Je<=2&&(Ee.column+=Ge.x.left<Ge.x.right?-3:2),Ke/De<=1&&(Ee.row+=Ge.y.top<Ge.y.bottom?-1:1);var Ce=Ne.row!=Ee.row,Pe=Ne.column!=Ee.column,Re=!Ve||Ne.row!=Ve.row;Ce||Pe&&!Re?ye?Le-ye>=ee&&se.renderer.scrollCursorIntoView(Ee):ye=Le:ye=null}function xe(){var Ne=_e;_e=se.renderer.screenToTextCoordinates(ve,ge),Se(_e,Ne),Te(_e,Ne)}function ke(){me=se.selection.toOrientedRange(),de=se.session.addMarker(me,"ace_selection",se.getSelectionStyle()),se.clearSelection(),se.isFocused()&&se.renderer.$cursorLayer.setBlinking(!1),clearInterval(he),xe(),he=setInterval(xe,20),be=0,Z.addListener(document,"mousemove",Me)}function Ie(){clearInterval(he),se.session.removeMarker(de),de=null,se.selection.fromOrientedRange(me),se.isFocused()&&!fe&&se.$resetCursorStyle(),me=null,_e=null,be=0,ye=null,$e=null,Z.removeListener(document,"mousemove",Me)}var Ae=null;function Me(){Ae==null&&(Ae=setTimeout(function(){Ae!=null&&de&&Ie()},20))}function Fe(Ne){var Ve=Ne.types;return!Ve||Array.prototype.some.call(Ve,function(Le){return Le=="text/plain"||Le=="Text"})}function Be(Ne){var Ve=["copy","copymove","all","uninitialized"],Le=["move","copymove","linkmove","all","uninitialized"],De=Q.isMac?Ne.altKey:Ne.ctrlKey,Je="uninitialized";try{Je=Ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var ze="none";return De&&Ve.indexOf(Je)>=0?ze="copy":Le.indexOf(Je)>=0?ze="move":Ve.indexOf(Je)>=0&&(ze="copy"),ze}}(function(){this.dragWait=function(){var oe=Date.now()-this.mousedownEvent.time;oe>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var oe=this.editor.container;oe.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(oe){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var oe=this.editor,se=oe.container;se.draggable=!0,oe.renderer.$cursorLayer.setBlinking(!1),oe.setStyle("ace_dragging");var le=Q.isWin?"default":"move";oe.renderer.setCursorStyle(le),this.setState("dragReady")},this.onMouseDrag=function(oe){var se=this.editor.container;if(Q.isIE&&this.state=="dragReady"){var le=ae(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);le>3&&se.dragDrop()}if(this.state==="dragWait"){var le=ae(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);le>0&&(se.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(oe){if(!!this.$dragEnabled){this.mousedownEvent=oe;var se=this.editor,le=oe.inSelection(),ce=oe.getButton(),ue=oe.domEvent.detail||1;if(ue===1&&ce===0&&le){if(oe.editor.inMultiSelectMode&&(oe.getAccelKey()||oe.getShiftKey()))return;this.mousedownEvent.time=Date.now();var de=oe.domEvent.target||oe.domEvent.srcElement;if("unselectable"in de&&(de.unselectable="on"),se.getDragDelay()){if(Q.isWebKit){this.cancelDrag=!0;var ve=se.container;ve.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(oe,this.onMouseDrag.bind(this)),oe.defaultPrevented=!0}}}}).call(ne.prototype);function ae(oe,se,le,ce){return Math.sqrt(Math.pow(le-oe,2)+Math.pow(ce-se,2))}W.DragdropHandler=ne}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(U,W,G){var X=U("./mouse_event").MouseEvent,Z=U("../lib/event"),Q=U("../lib/dom");W.addTouchListeners=function(ee,ie){var te="scroll",ne,ae,oe,se,le,ce,ue=0,de,ve=0,ge=0,he=0,me,_e;function be(){var Se=window.navigator&&window.navigator.clipboard,Te=!1,xe=function(){var Ie=ie.getCopyText(),Ae=ie.session.getUndoManager().hasUndo();_e.replaceChild(Q.buildDom(Te?["span",!Ie&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Ie&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Ie&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Se&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Ae&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),_e.firstChild)},ke=function(Ie){var Ae=Ie.target.getAttribute("action");if(Ae=="more"||!Te)return Te=!Te,xe();Ae=="paste"?Se.readText().then(function(Me){ie.execCommand(Ae,Me)}):Ae&&((Ae=="cut"||Ae=="copy")&&(Se?Se.writeText(ie.getCopyText()):document.execCommand("copy")),ie.execCommand(Ae)),_e.firstChild.style.display="none",Te=!1,Ae!="openCommandPallete"&&ie.focus()};_e=Q.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Ie){te="menu",Ie.stopPropagation(),Ie.preventDefault(),ie.textInput.focus()},ontouchend:function(Ie){Ie.stopPropagation(),Ie.preventDefault(),ke(Ie)},onclick:ke},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],ie.container)}function pe(){_e||be();var Se=ie.selection.cursor,Te=ie.renderer.textToScreenCoordinates(Se.row,Se.column),xe=ie.renderer.textToScreenCoordinates(0,0).pageX,ke=ie.renderer.scrollLeft,Ie=ie.container.getBoundingClientRect();_e.style.top=Te.pageY-Ie.top-3+"px",Te.pageX-Ie.left<Ie.width-70?(_e.style.left="",_e.style.right="10px"):(_e.style.right="",_e.style.left=xe+ke-Ie.left+"px"),_e.style.display="",_e.firstChild.style.display="none",ie.on("input",fe)}function fe(Se){_e&&(_e.style.display="none"),ie.off("input",fe)}function ye(){le=null,clearTimeout(le);var Se=ie.selection.getRange(),Te=Se.contains(de.row,de.column);(Se.isEmpty()||!Te)&&(ie.selection.moveToPosition(de),ie.selection.selectWord()),te="wait",pe()}function $e(){le=null,clearTimeout(le),ie.selection.moveToPosition(de);var Se=ve>=2?ie.selection.getLineRange(de.row):ie.session.getBracketRange(de);Se&&!Se.isEmpty()?ie.selection.setRange(Se):ie.selection.selectWord(),te="wait"}Z.addListener(ee,"contextmenu",function(Se){if(!!me){var Te=ie.textInput.getElement();Te.focus()}},ie),Z.addListener(ee,"touchstart",function(Se){var Te=Se.touches;if(le||Te.length>1){clearTimeout(le),le=null,oe=-1,te="zoom";return}me=ie.$mouseHandler.isMousePressed=!0;var xe=ie.renderer.layerConfig.lineHeight,ke=ie.renderer.layerConfig.lineHeight,Ie=Se.timeStamp;se=Ie;var Ae=Te[0],Me=Ae.clientX,Fe=Ae.clientY;Math.abs(ne-Me)+Math.abs(ae-Fe)>xe&&(oe=-1),ne=Se.clientX=Me,ae=Se.clientY=Fe,ge=he=0;var Be=new X(Se,ie);if(de=Be.getDocumentPosition(),Ie-oe<500&&Te.length==1&&!ue)ve++,Se.preventDefault(),Se.button=0,$e();else{ve=0;var Ne=ie.selection.cursor,Ve=ie.selection.isEmpty()?Ne:ie.selection.anchor,Le=ie.renderer.$cursorLayer.getPixelPosition(Ne,!0),De=ie.renderer.$cursorLayer.getPixelPosition(Ve,!0),Je=ie.renderer.scroller.getBoundingClientRect(),ze=ie.renderer.layerConfig.offset,Ge=ie.renderer.scrollLeft,qe=function(Ce,Pe){return Ce=Ce/ke,Pe=Pe/xe-.75,Ce*Ce+Pe*Pe};if(Se.clientX<Je.left){te="zoom";return}var Ke=qe(Se.clientX-Je.left-Le.left+Ge,Se.clientY-Je.top-Le.top+ze),Ee=qe(Se.clientX-Je.left-De.left+Ge,Se.clientY-Je.top-De.top+ze);Ke<3.5&&Ee<3.5&&(te=Ke>Ee?"cursor":"anchor"),Ee<3.5?te="anchor":Ke<3.5?te="cursor":te="scroll",le=setTimeout(ye,450)}oe=Ie},ie),Z.addListener(ee,"touchend",function(Se){me=ie.$mouseHandler.isMousePressed=!1,ce&&clearInterval(ce),te=="zoom"?(te="",ue=0):le?(ie.selection.moveToPosition(de),ue=0,pe()):te=="scroll"?(we(),fe()):pe(),clearTimeout(le),le=null},ie),Z.addListener(ee,"touchmove",function(Se){le&&(clearTimeout(le),le=null);var Te=Se.touches;if(!(Te.length>1||te=="zoom")){var xe=Te[0],ke=ne-xe.clientX,Ie=ae-xe.clientY;if(te=="wait")if(ke*ke+Ie*Ie>4)te="cursor";else return Se.preventDefault();ne=xe.clientX,ae=xe.clientY,Se.clientX=xe.clientX,Se.clientY=xe.clientY;var Ae=Se.timeStamp,Me=Ae-se;if(se=Ae,te=="scroll"){var Fe=new X(Se,ie);Fe.speed=1,Fe.wheelX=ke,Fe.wheelY=Ie,10*Math.abs(ke)<Math.abs(Ie)&&(ke=0),10*Math.abs(Ie)<Math.abs(ke)&&(Ie=0),Me!=0&&(ge=ke/Me,he=Ie/Me),ie._emit("mousewheel",Fe),Fe.propagationStopped||(ge=he=0)}else{var Be=new X(Se,ie),Ne=Be.getDocumentPosition();te=="cursor"?ie.selection.moveCursorToPosition(Ne):te=="anchor"&&ie.selection.setSelectionAnchor(Ne.row,Ne.column),ie.renderer.scrollCursorIntoView(Ne),Se.preventDefault()}}},ie);function we(){ue+=60,ce=setInterval(function(){ue--<=0&&(clearInterval(ce),ce=null),Math.abs(ge)<.01&&(ge=0),Math.abs(he)<.01&&(he=0),ue<20&&(ge=.9*ge),ue<20&&(he=.9*he);var Se=ie.session.getScrollTop();ie.renderer.scrollBy(10*ge,10*he),Se==ie.session.getScrollTop()&&(ue=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(U,W,G){var X=U("../lib/event"),Z=U("../lib/useragent"),Q=U("./default_handlers").DefaultHandlers,ee=U("./default_gutter_handler").GutterHandler,ie=U("./mouse_event").MouseEvent,te=U("./dragdrop_handler").DragdropHandler,ne=U("./touch_handler").addTouchListeners,ae=U("../config"),oe=function(se){var le=this;this.editor=se,new Q(this),new ee(this),new te(this);var ce=function(ve){var ge=!document.hasFocus||!document.hasFocus()||!se.isFocused()&&document.activeElement==(se.textInput&&se.textInput.getElement());ge&&window.focus(),se.focus(),setTimeout(function(){se.isFocused()||se.focus()})},ue=se.renderer.getMouseEventTarget();X.addListener(ue,"click",this.onMouseEvent.bind(this,"click"),se),X.addListener(ue,"mousemove",this.onMouseMove.bind(this,"mousemove"),se),X.addMultiMouseDownListener([ue,se.renderer.scrollBarV&&se.renderer.scrollBarV.inner,se.renderer.scrollBarH&&se.renderer.scrollBarH.inner,se.textInput&&se.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",se),X.addMouseWheelListener(se.container,this.onMouseWheel.bind(this,"mousewheel"),se),ne(se.container,se);var de=se.renderer.$gutter;X.addListener(de,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),se),X.addListener(de,"click",this.onMouseEvent.bind(this,"gutterclick"),se),X.addListener(de,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),se),X.addListener(de,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),se),X.addListener(ue,"mousedown",ce,se),X.addListener(de,"mousedown",ce,se),Z.isIE&&se.renderer.scrollBarV&&(X.addListener(se.renderer.scrollBarV.element,"mousedown",ce,se),X.addListener(se.renderer.scrollBarH.element,"mousedown",ce,se)),se.on("mousemove",function(ve){if(!(le.state||le.$dragDelay||!le.$dragEnabled)){var ge=se.renderer.screenToTextCoordinates(ve.x,ve.y),he=se.session.selection.getRange(),me=se.renderer;!he.isEmpty()&&he.insideStart(ge.row,ge.column)?me.setCursorStyle("default"):me.setCursorStyle("")}},se)};(function(){this.onMouseEvent=function(se,le){!this.editor.session||this.editor._emit(se,new ie(le,this.editor))},this.onMouseMove=function(se,le){var ce=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!ce||!ce.length||this.editor._emit(se,new ie(le,this.editor))},this.onMouseWheel=function(se,le){var ce=new ie(le,this.editor);ce.speed=this.$scrollSpeed*2,ce.wheelX=le.wheelX,ce.wheelY=le.wheelY,this.editor._emit(se,ce)},this.setState=function(se){this.state=se},this.captureMouse=function(se,le){this.x=se.x,this.y=se.y,this.isMousePressed=!0;var ce=this.editor,ue=this.editor.renderer;ue.$isMousePressed=!0;var de=this,ve=function(be){if(!!be){if(Z.isWebKit&&!be.which&&de.releaseMouse)return de.releaseMouse();de.x=be.clientX,de.y=be.clientY,le&&le(be),de.mouseEvent=new ie(be,de.editor),de.$mouseMoved=!0}},ge=function(be){ce.off("beforeEndOperation",me),clearInterval(_e),ce.session&&he(),de[de.state+"End"]&&de[de.state+"End"](be),de.state="",de.isMousePressed=ue.$isMousePressed=!1,ue.$keepTextAreaAtCursor&&ue.$moveTextAreaToCursor(),de.$onCaptureMouseMove=de.releaseMouse=null,be&&de.onMouseEvent("mouseup",be),ce.endOperation()},he=function(){de[de.state]&&de[de.state](),de.$mouseMoved=!1};if(Z.isOldIE&&se.domEvent.type=="dblclick")return setTimeout(function(){ge(se)});var me=function(be){!de.releaseMouse||ce.curOp.command.name&&ce.curOp.selectionChanged&&(de[de.state+"End"]&&de[de.state+"End"](),de.state="",de.releaseMouse())};ce.on("beforeEndOperation",me),ce.startOperation({command:{name:"mouse"}}),de.$onCaptureMouseMove=ve,de.releaseMouse=X.capture(this.editor.container,ve,ge);var _e=setInterval(he,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var se=function(le){le&&le.domEvent&&le.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",se),le&&le.domEvent&&X.stopEvent(le.domEvent))}.bind(this);setTimeout(se,10),this.editor.on("nativecontextmenu",se)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(oe.prototype),ae.defineOptions(oe.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:Z.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),W.MouseHandler=oe}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(U,W,G){var X=U("../lib/dom");function Z(Q){Q.on("click",function(ee){var ie=ee.getDocumentPosition(),te=Q.session,ne=te.getFoldAt(ie.row,ie.column,1);ne&&(ee.getAccelKey()?te.removeFold(ne):te.expandFold(ne),ee.stop());var ae=ee.domEvent&&ee.domEvent.target;ae&&X.hasCssClass(ae,"ace_inline_button")&&X.hasCssClass(ae,"ace_toggle_wrap")&&(te.setOption("wrap",!te.getUseWrapMode()),Q.renderer.scrollCursorIntoView())}),Q.on("gutterclick",function(ee){var ie=Q.renderer.$gutterLayer.getRegion(ee);if(ie=="foldWidgets"){var te=ee.getDocumentPosition().row,ne=Q.session;ne.foldWidgets&&ne.foldWidgets[te]&&Q.session.onFoldWidgetClick(te,ee),Q.isFocused()||Q.focus(),ee.stop()}}),Q.on("gutterdblclick",function(ee){var ie=Q.renderer.$gutterLayer.getRegion(ee);if(ie=="foldWidgets"){var te=ee.getDocumentPosition().row,ne=Q.session,ae=ne.getParentFoldRangeData(te,!0),oe=ae.range||ae.firstRange;if(oe){te=oe.start.row;var se=ne.getFoldAt(te,ne.getLine(te).length,1);se?ne.removeFold(se):(ne.addFold("...",oe),Q.renderer.scrollCursorIntoView({row:oe.start.row,column:0}))}ee.stop()}})}W.FoldHandler=Z}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(U,W,G){var X=U("../lib/keys"),Z=U("../lib/event"),Q=function(ee){this.$editor=ee,this.$data={editor:ee},this.$handlers=[],this.setDefaultHandler(ee.commands)};(function(){this.setDefaultHandler=function(ee){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=ee,this.addKeyboardHandler(ee,0)},this.setKeyboardHandler=function(ee){var ie=this.$handlers;if(ie[ie.length-1]!=ee){for(;ie[ie.length-1]&&ie[ie.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(ie[ie.length-1]);this.addKeyboardHandler(ee,1)}},this.addKeyboardHandler=function(ee,ie){if(!!ee){typeof ee=="function"&&!ee.handleKeyboard&&(ee.handleKeyboard=ee);var te=this.$handlers.indexOf(ee);te!=-1&&this.$handlers.splice(te,1),ie==null?this.$handlers.push(ee):this.$handlers.splice(ie,0,ee),te==-1&&ee.attach&&ee.attach(this.$editor)}},this.removeKeyboardHandler=function(ee){var ie=this.$handlers.indexOf(ee);return ie==-1?!1:(this.$handlers.splice(ie,1),ee.detach&&ee.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var ee=this.$data,ie=ee.editor;return this.$handlers.map(function(te){return te.getStatusText&&te.getStatusText(ie,ee)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(ee,ie,te,ne){for(var ae,oe=!1,se=this.$editor.commands,le=this.$handlers.length;le--&&(ae=this.$handlers[le].handleKeyboard(this.$data,ee,ie,te,ne),!(!(!ae||!ae.command)&&(ae.command=="null"?oe=!0:oe=se.exec(ae.command,this.$editor,ae.args,ne),oe&&ne&&ee!=-1&&ae.passEvent!=!0&&ae.command.passEvent!=!0&&Z.stopEvent(ne),oe))););return!oe&&ee==-1&&(ae={command:"insertstring"},oe=se.exec("insertstring",this.$editor,ie)),oe&&this.$editor._signal&&this.$editor._signal("keyboardActivity",ae),oe},this.onCommandKey=function(ee,ie,te){var ne=X.keyCodeToString(te);return this.$callKeyboardHandlers(ie,ne,te,ee)},this.onTextInput=function(ee){return this.$callKeyboardHandlers(-1,ee)}}).call(Q.prototype),W.KeyBinding=Q}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(U,W,G){var X=0,Z=0,Q=!1,ee=!1,ie=!1,te=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ne=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],ae=0,oe=1,se=0,le=1,ce=2,ue=3,de=4,ve=5,ge=6,he=7,me=8,_e=9,be=10,pe=11,fe=12,ye=13,$e=14,we=15,Se=16,Te=17,xe=18,ke=[xe,xe,xe,xe,xe,xe,xe,xe,xe,ge,ve,ge,me,ve,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,ve,ve,ve,ge,me,de,de,pe,pe,pe,de,de,de,de,de,be,_e,be,_e,_e,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,_e,de,de,de,de,de,de,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,de,de,de,de,de,de,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,se,de,de,de,de,xe,xe,xe,xe,xe,xe,ve,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,_e,de,pe,pe,pe,pe,de,de,de,de,se,de,de,xe,de,de,pe,pe,ce,ce,de,se,de,de,de,ce,se,de,de,de,de,de],Ie=[me,me,me,me,me,me,me,me,me,me,me,xe,xe,xe,se,le,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,me,ve,ye,$e,we,Se,Te,_e,pe,pe,pe,pe,pe,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,_e,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,de,me];function Ae(Ne,Ve,Le,De){var Je=X?ne:te,ze=null,Ge=null,qe=null,Ke=0,Ee=null,Ce=null,Pe=-1,Re=null,Ze=null,Oe=[];if(!De)for(Re=0,De=[];Re<Le;Re++)De[Re]=Be(Ne[Re]);for(Z=X,Q=!1,ee=!1,ie=!1,Ze=0;Ze<Le;Ze++){if(ze=Ke,Oe[Ze]=Ge=Fe(Ne,De,Oe,Ze),Ke=Je[ze][Ge],Ee=Ke&240,Ke&=15,Ve[Ze]=qe=Je[Ke][5],Ee>0)if(Ee==16){for(Re=Pe;Re<Ze;Re++)Ve[Re]=1;Pe=-1}else Pe=-1;if(Ce=Je[Ke][6],Ce)Pe==-1&&(Pe=Ze);else if(Pe>-1){for(Re=Pe;Re<Ze;Re++)Ve[Re]=qe;Pe=-1}De[Ze]==ve&&(Ve[Ze]=0),Z|=qe}if(ie){for(Re=0;Re<Le;Re++)if(De[Re]==ge){Ve[Re]=X;for(var Qe=Re-1;Qe>=0&&De[Qe]==me;Qe--)Ve[Qe]=X}}}function Me(Ne,Ve,Le){if(!(Z<Ne)){if(Ne==1&&X==oe&&!ee){Le.reverse();return}for(var De=Le.length,Je=0,ze,Ge,qe,Ke;Je<De;){if(Ve[Je]>=Ne){for(ze=Je+1;ze<De&&Ve[ze]>=Ne;)ze++;for(Ge=Je,qe=ze-1;Ge<qe;Ge++,qe--)Ke=Le[Ge],Le[Ge]=Le[qe],Le[qe]=Ke;Je=ze}Je++}}}function Fe(Ne,Ve,Le,De){var Je=Ve[De],ze,Ge,qe,Ke;switch(Je){case se:case le:Q=!1;case de:case ue:return Je;case ce:return Q?ue:ce;case he:return Q=!0,le;case me:return de;case _e:return De<1||De+1>=Ve.length||(ze=Le[De-1])!=ce&&ze!=ue||(Ge=Ve[De+1])!=ce&&Ge!=ue?de:(Q&&(Ge=ue),Ge==ze?Ge:de);case be:return ze=De>0?Le[De-1]:ve,ze==ce&&De+1<Ve.length&&Ve[De+1]==ce?ce:de;case pe:if(De>0&&Le[De-1]==ce)return ce;if(Q)return de;for(Ke=De+1,qe=Ve.length;Ke<qe&&Ve[Ke]==pe;)Ke++;return Ke<qe&&Ve[Ke]==ce?ce:de;case fe:for(qe=Ve.length,Ke=De+1;Ke<qe&&Ve[Ke]==fe;)Ke++;if(Ke<qe){var Ee=Ne[De],Ce=Ee>=1425&&Ee<=2303||Ee==64286;if(ze=Ve[Ke],Ce&&(ze==le||ze==he))return le}return De<1||(ze=Ve[De-1])==ve?de:Le[De-1];case ve:return Q=!1,ee=!0,X;case ge:return ie=!0,de;case ye:case $e:case Se:case Te:case we:Q=!1;case xe:return de}}function Be(Ne){var Ve=Ne.charCodeAt(0),Le=Ve>>8;return Le==0?Ve>191?se:ke[Ve]:Le==5?/[\u0591-\u05f4]/.test(Ne)?le:se:Le==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Ne)?fe:/[\u0660-\u0669\u066b-\u066c]/.test(Ne)?ue:Ve==1642?pe:/[\u06f0-\u06f9]/.test(Ne)?ce:he:Le==32&&Ve<=8287?Ie[Ve&255]:Le==254&&Ve>=65136?he:de}W.L=se,W.R=le,W.EN=ce,W.ON_R=3,W.AN=4,W.R_H=5,W.B=6,W.RLE=7,W.DOT="\xB7",W.doBidiReorder=function(Ne,Ve,Le){if(Ne.length<2)return{};var De=Ne.split(""),Je=new Array(De.length),ze=new Array(De.length),Ge=[];X=Le?oe:ae,Ae(De,Ge,De.length,Ve);for(var qe=0;qe<Je.length;Je[qe]=qe,qe++);Me(2,Ge,Je),Me(1,Ge,Je);for(var qe=0;qe<Je.length-1;qe++)Ve[qe]===ue?Ge[qe]=W.AN:Ge[qe]===le&&(Ve[qe]>he&&Ve[qe]<ye||Ve[qe]===de||Ve[qe]===xe)?Ge[qe]=W.ON_R:qe>0&&De[qe-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(De[qe])&&(Ge[qe-1]=Ge[qe]=W.R_H,qe++);De[De.length-1]===W.DOT&&(Ge[De.length-1]=W.B),De[0]==="\u202B"&&(Ge[0]=W.RLE);for(var qe=0;qe<Je.length;qe++)ze[qe]=Ge[Je[qe]];return{logicalFromVisual:Je,bidiLevels:ze}},W.hasBidiCharacters=function(Ne,Ve){for(var Le=!1,De=0;De<Ne.length;De++)Ve[De]=Be(Ne.charAt(De)),!Le&&(Ve[De]==le||Ve[De]==he||Ve[De]==ue)&&(Le=!0);return Le},W.getVisualFromLogicalIdx=function(Ne,Ve){for(var Le=0;Le<Ve.logicalFromVisual.length;Le++)if(Ve.logicalFromVisual[Le]==Ne)return Le;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(U,W,G){var X=U("./lib/bidiutil"),Z=U("./lib/lang"),Q=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,ee=function(ie){this.session=ie,this.bidiMap={},this.currentRow=null,this.bidiUtil=X,this.charWidths=[],this.EOL="\xAC",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="\xB6",this.RLE="\u202B",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=Q.test(ie.getValue())};(function(){this.isBidiRow=function(ie,te,ne){return this.seenBidi?(ie!==this.currentRow&&(this.currentRow=ie,this.updateRowLine(te,ne),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},this.onChange=function(ie){this.seenBidi?this.currentRow=null:ie.action=="insert"&&Q.test(ie.lines.join(`
|
||
`))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var ie=0,te=this.session.$screenRowCache;if(te.length){var ne=this.session.$getRowCacheIndex(te,this.currentRow);ne>=0&&(ie=this.session.$docRowCache[ne])}return ie},this.getSplitIndex=function(){var ie=0,te=this.session.$screenRowCache;if(te.length)for(var ne,ae=this.session.$getRowCacheIndex(te,this.currentRow);this.currentRow-ie>0&&(ne=this.session.$getRowCacheIndex(te,this.currentRow-ie-1),ne===ae);)ae=ne,ie++;else ie=this.currentRow;return ie},this.updateRowLine=function(ie,te){ie===void 0&&(ie=this.getDocumentRow());var ne=ie===this.session.getLength()-1,ae=ne?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(ie),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var oe=this.session.$wrapData[ie];oe&&(te===void 0&&(te=this.getSplitIndex()),te>0&&oe.length?(this.wrapIndent=oe.indent,this.wrapOffset=this.wrapIndent*this.charWidths[X.L],this.line=te<oe.length?this.line.substring(oe[te-1],oe[te]):this.line.substring(oe[oe.length-1])):this.line=this.line.substring(0,oe[te]),te==oe.length&&(this.line+=this.showInvisibles?ae:X.DOT))}else this.line+=this.showInvisibles?ae:X.DOT;var se=this.session,le=0,ce;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(ue,de){return ue===" "||se.isFullWidth(ue.charCodeAt(0))?(ce=ue===" "?se.getScreenTabSize(de+le):2,le+=ce-1,Z.stringRepeat(X.DOT,ce)):ue}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==X.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var ie=[];X.hasBidiCharacters(this.line,ie)||this.isRtlDir?this.bidiMap=X.doBidiReorder(this.line,ie,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(ie){if(this.characterWidth!==ie.$characterSize.width){this.fontMetrics=ie;var te=this.characterWidth=ie.$characterSize.width,ne=ie.$measureCharWidth("\u05D4");this.charWidths[X.L]=this.charWidths[X.EN]=this.charWidths[X.ON_R]=te,this.charWidths[X.R]=this.charWidths[X.AN]=ne,this.charWidths[X.R_H]=ne*.45,this.charWidths[X.B]=this.charWidths[X.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(ie){this.showInvisibles=ie,this.currentRow=null},this.setEolChar=function(ie){this.EOL=ie},this.setContentWidth=function(ie){this.contentWidth=ie},this.isRtlLine=function(ie){return this.$isRtl?!0:ie!=null?this.session.getLine(ie).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(ie,te){for(var ne=ie.getCursorPosition(),ae=ie.selection.getSelectionAnchor().row;ae<=ne.row;ae++)!te&&ie.session.getLine(ae).charAt(0)===ie.session.$bidiHandler.RLE?ie.session.doc.removeInLine(ae,0,1):te&&ie.session.getLine(ae).charAt(0)!==ie.session.$bidiHandler.RLE&&ie.session.doc.insert({column:0,row:ae},ie.session.$bidiHandler.RLE)},this.getPosLeft=function(ie){ie-=this.wrapIndent;var te=this.line.charAt(0)===this.RLE?1:0,ne=ie>te?this.session.getOverwrite()?ie:ie-1:te,ae=X.getVisualFromLogicalIdx(ne,this.bidiMap),oe=this.bidiMap.bidiLevels,se=0;!this.session.getOverwrite()&&ie<=te&&oe[ae]%2!==0&&ae++;for(var le=0;le<ae;le++)se+=this.charWidths[oe[le]];return!this.session.getOverwrite()&&ie>te&&oe[ae]%2===0&&(se+=this.charWidths[oe[ae]]),this.wrapIndent&&(se+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(se+=this.rtlLineOffset),se},this.getSelections=function(ie,te){var ne=this.bidiMap,ae=ne.bidiLevels,oe,se=[],le=0,ce=Math.min(ie,te)-this.wrapIndent,ue=Math.max(ie,te)-this.wrapIndent,de=!1,ve=!1,ge=0;this.wrapIndent&&(le+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var he,me=0;me<ae.length;me++)he=ne.logicalFromVisual[me],oe=ae[me],de=he>=ce&&he<ue,de&&!ve?ge=le:!de&&ve&&se.push({left:ge,width:le-ge}),le+=this.charWidths[oe],ve=de;if(de&&me===ae.length&&se.push({left:ge,width:le-ge}),this.isRtlDir)for(var _e=0;_e<se.length;_e++)se[_e].left+=this.rtlLineOffset;return se},this.offsetToCol=function(ne){this.isRtlDir&&(ne-=this.rtlLineOffset);var te=0,ne=Math.max(ne,0),ae=0,oe=0,se=this.bidiMap.bidiLevels,le=this.charWidths[se[oe]];for(this.wrapIndent&&(ne-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);ne>ae+le/2;){if(ae+=le,oe===se.length-1){le=0;break}le=this.charWidths[se[++oe]]}return oe>0&&se[oe-1]%2!==0&&se[oe]%2===0?(ne<ae&&oe--,te=this.bidiMap.logicalFromVisual[oe]):oe>0&&se[oe-1]%2===0&&se[oe]%2!==0?te=1+(ne>ae?this.bidiMap.logicalFromVisual[oe]:this.bidiMap.logicalFromVisual[oe-1]):this.isRtlDir&&oe===se.length-1&&le===0&&se[oe-1]%2===0||!this.isRtlDir&&oe===0&&se[oe]%2!==0?te=1+this.bidiMap.logicalFromVisual[oe]:(oe>0&&se[oe-1]%2!==0&&le!==0&&oe--,te=this.bidiMap.logicalFromVisual[oe]),te===0&&this.isRtlDir&&te++,te+this.wrapIndent}}).call(ee.prototype),W.BidiHandler=ee}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/lang"),Q=U("./lib/event_emitter").EventEmitter,ee=U("./range").Range,ie=function(te){this.session=te,this.doc=te.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var ne=this;this.cursor.on("change",function(ae){ne.$cursorChanged=!0,ne.$silent||ne._emit("changeCursor"),!ne.$isEmpty&&!ne.$silent&&ne._emit("changeSelection"),!ne.$keepDesiredColumnOnChange&&ae.old.column!=ae.value.column&&(ne.$desiredColumn=null)}),this.anchor.on("change",function(){ne.$anchorChanged=!0,!ne.$isEmpty&&!ne.$silent&&ne._emit("changeSelection")})};(function(){X.implement(this,Q),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(te,ne){this.$isEmpty=!1,this.anchor.setPosition(te,ne)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var te=this.anchor,ne=this.lead;return te.row>ne.row||te.row==ne.row&&te.column>ne.column},this.getRange=function(){var te=this.anchor,ne=this.lead;return this.$isEmpty?ee.fromPoints(ne,ne):this.isBackwards()?ee.fromPoints(ne,te):ee.fromPoints(te,ne)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(te,ne){var ae=ne?te.end:te.start,oe=ne?te.start:te.end;this.$setSelection(ae.row,ae.column,oe.row,oe.column)},this.$setSelection=function(te,ne,ae,oe){if(!this.$silent){var se=this.$isEmpty,le=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(te,ne),this.cursor.setPosition(ae,oe),this.$isEmpty=!ee.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||se!=this.$isEmpty||le)&&this._emit("changeSelection")}},this.$moveSelection=function(te){var ne=this.lead;this.$isEmpty&&this.setSelectionAnchor(ne.row,ne.column),te.call(this)},this.selectTo=function(te,ne){this.$moveSelection(function(){this.moveCursorTo(te,ne)})},this.selectToPosition=function(te){this.$moveSelection(function(){this.moveCursorToPosition(te)})},this.moveTo=function(te,ne){this.clearSelection(),this.moveCursorTo(te,ne)},this.moveToPosition=function(te){this.clearSelection(),this.moveCursorToPosition(te)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(te,ne){if(typeof ne>"u"){var ae=te||this.lead;te=ae.row,ne=ae.column}return this.session.getWordRange(te,ne)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var te=this.getCursor(),ne=this.session.getAWordRange(te.row,te.column);this.setSelectionRange(ne)},this.getLineRange=function(te,ne){var ae=typeof te=="number"?te:this.lead.row,oe,se=this.session.getFoldLine(ae);return se?(ae=se.start.row,oe=se.end.row):oe=ae,ne===!0?new ee(ae,0,oe,this.session.getLine(oe).length):new ee(ae,0,oe+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(te,ne,ae){var oe=te.column,se=te.column+ne;return ae<0&&(oe=te.column-ne,se=te.column),this.session.isTabStop(te)&&this.doc.getLine(te.row).slice(oe,se).split(" ").length-1==ne},this.moveCursorLeft=function(){var te=this.lead.getPosition(),ne;if(ne=this.session.getFoldAt(te.row,te.column,-1))this.moveCursorTo(ne.start.row,ne.start.column);else if(te.column===0)te.row>0&&this.moveCursorTo(te.row-1,this.doc.getLine(te.row-1).length);else{var ae=this.session.getTabSize();this.wouldMoveIntoSoftTab(te,ae,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-ae):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var te=this.lead.getPosition(),ne;if(ne=this.session.getFoldAt(te.row,te.column,1))this.moveCursorTo(ne.end.row,ne.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var ae=this.session.getTabSize(),te=this.lead;this.wouldMoveIntoSoftTab(te,ae,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,ae):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var te=this.lead.row,ne=this.lead.column,ae=this.session.documentToScreenRow(te,ne),oe=this.session.screenToDocumentPosition(ae,0),se=this.session.getDisplayLine(te,null,oe.row,oe.column),le=se.match(/^\s*/);le[0].length!=ne&&!this.session.$useEmacsStyleLineStart&&(oe.column+=le[0].length),this.moveCursorToPosition(oe)},this.moveCursorLineEnd=function(){var te=this.lead,ne=this.session.getDocumentLastRowColumnPosition(te.row,te.column);if(this.lead.column==ne.column){var ae=this.session.getLine(ne.row);if(ne.column==ae.length){var oe=ae.search(/\s+$/);oe>0&&(ne.column=oe)}}this.moveCursorTo(ne.row,ne.column)},this.moveCursorFileEnd=function(){var te=this.doc.getLength()-1,ne=this.doc.getLine(te).length;this.moveCursorTo(te,ne)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var te=this.lead.row,ne=this.lead.column,ae=this.doc.getLine(te),oe=ae.substring(ne);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var se=this.session.getFoldAt(te,ne,1);if(se){this.moveCursorTo(se.end.row,se.end.column);return}if(this.session.nonTokenRe.exec(oe)&&(ne+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,oe=ae.substring(ne)),ne>=ae.length){this.moveCursorTo(te,ae.length),this.moveCursorRight(),te<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(oe)&&(ne+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(te,ne)},this.moveCursorLongWordLeft=function(){var te=this.lead.row,ne=this.lead.column,ae;if(ae=this.session.getFoldAt(te,ne,-1)){this.moveCursorTo(ae.start.row,ae.start.column);return}var oe=this.session.getFoldStringAt(te,ne,-1);oe==null&&(oe=this.doc.getLine(te).substring(0,ne));var se=Z.stringReverse(oe);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(se)&&(ne-=this.session.nonTokenRe.lastIndex,se=se.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),ne<=0){this.moveCursorTo(te,0),this.moveCursorLeft(),te>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(se)&&(ne-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(te,ne)},this.$shortWordEndIndex=function(te){var ne=0,ae,oe=/\s/,se=this.session.tokenRe;if(se.lastIndex=0,this.session.tokenRe.exec(te))ne=this.session.tokenRe.lastIndex;else{for(;(ae=te[ne])&&oe.test(ae);)ne++;if(ne<1){for(se.lastIndex=0;(ae=te[ne])&&!se.test(ae);)if(se.lastIndex=0,ne++,oe.test(ae))if(ne>2){ne--;break}else{for(;(ae=te[ne])&&oe.test(ae);)ne++;if(ne>2)break}}}return se.lastIndex=0,ne},this.moveCursorShortWordRight=function(){var te=this.lead.row,ne=this.lead.column,ae=this.doc.getLine(te),oe=ae.substring(ne),se=this.session.getFoldAt(te,ne,1);if(se)return this.moveCursorTo(se.end.row,se.end.column);if(ne==ae.length){var le=this.doc.getLength();do te++,oe=this.doc.getLine(te);while(te<le&&/^\s*$/.test(oe));/^\s+/.test(oe)||(oe=""),ne=0}var ce=this.$shortWordEndIndex(oe);this.moveCursorTo(te,ne+ce)},this.moveCursorShortWordLeft=function(){var te=this.lead.row,ne=this.lead.column,ae;if(ae=this.session.getFoldAt(te,ne,-1))return this.moveCursorTo(ae.start.row,ae.start.column);var oe=this.session.getLine(te).substring(0,ne);if(ne===0){do te--,oe=this.doc.getLine(te);while(te>0&&/^\s*$/.test(oe));ne=oe.length,/\s+$/.test(oe)||(oe="")}var se=Z.stringReverse(oe),le=this.$shortWordEndIndex(se);return this.moveCursorTo(te,ne-le)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(te,ne){var ae=this.session.documentToScreenPosition(this.lead.row,this.lead.column),oe;if(ne===0&&(te!==0&&(this.session.$bidiHandler.isBidiRow(ae.row,this.lead.row)?(oe=this.session.$bidiHandler.getPosLeft(ae.column),ae.column=Math.round(oe/this.session.$bidiHandler.charWidths[0])):oe=ae.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?ae.column=this.$desiredColumn:this.$desiredColumn=ae.column),te!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var se=this.session.lineWidgets[this.lead.row];te<0?te-=se.rowsAbove||0:te>0&&(te+=se.rowCount-(se.rowsAbove||0))}var le=this.session.screenToDocumentPosition(ae.row+te,ae.column,oe);te!==0&&ne===0&&le.row===this.lead.row&&(le.column,this.lead.column),this.moveCursorTo(le.row,le.column+ne,ne===0)},this.moveCursorToPosition=function(te){this.moveCursorTo(te.row,te.column)},this.moveCursorTo=function(te,ne,ae){var oe=this.session.getFoldAt(te,ne,1);oe&&(te=oe.start.row,ne=oe.start.column),this.$keepDesiredColumnOnChange=!0;var se=this.session.getLine(te);/[\uDC00-\uDFFF]/.test(se.charAt(ne))&&se.charAt(ne-1)&&(this.lead.row==te&&this.lead.column==ne+1?ne=ne-1:ne=ne+1),this.lead.setPosition(te,ne),this.$keepDesiredColumnOnChange=!1,ae||(this.$desiredColumn=null)},this.moveCursorToScreen=function(te,ne,ae){var oe=this.session.screenToDocumentPosition(te,ne);this.moveCursorTo(oe.row,oe.column,ae)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(te){this.setSelectionRange(te,te.cursor==te.start),this.$desiredColumn=te.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(te){var ne=this.getRange();return te?(te.start.column=ne.start.column,te.start.row=ne.start.row,te.end.column=ne.end.column,te.end.row=ne.end.row):te=ne,te.cursor=this.isBackwards()?te.start:te.end,te.desiredColumn=this.$desiredColumn,te},this.getRangeOfMovements=function(te){var ne=this.getCursor();try{te(this);var ae=this.getCursor();return ee.fromPoints(ne,ae)}catch{return ee.fromPoints(ne,ne)}finally{this.moveCursorToPosition(ne)}},this.toJSON=function(){if(this.rangeCount)var te=this.ranges.map(function(ne){var ae=ne.clone();return ae.isBackwards=ne.cursor==ne.start,ae});else{var te=this.getRange();te.isBackwards=this.isBackwards()}return te},this.fromJSON=function(te){if(te.start==null)if(this.rangeList&&te.length>1){this.toSingleRange(te[0]);for(var ne=te.length;ne--;){var ae=ee.fromPoints(te[ne].start,te[ne].end);te[ne].isBackwards&&(ae.cursor=ae.start),this.addRange(ae,!0)}return}else te=te[0];this.rangeList&&this.toSingleRange(te),this.setSelectionRange(te,te.isBackwards)},this.isEqual=function(te){if((te.length||this.rangeCount)&&te.length!=this.rangeCount)return!1;if(!te.length||!this.ranges)return this.getRange().isEqual(te);for(var ne=this.ranges.length;ne--;)if(!this.ranges[ne].isEqual(te[ne]))return!1;return!0}}).call(ie.prototype),W.Selection=ie}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(U,W,G){var X=U("./config"),Z=2e3,Q=function(ee){this.states=ee,this.regExps={},this.matchMappings={};for(var ie in this.states){for(var te=this.states[ie],ne=[],ae=0,oe=this.matchMappings[ie]={defaultToken:"text"},se="g",le=[],ce=0;ce<te.length;ce++){var ue=te[ce];if(ue.defaultToken&&(oe.defaultToken=ue.defaultToken),ue.caseInsensitive&&se.indexOf("i")===-1&&(se+="i"),ue.unicode&&se.indexOf("u")===-1&&(se+="u"),ue.regex!=null){ue.regex instanceof RegExp&&(ue.regex=ue.regex.toString().slice(1,-1));var de=ue.regex,ve=new RegExp("(?:("+de+")|(.))").exec("a").length-2;Array.isArray(ue.token)?ue.token.length==1||ve==1?ue.token=ue.token[0]:ve-1!=ue.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:ue,groupCount:ve-1}),ue.token=ue.token[0]):(ue.tokenArray=ue.token,ue.token=null,ue.onMatch=this.$arrayTokens):typeof ue.token=="function"&&!ue.onMatch&&(ve>1?ue.onMatch=this.$applyToken:ue.onMatch=ue.token),ve>1&&(/\\\d/.test(ue.regex)?de=ue.regex.replace(/\\([0-9]+)/g,function(ge,he){return"\\"+(parseInt(he,10)+ae+1)}):(ve=1,de=this.removeCapturingGroups(ue.regex)),!ue.splitRegex&&typeof ue.token!="string"&&le.push(ue)),oe[ae]=ce,ae+=ve,ne.push(de),ue.onMatch||(ue.onMatch=null)}}ne.length||(oe[0]=0,ne.push("$")),le.forEach(function(ge){ge.splitRegex=this.createSplitterRegexp(ge.regex,se)},this),this.regExps[ie]=new RegExp("("+ne.join(")|(")+")|($)",se)}};(function(){this.$setMaxTokenCount=function(ee){Z=ee|0},this.$applyToken=function(ee){var ie=this.splitRegex.exec(ee).slice(1),te=this.token.apply(this,ie);if(typeof te=="string")return[{type:te,value:ee}];for(var ne=[],ae=0,oe=te.length;ae<oe;ae++)ie[ae]&&(ne[ne.length]={type:te[ae],value:ie[ae]});return ne},this.$arrayTokens=function(ee){if(!ee)return[];var ie=this.splitRegex.exec(ee);if(!ie)return"text";for(var te=[],ne=this.tokenArray,ae=0,oe=ne.length;ae<oe;ae++)ie[ae+1]&&(te[te.length]={type:ne[ae],value:ie[ae+1]});return te},this.removeCapturingGroups=function(ee){var ie=ee.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(te,ne){return ne?"(?:":te});return ie},this.createSplitterRegexp=function(ee,ie){if(ee.indexOf("(?=")!=-1){var te=0,ne=!1,ae={};ee.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(oe,se,le,ce,ue,de){return ne?ne=ue!="]":ue?ne=!0:ce?(te==ae.stack&&(ae.end=de+1,ae.stack=-1),te--):le&&(te++,le.length!=1&&(ae.stack=te,ae.start=de)),oe}),ae.end!=null&&/^\)*$/.test(ee.substr(ae.end))&&(ee=ee.substring(0,ae.start)+ee.substr(ae.end))}return ee.charAt(0)!="^"&&(ee="^"+ee),ee.charAt(ee.length-1)!="$"&&(ee+="$"),new RegExp(ee,(ie||"").replace("g",""))},this.getLineTokens=function(ee,ie){if(ie&&typeof ie!="string"){var te=ie.slice(0);ie=te[0],ie==="#tmp"&&(te.shift(),ie=te.shift())}else var te=[];var ne=ie||"start",ae=this.states[ne];ae||(ne="start",ae=this.states[ne]);var oe=this.matchMappings[ne],se=this.regExps[ne];se.lastIndex=0;for(var le,ce=[],ue=0,de=0,ve={type:null,value:""};le=se.exec(ee);){var ge=oe.defaultToken,he=null,me=le[0],_e=se.lastIndex;if(_e-me.length>ue){var be=ee.substring(ue,_e-me.length);ve.type==ge?ve.value+=be:(ve.type&&ce.push(ve),ve={type:ge,value:be})}for(var pe=0;pe<le.length-2;pe++)if(le[pe+1]!==void 0){he=ae[oe[pe]],he.onMatch?ge=he.onMatch(me,ne,te,ee):ge=he.token,he.next&&(typeof he.next=="string"?ne=he.next:ne=he.next(ne,te),ae=this.states[ne],ae||(this.reportError("state doesn't exist",ne),ne="start",ae=this.states[ne]),oe=this.matchMappings[ne],ue=_e,se=this.regExps[ne],se.lastIndex=_e),he.consumeLineEnd&&(ue=_e);break}if(me){if(typeof ge=="string")(!he||he.merge!==!1)&&ve.type===ge?ve.value+=me:(ve.type&&ce.push(ve),ve={type:ge,value:me});else if(ge){ve.type&&ce.push(ve),ve={type:null,value:""};for(var pe=0;pe<ge.length;pe++)ce.push(ge[pe])}}if(ue==ee.length)break;if(ue=_e,de++>Z){for(de>2*ee.length&&this.reportError("infinite loop with in ace tokenizer",{startState:ie,line:ee});ue<ee.length;)ve.type&&ce.push(ve),ve={value:ee.substring(ue,ue+=500),type:"overflow"};ne="start",te=[];break}}return ve.type&&ce.push(ve),te.length>1&&te[0]!==ne&&te.unshift("#tmp",ne),{tokens:ce,state:te.length?te:ne}},this.reportError=X.reportError}).call(Q.prototype),W.Tokenizer=Q}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(U,W,G){var X=U("../lib/lang"),Z=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(ie,te){if(!te){for(var ne in ie)this.$rules[ne]=ie[ne];return}for(var ne in ie){for(var ae=ie[ne],oe=0;oe<ae.length;oe++){var se=ae[oe];(se.next||se.onMatch)&&(typeof se.next=="string"&&se.next.indexOf(te)!==0&&(se.next=te+se.next),se.nextState&&se.nextState.indexOf(te)!==0&&(se.nextState=te+se.nextState))}this.$rules[te+ne]=ae}},this.getRules=function(){return this.$rules},this.embedRules=function(ie,te,ne,ae,oe){var se=typeof ie=="function"?new ie().getRules():ie;if(ae)for(var le=0;le<ae.length;le++)ae[le]=te+ae[le];else{ae=[];for(var ce in se)ae.push(te+ce)}if(this.addRules(se,te),ne)for(var ue=Array.prototype[oe?"push":"unshift"],le=0;le<ae.length;le++)ue.apply(this.$rules[ae[le]],X.deepCopy(ne));this.$embeds||(this.$embeds=[]),this.$embeds.push(te)},this.getEmbeds=function(){return this.$embeds};var Q=function(ie,te){return(ie!="start"||te.length)&&te.unshift(this.nextState,ie),this.nextState},ee=function(ie,te){return te.shift(),te.shift()||"start"};this.normalizeRules=function(){var ie=0,te=this.$rules;function ne(ae){var oe=te[ae];oe.processed=!0;for(var se=0;se<oe.length;se++){var le=oe[se],ce=null;Array.isArray(le)&&(ce=le,le={}),!le.regex&&le.start&&(le.regex=le.start,le.next||(le.next=[]),le.next.push({defaultToken:le.token},{token:le.token+".end",regex:le.end||le.start,next:"pop"}),le.token=le.token+".start",le.push=!0);var ue=le.next||le.push;if(ue&&Array.isArray(ue)){var de=le.stateName;de||(de=le.token,typeof de!="string"&&(de=de[0]||""),te[de]&&(de+=ie++)),te[de]=ue,le.next=de,ne(de)}else ue=="pop"&&(le.next=ee);if(le.push&&(le.nextState=le.next||le.push,le.next=Q,delete le.push),le.rules)for(var ve in le.rules)te[ve]?te[ve].push&&te[ve].push.apply(te[ve],le.rules[ve]):te[ve]=le.rules[ve];var ge=typeof le=="string"?le:le.include;if(ge&&(Array.isArray(ge)?ce=ge.map(function(me){return te[me]}):ce=te[ge]),ce){var he=[se,1].concat(ce);le.noEscape&&(he=he.filter(function(me){return!me.next})),oe.splice.apply(oe,he),se--}le.keywordMap&&(le.token=this.createKeywordMapper(le.keywordMap,le.defaultToken||"text",le.caseInsensitive),delete le.defaultToken)}}Object.keys(te).forEach(ne,this)},this.createKeywordMapper=function(ie,te,ne,ae){var oe=Object.create(null);return this.$keywordList=[],Object.keys(ie).forEach(function(se){for(var le=ie[se],ce=le.split(ae||"|"),ue=ce.length;ue--;){var de=ce[ue];this.$keywordList.push(de),ne&&(de=de.toLowerCase()),oe[de]=se}},this),ie=null,ne?function(se){return oe[se.toLowerCase()]||te}:function(se){return oe[se]||te}},this.getKeywords=function(){return this.$keywords}}).call(Z.prototype),W.TextHighlightRules=Z}),ace.define("ace/mode/behaviour",["require","exports","module"],function(U,W,G){var X=function(){this.$behaviours={}};(function(){this.add=function(Z,Q,ee){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[Z]:this.$behaviours[Z]={}}this.$behaviours[Z][Q]=ee},this.addBehaviours=function(Z){for(var Q in Z)for(var ee in Z[Q])this.add(Q,ee,Z[Q][ee])},this.remove=function(Z){this.$behaviours&&this.$behaviours[Z]&&delete this.$behaviours[Z]},this.inherit=function(Z,Q){if(typeof Z=="function")var ee=new Z().getBehaviours(Q);else var ee=Z.getBehaviours(Q);this.addBehaviours(ee)},this.getBehaviours=function(Z){if(Z){for(var Q={},ee=0;ee<Z.length;ee++)this.$behaviours[Z[ee]]&&(Q[Z[ee]]=this.$behaviours[Z[ee]]);return Q}else return this.$behaviours}}).call(X.prototype),W.Behaviour=X}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(U,W,G){var X=U("./range").Range,Z=function(Q,ee,ie){this.$session=Q,this.$row=ee,this.$rowTokens=Q.getTokens(ee);var te=Q.getTokenAt(ee,ie);this.$tokenIndex=te?te.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){this.$tokenIndex+=1;for(var Q;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,Q||(Q=this.$session.getLength()),this.$row>=Q)return this.$row=Q-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var Q=this.$rowTokens,ee=this.$tokenIndex,ie=Q[ee].start;if(ie!==void 0)return ie;for(ie=0;ee>0;)ee-=1,ie+=Q[ee].value.length;return ie},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var Q=this.$rowTokens[this.$tokenIndex],ee=this.getCurrentTokenColumn();return new X(this.$row,ee,this.$row,ee+Q.value.length)}}).call(Z.prototype),W.TokenIterator=Z}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(U,W,G){var X=U("../../lib/oop"),Z=U("../behaviour").Behaviour,Q=U("../../token_iterator").TokenIterator,ee=U("../../lib/lang"),ie=["text","paren.rparen","rparen","paren","punctuation.operator"],te=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],ne,ae={},oe={'"':'"',"'":"'"},se=function(ue){var de=-1;if(ue.multiSelect&&(de=ue.selection.index,ae.rangeCount!=ue.multiSelect.rangeCount&&(ae={rangeCount:ue.multiSelect.rangeCount})),ae[de])return ne=ae[de];ne=ae[de]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},le=function(ue,de,ve,ge){var he=ue.end.row-ue.start.row;return{text:ve+de+ge,selection:[0,ue.start.column+1,he,ue.end.column+(he?0:1)]}},ce=function(ue){this.add("braces","insertion",function(de,ve,ge,he,me){var _e=ge.getCursorPosition(),be=he.doc.getLine(_e.row);if(me=="{"){se(ge);var pe=ge.getSelectionRange(),fe=he.doc.getTextRange(pe);if(fe!==""&&fe!=="{"&&ge.getWrapBehavioursEnabled())return le(pe,fe,"{","}");if(ce.isSaneInsertion(ge,he))return/[\]\}\)]/.test(be[_e.column])||ge.inMultiSelectMode||ue&&ue.braces?(ce.recordAutoInsert(ge,he,"}"),{text:"{}",selection:[1,1]}):(ce.recordMaybeInsert(ge,he,"{"),{text:"{",selection:[1,1]})}else if(me=="}"){se(ge);var ye=be.substring(_e.column,_e.column+1);if(ye=="}"){var $e=he.$findOpeningBracket("}",{column:_e.column+1,row:_e.row});if($e!==null&&ce.isAutoInsertedClosing(_e,be,me))return ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(me==`
|
||
`||me==`\r
|
||
`){se(ge);var we="";ce.isMaybeInsertedClosing(_e,be)&&(we=ee.stringRepeat("}",ne.maybeInsertedBrackets),ce.clearMaybeInsertedClosing());var ye=be.substring(_e.column,_e.column+1);if(ye==="}"){var Se=he.findMatchingBracket({row:_e.row,column:_e.column+1},"}");if(!Se)return null;var Te=this.$getIndent(he.getLine(Se.row))}else if(we)var Te=this.$getIndent(be);else{ce.clearMaybeInsertedClosing();return}var xe=Te+he.getTabString();return{text:`
|
||
`+xe+`
|
||
`+Te+we,selection:[1,xe.length,1,xe.length]}}else ce.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(de,ve,ge,he,me){var _e=he.doc.getTextRange(me);if(!me.isMultiLine()&&_e=="{"){se(ge);var be=he.doc.getLine(me.start.row),pe=be.substring(me.end.column,me.end.column+1);if(pe=="}")return me.end.column++,me;ne.maybeInsertedBrackets--}}),this.add("parens","insertion",function(de,ve,ge,he,me){if(me=="("){se(ge);var _e=ge.getSelectionRange(),be=he.doc.getTextRange(_e);if(be!==""&&ge.getWrapBehavioursEnabled())return le(_e,be,"(",")");if(ce.isSaneInsertion(ge,he))return ce.recordAutoInsert(ge,he,")"),{text:"()",selection:[1,1]}}else if(me==")"){se(ge);var pe=ge.getCursorPosition(),fe=he.doc.getLine(pe.row),ye=fe.substring(pe.column,pe.column+1);if(ye==")"){var $e=he.$findOpeningBracket(")",{column:pe.column+1,row:pe.row});if($e!==null&&ce.isAutoInsertedClosing(pe,fe,me))return ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(de,ve,ge,he,me){var _e=he.doc.getTextRange(me);if(!me.isMultiLine()&&_e=="("){se(ge);var be=he.doc.getLine(me.start.row),pe=be.substring(me.start.column+1,me.start.column+2);if(pe==")")return me.end.column++,me}}),this.add("brackets","insertion",function(de,ve,ge,he,me){if(me=="["){se(ge);var _e=ge.getSelectionRange(),be=he.doc.getTextRange(_e);if(be!==""&&ge.getWrapBehavioursEnabled())return le(_e,be,"[","]");if(ce.isSaneInsertion(ge,he))return ce.recordAutoInsert(ge,he,"]"),{text:"[]",selection:[1,1]}}else if(me=="]"){se(ge);var pe=ge.getCursorPosition(),fe=he.doc.getLine(pe.row),ye=fe.substring(pe.column,pe.column+1);if(ye=="]"){var $e=he.$findOpeningBracket("]",{column:pe.column+1,row:pe.row});if($e!==null&&ce.isAutoInsertedClosing(pe,fe,me))return ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(de,ve,ge,he,me){var _e=he.doc.getTextRange(me);if(!me.isMultiLine()&&_e=="["){se(ge);var be=he.doc.getLine(me.start.row),pe=be.substring(me.start.column+1,me.start.column+2);if(pe=="]")return me.end.column++,me}}),this.add("string_dquotes","insertion",function(de,ve,ge,he,me){var _e=he.$mode.$quotes||oe;if(me.length==1&&_e[me]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(me)!=-1)return;se(ge);var be=me,pe=ge.getSelectionRange(),fe=he.doc.getTextRange(pe);if(fe!==""&&(fe.length!=1||!_e[fe])&&ge.getWrapBehavioursEnabled())return le(pe,fe,be,be);if(!fe){var ye=ge.getCursorPosition(),$e=he.doc.getLine(ye.row),we=$e.substring(ye.column-1,ye.column),Se=$e.substring(ye.column,ye.column+1),Te=he.getTokenAt(ye.row,ye.column),xe=he.getTokenAt(ye.row,ye.column+1);if(we=="\\"&&Te&&/escape/.test(Te.type))return null;var ke=Te&&/string|escape/.test(Te.type),Ie=!xe||/string|escape/.test(xe.type),Ae;if(Se==be)Ae=ke!==Ie,Ae&&/string\.end/.test(xe.type)&&(Ae=!1);else{if(ke&&!Ie||ke&&Ie)return null;var Me=he.$mode.tokenRe;Me.lastIndex=0;var Fe=Me.test(we);Me.lastIndex=0;var Be=Me.test(we);if(Fe||Be||Se&&!/[\s;,.})\]\\]/.test(Se))return null;var Ne=$e[ye.column-2];if(we==be&&(Ne==be||Me.test(Ne)))return null;Ae=!0}return{text:Ae?be+be:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(de,ve,ge,he,me){var _e=he.$mode.$quotes||oe,be=he.doc.getTextRange(me);if(!me.isMultiLine()&&_e.hasOwnProperty(be)){se(ge);var pe=he.doc.getLine(me.start.row),fe=pe.substring(me.start.column+1,me.start.column+2);if(fe==be)return me.end.column++,me}})};ce.isSaneInsertion=function(ue,de){var ve=ue.getCursorPosition(),ge=new Q(de,ve.row,ve.column);if(!this.$matchTokenType(ge.getCurrentToken()||"text",ie)){if(/[)}\]]/.test(ue.session.getLine(ve.row)[ve.column]))return!0;var he=new Q(de,ve.row,ve.column+1);if(!this.$matchTokenType(he.getCurrentToken()||"text",ie))return!1}return ge.stepForward(),ge.getCurrentTokenRow()!==ve.row||this.$matchTokenType(ge.getCurrentToken()||"text",te)},ce.$matchTokenType=function(ue,de){return de.indexOf(ue.type||ue)>-1},ce.recordAutoInsert=function(ue,de,ve){var ge=ue.getCursorPosition(),he=de.doc.getLine(ge.row);this.isAutoInsertedClosing(ge,he,ne.autoInsertedLineEnd[0])||(ne.autoInsertedBrackets=0),ne.autoInsertedRow=ge.row,ne.autoInsertedLineEnd=ve+he.substr(ge.column),ne.autoInsertedBrackets++},ce.recordMaybeInsert=function(ue,de,ve){var ge=ue.getCursorPosition(),he=de.doc.getLine(ge.row);this.isMaybeInsertedClosing(ge,he)||(ne.maybeInsertedBrackets=0),ne.maybeInsertedRow=ge.row,ne.maybeInsertedLineStart=he.substr(0,ge.column)+ve,ne.maybeInsertedLineEnd=he.substr(ge.column),ne.maybeInsertedBrackets++},ce.isAutoInsertedClosing=function(ue,de,ve){return ne.autoInsertedBrackets>0&&ue.row===ne.autoInsertedRow&&ve===ne.autoInsertedLineEnd[0]&&de.substr(ue.column)===ne.autoInsertedLineEnd},ce.isMaybeInsertedClosing=function(ue,de){return ne.maybeInsertedBrackets>0&&ue.row===ne.maybeInsertedRow&&de.substr(ue.column)===ne.maybeInsertedLineEnd&&de.substr(0,ue.column)==ne.maybeInsertedLineStart},ce.popAutoInsertedClosing=function(){ne.autoInsertedLineEnd=ne.autoInsertedLineEnd.substr(1),ne.autoInsertedBrackets--},ce.clearMaybeInsertedClosing=function(){ne&&(ne.maybeInsertedBrackets=0,ne.maybeInsertedRow=-1)},X.inherits(ce,Z),W.CstyleBehaviour=ce}),ace.define("ace/unicode",["require","exports","module"],function(U,W,G){for(var X=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],Z=0,Q=[],ee=0;ee<X.length;ee+=2)Q.push(Z+=X[ee]),X[ee+1]&&Q.push(45,Z+=X[ee+1]);W.wordChars=String.fromCharCode.apply(null,Q)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(U,W,G){var X=U("../config"),Z=U("../tokenizer").Tokenizer,Q=U("./text_highlight_rules").TextHighlightRules,ee=U("./behaviour/cstyle").CstyleBehaviour,ie=U("../unicode"),te=U("../lib/lang"),ne=U("../token_iterator").TokenIterator,ae=U("../range").Range,oe=function(){this.HighlightRules=Q};(function(){this.$defaultBehaviour=new ee,this.tokenRe=new RegExp("^["+ie.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+ie.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new Z(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(se,le,ce,ue){var de=le.doc,ve=!0,ge=!0,he=1/0,me=le.getTabSize(),_e=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var fe=this.lineCommentStart.map(te.escapeRegExp).join("|"),be=this.lineCommentStart[0];else var fe=te.escapeRegExp(this.lineCommentStart),be=this.lineCommentStart;fe=new RegExp("^(\\s*)(?:"+fe+") ?"),_e=le.getUseSoftTabs();var we=function(Be,Ne){var Ve=Be.match(fe);if(!!Ve){var Le=Ve[1].length,De=Ve[0].length;!xe(Be,Le,De)&&Ve[0][De-1]==" "&&De--,de.removeInLine(Ne,Le,De)}},Te=be+" ",$e=function(Be,Ne){(!ve||/\S/.test(Be))&&(xe(Be,he,he)?de.insertInLine({row:Ne,column:he},Te):de.insertInLine({row:Ne,column:he},be))},Se=function(Be,Ne){return fe.test(Be)},xe=function(Be,Ne,Ve){for(var Le=0;Ne--&&Be.charAt(Ne)==" ";)Le++;if(Le%me!=0)return!1;for(var Le=0;Be.charAt(Ve++)==" ";)Le++;return me>2?Le%me!=me-1:Le%me==0}}else{if(!this.blockComment)return!1;var be=this.blockComment.start,pe=this.blockComment.end,fe=new RegExp("^(\\s*)(?:"+te.escapeRegExp(be)+")"),ye=new RegExp("(?:"+te.escapeRegExp(pe)+")\\s*$"),$e=function(Ae,Me){Se(Ae,Me)||(!ve||/\S/.test(Ae))&&(de.insertInLine({row:Me,column:Ae.length},pe),de.insertInLine({row:Me,column:he},be))},we=function(Ae,Me){var Fe;(Fe=Ae.match(ye))&&de.removeInLine(Me,Ae.length-Fe[0].length,Ae.length),(Fe=Ae.match(fe))&&de.removeInLine(Me,Fe[1].length,Fe[0].length)},Se=function(Ae,Me){if(fe.test(Ae))return!0;for(var Fe=le.getTokens(Me),Be=0;Be<Fe.length;Be++)if(Fe[Be].type==="comment")return!0}}function ke(Ae){for(var Me=ce;Me<=ue;Me++)Ae(de.getLine(Me),Me)}var Ie=1/0;ke(function(Ae,Me){var Fe=Ae.search(/\S/);Fe!==-1?(Fe<he&&(he=Fe),ge&&!Se(Ae,Me)&&(ge=!1)):Ie>Ae.length&&(Ie=Ae.length)}),he==1/0&&(he=Ie,ve=!1,ge=!1),_e&&he%me!=0&&(he=Math.floor(he/me)*me),ke(ge?we:$e)},this.toggleBlockComment=function(se,le,ce,ue){var de=this.blockComment;if(!!de){!de.start&&de[0]&&(de=de[0]);var ve=new ne(le,ue.row,ue.column),ge=ve.getCurrentToken();le.selection;var he=le.selection.toOrientedRange(),me,_e;if(ge&&/comment/.test(ge.type)){for(var be,pe;ge&&/comment/.test(ge.type);){var fe=ge.value.indexOf(de.start);if(fe!=-1){var ye=ve.getCurrentTokenRow(),$e=ve.getCurrentTokenColumn()+fe;be=new ae(ye,$e,ye,$e+de.start.length);break}ge=ve.stepBackward()}for(var ve=new ne(le,ue.row,ue.column),ge=ve.getCurrentToken();ge&&/comment/.test(ge.type);){var fe=ge.value.indexOf(de.end);if(fe!=-1){var ye=ve.getCurrentTokenRow(),$e=ve.getCurrentTokenColumn()+fe;pe=new ae(ye,$e,ye,$e+de.end.length);break}ge=ve.stepForward()}pe&&le.remove(pe),be&&(le.remove(be),me=be.start.row,_e=-de.start.length)}else _e=de.start.length,me=ce.start.row,le.insert(ce.end,de.end),le.insert(ce.start,de.start);he.start.row==me&&(he.start.column+=_e),he.end.row==me&&(he.end.column+=_e),le.selection.fromOrientedRange(he)}},this.getNextLineIndent=function(se,le,ce){return this.$getIndent(le)},this.checkOutdent=function(se,le,ce){return!1},this.autoOutdent=function(se,le,ce){},this.$getIndent=function(se){return se.match(/^\s*/)[0]},this.createWorker=function(se){return null},this.createModeDelegates=function(se){this.$embeds=[],this.$modes={};for(var le in se)if(se[le]){var ce=se[le],ue=ce.prototype.$id,de=X.$modes[ue];de||(X.$modes[ue]=de=new ce),X.$modes[le]||(X.$modes[le]=de),this.$embeds.push(le),this.$modes[le]=de}for(var ve=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],le=0;le<ve.length;le++)(function(he){var me=ve[le],_e=he[me];he[ve[le]]=function(){return this.$delegator(me,arguments,_e)}})(this)},this.$delegator=function(se,le,ce){var ue=le[0]||"start";if(typeof ue!="string"){if(Array.isArray(ue[2])){var de=ue[2][ue[2].length-1],ve=this.$modes[de];if(ve)return ve[se].apply(ve,[ue[1]].concat([].slice.call(le,1)))}ue=ue[0]||"start"}for(var ge=0;ge<this.$embeds.length;ge++)if(!!this.$modes[this.$embeds[ge]]){var he=ue.split(this.$embeds[ge]);if(!he[0]&&he[1]){le[0]=he[1];var ve=this.$modes[this.$embeds[ge]];return ve[se].apply(ve,le)}}var me=ce.apply(this,le);return ce?me:void 0},this.transformAction=function(se,le,ce,ue,de){if(this.$behaviour){var ve=this.$behaviour.getBehaviours();for(var ge in ve)if(ve[ge][le]){var he=ve[ge][le].apply(this,arguments);if(he)return he}}},this.getKeywords=function(se){if(!this.completionKeywords){var le=this.$tokenizer.rules,ce=[];for(var ue in le)for(var de=le[ue],ve=0,ge=de.length;ve<ge;ve++)if(typeof de[ve].token=="string")/keyword|support|storage/.test(de[ve].token)&&ce.push(de[ve].regex);else if(typeof de[ve].token=="object"){for(var he=0,me=de[ve].token.length;he<me;he++)if(/keyword|support|storage/.test(de[ve].token[he])){var ue=de[ve].regex.match(/\(.+?\)/g)[he];ce.push(ue.substr(1,ue.length-2))}}this.completionKeywords=ce}return se?ce.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(se,le,ce,ue){var de=this.$keywordList||this.$createKeywordList();return de.map(function(ve){return{name:ve,value:ve,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(oe.prototype),W.Mode=oe}),ace.define("ace/apply_delta",["require","exports","module"],function(U,W,G){W.applyDelta=function(X,Z,Q){var ee=Z.start.row,ie=Z.start.column,te=X[ee]||"";switch(Z.action){case"insert":var ne=Z.lines;if(ne.length===1)X[ee]=te.substring(0,ie)+Z.lines[0]+te.substring(ie);else{var ae=[ee,1].concat(Z.lines);X.splice.apply(X,ae),X[ee]=te.substring(0,ie)+X[ee],X[ee+Z.lines.length-1]+=te.substring(ie)}break;case"remove":var oe=Z.end.column,se=Z.end.row;ee===se?X[ee]=te.substring(0,ie)+te.substring(oe):X.splice(ee,se-ee+1,te.substring(0,ie)+X[se].substring(oe));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/event_emitter").EventEmitter,Q=W.Anchor=function(ee,ie,te){this.$onChange=this.onChange.bind(this),this.attach(ee),typeof te>"u"?this.setPosition(ie.row,ie.column):this.setPosition(ie,te)};(function(){X.implement(this,Z),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(te){if(!(te.start.row==te.end.row&&te.start.row!=this.row)&&!(te.start.row>this.row)){var ne=ie(te,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ne.row,ne.column,!0)}};function ee(te,ne,ae){var oe=ae?te.column<=ne.column:te.column<ne.column;return te.row<ne.row||te.row==ne.row&&oe}function ie(te,ne,ae){var oe=te.action=="insert",se=(oe?1:-1)*(te.end.row-te.start.row),le=(oe?1:-1)*(te.end.column-te.start.column),ce=te.start,ue=oe?ce:te.end;return ee(ne,ce,ae)?{row:ne.row,column:ne.column}:ee(ue,ne,!ae)?{row:ne.row+se,column:ne.column+(ne.row==ue.row?le:0)}:{row:ce.row,column:ce.column}}this.setPosition=function(te,ne,ae){var oe;if(ae?oe={row:te,column:ne}:oe=this.$clipPositionToDocument(te,ne),!(this.row==oe.row&&this.column==oe.column)){var se={row:this.row,column:this.column};this.row=oe.row,this.column=oe.column,this._signal("change",{old:se,value:oe})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(te){this.document=te||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(te,ne){var ae={};return te>=this.document.getLength()?(ae.row=Math.max(0,this.document.getLength()-1),ae.column=this.document.getLine(ae.row).length):te<0?(ae.row=0,ae.column=0):(ae.row=te,ae.column=Math.min(this.document.getLine(ae.row).length,Math.max(0,ne))),ne<0&&(ae.column=0),ae}}).call(Q.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(U,W,G){var X=U("./lib/oop"),Z=U("./apply_delta").applyDelta,Q=U("./lib/event_emitter").EventEmitter,ee=U("./range").Range,ie=U("./anchor").Anchor,te=function(ne){this.$lines=[""],ne.length===0?this.$lines=[""]:Array.isArray(ne)?this.insertMergedLines({row:0,column:0},ne):this.insert({row:0,column:0},ne)};(function(){X.implement(this,Q),this.setValue=function(ne){var ae=this.getLength()-1;this.remove(new ee(0,0,ae,this.getLine(ae).length)),this.insert({row:0,column:0},ne||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(ne,ae){return new ie(this,ne,ae)},"aaa".split(/a/).length===0?this.$split=function(ne){return ne.replace(/\r\n|\r/g,`
|
||
`).split(`
|
||
`)}:this.$split=function(ne){return ne.split(/\r\n|\r|\n/)},this.$detectNewLine=function(ne){var ae=ne.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=ae?ae[1]:`
|
||
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
||
`;case"unix":return`
|
||
`;default:return this.$autoNewLine||`
|
||
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(ne){this.$newLineMode!==ne&&(this.$newLineMode=ne,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(ne){return ne==`\r
|
||
`||ne=="\r"||ne==`
|
||
`},this.getLine=function(ne){return this.$lines[ne]||""},this.getLines=function(ne,ae){return this.$lines.slice(ne,ae+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(ne){return this.getLinesForRange(ne).join(this.getNewLineCharacter())},this.getLinesForRange=function(ne){var ae;if(ne.start.row===ne.end.row)ae=[this.getLine(ne.start.row).substring(ne.start.column,ne.end.column)];else{ae=this.getLines(ne.start.row,ne.end.row),ae[0]=(ae[0]||"").substring(ne.start.column);var oe=ae.length-1;ne.end.row-ne.start.row==oe&&(ae[oe]=ae[oe].substring(0,ne.end.column))}return ae},this.insertLines=function(ne,ae){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(ne,ae)},this.removeLines=function(ne,ae){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(ne,ae)},this.insertNewLine=function(ne){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(ne,["",""])},this.insert=function(ne,ae){return this.getLength()<=1&&this.$detectNewLine(ae),this.insertMergedLines(ne,this.$split(ae))},this.insertInLine=function(ne,ae){var oe=this.clippedPos(ne.row,ne.column),se=this.pos(ne.row,ne.column+ae.length);return this.applyDelta({start:oe,end:se,action:"insert",lines:[ae]},!0),this.clonePos(se)},this.clippedPos=function(ne,ae){var oe=this.getLength();ne===void 0?ne=oe:ne<0?ne=0:ne>=oe&&(ne=oe-1,ae=void 0);var se=this.getLine(ne);return ae==null&&(ae=se.length),ae=Math.min(Math.max(ae,0),se.length),{row:ne,column:ae}},this.clonePos=function(ne){return{row:ne.row,column:ne.column}},this.pos=function(ne,ae){return{row:ne,column:ae}},this.$clipPosition=function(ne){var ae=this.getLength();return ne.row>=ae?(ne.row=Math.max(0,ae-1),ne.column=this.getLine(ae-1).length):(ne.row=Math.max(0,ne.row),ne.column=Math.min(Math.max(ne.column,0),this.getLine(ne.row).length)),ne},this.insertFullLines=function(ne,ae){ne=Math.min(Math.max(ne,0),this.getLength());var oe=0;ne<this.getLength()?(ae=ae.concat([""]),oe=0):(ae=[""].concat(ae),ne--,oe=this.$lines[ne].length),this.insertMergedLines({row:ne,column:oe},ae)},this.insertMergedLines=function(ne,ae){var oe=this.clippedPos(ne.row,ne.column),se={row:oe.row+ae.length-1,column:(ae.length==1?oe.column:0)+ae[ae.length-1].length};return this.applyDelta({start:oe,end:se,action:"insert",lines:ae}),this.clonePos(se)},this.remove=function(ne){var ae=this.clippedPos(ne.start.row,ne.start.column),oe=this.clippedPos(ne.end.row,ne.end.column);return this.applyDelta({start:ae,end:oe,action:"remove",lines:this.getLinesForRange({start:ae,end:oe})}),this.clonePos(ae)},this.removeInLine=function(ne,ae,oe){var se=this.clippedPos(ne,ae),le=this.clippedPos(ne,oe);return this.applyDelta({start:se,end:le,action:"remove",lines:this.getLinesForRange({start:se,end:le})},!0),this.clonePos(se)},this.removeFullLines=function(ne,ae){ne=Math.min(Math.max(0,ne),this.getLength()-1),ae=Math.min(Math.max(0,ae),this.getLength()-1);var oe=ae==this.getLength()-1&&ne>0,se=ae<this.getLength()-1,le=oe?ne-1:ne,ce=oe?this.getLine(le).length:0,ue=se?ae+1:ae,de=se?0:this.getLine(ue).length,ve=new ee(le,ce,ue,de),ge=this.$lines.slice(ne,ae+1);return this.applyDelta({start:ve.start,end:ve.end,action:"remove",lines:this.getLinesForRange(ve)}),ge},this.removeNewLine=function(ne){ne<this.getLength()-1&&ne>=0&&this.applyDelta({start:this.pos(ne,this.getLine(ne).length),end:this.pos(ne+1,0),action:"remove",lines:["",""]})},this.replace=function(ne,ae){if(ne instanceof ee||(ne=ee.fromPoints(ne.start,ne.end)),ae.length===0&&ne.isEmpty())return ne.start;if(ae==this.getTextRange(ne))return ne.end;this.remove(ne);var oe;return ae?oe=this.insert(ne.start,ae):oe=ne.start,oe},this.applyDeltas=function(ne){for(var ae=0;ae<ne.length;ae++)this.applyDelta(ne[ae])},this.revertDeltas=function(ne){for(var ae=ne.length-1;ae>=0;ae--)this.revertDelta(ne[ae])},this.applyDelta=function(ne,ae){var oe=ne.action=="insert";(oe?ne.lines.length<=1&&!ne.lines[0]:!ee.comparePoints(ne.start,ne.end))||(oe&&ne.lines.length>2e4?this.$splitAndapplyLargeDelta(ne,2e4):(Z(this.$lines,ne,ae),this._signal("change",ne)))},this.$safeApplyDelta=function(ne){var ae=this.$lines.length;(ne.action=="remove"&&ne.start.row<ae&&ne.end.row<ae||ne.action=="insert"&&ne.start.row<=ae)&&this.applyDelta(ne)},this.$splitAndapplyLargeDelta=function(ne,ae){for(var oe=ne.lines,se=oe.length-ae+1,le=ne.start.row,ce=ne.start.column,ue=0,de=0;ue<se;ue=de){de+=ae-1;var ve=oe.slice(ue,de);ve.push(""),this.applyDelta({start:this.pos(le+ue,ce),end:this.pos(le+de,ce=0),action:ne.action,lines:ve},!0)}ne.lines=oe.slice(ue),ne.start.row=le+ue,ne.start.column=ce,this.applyDelta(ne,!0)},this.revertDelta=function(ne){this.$safeApplyDelta({start:this.clonePos(ne.start),end:this.clonePos(ne.end),action:ne.action=="insert"?"remove":"insert",lines:ne.lines.slice()})},this.indexToPosition=function(ne,ae){for(var oe=this.$lines||this.getAllLines(),se=this.getNewLineCharacter().length,le=ae||0,ce=oe.length;le<ce;le++)if(ne-=oe[le].length+se,ne<0)return{row:le,column:ne+oe[le].length+se};return{row:ce-1,column:ne+oe[ce-1].length+se}},this.positionToIndex=function(ne,ae){for(var oe=this.$lines||this.getAllLines(),se=this.getNewLineCharacter().length,le=0,ce=Math.min(ne.row,oe.length),ue=ae||0;ue<ce;++ue)le+=oe[ue].length+se;return le+ne.column}}).call(te.prototype),W.Document=te}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/event_emitter").EventEmitter,Q=function(ee,ie){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=ee;var te=this;this.$worker=function(){if(!!te.running){for(var ne=new Date,ae=te.currentLine,oe=-1,se=te.doc,le=ae;te.lines[ae];)ae++;var ce=se.getLength(),ue=0;for(te.running=!1;ae<ce;){te.$tokenizeRow(ae),oe=ae;do ae++;while(te.lines[ae]);if(ue++,ue%5===0&&new Date-ne>20){te.running=setTimeout(te.$worker,20);break}}te.currentLine=ae,oe==-1&&(oe=ae),le<=oe&&te.fireUpdateEvent(le,oe)}}};(function(){X.implement(this,Z),this.setTokenizer=function(ee){this.tokenizer=ee,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(ee){this.doc=ee,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(ee,ie){var te={first:ee,last:ie};this._signal("update",{data:te})},this.start=function(ee){this.currentLine=Math.min(ee||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(ee){var ie=ee.start.row,te=ee.end.row-ie;if(te===0)this.lines[ie]=null;else if(ee.action=="remove")this.lines.splice(ie,te+1,null),this.states.splice(ie,te+1,null);else{var ne=Array(te+1);ne.unshift(ie,1),this.lines.splice.apply(this.lines,ne),this.states.splice.apply(this.states,ne)}this.currentLine=Math.min(ie,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(ee){return this.lines[ee]||this.$tokenizeRow(ee)},this.getState=function(ee){return this.currentLine==ee&&this.$tokenizeRow(ee),this.states[ee]||"start"},this.$tokenizeRow=function(ee){var ie=this.doc.getLine(ee),te=this.states[ee-1],ne=this.tokenizer.getLineTokens(ie,te,ee);return this.states[ee]+""!=ne.state+""?(this.states[ee]=ne.state,this.lines[ee+1]=null,this.currentLine>ee+1&&(this.currentLine=ee+1)):this.currentLine==ee&&(this.currentLine=ee+1),this.lines[ee]=ne.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(Q.prototype),W.BackgroundTokenizer=Q}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(U,W,G){var X=U("./lib/lang");U("./lib/oop");var Z=U("./range").Range,Q=function(ee,ie,te){this.setRegexp(ee),this.clazz=ie,this.type=te||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(ee){this.regExp+""!=ee+""&&(this.regExp=ee,this.cache=[])},this.update=function(ee,ie,te,ne){if(!!this.regExp)for(var ae=ne.firstRow,oe=ne.lastRow,se={},le=ae;le<=oe;le++){var ce=this.cache[le];ce==null&&(ce=X.getMatchOffsets(te.getLine(le),this.regExp),ce.length>this.MAX_RANGES&&(ce=ce.slice(0,this.MAX_RANGES)),ce=ce.map(function(ge){return new Z(le,ge.offset,le,ge.offset+ge.length)}),this.cache[le]=ce.length?ce:"");for(var ue=ce.length;ue--;){var de=ce[ue].toScreenRange(te),ve=de.toString();se[ve]||(se[ve]=!0,ie.drawSingleLineMarker(ee,de,this.clazz,ne))}}}}).call(Q.prototype),W.SearchHighlight=Q}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(U,W,G){var X=U("../range").Range;function Z(Q,ee){this.foldData=Q,Array.isArray(ee)?this.folds=ee:ee=this.folds=[ee];var ie=ee[ee.length-1];this.range=new X(ee[0].start.row,ee[0].start.column,ie.end.row,ie.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(te){te.setFoldLine(this)},this)}(function(){this.shiftRow=function(Q){this.start.row+=Q,this.end.row+=Q,this.folds.forEach(function(ee){ee.start.row+=Q,ee.end.row+=Q})},this.addFold=function(Q){if(Q.sameRow){if(Q.start.row<this.startRow||Q.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(Q),this.folds.sort(function(ee,ie){return-ee.range.compareEnd(ie.start.row,ie.start.column)}),this.range.compareEnd(Q.start.row,Q.start.column)>0?(this.end.row=Q.end.row,this.end.column=Q.end.column):this.range.compareStart(Q.end.row,Q.end.column)<0&&(this.start.row=Q.start.row,this.start.column=Q.start.column)}else if(Q.start.row==this.end.row)this.folds.push(Q),this.end.row=Q.end.row,this.end.column=Q.end.column;else if(Q.end.row==this.start.row)this.folds.unshift(Q),this.start.row=Q.start.row,this.start.column=Q.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");Q.foldLine=this},this.containsRow=function(Q){return Q>=this.start.row&&Q<=this.end.row},this.walk=function(Q,ee,ie){var te=0,ne=this.folds,ae,oe,se,le=!0;ee==null&&(ee=this.end.row,ie=this.end.column);for(var ce=0;ce<ne.length;ce++){if(ae=ne[ce],oe=ae.range.compareStart(ee,ie),oe==-1){Q(null,ee,ie,te,le);return}if(se=Q(null,ae.start.row,ae.start.column,te,le),se=!se&&Q(ae.placeholder,ae.start.row,ae.start.column,te),se||oe===0)return;le=!ae.sameRow,te=ae.end.column}Q(null,ee,ie,te,le)},this.getNextFoldTo=function(Q,ee){for(var ie,te,ne=0;ne<this.folds.length;ne++){if(ie=this.folds[ne],te=ie.range.compareEnd(Q,ee),te==-1)return{fold:ie,kind:"after"};if(te===0)return{fold:ie,kind:"inside"}}return null},this.addRemoveChars=function(Q,ee,ie){var te=this.getNextFoldTo(Q,ee),ne,ae;if(te){if(ne=te.fold,te.kind=="inside"&&ne.start.column!=ee&&ne.start.row!=Q)window.console&&window.console.log(Q,ee,ne);else if(ne.start.row==Q){ae=this.folds;var oe=ae.indexOf(ne);for(oe===0&&(this.start.column+=ie),oe;oe<ae.length;oe++){if(ne=ae[oe],ne.start.column+=ie,!ne.sameRow)return;ne.end.column+=ie}this.end.column+=ie}}},this.split=function(Q,ee){var ie=this.getNextFoldTo(Q,ee);if(!ie||ie.kind=="inside")return null;var te=ie.fold,ne=this.folds,ae=this.foldData,oe=ne.indexOf(te),se=ne[oe-1];this.end.row=se.end.row,this.end.column=se.end.column,ne=ne.splice(oe,ne.length-oe);var le=new Z(ae,ne);return ae.splice(ae.indexOf(this)+1,0,le),le},this.merge=function(Q){for(var ee=Q.folds,ie=0;ie<ee.length;ie++)this.addFold(ee[ie]);var te=this.foldData;te.splice(te.indexOf(Q),1)},this.toString=function(){var Q=[this.range.toString()+": ["];return this.folds.forEach(function(ee){Q.push(" "+ee.toString())}),Q.push("]"),Q.join(`
|
||
`)},this.idxToPosition=function(Q){for(var ee=0,ie=0;ie<this.folds.length;ie++){var te=this.folds[ie];if(Q-=te.start.column-ee,Q<0)return{row:te.start.row,column:te.start.column+Q};if(Q-=te.placeholder.length,Q<0)return te.start;ee=te.end.column}return{row:this.end.row,column:this.end.column+Q}}}).call(Z.prototype),W.FoldLine=Z}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(U,W,G){var X=U("./range").Range,Z=X.comparePoints,Q=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=Z,this.pointIndex=function(ee,ie,te){for(var ne=this.ranges,ae=te||0;ae<ne.length;ae++){var oe=ne[ae],se=Z(ee,oe.end);if(!(se>0)){var le=Z(ee,oe.start);return se===0?ie&&le!==0?-ae-2:ae:le>0||le===0&&!ie?ae:-ae-1}}return-ae-1},this.add=function(ee){var ie=!ee.isEmpty(),te=this.pointIndex(ee.start,ie);te<0&&(te=-te-1);var ne=this.pointIndex(ee.end,ie,te);return ne<0?ne=-ne-1:ne++,this.ranges.splice(te,ne-te,ee)},this.addList=function(ee){for(var ie=[],te=ee.length;te--;)ie.push.apply(ie,this.add(ee[te]));return ie},this.substractPoint=function(ee){var ie=this.pointIndex(ee);if(ie>=0)return this.ranges.splice(ie,1)},this.merge=function(){var ee=[],ie=this.ranges;ie=ie.sort(function(se,le){return Z(se.start,le.start)});for(var te=ie[0],ne,ae=1;ae<ie.length;ae++){ne=te,te=ie[ae];var oe=Z(ne.end,te.start);oe<0||oe==0&&!ne.isEmpty()&&!te.isEmpty()||(Z(ne.end,te.end)<0&&(ne.end.row=te.end.row,ne.end.column=te.end.column),ie.splice(ae,1),ee.push(te),te=ne,ae--)}return this.ranges=ie,ee},this.contains=function(ee,ie){return this.pointIndex({row:ee,column:ie})>=0},this.containsPoint=function(ee){return this.pointIndex(ee)>=0},this.rangeAtPoint=function(ee){var ie=this.pointIndex(ee);if(ie>=0)return this.ranges[ie]},this.clipRows=function(ee,ie){var te=this.ranges;if(te[0].start.row>ie||te[te.length-1].start.row<ee)return[];var ne=this.pointIndex({row:ee,column:0});ne<0&&(ne=-ne-1);var ae=this.pointIndex({row:ie,column:0},ne);ae<0&&(ae=-ae-1);for(var oe=[],se=ne;se<ae;se++)oe.push(te[se]);return oe},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(ee){this.session&&this.detach(),this.session=ee,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(ee){for(var ie=ee.start,te=ee.end,ne=ie.row,ae=te.row,oe=this.ranges,se=0,le=oe.length;se<le;se++){var ce=oe[se];if(ce.end.row>=ne)break}if(ee.action=="insert")for(var ue=ae-ne,de=-ie.column+te.column;se<le;se++){var ce=oe[se];if(ce.start.row>ne)break;if(ce.start.row==ne&&ce.start.column>=ie.column&&(ce.start.column==ie.column&&this.$bias<=0||(ce.start.column+=de,ce.start.row+=ue)),ce.end.row==ne&&ce.end.column>=ie.column){if(ce.end.column==ie.column&&this.$bias<0)continue;ce.end.column==ie.column&&de>0&&se<le-1&&ce.end.column>ce.start.column&&ce.end.column==oe[se+1].start.column&&(ce.end.column-=de),ce.end.column+=de,ce.end.row+=ue}}else for(var ue=ne-ae,de=ie.column-te.column;se<le;se++){var ce=oe[se];if(ce.start.row>ae)break;ce.end.row<ae&&(ne<ce.end.row||ne==ce.end.row&&ie.column<ce.end.column)?(ce.end.row=ne,ce.end.column=ie.column):ce.end.row==ae?ce.end.column<=te.column?(ue||ce.end.column>ie.column)&&(ce.end.column=ie.column,ce.end.row=ie.row):(ce.end.column+=de,ce.end.row+=ue):ce.end.row>ae&&(ce.end.row+=ue),ce.start.row<ae&&(ne<ce.start.row||ne==ce.start.row&&ie.column<ce.start.column)?(ce.start.row=ne,ce.start.column=ie.column):ce.start.row==ae?ce.start.column<=te.column?(ue||ce.start.column>ie.column)&&(ce.start.column=ie.column,ce.start.row=ie.row):(ce.start.column+=de,ce.start.row+=ue):ce.start.row>ae&&(ce.start.row+=ue)}if(ue!=0&&se<le)for(;se<le;se++){var ce=oe[se];ce.start.row+=ue,ce.end.row+=ue}}}).call(Q.prototype),W.RangeList=Q}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(U,W,G){var X=U("../range_list").RangeList,Z=U("../lib/oop"),Q=W.Fold=function(ae,oe){this.foldLine=null,this.placeholder=oe,this.range=ae,this.start=ae.start,this.end=ae.end,this.sameRow=ae.start.row==ae.end.row,this.subFolds=this.ranges=[]};Z.inherits(Q,X),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(ae){this.foldLine=ae,this.subFolds.forEach(function(oe){oe.setFoldLine(ae)})},this.clone=function(){var ae=this.range.clone(),oe=new Q(ae,this.placeholder);return this.subFolds.forEach(function(se){oe.subFolds.push(se.clone())}),oe.collapseChildren=this.collapseChildren,oe},this.addSubFold=function(ae){if(!this.range.isEqual(ae)){ie(ae,this.start);for(var ue=ae.start.row,de=ae.start.column,oe=0,se=-1;oe<this.subFolds.length&&(se=this.subFolds[oe].range.compare(ue,de),se==1);oe++);var le=this.subFolds[oe],ce=0;if(se==0){if(le.range.containsRange(ae))return le.addSubFold(ae);ce=1}for(var ue=ae.range.end.row,de=ae.range.end.column,ve=oe,se=-1;ve<this.subFolds.length&&(se=this.subFolds[ve].range.compare(ue,de),se==1);ve++);se==0&&ve++;for(var ge=this.subFolds.splice(oe,ve-oe,ae),he=se==0?ge.length-1:ge.length,me=ce;me<he;me++)ae.addSubFold(ge[me]);return ae.setFoldLine(this.foldLine),ae}},this.restoreRange=function(ae){return ne(ae,this.start)}}.call(Q.prototype);function ee(ae,oe){ae.row-=oe.row,ae.row==0&&(ae.column-=oe.column)}function ie(ae,oe){ee(ae.start,oe),ee(ae.end,oe)}function te(ae,oe){ae.row==0&&(ae.column+=oe.column),ae.row+=oe.row}function ne(ae,oe){te(ae.start,oe),te(ae.end,oe)}}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(U,W,G){var X=U("../range").Range,Z=U("./fold_line").FoldLine,Q=U("./fold").Fold,ee=U("../token_iterator").TokenIterator;function ie(){this.getFoldAt=function(te,ne,ae){var oe=this.getFoldLine(te);if(!oe)return null;for(var se=oe.folds,le=0;le<se.length;le++){var ce=se[le].range;if(ce.contains(te,ne)){if(ae==1&&ce.isEnd(te,ne)&&!ce.isEmpty())continue;if(ae==-1&&ce.isStart(te,ne)&&!ce.isEmpty())continue;return se[le]}}},this.getFoldsInRange=function(te){var ne=te.start,ae=te.end,oe=this.$foldData,se=[];ne.column+=1,ae.column-=1;for(var le=0;le<oe.length;le++){var ce=oe[le].range.compareRange(te);if(ce!=2){if(ce==-2)break;for(var ue=oe[le].folds,de=0;de<ue.length;de++){var ve=ue[de];if(ce=ve.range.compareRange(te),ce==-2)break;if(ce==2)continue;if(ce==42)break;se.push(ve)}}}return ne.column-=1,ae.column+=1,se},this.getFoldsInRangeList=function(te){if(Array.isArray(te)){var ne=[];te.forEach(function(ae){ne=ne.concat(this.getFoldsInRange(ae))},this)}else var ne=this.getFoldsInRange(te);return ne},this.getAllFolds=function(){for(var te=[],ne=this.$foldData,ae=0;ae<ne.length;ae++)for(var oe=0;oe<ne[ae].folds.length;oe++)te.push(ne[ae].folds[oe]);return te},this.getFoldStringAt=function(te,ne,ae,oe){if(oe=oe||this.getFoldLine(te),!oe)return null;for(var se={end:{column:0}},le,ce,ue=0;ue<oe.folds.length;ue++){ce=oe.folds[ue];var de=ce.range.compareEnd(te,ne);if(de==-1){le=this.getLine(ce.start.row).substring(se.end.column,ce.start.column);break}else if(de===0)return null;se=ce}return le||(le=this.getLine(ce.start.row).substring(se.end.column)),ae==-1?le.substring(0,ne-se.end.column):ae==1?le.substring(ne-se.end.column):le},this.getFoldLine=function(te,ne){var ae=this.$foldData,oe=0;for(ne&&(oe=ae.indexOf(ne)),oe==-1&&(oe=0),oe;oe<ae.length;oe++){var se=ae[oe];if(se.start.row<=te&&se.end.row>=te)return se;if(se.end.row>te)return null}return null},this.getNextFoldLine=function(te,ne){var ae=this.$foldData,oe=0;for(ne&&(oe=ae.indexOf(ne)),oe==-1&&(oe=0),oe;oe<ae.length;oe++){var se=ae[oe];if(se.end.row>=te)return se}return null},this.getFoldedRowCount=function(te,ne){for(var ae=this.$foldData,oe=ne-te+1,se=0;se<ae.length;se++){var le=ae[se],ce=le.end.row,ue=le.start.row;if(ce>=ne){ue<ne&&(ue>=te?oe-=ne-ue:oe=0);break}else ce>=te&&(ue>=te?oe-=ce-ue:oe-=ce-te+1)}return oe},this.$addFoldLine=function(te){return this.$foldData.push(te),this.$foldData.sort(function(ne,ae){return ne.start.row-ae.start.row}),te},this.addFold=function(te,ne){var ae=this.$foldData,oe=!1,se;te instanceof Q?se=te:(se=new Q(ne,te),se.collapseChildren=ne.collapseChildren),this.$clipRangeToDocument(se.range);var le=se.start.row,ce=se.start.column,ue=se.end.row,de=se.end.column,ve=this.getFoldAt(le,ce,1),ge=this.getFoldAt(ue,de,-1);if(ve&&ge==ve)return ve.addSubFold(se);ve&&!ve.range.isStart(le,ce)&&this.removeFold(ve),ge&&!ge.range.isEnd(ue,de)&&this.removeFold(ge);var he=this.getFoldsInRange(se.range);he.length>0&&(this.removeFolds(he),se.collapseChildren||he.forEach(function(pe){se.addSubFold(pe)}));for(var me=0;me<ae.length;me++){var _e=ae[me];if(ue==_e.start.row){_e.addFold(se),oe=!0;break}else if(le==_e.end.row){if(_e.addFold(se),oe=!0,!se.sameRow){var be=ae[me+1];if(be&&be.start.row==ue){_e.merge(be);break}}break}else if(ue<=_e.start.row)break}return oe||(_e=this.$addFoldLine(new Z(this.$foldData,se))),this.$useWrapMode?this.$updateWrapData(_e.start.row,_e.start.row):this.$updateRowLengthCache(_e.start.row,_e.start.row),this.$modified=!0,this._signal("changeFold",{data:se,action:"add"}),se},this.addFolds=function(te){te.forEach(function(ne){this.addFold(ne)},this)},this.removeFold=function(te){var ne=te.foldLine,ae=ne.start.row,oe=ne.end.row,se=this.$foldData,le=ne.folds;if(le.length==1)se.splice(se.indexOf(ne),1);else if(ne.range.isEnd(te.end.row,te.end.column))le.pop(),ne.end.row=le[le.length-1].end.row,ne.end.column=le[le.length-1].end.column;else if(ne.range.isStart(te.start.row,te.start.column))le.shift(),ne.start.row=le[0].start.row,ne.start.column=le[0].start.column;else if(te.sameRow)le.splice(le.indexOf(te),1);else{var ce=ne.split(te.start.row,te.start.column);le=ce.folds,le.shift(),ce.start.row=le[0].start.row,ce.start.column=le[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(ae,oe):this.$updateRowLengthCache(ae,oe)),this.$modified=!0,this._signal("changeFold",{data:te,action:"remove"})},this.removeFolds=function(te){for(var ne=[],ae=0;ae<te.length;ae++)ne.push(te[ae]);ne.forEach(function(oe){this.removeFold(oe)},this),this.$modified=!0},this.expandFold=function(te){this.removeFold(te),te.subFolds.forEach(function(ne){te.restoreRange(ne),this.addFold(ne)},this),te.collapseChildren>0&&this.foldAll(te.start.row+1,te.end.row,te.collapseChildren-1),te.subFolds=[]},this.expandFolds=function(te){te.forEach(function(ne){this.expandFold(ne)},this)},this.unfold=function(te,ne){var ae,oe;if(te==null)ae=new X(0,0,this.getLength(),0),ne==null&&(ne=!0);else if(typeof te=="number")ae=new X(te,0,te,this.getLine(te).length);else if("row"in te)ae=X.fromPoints(te,te);else{if(Array.isArray(te))return oe=[],te.forEach(function(le){oe=oe.concat(this.unfold(le))},this),oe;ae=te}oe=this.getFoldsInRangeList(ae);for(var se=oe;oe.length==1&&X.comparePoints(oe[0].start,ae.start)<0&&X.comparePoints(oe[0].end,ae.end)>0;)this.expandFolds(oe),oe=this.getFoldsInRangeList(ae);if(ne!=!1?this.removeFolds(oe):this.expandFolds(oe),se.length)return se},this.isRowFolded=function(te,ne){return!!this.getFoldLine(te,ne)},this.getRowFoldEnd=function(te,ne){var ae=this.getFoldLine(te,ne);return ae?ae.end.row:te},this.getRowFoldStart=function(te,ne){var ae=this.getFoldLine(te,ne);return ae?ae.start.row:te},this.getFoldDisplayLine=function(te,ne,ae,oe,se){oe==null&&(oe=te.start.row),se==null&&(se=0),ne==null&&(ne=te.end.row),ae==null&&(ae=this.getLine(ne).length);var le=this.doc,ce="";return te.walk(function(ue,de,ve,ge){if(!(de<oe)){if(de==oe){if(ve<se)return;ge=Math.max(se,ge)}ue!=null?ce+=ue:ce+=le.getLine(de).substring(ge,ve)}},ne,ae),ce},this.getDisplayLine=function(te,ne,ae,oe){var se=this.getFoldLine(te);if(se)return this.getFoldDisplayLine(se,te,ne,ae,oe);var le;return le=this.doc.getLine(te),le.substring(oe||0,ne||le.length)},this.$cloneFoldData=function(){var te=[];return te=this.$foldData.map(function(ne){var ae=ne.folds.map(function(oe){return oe.clone()});return new Z(te,ae)}),te},this.toggleFold=function(te){var ne=this.selection,ae=ne.getRange(),oe,se;if(ae.isEmpty()){var le=ae.start;if(oe=this.getFoldAt(le.row,le.column),oe){this.expandFold(oe);return}else(se=this.findMatchingBracket(le))?ae.comparePoint(se)==1?ae.end=se:(ae.start=se,ae.start.column++,ae.end.column--):(se=this.findMatchingBracket({row:le.row,column:le.column+1}))?(ae.comparePoint(se)==1?ae.end=se:ae.start=se,ae.start.column++):ae=this.getCommentFoldRange(le.row,le.column)||ae}else{var ce=this.getFoldsInRange(ae);if(te&&ce.length){this.expandFolds(ce);return}else ce.length==1&&(oe=ce[0])}if(oe||(oe=this.getFoldAt(ae.start.row,ae.start.column)),oe&&oe.range.toString()==ae.toString()){this.expandFold(oe);return}var ue="...";if(!ae.isMultiLine()){if(ue=this.getTextRange(ae),ue.length<4)return;ue=ue.trim().substring(0,2)+".."}this.addFold(ue,ae)},this.getCommentFoldRange=function(te,ne,ae){var oe=new ee(this,te,ne),se=oe.getCurrentToken(),le=se&&se.type;if(se&&/^comment|string/.test(le)){le=le.match(/comment|string/)[0],le=="comment"&&(le+="|doc-start");var ce=new RegExp(le),ue=new X;if(ae!=1){do se=oe.stepBackward();while(se&&ce.test(se.type)&&!/^comment.end/.test(se.type));se=oe.stepForward()}if(ue.start.row=oe.getCurrentTokenRow(),ue.start.column=oe.getCurrentTokenColumn()+(/^comment.start/.test(se.type)?se.value.length:2),oe=new ee(this,te,ne),ae!=-1){var de=-1;do if(se=oe.stepForward(),de==-1){var ve=this.getState(oe.$row);ce.test(ve)||(de=oe.$row)}else if(oe.$row>de)break;while(se&&ce.test(se.type)&&!/^comment.start/.test(se.type));se=oe.stepBackward()}else se=oe.getCurrentToken();return ue.end.row=oe.getCurrentTokenRow(),ue.end.column=oe.getCurrentTokenColumn(),/^comment.end/.test(se.type)||(ue.end.column+=se.value.length-2),ue}},this.foldAll=function(te,ne,ae,oe){ae==null&&(ae=1e5);var se=this.foldWidgets;if(!!se){ne=ne||this.getLength(),te=te||0;for(var le=te;le<ne;le++)if(se[le]==null&&(se[le]=this.getFoldWidget(le)),se[le]=="start"&&!(oe&&!oe(le))){var ce=this.getFoldWidgetRange(le);ce&&ce.isMultiLine()&&ce.end.row<=ne&&ce.start.row>=te&&(le=ce.end.row,ce.collapseChildren=ae,this.addFold("...",ce))}}},this.foldToLevel=function(te){for(this.foldAll();te-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var te=this;this.foldAll(null,null,null,function(ne){for(var ae=te.getTokens(ne),oe=0;oe<ae.length;oe++){var se=ae[oe];if(!(se.type=="text"&&/^\s+$/.test(se.value)))return!!/comment/.test(se.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(te){if(!this.$foldStyles[te])throw new Error("invalid fold style: "+te+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=te){this.$foldStyle=te,te=="manual"&&this.unfold();var ne=this.$foldMode;this.$setFolding(null),this.$setFolding(ne)}},this.$setFolding=function(te){if(this.$foldMode!=te){if(this.$foldMode=te,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!te||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=te.getFoldWidget.bind(te,this,this.$foldStyle),this.getFoldWidgetRange=te.getFoldWidgetRange.bind(te,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(te,ne){var ae=this.foldWidgets;if(!ae||ne&&ae[te])return{};for(var oe=te-1,se;oe>=0;){var le=ae[oe];if(le==null&&(le=ae[oe]=this.getFoldWidget(oe)),le=="start"){var ce=this.getFoldWidgetRange(oe);if(se||(se=ce),ce&&ce.end.row>=te)break}oe--}return{range:oe!==-1&&ce,firstRange:se}},this.onFoldWidgetClick=function(te,ne){ne=ne.domEvent;var ae={children:ne.shiftKey,all:ne.ctrlKey||ne.metaKey,siblings:ne.altKey},oe=this.$toggleFoldWidget(te,ae);if(!oe){var se=ne.target||ne.srcElement;se&&/ace_fold-widget/.test(se.className)&&(se.className+=" ace_invalid")}},this.$toggleFoldWidget=function(te,ne){if(!!this.getFoldWidget){var ae=this.getFoldWidget(te),oe=this.getLine(te),se=ae==="end"?-1:1,le=this.getFoldAt(te,se===-1?0:oe.length,se);if(le)return ne.children||ne.all?this.removeFold(le):this.expandFold(le),le;var ce=this.getFoldWidgetRange(te,!0);if(ce&&!ce.isMultiLine()&&(le=this.getFoldAt(ce.start.row,ce.start.column,1),le&&ce.isEqual(le.range)))return this.removeFold(le),le;if(ne.siblings){var ue=this.getParentFoldRangeData(te);if(ue.range)var de=ue.range.start.row+1,ve=ue.range.end.row;this.foldAll(de,ve,ne.all?1e4:0)}else ne.children?(ve=ce?ce.end.row:this.getLength(),this.foldAll(te+1,ve,ne.all?1e4:0)):ce&&(ne.all&&(ce.collapseChildren=1e4),this.addFold("...",ce));return ce}},this.toggleFoldWidget=function(te){var ne=this.selection.getCursor().row;ne=this.getRowFoldStart(ne);var ae=this.$toggleFoldWidget(ne,{});if(!ae){var oe=this.getParentFoldRangeData(ne,!0);if(ae=oe.range||oe.firstRange,ae){ne=ae.start.row;var se=this.getFoldAt(ne,this.getLine(ne).length,1);se?this.removeFold(se):this.addFold("...",ae)}}},this.updateFoldWidgets=function(te){var ne=te.start.row,ae=te.end.row-ne;if(ae===0)this.foldWidgets[ne]=null;else if(te.action=="remove")this.foldWidgets.splice(ne,ae+1,null);else{var oe=Array(ae+1);oe.unshift(ne,1),this.foldWidgets.splice.apply(this.foldWidgets,oe)}},this.tokenizerUpdateFoldWidgets=function(te){var ne=te.data;ne.first!=ne.last&&this.foldWidgets.length>ne.first&&this.foldWidgets.splice(ne.first,this.foldWidgets.length)}}W.Folding=ie}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(U,W,G){var X=U("../token_iterator").TokenIterator,Z=U("../range").Range;function Q(){this.findMatchingBracket=function(ee,ie){if(ee.column==0)return null;var te=ie||this.getLine(ee.row).charAt(ee.column-1);if(te=="")return null;var ne=te.match(/([\(\[\{])|([\)\]\}])/);return ne?ne[1]?this.$findClosingBracket(ne[1],ee):this.$findOpeningBracket(ne[2],ee):null},this.getBracketRange=function(ee){var ie=this.getLine(ee.row),te=!0,ne,ae=ie.charAt(ee.column-1),oe=ae&&ae.match(/([\(\[\{])|([\)\]\}])/);if(oe||(ae=ie.charAt(ee.column),ee={row:ee.row,column:ee.column+1},oe=ae&&ae.match(/([\(\[\{])|([\)\]\}])/),te=!1),!oe)return null;if(oe[1]){var se=this.$findClosingBracket(oe[1],ee);if(!se)return null;ne=Z.fromPoints(ee,se),te||(ne.end.column++,ne.start.column--),ne.cursor=ne.end}else{var se=this.$findOpeningBracket(oe[2],ee);if(!se)return null;ne=Z.fromPoints(se,ee),te||(ne.start.column++,ne.end.column--),ne.cursor=ne.start}return ne},this.getMatchingBracketRanges=function(ee,ie){var te=this.getLine(ee.row),ne=/([\(\[\{])|([\)\]\}])/,ae=!ie&&te.charAt(ee.column-1),oe=ae&&ae.match(ne);if(oe||(ae=(ie===void 0||ie)&&te.charAt(ee.column),ee={row:ee.row,column:ee.column+1},oe=ae&&ae.match(ne)),!oe)return null;var se=new Z(ee.row,ee.column-1,ee.row,ee.column),le=oe[1]?this.$findClosingBracket(oe[1],ee):this.$findOpeningBracket(oe[2],ee);if(!le)return[se];var ce=new Z(le.row,le.column,le.row,le.column+1);return[se,ce]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(ee,ie,te){var ne=this.$brackets[ee],ae=1,oe=new X(this,ie.row,ie.column),se=oe.getCurrentToken();if(se||(se=oe.stepForward()),!!se){te||(te=new RegExp("(\\.?"+se.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var le=ie.column-oe.getCurrentTokenColumn()-2,ce=se.value;;){for(;le>=0;){var ue=ce.charAt(le);if(ue==ne){if(ae-=1,ae==0)return{row:oe.getCurrentTokenRow(),column:le+oe.getCurrentTokenColumn()}}else ue==ee&&(ae+=1);le-=1}do se=oe.stepBackward();while(se&&!te.test(se.type));if(se==null)break;ce=se.value,le=ce.length-1}return null}},this.$findClosingBracket=function(ee,ie,te){var ne=this.$brackets[ee],ae=1,oe=new X(this,ie.row,ie.column),se=oe.getCurrentToken();if(se||(se=oe.stepForward()),!!se){te||(te=new RegExp("(\\.?"+se.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var le=ie.column-oe.getCurrentTokenColumn();;){for(var ce=se.value,ue=ce.length;le<ue;){var de=ce.charAt(le);if(de==ne){if(ae-=1,ae==0)return{row:oe.getCurrentTokenRow(),column:le+oe.getCurrentTokenColumn()}}else de==ee&&(ae+=1);le+=1}do se=oe.stepForward();while(se&&!te.test(se.type));if(se==null)break;le=0}return null}},this.getMatchingTags=function(ee){var ie=new X(this,ee.row,ee.column),te=this.$findTagName(ie);if(!!te){var ne=ie.stepBackward();return ne.value==="<"?this.$findClosingTag(ie,te):this.$findOpeningTag(ie,te)}},this.$findTagName=function(ee){var ie=ee.getCurrentToken(),te=!1,ne=!1;if(ie&&ie.type.indexOf("tag-name")===-1)do ne?ie=ee.stepBackward():ie=ee.stepForward(),ie&&(ie.value==="/>"?ne=!0:ie.type.indexOf("tag-name")!==-1&&(te=!0));while(ie&&!te);return ie},this.$findClosingTag=function(ee,ie){var te,ne=ie.value,ae=ie.value,oe=0,se=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1);ie=ee.stepForward();var le=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+ie.value.length),ce=!1;do if(te=ie,ie=ee.stepForward(),ie){if(ie.value===">"&&!ce){var ue=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1);ce=!0}if(ie.type.indexOf("tag-name")!==-1){if(ne=ie.value,ae===ne){if(te.value==="<")oe++;else if(te.value==="</"&&(oe--,oe<0)){ee.stepBackward();var de=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+2);ie=ee.stepForward();var ve=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+ie.value.length);if(ie=ee.stepForward(),ie&&ie.value===">")var ge=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1);else return}}}else if(ae===ne&&ie.value==="/>"&&(oe--,oe<0))var de=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+2),ve=de,ge=ve,ue=new Z(le.end.row,le.end.column,le.end.row,le.end.column+1)}while(ie&&oe>=0);if(se&&ue&&de&&ge&&le&&ve)return{openTag:new Z(se.start.row,se.start.column,ue.end.row,ue.end.column),closeTag:new Z(de.start.row,de.start.column,ge.end.row,ge.end.column),openTagName:le,closeTagName:ve}},this.$findOpeningTag=function(ee,ie){var te=ee.getCurrentToken(),ne=ie.value,ae=0,oe=ee.getCurrentTokenRow(),se=ee.getCurrentTokenColumn(),le=se+2,ce=new Z(oe,se,oe,le);ee.stepForward();var ue=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+ie.value.length);if(ie=ee.stepForward(),!(!ie||ie.value!==">")){var de=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1);ee.stepBackward(),ee.stepBackward();do if(ie=te,oe=ee.getCurrentTokenRow(),se=ee.getCurrentTokenColumn(),le=se+ie.value.length,te=ee.stepBackward(),ie){if(ie.type.indexOf("tag-name")!==-1){if(ne===ie.value)if(te.value==="<"){if(ae++,ae>0){var ve=new Z(oe,se,oe,le),ge=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1);do ie=ee.stepForward();while(ie&&ie.value!==">");var he=new Z(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn(),ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+1)}}else te.value==="</"&&ae--}else if(ie.value==="/>"){for(var me=0,_e=te;_e;){if(_e.type.indexOf("tag-name")!==-1&&_e.value===ne){ae--;break}else if(_e.value==="<")break;_e=ee.stepBackward(),me++}for(var be=0;be<me;be++)ee.stepForward()}}while(te&&ae<=0);if(ge&&he&&ce&&de&&ve&&ue)return{openTag:new Z(ge.start.row,ge.start.column,he.end.row,he.end.column),closeTag:new Z(ce.start.row,ce.start.column,de.end.row,de.end.column),openTagName:ve,closeTagName:ue}}}}W.BracketMatch=Q}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/lang"),Q=U("./bidihandler").BidiHandler,ee=U("./config"),ie=U("./lib/event_emitter").EventEmitter,te=U("./selection").Selection,ne=U("./mode/text").Mode,ae=U("./range").Range,oe=U("./document").Document,se=U("./background_tokenizer").BackgroundTokenizer,le=U("./search_highlight").SearchHighlight,ce=function(ue,de){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++ce.$uid,this.$foldData.toString=function(){return this.join(`
|
||
`)},this.bgTokenizer=new se(new ne().getTokenizer(),this);var ve=this;this.bgTokenizer.on("update",function(ge){ve._signal("tokenizerUpdate",ge)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof ue!="object"||!ue.getLine)&&(ue=new oe(ue)),this.setDocument(ue),this.selection=new te(this),this.$bidiHandler=new Q(this),ee.resetOptions(this),this.setMode(de),ee._signal("session",this),this.destroyed=!1};ce.$uid=0,function(){X.implement(this,ie),this.setDocument=function(fe){this.doc&&this.doc.off("change",this.$onChange),this.doc=fe,fe.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(fe){if(!fe){this.$docRowCache=[],this.$screenRowCache=[];return}var ye=this.$docRowCache.length,$e=this.$getRowCacheIndex(this.$docRowCache,fe)+1;ye>$e&&(this.$docRowCache.splice($e,ye),this.$screenRowCache.splice($e,ye))},this.$getRowCacheIndex=function(fe,ye){for(var $e=0,we=fe.length-1;$e<=we;){var Se=$e+we>>1,Te=fe[Se];if(ye>Te)$e=Se+1;else if(ye<Te)we=Se-1;else return Se}return $e-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(fe){var ye=fe.data;this.$resetRowCache(ye.start.row)},this.onChange=function(fe){this.$modified=!0,this.$bidiHandler.onChange(fe),this.$resetRowCache(fe.start.row);var ye=this.$updateInternalDataOnChange(fe);!this.$fromUndo&&this.$undoManager&&(ye&&ye.length&&(this.$undoManager.add({action:"removeFolds",folds:ye},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(fe,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(fe),this._signal("change",fe)},this.setValue=function(fe){this.doc.setValue(fe),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(fe){return this.bgTokenizer.getState(fe)},this.getTokens=function(fe){return this.bgTokenizer.getTokens(fe)},this.getTokenAt=function(fe,ye){var $e=this.bgTokenizer.getTokens(fe),we,Se=0;if(ye==null){var Te=$e.length-1;Se=this.getLine(fe).length}else for(var Te=0;Te<$e.length&&(Se+=$e[Te].value.length,!(Se>=ye));Te++);return we=$e[Te],we?(we.index=Te,we.start=Se-we.value.length,we):null},this.setUndoManager=function(fe){if(this.$undoManager=fe,this.$informUndoManager&&this.$informUndoManager.cancel(),fe){var ye=this;fe.addSession(this),this.$syncInformUndoManager=function(){ye.$informUndoManager.cancel(),ye.mergeUndoDeltas=!1},this.$informUndoManager=Z.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?Z.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(fe){this.setOption("useSoftTabs",fe)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(fe){this.setOption("tabSize",fe)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(fe){return this.$useSoftTabs&&fe.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(fe){this.setOption("navigateWithinSoftTabs",fe)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(fe){this.setOption("overwrite",fe)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(fe,ye){this.$decorations[fe]||(this.$decorations[fe]=""),this.$decorations[fe]+=" "+ye,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(fe,ye){this.$decorations[fe]=(this.$decorations[fe]||"").replace(" "+ye,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(fe){this.$breakpoints=[];for(var ye=0;ye<fe.length;ye++)this.$breakpoints[fe[ye]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(fe,ye){ye===void 0&&(ye="ace_breakpoint"),ye?this.$breakpoints[fe]=ye:delete this.$breakpoints[fe],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(fe){delete this.$breakpoints[fe],this._signal("changeBreakpoint",{})},this.addMarker=function(fe,ye,$e,we){var Se=this.$markerId++,Te={range:fe,type:$e||"line",renderer:typeof $e=="function"?$e:null,clazz:ye,inFront:!!we,id:Se};return we?(this.$frontMarkers[Se]=Te,this._signal("changeFrontMarker")):(this.$backMarkers[Se]=Te,this._signal("changeBackMarker")),Se},this.addDynamicMarker=function(fe,ye){if(!!fe.update){var $e=this.$markerId++;return fe.id=$e,fe.inFront=!!ye,ye?(this.$frontMarkers[$e]=fe,this._signal("changeFrontMarker")):(this.$backMarkers[$e]=fe,this._signal("changeBackMarker")),fe}},this.removeMarker=function(fe){var ye=this.$frontMarkers[fe]||this.$backMarkers[fe];if(!!ye){var $e=ye.inFront?this.$frontMarkers:this.$backMarkers;delete $e[fe],this._signal(ye.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(fe){return fe?this.$frontMarkers:this.$backMarkers},this.highlight=function(fe){if(!this.$searchHighlight){var ye=new le(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(ye)}this.$searchHighlight.setRegexp(fe)},this.highlightLines=function(fe,ye,$e,we){typeof ye!="number"&&($e=ye,ye=fe),$e||($e="ace_step");var Se=new ae(fe,0,ye,1/0);return Se.id=this.addMarker(Se,$e,"fullLine",we),Se},this.setAnnotations=function(fe){this.$annotations=fe,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(fe){var ye=fe.match(/^.*?(\r?\n)/m);ye?this.$autoNewLine=ye[1]:this.$autoNewLine=`
|
||
`},this.getWordRange=function(fe,ye){var $e=this.getLine(fe),we=!1;if(ye>0&&(we=!!$e.charAt(ye-1).match(this.tokenRe)),we||(we=!!$e.charAt(ye).match(this.tokenRe)),we)var Se=this.tokenRe;else if(/^\s+$/.test($e.slice(ye-1,ye+1)))var Se=/\s/;else var Se=this.nonTokenRe;var Te=ye;if(Te>0){do Te--;while(Te>=0&&$e.charAt(Te).match(Se));Te++}for(var xe=ye;xe<$e.length&&$e.charAt(xe).match(Se);)xe++;return new ae(fe,Te,fe,xe)},this.getAWordRange=function(fe,ye){for(var $e=this.getWordRange(fe,ye),we=this.getLine($e.end.row);we.charAt($e.end.column).match(/[ \t]/);)$e.end.column+=1;return $e},this.setNewLineMode=function(fe){this.doc.setNewLineMode(fe)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(fe){this.setOption("useWorker",fe)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(fe){var ye=fe.data;this.bgTokenizer.start(ye.first),this._signal("tokenizerUpdate",fe)},this.$modes=ee.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(fe,ye){if(fe&&typeof fe=="object"){if(fe.getTokenizer)return this.$onChangeMode(fe);var $e=fe,we=$e.path}else we=fe||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new ne),this.$modes[we]&&!$e){this.$onChangeMode(this.$modes[we]),ye&&ye();return}this.$modeId=we,ee.loadModule(["mode",we],function(Se){if(this.$modeId!==we)return ye&&ye();this.$modes[we]&&!$e?this.$onChangeMode(this.$modes[we]):Se&&Se.Mode&&(Se=new Se.Mode($e),$e||(this.$modes[we]=Se,Se.$id=we),this.$onChangeMode(Se)),ye&&ye()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(fe,ye){if(ye||(this.$modeId=fe.$id),this.$mode!==fe){var $e=this.$mode;this.$mode=fe,this.$stopWorker(),this.$useWorker&&this.$startWorker();var we=fe.getTokenizer();if(we.on!==void 0){var Se=this.onReloadTokenizer.bind(this);we.on("update",Se)}this.bgTokenizer.setTokenizer(we),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=fe.tokenRe,this.nonTokenRe=fe.nonTokenRe,ye||(fe.attachToSession&&fe.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(fe.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:$e,mode:fe}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(fe){ee.warn("Could not load worker",fe),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(fe){this.$scrollTop===fe||isNaN(fe)||(this.$scrollTop=fe,this._signal("changeScrollTop",fe))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(fe){this.$scrollLeft===fe||isNaN(fe)||(this.$scrollLeft=fe,this._signal("changeScrollLeft",fe))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var fe=0;return this.lineWidgets.forEach(function(ye){ye&&ye.screenWidth>fe&&(fe=ye.screenWidth)}),this.lineWidgetWidth=fe},this.$computeWidth=function(fe){if(this.$modified||fe){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var ye=this.doc.getAllLines(),$e=this.$rowLengthCache,we=0,Se=0,Te=this.$foldData[Se],xe=Te?Te.start.row:1/0,ke=ye.length,Ie=0;Ie<ke;Ie++){if(Ie>xe){if(Ie=Te.end.row+1,Ie>=ke)break;Te=this.$foldData[Se++],xe=Te?Te.start.row:1/0}$e[Ie]==null&&($e[Ie]=this.$getStringScreenWidth(ye[Ie])[0]),$e[Ie]>we&&(we=$e[Ie])}this.screenWidth=we}},this.getLine=function(fe){return this.doc.getLine(fe)},this.getLines=function(fe,ye){return this.doc.getLines(fe,ye)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(fe){return this.doc.getTextRange(fe||this.selection.getRange())},this.insert=function(fe,ye){return this.doc.insert(fe,ye)},this.remove=function(fe){return this.doc.remove(fe)},this.removeFullLines=function(fe,ye){return this.doc.removeFullLines(fe,ye)},this.undoChanges=function(fe,ye){if(!!fe.length){this.$fromUndo=!0;for(var $e=fe.length-1;$e!=-1;$e--){var we=fe[$e];we.action=="insert"||we.action=="remove"?this.doc.revertDelta(we):we.folds&&this.addFolds(we.folds)}!ye&&this.$undoSelect&&(fe.selectionBefore?this.selection.fromJSON(fe.selectionBefore):this.selection.setRange(this.$getUndoSelection(fe,!0))),this.$fromUndo=!1}},this.redoChanges=function(fe,ye){if(!!fe.length){this.$fromUndo=!0;for(var $e=0;$e<fe.length;$e++){var we=fe[$e];(we.action=="insert"||we.action=="remove")&&this.doc.$safeApplyDelta(we)}!ye&&this.$undoSelect&&(fe.selectionAfter?this.selection.fromJSON(fe.selectionAfter):this.selection.setRange(this.$getUndoSelection(fe,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(fe){this.$undoSelect=fe},this.$getUndoSelection=function(fe,ye){function $e(ke){return ye?ke.action!=="insert":ke.action==="insert"}for(var we,Se,Te=0;Te<fe.length;Te++){var xe=fe[Te];if(!!xe.start){if(!we){$e(xe)?we=ae.fromPoints(xe.start,xe.end):we=ae.fromPoints(xe.start,xe.start);continue}$e(xe)?(Se=xe.start,we.compare(Se.row,Se.column)==-1&&we.setStart(Se),Se=xe.end,we.compare(Se.row,Se.column)==1&&we.setEnd(Se)):(Se=xe.start,we.compare(Se.row,Se.column)==-1&&(we=ae.fromPoints(xe.start,xe.start)))}}return we},this.replace=function(fe,ye){return this.doc.replace(fe,ye)},this.moveText=function(fe,ye,$e){var we=this.getTextRange(fe),Se=this.getFoldsInRange(fe),Te=ae.fromPoints(ye,ye);if(!$e){this.remove(fe);var xe=fe.start.row-fe.end.row,ke=xe?-fe.end.column:fe.start.column-fe.end.column;ke&&(Te.start.row==fe.end.row&&Te.start.column>fe.end.column&&(Te.start.column+=ke),Te.end.row==fe.end.row&&Te.end.column>fe.end.column&&(Te.end.column+=ke)),xe&&Te.start.row>=fe.end.row&&(Te.start.row+=xe,Te.end.row+=xe)}if(Te.end=this.insert(Te.start,we),Se.length){var Ie=fe.start,Ae=Te.start,xe=Ae.row-Ie.row,ke=Ae.column-Ie.column;this.addFolds(Se.map(function(Be){return Be=Be.clone(),Be.start.row==Ie.row&&(Be.start.column+=ke),Be.end.row==Ie.row&&(Be.end.column+=ke),Be.start.row+=xe,Be.end.row+=xe,Be}))}return Te},this.indentRows=function(fe,ye,$e){$e=$e.replace(/\t/g,this.getTabString());for(var we=fe;we<=ye;we++)this.doc.insertInLine({row:we,column:0},$e)},this.outdentRows=function(fe){for(var ye=fe.collapseRows(),$e=new ae(0,0,0,0),we=this.getTabSize(),Se=ye.start.row;Se<=ye.end.row;++Se){var Te=this.getLine(Se);$e.start.row=Se,$e.end.row=Se;for(var xe=0;xe<we&&Te.charAt(xe)==" ";++xe);xe<we&&Te.charAt(xe)==" "?($e.start.column=xe,$e.end.column=xe+1):($e.start.column=0,$e.end.column=xe),this.remove($e)}},this.$moveLines=function(fe,ye,$e){if(fe=this.getRowFoldStart(fe),ye=this.getRowFoldEnd(ye),$e<0){var we=this.getRowFoldStart(fe+$e);if(we<0)return 0;var Se=we-fe}else if($e>0){var we=this.getRowFoldEnd(ye+$e);if(we>this.doc.getLength()-1)return 0;var Se=we-ye}else{fe=this.$clipRowToDocument(fe),ye=this.$clipRowToDocument(ye);var Se=ye-fe+1}var Te=new ae(fe,0,ye,Number.MAX_VALUE),xe=this.getFoldsInRange(Te).map(function(Ie){return Ie=Ie.clone(),Ie.start.row+=Se,Ie.end.row+=Se,Ie}),ke=$e==0?this.doc.getLines(fe,ye):this.doc.removeFullLines(fe,ye);return this.doc.insertFullLines(fe+Se,ke),xe.length&&this.addFolds(xe),Se},this.moveLinesUp=function(fe,ye){return this.$moveLines(fe,ye,-1)},this.moveLinesDown=function(fe,ye){return this.$moveLines(fe,ye,1)},this.duplicateLines=function(fe,ye){return this.$moveLines(fe,ye,0)},this.$clipRowToDocument=function(fe){return Math.max(0,Math.min(fe,this.doc.getLength()-1))},this.$clipColumnToRow=function(fe,ye){return ye<0?0:Math.min(this.doc.getLine(fe).length,ye)},this.$clipPositionToDocument=function(fe,ye){if(ye=Math.max(0,ye),fe<0)fe=0,ye=0;else{var $e=this.doc.getLength();fe>=$e?(fe=$e-1,ye=this.doc.getLine($e-1).length):ye=Math.min(this.doc.getLine(fe).length,ye)}return{row:fe,column:ye}},this.$clipRangeToDocument=function(fe){fe.start.row<0?(fe.start.row=0,fe.start.column=0):fe.start.column=this.$clipColumnToRow(fe.start.row,fe.start.column);var ye=this.doc.getLength()-1;return fe.end.row>ye?(fe.end.row=ye,fe.end.column=this.doc.getLine(ye).length):fe.end.column=this.$clipColumnToRow(fe.end.row,fe.end.column),fe},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(fe){if(fe!=this.$useWrapMode){if(this.$useWrapMode=fe,this.$modified=!0,this.$resetRowCache(0),fe){var ye=this.getLength();this.$wrapData=Array(ye),this.$updateWrapData(0,ye-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(fe,ye){(this.$wrapLimitRange.min!==fe||this.$wrapLimitRange.max!==ye)&&(this.$wrapLimitRange={min:fe,max:ye},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(fe,ye){var $e=this.$wrapLimitRange;$e.max<0&&($e={min:ye,max:ye});var we=this.$constrainWrapLimit(fe,$e.min,$e.max);return we!=this.$wrapLimit&&we>1?(this.$wrapLimit=we,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(fe,ye,$e){return ye&&(fe=Math.max(ye,fe)),$e&&(fe=Math.min($e,fe)),fe},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(fe){this.setWrapLimitRange(fe,fe)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(fe){var ye=this.$useWrapMode,$e=fe.action,we=fe.start,Se=fe.end,Te=we.row,xe=Se.row,ke=xe-Te,Ie=null;if(this.$updating=!0,ke!=0)if($e==="remove"){this[ye?"$wrapData":"$rowLengthCache"].splice(Te,ke);var Ae=this.$foldData;Ie=this.getFoldsInRange(fe),this.removeFolds(Ie);var Me=this.getFoldLine(Se.row),Fe=0;if(Me){Me.addRemoveChars(Se.row,Se.column,we.column-Se.column),Me.shiftRow(-ke);var Be=this.getFoldLine(Te);Be&&Be!==Me&&(Be.merge(Me),Me=Be),Fe=Ae.indexOf(Me)+1}for(Fe;Fe<Ae.length;Fe++){var Me=Ae[Fe];Me.start.row>=Se.row&&Me.shiftRow(-ke)}xe=Te}else{var Ne=Array(ke);Ne.unshift(Te,0);var Ve=ye?this.$wrapData:this.$rowLengthCache;Ve.splice.apply(Ve,Ne);var Ae=this.$foldData,Me=this.getFoldLine(Te),Fe=0;if(Me){var Le=Me.range.compareInside(we.row,we.column);Le==0?(Me=Me.split(we.row,we.column),Me&&(Me.shiftRow(ke),Me.addRemoveChars(xe,0,Se.column-we.column))):Le==-1&&(Me.addRemoveChars(Te,0,Se.column-we.column),Me.shiftRow(ke)),Fe=Ae.indexOf(Me)+1}for(Fe;Fe<Ae.length;Fe++){var Me=Ae[Fe];Me.start.row>=Te&&Me.shiftRow(ke)}}else{ke=Math.abs(fe.start.column-fe.end.column),$e==="remove"&&(Ie=this.getFoldsInRange(fe),this.removeFolds(Ie),ke=-ke);var Me=this.getFoldLine(Te);Me&&Me.addRemoveChars(Te,we.column,ke)}return ye&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,ye?this.$updateWrapData(Te,xe):this.$updateRowLengthCache(Te,xe),Ie},this.$updateRowLengthCache=function(fe,ye,$e){this.$rowLengthCache[fe]=null,this.$rowLengthCache[ye]=null},this.$updateWrapData=function(fe,ye){var $e=this.doc.getAllLines(),we=this.getTabSize(),Se=this.$wrapData,Te=this.$wrapLimit,xe,ke,Ie=fe;for(ye=Math.min(ye,$e.length-1);Ie<=ye;)ke=this.getFoldLine(Ie,ke),ke?(xe=[],ke.walk(function(Ae,Me,Fe,Be){var Ne;if(Ae!=null){Ne=this.$getDisplayTokens(Ae,xe.length),Ne[0]=ve;for(var Ve=1;Ve<Ne.length;Ve++)Ne[Ve]=ge}else Ne=this.$getDisplayTokens($e[Me].substring(Be,Fe),xe.length);xe=xe.concat(Ne)}.bind(this),ke.end.row,$e[ke.end.row].length+1),Se[ke.start.row]=this.$computeWrapSplits(xe,Te,we),Ie=ke.end.row+1):(xe=this.$getDisplayTokens($e[Ie]),Se[Ie]=this.$computeWrapSplits(xe,Te,we),Ie++)};var ue=1,de=2,ve=3,ge=4,he=9,me=10,_e=11,be=12;this.$computeWrapSplits=function(fe,ye,$e){if(fe.length==0)return[];var we=[],Se=fe.length,Te=0,xe=0,ke=this.$wrapAsCode,Ie=this.$indentedSoftWrap,Ae=ye<=Math.max(2*$e,8)||Ie===!1?0:Math.floor(ye/2);function Me(){var Le=0;if(Ae===0)return Le;if(Ie)for(var De=0;De<fe.length;De++){var Je=fe[De];if(Je==me)Le+=1;else if(Je==_e)Le+=$e;else{if(Je==be)continue;break}}return ke&&Ie!==!1&&(Le+=$e),Math.min(Le,Ae)}function Fe(Le){for(var De=Le-Te,Je=Te;Je<Le;Je++){var ze=fe[Je];(ze===12||ze===2)&&(De-=1)}we.length||(Be=Me(),we.indent=Be),xe+=De,we.push(xe),Te=Le}for(var Be=0;Se-Te>ye-Be;){var Ne=Te+ye-Be;if(fe[Ne-1]>=me&&fe[Ne]>=me){Fe(Ne);continue}if(fe[Ne]==ve||fe[Ne]==ge){for(Ne;Ne!=Te-1&&fe[Ne]!=ve;Ne--);if(Ne>Te){Fe(Ne);continue}for(Ne=Te+ye,Ne;Ne<fe.length&&fe[Ne]==ge;Ne++);if(Ne==fe.length)break;Fe(Ne);continue}for(var Ve=Math.max(Ne-(ye-(ye>>2)),Te-1);Ne>Ve&&fe[Ne]<ve;)Ne--;if(ke){for(;Ne>Ve&&fe[Ne]<ve;)Ne--;for(;Ne>Ve&&fe[Ne]==he;)Ne--}else for(;Ne>Ve&&fe[Ne]<me;)Ne--;if(Ne>Ve){Fe(++Ne);continue}Ne=Te+ye,fe[Ne]==de&&Ne--,Fe(Ne-Be)}return we},this.$getDisplayTokens=function(fe,ye){var $e=[],we;ye=ye||0;for(var Se=0;Se<fe.length;Se++){var Te=fe.charCodeAt(Se);if(Te==9){we=this.getScreenTabSize($e.length+ye),$e.push(_e);for(var xe=1;xe<we;xe++)$e.push(be)}else Te==32?$e.push(me):Te>39&&Te<48||Te>57&&Te<64?$e.push(he):Te>=4352&&pe(Te)?$e.push(ue,de):$e.push(ue)}return $e},this.$getStringScreenWidth=function(fe,ye,$e){if(ye==0)return[0,0];ye==null&&(ye=1/0),$e=$e||0;var we,Se;for(Se=0;Se<fe.length&&(we=fe.charCodeAt(Se),we==9?$e+=this.getScreenTabSize($e):we>=4352&&pe(we)?$e+=2:$e+=1,!($e>ye));Se++);return[$e,Se]},this.lineWidgets=null,this.getRowLength=function(fe){var ye=1;return this.lineWidgets&&(ye+=this.lineWidgets[fe]&&this.lineWidgets[fe].rowCount||0),!this.$useWrapMode||!this.$wrapData[fe]?ye:this.$wrapData[fe].length+ye},this.getRowLineCount=function(fe){return!this.$useWrapMode||!this.$wrapData[fe]?1:this.$wrapData[fe].length+1},this.getRowWrapIndent=function(fe){if(this.$useWrapMode){var ye=this.screenToDocumentPosition(fe,Number.MAX_VALUE),$e=this.$wrapData[ye.row];return $e.length&&$e[0]<ye.column?$e.indent:0}else return 0},this.getScreenLastRowColumn=function(fe){var ye=this.screenToDocumentPosition(fe,Number.MAX_VALUE);return this.documentToScreenColumn(ye.row,ye.column)},this.getDocumentLastRowColumn=function(fe,ye){var $e=this.documentToScreenRow(fe,ye);return this.getScreenLastRowColumn($e)},this.getDocumentLastRowColumnPosition=function(fe,ye){var $e=this.documentToScreenRow(fe,ye);return this.screenToDocumentPosition($e,Number.MAX_VALUE/10)},this.getRowSplitData=function(fe){if(this.$useWrapMode)return this.$wrapData[fe]},this.getScreenTabSize=function(fe){return this.$tabSize-(fe%this.$tabSize|0)},this.screenToDocumentRow=function(fe,ye){return this.screenToDocumentPosition(fe,ye).row},this.screenToDocumentColumn=function(fe,ye){return this.screenToDocumentPosition(fe,ye).column},this.screenToDocumentPosition=function(fe,ye,$e){if(fe<0)return{row:0,column:0};var we,Se=0,Te=0,xe,ke=0,Ie=0,Ae=this.$screenRowCache,Me=this.$getRowCacheIndex(Ae,fe),Fe=Ae.length;if(Fe&&Me>=0)var ke=Ae[Me],Se=this.$docRowCache[Me],Be=fe>Ae[Fe-1];else var Be=!Fe;for(var Ne=this.getLength()-1,Ve=this.getNextFoldLine(Se),Le=Ve?Ve.start.row:1/0;ke<=fe&&(Ie=this.getRowLength(Se),!(ke+Ie>fe||Se>=Ne));)ke+=Ie,Se++,Se>Le&&(Se=Ve.end.row+1,Ve=this.getNextFoldLine(Se,Ve),Le=Ve?Ve.start.row:1/0),Be&&(this.$docRowCache.push(Se),this.$screenRowCache.push(ke));if(Ve&&Ve.start.row<=Se)we=this.getFoldDisplayLine(Ve),Se=Ve.start.row;else{if(ke+Ie<=fe||Se>Ne)return{row:Ne,column:this.getLine(Ne).length};we=this.getLine(Se),Ve=null}var De=0,Je=Math.floor(fe-ke);if(this.$useWrapMode){var ze=this.$wrapData[Se];ze&&(xe=ze[Je],Je>0&&ze.length&&(De=ze.indent,Te=ze[Je-1]||ze[ze.length-1],we=we.substring(Te)))}return $e!==void 0&&this.$bidiHandler.isBidiRow(ke+Je,Se,Je)&&(ye=this.$bidiHandler.offsetToCol($e)),Te+=this.$getStringScreenWidth(we,ye-De)[1],this.$useWrapMode&&Te>=xe&&(Te=xe-1),Ve?Ve.idxToPosition(Te):{row:Se,column:Te}},this.documentToScreenPosition=function(fe,ye){if(typeof ye>"u")var $e=this.$clipPositionToDocument(fe.row,fe.column);else $e=this.$clipPositionToDocument(fe,ye);fe=$e.row,ye=$e.column;var we=0,Se=null,Te=null;Te=this.getFoldAt(fe,ye,1),Te&&(fe=Te.start.row,ye=Te.start.column);var xe,ke=0,Ie=this.$docRowCache,Ae=this.$getRowCacheIndex(Ie,fe),Me=Ie.length;if(Me&&Ae>=0)var ke=Ie[Ae],we=this.$screenRowCache[Ae],Fe=fe>Ie[Me-1];else var Fe=!Me;for(var Be=this.getNextFoldLine(ke),Ne=Be?Be.start.row:1/0;ke<fe;){if(ke>=Ne){if(xe=Be.end.row+1,xe>fe)break;Be=this.getNextFoldLine(xe,Be),Ne=Be?Be.start.row:1/0}else xe=ke+1;we+=this.getRowLength(ke),ke=xe,Fe&&(this.$docRowCache.push(ke),this.$screenRowCache.push(we))}var Ve="";Be&&ke>=Ne?(Ve=this.getFoldDisplayLine(Be,fe,ye),Se=Be.start.row):(Ve=this.getLine(fe).substring(0,ye),Se=fe);var Le=0;if(this.$useWrapMode){var De=this.$wrapData[Se];if(De){for(var Je=0;Ve.length>=De[Je];)we++,Je++;Ve=Ve.substring(De[Je-1]||0,Ve.length),Le=Je>0?De.indent:0}}return this.lineWidgets&&this.lineWidgets[ke]&&this.lineWidgets[ke].rowsAbove&&(we+=this.lineWidgets[ke].rowsAbove),{row:we,column:Le+this.$getStringScreenWidth(Ve)[0]}},this.documentToScreenColumn=function(fe,ye){return this.documentToScreenPosition(fe,ye).column},this.documentToScreenRow=function(fe,ye){return this.documentToScreenPosition(fe,ye).row},this.getScreenLength=function(){var fe=0,ye=null;if(this.$useWrapMode)for(var Se=this.$wrapData.length,Te=0,we=0,ye=this.$foldData[we++],xe=ye?ye.start.row:1/0;Te<Se;){var ke=this.$wrapData[Te];fe+=ke?ke.length+1:1,Te++,Te>xe&&(Te=ye.end.row+1,ye=this.$foldData[we++],xe=ye?ye.start.row:1/0)}else{fe=this.getLength();for(var $e=this.$foldData,we=0;we<$e.length;we++)ye=$e[we],fe-=ye.end.row-ye.start.row}return this.lineWidgets&&(fe+=this.$getWidgetScreenLength()),fe},this.$setFontMetrics=function(fe){!this.$enableVarChar||(this.$getStringScreenWidth=function(ye,$e,we){if($e===0)return[0,0];$e||($e=1/0),we=we||0;var Se,Te;for(Te=0;Te<ye.length&&(Se=ye.charAt(Te),Se===" "?we+=this.getScreenTabSize(we):we+=fe.getCharacterWidth(Se),!(we>$e));Te++);return[we,Te]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=pe;function pe(fe){return fe<4352?!1:fe>=4352&&fe<=4447||fe>=4515&&fe<=4519||fe>=4602&&fe<=4607||fe>=9001&&fe<=9002||fe>=11904&&fe<=11929||fe>=11931&&fe<=12019||fe>=12032&&fe<=12245||fe>=12272&&fe<=12283||fe>=12288&&fe<=12350||fe>=12353&&fe<=12438||fe>=12441&&fe<=12543||fe>=12549&&fe<=12589||fe>=12593&&fe<=12686||fe>=12688&&fe<=12730||fe>=12736&&fe<=12771||fe>=12784&&fe<=12830||fe>=12832&&fe<=12871||fe>=12880&&fe<=13054||fe>=13056&&fe<=19903||fe>=19968&&fe<=42124||fe>=42128&&fe<=42182||fe>=43360&&fe<=43388||fe>=44032&&fe<=55203||fe>=55216&&fe<=55238||fe>=55243&&fe<=55291||fe>=63744&&fe<=64255||fe>=65040&&fe<=65049||fe>=65072&&fe<=65106||fe>=65108&&fe<=65126||fe>=65128&&fe<=65131||fe>=65281&&fe<=65376||fe>=65504&&fe<=65510}}.call(ce.prototype),U("./edit_session/folding").Folding.call(ce.prototype),U("./edit_session/bracket_match").BracketMatch.call(ce.prototype),ee.defineOptions(ce.prototype,"session",{wrap:{set:function(ue){if(!ue||ue=="off"?ue=!1:ue=="free"?ue=!0:ue=="printMargin"?ue=-1:typeof ue=="string"&&(ue=parseInt(ue,10)||!1),this.$wrap!=ue)if(this.$wrap=ue,!ue)this.setUseWrapMode(!1);else{var de=typeof ue=="number"?ue:null;this.setWrapLimitRange(de,de),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(ue){ue=ue=="auto"?this.$mode.type!="text":ue!="text",ue!=this.$wrapAsCode&&(this.$wrapAsCode=ue,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(ue){this.$useWorker=ue,this.$stopWorker(),ue&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(ue){ue=parseInt(ue),ue>0&&this.$tabSize!==ue&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=ue,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(ue){this.setFoldStyle(ue)},handlesSet:!0},overwrite:{set:function(ue){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(ue){this.doc.setNewLineMode(ue)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(ue){this.setMode(ue)},get:function(){return this.$modeId},handlesSet:!0}}),W.EditSession=ce}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(U,W,G){var X=U("./lib/lang"),Z=U("./lib/oop"),Q=U("./range").Range,ee=function(){this.$options={}};(function(){this.set=function(te){return Z.mixin(this.$options,te),this},this.getOptions=function(){return X.copyObject(this.$options)},this.setOptions=function(te){this.$options=te},this.find=function(te){var ne=this.$options,ae=this.$matchIterator(te,ne);if(!ae)return!1;var oe=null;return ae.forEach(function(se,le,ce,ue){return oe=new Q(se,le,ce,ue),le==ue&&ne.start&&ne.start.start&&ne.skipCurrent!=!1&&oe.isEqual(ne.start)?(oe=null,!1):!0}),oe},this.findAll=function(te){var ne=this.$options;if(!ne.needle)return[];this.$assembleRegExp(ne);var ae=ne.range,oe=ae?te.getLines(ae.start.row,ae.end.row):te.doc.getAllLines(),se=[],le=ne.re;if(ne.$isMultiLine){var ce=le.length,ue=oe.length-ce,de;e:for(var ve=le.offset||0;ve<=ue;ve++){for(var ge=0;ge<ce;ge++)if(oe[ve+ge].search(le[ge])==-1)continue e;var he=oe[ve],me=oe[ve+ce-1],_e=he.length-he.match(le[0])[0].length,be=me.match(le[ce-1])[0].length;de&&de.end.row===ve&&de.end.column>_e||(se.push(de=new Q(ve,_e,ve+ce-1,be)),ce>2&&(ve=ve+ce-2))}}else for(var pe=0;pe<oe.length;pe++)for(var fe=X.getMatchOffsets(oe[pe],le),ge=0;ge<fe.length;ge++){var ye=fe[ge];se.push(new Q(pe,ye.offset,pe,ye.offset+ye.length))}if(ae){for(var $e=ae.start.column,we=ae.end.column,pe=0,ge=se.length-1;pe<ge&&se[pe].start.column<$e&&se[pe].start.row==0;)pe++;for(var Se=ae.end.row-ae.start.row;pe<ge&&se[ge].end.column>we&&se[ge].end.row==Se;)ge--;for(se=se.slice(pe,ge+1),pe=0,ge=se.length;pe<ge;pe++)se[pe].start.row+=ae.start.row,se[pe].end.row+=ae.start.row}return se},this.replace=function(te,ne){var ae=this.$options,oe=this.$assembleRegExp(ae);if(ae.$isMultiLine)return ne;if(!!oe){var se=oe.exec(te);if(!se||se[0].length!=te.length)return null;if(ne=te.replace(oe,ne),ae.preserveCase){ne=ne.split("");for(var le=Math.min(te.length,te.length);le--;){var ce=te[le];ce&&ce.toLowerCase()!=ce?ne[le]=ne[le].toUpperCase():ne[le]=ne[le].toLowerCase()}ne=ne.join("")}return ne}},this.$assembleRegExp=function(te,ne){if(te.needle instanceof RegExp)return te.re=te.needle;var ae=te.needle;if(!te.needle)return te.re=!1;te.regExp||(ae=X.escapeRegExp(ae)),te.wholeWord&&(ae=ie(ae,te));var oe=te.caseSensitive?"gm":"gmi";if(te.$isMultiLine=!ne&&/[\n\r]/.test(ae),te.$isMultiLine)return te.re=this.$assembleMultilineRegExp(ae,oe);try{var se=new RegExp(ae,oe)}catch{se=!1}return te.re=se},this.$assembleMultilineRegExp=function(te,ne){for(var ae=te.replace(/\r\n|\r|\n/g,`$
|
||
^`).split(`
|
||
`),oe=[],se=0;se<ae.length;se++)try{oe.push(new RegExp(ae[se],ne))}catch{return!1}return oe},this.$matchIterator=function(te,ne){var ae=this.$assembleRegExp(ne);if(!ae)return!1;var oe=ne.backwards==!0,se=ne.skipCurrent!=!1,le=ne.range,ce=ne.start;ce||(ce=le?le[oe?"end":"start"]:te.selection.getRange()),ce.start&&(ce=ce[se!=oe?"end":"start"]);var ue=le?le.start.row:0,de=le?le.end.row:te.getLength()-1;if(oe)var ve=function(me){var _e=ce.row;if(!he(_e,ce.column,me)){for(_e--;_e>=ue;_e--)if(he(_e,Number.MAX_VALUE,me))return;if(ne.wrap!=!1){for(_e=de,ue=ce.row;_e>=ue;_e--)if(he(_e,Number.MAX_VALUE,me))return}}};else var ve=function(_e){var be=ce.row;if(!he(be,ce.column,_e)){for(be=be+1;be<=de;be++)if(he(be,0,_e))return;if(ne.wrap!=!1){for(be=ue,de=ce.row;be<=de;be++)if(he(be,0,_e))return}}};if(ne.$isMultiLine)var ge=ae.length,he=function(me,_e,be){var pe=oe?me-ge+1:me;if(!(pe<0||pe+ge>te.getLength())){var fe=te.getLine(pe),ye=fe.search(ae[0]);if(!(!oe&&ye<_e||ye===-1)){for(var $e=1;$e<ge;$e++)if(fe=te.getLine(pe+$e),fe.search(ae[$e])==-1)return;var we=fe.match(ae[ge-1])[0].length;if(!(oe&&we>_e)&&be(pe,ye,pe+ge-1,we))return!0}}};else if(oe)var he=function(_e,be,pe){var fe=te.getLine(_e),ye=[],$e,we=0;for(ae.lastIndex=0;$e=ae.exec(fe);){var Se=$e[0].length;if(we=$e.index,!Se){if(we>=fe.length)break;ae.lastIndex=we+=1}if($e.index+Se>be)break;ye.push($e.index,Se)}for(var Te=ye.length-1;Te>=0;Te-=2){var xe=ye[Te-1],Se=ye[Te];if(pe(_e,xe,_e,xe+Se))return!0}};else var he=function(_e,be,pe){var fe=te.getLine(_e),ye,$e;for(ae.lastIndex=be;$e=ae.exec(fe);){var we=$e[0].length;if(ye=$e.index,pe(_e,ye,_e,ye+we))return!0;if(!we&&(ae.lastIndex=ye+=1,ye>=fe.length))return!1}};return{forEach:ve}}}).call(ee.prototype);function ie(te,ne){function ae(oe){return/\w/.test(oe)||ne.regExp?"\\b":""}return ae(te[0])+te+ae(te[te.length-1])}W.Search=ee}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(U,W,G){var X=U("../lib/keys"),Z=U("../lib/useragent"),Q=X.KEY_MODS;function ee(te,ne){this.platform=ne||(Z.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(te),this.$singleCommand=!0}function ie(te,ne){ee.call(this,te,ne),this.$singleCommand=!1}ie.prototype=ee.prototype,function(){this.addCommand=function(ne){this.commands[ne.name]&&this.removeCommand(ne),this.commands[ne.name]=ne,ne.bindKey&&this._buildKeyHash(ne)},this.removeCommand=function(ne,ae){var oe=ne&&(typeof ne=="string"?ne:ne.name);ne=this.commands[oe],ae||delete this.commands[oe];var se=this.commandKeyBinding;for(var le in se){var ce=se[le];if(ce==ne)delete se[le];else if(Array.isArray(ce)){var ue=ce.indexOf(ne);ue!=-1&&(ce.splice(ue,1),ce.length==1&&(se[le]=ce[0]))}}},this.bindKey=function(ne,ae,oe){if(typeof ne=="object"&&ne&&(oe==null&&(oe=ne.position),ne=ne[this.platform]),!!ne){if(typeof ae=="function")return this.addCommand({exec:ae,bindKey:ne,name:ae.name||ne});ne.split("|").forEach(function(se){var le="";if(se.indexOf(" ")!=-1){var ce=se.split(/\s+/);se=ce.pop(),ce.forEach(function(ve){var ge=this.parseKeys(ve),he=Q[ge.hashId]+ge.key;le+=(le?" ":"")+he,this._addCommandToBinding(le,"chainKeys")},this),le+=" "}var ue=this.parseKeys(se),de=Q[ue.hashId]+ue.key;this._addCommandToBinding(le+de,ae,oe)},this)}};function te(ne){return typeof ne=="object"&&ne.bindKey&&ne.bindKey.position||(ne.isDefault?-100:0)}this._addCommandToBinding=function(ne,ae,oe){var se=this.commandKeyBinding,le;if(!ae)delete se[ne];else if(!se[ne]||this.$singleCommand)se[ne]=ae;else{Array.isArray(se[ne])?(le=se[ne].indexOf(ae))!=-1&&se[ne].splice(le,1):se[ne]=[se[ne]],typeof oe!="number"&&(oe=te(ae));var ce=se[ne];for(le=0;le<ce.length;le++){var ue=ce[le],de=te(ue);if(de>oe)break}ce.splice(le,0,ae)}},this.addCommands=function(ne){ne&&Object.keys(ne).forEach(function(ae){var oe=ne[ae];if(!!oe){if(typeof oe=="string")return this.bindKey(oe,ae);typeof oe=="function"&&(oe={exec:oe}),typeof oe=="object"&&(oe.name||(oe.name=ae),this.addCommand(oe))}},this)},this.removeCommands=function(ne){Object.keys(ne).forEach(function(ae){this.removeCommand(ne[ae])},this)},this.bindKeys=function(ne){Object.keys(ne).forEach(function(ae){this.bindKey(ae,ne[ae])},this)},this._buildKeyHash=function(ne){this.bindKey(ne.bindKey,ne)},this.parseKeys=function(ne){var ae=ne.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(de){return de}),oe=ae.pop(),se=X[oe];if(X.FUNCTION_KEYS[se])oe=X.FUNCTION_KEYS[se].toLowerCase();else if(ae.length){if(ae.length==1&&ae[0]=="shift")return{key:oe.toUpperCase(),hashId:-1}}else return{key:oe,hashId:-1};for(var le=0,ce=ae.length;ce--;){var ue=X.KEY_MODS[ae[ce]];if(ue==null)return typeof console<"u"&&console.error("invalid modifier "+ae[ce]+" in "+ne),!1;le|=ue}return{key:oe,hashId:le}},this.findKeyCommand=function(ae,oe){var se=Q[ae]+oe;return this.commandKeyBinding[se]},this.handleKeyboard=function(ne,ae,oe,se){if(!(se<0)){var le=Q[ae]+oe,ce=this.commandKeyBinding[le];return ne.$keyChain&&(ne.$keyChain+=" "+le,ce=this.commandKeyBinding[ne.$keyChain]||ce),ce&&(ce=="chainKeys"||ce[ce.length-1]=="chainKeys")?(ne.$keyChain=ne.$keyChain||le,{command:"null"}):(ne.$keyChain&&((!ae||ae==4)&&oe.length==1?ne.$keyChain=ne.$keyChain.slice(0,-le.length-1):(ae==-1||se>0)&&(ne.$keyChain="")),{command:ce})}},this.getStatusText=function(ne,ae){return ae.$keyChain||""}}.call(ee.prototype),W.HashHandler=ee,W.MultiHashHandler=ie}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(U,W,G){var X=U("../lib/oop"),Z=U("../keyboard/hash_handler").MultiHashHandler,Q=U("../lib/event_emitter").EventEmitter,ee=function(ie,te){Z.call(this,te,ie),this.byName=this.commands,this.setDefaultHandler("exec",function(ne){return ne.args?ne.command.exec(ne.editor,ne.args,ne.event,!1):ne.command.exec(ne.editor,{},ne.event,!0)})};X.inherits(ee,Z),function(){X.implement(this,Q),this.exec=function(ie,te,ne){if(Array.isArray(ie)){for(var ae=ie.length;ae--;)if(this.exec(ie[ae],te,ne))return!0;return!1}if(typeof ie=="string"&&(ie=this.commands[ie]),!ie||te&&te.$readOnly&&!ie.readOnly||this.$checkCommandState!=!1&&ie.isAvailable&&!ie.isAvailable(te))return!1;var oe={editor:te,command:ie,args:ne};return oe.returnValue=this._emit("exec",oe),this._signal("afterExec",oe),oe.returnValue!==!1},this.toggleRecording=function(ie){if(!this.$inReplay)return ie&&ie._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(te){this.macro.push([te.command,te.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(ie){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(ie);try{this.$inReplay=!0,this.macro.forEach(function(te){typeof te=="string"?this.exec(te,ie):this.exec(te[0],ie,te[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(ie){return ie.map(function(te){return typeof te[0]!="string"&&(te[0]=te[0].name),te[1]||(te=te[0]),te})}}.call(ee.prototype),W.CommandManager=ee}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(U,W,G){var X=U("../lib/lang"),Z=U("../config"),Q=U("../range").Range;function ee(te,ne){return{win:te,mac:ne}}W.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:ee("Ctrl-,","Command-,"),exec:function(te){Z.loadModule("ace/ext/settings_menu",function(ne){ne.init(te),te.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:ee("Alt-E","F4"),exec:function(te){Z.loadModule("./ext/error_marker",function(ne){ne.showErrorMarker(te,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:ee("Alt-Shift-E","Shift-F4"),exec:function(te){Z.loadModule("./ext/error_marker",function(ne){ne.showErrorMarker(te,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:ee("Ctrl-A","Command-A"),exec:function(te){te.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:ee(null,"Ctrl-L"),exec:function(te){te.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:ee("Ctrl-L","Command-L"),exec:function(te,ne){typeof ne=="number"&&!isNaN(ne)&&te.gotoLine(ne),te.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:ee("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(te){te.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:ee("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(te){te.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:ee("F2","F2"),exec:function(te){te.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:ee("Alt-F2","Alt-F2"),exec:function(te){te.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:ee(null,"Ctrl-Command-Option-0"),exec:function(te){te.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:ee(null,"Ctrl-Command-Option-0"),exec:function(te){te.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:ee("Alt-0","Command-Option-0"),exec:function(te){te.session.foldAll(),te.session.unfold(te.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:ee("Alt-Shift-0","Command-Option-Shift-0"),exec:function(te){te.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:ee("Ctrl-K","Command-G"),exec:function(te){te.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:ee("Ctrl-Shift-K","Command-Shift-G"),exec:function(te){te.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:ee("Alt-K","Ctrl-G"),exec:function(te){te.selection.isEmpty()?te.selection.selectWord():te.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:ee("Alt-Shift-K","Ctrl-Shift-G"),exec:function(te){te.selection.isEmpty()?te.selection.selectWord():te.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:ee("Ctrl-F","Command-F"),exec:function(te){Z.loadModule("ace/ext/searchbox",function(ne){ne.Search(te)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(te){te.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:ee("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(te){te.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:ee("Ctrl-Home","Command-Home|Command-Up"),exec:function(te){te.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:ee("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(te){te.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:ee("Up","Up|Ctrl-P"),exec:function(te,ne){te.navigateUp(ne.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:ee("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(te){te.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:ee("Ctrl-End","Command-End|Command-Down"),exec:function(te){te.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:ee("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(te){te.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:ee("Down","Down|Ctrl-N"),exec:function(te,ne){te.navigateDown(ne.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:ee("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(te){te.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:ee("Ctrl-Left","Option-Left"),exec:function(te){te.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:ee("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(te){te.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:ee("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(te){te.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:ee("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(te){te.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:ee("Left","Left|Ctrl-B"),exec:function(te,ne){te.navigateLeft(ne.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:ee("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(te){te.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:ee("Ctrl-Right","Option-Right"),exec:function(te){te.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:ee("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(te){te.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:ee("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(te){te.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:ee("Shift-Right","Shift-Right"),exec:function(te){te.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:ee("Right","Right|Ctrl-F"),exec:function(te,ne){te.navigateRight(ne.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(te){te.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:ee(null,"Option-PageDown"),exec:function(te){te.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:ee("PageDown","PageDown|Ctrl-V"),exec:function(te){te.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(te){te.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:ee(null,"Option-PageUp"),exec:function(te){te.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(te){te.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:ee("Ctrl-Up",null),exec:function(te){te.renderer.scrollBy(0,-2*te.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:ee("Ctrl-Down",null),exec:function(te){te.renderer.scrollBy(0,2*te.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(te){te.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(te){te.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:ee("Ctrl-Alt-E","Command-Option-E"),exec:function(te){te.commands.toggleRecording(te)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:ee("Ctrl-Shift-E","Command-Shift-E"),exec:function(te){te.commands.replay(te)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:ee("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(te){te.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:ee("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(te){te.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:ee("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(te){te.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:ee(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(te){},readOnly:!0},{name:"cut",description:"Cut",exec:function(te){var ne=te.$copyWithEmptySelection&&te.selection.isEmpty(),ae=ne?te.selection.getLineRange():te.selection.getRange();te._emit("cut",ae),ae.isEmpty()||te.session.remove(ae),te.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(te,ne){te.$handlePaste(ne)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:ee("Ctrl-D","Command-D"),exec:function(te){te.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:ee("Ctrl-Shift-D","Command-Shift-D"),exec:function(te){te.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:ee("Ctrl-Alt-S","Command-Alt-S"),exec:function(te){te.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:ee("Ctrl-/","Command-/"),exec:function(te){te.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:ee("Ctrl-Shift-/","Command-Shift-/"),exec:function(te){te.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:ee("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(te){te.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:ee("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(te){te.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:ee("Ctrl-H","Command-Option-F"),exec:function(te){Z.loadModule("ace/ext/searchbox",function(ne){ne.Search(te,!0)})}},{name:"undo",description:"Undo",bindKey:ee("Ctrl-Z","Command-Z"),exec:function(te){te.undo()}},{name:"redo",description:"Redo",bindKey:ee("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(te){te.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:ee("Alt-Shift-Up","Command-Option-Up"),exec:function(te){te.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:ee("Alt-Up","Option-Up"),exec:function(te){te.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:ee("Alt-Shift-Down","Command-Option-Down"),exec:function(te){te.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:ee("Alt-Down","Option-Down"),exec:function(te){te.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:ee("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(te){te.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:ee("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(te){te.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:ee("Shift-Delete",null),exec:function(te){if(te.selection.isEmpty())te.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:ee("Alt-Backspace","Command-Backspace"),exec:function(te){te.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:ee("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(te){te.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:ee("Ctrl-Shift-Backspace",null),exec:function(te){var ne=te.selection.getRange();ne.start.column=0,te.session.remove(ne)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:ee("Ctrl-Shift-Delete",null),exec:function(te){var ne=te.selection.getRange();ne.end.column=Number.MAX_VALUE,te.session.remove(ne)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:ee("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(te){te.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:ee("Ctrl-Delete","Alt-Delete"),exec:function(te){te.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:ee("Shift-Tab","Shift-Tab"),exec:function(te){te.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:ee("Tab","Tab"),exec:function(te){te.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:ee("Ctrl-[","Ctrl-["),exec:function(te){te.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:ee("Ctrl-]","Ctrl-]"),exec:function(te){te.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(te,ne){te.insert(ne)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(te,ne){te.insert(X.stringRepeat(ne.text||"",ne.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:ee(null,"Ctrl-O"),exec:function(te){te.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:ee("Alt-Shift-X","Ctrl-T"),exec:function(te){te.transposeLetters()},multiSelectAction:function(te){te.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:ee("Ctrl-U","Ctrl-U"),exec:function(te){te.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:ee("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(te){te.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:ee(null,null),exec:function(te){te.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:ee("Ctrl-Shift-L","Command-Shift-L"),exec:function(te){var ne=te.selection.getRange();ne.start.column=ne.end.column=0,ne.end.row++,te.selection.setRange(ne,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:ee("Ctrl+F3","F3"),exec:function(te){te.openLink()}},{name:"joinlines",description:"Join lines",bindKey:ee(null,null),exec:function(te){for(var ne=te.selection.isBackwards(),ae=ne?te.selection.getSelectionLead():te.selection.getSelectionAnchor(),oe=ne?te.selection.getSelectionAnchor():te.selection.getSelectionLead(),se=te.session.doc.getLine(ae.row).length,le=te.session.doc.getTextRange(te.selection.getRange()),ce=le.replace(/\n\s*/," ").length,ue=te.session.doc.getLine(ae.row),de=ae.row+1;de<=oe.row+1;de++){var ve=X.stringTrimLeft(X.stringTrimRight(te.session.doc.getLine(de)));ve.length!==0&&(ve=" "+ve),ue+=ve}oe.row+1<te.session.doc.getLength()-1&&(ue+=te.session.doc.getNewLineCharacter()),te.clearSelection(),te.session.doc.replace(new Q(ae.row,0,oe.row+2,0),ue),ce>0?(te.selection.moveCursorTo(ae.row,ae.column),te.selection.selectTo(ae.row,ae.column+ce)):(se=te.session.doc.getLine(ae.row).length>se?se+1:se,te.selection.moveCursorTo(ae.row,se))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:ee(null,null),exec:function(te){var ne=te.session.doc.getLength()-1,ae=te.session.doc.getLine(ne).length,oe=te.selection.rangeList.ranges,se=[];oe.length<1&&(oe=[te.selection.getRange()]);for(var le=0;le<oe.length;le++)le==oe.length-1&&(oe[le].end.row===ne&&oe[le].end.column===ae||se.push(new Q(oe[le].end.row,oe[le].end.column,ne,ae))),le===0?oe[le].start.row===0&&oe[le].start.column===0||se.push(new Q(0,0,oe[le].start.row,oe[le].start.column)):se.push(new Q(oe[le-1].end.row,oe[le-1].end.column,oe[le].start.row,oe[le].start.column));te.exitMultiSelectMode(),te.clearSelection();for(var le=0;le<se.length;le++)te.selection.addRange(se[le],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(te){te.selection.clearSelection(),te.navigateLineEnd(),te.insert(`
|
||
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(te){te.selection.clearSelection();var ne=te.getCursorPosition();te.selection.moveTo(ne.row-1,Number.MAX_VALUE),te.insert(`
|
||
`),ne.row===0&&te.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:ee("F1","F1"),exec:function(te){te.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:ee(null,null),exec:function(te){te.prompt({$type:"modes"})},readOnly:!0}];for(var ie=1;ie<9;ie++)W.commands.push({name:"foldToLevel"+ie,description:"Fold To Level "+ie,level:ie,exec:function(te){te.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],function(U,W,G){var X=this&&this.__values||function(pe){var fe=typeof Symbol=="function"&&Symbol.iterator,ye=fe&&pe[fe],$e=0;if(ye)return ye.call(pe);if(pe&&typeof pe.length=="number")return{next:function(){return pe&&$e>=pe.length&&(pe=void 0),{value:pe&&pe[$e++],done:!pe}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=U("./lib/oop"),Q=U("./lib/dom"),ee=U("./lib/lang"),ie=U("./lib/useragent"),te=U("./keyboard/textinput").TextInput,ne=U("./mouse/mouse_handler").MouseHandler,ae=U("./mouse/fold_handler").FoldHandler,oe=U("./keyboard/keybinding").KeyBinding,se=U("./edit_session").EditSession,le=U("./search").Search,ce=U("./range").Range,ue=U("./lib/event_emitter").EventEmitter,de=U("./commands/command_manager").CommandManager,ve=U("./commands/default_commands").commands,ge=U("./config"),he=U("./token_iterator").TokenIterator,me=U("./clipboard"),_e=function(pe,fe,ye){this.$toDestroy=[];var $e=pe.getContainerElement();this.container=$e,this.renderer=pe,this.id="editor"+ ++_e.$uid,this.commands=new de(ie.isMac?"mac":"win",ve),typeof document=="object"&&(this.textInput=new te(pe.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new ne(this),new ae(this)),this.keyBinding=new oe(this),this.$search=new le().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=ee.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(we,Se){Se._$emitInputEvent.schedule(31)}),this.setSession(fe||ye&&ye.session||new se("")),ge.resetOptions(this),ye&&this.setOptions(ye),ge._signal("editor",this)};_e.$uid=0,function(){Z.implement(this,ue),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=ee.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(pe){if(this.curOp){if(!pe||this.curOp.command)return;this.prevOp=this.curOp}pe||(this.previousCommand=null,pe={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:pe.command||{},args:pe.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(pe){if(this.curOp&&this.session){if(pe&&pe.returnValue===!1||!this.session)return this.curOp=null;if(pe==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var fe=this.curOp.command,ye=fe&&fe.scrollIntoView;if(ye){switch(ye){case"center-animate":ye="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var $e=this.selection.getRange(),we=this.renderer.layerConfig;($e.start.row>=we.lastRow||$e.end.row<=we.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}ye=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var Se=this.selection.toJSON();this.curOp.selectionAfter=Se,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(Se),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(pe){if(!!this.$mergeUndoDeltas){var fe=this.prevOp,ye=this.$mergeableCommands,$e=fe.command&&pe.command.name==fe.command.name;if(pe.command.name=="insertstring"){var we=pe.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),$e=$e&&this.mergeNextCommand&&(!/\s/.test(we)||/\s/.test(fe.args)),this.mergeNextCommand=!0}else $e=$e&&ye.indexOf(pe.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&($e=!1),$e?this.session.mergeUndoDeltas=!0:ye.indexOf(pe.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(pe,fe){if(pe&&typeof pe=="string"&&pe!="ace"){this.$keybindingId=pe;var ye=this;ge.loadModule(["keybinding",pe],function($e){ye.$keybindingId==pe&&ye.keyBinding.setKeyboardHandler($e&&$e.handler),fe&&fe()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(pe),fe&&fe()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(pe){if(this.session!=pe){this.curOp&&this.endOperation(),this.curOp={};var fe=this.session;if(fe){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var ye=this.session.getSelection();ye.off("changeCursor",this.$onCursorChange),ye.off("changeSelection",this.$onSelectionChange)}this.session=pe,pe?(this.$onDocumentChange=this.onDocumentChange.bind(this),pe.on("change",this.$onDocumentChange),this.renderer.setSession(pe),this.$onChangeMode=this.onChangeMode.bind(this),pe.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),pe.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),pe.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),pe.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),pe.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),pe.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=pe.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(pe)),this._signal("changeSession",{session:pe,oldSession:fe}),this.curOp=null,fe&&fe._signal("changeEditor",{oldEditor:this}),pe&&pe._signal("changeEditor",{editor:this}),pe&&!pe.destroyed&&pe.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(pe,fe){return this.session.doc.setValue(pe),fe?fe==1?this.navigateFileEnd():fe==-1&&this.navigateFileStart():this.selectAll(),pe},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(pe){this.renderer.onResize(pe)},this.setTheme=function(pe,fe){this.renderer.setTheme(pe,fe)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(pe){this.renderer.setStyle(pe)},this.unsetStyle=function(pe){this.renderer.unsetStyle(pe)},this.getFontSize=function(){return this.getOption("fontSize")||Q.computedStyle(this.container).fontSize},this.setFontSize=function(pe){this.setOption("fontSize",pe)},this.$highlightBrackets=function(){if(!this.$highlightPending){var pe=this;this.$highlightPending=!0,setTimeout(function(){pe.$highlightPending=!1;var fe=pe.session;if(!(!fe||fe.destroyed)){fe.$bracketHighlight&&(fe.$bracketHighlight.markerIds.forEach(function(Ae){fe.removeMarker(Ae)}),fe.$bracketHighlight=null);var ye=pe.getCursorPosition(),$e=pe.getKeyboardHandler(),we=$e&&$e.$getDirectionForHighlight&&$e.$getDirectionForHighlight(pe),Se=fe.getMatchingBracketRanges(ye,we);if(!Se){var Te=new he(fe,ye.row,ye.column),xe=Te.getCurrentToken();if(xe&&/\b(?:tag-open|tag-name)/.test(xe.type)){var ke=fe.getMatchingTags(ye);ke&&(Se=[ke.openTagName,ke.closeTagName])}}if(!Se&&fe.$mode.getMatching&&(Se=fe.$mode.getMatching(pe.session)),!Se){pe.getHighlightIndentGuides()&&pe.renderer.$textLayer.$highlightIndentGuide();return}var Ie="ace_bracket";Array.isArray(Se)?Se.length==1&&(Ie="ace_error_bracket"):Se=[Se],Se.length==2&&(ce.comparePoints(Se[0].end,Se[1].start)==0?Se=[ce.fromPoints(Se[0].start,Se[1].end)]:ce.comparePoints(Se[0].start,Se[1].end)==0&&(Se=[ce.fromPoints(Se[1].start,Se[0].end)])),fe.$bracketHighlight={ranges:Se,markerIds:Se.map(function(Ae){return fe.addMarker(Ae,Ie,"text")})},pe.getHighlightIndentGuides()&&pe.renderer.$textLayer.$highlightIndentGuide()}},50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(pe){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",pe))},this.onBlur=function(pe){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",pe))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(pe){var fe=this.session.$useWrapMode,ye=pe.start.row==pe.end.row?pe.end.row:1/0;this.renderer.updateLines(pe.start.row,ye,fe),this._signal("change",pe),this.$cursorChange()},this.onTokenizerUpdate=function(pe){var fe=pe.data;this.renderer.updateLines(fe.first,fe.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var pe=this.getSession(),fe;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(fe=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(fe=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(fe=!1)),pe.$highlightLineMarker&&!fe)pe.removeMarker(pe.$highlightLineMarker.id),pe.$highlightLineMarker=null;else if(!pe.$highlightLineMarker&&fe){var ye=new ce(fe.row,fe.column,fe.row,1/0);ye.id=pe.addMarker(ye,"ace_active-line","screenLine"),pe.$highlightLineMarker=ye}else fe&&(pe.$highlightLineMarker.start.row=fe.row,pe.$highlightLineMarker.end.row=fe.row,pe.$highlightLineMarker.start.column=fe.column,pe._signal("changeBackMarker"))},this.onSelectionChange=function(pe){var fe=this.session;if(fe.$selectionMarker&&fe.removeMarker(fe.$selectionMarker),fe.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var ye=this.selection.getRange(),$e=this.getSelectionStyle();fe.$selectionMarker=fe.addMarker(ye,"ace_selection",$e)}var we=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(we),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var pe=this.session,fe=this.getSelectionRange();if(!(fe.isEmpty()||fe.isMultiLine())){var ye=fe.start.column,$e=fe.end.column,we=pe.getLine(fe.start.row),Se=we.substring(ye,$e);if(!(Se.length>5e3||!/[\w\d]/.test(Se))){var Te=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Se}),xe=we.substring(ye-1,$e+1);if(!!Te.test(xe))return Te}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(pe){this.renderer.updateText(),this._emit("changeMode",pe)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var pe=this.getSelectedText(),fe=this.session.doc.getNewLineCharacter(),ye=!1;if(!pe&&this.$copyWithEmptySelection){ye=!0;for(var $e=this.selection.getAllRanges(),we=0;we<$e.length;we++){var Se=$e[we];we&&$e[we-1].start.row==Se.start.row||(pe+=this.session.getLine(Se.start.row)+fe)}}var Te={text:pe};return this._signal("copy",Te),me.lineMode=ye?Te.text:!1,Te.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(pe,fe){var ye={text:pe,event:fe};this.commands.exec("paste",this,ye)},this.$handlePaste=function(pe){typeof pe=="string"&&(pe={text:pe}),this._signal("paste",pe);var fe=pe.text,ye=fe===me.lineMode,$e=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)ye?$e.insert({row:this.selection.lead.row,column:0},fe):this.insert(fe);else if(ye)this.selection.rangeList.ranges.forEach(function(Ie){$e.insert({row:Ie.start.row,column:0},fe)});else{var we=fe.split(/\r\n|\r|\n/),Se=this.selection.rangeList.ranges,Te=we.length==2&&(!we[0]||!we[1]);if(we.length!=Se.length||Te)return this.commands.exec("insertstring",this,fe);for(var xe=Se.length;xe--;){var ke=Se[xe];ke.isEmpty()||$e.remove(ke),$e.insert(ke.start,we[xe])}}},this.execCommand=function(pe,fe){return this.commands.exec(pe,this,fe)},this.insert=function(pe,fe){var ye=this.session,$e=ye.getMode(),we=this.getCursorPosition();if(this.getBehavioursEnabled()&&!fe){var Se=$e.transformAction(ye.getState(we.row),"insertion",this,ye,pe);Se&&(pe!==Se.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),pe=Se.text)}if(pe==" "&&(pe=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&pe.indexOf(`
|
||
`)==-1){var Te=new ce.fromPoints(we,we);Te.end.column+=pe.length,this.session.remove(Te)}}else{var Te=this.getSelectionRange();we=this.session.remove(Te),this.clearSelection()}if(pe==`
|
||
`||pe==`\r
|
||
`){var Ae=ye.getLine(we.row);if(we.column>Ae.search(/\S|$/)){var xe=Ae.substr(we.column).search(/\S|$/);ye.doc.removeInLine(we.row,we.column,we.column+xe)}}this.clearSelection();var ke=we.column,Ie=ye.getState(we.row),Ae=ye.getLine(we.row),Me=$e.checkOutdent(Ie,Ae,pe);if(ye.insert(we,pe),Se&&Se.selection&&(Se.selection.length==2?this.selection.setSelectionRange(new ce(we.row,ke+Se.selection[0],we.row,ke+Se.selection[1])):this.selection.setSelectionRange(new ce(we.row+Se.selection[0],Se.selection[1],we.row+Se.selection[2],Se.selection[3]))),this.$enableAutoIndent){if(ye.getDocument().isNewLine(pe)){var Fe=$e.getNextLineIndent(Ie,Ae.slice(0,we.column),ye.getTabString());ye.insert({row:we.row+1,column:0},Fe)}Me&&$e.autoOutdent(Ie,ye,we.row)}},this.autoIndent=function(){var pe=this.session,fe=pe.getMode(),ye,$e;if(this.selection.isEmpty())ye=0,$e=pe.doc.getLength()-1;else{var we=this.getSelectionRange();ye=we.start.row,$e=we.end.row}for(var Se="",Te="",xe="",ke,Ie,Ae,Me=pe.getTabString(),Fe=ye;Fe<=$e;Fe++)Fe>0&&(Se=pe.getState(Fe-1),Te=pe.getLine(Fe-1),xe=fe.getNextLineIndent(Se,Te,Me)),ke=pe.getLine(Fe),Ie=fe.$getIndent(ke),xe!==Ie&&(Ie.length>0&&(Ae=new ce(Fe,0,Fe,Ie.length),pe.remove(Ae)),xe.length>0&&pe.insert({row:Fe,column:0},xe)),fe.autoOutdent(Se,pe,Fe)},this.onTextInput=function(pe,fe){if(!fe)return this.keyBinding.onTextInput(pe);this.startOperation({command:{name:"insertstring"}});var ye=this.applyComposition.bind(this,pe,fe);this.selection.rangeCount?this.forEachSelection(ye):ye(),this.endOperation()},this.applyComposition=function(pe,fe){if(fe.extendLeft||fe.extendRight){var ye=this.selection.getRange();ye.start.column-=fe.extendLeft,ye.end.column+=fe.extendRight,ye.start.column<0&&(ye.start.row--,ye.start.column+=this.session.getLine(ye.start.row).length+1),this.selection.setRange(ye),!pe&&!ye.isEmpty()&&this.remove()}if((pe||!this.selection.isEmpty())&&this.insert(pe,!0),fe.restoreStart||fe.restoreEnd){var ye=this.selection.getRange();ye.start.column-=fe.restoreStart,ye.end.column-=fe.restoreEnd,this.selection.setRange(ye)}},this.onCommandKey=function(pe,fe,ye){return this.keyBinding.onCommandKey(pe,fe,ye)},this.setOverwrite=function(pe){this.session.setOverwrite(pe)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(pe){this.setOption("scrollSpeed",pe)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(pe){this.setOption("dragDelay",pe)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(pe){this.setOption("selectionStyle",pe)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(pe){this.setOption("highlightActiveLine",pe)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(pe){this.setOption("highlightGutterLine",pe)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(pe){this.setOption("highlightSelectedWord",pe)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(pe){this.renderer.setAnimatedScroll(pe)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(pe){this.renderer.setShowInvisibles(pe)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(pe){this.renderer.setDisplayIndentGuides(pe)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(pe){this.renderer.setHighlightIndentGuides(pe)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(pe){this.renderer.setShowPrintMargin(pe)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(pe){this.renderer.setPrintMarginColumn(pe)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(pe){this.setOption("readOnly",pe)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(pe){this.setOption("behavioursEnabled",pe)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(pe){this.setOption("wrapBehavioursEnabled",pe)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(pe){this.setOption("showFoldWidgets",pe)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(pe){this.setOption("fadeFoldWidgets",pe)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(pe){this.selection.isEmpty()&&(pe=="left"?this.selection.selectLeft():this.selection.selectRight());var fe=this.getSelectionRange();if(this.getBehavioursEnabled()){var ye=this.session,$e=ye.getState(fe.start.row),we=ye.getMode().transformAction($e,"deletion",this,ye,fe);if(fe.end.column===0){var Se=ye.getTextRange(fe);if(Se[Se.length-1]==`
|
||
`){var Te=ye.getLine(fe.end.row);/^\s+$/.test(Te)&&(fe.end.column=Te.length)}}we&&(fe=we)}this.session.remove(fe),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var pe=this.getSelectionRange();pe.start.column==pe.end.column&&pe.start.row==pe.end.row&&(pe.end.column=0,pe.end.row++),this.session.remove(pe),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var pe=this.getCursorPosition();this.insert(`
|
||
`),this.moveCursorToPosition(pe)},this.transposeLetters=function(){if(!!this.selection.isEmpty()){var pe=this.getCursorPosition(),fe=pe.column;if(fe!==0){var ye=this.session.getLine(pe.row),$e,we;fe<ye.length?($e=ye.charAt(fe)+ye.charAt(fe-1),we=new ce(pe.row,fe-1,pe.row,fe+1)):($e=ye.charAt(fe-1)+ye.charAt(fe-2),we=new ce(pe.row,fe-2,pe.row,fe)),this.session.replace(we,$e),this.session.selection.moveToPosition(we.end)}}},this.toLowerCase=function(){var pe=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var fe=this.getSelectionRange(),ye=this.session.getTextRange(fe);this.session.replace(fe,ye.toLowerCase()),this.selection.setSelectionRange(pe)},this.toUpperCase=function(){var pe=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var fe=this.getSelectionRange(),ye=this.session.getTextRange(fe);this.session.replace(fe,ye.toUpperCase()),this.selection.setSelectionRange(pe)},this.indent=function(){var pe=this.session,fe=this.getSelectionRange();if(fe.start.row<fe.end.row){var ye=this.$getSelectedRows();pe.indentRows(ye.first,ye.last," ");return}else if(fe.start.column<fe.end.column){var $e=pe.getTextRange(fe);if(!/^\s+$/.test($e)){var ye=this.$getSelectedRows();pe.indentRows(ye.first,ye.last," ");return}}var we=pe.getLine(fe.start.row),Se=fe.start,Te=pe.getTabSize(),xe=pe.documentToScreenColumn(Se.row,Se.column);if(this.session.getUseSoftTabs())var ke=Te-xe%Te,Ie=ee.stringRepeat(" ",ke);else{for(var ke=xe%Te;we[fe.start.column-1]==" "&&ke;)fe.start.column--,ke--;this.selection.setSelectionRange(fe),Ie=" "}return this.insert(Ie)},this.blockIndent=function(){var pe=this.$getSelectedRows();this.session.indentRows(pe.first,pe.last," ")},this.blockOutdent=function(){var pe=this.session.getSelection();this.session.outdentRows(pe.getRange())},this.sortLines=function(){for(var pe=this.$getSelectedRows(),fe=this.session,ye=[],$e=pe.first;$e<=pe.last;$e++)ye.push(fe.getLine($e));ye.sort(function(Te,xe){return Te.toLowerCase()<xe.toLowerCase()?-1:Te.toLowerCase()>xe.toLowerCase()?1:0});for(var we=new ce(0,0,0,0),$e=pe.first;$e<=pe.last;$e++){var Se=fe.getLine($e);we.start.row=$e,we.end.row=$e,we.end.column=Se.length,fe.replace(we,ye[$e-pe.first])}},this.toggleCommentLines=function(){var pe=this.session.getState(this.getCursorPosition().row),fe=this.$getSelectedRows();this.session.getMode().toggleCommentLines(pe,this.session,fe.first,fe.last)},this.toggleBlockComment=function(){var pe=this.getCursorPosition(),fe=this.session.getState(pe.row),ye=this.getSelectionRange();this.session.getMode().toggleBlockComment(fe,this.session,ye,pe)},this.getNumberAt=function(pe,fe){var ye=/[\-]?[0-9]+(?:\.[0-9]+)?/g;ye.lastIndex=0;for(var $e=this.session.getLine(pe);ye.lastIndex<fe;){var we=ye.exec($e);if(we.index<=fe&&we.index+we[0].length>=fe){var Se={value:we[0],start:we.index,end:we.index+we[0].length};return Se}}return null},this.modifyNumber=function(pe){var fe=this.selection.getCursor().row,ye=this.selection.getCursor().column,$e=new ce(fe,ye-1,fe,ye),we=this.session.getTextRange($e);if(!isNaN(parseFloat(we))&&isFinite(we)){var Se=this.getNumberAt(fe,ye);if(Se){var Te=Se.value.indexOf(".")>=0?Se.start+Se.value.indexOf(".")+1:Se.end,xe=Se.start+Se.value.length-Te,ke=parseFloat(Se.value);ke*=Math.pow(10,xe),Te!==Se.end&&ye<Te?pe*=Math.pow(10,Se.end-ye-1):pe*=Math.pow(10,Se.end-ye),ke+=pe,ke/=Math.pow(10,xe);var Ie=ke.toFixed(xe),Ae=new ce(fe,Se.start,fe,Se.end);this.session.replace(Ae,Ie),this.moveCursorTo(fe,Math.max(Se.start+1,ye+Ie.length-Se.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var pe=this.selection.getCursor().row,fe=this.selection.getCursor().column;this.selection.selectWord();var ye=this.getSelectedText(),$e=this.selection.getWordRange().start.column,we=ye.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Se=fe-$e-1;Se<0&&(Se=0);var Te=0,xe=0,ke=this;ye.match(/[A-Za-z0-9_]+/)&&we.forEach(function(De,Je){xe=Te+De.length,Se>=Te&&Se<=xe&&(ye=De,ke.selection.clearSelection(),ke.moveCursorTo(pe,Te+$e),ke.selection.selectTo(pe,xe+$e)),Te=xe});for(var Ie=this.$toggleWordPairs,Ae,Me=0;Me<Ie.length;Me++)for(var Fe=Ie[Me],Be=0;Be<=1;Be++){var Ne=+!Be,Ve=ye.match(new RegExp("^\\s?_?("+ee.escapeRegExp(Fe[Be])+")\\s?$","i"));if(Ve){var Le=ye.match(new RegExp("([_]|^|\\s)("+ee.escapeRegExp(Ve[1])+")($|\\s)","g"));Le&&(Ae=ye.replace(new RegExp(ee.escapeRegExp(Fe[Be]),"i"),function(De){var Je=Fe[Ne];return De.toUpperCase()==De?Je=Je.toUpperCase():De.charAt(0).toUpperCase()==De.charAt(0)&&(Je=Je.substr(0,0)+Fe[Ne].charAt(0).toUpperCase()+Je.substr(1)),Je}),this.insert(Ae),Ae="")}}},this.findLinkAt=function(pe,fe){var ye,$e,we=this.session.getLine(pe),Se=we.split(/((?:https?|ftp):\/\/[\S]+)/),Te=fe;Te<0&&(Te=0);var xe=0,ke=0,Ie;try{for(var Ae=X(Se),Me=Ae.next();!Me.done;Me=Ae.next()){var Fe=Me.value;if(ke=xe+Fe.length,Te>=xe&&Te<=ke&&Fe.match(/((?:https?|ftp):\/\/[\S]+)/)){Ie=Fe.replace(/[\s:.,'";}\]]+$/,"");break}xe=ke}}catch(Be){ye={error:Be}}finally{try{Me&&!Me.done&&($e=Ae.return)&&$e.call(Ae)}finally{if(ye)throw ye.error}}return Ie},this.openLink=function(){var pe=this.selection.getCursor(),fe=this.findLinkAt(pe.row,pe.column);return fe&&window.open(fe,"_blank"),fe!=null},this.removeLines=function(){var pe=this.$getSelectedRows();this.session.removeFullLines(pe.first,pe.last),this.clearSelection()},this.duplicateSelection=function(){var pe=this.selection,fe=this.session,ye=pe.getRange(),$e=pe.isBackwards();if(ye.isEmpty()){var we=ye.start.row;fe.duplicateLines(we,we)}else{var Se=$e?ye.start:ye.end,Te=fe.insert(Se,fe.getTextRange(ye),!1);ye.start=Se,ye.end=Te,pe.setSelectionRange(ye,$e)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(pe,fe,ye){return this.session.moveText(pe,fe,ye)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(pe,fe){var ye,$e,we=this.selection;if(!we.inMultiSelectMode||this.inVirtualSelectionMode){var Se=we.toOrientedRange();ye=this.$getSelectedRows(Se),$e=this.session.$moveLines(ye.first,ye.last,fe?0:pe),fe&&pe==-1&&($e=0),Se.moveBy($e,0),we.fromOrientedRange(Se)}else{var Te=we.rangeList.ranges;we.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var xe=0,ke=0,Ie=Te.length,Ae=0;Ae<Ie;Ae++){var Me=Ae;Te[Ae].moveBy(xe,0),ye=this.$getSelectedRows(Te[Ae]);for(var Fe=ye.first,Be=ye.last;++Ae<Ie;){ke&&Te[Ae].moveBy(ke,0);var Ne=this.$getSelectedRows(Te[Ae]);if(fe&&Ne.first!=Be)break;if(!fe&&Ne.first>Be+1)break;Be=Ne.last}for(Ae--,xe=this.session.$moveLines(Fe,Be,fe?0:pe),fe&&pe==-1&&(Me=Ae+1);Me<=Ae;)Te[Me].moveBy(xe,0),Me++;fe||(xe=0),ke+=xe}we.fromOrientedRange(we.ranges[0]),we.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(pe){return pe=(pe||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(pe.start.row),last:this.session.getRowFoldEnd(pe.end.row)}},this.onCompositionStart=function(pe){this.renderer.showComposition(pe)},this.onCompositionUpdate=function(pe){this.renderer.setCompositionText(pe)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(pe){return pe>=this.getFirstVisibleRow()&&pe<=this.getLastVisibleRow()},this.isRowFullyVisible=function(pe){return pe>=this.renderer.getFirstFullyVisibleRow()&&pe<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(pe,fe){var ye=this.renderer,$e=this.renderer.layerConfig,we=pe*Math.floor($e.height/$e.lineHeight);fe===!0?this.selection.$moveSelection(function(){this.moveCursorBy(we,0)}):fe===!1&&(this.selection.moveCursorBy(we,0),this.selection.clearSelection());var Se=ye.scrollTop;ye.scrollBy(0,we*$e.lineHeight),fe!=null&&ye.scrollCursorIntoView(null,.5),ye.animateScrolling(Se)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(pe){this.renderer.scrollToRow(pe)},this.scrollToLine=function(pe,fe,ye,$e){this.renderer.scrollToLine(pe,fe,ye,$e)},this.centerSelection=function(){var pe=this.getSelectionRange(),fe={row:Math.floor(pe.start.row+(pe.end.row-pe.start.row)/2),column:Math.floor(pe.start.column+(pe.end.column-pe.start.column)/2)};this.renderer.alignCursor(fe,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(pe,fe){this.selection.moveCursorTo(pe,fe)},this.moveCursorToPosition=function(pe){this.selection.moveCursorToPosition(pe)},this.jumpToMatching=function(pe,fe){var ye=this.getCursorPosition(),$e=new he(this.session,ye.row,ye.column),we=$e.getCurrentToken(),Se=0;we&&we.type.indexOf("tag-name")!==-1&&(we=$e.stepBackward());var Te=we||$e.stepForward();if(!!Te){var xe,ke=!1,Ie={},Ae=ye.column-Te.start,Me,Fe={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Te.value.match(/[{}()\[\]]/g)){for(;Ae<Te.value.length&&!ke;Ae++)if(!!Fe[Te.value[Ae]])switch(Me=Fe[Te.value[Ae]]+"."+Te.type.replace("rparen","lparen"),isNaN(Ie[Me])&&(Ie[Me]=0),Te.value[Ae]){case"(":case"[":case"{":Ie[Me]++;break;case")":case"]":case"}":Ie[Me]--,Ie[Me]===-1&&(xe="bracket",ke=!0);break}}else Te.type.indexOf("tag-name")!==-1&&(isNaN(Ie[Te.value])&&(Ie[Te.value]=0),we.value==="<"&&Se>1?Ie[Te.value]++:we.value==="</"&&Ie[Te.value]--,Ie[Te.value]===-1&&(xe="tag",ke=!0));ke||(we=Te,Se++,Te=$e.stepForward(),Ae=0)}while(Te&&!ke);if(!!xe){var Be,Ne;if(xe==="bracket")Be=this.session.getBracketRange(ye),Be||(Be=new ce($e.getCurrentTokenRow(),$e.getCurrentTokenColumn()+Ae-1,$e.getCurrentTokenRow(),$e.getCurrentTokenColumn()+Ae-1),Ne=Be.start,(fe||Ne.row===ye.row&&Math.abs(Ne.column-ye.column)<2)&&(Be=this.session.getBracketRange(Ne)));else if(xe==="tag"){if(!Te||Te.type.indexOf("tag-name")===-1)return;if(Be=new ce($e.getCurrentTokenRow(),$e.getCurrentTokenColumn()-2,$e.getCurrentTokenRow(),$e.getCurrentTokenColumn()-2),Be.compare(ye.row,ye.column)===0){var Ve=this.session.getMatchingTags(ye);Ve&&(Ve.openTag.contains(ye.row,ye.column)?(Be=Ve.closeTag,Ne=Be.start):(Be=Ve.openTag,Ve.closeTag.start.row===ye.row&&Ve.closeTag.start.column===ye.column?Ne=Be.end:Ne=Be.start))}Ne=Ne||Be.start}Ne=Be&&Be.cursor||Ne,Ne&&(pe?Be&&fe?this.selection.setRange(Be):Be&&Be.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Ne.row,Ne.column):this.selection.moveTo(Ne.row,Ne.column))}}},this.gotoLine=function(pe,fe,ye){this.selection.clearSelection(),this.session.unfold({row:pe-1,column:fe||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(pe-1,fe||0),this.isRowFullyVisible(pe-1)||this.scrollToLine(pe-1,!0,ye)},this.navigateTo=function(pe,fe){this.selection.moveTo(pe,fe)},this.navigateUp=function(pe){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var fe=this.selection.anchor.getPosition();return this.moveCursorToPosition(fe)}this.selection.clearSelection(),this.selection.moveCursorBy(-pe||-1,0)},this.navigateDown=function(pe){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var fe=this.selection.anchor.getPosition();return this.moveCursorToPosition(fe)}this.selection.clearSelection(),this.selection.moveCursorBy(pe||1,0)},this.navigateLeft=function(pe){if(this.selection.isEmpty())for(pe=pe||1;pe--;)this.selection.moveCursorLeft();else{var fe=this.getSelectionRange().start;this.moveCursorToPosition(fe)}this.clearSelection()},this.navigateRight=function(pe){if(this.selection.isEmpty())for(pe=pe||1;pe--;)this.selection.moveCursorRight();else{var fe=this.getSelectionRange().end;this.moveCursorToPosition(fe)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(pe,fe){fe&&this.$search.set(fe);var ye=this.$search.find(this.session),$e=0;return ye&&(this.$tryReplace(ye,pe)&&($e=1),this.selection.setSelectionRange(ye),this.renderer.scrollSelectionIntoView(ye.start,ye.end)),$e},this.replaceAll=function(pe,fe){fe&&this.$search.set(fe);var ye=this.$search.findAll(this.session),$e=0;if(!ye.length)return $e;var we=this.getSelectionRange();this.selection.moveTo(0,0);for(var Se=ye.length-1;Se>=0;--Se)this.$tryReplace(ye[Se],pe)&&$e++;return this.selection.setSelectionRange(we),$e},this.$tryReplace=function(pe,fe){var ye=this.session.getTextRange(pe);return fe=this.$search.replace(ye,fe),fe!==null?(pe.end=this.session.replace(pe,fe),pe):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(pe,fe,ye){fe||(fe={}),typeof pe=="string"||pe instanceof RegExp?fe.needle=pe:typeof pe=="object"&&Z.mixin(fe,pe);var $e=this.selection.getRange();fe.needle==null&&(pe=this.session.getTextRange($e)||this.$search.$options.needle,pe||($e=this.session.getWordRange($e.start.row,$e.start.column),pe=this.session.getTextRange($e)),this.$search.set({needle:pe})),this.$search.set(fe),fe.start||this.$search.set({start:$e});var we=this.$search.find(this.session);if(fe.preventScroll)return we;if(we)return this.revealRange(we,ye),we;fe.backwards?$e.start=$e.end:$e.end=$e.start,this.selection.setRange($e)},this.findNext=function(pe,fe){this.find({skipCurrent:!0,backwards:!1},pe,fe)},this.findPrevious=function(pe,fe){this.find(pe,{skipCurrent:!0,backwards:!0},fe)},this.revealRange=function(pe,fe){this.session.unfold(pe),this.selection.setSelectionRange(pe);var ye=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(pe.start,pe.end,.5),fe!==!1&&this.renderer.animateScrolling(ye)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(pe){pe.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(pe){if(!!pe){var fe,ye=this,$e=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var we=this.$scrollAnchor;we.style.cssText="position:absolute",this.container.insertBefore(we,this.container.firstChild);var Se=this.on("changeSelection",function(){$e=!0}),Te=this.renderer.on("beforeRender",function(){$e&&(fe=ye.renderer.container.getBoundingClientRect())}),xe=this.renderer.on("afterRender",function(){if($e&&fe&&(ye.isFocused()||ye.searchBox&&ye.searchBox.isFocused())){var ke=ye.renderer,Ie=ke.$cursorLayer.$pixelPos,Ae=ke.layerConfig,Me=Ie.top-Ae.offset;Ie.top>=0&&Me+fe.top<0?$e=!0:Ie.top<Ae.height&&Ie.top+fe.top+Ae.lineHeight>window.innerHeight?$e=!1:$e=null,$e!=null&&(we.style.top=Me+"px",we.style.left=Ie.left+"px",we.style.height=Ae.lineHeight+"px",we.scrollIntoView($e)),$e=fe=null}});this.setAutoScrollEditorIntoView=function(ke){ke||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Se),this.renderer.off("afterRender",xe),this.renderer.off("beforeRender",Te))}}},this.$resetCursorStyle=function(){var pe=this.$cursorStyle||"ace",fe=this.renderer.$cursorLayer;!fe||(fe.setSmoothBlinking(/smooth/.test(pe)),fe.isBlinking=!this.$readOnly&&pe!="wide",Q.setCssClass(fe.element,"ace_slim-cursors",/slim/.test(pe)))},this.prompt=function(pe,fe,ye){var $e=this;ge.loadModule("./ext/prompt",function(we){we.prompt($e,pe,fe,ye)})}}.call(_e.prototype),ge.defineOptions(_e.prototype,"editor",{selectionStyle:{set:function(pe){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:pe})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(pe){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(pe){this.textInput.setReadOnly(pe),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(pe){this.textInput.setCopyWithEmptySelection(pe)},initialValue:!1},cursorStyle:{set:function(pe){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(pe){this.setAutoScrollEditorIntoView(pe)}},keyboardHandler:{set:function(pe){this.setKeyboardHandler(pe)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(pe){this.session.setValue(pe)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(pe){this.setSession(pe)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(pe){this.renderer.$gutterLayer.setShowLineNumbers(pe),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),pe&&this.$relativeLineNumbers?be.attach(this):be.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(pe){this.$showLineNumbers&&pe?be.attach(this):be.detach(this)}},placeholder:{set:function(pe){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var fe=this.session&&(this.renderer.$composition||this.getValue());if(fe&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),Q.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!fe&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),Q.addCssClass(this.container,"ace_hasPlaceholder");var ye=Q.createElement("div");ye.className="ace_placeholder",ye.textContent=this.$placeholder||"",this.renderer.placeholderNode=ye,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!fe&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var be={getText:function(pe,fe){return(Math.abs(pe.selection.lead.row-fe)||fe+1+(fe<9?"\xB7":""))+""},getWidth:function(pe,fe,ye){return Math.max(fe.toString().length,(ye.lastRow+1).toString().length,2)*ye.characterWidth},update:function(pe,fe){fe.renderer.$loop.schedule(fe.renderer.CHANGE_GUTTER)},attach:function(pe){pe.renderer.$gutterLayer.$renderer=this,pe.on("changeSelection",this.update),this.update(null,pe)},detach:function(pe){pe.renderer.$gutterLayer.$renderer==this&&(pe.renderer.$gutterLayer.$renderer=null),pe.off("changeSelection",this.update),this.update(null,pe)}};W.Editor=_e}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(U,W,G){var X=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(he){this.$session=he},this.add=function(he,me,_e){if(!this.$fromUndo&&he!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),me===!1||!this.lastDeltas){this.lastDeltas=[];var be=this.$undoStack.length;be>this.$undoDepth-1&&this.$undoStack.splice(0,be-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),he.id=this.$rev=++this.$maxRev}(he.action=="remove"||he.action=="insert")&&(this.$lastDelta=he),this.lastDeltas.push(he)}},this.addSelection=function(he,me){this.selections.push({value:he,rev:me||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(he,me){me==null&&(me=this.$rev+1);for(var _e=this.$undoStack,be=_e.length;be--;){var pe=_e[be][0];if(pe.id<=he)break;pe.id<me&&(pe.ignore=!0)}this.lastDeltas=null},this.getSelection=function(he,me){for(var _e=this.selections,be=_e.length;be--;){var pe=_e[be];if(pe.rev<he)return me&&(pe=_e[be+1]),pe}},this.getRevision=function(){return this.$rev},this.getDeltas=function(he,me){me==null&&(me=this.$rev+1);for(var _e=this.$undoStack,be=null,pe=0,fe=_e.length;fe--;){var ye=_e[fe][0];if(ye.id<me&&!be&&(be=fe+1),ye.id<=he){pe=fe+1;break}}return _e.slice(pe,be)},this.getChangedRanges=function(he,me){me==null&&(me=this.$rev+1)},this.getChangedLines=function(he,me){me==null&&(me=this.$rev+1)},this.undo=function(he,me){this.lastDeltas=null;var _e=this.$undoStack;if(!!Z(_e,_e.length)){he||(he=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var be=_e.pop(),pe=null;return be&&(pe=he.undoChanges(be,me),this.$redoStack.push(be),this.$syncRev()),this.$fromUndo=!1,pe}},this.redo=function(he,me){if(this.lastDeltas=null,he||(he=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var _e=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);ge(this.$redoStack,_e),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(fe){fe[0].id=++this.$maxRev},this)}var be=this.$redoStack.pop(),pe=null;return be&&(pe=he.redoChanges(be,me),this.$undoStack.push(be),this.$syncRev()),this.$fromUndo=!1,pe},this.$syncRev=function(){var he=this.$undoStack,me=he[he.length-1],_e=me&&me[0].id||0;this.$redoStackBaseRev=_e,this.$rev=_e},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(he){he==null&&(he=this.$rev),this.mark=he},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(he){return he?ne(he):ne(this.$undoStack)+`
|
||
---
|
||
`+ne(this.$redoStack)}}).call(X.prototype);function Z(he,me){for(var _e=me;_e--;){var be=he[_e];if(be&&!be[0].ignore){for(;_e<me-1;){var pe=se(he[_e],he[_e+1]);he[_e]=pe[0],he[_e+1]=pe[1],_e++}return!0}}}var Q=U("./range").Range,ee=Q.comparePoints;Q.comparePoints;function ie(he){return{row:he.row,column:he.column}}function te(he){return{start:ie(he.start),end:ie(he.end),action:he.action,lines:he.lines.slice()}}function ne(he){if(he=he||this,Array.isArray(he))return he.map(ne).join(`
|
||
`);var me="";return he.action?(me=he.action=="insert"?"+":"-",me+="["+he.lines+"]"):he.value&&(Array.isArray(he.value)?me=he.value.map(ae).join(`
|
||
`):me=ae(he.value)),he.start&&(me+=ae(he)),(he.id||he.rev)&&(me+=" ("+(he.id||he.rev)+")"),me}function ae(he){return he.start.row+":"+he.start.column+"=>"+he.end.row+":"+he.end.column}function oe(he,me){var _e=he.action=="insert",be=me.action=="insert";if(_e&&be)if(ee(me.start,he.end)>=0)ce(me,he,-1);else if(ee(me.start,he.start)<=0)ce(he,me,1);else return null;else if(_e&&!be)if(ee(me.start,he.end)>=0)ce(me,he,-1);else if(ee(me.end,he.start)<=0)ce(he,me,-1);else return null;else if(!_e&&be)if(ee(me.start,he.start)>=0)ce(me,he,1);else if(ee(me.start,he.start)<=0)ce(he,me,1);else return null;else if(!_e&&!be)if(ee(me.start,he.start)>=0)ce(me,he,1);else if(ee(me.end,he.start)<=0)ce(he,me,-1);else return null;return[me,he]}function se(he,me){for(var _e=he.length;_e--;)for(var be=0;be<me.length;be++)if(!oe(he[_e],me[be])){for(;_e<he.length;){for(;be--;)oe(me[be],he[_e]);be=me.length,_e++}return[he,me]}return he.selectionBefore=me.selectionBefore=he.selectionAfter=me.selectionAfter=null,[me,he]}function le(he,me){var _e=he.action=="insert",be=me.action=="insert";if(_e&&be)ee(he.start,me.start)<0?ce(me,he,1):ce(he,me,1);else if(_e&&!be)ee(he.start,me.end)>=0?ce(he,me,-1):(ee(he.start,me.start)<=0||ce(he,Q.fromPoints(me.start,he.start),-1),ce(me,he,1));else if(!_e&&be)ee(me.start,he.end)>=0?ce(me,he,-1):(ee(me.start,he.start)<=0||ce(me,Q.fromPoints(he.start,me.start),-1),ce(he,me,1));else if(!_e&&!be)if(ee(me.start,he.end)>=0)ce(me,he,-1);else if(ee(me.end,he.start)<=0)ce(he,me,-1);else{var pe,fe;return ee(he.start,me.start)<0&&(pe=he,he=de(he,me.start)),ee(he.end,me.end)>0&&(fe=de(he,me.end)),ue(me.end,he.start,he.end,-1),fe&&!pe&&(he.lines=fe.lines,he.start=fe.start,he.end=fe.end,fe=he),[me,pe,fe].filter(Boolean)}return[me,he]}function ce(he,me,_e){ue(he.start,me.start,me.end,_e),ue(he.end,me.start,me.end,_e)}function ue(he,me,_e,be){he.row==(be==1?me:_e).row&&(he.column+=be*(_e.column-me.column)),he.row+=be*(_e.row-me.row)}function de(he,me){var _e=he.lines,be=he.end;he.end=ie(me);var pe=he.end.row-he.start.row,fe=_e.splice(pe,_e.length),ye=pe?me.column:me.column-he.start.column;_e.push(fe[0].substring(0,ye)),fe[0]=fe[0].substr(ye);var $e={start:ie(me),end:be,lines:fe,action:he.action};return $e}function ve(he,me){me=te(me);for(var _e=he.length;_e--;){for(var be=he[_e],pe=0;pe<be.length;pe++){var fe=be[pe],ye=le(fe,me);me=ye[0],ye.length!=2&&(ye[2]?(be.splice(pe+1,1,ye[1],ye[2]),pe++):ye[1]||(be.splice(pe,1),pe--))}be.length||he.splice(_e,1)}return he}function ge(he,me){for(var _e=0;_e<me.length;_e++)for(var be=me[_e],pe=0;pe<be.length;pe++)ve(he,be[pe])}W.UndoManager=X}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(U,W,G){var X=U("../lib/dom"),Z=function(Q,ee){this.element=Q,this.canvasHeight=ee||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(Q){X.translate(this.element,0,-(Q.firstRowScreen*Q.lineHeight%this.canvasHeight)-Q.offset*this.$offsetCoefficient)},this.pageChanged=function(Q,ee){return Math.floor(Q.firstRowScreen*Q.lineHeight/this.canvasHeight)!==Math.floor(ee.firstRowScreen*ee.lineHeight/this.canvasHeight)},this.computeLineTop=function(Q,ee,ie){var te=ee.firstRowScreen*ee.lineHeight,ne=Math.floor(te/this.canvasHeight),ae=ie.documentToScreenRow(Q,0)*ee.lineHeight;return ae-ne*this.canvasHeight},this.computeLineHeight=function(Q,ee,ie){return ee.lineHeight*ie.getRowLineCount(Q)},this.getLength=function(){return this.cells.length},this.get=function(Q){return this.cells[Q]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(Q){if(Array.isArray(Q)){this.cells.push.apply(this.cells,Q);for(var ee=X.createFragment(this.element),ie=0;ie<Q.length;ie++)ee.appendChild(Q[ie].element);this.element.appendChild(ee)}else this.cells.push(Q),this.element.appendChild(Q.element)},this.unshift=function(Q){if(Array.isArray(Q)){this.cells.unshift.apply(this.cells,Q);for(var ee=X.createFragment(this.element),ie=0;ie<Q.length;ie++)ee.appendChild(Q[ie].element);this.element.firstChild?this.element.insertBefore(ee,this.element.firstChild):this.element.appendChild(ee)}else this.cells.unshift(Q),this.element.insertAdjacentElement("afterbegin",Q.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(Q){!Q||(Q.element.remove(),this.cellCache.push(Q))},this.createCell=function(Q,ee,ie,te){var ne=this.cellCache.pop();if(!ne){var ae=X.createElement("div");te&&te(ae),this.element.appendChild(ae),ne={element:ae,text:"",row:Q}}return ne.row=Q,ne}}).call(Z.prototype),W.Lines=Z}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(U,W,G){var X=U("../lib/dom"),Z=U("../lib/oop"),Q=U("../lib/lang"),ee=U("../lib/event_emitter").EventEmitter,ie=U("./lines").Lines,te=function(ae){this.element=X.createElement("div"),this.element.className="ace_layer ace_gutter-layer",ae.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new ie(this.element),this.$lines.$offsetCoefficient=1};(function(){Z.implement(this,ee),this.setSession=function(ae){this.session&&this.session.off("change",this.$updateAnnotations),this.session=ae,ae&&ae.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(ae,oe){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(ae,oe)},this.removeGutterDecoration=function(ae,oe){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(ae,oe)},this.setAnnotations=function(ae){this.$annotations=[];for(var oe=0;oe<ae.length;oe++){var se=ae[oe],le=se.row,ce=this.$annotations[le];ce||(ce=this.$annotations[le]={text:[]});var ue=se.text;ue=ue?Q.escapeHTML(ue):se.html||"",ce.text.indexOf(ue)===-1&&ce.text.push(ue);var de=se.type,ve=se.className;ve?ce.className=ve:de=="error"?ce.className=" ace_error":de=="warning"&&ce.className!=" ace_error"?ce.className=" ace_warning":de=="info"&&!ce.className&&(ce.className=" ace_info")}},this.$updateAnnotations=function(ae){if(!!this.$annotations.length){var oe=ae.start.row,se=ae.end.row-oe;if(se!==0)if(ae.action=="remove")this.$annotations.splice(oe,se+1,null);else{var le=new Array(se+1);le.unshift(oe,1),this.$annotations.splice.apply(this.$annotations,le)}}},this.update=function(ae){this.config=ae;var oe=this.session,se=ae.firstRow,le=Math.min(ae.lastRow+ae.gutterOffset,oe.getLength()-1);this.oldLastRow=le,this.config=ae,this.$lines.moveContainer(ae),this.$updateCursorRow();for(var ce=oe.getNextFoldLine(se),ue=ce?ce.start.row:1/0,de=null,ve=-1,ge=se;;){if(ge>ue&&(ge=ce.end.row+1,ce=oe.getNextFoldLine(ge,ce),ue=ce?ce.start.row:1/0),ge>le){for(;this.$lines.getLength()>ve+1;)this.$lines.pop();break}de=this.$lines.get(++ve),de?de.row=ge:(de=this.$lines.createCell(ge,ae,this.session,ne),this.$lines.push(de)),this.$renderCell(de,ae,ce,ge),ge++}this._signal("afterRender"),this.$updateGutterWidth(ae)},this.$updateGutterWidth=function(ae){var oe=this.session,se=oe.gutterRenderer||this.$renderer,le=oe.$firstLineNumber,ce=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||oe.$useWrapMode)&&(ce=oe.getLength()+le-1);var ue=se?se.getWidth(oe,ce,ae):ce.toString().length*ae.characterWidth,de=this.$padding||this.$computePadding();ue+=de.left+de.right,ue!==this.gutterWidth&&!isNaN(ue)&&(this.gutterWidth=ue,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",ue))},this.$updateCursorRow=function(){if(!!this.$highlightGutterLine){var ae=this.session.selection.getCursor();this.$cursorRow!==ae.row&&(this.$cursorRow=ae.row)}},this.updateLineHighlight=function(){if(!!this.$highlightGutterLine){var ae=this.session.selection.cursor.row;if(this.$cursorRow=ae,!(this.$cursorCell&&this.$cursorCell.row==ae)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var oe=this.$lines.cells;this.$cursorCell=null;for(var se=0;se<oe.length;se++){var le=oe[se];if(le.row>=this.$cursorRow){if(le.row>this.$cursorRow){var ce=this.session.getFoldLine(this.$cursorRow);if(se>0&&ce&&ce.start.row==oe[se-1].row)le=oe[se-1];else break}le.element.className="ace_gutter-active-line "+le.element.className,this.$cursorCell=le;break}}}}},this.scrollLines=function(ae){var oe=this.config;if(this.config=ae,this.$updateCursorRow(),this.$lines.pageChanged(oe,ae))return this.update(ae);this.$lines.moveContainer(ae);var se=Math.min(ae.lastRow+ae.gutterOffset,this.session.getLength()-1),le=this.oldLastRow;if(this.oldLastRow=se,!oe||le<ae.firstRow)return this.update(ae);if(se<oe.firstRow)return this.update(ae);if(oe.firstRow<ae.firstRow)for(var ce=this.session.getFoldedRowCount(oe.firstRow,ae.firstRow-1);ce>0;ce--)this.$lines.shift();if(le>se)for(var ce=this.session.getFoldedRowCount(se+1,le);ce>0;ce--)this.$lines.pop();ae.firstRow<oe.firstRow&&this.$lines.unshift(this.$renderLines(ae,ae.firstRow,oe.firstRow-1)),se>le&&this.$lines.push(this.$renderLines(ae,le+1,se)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(ae)},this.$renderLines=function(ae,oe,se){for(var le=[],ce=oe,ue=this.session.getNextFoldLine(ce),de=ue?ue.start.row:1/0;ce>de&&(ce=ue.end.row+1,ue=this.session.getNextFoldLine(ce,ue),de=ue?ue.start.row:1/0),!(ce>se);){var ve=this.$lines.createCell(ce,ae,this.session,ne);this.$renderCell(ve,ae,ue,ce),le.push(ve),ce++}return le},this.$renderCell=function(ae,oe,se,le){var ce=ae.element,ue=this.session,de=ce.childNodes[0],ve=ce.childNodes[1],ge=ue.$firstLineNumber,he=ue.$breakpoints,me=ue.$decorations,_e=ue.gutterRenderer||this.$renderer,be=this.$showFoldWidgets&&ue.foldWidgets,pe=se?se.start.row:Number.MAX_VALUE,fe="ace_gutter-cell ";if(this.$highlightGutterLine&&(le==this.$cursorRow||se&&le<this.$cursorRow&&le>=pe&&this.$cursorRow<=se.end.row)&&(fe+="ace_gutter-active-line ",this.$cursorCell!=ae&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=ae)),he[le]&&(fe+=he[le]),me[le]&&(fe+=me[le]),this.$annotations[le]&&(fe+=this.$annotations[le].className),ce.className!=fe&&(ce.className=fe),be){var ye=be[le];ye==null&&(ye=be[le]=ue.getFoldWidget(le))}if(ye){var fe="ace_fold-widget ace_"+ye;ye=="start"&&le==pe&&le<se.end.row?fe+=" ace_closed":fe+=" ace_open",ve.className!=fe&&(ve.className=fe);var $e=oe.lineHeight+"px";X.setStyle(ve.style,"height",$e),X.setStyle(ve.style,"display","inline-block")}else ve&&X.setStyle(ve.style,"display","none");var we=(_e?_e.getText(ue,le):le+ge).toString();return we!==de.data&&(de.data=we),X.setStyle(ae.element.style,"height",this.$lines.computeLineHeight(le,oe,ue)+"px"),X.setStyle(ae.element.style,"top",this.$lines.computeLineTop(le,oe,ue)+"px"),ae.text=we,ae},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(ae){this.$highlightGutterLine=ae},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(ae){this.$renderer=!ae&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(ae){ae?X.addCssClass(this.element,"ace_folding-enabled"):X.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=ae,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var ae=X.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(ae.borderLeftWidth)||0)+(parseInt(ae.paddingLeft)||0)+1,this.$padding.right=(parseInt(ae.borderRightWidth)||0)+(parseInt(ae.paddingRight)||0),this.$padding},this.getRegion=function(ae){var oe=this.$padding||this.$computePadding(),se=this.element.getBoundingClientRect();if(ae.x<oe.left+se.left)return"markers";if(this.$showFoldWidgets&&ae.x>se.right-oe.right)return"foldWidgets"}}).call(te.prototype);function ne(ae){var oe=document.createTextNode("");ae.appendChild(oe);var se=X.createElement("span");return ae.appendChild(se),ae}W.Gutter=te}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(U,W,G){var X=U("../range").Range,Z=U("../lib/dom"),Q=function(ee){this.element=Z.createElement("div"),this.element.className="ace_layer ace_marker-layer",ee.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(ie){this.$padding=ie},this.setSession=function(ie){this.session=ie},this.setMarkers=function(ie){this.markers=ie},this.elt=function(ie,te){var ne=this.i!=-1&&this.element.childNodes[this.i];ne?this.i++:(ne=document.createElement("div"),this.element.appendChild(ne),this.i=-1),ne.style.cssText=te,ne.className=ie},this.update=function(ie){if(!!ie){this.config=ie,this.i=0;var te;for(var ne in this.markers){var ae=this.markers[ne];if(!ae.range){ae.update(te,this,this.session,ie);continue}var oe=ae.range.clipRows(ie.firstRow,ie.lastRow);if(!oe.isEmpty())if(oe=oe.toScreenRange(this.session),ae.renderer){var se=this.$getTop(oe.start.row,ie),le=this.$padding+oe.start.column*ie.characterWidth;ae.renderer(te,oe,le,se,ie)}else ae.type=="fullLine"?this.drawFullLineMarker(te,oe,ae.clazz,ie):ae.type=="screenLine"?this.drawScreenLineMarker(te,oe,ae.clazz,ie):oe.isMultiLine()?ae.type=="text"?this.drawTextMarker(te,oe,ae.clazz,ie):this.drawMultiLineMarker(te,oe,ae.clazz,ie):this.drawSingleLineMarker(te,oe,ae.clazz+" ace_start ace_br15",ie)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(ie,te){return(ie-te.firstRowScreen)*te.lineHeight};function ee(ie,te,ne,ae){return(ie?1:0)|(te?2:0)|(ne?4:0)|(ae?8:0)}this.drawTextMarker=function(ie,te,ne,ae,oe){for(var se=this.session,le=te.start.row,ce=te.end.row,ue=le,de=0,ve=0,ge=se.getScreenLastRowColumn(ue),he=new X(ue,te.start.column,ue,ve);ue<=ce;ue++)he.start.row=he.end.row=ue,he.start.column=ue==le?te.start.column:se.getRowWrapIndent(ue),he.end.column=ge,de=ve,ve=ge,ge=ue+1<ce?se.getScreenLastRowColumn(ue+1):ue==ce?0:te.end.column,this.drawSingleLineMarker(ie,he,ne+(ue==le?" ace_start":"")+" ace_br"+ee(ue==le||ue==le+1&&te.start.column,de<ve,ve>ge,ue==ce),ae,ue==ce?0:1,oe)},this.drawMultiLineMarker=function(ie,te,ne,ae,oe){var se=this.$padding,le=ae.lineHeight,ce=this.$getTop(te.start.row,ae),ue=se+te.start.column*ae.characterWidth;if(oe=oe||"",this.session.$bidiHandler.isBidiRow(te.start.row)){var de=te.clone();de.end.row=de.start.row,de.end.column=this.session.getLine(de.start.row).length,this.drawBidiSingleLineMarker(ie,de,ne+" ace_br1 ace_start",ae,null,oe)}else this.elt(ne+" ace_br1 ace_start","height:"+le+"px;right:0;top:"+ce+"px;left:"+ue+"px;"+(oe||""));if(this.session.$bidiHandler.isBidiRow(te.end.row)){var de=te.clone();de.start.row=de.end.row,de.start.column=0,this.drawBidiSingleLineMarker(ie,de,ne+" ace_br12",ae,null,oe)}else{ce=this.$getTop(te.end.row,ae);var ve=te.end.column*ae.characterWidth;this.elt(ne+" ace_br12","height:"+le+"px;width:"+ve+"px;top:"+ce+"px;left:"+se+"px;"+(oe||""))}if(le=(te.end.row-te.start.row-1)*ae.lineHeight,!(le<=0)){ce=this.$getTop(te.start.row+1,ae);var ge=(te.start.column?1:0)|(te.end.column?0:8);this.elt(ne+(ge?" ace_br"+ge:""),"height:"+le+"px;right:0;top:"+ce+"px;left:"+se+"px;"+(oe||""))}},this.drawSingleLineMarker=function(ie,te,ne,ae,oe,se){if(this.session.$bidiHandler.isBidiRow(te.start.row))return this.drawBidiSingleLineMarker(ie,te,ne,ae,oe,se);var le=ae.lineHeight,ce=(te.end.column+(oe||0)-te.start.column)*ae.characterWidth,ue=this.$getTop(te.start.row,ae),de=this.$padding+te.start.column*ae.characterWidth;this.elt(ne,"height:"+le+"px;width:"+ce+"px;top:"+ue+"px;left:"+de+"px;"+(se||""))},this.drawBidiSingleLineMarker=function(ie,te,ne,ae,oe,se){var le=ae.lineHeight,ce=this.$getTop(te.start.row,ae),ue=this.$padding,de=this.session.$bidiHandler.getSelections(te.start.column,te.end.column);de.forEach(function(ve){this.elt(ne,"height:"+le+"px;width:"+ve.width+(oe||0)+"px;top:"+ce+"px;left:"+(ue+ve.left)+"px;"+(se||""))},this)},this.drawFullLineMarker=function(ie,te,ne,ae,oe){var se=this.$getTop(te.start.row,ae),le=ae.lineHeight;te.start.row!=te.end.row&&(le+=this.$getTop(te.end.row,ae)-se),this.elt(ne,"height:"+le+"px;top:"+se+"px;left:0;right:0;"+(oe||""))},this.drawScreenLineMarker=function(ie,te,ne,ae,oe){var se=this.$getTop(te.start.row,ae),le=ae.lineHeight;this.elt(ne,"height:"+le+"px;top:"+se+"px;left:0;right:0;"+(oe||""))}}).call(Q.prototype),W.Marker=Q}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(U,W,G){var X=U("../lib/oop"),Z=U("../lib/dom"),Q=U("../lib/lang"),ee=U("./lines").Lines,ie=U("../lib/event_emitter").EventEmitter,te=function(ne){this.dom=Z,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",ne.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new ee(this.element)};(function(){X.implement(this,ie),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.MAX_CHUNK_LENGTH=250,this.$updateEolChar=function(){var ne=this.session.doc,ae=ne.getNewLineCharacter()==`
|
||
`&&ne.getNewLineMode()!="windows",oe=ae?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=oe)return this.EOL_CHAR=oe,!0},this.setPadding=function(ne){this.$padding=ne,this.element.style.margin="0 "+ne+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(ne){this.$fontMetrics=ne,this.$fontMetrics.on("changeCharacterSize",function(ae){this._signal("changeCharacterSize",ae)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(ne){this.session=ne,ne&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(ne){return this.showInvisibles==ne?!1:(this.showInvisibles=ne,typeof ne=="string"?(this.showSpaces=/tab/i.test(ne),this.showTabs=/space/i.test(ne),this.showEOL=/eol/i.test(ne)):this.showSpaces=this.showTabs=this.showEOL=ne,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(ne){return this.displayIndentGuides==ne?!1:(this.displayIndentGuides=ne,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(ne){return this.$highlightIndentGuides===ne?!1:(this.$highlightIndentGuides=ne,ne)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var ne=this.session.getTabSize();this.tabSize=ne;for(var ae=this.$tabStrings=[0],oe=1;oe<ne+1;oe++)if(this.showTabs){var se=this.dom.createElement("span");se.className="ace_invisible ace_invisible_tab",se.textContent=Q.stringRepeat(this.TAB_CHAR,oe),ae.push(se)}else ae.push(this.dom.createTextNode(Q.stringRepeat(" ",oe),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var le="ace_indent-guide",ce=this.showSpaces?" ace_invisible ace_invisible_space":"",ue=this.showSpaces?Q.stringRepeat(this.SPACE_CHAR,this.tabSize):Q.stringRepeat(" ",this.tabSize),de=this.showTabs?" ace_invisible ace_invisible_tab":"",ve=this.showTabs?Q.stringRepeat(this.TAB_CHAR,this.tabSize):ue,se=this.dom.createElement("span");se.className=le+ce,se.textContent=ue,this.$tabStrings[" "]=se;var se=this.dom.createElement("span");se.className=le+de,se.textContent=ve,this.$tabStrings[" "]=se}},this.updateLines=function(ne,ae,oe){if(this.config.lastRow!=ne.lastRow||this.config.firstRow!=ne.firstRow)return this.update(ne);this.config=ne;for(var se=Math.max(ae,ne.firstRow),le=Math.min(oe,ne.lastRow),ce=this.element.childNodes,ue=0,ve=ne.firstRow;ve<se;ve++){var ge=this.session.getFoldLine(ve);if(ge)if(ge.containsRow(se)){se=ge.start.row;break}else ve=ge.end.row;ue++}for(var de=!1,ve=se,ge=this.session.getNextFoldLine(ve),he=ge?ge.start.row:1/0;ve>he&&(ve=ge.end.row+1,ge=this.session.getNextFoldLine(ve,ge),he=ge?ge.start.row:1/0),!(ve>le);){var me=ce[ue++];if(me){this.dom.removeChildren(me),this.$renderLine(me,ve,ve==he?ge:!1),de&&(me.style.top=this.$lines.computeLineTop(ve,ne,this.session)+"px");var _e=ne.lineHeight*this.session.getRowLength(ve)+"px";me.style.height!=_e&&(de=!0,me.style.height=_e)}ve++}if(de)for(;ue<this.$lines.cells.length;){var be=this.$lines.cells[ue++];be.element.style.top=this.$lines.computeLineTop(be.row,ne,this.session)+"px"}},this.scrollLines=function(ne){var ae=this.config;if(this.config=ne,this.$lines.pageChanged(ae,ne))return this.update(ne);this.$lines.moveContainer(ne);var oe=ne.lastRow,se=ae?ae.lastRow:-1;if(!ae||se<ne.firstRow)return this.update(ne);if(oe<ae.firstRow)return this.update(ne);if(!ae||ae.lastRow<ne.firstRow)return this.update(ne);if(ne.lastRow<ae.firstRow)return this.update(ne);if(ae.firstRow<ne.firstRow)for(var le=this.session.getFoldedRowCount(ae.firstRow,ne.firstRow-1);le>0;le--)this.$lines.shift();if(ae.lastRow>ne.lastRow)for(var le=this.session.getFoldedRowCount(ne.lastRow+1,ae.lastRow);le>0;le--)this.$lines.pop();ne.firstRow<ae.firstRow&&this.$lines.unshift(this.$renderLinesFragment(ne,ne.firstRow,ae.firstRow-1)),ne.lastRow>ae.lastRow&&this.$lines.push(this.$renderLinesFragment(ne,ae.lastRow+1,ne.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(ne,ae,oe){for(var se=[],le=ae,ce=this.session.getNextFoldLine(le),ue=ce?ce.start.row:1/0;le>ue&&(le=ce.end.row+1,ce=this.session.getNextFoldLine(le,ce),ue=ce?ce.start.row:1/0),!(le>oe);){var de=this.$lines.createCell(le,ne,this.session),ve=de.element;this.dom.removeChildren(ve),Z.setStyle(ve.style,"height",this.$lines.computeLineHeight(le,ne,this.session)+"px"),Z.setStyle(ve.style,"top",this.$lines.computeLineTop(le,ne,this.session)+"px"),this.$renderLine(ve,le,le==ue?ce:!1),this.$useLineGroups()?ve.className="ace_line_group":ve.className="ace_line",se.push(de),le++}return se},this.update=function(ne){this.$lines.moveContainer(ne),this.config=ne;for(var ae=ne.firstRow,oe=ne.lastRow,se=this.$lines;se.getLength();)se.pop();se.push(this.$renderLinesFragment(ne,ae,oe))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderTokenInChunks=function(ne,ae,oe,se){for(var le,ce=0;ce<se.length;ce+=this.MAX_CHUNK_LENGTH){var ue=se.substring(ce,ce+this.MAX_CHUNK_LENGTH),de={type:oe.type,value:ue};le=this.$renderToken(ne,ae+ce,de,ue)}return le},this.$renderToken=function(ne,ae,oe,se){for(var le=this,ce=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,ue=this.dom.createFragment(this.element),de,ve=0;de=ce.exec(se);){var ge=de[1],he=de[2],me=de[3],_e=de[4],be=de[5];if(!(!le.showSpaces&&he)){var pe=ve!=de.index?se.slice(ve,de.index):"";if(ve=de.index+de[0].length,pe&&ue.appendChild(this.dom.createTextNode(pe,this.element)),ge){var fe=le.session.getScreenTabSize(ae+de.index);ue.appendChild(le.$tabStrings[fe].cloneNode(!0)),ae+=fe-1}else if(he)if(le.showSpaces){var ye=this.dom.createElement("span");ye.className="ace_invisible ace_invisible_space",ye.textContent=Q.stringRepeat(le.SPACE_CHAR,he.length),ue.appendChild(ye)}else ue.appendChild(this.com.createTextNode(he,this.element));else if(me){var ye=this.dom.createElement("span");ye.className="ace_invisible ace_invisible_space ace_invalid",ye.textContent=Q.stringRepeat(le.SPACE_CHAR,me.length),ue.appendChild(ye)}else if(_e){ae+=1;var ye=this.dom.createElement("span");ye.style.width=le.config.characterWidth*2+"px",ye.className=le.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",ye.textContent=le.showSpaces?le.SPACE_CHAR:_e,ue.appendChild(ye)}else if(be){ae+=1;var ye=this.dom.createElement("span");ye.style.width=le.config.characterWidth*2+"px",ye.className="ace_cjk",ye.textContent=be,ue.appendChild(ye)}}}ue.appendChild(this.dom.createTextNode(ve?se.slice(ve):se,this.element));var ye=this.dom.createElement("span");if(!this.$textToken[oe.type]){var $e="ace_"+oe.type.replace(/\./g," ace_");oe.type=="fold"&&(ye.style.width=oe.value.length*this.config.characterWidth+"px"),ye.className=$e}return ye.appendChild(ue),ne.appendChild(ye),ae+se.length},this.renderIndentGuide=function(ne,ae,oe){var se=ae.search(this.$indentGuideRe);if(se<=0||se>=oe)return ae;if(ae[0]==" "){se-=se%this.tabSize;for(var le=se/this.tabSize,ce=0;ce<le;ce++)ne.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),ae.substr(se)}else if(ae[0]==" "){for(var ce=0;ce<se;ce++)ne.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),ae.substr(se)}return this.$highlightIndentGuide(),ae},this.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var ne=this.session.doc.$lines;if(!!ne){var ae=this.session.selection.getCursor(),oe=/^\s*/.exec(this.session.doc.getLine(ae.row))[0].length,se=Math.floor(oe/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:se,start:ae.row};var le=this.session.$bracketHighlight;if(le){for(var ce=this.session.$bracketHighlight.ranges,ue=0;ue<ce.length;ue++)if(ae.row!==ce[ue].start.row){this.$highlightIndentGuideMarker.end=ce[ue].start.row,ae.row>ce[ue].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&ne[ae.row]!==""&&ae.column===ne[ae.row].length){this.$highlightIndentGuideMarker.dir=1;for(var ue=ae.row+1;ue<ne.length;ue++){var de=ne[ue],ve=/^\s*/.exec(de)[0].length;if(de!==""&&(this.$highlightIndentGuideMarker.end=ue,ve<=oe))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var ne=this.$lines.cells,ae=0;ae<ne.length;ae++){var oe=ne[ae],se=oe.element.childNodes;if(se.length>0){for(var le=0;le<se.length;le++)if(se[le].classList&&se[le].classList.contains("ace_indent-guide-active")){se[le].classList.remove("ace_indent-guide-active");break}}}},this.$setIndentGuideActive=function(ne,ae){var oe=this.session.doc.getLine(ne.row);if(oe!==""){var se=ne.element.childNodes;if(se){var le=se[ae-1];le&&le.classList&&le.classList.contains("ace_indent-guide")&&le.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(!!this.$lines){var ne=this.$lines.cells;this.$clearActiveIndentGuide();var ae=this.$highlightIndentGuideMarker.indentLevel;if(ae!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var oe=0;oe<ne.length;oe++){var se=ne[oe];if(this.$highlightIndentGuideMarker.end&&se.row>=this.$highlightIndentGuideMarker.start+1){if(se.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(se,ae)}}else for(var oe=ne.length-1;oe>=0;oe--){var se=ne[oe];if(this.$highlightIndentGuideMarker.end&&se.row<this.$highlightIndentGuideMarker.start){if(se.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(se,ae)}}}},this.$createLineElement=function(ne){var ae=this.dom.createElement("div");return ae.className="ace_line",ae.style.height=this.config.lineHeight+"px",ae},this.$renderWrappedLine=function(ne,ae,oe){var se=0,le=0,ce=oe[0],ue=0,de=this.$createLineElement();ne.appendChild(de);for(var ve=0;ve<ae.length;ve++){var ge=ae[ve],he=ge.value;if(ve==0&&this.displayIndentGuides){if(se=he.length,he=this.renderIndentGuide(de,he,ce),!he)continue;se-=he.length}if(se+he.length<ce)ue=this.$renderTokenInChunks(de,ue,ge,he),se+=he.length;else{for(;se+he.length>=ce;)ue=this.$renderTokenInChunks(de,ue,ge,he.substring(0,ce-se)),he=he.substring(ce-se),se=ce,de=this.$createLineElement(),ne.appendChild(de),de.appendChild(this.dom.createTextNode(Q.stringRepeat("\xA0",oe.indent),this.element)),le++,ue=0,ce=oe[le]||Number.MAX_VALUE;he.length!=0&&(se+=he.length,ue=this.$renderTokenInChunks(de,ue,ge,he))}}oe[oe.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(de,ue,null,"",!0)},this.$renderSimpleLine=function(ne,ae){for(var oe=0,se=0;se<ae.length;se++){var le=ae[se],ce=le.value;if(!(se==0&&this.displayIndentGuides&&(ce=this.renderIndentGuide(ne,ce),!ce))){if(oe+ce.length>this.MAX_LINE_LENGTH){this.$renderOverflowMessage(ne,oe,le,ce);return}oe=this.$renderTokenInChunks(ne,oe,le,ce)}}},this.$renderOverflowMessage=function(ne,ae,oe,se,le){oe&&this.$renderTokenInChunks(ne,ae,oe,se.slice(0,this.MAX_LINE_LENGTH-ae));var ce=this.dom.createElement("span");ce.className="ace_inline_button ace_keyword ace_toggle_wrap",ce.textContent=le?"<hide>":"<click to see more...>",ne.appendChild(ce)},this.$renderLine=function(ne,ae,oe){if(!oe&&oe!=!1&&(oe=this.session.getFoldLine(ae)),oe)var se=this.$getFoldLineTokens(ae,oe);else var se=this.session.getTokens(ae);var le=ne;if(se.length){var ce=this.session.getRowSplitData(ae);if(ce&&ce.length){this.$renderWrappedLine(ne,se,ce);var le=ne.lastChild}else{var le=ne;this.$useLineGroups()&&(le=this.$createLineElement(),ne.appendChild(le)),this.$renderSimpleLine(le,se)}}else this.$useLineGroups()&&(le=this.$createLineElement(),ne.appendChild(le));if(this.showEOL&&le){oe&&(ae=oe.end.row);var ue=this.dom.createElement("span");ue.className="ace_invisible ace_invisible_eol",ue.textContent=ae==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,le.appendChild(ue)}},this.$getFoldLineTokens=function(ne,ae){var oe=this.session,se=[];function le(ue,de,ve){for(var ge=0,he=0;he+ue[ge].value.length<de;)if(he+=ue[ge].value.length,ge++,ge==ue.length)return;if(he!=de){var me=ue[ge].value.substring(de-he);me.length>ve-de&&(me=me.substring(0,ve-de)),se.push({type:ue[ge].type,value:me}),he=de+me.length,ge+=1}for(;he<ve&&ge<ue.length;){var me=ue[ge].value;me.length+he>ve?se.push({type:ue[ge].type,value:me.substring(0,ve-he)}):se.push(ue[ge]),he+=me.length,ge+=1}}var ce=oe.getTokens(ne);return ae.walk(function(ue,de,ve,ge,he){ue!=null?se.push({type:"fold",value:ue}):(he&&(ce=oe.getTokens(de)),ce.length&&le(ce,ge,ve))},ae.end.row,this.session.getLine(ae.end.row).length),se},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(te.prototype),W.Text=te}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(U,W,G){var X=U("../lib/dom"),Z=function(Q){this.element=X.createElement("div"),this.element.className="ace_layer ace_cursor-layer",Q.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),X.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(Q){for(var ee=this.cursors,ie=ee.length;ie--;)X.setStyle(ee[ie].style,"opacity",Q?"":"0")},this.$startCssAnimation=function(){for(var Q=this.cursors,ee=Q.length;ee--;)Q[ee].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&X.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,X.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(Q){this.$padding=Q},this.setSession=function(Q){this.session=Q},this.setBlinking=function(Q){Q!=this.isBlinking&&(this.isBlinking=Q,this.restartTimer())},this.setBlinkInterval=function(Q){Q!=this.blinkInterval&&(this.blinkInterval=Q,this.restartTimer())},this.setSmoothBlinking=function(Q){Q!=this.smoothBlinking&&(this.smoothBlinking=Q,X.setCssClass(this.element,"ace_smooth-blinking",Q),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var Q=X.createElement("div");return Q.className="ace_cursor",this.element.appendChild(Q),this.cursors.push(Q),Q},this.removeCursor=function(){if(this.cursors.length>1){var Q=this.cursors.pop();return Q.parentNode.removeChild(Q),Q}},this.hideCursor=function(){this.isVisible=!1,X.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,X.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var Q=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,X.removeCssClass(this.element,"ace_smooth-blinking")),Q(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&X.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),X.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var ee=function(){this.timeoutId=setTimeout(function(){Q(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){Q(!0),ee()},this.blinkInterval),ee()}},this.getPixelPosition=function(Q,ee){if(!this.config||!this.session)return{left:0,top:0};Q||(Q=this.session.selection.getCursor());var ie=this.session.documentToScreenPosition(Q),te=this.$padding+(this.session.$bidiHandler.isBidiRow(ie.row,Q.row)?this.session.$bidiHandler.getPosLeft(ie.column):ie.column*this.config.characterWidth),ne=(ie.row-(ee?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:te,top:ne}},this.isCursorInView=function(Q,ee){return Q.top>=0&&Q.top<ee.maxHeight},this.update=function(Q){this.config=Q;var ee=this.session.$selectionMarkers,ie=0,te=0;(ee===void 0||ee.length===0)&&(ee=[{cursor:null}]);for(var ie=0,ne=ee.length;ie<ne;ie++){var ae=this.getPixelPosition(ee[ie].cursor,!0);if(!((ae.top>Q.height+Q.offset||ae.top<0)&&ie>1)){var oe=this.cursors[te++]||this.addCursor(),se=oe.style;this.drawCursor?this.drawCursor(oe,ae,Q,ee[ie],this.session):this.isCursorInView(ae,Q)?(X.setStyle(se,"display","block"),X.translate(oe,ae.left,ae.top),X.setStyle(se,"width",Math.round(Q.characterWidth)+"px"),X.setStyle(se,"height",Q.lineHeight+"px")):X.setStyle(se,"display","none")}}for(;this.cursors.length>te;)this.removeCursor();var le=this.session.getOverwrite();this.$setOverwrite(le),this.$pixelPos=ae,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(Q){Q!=this.overwrite&&(this.overwrite=Q,Q?X.addCssClass(this.element,"ace_overwrite-cursors"):X.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(Z.prototype),W.Cursor=Z}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/dom"),Q=U("./lib/event"),ee=U("./lib/event_emitter").EventEmitter,ie=32768,te=function(oe){this.element=Z.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=Z.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),oe.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Q.addListener(this.element,"scroll",this.onScroll.bind(this)),Q.addListener(this.element,"mousedown",Q.preventDefault)};(function(){X.implement(this,ee),this.setVisible=function(oe){this.element.style.display=oe?"":"none",this.isVisible=oe,this.coeff=1}}).call(te.prototype);var ne=function(oe,se){te.call(this,oe),this.scrollTop=0,this.scrollHeight=0,se.$scrollbarWidth=this.width=Z.scrollbarWidth(oe.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};X.inherits(ne,te),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var oe=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-oe)/(this.coeff-oe)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(oe){this.element.style.height=oe+"px"},this.setInnerHeight=this.setScrollHeight=function(oe){this.scrollHeight=oe,oe>ie?(this.coeff=ie/oe,oe=ie):this.coeff!=1&&(this.coeff=1),this.inner.style.height=oe+"px"},this.setScrollTop=function(oe){this.scrollTop!=oe&&(this.skipEvent=!0,this.scrollTop=oe,this.element.scrollTop=oe*this.coeff)}}.call(ne.prototype);var ae=function(oe,se){te.call(this,oe),this.scrollLeft=0,this.height=se.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};X.inherits(ae,te),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(oe){this.element.style.width=oe+"px"},this.setInnerWidth=function(oe){this.inner.style.width=oe+"px"},this.setScrollWidth=function(oe){this.inner.style.width=oe+"px"},this.setScrollLeft=function(oe){this.scrollLeft!=oe&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=oe)}}.call(ae.prototype),W.ScrollBar=ne,W.ScrollBarV=ne,W.ScrollBarH=ae,W.VScrollBar=ne,W.HScrollBar=ae}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/dom"),Q=U("./lib/event"),ee=U("./lib/event_emitter").EventEmitter;Z.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
||
position: absolute;
|
||
background: rgba(128, 128, 128, 0.6);
|
||
-moz-box-sizing: border-box;
|
||
box-sizing: border-box;
|
||
border: 1px solid #bbb;
|
||
border-radius: 2px;
|
||
z-index: 8;
|
||
}
|
||
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
||
position: absolute;
|
||
z-index: 6;
|
||
background: none;
|
||
overflow: hidden!important;
|
||
}
|
||
.ace_editor>.ace_sb-v {
|
||
z-index: 6;
|
||
right: 0;
|
||
top: 0;
|
||
width: 12px;
|
||
}
|
||
.ace_editor>.ace_sb-v div {
|
||
z-index: 8;
|
||
right: 0;
|
||
width: 100%;
|
||
}
|
||
.ace_editor>.ace_sb-h {
|
||
bottom: 0;
|
||
left: 0;
|
||
height: 12px;
|
||
}
|
||
.ace_editor>.ace_sb-h div {
|
||
bottom: 0;
|
||
height: 100%;
|
||
}
|
||
.ace_editor>.ace_sb_grabbed {
|
||
z-index: 8;
|
||
background: #000;
|
||
}`,"ace_scrollbar.css",!1);var ie=function(ae){this.element=Z.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=Z.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,ae.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Q.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){X.implement(this,ee),this.setVisible=function(ae){this.element.style.display=ae?"":"none",this.isVisible=ae,this.coeff=1}}).call(ie.prototype);var te=function(ae,oe){ie.call(this,ae),this.scrollTop=0,this.scrollHeight=0,this.parent=ae,this.width=this.VScrollWidth,this.renderer=oe,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};X.inherits(te,ie),function(){this.classSuffix="-v",X.implement(this,ee),this.onMouseDown=function(ae,oe){if(ae==="mousedown"&&!(Q.getButton(oe)!==0||oe.detail===2)){if(oe.target===this.inner){var se=this,le=oe.clientY,ce=function(_e){le=_e.clientY},ue=function(){clearInterval(he)},de=oe.clientY,ve=this.thumbTop,ge=function(){if(le!==void 0){var _e=se.scrollTopFromThumbTop(ve+le-de);_e!==se.scrollTop&&se._emit("scroll",{data:_e})}};Q.capture(this.inner,ce,ue);var he=setInterval(ge,20);return Q.preventDefault(oe)}var me=oe.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(me)}),Q.preventDefault(oe)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(ae){var oe=ae*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return oe=oe>>0,oe<0?oe=0:oe>this.pageHeight-this.viewHeight&&(oe=this.pageHeight-this.viewHeight),oe},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(ae){this.height=Math.max(0,ae),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(ae,oe){this.pageHeight===ae&&!oe||(this.pageHeight=ae,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(ae){this.scrollTop=ae,ae<0&&(ae=0),this.thumbTop=ae*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(te.prototype);var ne=function(ae,oe){ie.call(this,ae),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=oe};X.inherits(ne,ie),function(){this.classSuffix="-h",X.implement(this,ee),this.onMouseDown=function(ae,oe){if(ae==="mousedown"&&!(Q.getButton(oe)!==0||oe.detail===2)){if(oe.target===this.inner){var se=this,le=oe.clientX,ce=function(_e){le=_e.clientX},ue=function(){clearInterval(he)},de=oe.clientX,ve=this.thumbLeft,ge=function(){if(le!==void 0){var _e=se.scrollLeftFromThumbLeft(ve+le-de);_e!==se.scrollLeft&&se._emit("scroll",{data:_e})}};Q.capture(this.inner,ce,ue);var he=setInterval(ge,20);return Q.preventDefault(oe)}var me=oe.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(me)}),Q.preventDefault(oe)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(ae){var oe=ae*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return oe=oe>>0,oe<0?oe=0:oe>this.pageWidth-this.viewWidth&&(oe=this.pageWidth-this.viewWidth),oe},this.setWidth=function(ae){this.width=Math.max(0,ae),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(ae,oe){this.pageWidth===ae&&!oe||(this.pageWidth=ae,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(ae){this.scrollLeft=ae,ae<0&&(ae=0),this.thumbLeft=ae*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(ne.prototype),W.ScrollBar=te,W.ScrollBarV=te,W.ScrollBarH=ne,W.VScrollBar=te,W.HScrollBar=ne}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(U,W,G){var X=U("./lib/event"),Z=function(Q,ee){this.onRender=Q,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=ee||window;var ie=this;this._flush=function(te){ie.pending=!1;var ne=ie.changes;if(ne&&(X.blockIdle(100),ie.changes=0,ie.onRender(ne)),ie.changes){if(ie.$recursionLimit--<0)return;ie.schedule()}else ie.$recursionLimit=2}};(function(){this.schedule=function(Q){this.changes=this.changes|Q,this.changes&&!this.pending&&(X.nextFrame(this._flush),this.pending=!0)},this.clear=function(Q){var ee=this.changes;return this.changes=0,ee}}).call(Z.prototype),W.RenderLoop=Z}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(U,W,G){var X=U("../lib/oop"),Z=U("../lib/dom"),Q=U("../lib/lang"),ee=U("../lib/event"),ie=U("../lib/useragent"),te=U("../lib/event_emitter").EventEmitter,ne=250,ae=typeof ResizeObserver=="function",oe=200,se=W.FontMetrics=function(le,ce){this.charCount=ce||ne,this.el=Z.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=Z.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=Z.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),le.appendChild(this.el),this.$measureNode.textContent=Q.stringRepeat("X",this.charCount),this.$characterSize={width:0,height:0},ae?this.$addObserver():this.checkForSizeChanges()};(function(){X.implement(this,te),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(le,ce){le.width=le.height="auto",le.left=le.top="0px",le.visibility="hidden",le.position="absolute",le.whiteSpace="pre",ie.isIE<8?le["font-family"]="inherit":le.font="inherit",le.overflow=ce?"hidden":"visible"},this.checkForSizeChanges=function(le){if(le===void 0&&(le=this.$measureSizes()),le&&(this.$characterSize.width!==le.width||this.$characterSize.height!==le.height)){this.$measureNode.style.fontWeight="bold";var ce=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=le,this.charSizes=Object.create(null),this.allowBoldFonts=ce&&ce.width===le.width&&ce.height===le.height,this._emit("changeCharacterSize",{data:le})}},this.$addObserver=function(){var le=this;this.$observer=new window.ResizeObserver(function(ce){le.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var le=this;return this.$pollSizeChangesTimer=ee.onIdle(function ce(){le.checkForSizeChanges(),ee.onIdle(ce,500)},500)},this.setPolling=function(le){le?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(le){le=le||this.$measureNode;var ce=le.getBoundingClientRect(),ue={height:ce.height,width:ce.width/this.charCount};return ue.width===0||ue.height===0?null:ue},this.$measureCharWidth=function(le){this.$main.textContent=Q.stringRepeat(le,this.charCount);var ce=this.$main.getBoundingClientRect();return ce.width/this.charCount},this.getCharacterWidth=function(le){var ce=this.charSizes[le];return ce===void 0&&(ce=this.charSizes[le]=this.$measureCharWidth(le)/this.$characterSize.width),ce},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function le(ce){return!ce||!ce.parentElement?1:(window.getComputedStyle(ce).zoom||1)*le(ce.parentElement)},this.$initTransformMeasureNodes=function(){var le=function(ce,ue){return["div",{style:"position: absolute;top:"+ce+"px;left:"+ue+"px;"}]};this.els=Z.buildDom([le(0,0),le(oe,0),le(0,oe),le(oe,oe)],this.el)},this.transformCoordinates=function(le,ce){if(le){var ue=this.$getZoom(this.el);le=he(1/ue,le)}function de(Ae,Me,Fe){var Be=Ae[1]*Me[0]-Ae[0]*Me[1];return[(-Me[1]*Fe[0]+Me[0]*Fe[1])/Be,(+Ae[1]*Fe[0]-Ae[0]*Fe[1])/Be]}function ve(Ae,Me){return[Ae[0]-Me[0],Ae[1]-Me[1]]}function ge(Ae,Me){return[Ae[0]+Me[0],Ae[1]+Me[1]]}function he(Ae,Me){return[Ae*Me[0],Ae*Me[1]]}this.els||this.$initTransformMeasureNodes();function me(Ae){var Me=Ae.getBoundingClientRect();return[Me.left,Me.top]}var _e=me(this.els[0]),be=me(this.els[1]),pe=me(this.els[2]),fe=me(this.els[3]),ye=de(ve(fe,be),ve(fe,pe),ve(ge(be,pe),ge(fe,_e))),$e=he(1+ye[0],ve(be,_e)),we=he(1+ye[1],ve(pe,_e));if(ce){var Se=ce,Te=ye[0]*Se[0]/oe+ye[1]*Se[1]/oe+1,xe=ge(he(Se[0],$e),he(Se[1],we));return ge(he(1/Te/oe,xe),_e)}var ke=ve(le,_e),Ie=de(ve($e,he(ye[0],ke)),ve(we,he(ye[1],ke)),ke);return he(oe,Ie)}}).call(se.prototype)}),ace.define("ace/css/editor.css",["require","exports","module"],function(U,W,G){G.exports=`/*
|
||
styles = []
|
||
for (var i = 1; i < 16; i++) {
|
||
styles.push(".ace_br" + i + "{" + (
|
||
["top-left", "top-right", "bottom-right", "bottom-left"]
|
||
).map(function(x, j) {
|
||
return i & (1<<j) ? "border-" + x + "-radius: 3px;" : ""
|
||
}).filter(Boolean).join(" ") + "}")
|
||
}
|
||
styles.join("\\n")
|
||
*/
|
||
.ace_br1 {border-top-left-radius : 3px;}
|
||
.ace_br2 {border-top-right-radius : 3px;}
|
||
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
||
.ace_br4 {border-bottom-right-radius: 3px;}
|
||
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br8 {border-bottom-left-radius : 3px;}
|
||
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
||
|
||
.ace_editor {
|
||
position: relative;
|
||
overflow: hidden;
|
||
padding: 0;
|
||
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||
direction: ltr;
|
||
text-align: left;
|
||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
}
|
||
|
||
.ace_scroller {
|
||
position: absolute;
|
||
overflow: hidden;
|
||
top: 0;
|
||
bottom: 0;
|
||
background-color: inherit;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
cursor: text;
|
||
}
|
||
|
||
.ace_content {
|
||
position: absolute;
|
||
box-sizing: border-box;
|
||
min-width: 100%;
|
||
contain: style size layout;
|
||
font-variant-ligatures: no-common-ligatures;
|
||
}
|
||
|
||
.ace_dragging .ace_scroller:before{
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
content: '';
|
||
background: rgba(250, 250, 250, 0.01);
|
||
z-index: 1000;
|
||
}
|
||
.ace_dragging.ace_dark .ace_scroller:before{
|
||
background: rgba(0, 0, 0, 0.01);
|
||
}
|
||
|
||
.ace_gutter {
|
||
position: absolute;
|
||
overflow : hidden;
|
||
width: auto;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
cursor: default;
|
||
z-index: 4;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_gutter-active-line {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.ace_scroller.ace_scroll-left {
|
||
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
||
}
|
||
|
||
.ace_gutter-cell {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding-left: 19px;
|
||
padding-right: 6px;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_error {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
||
background-repeat: no-repeat;
|
||
background-position: 2px center;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_warning {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
||
background-position: 2px center;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_info {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
||
background-position: 2px center;
|
||
}
|
||
.ace_dark .ace_gutter-cell.ace_info {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
||
}
|
||
|
||
.ace_scrollbar {
|
||
contain: strict;
|
||
position: absolute;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 6;
|
||
}
|
||
|
||
.ace_scrollbar-inner {
|
||
position: absolute;
|
||
cursor: text;
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.ace_scrollbar-v{
|
||
overflow-x: hidden;
|
||
overflow-y: scroll;
|
||
top: 0;
|
||
}
|
||
|
||
.ace_scrollbar-h {
|
||
overflow-x: scroll;
|
||
overflow-y: hidden;
|
||
left: 0;
|
||
}
|
||
|
||
.ace_print-margin {
|
||
position: absolute;
|
||
height: 100%;
|
||
}
|
||
|
||
.ace_text-input {
|
||
position: absolute;
|
||
z-index: 0;
|
||
width: 0.5em;
|
||
height: 1em;
|
||
opacity: 0;
|
||
background: transparent;
|
||
-moz-appearance: none;
|
||
appearance: none;
|
||
border: none;
|
||
resize: none;
|
||
outline: none;
|
||
overflow: hidden;
|
||
font: inherit;
|
||
padding: 0 1px;
|
||
margin: 0 -1px;
|
||
contain: strict;
|
||
-ms-user-select: text;
|
||
-moz-user-select: text;
|
||
-webkit-user-select: text;
|
||
user-select: text;
|
||
/*with \`pre-line\` chrome inserts instead of space*/
|
||
white-space: pre!important;
|
||
}
|
||
.ace_text-input.ace_composition {
|
||
background: transparent;
|
||
color: inherit;
|
||
z-index: 1000;
|
||
opacity: 1;
|
||
}
|
||
.ace_composition_placeholder { color: transparent }
|
||
.ace_composition_marker {
|
||
border-bottom: 1px solid;
|
||
position: absolute;
|
||
border-radius: 0;
|
||
margin-top: 1px;
|
||
}
|
||
|
||
[ace_nocontext=true] {
|
||
transform: none!important;
|
||
filter: none!important;
|
||
clip-path: none!important;
|
||
mask : none!important;
|
||
contain: none!important;
|
||
perspective: none!important;
|
||
mix-blend-mode: initial!important;
|
||
z-index: auto;
|
||
}
|
||
|
||
.ace_layer {
|
||
z-index: 1;
|
||
position: absolute;
|
||
overflow: hidden;
|
||
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
||
word-wrap: normal;
|
||
white-space: pre;
|
||
height: 100%;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
/* setting pointer-events: auto; on node under the mouse, which changes
|
||
during scroll, will break mouse wheel scrolling in Safari */
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ace_gutter-layer {
|
||
position: relative;
|
||
width: auto;
|
||
text-align: right;
|
||
pointer-events: auto;
|
||
height: 1000000px;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_text-layer {
|
||
font: inherit !important;
|
||
position: absolute;
|
||
height: 1000000px;
|
||
width: 1000000px;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
||
contain: style size layout;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.ace_hidpi .ace_text-layer,
|
||
.ace_hidpi .ace_gutter-layer,
|
||
.ace_hidpi .ace_content,
|
||
.ace_hidpi .ace_gutter {
|
||
contain: strict;
|
||
will-change: transform;
|
||
}
|
||
.ace_hidpi .ace_text-layer > .ace_line,
|
||
.ace_hidpi .ace_text-layer > .ace_line_group {
|
||
contain: strict;
|
||
}
|
||
|
||
.ace_cjk {
|
||
display: inline-block;
|
||
text-align: center;
|
||
}
|
||
|
||
.ace_cursor-layer {
|
||
z-index: 4;
|
||
}
|
||
|
||
.ace_cursor {
|
||
z-index: 4;
|
||
position: absolute;
|
||
box-sizing: border-box;
|
||
border-left: 2px solid;
|
||
/* workaround for smooth cursor repaintng whole screen in chrome */
|
||
transform: translatez(0);
|
||
}
|
||
|
||
.ace_multiselect .ace_cursor {
|
||
border-left-width: 1px;
|
||
}
|
||
|
||
.ace_slim-cursors .ace_cursor {
|
||
border-left-width: 1px;
|
||
}
|
||
|
||
.ace_overwrite-cursors .ace_cursor {
|
||
border-left-width: 0;
|
||
border-bottom: 1px solid;
|
||
}
|
||
|
||
.ace_hidden-cursors .ace_cursor {
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
||
opacity: 0;
|
||
}
|
||
|
||
.ace_smooth-blinking .ace_cursor {
|
||
transition: opacity 0.18s;
|
||
}
|
||
|
||
.ace_animate-blinking .ace_cursor {
|
||
animation-duration: 1000ms;
|
||
animation-timing-function: step-end;
|
||
animation-name: blink-ace-animate;
|
||
animation-iteration-count: infinite;
|
||
}
|
||
|
||
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
||
animation-duration: 1000ms;
|
||
animation-timing-function: ease-in-out;
|
||
animation-name: blink-ace-animate-smooth;
|
||
}
|
||
|
||
@keyframes blink-ace-animate {
|
||
from, to { opacity: 1; }
|
||
60% { opacity: 0; }
|
||
}
|
||
|
||
@keyframes blink-ace-animate-smooth {
|
||
from, to { opacity: 1; }
|
||
45% { opacity: 1; }
|
||
60% { opacity: 0; }
|
||
85% { opacity: 0; }
|
||
}
|
||
|
||
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
||
position: absolute;
|
||
z-index: 3;
|
||
}
|
||
|
||
.ace_marker-layer .ace_selection {
|
||
position: absolute;
|
||
z-index: 5;
|
||
}
|
||
|
||
.ace_marker-layer .ace_bracket {
|
||
position: absolute;
|
||
z-index: 6;
|
||
}
|
||
|
||
.ace_marker-layer .ace_error_bracket {
|
||
position: absolute;
|
||
border-bottom: 1px solid #DE5555;
|
||
border-radius: 0;
|
||
}
|
||
|
||
.ace_marker-layer .ace_active-line {
|
||
position: absolute;
|
||
z-index: 2;
|
||
}
|
||
|
||
.ace_marker-layer .ace_selected-word {
|
||
position: absolute;
|
||
z-index: 4;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.ace_line .ace_fold {
|
||
box-sizing: border-box;
|
||
|
||
display: inline-block;
|
||
height: 11px;
|
||
margin-top: -2px;
|
||
vertical-align: middle;
|
||
|
||
background-image:
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
||
background-repeat: no-repeat, repeat-x;
|
||
background-position: center center, top left;
|
||
color: transparent;
|
||
|
||
border: 1px solid black;
|
||
border-radius: 2px;
|
||
|
||
cursor: pointer;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.ace_dark .ace_fold {
|
||
}
|
||
|
||
.ace_fold:hover{
|
||
background-image:
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
||
}
|
||
|
||
.ace_tooltip {
|
||
background-color: #FFF;
|
||
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
|
||
border: 1px solid gray;
|
||
border-radius: 1px;
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||
color: black;
|
||
max-width: 100%;
|
||
padding: 3px 4px;
|
||
position: fixed;
|
||
z-index: 999999;
|
||
box-sizing: border-box;
|
||
cursor: default;
|
||
white-space: pre;
|
||
word-wrap: break-word;
|
||
line-height: normal;
|
||
font-style: normal;
|
||
font-weight: normal;
|
||
letter-spacing: normal;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ace_folding-enabled > .ace_gutter-cell {
|
||
padding-right: 13px;
|
||
}
|
||
|
||
.ace_fold-widget {
|
||
box-sizing: border-box;
|
||
|
||
margin: 0 -12px 0 1px;
|
||
display: none;
|
||
width: 11px;
|
||
vertical-align: top;
|
||
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
||
background-repeat: no-repeat;
|
||
background-position: center;
|
||
|
||
border-radius: 3px;
|
||
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.ace_folding-enabled .ace_fold-widget {
|
||
display: inline-block;
|
||
}
|
||
|
||
.ace_fold-widget.ace_end {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
||
}
|
||
|
||
.ace_fold-widget.ace_closed {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
||
}
|
||
|
||
.ace_fold-widget:hover {
|
||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||
background-color: rgba(255, 255, 255, 0.2);
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
||
}
|
||
|
||
.ace_fold-widget:active {
|
||
border: 1px solid rgba(0, 0, 0, 0.4);
|
||
background-color: rgba(0, 0, 0, 0.05);
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
||
}
|
||
/**
|
||
* Dark version for fold widgets
|
||
*/
|
||
.ace_dark .ace_fold-widget {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
||
}
|
||
.ace_dark .ace_fold-widget.ace_end {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
||
}
|
||
.ace_dark .ace_fold-widget.ace_closed {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
||
}
|
||
.ace_dark .ace_fold-widget:hover {
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
background-color: rgba(255, 255, 255, 0.1);
|
||
}
|
||
.ace_dark .ace_fold-widget:active {
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.ace_inline_button {
|
||
border: 1px solid lightgray;
|
||
display: inline-block;
|
||
margin: -1px 8px;
|
||
padding: 0 5px;
|
||
pointer-events: auto;
|
||
cursor: pointer;
|
||
}
|
||
.ace_inline_button:hover {
|
||
border-color: gray;
|
||
background: rgba(200,200,200,0.2);
|
||
display: inline-block;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.ace_fold-widget.ace_invalid {
|
||
background-color: #FFB4B4;
|
||
border-color: #DE5555;
|
||
}
|
||
|
||
.ace_fade-fold-widgets .ace_fold-widget {
|
||
transition: opacity 0.4s ease 0.05s;
|
||
opacity: 0;
|
||
}
|
||
|
||
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
||
transition: opacity 0.05s ease 0.05s;
|
||
opacity:1;
|
||
}
|
||
|
||
.ace_underline {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.ace_bold {
|
||
font-weight: bold;
|
||
}
|
||
|
||
.ace_nobold .ace_bold {
|
||
font-weight: normal;
|
||
}
|
||
|
||
.ace_italic {
|
||
font-style: italic;
|
||
}
|
||
|
||
|
||
.ace_error-marker {
|
||
background-color: rgba(255, 0, 0,0.2);
|
||
position: absolute;
|
||
z-index: 9;
|
||
}
|
||
|
||
.ace_highlight-marker {
|
||
background-color: rgba(255, 255, 0,0.2);
|
||
position: absolute;
|
||
z-index: 8;
|
||
}
|
||
|
||
.ace_mobile-menu {
|
||
position: absolute;
|
||
line-height: 1.5;
|
||
border-radius: 4px;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
background: white;
|
||
box-shadow: 1px 3px 2px grey;
|
||
border: 1px solid #dcdcdc;
|
||
color: black;
|
||
}
|
||
.ace_dark > .ace_mobile-menu {
|
||
background: #333;
|
||
color: #ccc;
|
||
box-shadow: 1px 3px 2px grey;
|
||
border: 1px solid #444;
|
||
|
||
}
|
||
.ace_mobile-button {
|
||
padding: 2px;
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
}
|
||
.ace_mobile-button:hover {
|
||
background-color: #eee;
|
||
opacity:1;
|
||
}
|
||
.ace_mobile-button:active {
|
||
background-color: #ddd;
|
||
}
|
||
|
||
.ace_placeholder {
|
||
font-family: arial;
|
||
transform: scale(0.9);
|
||
transform-origin: left;
|
||
white-space: pre;
|
||
opacity: 0.7;
|
||
margin: 0 10px;
|
||
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(U,W,G){var X=U("../lib/dom"),Z=U("../lib/oop"),Q=U("../lib/event_emitter").EventEmitter,ee=function(ie,te){this.canvas=X.createElement("canvas"),this.renderer=te,this.pixelRatio=1,this.maxHeight=te.layerConfig.maxHeight,this.lineHeight=te.layerConfig.lineHeight,this.canvasHeight=ie.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=ie.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},ie.element.appendChild(this.canvas)};(function(){Z.implement(this,Q),this.$updateDecorators=function(ie){var te=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(ie){this.maxHeight=ie.maxHeight,this.lineHeight=ie.lineHeight,this.canvasHeight=ie.height;var ne=(ie.lastRow+1)*this.lineHeight;ne<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var ae=this.canvas.getContext("2d");function oe(fe,ye){return fe.priority<ye.priority?-1:fe.priority>ye.priority?1:0}var se=this.renderer.session.$annotations;if(ae.clearRect(0,0,this.canvas.width,this.canvas.height),se){var le={info:1,warning:2,error:3};se.forEach(function(fe){fe.priority=le[fe.type]||null}),se=se.sort(oe);for(var ce=this.renderer.session.$foldData,ue=0;ue<se.length;ue++){var de=se[ue].row,ve=this.compensateFoldRows(de,ce),ge=Math.round((de-ve)*this.lineHeight*this.heightRatio),he=Math.round((de-ve)*this.lineHeight*this.heightRatio),me=Math.round(((de-ve)*this.lineHeight+this.lineHeight)*this.heightRatio),_e=me-he;if(_e<this.minDecorationHeight){var be=(he+me)/2|0;be<this.halfMinDecorationHeight?be=this.halfMinDecorationHeight:be+this.halfMinDecorationHeight>this.canvasHeight&&(be=this.canvasHeight-this.halfMinDecorationHeight),he=Math.round(be-this.halfMinDecorationHeight),me=Math.round(be+this.halfMinDecorationHeight)}ae.fillStyle=te[se[ue].type]||null,ae.fillRect(0,ge,this.canvasWidth,me-he)}}var pe=this.renderer.session.selection.getCursor();if(pe){var ve=this.compensateFoldRows(pe.row,ce),ge=Math.round((pe.row-ve)*this.lineHeight*this.heightRatio);ae.fillStyle="rgba(0, 0, 0, 0.5)",ae.fillRect(0,ge,this.canvasWidth,2)}},this.compensateFoldRows=function(ie,te){var ne=0;if(te&&te.length>0)for(var ae=0;ae<te.length;ae++)ie>te[ae].start.row&&ie<te[ae].end.row?ne+=ie-te[ae].start.row:ie>=te[ae].end.row&&(ne+=te[ae].end.row-te[ae].start.row);return ne}}).call(ee.prototype),W.Decorator=ee}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(U,W,G){var X=U("./lib/oop"),Z=U("./lib/dom"),Q=U("./config"),ee=U("./layer/gutter").Gutter,ie=U("./layer/marker").Marker,te=U("./layer/text").Text,ne=U("./layer/cursor").Cursor,ae=U("./scrollbar").HScrollBar,oe=U("./scrollbar").VScrollBar,se=U("./scrollbar_custom").HScrollBar,le=U("./scrollbar_custom").VScrollBar,ce=U("./renderloop").RenderLoop,ue=U("./layer/font_metrics").FontMetrics,de=U("./lib/event_emitter").EventEmitter,ve=U("./css/editor.css"),ge=U("./layer/decorators").Decorator,he=U("./lib/useragent"),me=he.isIE;Z.importCssString(ve,"ace_editor.css",!1);var _e=function(be,pe){var fe=this;this.container=be||Z.createElement("div"),Z.addCssClass(this.container,"ace_editor"),Z.HI_DPI&&Z.addCssClass(this.container,"ace_hidpi"),this.setTheme(pe),Q.get("useStrictCSP")==null&&Q.set("useStrictCSP",!1),this.$gutter=Z.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=Z.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=Z.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new ee(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new ie(this.content);var ye=this.$textLayer=new te(this.content);this.canvas=ye.element,this.$markerFront=new ie(this.content),this.$cursorLayer=new ne(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new oe(this.container,this),this.scrollBarH=new ae(this.container,this),this.scrollBarV.on("scroll",function($e){fe.$scrollAnimation||fe.session.setScrollTop($e.data-fe.scrollMargin.top)}),this.scrollBarH.on("scroll",function($e){fe.$scrollAnimation||fe.session.setScrollLeft($e.data-fe.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new ue(this.container,this.$textLayer.MAX_CHUNK_LENGTH),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($e){fe.updateCharacterSize(),fe.onResize(!0,fe.gutterWidth,fe.$size.width,fe.$size.height),fe._signal("changeCharacterSize",$e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!he.isIOS,this.$loop=new ce(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),Q.resetOptions(this),Q._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,X.implement(this,de),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),Z.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(be){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=be,be&&this.scrollMargin.top&&be.getScrollTop()<=0&&be.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(be),this.$markerBack.setSession(be),this.$markerFront.setSession(be),this.$gutterLayer.setSession(be),this.$textLayer.setSession(be),be&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(be,pe,fe){if(pe===void 0&&(pe=1/0),this.$changedLines?(this.$changedLines.firstRow>be&&(this.$changedLines.firstRow=be),this.$changedLines.lastRow<pe&&(this.$changedLines.lastRow=pe)):this.$changedLines={firstRow:be,lastRow:pe},this.$changedLines.lastRow<this.layerConfig.firstRow)if(fe)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(be){be?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(be,pe,fe,ye){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=be?1:0;var $e=this.container;ye||(ye=$e.clientHeight||$e.scrollHeight),fe||(fe=$e.clientWidth||$e.scrollWidth);var we=this.$updateCachedSize(be,pe,fe,ye);if(!this.$size.scrollerHeight||!fe&&!ye)return this.resizing=0;be&&(this.$gutterLayer.$padding=null),be?this.$renderChanges(we|this.$changes,!0):this.$loop.schedule(we|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(be,pe,fe,ye){ye-=this.$extraHeight||0;var $e=0,we=this.$size,Se={width:we.width,height:we.height,scrollerHeight:we.scrollerHeight,scrollerWidth:we.scrollerWidth};if(ye&&(be||we.height!=ye)&&(we.height=ye,$e|=this.CHANGE_SIZE,we.scrollerHeight=we.height,this.$horizScroll&&(we.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(we.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$e=$e|this.CHANGE_SCROLL),fe&&(be||we.width!=fe)){$e|=this.CHANGE_SIZE,we.width=fe,pe==null&&(pe=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=pe,Z.setStyle(this.scrollBarH.element.style,"left",pe+"px"),Z.setStyle(this.scroller.style,"left",pe+this.margin.left+"px"),we.scrollerWidth=Math.max(0,fe-pe-this.scrollBarV.getWidth()-this.margin.h),Z.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Te=this.scrollBarV.getWidth()+"px";Z.setStyle(this.scrollBarH.element.style,"right",Te),Z.setStyle(this.scroller.style,"right",Te),Z.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(we.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||be)&&($e|=this.CHANGE_FULL)}return we.$dirty=!fe||!ye,$e&&this._signal("resize",Se),$e},this.onGutterResize=function(be){var pe=this.$showGutter?be:0;pe!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,pe,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var be=this.$size.scrollerWidth-this.$padding*2,pe=Math.floor(be/this.characterWidth);return this.session.adjustWrapLimit(pe,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(be){this.setOption("animatedScroll",be)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(be){this.setOption("showInvisibles",be),this.session.$bidiHandler.setShowInvisibles(be)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(be){this.setOption("displayIndentGuides",be)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(be){this.setOption("highlightIndentGuides",be)},this.setShowPrintMargin=function(be){this.setOption("showPrintMargin",be)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(be){this.setOption("printMarginColumn",be)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(be){return this.setOption("showGutter",be)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(be){this.setOption("fadeFoldWidgets",be)},this.setHighlightGutterLine=function(be){this.setOption("highlightGutterLine",be)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var be=Z.createElement("div");be.className="ace_layer ace_print-margin-layer",this.$printMarginEl=Z.createElement("div"),this.$printMarginEl.className="ace_print-margin",be.appendChild(this.$printMarginEl),this.content.insertBefore(be,this.content.firstChild)}var pe=this.$printMarginEl.style;pe.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",pe.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var be=this.textarea.style,pe=this.$composition;if(!this.$keepTextAreaAtCursor&&!pe){Z.translate(this.textarea,-100,0);return}var fe=this.$cursorLayer.$pixelPos;if(!!fe){pe&&pe.markerRange&&(fe=this.$cursorLayer.getPixelPosition(pe.markerRange.start,!0));var ye=this.layerConfig,$e=fe.top,we=fe.left;$e-=ye.offset;var Se=pe&&pe.useTextareaForIME?this.lineHeight:me?0:1;if($e<0||$e>ye.height-Se){Z.translate(this.textarea,0,0);return}var Te=1,xe=this.$size.height-Se;if(!pe)$e+=this.lineHeight;else if(pe.useTextareaForIME){var ke=this.textarea.value;Te=this.characterWidth*this.session.$getStringScreenWidth(ke)[0]}else $e+=this.lineHeight+2;we-=this.scrollLeft,we>this.$size.scrollerWidth-Te&&(we=this.$size.scrollerWidth-Te),we+=this.gutterWidth+this.margin.left,Z.setStyle(be,"height",Se+"px"),Z.setStyle(be,"width",Te+"px"),Z.translate(this.textarea,Math.min(we,this.$size.scrollerWidth-Te),Math.min($e,xe))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var be=this.layerConfig,pe=be.lastRow,fe=this.session.documentToScreenRow(pe,0)*be.lineHeight;return fe-this.session.getScrollTop()>be.height-be.lineHeight?pe-1:pe},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(be){this.$padding=be,this.$textLayer.setPadding(be),this.$cursorLayer.setPadding(be),this.$markerFront.setPadding(be),this.$markerBack.setPadding(be),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(be,pe,fe,ye){var $e=this.scrollMargin;$e.top=be|0,$e.bottom=pe|0,$e.right=ye|0,$e.left=fe|0,$e.v=$e.top+$e.bottom,$e.h=$e.left+$e.right,$e.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$e.top),this.updateFull()},this.setMargin=function(be,pe,fe,ye){var $e=this.margin;$e.top=be|0,$e.bottom=pe|0,$e.right=ye|0,$e.left=fe|0,$e.v=$e.top+$e.bottom,$e.h=$e.left+$e.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(be){this.setOption("hScrollBarAlwaysVisible",be)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(be){this.setOption("vScrollBarAlwaysVisible",be)},this.$updateScrollBarV=function(){var be=this.layerConfig.maxHeight,pe=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(be-=(pe-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>be-pe&&(be=this.scrollTop+pe,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(be+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(be,pe){if(this.$changes&&(be|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!be&&!pe){this.$changes|=be;return}if(this.$size.$dirty)return this.$changes|=be,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",be),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var fe=this.layerConfig;if(be&this.CHANGE_FULL||be&this.CHANGE_SIZE||be&this.CHANGE_TEXT||be&this.CHANGE_LINES||be&this.CHANGE_SCROLL||be&this.CHANGE_H_SCROLL){if(be|=this.$computeLayerConfig()|this.$loop.clear(),fe.firstRow!=this.layerConfig.firstRow&&fe.firstRowScreen==this.layerConfig.firstRowScreen){var ye=this.scrollTop+(fe.firstRow-this.layerConfig.firstRow)*this.lineHeight;ye>0&&(this.scrollTop=ye,be=be|this.CHANGE_SCROLL,be|=this.$computeLayerConfig()|this.$loop.clear())}fe=this.layerConfig,this.$updateScrollBarV(),be&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),Z.translate(this.content,-this.scrollLeft,-fe.offset);var $e=fe.width+2*this.$padding+"px",we=fe.minHeight+"px";Z.setStyle(this.content.style,"width",$e),Z.setStyle(this.content.style,"height",we)}if(be&this.CHANGE_H_SCROLL&&(Z.translate(this.content,-this.scrollLeft,-fe.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),be&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(fe),this.$showGutter&&this.$gutterLayer.update(fe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe),this.$markerBack.update(fe),this.$markerFront.update(fe),this.$cursorLayer.update(fe),this.$moveTextAreaToCursor(),this._signal("afterRender",be);return}if(be&this.CHANGE_SCROLL){this.$changedLines=null,be&this.CHANGE_TEXT||be&this.CHANGE_LINES?this.$textLayer.update(fe):this.$textLayer.scrollLines(fe),this.$showGutter&&(be&this.CHANGE_GUTTER||be&this.CHANGE_LINES?this.$gutterLayer.update(fe):this.$gutterLayer.scrollLines(fe)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe),this.$markerBack.update(fe),this.$markerFront.update(fe),this.$cursorLayer.update(fe),this.$moveTextAreaToCursor(),this._signal("afterRender",be);return}be&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(fe),this.$showGutter&&this.$gutterLayer.update(fe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe)):be&this.CHANGE_LINES?((this.$updateLines()||be&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(fe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe)):be&this.CHANGE_TEXT||be&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(fe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe)):be&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(fe),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(fe)),be&this.CHANGE_CURSOR&&(this.$cursorLayer.update(fe),this.$moveTextAreaToCursor()),be&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(fe),be&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(fe),this._signal("afterRender",be)},this.$autosize=function(){var be=this.session.getScreenLength()*this.lineHeight,pe=this.$maxLines*this.lineHeight,fe=Math.min(pe,Math.max((this.$minLines||1)*this.lineHeight,be))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(fe+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&fe>this.$maxPixelHeight&&(fe=this.$maxPixelHeight);var ye=fe<=2*this.lineHeight,$e=!ye&&be>pe;if(fe!=this.desiredHeight||this.$size.height!=this.desiredHeight||$e!=this.$vScroll){$e!=this.$vScroll&&(this.$vScroll=$e,this.scrollBarV.setVisible($e));var we=this.container.clientWidth;this.container.style.height=fe+"px",this.$updateCachedSize(!0,this.$gutterWidth,we,fe),this.desiredHeight=fe,this._signal("autosize")}},this.$computeLayerConfig=function(){var be=this.session,pe=this.$size,fe=pe.height<=2*this.lineHeight,ye=this.session.getScreenLength(),$e=ye*this.lineHeight,we=this.$getLongestLine(),Se=!fe&&(this.$hScrollBarAlwaysVisible||pe.scrollerWidth-we-2*this.$padding<0),Te=this.$horizScroll!==Se;Te&&(this.$horizScroll=Se,this.scrollBarH.setVisible(Se));var xe=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var ke=pe.scrollerHeight+this.lineHeight,Ie=!this.$maxLines&&this.$scrollPastEnd?(pe.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$e+=Ie;var Ae=this.scrollMargin;this.session.setScrollTop(Math.max(-Ae.top,Math.min(this.scrollTop,$e-pe.scrollerHeight+Ae.bottom))),this.session.setScrollLeft(Math.max(-Ae.left,Math.min(this.scrollLeft,we+2*this.$padding-pe.scrollerWidth+Ae.right)));var Me=!fe&&(this.$vScrollBarAlwaysVisible||pe.scrollerHeight-$e+Ie<0||this.scrollTop>Ae.top),Fe=xe!==Me;Fe&&(this.$vScroll=Me,this.scrollBarV.setVisible(Me));var Be=this.scrollTop%this.lineHeight,Ne=Math.ceil(ke/this.lineHeight)-1,Ve=Math.max(0,Math.round((this.scrollTop-Be)/this.lineHeight)),Le=Ve+Ne,De,Je,ze=this.lineHeight;Ve=be.screenToDocumentRow(Ve,0);var Ge=be.getFoldLine(Ve);Ge&&(Ve=Ge.start.row),De=be.documentToScreenRow(Ve,0),Je=be.getRowLength(Ve)*ze,Le=Math.min(be.screenToDocumentRow(Le,0),be.getLength()-1),ke=pe.scrollerHeight+be.getRowLength(Le)*ze+Je,Be=this.scrollTop-De*ze;var qe=0;return(this.layerConfig.width!=we||Te)&&(qe=this.CHANGE_H_SCROLL),(Te||Fe)&&(qe|=this.$updateCachedSize(!0,this.gutterWidth,pe.width,pe.height),this._signal("scrollbarVisibilityChanged"),Fe&&(we=this.$getLongestLine())),this.layerConfig={width:we,padding:this.$padding,firstRow:Ve,firstRowScreen:De,lastRow:Le,lineHeight:ze,characterWidth:this.characterWidth,minHeight:ke,maxHeight:$e,offset:Be,gutterOffset:ze?Math.max(0,Math.ceil((Be+pe.height-pe.scrollerHeight)/ze)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(we-this.$padding),qe},this.$updateLines=function(){if(!!this.$changedLines){var be=this.$changedLines.firstRow,pe=this.$changedLines.lastRow;this.$changedLines=null;var fe=this.layerConfig;if(!(be>fe.lastRow+1)&&!(pe<fe.firstRow)){if(pe===1/0){this.$showGutter&&this.$gutterLayer.update(fe),this.$textLayer.update(fe);return}return this.$textLayer.updateLines(fe,be,pe),!0}}},this.$getLongestLine=function(){var be=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(be+=1),this.$textLayer&&be>this.$textLayer.MAX_LINE_LENGTH&&(be=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(be*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(be,pe){this.$gutterLayer.addGutterDecoration(be,pe)},this.removeGutterDecoration=function(be,pe){this.$gutterLayer.removeGutterDecoration(be,pe)},this.updateBreakpoints=function(be){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(be){this.$gutterLayer.setAnnotations(be),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(be,pe,fe){this.scrollCursorIntoView(be,fe),this.scrollCursorIntoView(pe,fe)},this.scrollCursorIntoView=function(be,pe,fe){if(this.$size.scrollerHeight!==0){var ye=this.$cursorLayer.getPixelPosition(be),$e=ye.left,we=ye.top,Se=fe&&fe.top||0,Te=fe&&fe.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var xe=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;xe+Se>we?(pe&&xe+Se>we+this.lineHeight&&(we-=pe*this.$size.scrollerHeight),we===0&&(we=-this.scrollMargin.top),this.session.setScrollTop(we)):xe+this.$size.scrollerHeight-Te<we+this.lineHeight&&(pe&&xe+this.$size.scrollerHeight-Te<we-this.lineHeight&&(we+=pe*this.$size.scrollerHeight),this.session.setScrollTop(we+this.lineHeight+Te-this.$size.scrollerHeight));var ke=this.scrollLeft;ke>$e?($e<this.$padding+2*this.layerConfig.characterWidth&&($e=-this.scrollMargin.left),this.session.setScrollLeft($e)):ke+this.$size.scrollerWidth<$e+this.characterWidth?this.session.setScrollLeft(Math.round($e+this.characterWidth-this.$size.scrollerWidth)):ke<=this.$padding&&$e-ke<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(be){this.session.setScrollTop(be*this.lineHeight)},this.alignCursor=function(be,pe){typeof be=="number"&&(be={row:be,column:0});var fe=this.$cursorLayer.getPixelPosition(be),ye=this.$size.scrollerHeight-this.lineHeight,$e=fe.top-ye*(pe||0);return this.session.setScrollTop($e),$e},this.STEPS=8,this.$calcSteps=function(be,pe){var fe=0,ye=this.STEPS,$e=[],we=function(Se,Te,xe){return xe*(Math.pow(Se-1,3)+1)+Te};for(fe=0;fe<ye;++fe)$e.push(we(fe/this.STEPS,be,pe-be));return $e},this.scrollToLine=function(be,pe,fe,ye){var $e=this.$cursorLayer.getPixelPosition({row:be,column:0}),we=$e.top;pe&&(we-=this.$size.scrollerHeight/2);var Se=this.scrollTop;this.session.setScrollTop(we),fe!==!1&&this.animateScrolling(Se,ye)},this.animateScrolling=function(be,pe){var fe=this.scrollTop;if(!this.$animatedScroll)return;var ye=this;if(be==fe)return;if(this.$scrollAnimation){var $e=this.$scrollAnimation.steps;if($e.length&&(be=$e[0],be==fe))return}var we=ye.$calcSteps(be,fe);this.$scrollAnimation={from:be,to:fe,steps:we},clearInterval(this.$timer),ye.session.setScrollTop(we.shift()),ye.session.$scrollTop=fe;function Se(){ye.$timer=clearInterval(ye.$timer),ye.$scrollAnimation=null,ye.$stopAnimation=!1,pe&&pe()}this.$timer=setInterval(function(){if(ye.$stopAnimation){Se();return}if(!ye.session)return clearInterval(ye.$timer);we.length?(ye.session.setScrollTop(we.shift()),ye.session.$scrollTop=fe):fe!=null?(ye.session.$scrollTop=-1,ye.session.setScrollTop(fe),fe=null):Se()},10)},this.scrollToY=function(be){this.scrollTop!==be&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=be)},this.scrollToX=function(be){this.scrollLeft!==be&&(this.scrollLeft=be),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(be,pe){this.session.setScrollTop(pe),this.session.setScrollLeft(be)},this.scrollBy=function(be,pe){pe&&this.session.setScrollTop(this.session.getScrollTop()+pe),be&&this.session.setScrollLeft(this.session.getScrollLeft()+be)},this.isScrollableBy=function(be,pe){if(pe<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||pe>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||be<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||be>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(be,pe){var fe;if(this.$hasCssTransforms){fe={top:0,left:0};var ye=this.$fontMetrics.transformCoordinates([be,pe]);be=ye[1]-this.gutterWidth-this.margin.left,pe=ye[0]}else fe=this.scroller.getBoundingClientRect();var $e=be+this.scrollLeft-fe.left-this.$padding,we=$e/this.characterWidth,Se=Math.floor((pe+this.scrollTop-fe.top)/this.lineHeight),Te=this.$blockCursor?Math.floor(we):Math.round(we);return{row:Se,column:Te,side:we-Te>0?1:-1,offsetX:$e}},this.screenToTextCoordinates=function(be,pe){var fe;if(this.$hasCssTransforms){fe={top:0,left:0};var ye=this.$fontMetrics.transformCoordinates([be,pe]);be=ye[1]-this.gutterWidth-this.margin.left,pe=ye[0]}else fe=this.scroller.getBoundingClientRect();var $e=be+this.scrollLeft-fe.left-this.$padding,we=$e/this.characterWidth,Se=this.$blockCursor?Math.floor(we):Math.round(we),Te=Math.floor((pe+this.scrollTop-fe.top)/this.lineHeight);return this.session.screenToDocumentPosition(Te,Math.max(Se,0),$e)},this.textToScreenCoordinates=function(be,pe){var fe=this.scroller.getBoundingClientRect(),ye=this.session.documentToScreenPosition(be,pe),$e=this.$padding+(this.session.$bidiHandler.isBidiRow(ye.row,be)?this.session.$bidiHandler.getPosLeft(ye.column):Math.round(ye.column*this.characterWidth)),we=ye.row*this.lineHeight;return{pageX:fe.left+$e-this.scrollLeft,pageY:fe.top+we-this.scrollTop}},this.visualizeFocus=function(){Z.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){Z.removeCssClass(this.container,"ace_focus")},this.showComposition=function(be){this.$composition=be,be.cssText||(be.cssText=this.textarea.style.cssText),be.useTextareaForIME==null&&(be.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(Z.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):be.markerId=this.session.addMarker(be.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(be){var pe=this.session.selection.cursor;this.addToken(be,"composition_placeholder",pe.row,pe.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(!!this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),Z.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var be=this.session.selection.cursor;this.removeExtraToken(be.row,be.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(be,pe,fe,ye){var $e=this.session;$e.bgTokenizer.lines[fe]=null;var we={type:pe,value:be},Se=$e.getTokens(fe);if(ye==null)Se.push(we);else for(var Te=0,xe=0;xe<Se.length;xe++){var ke=Se[xe];if(Te+=ke.value.length,ye<=Te){var Ie=ke.value.length-(Te-ye),Ae=ke.value.slice(0,Ie),Me=ke.value.slice(Ie);Se.splice(xe,1,{type:ke.type,value:Ae},we,{type:ke.type,value:Me});break}}this.updateLines(fe,fe)},this.removeExtraToken=function(be,pe){this.updateLines(be,be)},this.setTheme=function(be,pe){var fe=this;if(this.$themeId=be,fe._dispatchEvent("themeChange",{theme:be}),!be||typeof be=="string"){var ye=be||this.$options.theme.initialValue;Q.loadModule(["theme",ye],$e)}else $e(be);function $e(we){if(fe.$themeId!=be)return pe&&pe();if(!we||!we.cssClass)throw new Error("couldn't load module "+be+" or it didn't call define");we.$id&&(fe.$themeId=we.$id),Z.importCssString(we.cssText,we.cssClass,fe.container),fe.theme&&Z.removeCssClass(fe.container,fe.theme.cssClass);var Se="padding"in we?we.padding:"padding"in(fe.theme||{})?4:fe.$padding;fe.$padding&&Se!=fe.$padding&&fe.setPadding(Se),fe.$theme=we.cssClass,fe.theme=we,Z.addCssClass(fe.container,we.cssClass),Z.setCssClass(fe.container,"ace_dark",we.isDark),fe.$size&&(fe.$size.width=0,fe.$updateSizeAsync()),fe._dispatchEvent("themeLoaded",{theme:we}),pe&&pe()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(be,pe){Z.setCssClass(this.container,be,pe!==!1)},this.unsetStyle=function(be){Z.removeCssClass(this.container,be)},this.setCursorStyle=function(be){Z.setStyle(this.scroller.style,"cursor",be)},this.setMouseCursor=function(be){Z.setStyle(this.scroller.style,"cursor",be)},this.attachToShadowRoot=function(){Z.importCssString(ve,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(be){var pe=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,be===!0?(this.scrollBarV=new le(this.container,this),this.scrollBarH=new se(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(fe){pe.$scrollAnimation||pe.session.setScrollTop(fe.data-pe.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(fe){pe.$scrollAnimation||pe.session.setScrollLeft(fe.data-pe.scrollMargin.left)}),this.$scrollDecorator=new ge(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new oe(this.container,this),this.scrollBarH=new ae(this.container,this),this.scrollBarV.addEventListener("scroll",function(fe){pe.$scrollAnimation||pe.session.setScrollTop(fe.data-pe.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(fe){pe.$scrollAnimation||pe.session.setScrollLeft(fe.data-pe.scrollMargin.left)}))}}).call(_e.prototype),Q.defineOptions(_e.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(be){this.$textLayer.setShowInvisibles(be)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(be){typeof be=="number"&&(this.$printMarginColumn=be),this.$showPrintMargin=!!be,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(be){this.$gutter.style.display=be?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(be){Z.setCssClass(this.$gutter,"ace_fade-fold-widgets",be)},initialValue:!1},showFoldWidgets:{set:function(be){this.$gutterLayer.setShowFoldWidgets(be),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(be){this.$textLayer.setDisplayIndentGuides(be)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(be){this.$textLayer.setHighlightIndentGuides(be)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(be){this.$gutterLayer.setHighlightGutterLine(be),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(be){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(be){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(be){typeof be=="number"&&(be=be+"px"),this.container.style.fontSize=be,this.updateFontSize()},initialValue:12},fontFamily:{set:function(be){this.container.style.fontFamily=be,this.updateFontSize()}},maxLines:{set:function(be){this.updateFull()}},minLines:{set:function(be){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(be){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(be){be=+be||0,this.$scrollPastEnd!=be&&(this.$scrollPastEnd=be,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(be){this.$gutterLayer.$fixedWidth=!!be,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(be){this.$updateCustomScrollbar(be)},initialValue:!1},theme:{set:function(be){this.setTheme(be)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!he.isMobile&&!he.isIE}}),W.VirtualRenderer=_e}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(U,W,G){var X=U("../lib/oop"),Z=U("../lib/net"),Q=U("../lib/event_emitter").EventEmitter,ee=U("../config");function ie(oe){var se="importScripts('"+Z.qualifyURL(oe)+"');";try{return new Blob([se],{type:"application/javascript"})}catch{var le=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,ce=new le;return ce.append(se),ce.getBlob("application/javascript")}}function te(oe){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(ee.get("loadWorkerFromBlob")){var se=ie(oe),le=window.URL||window.webkitURL,ce=le.createObjectURL(se);return new Worker(ce)}return new Worker(oe)}var ne=function(oe){oe.postMessage||(oe=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=oe,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){X.implement(this,Q),this.$createWorkerFromOldConfig=function(oe,se,le,ce,ue){if(U.nameToUrl&&!U.toUrl&&(U.toUrl=U.nameToUrl),ee.get("packaged")||!U.toUrl)ce=ce||ee.moduleUrl(se,"worker");else{var de=this.$normalizePath;ce=ce||de(U.toUrl("ace/worker/worker.js",null,"_"));var ve={};oe.forEach(function(ge){ve[ge]=de(U.toUrl(ge,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=te(ce),ue&&this.send("importScripts",ue),this.$worker.postMessage({init:!0,tlns:ve,module:se,classname:le}),this.$worker},this.onMessage=function(oe){var se=oe.data;switch(se.type){case"event":this._signal(se.name,{data:se.data});break;case"call":var le=this.callbacks[se.id];le&&(le(se.data),delete this.callbacks[se.id]);break;case"error":this.reportError(se.data);break;case"log":window.console&&console.log&&console.log.apply(console,se.data);break}},this.reportError=function(oe){window.console&&console.error&&console.error(oe)},this.$normalizePath=function(oe){return Z.qualifyURL(oe)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(oe,se){this.$worker.postMessage({command:oe,args:se})},this.call=function(oe,se,le){if(le){var ce=this.callbackId++;this.callbacks[ce]=le,se.push(ce)}this.send(oe,se)},this.emit=function(oe,se){try{se.data&&se.data.err&&(se.data.err={message:se.data.err.message,stack:se.data.err.stack,code:se.data.err.code}),this.$worker&&this.$worker.postMessage({event:oe,data:{data:se.data}})}catch(le){console.error(le.stack)}},this.attachToDocument=function(oe){this.$doc&&this.terminate(),this.$doc=oe,this.call("setValue",[oe.getValue()]),oe.on("change",this.changeListener,!0)},this.changeListener=function(oe){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),oe.action=="insert"?this.deltaQueue.push(oe.start,oe.lines):this.deltaQueue.push(oe.start,oe.end)},this.$sendDeltaQueue=function(){var oe=this.deltaQueue;!oe||(this.deltaQueue=null,oe.length>50&&oe.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:oe}))}}).call(ne.prototype);var ae=function(oe,se,le){var ce=null,ue=!1,de=Object.create(Q),ve=[],ge=new ne({messageBuffer:ve,terminate:function(){},postMessage:function(me){ve.push(me),ce&&(ue?setTimeout(he):he())}});ge.setEmitSync=function(me){ue=me};var he=function(){var me=ve.shift();me.command?ce[me.command].apply(ce,me.args):me.event&&de._signal(me.event,me.data)};return de.postMessage=function(me){ge.onMessage({data:me})},de.callback=function(me,_e){this.postMessage({type:"call",id:_e,data:me})},de.emit=function(me,_e){this.postMessage({type:"event",name:me,data:_e})},ee.loadModule(["worker",se],function(me){for(ce=new me[le](de);ve.length;)he()}),ge};W.UIWorkerClient=ae,W.WorkerClient=ne,W.createWorker=te}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(U,W,G){var X=U("./range").Range,Z=U("./lib/event_emitter").EventEmitter,Q=U("./lib/oop"),ee=function(ie,te,ne,ae,oe,se){var le=this;this.length=te,this.session=ie,this.doc=ie.getDocument(),this.mainClass=oe,this.othersClass=se,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=ae,this.$onCursorChange=function(){setTimeout(function(){le.onCursorChange()})},this.$pos=ne;var ce=ie.getUndoManager().$undoStack||ie.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=ce.length,this.setup(),ie.selection.on("changeCursor",this.$onCursorChange)};(function(){Q.implement(this,Z),this.setup=function(){var ie=this,te=this.doc,ne=this.session;this.selectionBefore=ne.selection.toJSON(),ne.selection.inMultiSelectMode&&ne.selection.toSingleRange(),this.pos=te.createAnchor(this.$pos.row,this.$pos.column);var ae=this.pos;ae.$insertRight=!0,ae.detach(),ae.markerId=ne.addMarker(new X(ae.row,ae.column,ae.row,ae.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(oe){var se=te.createAnchor(oe.row,oe.column);se.$insertRight=!0,se.detach(),ie.others.push(se)}),ne.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var ie=this.session,te=this;this.othersActive=!0,this.others.forEach(function(ne){ne.markerId=ie.addMarker(new X(ne.row,ne.column,ne.row,ne.column+te.length),te.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(!!this.othersActive){this.othersActive=!1;for(var ie=0;ie<this.others.length;ie++)this.session.removeMarker(this.others[ie].markerId)}},this.onUpdate=function(ie){if(this.$updating)return this.updateAnchors(ie);var te=ie;if(te.start.row===te.end.row&&te.start.row===this.pos.row){this.$updating=!0;var ne=ie.action==="insert"?te.end.column-te.start.column:te.start.column-te.end.column,ae=te.start.column>=this.pos.column&&te.start.column<=this.pos.column+this.length+1,oe=te.start.column-this.pos.column;if(this.updateAnchors(ie),ae&&(this.length+=ne),ae&&!this.session.$fromUndo){if(ie.action==="insert")for(var se=this.others.length-1;se>=0;se--){var le=this.others[se],ce={row:le.row,column:le.column+oe};this.doc.insertMergedLines(ce,ie.lines)}else if(ie.action==="remove")for(var se=this.others.length-1;se>=0;se--){var le=this.others[se],ce={row:le.row,column:le.column+oe};this.doc.remove(new X(ce.row,ce.column,ce.row,ce.column-ne))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(ie){this.pos.onChange(ie);for(var te=this.others.length;te--;)this.others[te].onChange(ie);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var ie=this,te=this.session,ne=function(oe,se){te.removeMarker(oe.markerId),oe.markerId=te.addMarker(new X(oe.row,oe.column,oe.row,oe.column+ie.length),se,null,!1)};ne(this.pos,this.mainClass);for(var ae=this.others.length;ae--;)ne(this.others[ae],this.othersClass)}},this.onCursorChange=function(ie){if(!(this.$updating||!this.session)){var te=this.session.selection.getCursor();te.row===this.pos.row&&te.column>=this.pos.column&&te.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",ie)):(this.hideOtherMarkers(),this._emit("cursorLeave",ie))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var ie=this.session.getUndoManager(),te=(ie.$undoStack||ie.$undostack).length-this.$undoStackDepth,ne=0;ne<te;ne++)ie.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(ee.prototype),W.PlaceHolder=ee}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(U,W,G){var X=U("../lib/event"),Z=U("../lib/useragent");function Q(ie,te){return ie.row==te.row&&ie.column==te.column}function ee(ie){var te=ie.domEvent,ne=te.altKey,ae=te.shiftKey,oe=te.ctrlKey,se=ie.getAccelKey(),le=ie.getButton();if(oe&&Z.isMac&&(le=te.button),ie.editor.inMultiSelectMode&&le==2){ie.editor.textInput.onContextMenu(ie.domEvent);return}if(!oe&&!ne&&!se){le===0&&ie.editor.inMultiSelectMode&&ie.editor.exitMultiSelectMode();return}if(le===0){var ce=ie.editor,ue=ce.selection,de=ce.inMultiSelectMode,ve=ie.getDocumentPosition(),ge=ue.getCursor(),he=ie.inSelection()||ue.isEmpty()&&Q(ve,ge),me=ie.x,_e=ie.y,be=function(Fe){me=Fe.clientX,_e=Fe.clientY},pe=ce.session,fe=ce.renderer.pixelToScreenCoordinates(me,_e),ye=fe,$e;if(ce.$mouseHandler.$enableJumpToDef)oe&&ne||se&&ne?$e=ae?"block":"add":ne&&ce.$blockSelectEnabled&&($e="block");else if(se&&!ne){if($e="add",!de&&ae)return}else ne&&ce.$blockSelectEnabled&&($e="block");if($e&&Z.isMac&&te.ctrlKey&&ce.$mouseHandler.cancelContextMenu(),$e=="add"){if(!de&&he)return;if(!de){var we=ue.toOrientedRange();ce.addSelectionMarker(we)}var Se=ue.rangeList.rangeAtPoint(ve);ce.inVirtualSelectionMode=!0,ae&&(Se=null,we=ue.ranges[0]||we,ce.removeSelectionMarker(we)),ce.once("mouseup",function(){var Fe=ue.toOrientedRange();Se&&Fe.isEmpty()&&Q(Se.cursor,Fe.cursor)?ue.substractPoint(Fe.cursor):(ae?ue.substractPoint(we.cursor):we&&(ce.removeSelectionMarker(we),ue.addRange(we)),ue.addRange(Fe)),ce.inVirtualSelectionMode=!1})}else if($e=="block"){ie.stop(),ce.inVirtualSelectionMode=!0;var Te,xe=[],ke=function(){var Fe=ce.renderer.pixelToScreenCoordinates(me,_e),Be=pe.screenToDocumentPosition(Fe.row,Fe.column,Fe.offsetX);Q(ye,Fe)&&Q(Be,ue.lead)||(ye=Fe,ce.selection.moveToPosition(Be),ce.renderer.scrollCursorIntoView(),ce.removeSelectionMarkers(xe),xe=ue.rectangularRangeBlock(ye,fe),ce.$mouseHandler.$clickSelection&&xe.length==1&&xe[0].isEmpty()&&(xe[0]=ce.$mouseHandler.$clickSelection.clone()),xe.forEach(ce.addSelectionMarker,ce),ce.updateSelectionMarkers())};de&&!se?ue.toSingleRange():!de&&se&&(Te=ue.toOrientedRange(),ce.addSelectionMarker(Te)),ae?fe=pe.documentToScreenPosition(ue.lead):ue.moveToPosition(ve),ye={row:-1,column:-1};var Ie=function(Fe){ke(),clearInterval(Me),ce.removeSelectionMarkers(xe),xe.length||(xe=[ue.toOrientedRange()]),Te&&(ce.removeSelectionMarker(Te),ue.toSingleRange(Te));for(var Be=0;Be<xe.length;Be++)ue.addRange(xe[Be]);ce.inVirtualSelectionMode=!1,ce.$mouseHandler.$clickSelection=null},Ae=ke;X.capture(ce.container,be,Ie);var Me=setInterval(function(){Ae()},20);return ie.preventDefault()}}}W.onMouseDown=ee}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(U,W,G){W.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(Z){Z.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(Z){Z.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(Z){Z.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(Z){Z.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(Z){Z.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(Z){Z.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(Z){Z.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(Z){Z.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(Z){Z.multiSelect.rangeCount>1?Z.multiSelect.joinSelections():Z.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(Z){Z.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(Z){Z.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(Z){Z.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],W.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(Z){Z.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(Z){return Z&&Z.inMultiSelectMode}}];var X=U("../keyboard/hash_handler").HashHandler;W.keyboardHandler=new X(W.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(U,W,G){var X=U("./range_list").RangeList,Z=U("./range").Range,Q=U("./selection").Selection,ee=U("./mouse/multi_select_handler").onMouseDown,ie=U("./lib/event"),te=U("./lib/lang"),ne=U("./commands/multi_select_commands");W.commands=ne.defaultCommands.concat(ne.multiSelectCommands);var ae=U("./search").Search,oe=new ae;function se(ge,he,me){return oe.$options.wrap=!0,oe.$options.needle=he,oe.$options.backwards=me==-1,oe.find(ge)}var le=U("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(le.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(ge,he){if(!!ge){if(!this.inMultiSelectMode&&this.rangeCount===0){var me=this.toOrientedRange();if(this.rangeList.add(me),this.rangeList.add(ge),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),he||this.fromOrientedRange(ge);this.rangeList.removeAll(),this.rangeList.add(me),this.$onAddRange(me)}ge.cursor||(ge.cursor=ge.end);var _e=this.rangeList.add(ge);return this.$onAddRange(ge),_e.length&&this.$onRemoveRange(_e),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),he||this.fromOrientedRange(ge)}},this.toSingleRange=function(ge){ge=ge||this.ranges[0];var he=this.rangeList.removeAll();he.length&&this.$onRemoveRange(he),ge&&this.fromOrientedRange(ge)},this.substractPoint=function(ge){var he=this.rangeList.substractPoint(ge);if(he)return this.$onRemoveRange(he),he[0]},this.mergeOverlappingRanges=function(){var ge=this.rangeList.merge();ge.length&&this.$onRemoveRange(ge)},this.$onAddRange=function(ge){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(ge),this._signal("addRange",{range:ge})},this.$onRemoveRange=function(ge){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var he=this.rangeList.ranges.pop();ge.push(he),this.rangeCount=0}for(var me=ge.length;me--;){var _e=this.ranges.indexOf(ge[me]);this.ranges.splice(_e,1)}this._signal("removeRange",{ranges:ge}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),he=he||this.ranges[0],he&&!he.isEqual(this.getRange())&&this.fromOrientedRange(he)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new X,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var ge=this.ranges.length?this.ranges:[this.getRange()],he=[],me=0;me<ge.length;me++){var _e=ge[me],be=_e.start.row,pe=_e.end.row;if(be===pe)he.push(_e.clone());else{for(he.push(new Z(be,_e.start.column,be,this.session.getLine(be).length));++be<pe;)he.push(this.getLineRange(be,!0));he.push(new Z(pe,0,pe,_e.end.column))}me==0&&!this.isBackwards()&&(he=he.reverse())}this.toSingleRange();for(var me=he.length;me--;)this.addRange(he[me])},this.joinSelections=function(){var ge=this.rangeList.ranges,he=ge[ge.length-1],me=Z.fromPoints(ge[0].start,he.end);this.toSingleRange(),this.setSelectionRange(me,he.cursor==he.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var ge=this.rangeList.ranges,he=ge[ge.length-1],me=Z.fromPoints(ge[0].start,he.end);this.toSingleRange(),this.setSelectionRange(me,he.cursor==he.start)}else{var _e=this.session.documentToScreenPosition(this.cursor),be=this.session.documentToScreenPosition(this.anchor),pe=this.rectangularRangeBlock(_e,be);pe.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(ge,he,me){var _e=[],be=ge.column<he.column;if(be)var pe=ge.column,fe=he.column,ye=ge.offsetX,$e=he.offsetX;else var pe=he.column,fe=ge.column,ye=he.offsetX,$e=ge.offsetX;var we=ge.row<he.row;if(we)var Se=ge.row,Te=he.row;else var Se=he.row,Te=ge.row;pe<0&&(pe=0),Se<0&&(Se=0),Se==Te&&(me=!0);for(var xe,ke=Se;ke<=Te;ke++){var Ie=Z.fromPoints(this.session.screenToDocumentPosition(ke,pe,ye),this.session.screenToDocumentPosition(ke,fe,$e));if(Ie.isEmpty()){if(xe&&ue(Ie.end,xe))break;xe=Ie.end}Ie.cursor=be?Ie.start:Ie.end,_e.push(Ie)}if(we&&_e.reverse(),!me){for(var Ae=_e.length-1;_e[Ae].isEmpty()&&Ae>0;)Ae--;if(Ae>0)for(var Me=0;_e[Me].isEmpty();)Me++;for(var Fe=Ae;Fe>=Me;Fe--)_e[Fe].isEmpty()&&_e.splice(Fe,1)}return _e}}.call(Q.prototype);var ce=U("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(ge){ge.cursor||(ge.cursor=ge.end);var he=this.getSelectionStyle();return ge.marker=this.session.addMarker(ge,"ace_selection",he),this.session.$selectionMarkers.push(ge),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,ge},this.removeSelectionMarker=function(ge){if(!!ge.marker){this.session.removeMarker(ge.marker);var he=this.session.$selectionMarkers.indexOf(ge);he!=-1&&this.session.$selectionMarkers.splice(he,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(ge){for(var he=this.session.$selectionMarkers,me=ge.length;me--;){var _e=ge[me];if(!!_e.marker){this.session.removeMarker(_e.marker);var be=he.indexOf(_e);be!=-1&&he.splice(be,1)}}this.session.selectionMarkerCount=he.length},this.$onAddRange=function(ge){this.addSelectionMarker(ge.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(ge){this.removeSelectionMarkers(ge.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(ge){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(ne.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(ge){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(ne.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(ge){var he=ge.command,me=ge.editor;if(!!me.multiSelect){if(he.multiSelectAction)he.multiSelectAction=="forEach"?_e=me.forEachSelection(he,ge.args):he.multiSelectAction=="forEachLine"?_e=me.forEachSelection(he,ge.args,!0):he.multiSelectAction=="single"?(me.exitMultiSelectMode(),_e=he.exec(me,ge.args||{})):_e=he.multiSelectAction(me,ge.args||{});else{var _e=he.exec(me,ge.args||{});me.multiSelect.addRange(me.multiSelect.toOrientedRange()),me.multiSelect.mergeOverlappingRanges()}return _e}},this.forEachSelection=function(ge,he,me){if(!this.inVirtualSelectionMode){var _e=me&&me.keepOrder,be=me==!0||me&&me.$byLines,pe=this.session,fe=this.selection,ye=fe.rangeList,$e=(_e?fe:ye).ranges,we;if(!$e.length)return ge.exec?ge.exec(this,he||{}):ge(this,he||{});var Se=fe._eventRegistry;fe._eventRegistry={};var Te=new Q(pe);this.inVirtualSelectionMode=!0;for(var xe=$e.length;xe--;){if(be)for(;xe>0&&$e[xe].start.row==$e[xe-1].end.row;)xe--;Te.fromOrientedRange($e[xe]),Te.index=xe,this.selection=pe.selection=Te;var ke=ge.exec?ge.exec(this,he||{}):ge(this,he||{});!we&&ke!==void 0&&(we=ke),Te.toOrientedRange($e[xe])}Te.detach(),this.selection=pe.selection=fe,this.inVirtualSelectionMode=!1,fe._eventRegistry=Se,fe.mergeOverlappingRanges(),fe.ranges[0]&&fe.fromOrientedRange(fe.ranges[0]);var Ie=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Ie&&Ie.from==Ie.to&&this.renderer.animateScrolling(Ie.from),we}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var ge="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var he=this.multiSelect.rangeList.ranges,me=[],_e=0;_e<he.length;_e++)me.push(this.session.getTextRange(he[_e]));var be=this.session.getDocument().getNewLineCharacter();ge=me.join(be),ge.length==(me.length-1)*be.length&&(ge="")}else this.selection.isEmpty()||(ge=this.session.getTextRange(this.getSelectionRange()));return ge},this.$checkMultiselectChange=function(ge,he){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var me=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&he==this.multiSelect.anchor)return;var _e=he==this.multiSelect.anchor?me.cursor==me.start?me.end:me.start:me.cursor;_e.row!=he.row||this.session.$clipPositionToDocument(_e.row,_e.column).column!=he.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(ge,he,me){if(he=he||{},he.needle=ge||he.needle,he.needle==null){var _e=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();he.needle=this.session.getTextRange(_e)}this.$search.set(he);var be=this.$search.findAll(this.session);if(!be.length)return 0;var pe=this.multiSelect;me||pe.toSingleRange(be[0]);for(var fe=be.length;fe--;)pe.addRange(be[fe],!0);return _e&&pe.rangeList.rangeAtPoint(_e.start)&&pe.addRange(_e,!0),be.length},this.selectMoreLines=function(ge,he){var me=this.selection.toOrientedRange(),_e=me.cursor==me.end,be=this.session.documentToScreenPosition(me.cursor);this.selection.$desiredColumn&&(be.column=this.selection.$desiredColumn);var pe=this.session.screenToDocumentPosition(be.row+ge,be.column);if(me.isEmpty())var ye=pe;else var fe=this.session.documentToScreenPosition(_e?me.end:me.start),ye=this.session.screenToDocumentPosition(fe.row+ge,fe.column);if(_e){var $e=Z.fromPoints(pe,ye);$e.cursor=$e.start}else{var $e=Z.fromPoints(ye,pe);$e.cursor=$e.end}if($e.desiredColumn=be.column,!this.selection.inMultiSelectMode)this.selection.addRange(me);else if(he)var we=me.cursor;this.selection.addRange($e),we&&this.selection.substractPoint(we)},this.transposeSelections=function(ge){for(var he=this.session,me=he.multiSelect,_e=me.ranges,be=_e.length;be--;){var pe=_e[be];if(pe.isEmpty()){var fe=he.getWordRange(pe.start.row,pe.start.column);pe.start.row=fe.start.row,pe.start.column=fe.start.column,pe.end.row=fe.end.row,pe.end.column=fe.end.column}}me.mergeOverlappingRanges();for(var ye=[],be=_e.length;be--;){var pe=_e[be];ye.unshift(he.getTextRange(pe))}ge<0?ye.unshift(ye.pop()):ye.push(ye.shift());for(var be=_e.length;be--;){var pe=_e[be],fe=pe.clone();he.replace(pe,ye[be]),pe.start.row=fe.start.row,pe.start.column=fe.start.column}me.fromOrientedRange(me.ranges[0])},this.selectMore=function(ge,he,me){var _e=this.session,be=_e.multiSelect,pe=be.toOrientedRange();if(!(pe.isEmpty()&&(pe=_e.getWordRange(pe.start.row,pe.start.column),pe.cursor=ge==-1?pe.start:pe.end,this.multiSelect.addRange(pe),me))){var fe=_e.getTextRange(pe),ye=se(_e,fe,ge);ye&&(ye.cursor=ge==-1?ye.start:ye.end,this.session.unfold(ye),this.multiSelect.addRange(ye),this.renderer.scrollCursorIntoView(null,.5)),he&&this.multiSelect.substractPoint(pe.cursor)}},this.alignCursors=function(){var ge=this.session,he=ge.multiSelect,me=he.ranges,_e=-1,be=me.filter(function(Ae){if(Ae.cursor.row==_e)return!0;_e=Ae.cursor.row});if(!me.length||be.length==me.length-1){var pe=this.selection.getRange(),fe=pe.start.row,ye=pe.end.row,$e=fe==ye;if($e){var we=this.session.getLength(),Se;do Se=this.session.getLine(ye);while(/[=:]/.test(Se)&&++ye<we);do Se=this.session.getLine(fe);while(/[=:]/.test(Se)&&--fe>0);fe<0&&(fe=0),ye>=we&&(ye=we-1)}var Te=this.session.removeFullLines(fe,ye);Te=this.$reAlignText(Te,$e),this.session.insert({row:fe,column:0},Te.join(`
|
||
`)+`
|
||
`),$e||(pe.start.column=0,pe.end.column=Te[Te.length-1].length),this.selection.setRange(pe)}else{be.forEach(function(Ae){he.substractPoint(Ae.cursor)});var xe=0,ke=1/0,Ie=me.map(function(Ae){var Me=Ae.cursor,Fe=ge.getLine(Me.row),Be=Fe.substr(Me.column).search(/\S/g);return Be==-1&&(Be=0),Me.column>xe&&(xe=Me.column),Be<ke&&(ke=Be),Be});me.forEach(function(Ae,Me){var Fe=Ae.cursor,Be=xe-Fe.column,Ne=Ie[Me]-ke;Be>Ne?ge.insert(Fe,te.stringRepeat(" ",Be-Ne)):ge.remove(new Z(Fe.row,Fe.column,Fe.row,Fe.column-Be+Ne)),Ae.start.column=Ae.end.column=xe,Ae.start.row=Ae.end.row=Fe.row,Ae.cursor=Ae.end}),he.fromOrientedRange(me[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(ge,he){var me=!0,_e=!0,be,pe,fe;return ge.map(function(Te){var xe=Te.match(/(\s*)(.*?)(\s*)([=:].*)/);return xe?be==null?(be=xe[1].length,pe=xe[2].length,fe=xe[3].length,xe):(be+pe+fe!=xe[1].length+xe[2].length+xe[3].length&&(_e=!1),be!=xe[1].length&&(me=!1),be>xe[1].length&&(be=xe[1].length),pe<xe[2].length&&(pe=xe[2].length),fe>xe[3].length&&(fe=xe[3].length),xe):[Te]}).map(he?$e:me?_e?we:$e:Se);function ye(Te){return te.stringRepeat(" ",Te)}function $e(Te){return Te[2]?ye(be)+Te[2]+ye(pe-Te[2].length+fe)+Te[4].replace(/^([=:])\s+/,"$1 "):Te[0]}function we(Te){return Te[2]?ye(be+pe-Te[2].length)+Te[2]+ye(fe)+Te[4].replace(/^([=:])\s+/,"$1 "):Te[0]}function Se(Te){return Te[2]?ye(be)+Te[2]+ye(fe)+Te[4].replace(/^([=:])\s+/,"$1 "):Te[0]}}}).call(ce.prototype);function ue(ge,he){return ge.row==he.row&&ge.column==he.column}W.onSessionChange=function(ge){var he=ge.session;he&&!he.multiSelect&&(he.$selectionMarkers=[],he.selection.$initRangeList(),he.multiSelect=he.selection),this.multiSelect=he&&he.multiSelect;var me=ge.oldSession;me&&(me.multiSelect.off("addRange",this.$onAddRange),me.multiSelect.off("removeRange",this.$onRemoveRange),me.multiSelect.off("multiSelect",this.$onMultiSelect),me.multiSelect.off("singleSelect",this.$onSingleSelect),me.multiSelect.lead.off("change",this.$checkMultiselectChange),me.multiSelect.anchor.off("change",this.$checkMultiselectChange)),he&&(he.multiSelect.on("addRange",this.$onAddRange),he.multiSelect.on("removeRange",this.$onRemoveRange),he.multiSelect.on("multiSelect",this.$onMultiSelect),he.multiSelect.on("singleSelect",this.$onSingleSelect),he.multiSelect.lead.on("change",this.$checkMultiselectChange),he.multiSelect.anchor.on("change",this.$checkMultiselectChange)),he&&this.inMultiSelectMode!=he.selection.inMultiSelectMode&&(he.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function de(ge){ge.$multiselectOnSessionChange||(ge.$onAddRange=ge.$onAddRange.bind(ge),ge.$onRemoveRange=ge.$onRemoveRange.bind(ge),ge.$onMultiSelect=ge.$onMultiSelect.bind(ge),ge.$onSingleSelect=ge.$onSingleSelect.bind(ge),ge.$multiselectOnSessionChange=W.onSessionChange.bind(ge),ge.$checkMultiselectChange=ge.$checkMultiselectChange.bind(ge),ge.$multiselectOnSessionChange(ge),ge.on("changeSession",ge.$multiselectOnSessionChange),ge.on("mousedown",ee),ge.commands.addCommands(ne.defaultCommands),ve(ge))}function ve(ge){if(!ge.textInput)return;var he=ge.textInput.getElement(),me=!1;ie.addListener(he,"keydown",function(be){var pe=be.keyCode==18&&!(be.ctrlKey||be.shiftKey||be.metaKey);ge.$blockSelectEnabled&&pe?me||(ge.renderer.setMouseCursor("crosshair"),me=!0):me&&_e()},ge),ie.addListener(he,"keyup",_e,ge),ie.addListener(he,"blur",_e,ge);function _e(be){me&&(ge.renderer.setMouseCursor(""),me=!1)}}W.MultiSelect=de,U("./config").defineOptions(ce.prototype,"editor",{enableMultiselect:{set:function(ge){de(this),ge?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",ee)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",ee))},value:!0},enableBlockSelect:{set:function(ge){this.$blockSelectEnabled=ge},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(U,W,G){var X=U("../../range").Range,Z=W.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(Q,ee,ie){var te=Q.getLine(ie);return this.foldingStartMarker.test(te)?"start":ee=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(te)?"end":""},this.getFoldWidgetRange=function(Q,ee,ie){return null},this.indentationBlock=function(Q,ee,ie){var te=/\S/,ne=Q.getLine(ee),ae=ne.search(te);if(ae!=-1){for(var oe=ie||ne.length,se=Q.getLength(),le=ee,ce=ee;++ee<se;){var ue=Q.getLine(ee).search(te);if(ue!=-1){if(ue<=ae){var de=Q.getTokenAt(ee,0);if(!de||de.type!=="string")break}ce=ee}}if(ce>le){var ve=Q.getLine(ce).length;return new X(le,oe,ce,ve)}}},this.openingBracketBlock=function(Q,ee,ie,te,ne){var ae={row:ie,column:te+1},oe=Q.$findClosingBracket(ee,ae,ne);if(!!oe){var se=Q.foldWidgets[oe.row];return se==null&&(se=Q.getFoldWidget(oe.row)),se=="start"&&oe.row>ae.row&&(oe.row--,oe.column=Q.getLine(oe.row).length),X.fromPoints(ae,oe)}},this.closingBracketBlock=function(Q,ee,ie,te,ne){var ae={row:ie,column:te},oe=Q.$findOpeningBracket(ee,ae);if(!!oe)return oe.column++,ae.column--,X.fromPoints(oe,ae)}}).call(Z.prototype)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(U,W,G){var X=U("./lib/dom");function Z(Q){this.session=Q,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(Q){var ee;return this.lineWidgets?ee=this.lineWidgets[Q]&&this.lineWidgets[Q].rowCount||0:ee=0,!this.$useWrapMode||!this.$wrapData[Q]?1+ee:this.$wrapData[Q].length+1+ee},this.$getWidgetScreenLength=function(){var Q=0;return this.lineWidgets.forEach(function(ee){ee&&ee.rowCount&&!ee.hidden&&(Q+=ee.rowCount)}),Q},this.$onChangeEditor=function(Q){this.attach(Q.editor)},this.attach=function(Q){Q&&Q.widgetManager&&Q.widgetManager!=this&&Q.widgetManager.detach(),this.editor!=Q&&(this.detach(),this.editor=Q,Q&&(Q.widgetManager=this,Q.renderer.on("beforeRender",this.measureWidgets),Q.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(Q){var ee=this.editor;if(!!ee){this.editor=null,ee.widgetManager=null,ee.renderer.off("beforeRender",this.measureWidgets),ee.renderer.off("afterRender",this.renderWidgets);var ie=this.session.lineWidgets;ie&&ie.forEach(function(te){te&&te.el&&te.el.parentNode&&(te._inDocument=!1,te.el.parentNode.removeChild(te.el))})}},this.updateOnFold=function(Q,ee){var ie=ee.lineWidgets;if(!(!ie||!Q.action)){for(var te=Q.data,ne=te.start.row,ae=te.end.row,oe=Q.action=="add",se=ne+1;se<ae;se++)ie[se]&&(ie[se].hidden=oe);ie[ae]&&(oe?ie[ne]?ie[ae].hidden=oe:ie[ne]=ie[ae]:(ie[ne]==ie[ae]&&(ie[ne]=void 0),ie[ae].hidden=oe))}},this.updateOnChange=function(Q){var ee=this.session.lineWidgets;if(!!ee){var ie=Q.start.row,te=Q.end.row-ie;if(te!==0)if(Q.action=="remove"){var ne=ee.splice(ie+1,te);!ee[ie]&&ne[ne.length-1]&&(ee[ie]=ne.pop()),ne.forEach(function(oe){oe&&this.removeLineWidget(oe)},this),this.$updateRows()}else{var ae=new Array(te);ee[ie]&&ee[ie].column!=null&&Q.start.column>ee[ie].column&&ie++,ae.unshift(ie,0),ee.splice.apply(ee,ae),this.$updateRows()}}},this.$updateRows=function(){var Q=this.session.lineWidgets;if(!!Q){var ee=!0;Q.forEach(function(ie,te){if(ie)for(ee=!1,ie.row=te;ie.$oldWidget;)ie.$oldWidget.row=te,ie=ie.$oldWidget}),ee&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(Q){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var ee=this.session.lineWidgets[Q.row];return ee&&(Q.$oldWidget=ee,ee.el&&ee.el.parentNode&&(ee.el.parentNode.removeChild(ee.el),ee._inDocument=!1)),this.session.lineWidgets[Q.row]=Q,Q},this.addLineWidget=function(Q){if(this.$registerLineWidget(Q),Q.session=this.session,!this.editor)return Q;var ee=this.editor.renderer;Q.html&&!Q.el&&(Q.el=X.createElement("div"),Q.el.innerHTML=Q.html),Q.el&&(X.addCssClass(Q.el,"ace_lineWidgetContainer"),Q.el.style.position="absolute",Q.el.style.zIndex=5,ee.container.appendChild(Q.el),Q._inDocument=!0,Q.coverGutter||(Q.el.style.zIndex=3),Q.pixelHeight==null&&(Q.pixelHeight=Q.el.offsetHeight)),Q.rowCount==null&&(Q.rowCount=Q.pixelHeight/ee.layerConfig.lineHeight);var ie=this.session.getFoldAt(Q.row,0);if(Q.$fold=ie,ie){var te=this.session.lineWidgets;Q.row==ie.end.row&&!te[ie.start.row]?te[ie.start.row]=Q:Q.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:Q.row}}}),this.$updateRows(),this.renderWidgets(null,ee),this.onWidgetChanged(Q),Q},this.removeLineWidget=function(Q){if(Q._inDocument=!1,Q.session=null,Q.el&&Q.el.parentNode&&Q.el.parentNode.removeChild(Q.el),Q.editor&&Q.editor.destroy)try{Q.editor.destroy()}catch{}if(this.session.lineWidgets){var ee=this.session.lineWidgets[Q.row];if(ee==Q)this.session.lineWidgets[Q.row]=Q.$oldWidget,Q.$oldWidget&&this.onWidgetChanged(Q.$oldWidget);else for(;ee;){if(ee.$oldWidget==Q){ee.$oldWidget=Q.$oldWidget;break}ee=ee.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:Q.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(Q){for(var ee=this.session.lineWidgets,ie=ee&&ee[Q],te=[];ie;)te.push(ie),ie=ie.$oldWidget;return te},this.onWidgetChanged=function(Q){this.session._changedWidgets.push(Q),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(Q,ee){var ie=this.session._changedWidgets,te=ee.layerConfig;if(!(!ie||!ie.length)){for(var ne=1/0,ae=0;ae<ie.length;ae++){var oe=ie[ae];if(!(!oe||!oe.el)&&oe.session==this.session){if(!oe._inDocument){if(this.session.lineWidgets[oe.row]!=oe)continue;oe._inDocument=!0,ee.container.appendChild(oe.el)}oe.h=oe.el.offsetHeight,oe.fixedWidth||(oe.w=oe.el.offsetWidth,oe.screenWidth=Math.ceil(oe.w/te.characterWidth));var se=oe.h/te.lineHeight;oe.coverLine&&(se-=this.session.getRowLineCount(oe.row),se<0&&(se=0)),oe.rowCount!=se&&(oe.rowCount=se,oe.row<ne&&(ne=oe.row))}}ne!=1/0&&(this.session._emit("changeFold",{data:{start:{row:ne}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(Q,ee){var ie=ee.layerConfig,te=this.session.lineWidgets;if(!!te){for(var ne=Math.min(this.firstRow,ie.firstRow),ae=Math.max(this.lastRow,ie.lastRow,te.length);ne>0&&!te[ne];)ne--;this.firstRow=ie.firstRow,this.lastRow=ie.lastRow,ee.$cursorLayer.config=ie;for(var oe=ne;oe<=ae;oe++){var se=te[oe];if(!(!se||!se.el)){if(se.hidden){se.el.style.top=-100-(se.pixelHeight||0)+"px";continue}se._inDocument||(se._inDocument=!0,ee.container.appendChild(se.el));var le=ee.$cursorLayer.getPixelPosition({row:oe,column:0},!0).top;se.coverLine||(le+=ie.lineHeight*this.session.getRowLineCount(se.row)),se.el.style.top=le-ie.offset+"px";var ce=se.coverGutter?0:ee.gutterWidth;se.fixedWidth||(ce-=ee.scrollLeft),se.el.style.left=ce+"px",se.fullWidth&&se.screenWidth&&(se.el.style.minWidth=ie.width+2*ie.padding+"px"),se.fixedWidth?se.el.style.right=ee.scrollBar.getWidth()+"px":se.el.style.right=""}}}}}).call(Z.prototype),W.LineWidgets=Z}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(U,W,G){var X=U("../line_widgets").LineWidgets,Z=U("../lib/dom"),Q=U("../range").Range;function ee(te,ne,ae){for(var oe=0,se=te.length-1;oe<=se;){var le=oe+se>>1,ce=ae(ne,te[le]);if(ce>0)oe=le+1;else if(ce<0)se=le-1;else return le}return-(oe+1)}function ie(te,ne,ae){var oe=te.getAnnotations().sort(Q.comparePoints);if(!!oe.length){var se=ee(oe,{row:ne,column:-1},Q.comparePoints);se<0&&(se=-se-1),se>=oe.length?se=ae>0?0:oe.length-1:se===0&&ae<0&&(se=oe.length-1);var le=oe[se];if(!(!le||!ae)){if(le.row===ne){do le=oe[se+=ae];while(le&&le.row===ne);if(!le)return oe.slice()}var ce=[];ne=le.row;do ce[ae<0?"unshift":"push"](le),le=oe[se+=ae];while(le&&le.row==ne);return ce.length&&ce}}}W.showErrorMarker=function(te,ne){var ae=te.session;ae.widgetManager||(ae.widgetManager=new X(ae),ae.widgetManager.attach(te));var oe=te.getCursorPosition(),se=oe.row,le=ae.widgetManager.getWidgetsAtRow(se).filter(function(be){return be.type=="errorMarker"})[0];le?le.destroy():se-=ne;var ce=ie(ae,se,ne),ue;if(ce){var de=ce[0];oe.column=(de.pos&&typeof de.column!="number"?de.pos.sc:de.column)||0,oe.row=de.row,ue=te.renderer.$gutterLayer.$annotations[oe.row]}else{if(le)return;ue={text:["Looks good!"],className:"ace_ok"}}te.session.unfold(oe.row),te.selection.moveToPosition(oe);var ve={row:oe.row,fixedWidth:!0,coverGutter:!0,el:Z.createElement("div"),type:"errorMarker"},ge=ve.el.appendChild(Z.createElement("div")),he=ve.el.appendChild(Z.createElement("div"));he.className="error_widget_arrow "+ue.className;var me=te.renderer.$cursorLayer.getPixelPosition(oe).left;he.style.left=me+te.renderer.gutterWidth-5+"px",ve.el.className="error_widget_wrapper",ge.className="error_widget "+ue.className,ge.innerHTML=ue.text.join("<br>"),ge.appendChild(Z.createElement("div"));var _e=function(be,pe,fe){if(pe===0&&(fe==="esc"||fe==="return"))return ve.destroy(),{command:"null"}};ve.destroy=function(){te.$mouseHandler.isMousePressed||(te.keyBinding.removeKeyboardHandler(_e),ae.widgetManager.removeLineWidget(ve),te.off("changeSelection",ve.destroy),te.off("changeSession",ve.destroy),te.off("mouseup",ve.destroy),te.off("change",ve.destroy))},te.keyBinding.addKeyboardHandler(_e),te.on("changeSelection",ve.destroy),te.on("changeSession",ve.destroy),te.on("mouseup",ve.destroy),te.on("change",ve.destroy),te.session.widgetManager.addLineWidget(ve),ve.el.onmousedown=te.focus.bind(te),te.renderer.scrollCursorIntoView(null,.5,{bottom:ve.el.offsetHeight})},Z.importCssString(`
|
||
.error_widget_wrapper {
|
||
background: inherit;
|
||
color: inherit;
|
||
border:none
|
||
}
|
||
.error_widget {
|
||
border-top: solid 2px;
|
||
border-bottom: solid 2px;
|
||
margin: 5px 0;
|
||
padding: 10px 40px;
|
||
white-space: pre-wrap;
|
||
}
|
||
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
||
border-color: #ff5a5a
|
||
}
|
||
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
||
border-color: #F1D817
|
||
}
|
||
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
||
border-color: #5a5a5a
|
||
}
|
||
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
||
border-color: #5aaa5a
|
||
}
|
||
.error_widget_arrow {
|
||
position: absolute;
|
||
border: solid 5px;
|
||
border-top-color: transparent!important;
|
||
border-right-color: transparent!important;
|
||
border-left-color: transparent!important;
|
||
top: -5px;
|
||
}
|
||
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(U,W,G){U("./loader_build")(W);var X=U("./lib/dom"),Z=U("./lib/event"),Q=U("./range").Range,ee=U("./editor").Editor,ie=U("./edit_session").EditSession,te=U("./undomanager").UndoManager,ne=U("./virtual_renderer").VirtualRenderer;U("./worker/worker_client"),U("./keyboard/hash_handler"),U("./placeholder"),U("./multi_select"),U("./mode/folding/fold_mode"),U("./theme/textmate"),U("./ext/error_marker"),W.config=U("./config"),W.edit=function(ae,oe){if(typeof ae=="string"){var se=ae;if(ae=document.getElementById(se),!ae)throw new Error("ace.edit can't find div #"+se)}if(ae&&ae.env&&ae.env.editor instanceof ee)return ae.env.editor;var le="";if(ae&&/input|textarea/i.test(ae.tagName)){var ce=ae;le=ce.value,ae=X.createElement("pre"),ce.parentNode.replaceChild(ae,ce)}else ae&&(le=ae.textContent,ae.innerHTML="");var ue=W.createEditSession(le),de=new ee(new ne(ae),ue,oe),ve={document:ue,editor:de,onResize:de.resize.bind(de,null)};return ce&&(ve.textarea=ce),Z.addListener(window,"resize",ve.onResize),de.on("destroy",function(){Z.removeListener(window,"resize",ve.onResize),ve.editor.container.env=null}),de.container.env=de.env=ve,de},W.createEditSession=function(ae,oe){var se=new ie(ae,oe);return se.setUndoManager(new te),se},W.Range=Q,W.Editor=ee,W.EditSession=ie,W.UndoManager=te,W.VirtualRenderer=ne,W.version=W.config.version}),function(){ace.require(["ace/ace"],function(U){U&&(U.config.init(!0),U.define=ace.define),window.ace||(window.ace=U);for(var W in U)U.hasOwnProperty(W)&&(window.ace[W]=U[W]);window.ace.default=window.ace,C&&(C.exports=window.ace)})}()})(ace$2);const ace$1=ace$2.exports,Events=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],VAceEditor=defineComponent({props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...Events],render(){return h$1("div")},mounted(){const C=this._editor=markRaw(ace$1.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,C.on("change",()=>{if(this._isSettingContent)return;const H=C.getValue();this._contentBackup=H,this.$emit("update:value",H)}),Events.forEach(H=>{const U="on"+capitalize$1(H);typeof this.$.vnode.props[U]=="function"&&C.on(H,this.$emit.bind(this,H))}),this._ro=new index$s(()=>C.resize()),this._ro.observe(this.$el),this.$emit("init",C)},beforeUnmount(){var C,H;(C=this._ro)===null||C===void 0||C.disconnect(),(H=this._editor)===null||H===void 0||H.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()}},watch:{value(C){if(this._contentBackup!==C){try{this._isSettingContent=!0,this._editor.setValue(C,1)}finally{this._isSettingContent=!1}this._contentBackup=C}},theme(C){this._editor.setTheme("ace/theme/"+C)},options(C){this._editor.setOptions(C)},readonly(C){this._editor.setReadOnly(C)},placeholder(C){this._editor.setOption("placeholder",C)},wrap(C){this._editor.setWrapBehavioursEnabled(C)},printMargin(C){this._editor.setOption("printMargin",C)},lang(C){this._editor.setOption("mode","ace/mode/"+C)},minLines(C){this._editor.setOption("minLines",C)},maxLines(C){this._editor.setOption("maxLines",C)}}}),OnlineDocument_vue_vue_type_style_index_0_scoped_16380620_lang="",requestcolumns=[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"30%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",width:"25%"},{title:"\u8BF7\u6C42\u7C7B\u578B",dataIndex:"in",scopedSlots:{customRender:"typeTemplate"}},{title:"\u662F\u5426\u5FC5\u987B",dataIndex:"require",scopedSlots:{customRender:"requireTemplate"}},{title:"\u6570\u636E\u7C7B\u578B",dataIndex:"type",scopedSlots:{customRender:"datatypeTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],responseStatuscolumns=[{title:"\u72B6\u6001\u7801",dataIndex:"code",width:"20%"},{title:"\u8BF4\u660E",dataIndex:"description",width:"55%",scopedSlots:{customRender:"descriptionTemplate"}},{title:"schema",dataIndex:"schema"}],responseHeaderColumns=[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"30%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",width:"55%"},{title:"\u6570\u636E\u7C7B\u578B",dataIndex:"type"}],responseParametersColumns=[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"35%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",width:"40%"},{title:"\u7C7B\u578B",dataIndex:"type"},{title:"schema",dataIndex:"schemaValue",width:"15%"}];var instance=null;const _sfc_main$4={name:"Document",components:{editor:VAceEditor,DataType:defineAsyncComponent(()=>__vitePreload(()=>import("./DataType-b64a363e.js"),[],import.meta.url)),EditorShow:defineAsyncComponent(()=>__vitePreload(()=>import("./EditorShow-84687409.js"),["./EditorShow-84687409.js","./ext-language_tools-c709ecd7.js"],import.meta.url))},props:{api:{type:Object,required:!0},swaggerInstance:{type:Object,required:!0}},beforeCreate(){instance=this},data(){return{content:"<span>Hello</span>",columns:requestcolumns,responseHeaderColumns,responseStatuscolumns,responseParametersColumns,expanRows:!0,multipCode:!1,multipCodeDatas:[],multipData:{},page:!1,reqParameters:[]}},created(){this.reqParameters=this.api.reqParameters,instance.initResponseCodeParams()},methods:{genUnionTableKey(){return utils$c.randomMd5()},initRequestParams(){var C=[],H=this,U=constants$1.globalTreeTableModelParams+this.api.instanceId;this.swaggerInstance.refTreeTableModels;var W=this.api;W.parameters!=null&&W.parameters.length>0&&(C=C.concat(W.parameters)),W.refTreetableparameters!=null&&W.refTreetableparameters.length>0&&W.refTreetableparameters.forEach(function(X){C=C.concat(X.params)}),C!=null&&C.sort(function(X,Z){return Z.require-X.require});let G=[];C!=null&&C.length>0&&C.forEach(function(X){if(X.pid=="-1"){if(X.children=[],X.schema){var Z=X.schemaValue;if(utils$c.checkUndefined(Z)&&H.$Knife4jModels.exists(U,Z)){var Q=H.$Knife4jModels.getByModelName(U,Z);if(utils$c.checkUndefined(Q)){var ee=Q.params;utils$c.arrNotEmpty(ee)&&ee.forEach(function(ie){var te=H.copyNewParameter(ie);te.pid=X.id,X.children.push(te)})}}}utils$c.arrNotEmpty(X.children)||(X.children=null),G.push(X)}}),H.reqParameters=G},storeCacheModels(C){var H=constants$1.globalTreeTableModelParams+this.api.instanceId;this.$localStore.setItem(H,C)},deepTreeTableSchemaModel(C,H,U){var W=this,G=constants$1.globalTreeTableModelParams+this.api.instanceId;if(utils$c.checkUndefined(C.schemaValue)){var X=H[C.schemaValue];utils$c.checkUndefined(X)&&(U.parentTypes.push(C.schemaValue),utils$c.arrNotEmpty(X.params)&&X.params.forEach(function(Z){var Q=W.copyNewParameter(Z);if(Q.pid=C.id,C.children.push(Q),Q.schema&&U.parentTypes.indexOf(Q.schemaValue)==-1){var ee=Q.schemaValue;if(utils$c.checkUndefined(ee))if(Q.children=[],W.$Knife4jModels.exists(G,ee)){var ie=W.$Knife4jModels.getByModelName(G,ee);utils$c.arrNotEmpty(ie)&&ie.forEach(function(te){var ne=W.copyNewParameter(te);ne.pid=Q.id,Q.children.push(ne)})}else W.deepTreeTableSchemaModel(Q,H,U),Q.children.length==0&&(Q.children=null),W.$Knife4jModels.addModels(G,ee,Q.children)}}))}},copyNewParameter(C){var H={children:C.children,childrenTypes:C.childrenTypes,def:C.def,description:C.description,enum:C.enum,example:C.example,id:C.id,ignoreFilterName:C.ignoreFilterName,in:C.in,level:C.level,name:C.name,parentTypes:C.parentTypes,pid:C.pid,readOnly:C.readOnly,require:C.require,schema:C.schema,schemaValue:C.schemaValue,show:C.show,txtValue:C.txtValue,type:C.type,validateInstance:C.validateInstance,validateStatus:C.validateStatus,value:C.value};return H},findModelChildren(C,H){var U=this;H!=null&&H!=null&&H.length>0&&H.forEach(function(W){W.pid==C.id&&(W.children=[],U.findModelChildren(W,H),W.children.length==0&&(W.children=null),C.children.push(W))})},initResponseCodeParams(){var C=this;C.multipCode=C.api.multipartResponseSchema;let H=C.api.responseCodes;H!=null&&H!=null&&H.forEach(function(U){if(U.schema!=null&&U.schema!=null){var W=[];U.responseParameters!=null&&U.responseParameters.length>0&&(W=W.concat(U.responseParameters)),U.responseTreetableRefParameters!=null&&U.responseTreetableRefParameters.length>0&&U.responseTreetableRefParameters.forEach(function(Z){W=W.concat(Z.params)});let X=[];W!=null&&W.length>0&&W.forEach(function(Z){Z.pid=="-1"&&(Z.children=[],Z.children.length==0&&(Z.children=null),X.push(Z))});var G={...U,data:X};C.multipCode||(C.multipData=G),C.multipCodeDatas.push(G)}})},formaterJson(C){try{return typeof C!="string"&&(C=JSON.stringify(C,void 0,2)),C=C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),C.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(H){var U="number";return/^"/.test(H)?/:$/.test(H)?U="key":U="string":/true|false/.test(H)?U="boolean":/null/.test(H)&&(U="null"),'<span class="'+U+'">'+H+"</span>"})}catch{return C}}}},_withScopeId$1=C=>(pushScopeId("data-v-16380620"),C=C(),popScopeId(),C),_hoisted_1$4={class:"knife4j-document"},_hoisted_2$3={class:"knife4j-api-summary"},_hoisted_3$3={class:"knife4j-api-summary-method"},_hoisted_4$3={class:"knife4j-api-summary-path"},_hoisted_5$3={key:0},_hoisted_6$2=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u63A5\u53E3\u63CF\u8FF0 ",-1)),_hoisted_7$1=["innerHTML"],_hoisted_8$1={key:1},_hoisted_9$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u8BF7\u6C42\u793A\u4F8B ",-1)),_hoisted_10$1=["innerHTML"],_hoisted_11$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u8BF7\u6C42\u53C2\u6570 ",-1)),_hoisted_12$1={slot:"requireTemplate","slot-scope":"text"},_hoisted_13$1={key:0,style:{color:"red"}},_hoisted_14$1={key:1},_hoisted_15$1={slot:"typeTemplate","slot-scope":"text"},_hoisted_16$1={slot:"datatypeTemplate","slot-scope":"text, record"},_hoisted_17$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94\u72B6\u6001 ",-1)),_hoisted_18$1={slot:"descriptionTemplate","slot-scope":"text"},_hoisted_19$1=["innerHTML"],_hoisted_20$1={key:2},_hoisted_21$1={key:0},_hoisted_22$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94Header ",-1)),_hoisted_23$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94\u53C2\u6570 ",-1)),_hoisted_24$1=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94\u793A\u4F8B ",-1)),_hoisted_25$1={key:1,class:"api-editor-show"},_hoisted_26=["innerHTML"],_hoisted_27={key:3},_hoisted_28={key:0},_hoisted_29=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94Header ",-1)),_hoisted_30=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94\u53C2\u6570 ",-1)),_hoisted_31=_withScopeId$1(()=>createBaseVNode("div",{class:"api-title"}," \u54CD\u5E94\u793A\u4F8B ",-1)),_hoisted_32={key:1,class:"api-editor-show"},_hoisted_33=["innerHTML"];function _sfc_render$3(C,H,U,W,G,X){const Z=__unplugin_components_1$1,Q=__unplugin_components_5$1,ee=resolveComponent("data-type"),ie=__unplugin_components_5,te=__unplugin_components_3,ne=Tabs;return openBlock(),createElementBlock("div",_hoisted_1$4,[createVNode(Z,null,{default:withCtx(()=>[createVNode(Z,{id:U.api.operationId,class:"knife4j-api-title"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(U.api.summary),1)]),_:1},8,["id"]),createVNode(Z,{class:normalizeClass("knife4j-api-"+U.api.methodType.toLowerCase())},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("span",_hoisted_3$3,toDisplayString$1(U.api.methodType),1),createBaseVNode("span",_hoisted_4$3,toDisplayString$1(U.api.showUrl),1)])]),_:1},8,["class"]),createVNode(Z,{class:"knife4j-api-row"},{default:withCtx(()=>[createVNode(Q,{span:12},{default:withCtx(()=>[createVNode(Z,null,{default:withCtx(()=>[createVNode(Q,{class:"api-basic-title",span:6},{default:withCtx(()=>[createTextVNode("\u8BF7\u6C42\u6570\u636E\u7C7B\u578B")]),_:1}),createTextVNode(" "+toDisplayString$1(U.api.consumes),1)]),_:1})]),_:1}),createVNode(Q,{span:12},{default:withCtx(()=>[createVNode(Z,null,{default:withCtx(()=>[createVNode(Q,{class:"api-basic-title",span:6},{default:withCtx(()=>[createTextVNode("\u54CD\u5E94\u6570\u636E\u7C7B\u578B")]),_:1}),createTextVNode(" "+toDisplayString$1(U.api.produces),1)]),_:1})]),_:1})]),_:1})]),_:1}),U.api.description?(openBlock(),createElementBlock("div",_hoisted_5$3,[_hoisted_6$2,U.api.description?(openBlock(),createElementBlock("div",{key:0,innerHTML:U.api.description,class:"api-body-desc"},null,8,_hoisted_7$1)):createCommentVNode("",!0)])):createCommentVNode("",!0),U.api.requestValue?(openBlock(),createElementBlock("div",_hoisted_8$1,[_hoisted_9$1,createBaseVNode("pre",{class:"api-editor-show",innerHTML:X.formaterJson(U.api.requestValue)},null,8,_hoisted_10$1)])):createCommentVNode("",!0),_hoisted_11$1,createVNode(ie,{defaultExpandAllRows:"",columns:G.columns,dataSource:G.reqParameters,rowKey:X.genUnionTableKey,size:"small",pagination:G.page},{default:withCtx(()=>[createBaseVNode("template",_hoisted_12$1,[C.text?(openBlock(),createElementBlock("span",_hoisted_13$1,toDisplayString$1(C.text.toLocaleString()),1)):(openBlock(),createElementBlock("span",_hoisted_14$1,toDisplayString$1(C.text.toLocaleString()),1))]),createBaseVNode("template",_hoisted_15$1,[createBaseVNode("span",{class:normalizeClass("knife4j-request-"+C.text)},toDisplayString$1(C.text),3)]),createBaseVNode("template",_hoisted_16$1,[createVNode(ee,{text:C.text,record:C.record},null,8,["text","record"])])]),_:1},8,["columns","dataSource","rowKey","pagination"]),_hoisted_17$1,createVNode(ie,{defaultExpandAllRows:G.expanRows,columns:G.responseStatuscolumns,dataSource:U.api.responseCodes,rowKey:"code",size:"small",pagination:G.page},{default:withCtx(()=>[createBaseVNode("template",_hoisted_18$1,[createBaseVNode("div",{innerHTML:C.text},null,8,_hoisted_19$1)])]),_:1},8,["defaultExpandAllRows","columns","dataSource","pagination"]),U.api.multipartResponseSchema?(openBlock(),createElementBlock("div",_hoisted_20$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(G.multipCodeDatas,ae=>(openBlock(),createBlock(ne,{key:ae.code},{default:withCtx(()=>[createVNode(te,{tab:ae.code},{default:withCtx(()=>[ae.responseHeaderParameters?(openBlock(),createElementBlock("div",_hoisted_21$1,[_hoisted_22$1,createVNode(ie,{defaultExpandAllRows:G.expanRows,columns:G.responseHeaderColumns,dataSource:ae.responseHeaderParameters,rowKey:"id",size:"small",pagination:G.page},null,8,["defaultExpandAllRows","columns","dataSource","pagination"])])):createCommentVNode("",!0),_hoisted_23$1,createVNode(ie,{defaultExpandAllRows:G.expanRows,columns:G.responseParametersColumns,dataSource:ae.data,rowKey:"id",size:"small",pagination:G.page},null,8,["defaultExpandAllRows","columns","dataSource","pagination"]),_hoisted_24$1,ae.responseBasicType?(openBlock(),createElementBlock("div",_hoisted_25$1,toDisplayString$1(ae.responseText),1)):(openBlock(),createElementBlock("pre",{key:2,class:"api-editor-show",innerHTML:X.formaterJson(ae.responseValue)},null,8,_hoisted_26))]),_:2},1032,["tab"])]),_:2},1024))),128))])):(openBlock(),createElementBlock("div",_hoisted_27,[U.api.responseHeaderParameters?(openBlock(),createElementBlock("div",_hoisted_28,[_hoisted_29,createVNode(ie,{defaultExpandAllRows:G.expanRows,columns:G.responseHeaderColumns,dataSource:U.api.responseHeaderParameters,rowKey:"id",size:"small",pagination:G.page},null,8,["defaultExpandAllRows","columns","dataSource","pagination"])])):createCommentVNode("",!0),_hoisted_30,createVNode(ie,{defaultExpandAllRows:G.expanRows,columns:G.responseParametersColumns,dataSource:G.multipData.data,rowKey:"id",size:"small",pagination:G.page},null,8,["defaultExpandAllRows","columns","dataSource","pagination"]),_hoisted_31,G.multipData.responseBasicType?(openBlock(),createElementBlock("div",_hoisted_32,toDisplayString$1(G.multipData.responseText),1)):(openBlock(),createElementBlock("pre",{key:2,class:"api-editor-show",innerHTML:X.formaterJson(G.multipData.responseValue)},null,8,_hoisted_33))]))])}const OnlineDocument=_export_sfc(_sfc_main$4,[["render",_sfc_render$3],["__scopeId","data-v-16380620"]]),OnlineDocument$1=Object.freeze(Object.defineProperty({__proto__:null,default:OnlineDocument},Symbol.toStringTag,{value:"Module"})),_sfc_main$3={components:{OnlineDocument:defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>OnlineDocument$1),void 0,import.meta.url))},props:{instance:{type:Object,required:!0},tags:{type:Array,required:!0}},data(){return{hideShow:!0}},methods:{}},_hoisted_1$3={class:"title"},_hoisted_2$2={class:"description"},_hoisted_3$2=createBaseVNode("h3",null,"\u7B80\u4ECB",-1),_hoisted_4$2=["innerHTML"],_hoisted_5$2=createBaseVNode("h3",null,"\u4F5C\u8005",-1),_hoisted_6$1=["innerHTML"],_hoisted_7=createBaseVNode("h3",null,"\u7248\u672C",-1),_hoisted_8=["innerHTML"],_hoisted_9=createBaseVNode("h3",null,"host",-1),_hoisted_10=["innerHTML"],_hoisted_11=createBaseVNode("h3",null,"basePath",-1),_hoisted_12=["innerHTML"],_hoisted_13=createBaseVNode("h3",null,"\u670D\u52A1Url",-1),_hoisted_14=["innerHTML"],_hoisted_15=createBaseVNode("h3",null,"\u5206\u7EC4\u540D\u79F0",-1),_hoisted_16=["innerHTML"],_hoisted_17=createBaseVNode("h3",null,"\u5206\u7EC4url",-1),_hoisted_18=["innerHTML"],_hoisted_19=createBaseVNode("h3",null,"\u5206\u7EC4location",-1),_hoisted_20=["innerHTML"],_hoisted_21=createBaseVNode("h3",null,"\u63A5\u53E3\u7EDF\u8BA1\u4FE1\u606F",-1),_hoisted_22=createBaseVNode("li",null,[createBaseVNode("a",{href:"#knife4jDocument"},"\u4E3B\u9875")],-1),_hoisted_23=["href"],_hoisted_24=["href"],_hoisted_25=["id"];function _sfc_render$2(C,H,U,W,G,X){const Z=__unplugin_components_5$1,Q=__unplugin_components_1$1,ee=__unplugin_components_2$1,ie=__unplugin_components_7$1,te=Button$1;return openBlock(),createBlock(Q,null,{default:withCtx(()=>[createVNode(Q,null,{default:withCtx(()=>[createVNode(Z,{span:24},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$3,[createBaseVNode("h2",null,toDisplayString$1(U.instance.title),1)]),createBaseVNode("div",_hoisted_2$2,[createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_3$2]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.description},null,8,_hoisted_4$2)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_5$2]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.contact},null,8,_hoisted_6$1)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_7]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.version},null,8,_hoisted_8)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_9]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.host},null,8,_hoisted_10)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_11]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.basePath},null,8,_hoisted_12)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_13]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.termsOfService},null,8,_hoisted_14)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_15]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.name},null,8,_hoisted_16)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_17]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.url},null,8,_hoisted_18)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_19]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:U.instance.location},null,8,_hoisted_20)]),_:1})]),_:1}),createVNode(ee,{class:"divider"}),createVNode(Q,{class:"content-line"},{default:withCtx(()=>[createVNode(Z,{span:5},{default:withCtx(()=>[_hoisted_21]),_:1}),createVNode(Z,{span:19},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(U.instance.pathArrs,ne=>(openBlock(),createBlock(Q,{class:"content-line-count",key:ne.method},{default:withCtx(()=>[createVNode(Z,{span:3},{default:withCtx(()=>[createTextVNode(toDisplayString$1(ne.method),1)]),_:2},1024),createVNode(Z,{span:2},{default:withCtx(()=>[createVNode(ie,{color:"#108ee9"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(ne.count),1)]),_:2},1024)]),_:2},1024),createVNode(ee,{class:"divider-count"})]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})]),_:1}),createVNode(Q,{id:"knife4j-doc-m",class:"knife4j-doc-m"},{default:withCtx(()=>[createVNode(Q,{style:{float:"right",width:"57px","z-index":"10000",overflow:"hidden"}},{default:withCtx(()=>[createVNode(te,{type:"link",id:"btnHide"},{default:withCtx(()=>[createTextVNode("\u9690\u85CF")]),_:1})]),_:1}),G.hideShow?(openBlock(),createBlock(Q,{key:0,id:"knife4jDoc"},{default:withCtx(()=>[createBaseVNode("ul",null,[_hoisted_22,(openBlock(!0),createElementBlock(Fragment,null,renderList(U.instance.tags,ne=>(openBlock(),createElementBlock("li",{key:ne.name},[createBaseVNode("a",{href:"#"+ne.name},toDisplayString$1(ne.name),9,_hoisted_23),createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ne.childrens,ae=>(openBlock(),createElementBlock("li",{key:ae.id},[createBaseVNode("a",{href:"#"+ae.operationId},toDisplayString$1(ae.summary),9,_hoisted_24)]))),128))])]))),128))])]),_:1})):createCommentVNode("",!0)]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(U.tags,ne=>(openBlock(),createBlock(Q,{key:ne.name},{default:withCtx(()=>[createBaseVNode("h1",{id:ne.name},toDisplayString$1(ne.name),9,_hoisted_25)]),_:2},1024))),128))]),_:1})}const DownloadHtml=_export_sfc(_sfc_main$3,[["render",_sfc_render$2]]),OfficelineDocument_vue_vue_type_style_index_0_scoped_8dd57c38_lang="",_sfc_main$2={props:{data:{type:Object}},components:{OnlineDocument,DownloadHtml,FileMarkdownOutlined:FileMarkdownOutlined$1,FileTextOutlined:FileTextOutlined$1,FileWordOutlined:FileWordOutlined$1},setup(){const C=useGlobalsStore(),H=computed(()=>C.language),U=computed(()=>C.swagger),W=computed(()=>C.swaggerCurrentInstance),G=useknife4jModels(),{messages:X}=useI18n();return{language:H,swagger:U,swaggerCurrentInstance:W,Knife4jModels:G,messages:X,kloading:{show(Q){C.showLoading(Q)},destroy(){C.destroyLoading()}}}},data(){return{deepTagFlag:!1,tags:[],downloadType:"DownloadHtml",markdownText:"",expanRows:!0,downloadHtmlFlag:!1,downloadPDF:!1,modal:null,page:!1}},updated(){var C=this;C.downloadType=="DownloadHtml"&&this.downloadHtmlFlag&&setTimeout(()=>{C.downloadHtml(),C.kloading.destroy()},1500)},created(){this.initModels()},watch:{language:function(C,H){this.markdownText=null}},methods:{getCurrentI18nInstance(){return this.messages[this.language]},initModels(){var C=constants$1.globalTreeTableModelParams+this.data.instance.id,H=this.data.instance.swaggerTreeTableModels;this.Knife4jModels.setValue(C,H)},deepTags(){var C=this,H=constants$1.globalTreeTableModelParams+this.data.instance.id;if(!this.deepTagFlag){var U=this.data.instance.tags;utils$c.arrNotEmpty(U)&&U.forEach(function(W){utils$c.arrNotEmpty(W.childrens)&&W.childrens.forEach(function(G){G.init||C.swagger.initApiInfoAsync(G);var X=[];G.parameters!=null&&G.parameters.length>0&&(X=X.concat(G.parameters)),G.refTreetableparameters!=null&&G.refTreetableparameters.length>0&&G.refTreetableparameters.forEach(function(Q){X=X.concat(Q.params)}),X!=null&&X.sort(function(Q,ee){return ee.require-Q.require});var Z=[];utils$c.arrNotEmpty(X)&&X.forEach(function(Q){if(Q.pid=="-1"){if(Q.children=[],Q.schema){var ee=Q.schemaValue;if(utils$c.checkUndefined(ee)&&C.Knife4jModels.exists(H,ee)){var ie=C.Knife4jModels.getByModelName(H,ee);if(ie=C.swagger.analysisDefinitionRefTableModel(C.data.instance.id,ie),utils$c.checkUndefined(ie)){var te=ie.params;utils$c.arrNotEmpty(te)&&te.forEach(function(ne){var ae=C.copyNewParameter(ne);ae.pid=Q.id,Q.children.push(ae)})}}}utils$c.arrNotEmpty(Q.children)||(Q.children=null),Z.push(Q)}}),G.reqParameters=Z,C.deepResponseParameters(G)})}),this.tags=U,this.deepTagFlag=!0}},deepResponseParameters(C){var H=this,U=constants$1.globalTreeTableModelParams+this.data.instance.id;C.multipCode=C.multipartResponseSchema,C.multipCodeDatas=[],C.multipData={};let W=C.responseCodes;W!=null&&W!=null&&W.forEach(function(G){if(G.schema!=null&&G.schema!=null){var X=[];G.responseParameters!=null&&G.responseParameters.length>0&&(X=X.concat(G.responseParameters)),G.responseTreetableRefParameters!=null&&G.responseTreetableRefParameters.length>0&&G.responseTreetableRefParameters.forEach(function(ee){X=X.concat(ee.params)});let Q=[];X!=null&&X.length>0&&X.forEach(function(ee){if(ee.pid=="-1"){if(ee.children=[],ee.schema){var ie=ee.schemaValue;if(utils$c.checkUndefined(ie)&&H.Knife4jModels.exists(U,ie)){var te=H.Knife4jModels.getByModelName(U,ie);if(te=H.swagger.analysisDefinitionRefTableModel(H.data.instance.id,te),utils$c.checkUndefined(te)){var ne=te.params;utils$c.arrNotEmpty(ne)&&ne.forEach(function(ae){var oe=H.copyNewParameter(ae);oe.pid=ee.id,ee.children.push(oe)})}}}ee.children.length==0&&(ee.children=null),Q.push(ee)}});var Z={...G,data:Q};C.multipCode||(C.multipData=Z),C.multipCodeDatas.push(Z)}})},copyNewParameter(C){var H=C.children;utils$c.checkUndefined(H)||(H=null);var U={children:H,childrenTypes:C.childrenTypes,def:C.def,description:C.description,enum:C.enum,example:C.example,id:C.id,ignoreFilterName:C.ignoreFilterName,in:C.in,level:C.level,name:C.name,parentTypes:C.parentTypes,pid:C.pid,readOnly:C.readOnly,require:C.require,schema:C.schema,schemaValue:C.schemaValue,show:C.show,txtValue:C.txtValue,type:C.type,validateInstance:C.validateInstance,validateStatus:C.validateStatus,value:C.value};return U},triggerDownloadOpenAPI(){var C=this.swaggerCurrentInstance.name,H=this.swaggerCurrentInstance.swaggerData,U=utils$c.json5stringify(H),W=document.createElement("a"),G={},X=C+"_OpenAPI.json",Z=window.URL.createObjectURL(new Blob([U],{type:(G.type||"text/plain")+";charset="+(G.encoding||"utf-8")}));W.href=Z,W.download=X||"file",W.click(),window.URL.revokeObjectURL(Z)},triggerDownloadPDF(){const C=this.getCurrentI18nInstance().message.offline.imple;message$1.info(C)},triggerDownloadWord(){const C=this,H=this.getCurrentI18nInstance().message.offline.word;C.kloading.show({text:H}),this.deepTags();const U=this.data.instance.id+"markdownFiles";localStore.getItem(U).then(W=>{var G=C.data.instance.markdownFiles;utils$c.checkUndefined(W)&&utils$c.arrNotEmpty(G)&&G.forEach(Q=>{utils$c.arrNotEmpty(Q.children)&&Q.children.forEach(ee=>{var ie=W[ee.id];utils$c.strNotBlank(ie)&&(ee.content=ie)})});var X={title:C.data.instance.title,description:C.data.instance.title,contact:C.data.instance.contact,version:C.data.instance.version,host:C.data.instance.host,basePath:C.data.instance.basePath,termsOfService:C.data.instance.termsOfService,name:C.data.instance.name,url:C.data.instance.url,location:C.data.instance.location,pathArrs:C.data.instance.pathArrs,tags:C.tags,markdownFiles:G};let Z="";this.getCurrentI18nInstance().lang==="zh"?Z=wordText(X):Z=wordTextUS(X),setTimeout(()=>{C.downloadWord(Z),C.kloading.destroy()},1e3)})},triggerDownloadMarkdown(){var C=this;const H=this.getCurrentI18nInstance().message.offline.markdown;C.kloading.show({text:H}),this.deepTags();const U=this.data.instance.id+"markdownFiles";localStore.getItem(U).then(W=>{const G=C.data.instance.markdownFiles;utils$c.checkUndefined(W)&&utils$c.arrNotEmpty(G)&&G.forEach(Z=>{utils$c.arrNotEmpty(Z.children)&&Z.children.forEach(Q=>{var ee=W[Q.id];utils$c.strNotBlank(ee)&&(Q.content=ee)})});var X={title:C.data.instance.title,description:C.data.instance.title,contact:C.data.instance.contact,version:C.data.instance.version,host:C.data.instance.host,basePath:C.data.instance.basePath,termsOfService:C.data.instance.termsOfService,name:C.data.instance.name,url:C.data.instance.url,location:C.data.instance.location,pathArrs:C.data.instance.pathArrs,tags:C.tags,markdownFiles:G};(this.markdownText==null||this.markdownText=="")&&(this.getCurrentI18nInstance().lang==="zh"?this.markdownText=markdownText(X):this.markdownText=markdownTextUS(X)),setTimeout(()=>{C.downloadMarkdown(C.markdownText),C.kloading.destroy()},1e3)})},triggerDownloadHtml(){let C=this;C.downloadType="DownloadHtml";var H=this.getCurrentI18nInstance().message.offline.html;C.kloading.show({text:H}),C.deepTags(),setTimeout(()=>{C.kloading.destroy(),C.downloadHtml()},1e3)},downloadWord(C){var H=document.createElement("a"),U={},W=this.data.instance.name+".doc",G=window.URL.createObjectURL(new Blob([C],{type:(U.type||"application/msword")+";charset="+(U.encoding||"utf-8")}));H.href=G,H.download=W||"file",H.click(),window.URL.revokeObjectURL(G)},downloadMarkdown(C){var H=document.createElement("a"),U={},W=this.data.instance.name+".md",G=window.URL.createObjectURL(new Blob([C],{type:(U.type||"text/plain")+";charset="+(U.encoding||"utf-8")}));H.href=G,H.download=W||"file",H.click(),window.URL.revokeObjectURL(G)},downloadHtml(){var C=document.createElement("a"),H=this.getHtmlContent(this.data.instance.title),U={},W=this.data.instance.name+".html",G=window.URL.createObjectURL(new Blob([H],{type:(U.type||"text/plain")+";charset="+(U.encoding||"utf-8")}));C.href=G,C.download=W||"file",C.click(),window.URL.revokeObjectURL(G)},deepRequestParameters(C){var H=null;return utils$c.arrNotEmpty(C.children)&&(H=new Array,C.children.forEach(U=>{var W=this.deepRequestParameters(U);H.push({name:U.name,children:W,description:U.description,in:U.in,require:U.require,type:U.type,schemaValue:U.schemaValue})})),H},deepResponseStaticParameters(C){var H=null;return utils$c.arrNotEmpty(C.children)&&(H=new Array,C.children.forEach(U=>{var W=this.deepResponseStaticParameters(U);H.push({name:U.name,children:W,description:U.description,id:U.id,type:U.type,schemaValue:U.schemaValue})})),H},getHtmlData(){var C=this,H=[].concat(C.tags);H.forEach(W=>{if(W.description=null,utils$c.checkUndefined(W.childrens)&&utils$c.arrNotEmpty(W.childrens)){var G=[];W.childrens.forEach(X=>{var Z=null;utils$c.arrNotEmpty(X.reqParameters)&&(Z=new Array,X.reqParameters.forEach(ne=>{var ae=this.deepRequestParameters(ne);Z.push({name:ne.name,children:ae,description:ne.description,in:ne.in,require:ne.require,type:ne.type,schemaValue:ne.schemaValue})}));var Q=null;utils$c.arrNotEmpty(X.responseCodes)&&(Q=new Array,X.responseCodes.forEach(ne=>{Q.push({code:ne.code,description:ne.description,schema:ne.schema})}));var ee=null;utils$c.arrNotEmpty(X.multipCodeDatas)&&(ee=new Array,X.multipCodeDatas.forEach(ne=>{var ae=null;utils$c.arrNotEmpty(ne.responseHeaderParameters)&&(ae=new Array,ne.responseHeaderParameters.forEach(se=>{ae.push({id:se.id,name:se.name,description:se.description,type:se.type})}));var oe=null;utils$c.arrNotEmpty(ne.data)&&(oe=new Array,ne.data.forEach(se=>{var le=this.deepResponseStaticParameters(se);oe.push({name:se.name,children:le,description:se.description,id:se.id,type:se.type,schemaValue:se.schemaValue})})),ee.push({code:ne.code,responseHeaderParameters:ae,data:oe,responseBasicType:ne.responseBasicType,responseText:ne.responseText,responseValue:ne.responseValue})}));var ie=null;if(utils$c.arrNotEmpty(X.responseHeaderParameters)&&(ie=new Array,X.responseHeaderParameters.forEach(ne=>{ie.push({id:ne.id,name:ne.name,description:ne.description,type:ne.type})})),utils$c.checkUndefined(X.multipData)){var te=null;utils$c.checkUndefined(X.multipData.data)&&utils$c.arrNotEmpty(X.multipData.data)&&(te=new Array,X.multipData.data.forEach(ne=>{var ae=this.deepResponseStaticParameters(ne);te.push({name:ne.name,children:ae,description:ne.description,id:ne.id,type:ne.type,schemaValue:ne.schemaValue})})),X.multipData.responseBasicType,X.multipData.responseText,X.multipData.responseValue}G.push({id:X.id,operationId:X.operationId,deprecated:X.deprecated,summary:X.summary,methodType:X.methodType,showUrl:X.showUrl,consumes:X.consumes,produces:X.produces,author:X.author,description:X.description,requestValue:X.requestValue,reqParameters:Z,responseCodes:Q,multipartResponseSchema:X.multipartResponseSchema,multipCodeDatas:ee,responseHeaderParameters:ie,multipData:X.multipData})}),W.childrens=G}});var U={instance:{title:C.data.instance.title,description:C.data.instance.title,contact:C.data.instance.contact,version:C.data.instance.version,host:C.data.instance.host,basePath:C.data.instance.basePath,termsOfService:C.data.instance.termsOfService,name:C.data.instance.name,url:C.data.instance.url,location:C.data.instance.location,pathArrs:C.data.instance.pathArrs},hideShow:!0,tags:H};return U},getHtmlContent(C){""+this.data.instance.id,(C==null||C==null||C=="")&&(C="Knife4j-API Documenation");var H=JSON.stringify(this.getHtmlData());return this.getCurrentI18nInstance().lang==="zh"?getDocumentVueTemplates(C,resumecss,H):getDocumentVueTemplatesUS(C,resumecss,H)}}},_withScopeId=C=>(pushScopeId("data-v-8dd57c38"),C=C(),popScopeId(),C),_hoisted_1$2={class:"markdown-row"},_hoisted_2$1={class:"globalparameters"},_hoisted_3$1={class:"gptips"},_hoisted_4$1=_withScopeId(()=>createBaseVNode("span",null,"OpenAPI",-1)),_hoisted_5$1=["id"];function _sfc_render$1(C,H,U,W,G,X){const Z=resolveComponent("FileMarkdownOutlined"),Q=Button$1,ee=resolveComponent("FileTextOutlined"),ie=resolveComponent("FileWordOutlined"),te=__unplugin_components_1$1,ne=LayoutContent;return openBlock(),createBlock(ne,{class:"knife4j-body-content"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,toDisplayString$1(C.$t("offline.des")),1)]),createVNode(te,{class:"knife4j-download-button"},{default:withCtx(()=>[createVNode(Q,{onClick:X.triggerDownloadMarkdown},{default:withCtx(()=>[createVNode(Z),createBaseVNode("span",null,toDisplayString$1(C.$t("offline.download.markdown")),1)]),_:1},8,["onClick"]),createVNode(Q,{type:"default",onClick:X.triggerDownloadHtml},{default:withCtx(()=>[createVNode(ee),createBaseVNode("span",null,toDisplayString$1(C.$t("offline.download.html")),1)]),_:1},8,["onClick"]),createVNode(Q,{type:"default",onClick:X.triggerDownloadWord},{default:withCtx(()=>[createVNode(ie),createBaseVNode("span",null,toDisplayString$1(C.$t("offline.download.word")),1)]),_:1},8,["onClick"]),createVNode(Q,{type:"default",onClick:X.triggerDownloadOpenAPI},{default:withCtx(()=>[createVNode(ee),_hoisted_4$1]),_:1},8,["onClick"])]),_:1}),U.data.instance?(openBlock(),createElementBlock("div",{key:0,class:"htmledit_views",id:"content_views"+U.data.instance.id},[(openBlock(),createBlock(resolveDynamicComponent(G.downloadType),{instance:U.data.instance,tags:G.tags},null,8,["instance","tags"]))],8,_hoisted_5$1)):createCommentVNode("",!0)])]),_:1})}const OfficelineDocument=_export_sfc(_sfc_main$2,[["render",_sfc_render$1],["__scopeId","data-v-8dd57c38"]]),OfficelineDocument$1=Object.freeze(Object.defineProperty({__proto__:null,default:OfficelineDocument},Symbol.toStringTag,{value:"Module"})),_sfc_main$1={name:"APIDoc",components:{Document:defineAsyncComponent(()=>__vitePreload(()=>import("./Document-84f06246.js"),["./Document-84f06246.js","./clipboard-51434f9e.js","..\\css\\Document-2394b5d6.css"],import.meta.url)),Debug:defineAsyncComponent(()=>__vitePreload(()=>import("./Debug-35ad824f.js"),["./Debug-35ad824f.js","..\\css\\Debug-9664381c.css"],import.meta.url)),OpenApi:defineAsyncComponent(()=>__vitePreload(()=>import("./OpenApi-a68b55e6.js"),["./OpenApi-a68b55e6.js","./clipboard-51434f9e.js","./ext-language_tools-c709ecd7.js","./CopyOutlined-21db004f.js"],import.meta.url)),FileTextOutlined:FileTextOutlined$1},props:{data:{type:Object}},data(){return{api:null,swaggerInstance:null,debugSupport:!1}},setup(){const C=useGlobalsStore(),H=computed(()=>C.swagger),U=computed(()=>C.settings);return{swagger:H,settings:U}},mounted(){},beforeCreate(){},created(){let C=this.$route.params,H=this.data.instance,U=null;H.paths.forEach(function(W){W.operationId==C.summary&&(U=W)}),U.init||this.swagger.initApiInfoAsync(U),this.storeCacheApiAddApiInfo(U,H.groupId),this.swaggerInstance=H,this.api=U,this.debugSupport=this.settings.enableDebug},methods:{onTabChange(C,H){this[H]=C},storeCacheApiAddApiInfo(C,H){(C.hasNew||C.hasChanged)&&localStore.getItem(constants$1.globalGitApiVersionCaches).then(U=>{utils$c.strNotBlank(U)&&U.forEach(W=>{if(W.id==H){if(C.hasNew)W.cacheApis.push(C.id);else if(C.hasChanged){var G=W.updateApis;G!=null&&G!=null?G.hasOwnProperty(C.id)&&(W.updateApis[C.id].versionId=C.versionId,W.updateApis[C.id].lastTime=new Date):(W.updateApis={},W.updateApis[C.id].url=C.url,W.updateApis[C.id].versionId=C.versionId,W.updateApis[C.id].lastTime=new Date)}}}),localStore.setItem(constants$1.globalGitApiVersionCaches,U)})}}},_hoisted_1$1=createBaseVNode("span",null,"Open",-1);function _sfc_render(C,H,U,W,G,X){const Z=resolveComponent("my-icon"),Q=resolveComponent("Document"),ee=__unplugin_components_3,ie=resolveComponent("Debug"),te=resolveComponent("file-text-outlined"),ne=resolveComponent("OpenApi"),ae=Tabs,oe=__unplugin_components_1$1,se=LayoutContent;return openBlock(),createBlock(se,{class:"knife4j-body-content"},{default:withCtx(()=>[G.debugSupport?(openBlock(),createBlock(oe,{key:0,style:{display:"block"}},{default:withCtx(()=>[createVNode(ae,{defaultActiveKey:"doc",tabPosition:"left",class:"api-tab"},{default:withCtx(()=>[createVNode(ee,{key:"doc"},{tab:withCtx(()=>[createVNode(Z,{type:"icon-wendang"}),createBaseVNode("span",null,toDisplayString$1(C.$t("doc.title")),1)]),default:withCtx(()=>[createVNode(Q,{api:G.api,swaggerInstance:G.swaggerInstance},null,8,["api","swaggerInstance"])]),_:1}),createVNode(ee,{key:"debug"},{tab:withCtx(()=>[createVNode(Z,{type:"icon-debug"}),createBaseVNode("span",null,toDisplayString$1(C.$t("debug.title")),1)]),default:withCtx(()=>[createVNode(ie,{api:G.api,swaggerInstance:G.swaggerInstance},null,8,["api","swaggerInstance"])]),_:1}),W.settings.enableOpenApi?(openBlock(),createBlock(ee,{key:"openapi"},{tab:withCtx(()=>[createVNode(te),_hoisted_1$1]),default:withCtx(()=>[createVNode(ne,{api:G.api,swaggerInstance:G.swaggerInstance},null,8,["api","swaggerInstance"])]),_:1})):createCommentVNode("",!0)]),_:1})]),_:1})):(openBlock(),createBlock(oe,{key:1,class:"knife4j-api-readonly",style:{display:"block"}},{default:withCtx(()=>[createVNode(Q,{api:G.api,swaggerInstance:G.swaggerInstance},null,8,["api","swaggerInstance"])]),_:1}))]),_:1})}const ApiInfo=_export_sfc(_sfc_main$1,[["render",_sfc_render]]),index=Object.freeze(Object.defineProperty({__proto__:null,default:ApiInfo},Symbol.toStringTag,{value:"Module"})),_hoisted_1={class:"BasicLayout"},_hoisted_2={class:"knife4j-logo-data",key:"logo"},_hoisted_3={to:"/",style:{float:"left"}},_hoisted_4={class:"knife4j-logo",key:"logo"},_hoisted_5={key:0,to:"/",style:{float:"left"}},_hoisted_6=["src"],_sfc_main={__name:"BasicLayout",setup(C){const U={Main,Othermarkdown,Authorize,GlobalParameters,Settings,SwaggerModels,OfficelineDocument,ApiInfo},W=reactive({i18n:null,logo,documentTitle:"",menuWidth:320,headerClass:"knife4j-header-width",localMenuData:[],collapsed:!1,linkList:[],panels:[],panelIndex:0,activeKey:"",newTabIndex:0,openKeys:[],selectedKeys:[],status:!1,menuVisible:!1,nextUrl:"",nextKey:"",menuItemList:[]}),G=useGlobalsStore(),X=useHeadersStore(),{t:Z,messages:Q,locale:ee}=useI18n(),ie=useRoute();function te(){const Oe=ie.params;let Qe=!1,Xe="zh-CN";if(utils$c.checkUndefined(Oe)){const et=Oe.i18n;utils$c.checkUndefined(et)&&["zh-CN","en-US"].includes(et)&&(Qe=!0,Xe=et)}return{include:Qe,i18n:Xe}}function ne(){const Oe=ie.path;let Qe=!1;return Oe.indexOf("/plus")!=-1&&(Qe=!0),Qe}function ae(Oe){W.i18n=Oe.i18nInstance;const Qe=new SwaggerBootstrapUi(Oe);try{Qe.main(),G.setSwagger(Qe)}catch(Xe){console.error(Xe)}return X.getCurrentUser()}const oe=computed(()=>G.language),se=computed(()=>G.settings);function le(){return W.i18n=Q.value[oe.value],W.i18n}function ce(){const Oe=te();let Qe=Oe.i18n;localStore.getItem(constants$1.globalSettingsKey).then(Xe=>{const et=ve(Xe);et.enableSwaggerBootstrapUi||(et.enableSwaggerBootstrapUi=ne()),et.language=Qe,localStore.setItem(constants$1.globalSettingsKey,et),localStore.getItem(constants$1.globalGitApiVersionCaches).then(We=>{const He=ge(We);Oe.include?(G.setLang(Qe),localStore.setItem(constants$1.globalI18nCache,Qe),ee.value=Qe,W.enableVersion=et.enableVersion,ae({springdoc:!0,baseSpringFox:!0,localStore,settings:et,cacheApis:He,routeParams:ie.params,plus:ne(),i18n:Qe,i18nFlag:Oe.include,configSupport:!1,i18nInstance:le()})):localStore.getItem(constants$1.globalI18nCache).then(Ye=>{utils$c.checkUndefined(Ye)&&(G.setLang(Ye),Qe=Ye),ee.value=Qe,W.enableVersion=et.enableVersion,ae({springdoc:!0,baseSpringFox:!0,localStore,settings:et,cacheApis:He,routeParams:ie.params,plus:ne(),i18n:Qe,i18nFlag:Oe.include,configSupport:!1,i18nInstance:le()})})})})}onUpdated(()=>{});function ue(){le(),W.menuItemList=W.i18n.menu.menuItemList}ce(),ue();function de(){utils$c.arrNotEmpty(W.MenuData)&&W.MenuData.forEach(Oe=>{utils$c.checkUndefined(Oe.i18n)&&(Oe.name=le().menu[Oe.i18n],utils$c.arrNotEmpty(Oe.children)&&Oe.children.forEach(Qe=>{utils$c.checkUndefined(Qe.i18n)&&(Qe.name=le().menu[Qe.i18n])}))})}function ve(Oe){const Qe=W,Xe=constants$1.defaultSettings,et=constants$1.defaultPlusSettings;let We=null;return Oe!=null&&Oe!=null&&Oe!=""?(Qe.plus&&(Oe.enableSwaggerBootstrapUi=et.enableSwaggerBootstrapUi,Oe.enableRequestCache=et.enableRequestCache),We=Object.assign({},Xe,Oe)):Qe.plus?We=et:We=Xe,We}function ge(Oe){let Qe=[];return utils$c.strNotBlank(Oe)&&(Qe=Oe),Qe}const he=Oe=>{console.log(Oe)},me=computed(()=>X.userCurrent),_e=computed(()=>G.currentMenuData),be=computed(()=>G.currentMenuData),pe=computed(()=>G.currentMenuData),fe=computed(()=>G.swagger),ye=computed(()=>G.swaggerCurrentInstance),$e=computed(()=>G.serviceOptions),we=computed(()=>G.defaultServiceOption),Se=()=>{W.localMenuData=be.value};watch(()=>oe.value,()=>{ue(),de()});let Te=!1;watch(()=>pe.value,()=>{W.localMenuData=G.currentMenuData,Te||(De(),Te=!0)}),watch(()=>ye.value,()=>{let Oe=ye.value.title;Oe||(Oe="Knife4j \u63A5\u53E3\u6587\u6863"),W.documentTitle=Oe,window.document.title=Oe}),watch(()=>ie.fullPath,()=>{Ge()}),onUpdated(()=>{De()});function xe(Oe){if(utils$c.strNotBlank(Oe)){const Qe=[],Xe=".*?"+Oe+".*";_e.value.forEach(function(et){if(utils$c.arrNotEmpty(et.children)){const We=[];if(et.children.forEach(function(He){const Ye=utils$c.searchMatch(Xe,He.url),nt=utils$c.searchMatch(Xe,He.name),tt=utils$c.searchMatch(Xe,He.description);(Ye||nt||tt)&&We.push(He)}),We.length>0){const He={groupName:et.groupName,groupId:et.groupId,key:et.key,name:et.name,icon:et.icon,path:et.path,hasNew:et.hasNew,authority:et.authority,children:We};Qe.filter(Ye=>Ye.key===He.key).length==0&&Qe.push(He)}}}),W.localMenuData=Qe}}function ke(Oe,Qe){let Xe=fe.value.selectInstanceByGroupId(Oe);fe.value.analysisApi(Xe),G.setDefaultService(Oe),setTimeout(()=>{ze()},500)}function Ie(Oe,Qe){let Xe=Me(Qe);switch(Oe){case"1":Be(Xe);break;case"2":Ne(Xe);break;case"3":Fe(Xe);break}}function Ae(Oe){Me(Oe.target)!==null&&(Oe.preventDefault(),W.menuVisible=!0)}function Me(Oe,Qe){if(Qe=Qe||0,Qe>2)return null;let Xe=Oe.getAttribute("pagekey");return Xe=Xe||(Oe.previousElementSibling?Oe.previousElementSibling.getAttribute("pagekey"):null),Xe||(Oe.firstElementChild?Me(Oe.firstElementChild,++Qe):null)}function Fe(Oe){W.linkList=["kmain",Oe];let Qe=[];W.panels.forEach(function(Xe){(Xe.key=="kmain"||Xe.key==Oe)&&Qe.push(Xe)}),W.panels=Qe,W.activeKey=Oe}function Be(Oe){if(W.linkList.length>2){let Qe=W.linkList.indexOf(Oe),Xe=W.linkList.slice(Qe),et=["kmain"].concat(Xe);W.linkList=et;let We=W.panels[0],He=[];He.push(We);let Ye=W.panels.slice(Qe);W.panels=He.concat(Ye),W.activeKey=Oe}}function Ne(Oe){W.activeKey=Oe;let Qe=W.linkList.indexOf(Oe),Xe=[],et=[];const We=W.linkList,He=W.panels;for(let Ye=0;Ye<=Qe;Ye++)Xe.push(We[Ye]),et.push(He[Ye]);W.linkList=Xe,W.panels=et}function Ve(Oe,Qe){W[Oe](Qe)}function Le(){let Oe=ie.path;return Oe.startsWith("/plus")&&(Oe="/plus"),Oe.startsWith("/home")&&(Oe="/home"),Oe=="/plus"&&(Oe="/home"),Oe}function De(){const Oe=W.panels,Qe=Le();if(W.nextUrl===Qe)return!1;const Xe=findComponentsByPath(Qe,fe.value.globalMenuDatas);Xe!=null?(W.panels.filter(He=>He.key=="kmain")==0&&(Oe.push({title:le().menu.home,component:"Main",content:"Main",key:"kmain",instance:ye.value,closable:!1}),W.linkList.push("kmain")),Oe.map(He=>He.key).indexOf(Xe.key)==-1&&(Oe.push({title:Xe.tabName?Xe.tabName:Xe.name,content:Xe.component,key:Xe.key,instance:ye.value,closable:Xe.key!="kmain"}),W.linkList.push(Xe.key),W.panels=Oe),W.activeKey=Xe.key,W.nextUrl=Qe,W.nextKey=Xe.key,Je(W.activeKey)):(W.activeKey="kmain",W.nextKey="kmain",ze(),Je(W.activeKey))}function Je(Oe){W.panels.forEach(Qe=>{Qe.key==Oe?Qe.instance=ye.value:Qe.instance=null})}function ze(){W.panels.forEach(function(Oe){Oe.key=="kmain"&&(Oe.instance=ye.value)})}function Ge(){let Oe;const Qe=ie.path,Xe=W.collapsed,et=urlToList(Qe),We=findComponentsByPath(Qe,pe.value);Xe||(et.length==2?(Oe=findComponentsByPath(et[0],pe.value),Oe!=null&&(W.openKeys=[Oe.key])):et.length==3?(Oe=findComponentsByPath(et[1],pe.value),Oe!=null&&(W.openKeys=[Oe.key])):We!=null&&(W.openKeys=[We.key])),We!=null&&(W.selectedKeys=[We.key])}function qe(){const Oe=ie.path,Qe=urlToList(Oe),Xe=findComponentsByPath(Oe,pe.value);if(Qe.length==2){const et=findComponentsByPath(Qe[0],pe.value);et!=null&&(W.openKeys=[et.key])}else Xe!=null&&Xe!=null&&(W.selectedKeys=[Xe.key])}function Ke(Oe,Qe){W[Qe](Oe)}const Ee=useRouter();function Ce(Oe){const Qe=findMenuByKey(Oe,fe.value.globalMenuDatas);if(Qe!=null){const Xe=Qe.path;Ee.push({path:Xe})}else Ee.push({path:"/"})}function Pe(Oe){const Qe=W.collapsed;W.collapsed=!Qe,qe(),setTimeout(()=>{Qe?(W.headerClass="knife4j-header-width",W.menuWidth=320):(W.headerClass="knife4j-header-width-collapsed",W.menuWidth=80)},10)}function Re(Oe){let Qe;Oe.length>1?(Oe.length>2?Qe=[Oe[Oe.length-1]]:Oe[1].indexOf(Oe[0])>-1?Qe=[Oe[0],Oe[1]]:Qe=[Oe[Oe.length-1]],W.openKeys=Qe):W.openKeys=Oe}function Ze({item:Oe,key:Qe,selectedKeys:Xe}){W.selectedKeys=Xe}return(Oe,Qe)=>{const Xe=__unplugin_components_1$3,et=Menu,We=LayoutSider,He=LayoutHeader,Ye=__unplugin_components_3,nt=Tabs,tt=LayoutFooter,at=__unplugin_components_7;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(at,{class:"ant-layout-has-sider"},{default:withCtx(()=>[createVNode(We,{trigger:null,collapsible:"",collapsed:W.collapsed,breakpoint:"lg",onCollapse:Pe,width:W.menuWidth,class:"sider",style:{background:"#1e282c"}},{default:withCtx(()=>[!W.collapsed&&unref(se).enableGroup?(openBlock(),createElementBlock("div",_hoisted_2,[createBaseVNode("a",_hoisted_3,[createVNode(Xe,{"show-search":"",value:unref(we),style:{width:"300px"},options:unref($e),optionFilterProp:"children",onChange:ke},null,8,["value","options"])])])):createCommentVNode("",!0),W.collapsed&&unref(se).enableGroup?(openBlock(),createElementBlock("div",_hoisted_4,[W.collapsed?(openBlock(),createElementBlock("a",_hoisted_5,[createBaseVNode("img",{src:W.logo,alt:"logo"},null,8,_hoisted_6)])):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(unref(se).enableGroup?"knife4j-menu":"knife4j-menu-all")},[createVNode(et,{key:"Menu",theme:"dark",mode:"inline",collapsed:W.collapsed,onOpenChange:Re,onSelect:Ze,openKeys:W.openKeys,selectedKeys:W.selectedKeys,style:{padding:"2px 0",width:"100%"}},{default:withCtx(()=>[createVNode(ThreeMenu,{menuData:W.localMenuData,collapsed:W.collapsed},null,8,["menuData","collapsed"])]),_:1},8,["collapsed","openKeys","selectedKeys"])],2)]),_:1},8,["collapsed","width"]),createVNode(at,null,{default:withCtx(()=>[createVNode(He,{style:{padding:"0",background:"#fff",height:"56px","line-height":"56px"}},{default:withCtx(()=>[createVNode(GlobalHeader,{onSearchKey:xe,onSearchClear:Se,documentTitle:W.documentTitle,collapsed:W.collapsed,headerClass:W.headerClass,currentUser:unref(me),onCollapse:Pe,onMenuClick:St=>he(St)},null,8,["documentTitle","collapsed","headerClass","currentUser","onMenuClick"])]),_:1}),createVNode(ContextMenu,{itemList:W.menuItemList,visible:W.menuVisible,"onUpdate:visible":Qe[0]||(Qe[0]=St=>W.menuVisible=St),onSelect:Ie},null,8,["itemList","visible"]),createVNode(nt,{hideAdd:"",activeKey:W.activeKey,"onUpdate:activeKey":Qe[1]||(Qe[1]=St=>W.activeKey=St),onContextmenu:Qe[2]||(Qe[2]=St=>Ae(St)),type:"editable-card",onChange:Ce,onEdit:Ke,class:"knife4j-tab"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(W.panels,St=>(openBlock(),createBlock(Ye,{key:St.key,tab:St.title,closable:St.closable},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(U[St.content]),{data:St,onChildrenMethods:Ve},null,40,["data"]))]),_:2},1032,["tab","closable"]))),128))]),_:1},8,["activeKey"]),createVNode(tt,{style:{padding:"0"}},{default:withCtx(()=>[createVNode(GlobalFooter)]),_:1})]),_:1})]),_:1})])}}},routes=[{path:"/",name:"home",component:_sfc_main,redirect:"/home",children:[{path:"/home",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Main$1),void 0,import.meta.url)},{path:"/home/:i18n",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Main$1),void 0,import.meta.url)},{path:"/plus",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Main$1),void 0,import.meta.url)},{path:"/plus/:i18n",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Main$1),void 0,import.meta.url)},{path:"/Authorize/:groupName",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Authorize$1),void 0,import.meta.url)},{path:"/:groupName/:controller/:summary",component:()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0,import.meta.url)},{path:"/SwaggerModels/:groupName",component:()=>__vitePreload(()=>Promise.resolve().then(()=>SwaggerModels$1),void 0,import.meta.url)},{path:"/documentManager/GlobalParameters-:groupName",component:()=>__vitePreload(()=>Promise.resolve().then(()=>GlobalParameters$1),void 0,import.meta.url)},{path:"/documentManager/OfficelineDocument-:groupName",component:()=>__vitePreload(()=>Promise.resolve().then(()=>OfficelineDocument$1),void 0,import.meta.url)},{path:"/documentManager/Settings",component:()=>__vitePreload(()=>Promise.resolve().then(()=>Settings$1),void 0,import.meta.url)},{path:"/:groupName-:mdid-omd/:id",component:()=>__vitePreload(()=>Promise.resolve().then(()=>index$9),void 0,import.meta.url)}]},{path:"/oauth2",name:"oauth2",component:()=>__vitePreload(()=>import("./OAuth2-e401d640.js"),[],import.meta.url)}],router=createRouter({history:createWebHashHistory("./"),routes}),langOptions$1={lang:"us",title:"title",searchHolderText:"Enter keyword search",docLinkTip:"Documentation",langText:"EN",settingText:"Settings",cacheText:"Clear Caches",table:{swaggerModelsColumns:[{title:"name",dataIndex:"name",width:"30%"},{title:"type",dataIndex:"type",width:"15%"},{title:"description",width:"35%",dataIndex:"description",scopedSlots:{customRender:"descriptionValueTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],documentRequestColumns:[{title:"name",dataIndex:"name",width:"30%"},{title:"description",dataIndex:"description",width:"25%",scopedSlots:{customRender:"descriptionValueTemplate"}},{title:"in",dataIndex:"in",scopedSlots:{customRender:"typeTemplate"}},{title:"require",dataIndex:"require",scopedSlots:{customRender:"requireTemplate"}},{title:"type",dataIndex:"type",scopedSlots:{customRender:"datatypeTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],documentResponseStatusColumns:[{title:"code",dataIndex:"code",width:"20%"},{title:"description",dataIndex:"description",width:"55%",scopedSlots:{customRender:"descriptionTemplate"}},{title:"schema",dataIndex:"schema",scopedSlots:{customRender:"schemaTemplate"}}],documentResponseHeaderColumns:[{title:"name",dataIndex:"name",width:"30%"},{title:"description",dataIndex:"description",width:"55%"},{title:"type",dataIndex:"type"}],documentResponseColumns:[{title:"name",dataIndex:"name",width:"35%"},{title:"description",dataIndex:"description",scopedSlots:{customRender:"descriptionTemplate"},width:"40%"},{title:"type",dataIndex:"type"},{title:"schema",dataIndex:"schemaValue",width:"15%"}],debugRequestHeaderColumns:[{title:"name",dataIndex:"name",width:"20%",scopedSlots:{customRender:"headerName"}},{title:"value",dataIndex:"content",scopedSlots:{customRender:"headerValue"}},{title:"operation",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugFormDataRequestColumns:[{title:"name",dataIndex:"name",width:"20%",scopedSlots:{customRender:"formName"}},{title:"type",dataIndex:"type",width:"12%",scopedSlots:{customRender:"formType"}},{title:"value",dataIndex:"content",scopedSlots:{customRender:"formValue"}},{title:"operation",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugUrlFormRequestColumns:[{title:"name",dataIndex:"name",width:"20%",scopedSlots:{customRender:"urlFormName"}},{title:"value",dataIndex:"content",scopedSlots:{customRender:"urlFormValue"}},{title:"operation",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugResponseHeaderColumns:[{title:"name",dataIndex:"name",width:"20%"},{title:"value",dataIndex:"value"}],authHeaderColumns:[{title:"key",dataIndex:"key",customRender(C,H,U){return H.key+"("+H.type+")"}},{title:"name",className:"column-money",dataIndex:"name"},{title:"in",dataIndex:"in"},{title:"value",dataIndex:"value",scopedSlots:{customRender:"paramIpt"}}]},homePage:{description:"Description",author:"Author",version:"Version",host:"Host",basePath:"BasePath",serviceUrl:"Service Url",groupName:"Group Name",groupUrl:"Group Url",groupLocation:"Group Location",apiCountNumber:"Interface statistics"},markdown:{title:"Other Document"},message:{success:"Save successfully",settingTip:"When personalization is enabled, close the interface tab or refresh the current pageAfter personalization is enabled, the interface tab tab needs to be closed and then reopened or the current page needs to be refreshed",settingHost:"The host is enabled successfully. Please close the interface tab or refresh the current page to enable debuggingThe host is enabled successfully. Please close the interface tab or refresh the current page before debugging",unsupportstore:"Current browsers do not support localStorage objects and cannot use this feature",copy:{url:{success:"Copy address successfully",fail:"Failed to copy the address, your current browser version is not compatible, please copy manually."},method:{success:"Copy Url successfully",fail:"Failed to copy the url, your current browser version is not compatible, please copy manually."},document:{success:"Copy document successful",fail:"Failed to copy the document, your current browser version is not compatible, please copy it manually."},raw:{success:"Copy raw successfully",fail:"Failed to copy raw, your current browser version is not compatible, please copy manually."},curl:{success:"Copy curl successfully",fail:"Copy curl failed, your current browser version is not compatible, please copy manually."},open:{success:"Copy OpenAPI successfully",fail:"Copy OpenAPI failed, your current browser version is not compatible, please copy manually."}},layer:{title:"message",yes:"Yes",no:"No"},auth:{invalid:"Invalid value",confirm:"Are you sure you want to logout?",success:"Logout Success"},global:{iptname:"Please enter the global parameter name",iptvalue:"Please enter the global parameter value",deleteSuccess:"Delete Success"},settings:{plusFail:"Knife4j enhancements cannot be turned on. Make sure that the annotation @EnableKnife4j is enabled on the back end",plusError:"Unable to turn on Swagger BootstrapUi Enhancement, Error Cause:",success:"Save successfully, please refresh the document page"},offline:{imple:"This feature has not been implemented ...",markdown:"Downloading Markdown file, please wait...",html:"Downloading Html file, please wait...",word:"Downloading Word file, please wait...",copy:"Copy",toomany:"The current number of interfaces exceeds the limit. Please use the third-party markdown conversion software for conversion to see the effect.",note:"swagger-bootstrap-ui provides markdwon-formatted offline documents that developers can copy and convert to HTML or PDF through other markdown conversion tools.."},debug:{urlNotEmpty:"Request URL address cannot be empty",fieldNotEmpty:"cannot be empty",networkErr:"The server is restarting or hanging up:(~~~~",contentToBig:"The amount of interface response data exceeds the limit and is not displayed in the response content. Please check it in raw",contentToBigBlob:"The amount of interface response data exceeds the limit and is not displayed in the response content."},sys:{loadErr:"Make sure the swagger resource interface is correct."}},home:{des:"Description",author:"Author",version:"Version",serviceUrl:"serviceUrl",groupName:"Group Name",groupUrl:"Group url",groupLocation:"Group Location",apiCount:"Api Counts",searchText:"Search..."},swaggerModel:{nodata:"No Swagger Models",tableHeader:{name:"name",des:"description",type:"type"}},global:{tab:"Global Parameter Settings",add:"Add",model:"Add Parameter",tableHeader:[{title:"name",dataIndex:"name",width:"15%",scopedSlots:{customRender:"name"}},{title:"value",className:"column-money",dataIndex:"value",width:"65%",scopedSlots:{customRender:"paramContentLabel"}},{title:"type",dataIndex:"in",width:"10%",scopedSlots:{customRender:"paramTypeLable"}},{title:"operation",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],form:{name:"name",value:"value",type:"type",validate:{name:"Please enter the parameter name",value:"Please enter the parameter value"}},ok:"ok",cancel:"cancel",save:"Save",delete:"Delete",note:"Knife4j Provide global parameter Debug function, currently default to provide header (request header), query (form) two ways of entry.<br /><br />After adding the global parameter here, the default Debug debug tab page will take this parameter."},settings:{title:"Personalized Settings",openCache:"Enable request parameter cache",dynamicParameter:"Enable dynamic request parameters",showApi:"Enable Menu Api Address Display",tagDes:"Enable Grouping tag displays dsecription description properties",apiFilter:"Open RequestMapping Interface Filtering,Default",openCacheApi:"Enable Open cached open API documents",plus:"Enabling enhancements provided by Knife4j",save:"Save",copy:"copy",fastTitle:"<h5>Copy the following address through <kbd>ctrl + c</kbd> to open the browser"},auth:{cancel:"Logout",save:"Save",tableHeader:{key:"key",name:"name",in:"in",value:"value",operator:"operate"},valueInvalid:"Invalid Value"},menu:{home:"Home",manager:"DocumentHelper",globalsettings:"GlobalParams",officeline:"OfflineDocument",selfSettings:"Settings",other:"Others",menuItemList:[{key:"1",icon:"caret-left",text:"Close Left"},{key:"2",icon:"caret-right",text:"Close Right"},{key:"3",icon:"close-circle",text:"Close Other"}]},doc:{title:"Doc",note:"Description",copy:"Copy",copyHash:"Copy Address",copyMethod:"Copy Url",produces:"produces",consumes:"consumes",author:"Developer",url:"url",method:"method",des:"Note",params:"Params",requestExample:"Example",paramsHeader:{name:"name",des:"description",require:"require",type:"data type",requestType:"request type"},responseHeaderParams:"Response Header",response:"Status",responseHeader:{code:"code",des:"description"},responseParams:"Response Params",responseParamsHeader:{name:"name",des:"description",type:"type"},responseExample:"Response Example",nodata:"No data"},offline:{des:"Knife4j provides export of offline documents in 4 formats (Html/Markdown/Word/OpenAPI)",download:{markdown:"Markdown",html:"Html",word:"Word",pdf:"Pdf"},contact:"Contact",url:"api url",note:"Description",schemaDes:"schema Description"},debug:{title:"Debug",send:"Send",headers:"Headers",params:"Params",form:{upload:"Upload",itemText:"text",itemFile:"file"},tableHeader:{holderName:"Name",holderValue:"Value",holderDel:"Delete",selectAll:"Select All",type:"type",name:"name",value:"value"},response:{content:"Response",showDes:"Show Description",code:"code:",cost:"cost:",size:"size:",header:"Request Header",download:"Download File",copy:"copy"}},open:{copy:" Copy ",download:" Download "},tab:{closeCurrent:"Close Current Tab",closeOther:"Close Other Tab",closeAll:"Close All Tab"},validate:{header:"Request Header ",notEmpty:" cannot be empty",fileNotEmpty:" file cannot be empty"},script:{JSExample:"JSExample",TSExample:"TSExample"}},langOptions={lang:"zh",title:"\u6807\u989811111",searchHolderText:"\u8F93\u5165\u6587\u6863\u5173\u952E\u5B57\u641C\u7D22",docLinkTip:"\u5E2E\u52A9\u6587\u6863",langText:"\u4E2D",settingText:"\u4E2A\u6027\u5316\u914D\u7F6E",cacheText:"\u6E05\u9664\u7F13\u5B58",table:{swaggerModelsColumns:[{title:"\u540D\u79F0",dataIndex:"name",width:"30%"},{title:"\u7C7B\u578B",dataIndex:"type",width:"15%"},{title:"\u8BF4\u660E",width:"35%",dataIndex:"description",scopedSlots:{customRender:"descriptionValueTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],documentRequestColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"30%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",width:"25%",scopedSlots:{customRender:"descriptionValueTemplate"}},{title:"\u8BF7\u6C42\u7C7B\u578B",dataIndex:"in",scopedSlots:{customRender:"typeTemplate"}},{title:"\u662F\u5426\u5FC5\u987B",dataIndex:"require",scopedSlots:{customRender:"requireTemplate"}},{title:"\u6570\u636E\u7C7B\u578B",dataIndex:"type",scopedSlots:{customRender:"datatypeTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],documentResponseStatusColumns:[{title:"\u72B6\u6001\u7801",dataIndex:"code",width:"20%"},{title:"\u8BF4\u660E",dataIndex:"description",width:"55%",scopedSlots:{customRender:"descriptionTemplate"}},{title:"schema",dataIndex:"schema",scopedSlots:{customRender:"schemaTemplate"}}],documentResponseHeaderColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"30%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",width:"55%"},{title:"\u6570\u636E\u7C7B\u578B",dataIndex:"type"}],documentResponseColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"35%"},{title:"\u53C2\u6570\u8BF4\u660E",dataIndex:"description",scopedSlots:{customRender:"descriptionTemplate"},width:"40%"},{title:"\u7C7B\u578B",dataIndex:"type"},{title:"schema",dataIndex:"schemaValue",width:"15%"}],debugRequestHeaderColumns:[{title:"\u8BF7\u6C42\u5934",dataIndex:"name",width:"20%",scopedSlots:{customRender:"headerName"}},{title:"\u5185\u5BB9",dataIndex:"content",scopedSlots:{customRender:"headerValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugFormDataRequestColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"20%",scopedSlots:{customRender:"formName"}},{title:"\u7C7B\u578B",dataIndex:"type",width:"12%",scopedSlots:{customRender:"formType"}},{title:"\u53C2\u6570\u503C",dataIndex:"content",scopedSlots:{customRender:"formValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugUrlFormRequestColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"20%",scopedSlots:{customRender:"urlFormName"}},{title:"\u53C2\u6570\u503C",dataIndex:"content",scopedSlots:{customRender:"urlFormValue"}},{title:"\u64CD\u4F5C",dataIndex:"operation",width:"10%",scopedSlots:{customRender:"operation"}}],debugResponseHeaderColumns:[{title:"\u54CD\u5E94\u5934",dataIndex:"name",width:"20%"},{title:"\u503C",dataIndex:"value"}],authHeaderColumns:[{title:"\u53C2\u6570key",dataIndex:"key",customRender(C,H,U){return H.key+"("+H.type+")"}},{title:"\u53C2\u6570\u540D\u79F0",className:"column-money",dataIndex:"name"},{title:"in",dataIndex:"in"},{title:"\u53C2\u6570\u503C",dataIndex:"value",scopedSlots:{customRender:"paramIpt"}}]},homePage:{description:"\u7B80\u4ECB",author:"\u4F5C\u8005",version:"\u7248\u672C",host:"host",basePath:"basePath",serviceUrl:"\u670D\u52A1Url",groupName:"\u5206\u7EC4\u540D\u79F0",groupUrl:"\u5206\u7EC4Url",groupLocation:"\u5206\u7EC4location",apiCountNumber:"\u63A5\u53E3\u7EDF\u8BA1\u4FE1\u606F"},markdown:{title:"\u5176\u4ED6\u6587\u6863"},message:{success:"\u4FDD\u5B58\u6210\u529F",settingTip:"\u542F\u7528\u4E2A\u6027\u5316\u914D\u7F6E\u540E,\u63A5\u53E3Tab\u6807\u7B7E\u9700\u5173\u95ED\u540E\u91CD\u65B0\u6253\u5F00\u6216\u8005\u5237\u65B0\u5F53\u524D\u9875\u9762",settingHost:"\u542F\u7528Host\u6210\u529F,\u8BF7\u5173\u95ED\u63A5\u53E3Tab\u6216\u8005\u5237\u65B0\u5F53\u524D\u9875\u9762\u518D\u8FDB\u884C\u8C03\u8BD5",unsupportstore:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301localStorage\u5BF9\u8C61,\u65E0\u6CD5\u4F7F\u7528\u8BE5\u529F\u80FD",copy:{url:{success:"\u590D\u5236\u5730\u5740\u6210\u529F",fail:"\u590D\u5236\u5730\u5740\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."},method:{success:"\u590D\u5236\u63A5\u53E3\u6210\u529F",fail:"\u590D\u5236\u63A5\u53E3\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."},document:{success:"\u590D\u5236\u6587\u6863\u6210\u529F",fail:"\u590D\u5236\u6587\u6863\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."},raw:{success:"\u590D\u5236raw\u6210\u529F",fail:"\u590D\u5236raw\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."},curl:{success:"\u590D\u5236curl\u6210\u529F",fail:"\u590D\u5236curl\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."},open:{success:"\u590D\u5236OpenAPI\u6210\u529F",fail:"\u590D\u5236OpenAPI\u5931\u8D25,\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u517C\u5BB9,\u8BF7\u624B\u52A8\u590D\u5236."}},layer:{title:"\u4FE1\u606F",yes:"\u786E\u5B9A",no:"\u53D6\u6D88"},auth:{invalid:"\u503C\u65E0\u6548",confirm:"\u786E\u5B9A\u6CE8\u9500\u5417?",success:"\u6CE8\u9500\u6210\u529F"},global:{iptname:"\u8BF7\u8F93\u5165\u5168\u5C40\u53C2\u6570\u540D\u79F0",iptvalue:"\u8BF7\u8F93\u5165\u5168\u5C40\u53C2\u6570\u503C",deleteSuccess:"\u5220\u9664\u6210\u529F"},settings:{plusFail:"\u65E0\u6CD5\u5F00\u542FKnife4j\u589E\u5F3A\u529F\u80FD,\u8BF7\u786E\u4FDD\u540E\u7AEF\u542F\u7528\u6CE8\u89E3@EnableKnife4j",plusError:"\u65E0\u6CD5\u5F00\u542FKnife4j\u589E\u5F3A\u529F\u80FD,\u9519\u8BEF\u539F\u56E0:",success:"\u4FDD\u5B58\u6210\u529F,\u8BF7\u5237\u65B0\u8BE5\u6587\u6863\u9875"},offline:{imple:"\u8BE5\u529F\u80FD\u5C1A\u672A\u5B9E\u73B0...",markdown:"\u6B63\u5728\u4E0B\u8F7DMarkdown\u6587\u4EF6\u4E2D,\u8BF7\u7A0D\u540E...",html:"\u6B63\u5728\u4E0B\u8F7DHtml\u4E2D,\u8BF7\u7A0D\u540E...",word:"\u6B63\u5728\u4E0B\u8F7DWord\u4E2D,\u8BF7\u7A0D\u540E...",copy:"\u62F7\u8D1D\u6587\u6863",toomany:"\u5F53\u524D\u63A5\u53E3\u6570\u91CF\u8D85\u51FA\u9650\u5236,\u8BF7\u4F7F\u7528\u7B2C\u4E09\u65B9markdown\u8F6C\u6362\u8F6F\u4EF6\u8FDB\u884C\u8F6C\u6362\u4EE5\u67E5\u770B\u6548\u679C.",note:"swagger-bootstrap-ui \u63D0\u4F9Bmarkdwon\u683C\u5F0F\u7C7B\u578B\u7684\u79BB\u7EBF\u6587\u6863,\u5F00\u53D1\u8005\u53EF\u62F7\u8D1D\u8BE5\u5185\u5BB9\u901A\u8FC7\u5176\u4ED6markdown\u8F6C\u6362\u5DE5\u5177\u8FDB\u884C\u8F6C\u6362\u4E3Ahtml\u6216pdf."},debug:{urlNotEmpty:"\u8BF7\u6C42url\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",fieldNotEmpty:"\u4E0D\u80FD\u4E3A\u7A7A",networkErr:"\u670D\u52A1\u5668\u6B63\u5728\u91CD\u542F\u6216\u8005\u5DF2\u7ECF\u6302\u4E86:(~~~~",contentToBig:"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u91CF\u8D85\u8FC7\u9650\u5236,\u4E0D\u5728\u54CD\u5E94\u5185\u5BB9\u4E2D\u663E\u793A,\u8BF7\u5728raw\u4E2D\u8FDB\u884C\u67E5\u770B",contentToBigBlob:"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u91CF\u8D85\u8FC7\u9650\u5236,\u4E0D\u5728\u54CD\u5E94\u5185\u5BB9\u4E2D\u663E\u793A"},sys:{loadErr:"\u8BF7\u786E\u4FDDswagger\u8D44\u6E90\u63A5\u53E3\u6B63\u786E."}},swaggerModel:{nodata:"\u6682\u65E0Swagger Models",tableHeader:{name:"\u540D\u79F0",des:"\u8BF4\u660E",type:"\u7C7B\u578B"}},global:{tab:"\u5168\u5C40\u53C2\u6570\u8BBE\u7F6E",add:"\u6DFB\u52A0\u53C2\u6570",model:"\u65B0\u589E\u53C2\u6570",tableHeader:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"name",width:"15%",scopedSlots:{customRender:"name"}},{title:"\u53C2\u6570\u503C",className:"column-money",dataIndex:"value",width:"65%",scopedSlots:{customRender:"paramContentLabel"}},{title:"\u53C2\u6570\u7C7B\u578B",dataIndex:"in",width:"10%",scopedSlots:{customRender:"paramTypeLable"}},{title:"\u64CD\u4F5C",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],form:{name:"\u53C2\u6570\u540D\u79F0",value:"\u53C2\u6570\u503C",type:"\u53C2\u6570\u7C7B\u578B",validate:{name:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",value:"\u8BF7\u8F93\u5165\u53C2\u6570\u503C"}},ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",save:"\u4FDD\u5B58",delete:"\u5220\u9664",note:"Knife4j \u63D0\u4F9B\u5168\u5C40\u53C2\u6570Debug\u529F\u80FD,\u76EE\u524D\u9ED8\u8BA4\u63D0\u4F9Bheader(\u8BF7\u6C42\u5934)\u3001query(form)\u4E24\u79CD\u65B9\u5F0F\u7684\u5165\u53C2.<br /><br />\u5728\u6B64\u6DFB\u52A0\u5168\u5C40\u53C2\u6570\u540E,\u9ED8\u8BA4Debug\u8C03\u8BD5tab\u9875\u4F1A\u5E26\u4E0A\u8BE5\u53C2\u6570"},settings:{title:"\u4E2A\u6027\u5316\u8BBE\u7F6E",openCache:"\u5F00\u542F\u8BF7\u6C42\u53C2\u6570\u7F13\u5B58",dynamicParameter:"\u5F00\u542F\u52A8\u6001\u8BF7\u6C42\u53C2\u6570",showApi:"\u83DC\u5355Api\u5730\u5740\u663E\u793A",tagDes:"\u5206\u7EC4tag\u663E\u793Adsecription\u8BF4\u660E\u5C5E\u6027",apiFilter:"\u5F00\u542FRequestMapping\u63A5\u53E3\u8FC7\u6EE4,\u9ED8\u8BA4\u53EA\u663E\u793A",openCacheApi:"\u5F00\u542F\u7F13\u5B58\u5DF2\u6253\u5F00\u7684api\u6587\u6863",plus:"\u542F\u7528Knife4j\u63D0\u4F9B\u7684\u589E\u5F3A\u529F\u80FD",save:"\u4FDD\u5B58\u5185\u5BB9",copy:"\u590D\u5236",fastTitle:"<h5>\u901A\u8FC7 <kbd>ctrl + c</kbd> \u590D\u5236\u4EE5\u4E0B\u5730\u5740,\u6253\u5F00\u6D4F\u89C8\u5668\u5FEB\u901F\u4E2A\u6027\u5316\u8BBE\u7F6E</h5>"},auth:{cancel:"\u6CE8\u9500",save:"\u4FDD\u5B58",tableHeader:{key:"\u53C2\u6570key",name:"\u53C2\u6570\u540D\u79F0",in:"in",value:"\u53C2\u6570\u503C",operator:"\u64CD\u4F5C"},valueInvalid:"\u503C\u65E0\u6548"},menu:{home:"\u4E3B\u9875",manager:"\u6587\u6863\u7BA1\u7406",globalsettings:"\u5168\u5C40\u53C2\u6570\u8BBE\u7F6E",officeline:"\u79BB\u7EBF\u6587\u6863",selfSettings:"\u4E2A\u6027\u5316\u8BBE\u7F6E",other:"\u5176\u4ED6\u6587\u6863",menuItemList:[{key:"1",icon:"caret-left",text:"\u5173\u95ED\u5DE6\u4FA7"},{key:"2",icon:"caret-right",text:"\u5173\u95ED\u53F3\u4FA7"},{key:"3",icon:"close-circle",text:"\u5173\u95ED\u5176\u5B83"}]},offline:{des:"Knife4j\u63D0\u4F9B\u5BFC\u51FA4\u79CD\u683C\u5F0F\u7684\u79BB\u7EBF\u6587\u6863(Html/Markdown/Word/OpenAPI)",download:{markdown:"\u4E0B\u8F7DMarkdown",html:"\u4E0B\u8F7DHtml",word:"\u4E0B\u8F7DWord",pdf:"\u4E0B\u8F7DPdf"},contact:"\u8054\u7CFB\u4EBA",url:"\u63A5\u53E3\u8DEF\u5F84",note:"\u7B80\u4ECB",schemaDes:"schema\u5C5E\u6027\u8BF4\u660E"},doc:{title:"\u6587\u6863",note:"\u63A5\u53E3\u8BF4\u660E",copy:"\u590D\u5236\u6587\u6863",copyHash:"\u590D\u5236\u5730\u5740",copyMethod:"\u590D\u5236\u63A5\u53E3",produces:"\u8BF7\u6C42\u6570\u636E\u7C7B\u578B",consumes:"\u54CD\u5E94\u6570\u636E\u7C7B\u578B",author:"\u5F00\u53D1\u8005",url:"\u63A5\u53E3\u5730\u5740",method:"\u8BF7\u6C42\u65B9\u5F0F",des:"\u63A5\u53E3\u63CF\u8FF0",params:"\u8BF7\u6C42\u53C2\u6570",requestExample:"\u8BF7\u6C42\u793A\u4F8B",paramsHeader:{name:"\u53C2\u6570\u540D\u79F0",des:"\u53C2\u6570\u8BF4\u660E",require:"\u662F\u5426\u5FC5\u987B",type:"\u6570\u636E\u7C7B\u578B",requestType:"\u8BF7\u6C42\u7C7B\u578B"},responseHeaderParams:"\u54CD\u5E94Header",response:"\u54CD\u5E94\u72B6\u6001",responseHeader:{code:"\u72B6\u6001\u7801",des:"\u8BF4\u660E"},responseParams:"\u54CD\u5E94\u53C2\u6570",responseParamsHeader:{name:"\u53C2\u6570\u540D\u79F0",des:"\u53C2\u6570\u8BF4\u660E",type:"\u7C7B\u578B"},responseExample:"\u54CD\u5E94\u793A\u4F8B",nodata:"\u6682\u65E0"},debug:{title:"\u8C03\u8BD5",send:" \u53D1 \u9001 ",headers:"\u8BF7\u6C42\u5934\u90E8",params:"\u8BF7\u6C42\u53C2\u6570",form:{upload:"\u9009\u62E9\u6587\u4EF6",itemText:"\u6587\u672C",itemFile:"\u6587\u4EF6"},tableHeader:{holderName:"\u8BF7\u6C42\u5934\u540D\u79F0",holderValue:"\u8BF7\u6C42\u5934\u5185\u5BB9",holderDel:"\u5220\u9664",selectAll:"\u5168\u9009",type:"\u53C2\u6570\u7C7B\u578B",name:"\u53C2\u6570\u540D\u79F0",value:"\u53C2\u6570\u503C"},response:{content:"\u54CD\u5E94\u5185\u5BB9",showDes:"\u663E\u793A\u8BF4\u660E",code:"\u54CD\u5E94\u7801:",cost:"\u8017\u65F6:",size:"\u5927\u5C0F:",header:"\u8BF7\u6C42\u5934",download:"\u4E0B\u8F7D\u6587\u4EF6",copy:"\u590D\u5236"}},open:{copy:" \u590D \u5236 ",download:" \u4E0B \u8F7D "},tab:{closeCurrent:"\u5173\u95ED\u5F53\u524D\u6807\u7B7E\u9875",closeOther:"\u5173\u95ED\u5176\u5B83\u6807\u7B7E\u9875",closeAll:"\u5173\u95ED\u5168\u90E8\u6807\u7B7E\u9875"},validate:{header:"\u8BF7\u6C42\u5934 ",notEmpty:" \u4E0D\u80FD\u4E3A\u7A7A",fileNotEmpty:" \u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"},script:{JSExample:"JS\u6A21\u677F\u793A\u4F8B",TSExample:"TS\u6A21\u677F\u793A\u4F8B"}},messages={"zh-CN":langOptions,"en-US":langOptions$1},i18n=createI18n({globalInjection:!0,locale:"zh-CN",messages,legacy:!1});function setupI18n(C){C.use(i18n)}const iconFront=!function(C){var H,U='<svg><symbol id="icon-modeling" viewBox="0 0 1024 1024"><path d="M934.368 283.376l0 457.248L513.936 1008 89.632 740.624 89.632 283.376 513.936 16 934.368 283.376zM891.744 306.624 513.936 68.32 132.256 306.624l0 410.752L513.936 955.68l377.808-238.32L891.744 306.624zM205.872 300.816c21.968 0 37.456 8.4 46.496 25.184l513.44 0c7.744-16.784 22.544-25.184 44.56-25.184 25.824 0 43.856 14.848 54.256 44.56 0 16.784-4.576 31.008-13.568 42.624-9.04 11.632-22.608 17.44-40.688 17.44-14.272 0-25.888-4.528-34.88-13.568L275.632 668.944c0 14.208-5.168 26.48-15.504 36.816-10.384 10.336-22.608 15.504-36.816 15.504-15.504 0-28.416-4.848-38.752-14.528-10.352-9.68-15.504-21.648-15.504-35.84 0-10.336 2.912-19.696 8.72-28.096s12.592-15.168 20.336-20.336l-11.632-220.88c-21.984-10.336-32.944-27.12-32.944-50.368 0-14.208 5.136-26.16 15.504-35.84C179.392 305.664 191.648 300.816 205.872 300.816zM256.256 370.56c-6.512 12.912-15.504 22.608-27.12 29.056l13.568 220.88c2.592 0 4.848 0.64 6.784 1.936s4.144 2.576 6.784 3.872L727.056 370.56 256.256 370.56zM389.936 506.192c-14.272-1.296-25.504-7.104-33.904-17.44-8.448-10.336-12.592-21.968-12.592-34.88 0-14.208 4.528-26.48 13.568-36.816 8.992-10.336 22.544-15.504 40.688-15.504l5.808-19.376 48.432 0-13.568 36.816c6.464 10.336 9.68 21.312 9.68 32.944 0 18.08-5.168 31.008-15.504 38.752l5.808 23.248-38.752 21.312L389.936 506.192zM761.936 597.248c14.208 0 25.184 5.168 32.944 15.504s11.632 22.608 11.632 36.816-4.208 26.48-12.592 36.816c-8.448 10.336-21.648 15.504-39.712 15.504-7.744 0-15.504-1.936-23.248-5.808l-168.56 124c0 2.576 0.272 4.848 0.976 6.784 0.64 1.936 0.976 3.552 0.976 4.848 0 14.208-5.168 26.8-15.504 37.776-10.384 10.992-22.608 16.464-36.816 16.464-15.504 0-28.416-5.488-38.752-16.464-10.384-10.992-15.504-23.584-15.504-37.776 0-16.8 6.464-29.696 19.376-38.752l-58.128-193.744 38.752-19.376 60.064 199.568c7.744 0 14.208 2.576 19.376 7.744l166.624-125.936c0-10.336 0.64-19.696 1.936-28.096 1.232-8.384 5.104-15.168 11.632-20.336l-67.808-135.632 38.752-21.312L761.936 597.248zM512 116.752c14.208 0 26.416 5.168 36.816 15.504 10.336 10.336 15.504 22.608 15.504 36.816 0 9.04-3.232 18.72-9.68 29.056l60.064 116.256L564.32 314.384c-6.512-12.912-13.888-28.736-22.288-47.472-8.448-18.72-17.76-33.264-28.096-43.6l-36.816 91.056-44.56 0 40.688-108.496c-10.384-9.04-15.504-21.312-15.504-36.816 0-14.208 4.848-26.48 14.528-36.816S495.216 116.752 512 116.752zM616.624 417.056l-17.44-34.88 50.368 0 5.808 15.504L616.624 417.056z" ></path></symbol><symbol id="icon-home" viewBox="0 0 1024 1024"><path d="M62.900896 424.812249l391.020899-306.640062c33.433712-26.454357 85.818613-26.421844 119.20175 0l388.055034 306.697862c13.25066 10.501545 15.515699 29.763409 5.053891 43.017682-10.476258 13.257885-29.763409 15.526536-43.024907 5.053891l-12.553447-9.927157 0 370.790884c0 52.572751-54.472927 91.851492-103.212813 91.851492L195.078755 925.65684c-48.132985 0-80.497396-36.92339-80.497396-91.851492L114.581359 462.096888l-13.864785 10.87002c-5.639117 4.407253-12.249996 6.527792-18.864489 6.52418-9.092669 0-18.095026-4.006265-24.127905-11.726184C47.284047 454.481733 49.614111 435.227094 62.900896 424.812249L62.900896 424.812249zM420.759021 800.498074l0 63.930459 183.71021 0 0-171.395188c0-35.615664-28.751909-73.915417-91.855105-73.915417-63.135709 0-91.855105 38.299753-91.855105 73.915417L420.759021 800.498074 420.759021 800.498074z" ></path></symbol><symbol id="icon-authenticationsystem" viewBox="0 0 1024 1024"><path d="M512 1024C229.376 1024 0 794.624 0 512 0 229.376 229.376 0 512 0c282.624 0 512 229.376 512 512C1024 794.624 794.624 1024 512 1024M798.72 409.6l-71.68 0 0-92.16c0 0 0-215.04-215.04-215.04C296.96 102.4 296.96 317.44 296.96 317.44L296.96 409.6 225.28 409.6l0 409.6 573.44 0L798.72 409.6zM512 163.84c143.36 0 153.6 129.024 153.6 153.6L665.6 409.6l-307.2 0 0-92.16C358.4 292.864 368.64 163.84 512 163.84M512 532.48c34.816 0 61.44 26.624 61.44 61.44 0 22.528-12.288 43.008-30.72 53.248l0 108.544-61.44 0 0-108.544C462.848 636.928 450.56 616.448 450.56 593.92 450.56 559.104 477.184 532.48 512 532.48" ></path></symbol><symbol id="icon-zhuye" viewBox="0 0 1024 1024"><path d="M950.32093 355.327728 532.539802 62.055334c-11.719926-8.227382-27.326369-8.27957-39.10053-0.12996L73.813123 352.339674c-15.481599 10.714016-19.34765 31.948643-8.636704 47.432289l1.376347 1.989307c10.653641 15.400758 31.775704 19.24839 47.176462 8.594749l399.109883-276.097222 397.069411 278.731212c15.442714 10.840906 36.749996 7.109931 47.590901-8.333806l1.168616-1.663896C969.525318 387.526057 965.788204 366.18603 950.32093 355.327728z" ></path><path d="M517.14416 188.411137 136.838551 446.971961l0 486.963791c0 18.896372 15.318894 34.215266 34.215266 34.215266l219.312938 0c18.896372 0 34.215266-15.318894 34.215266-34.215266L424.582021 653.936663l174.884053 0 0 279.999089c0 18.896372 15.318894 34.215266 34.215266 34.215266l219.696678 0c18.896372 0 34.215266-15.318894 34.215266-34.215266L887.593284 446.971961 517.14416 188.411137z" ></path></symbol><symbol id="icon-APIwendang" viewBox="0 0 1024 1024"><path d="M0 651.84768c0 92.3904 69.16608 169.05216 159.9744 183.84896l32.0256 2.56h316.78976l6.4256-0.88576 316.79488 0.88576 32.02048-2.56c90.8032-14.7968 159.96928-91.45856 159.96928-183.84896 0-81.1776-53.43232-150.25152-128.04608-175.85152-2.69824-160.768-137.77408-290.25792-303.94368-290.25792-119.85408 0-223.50848 67.3536-273.03424 165.23776-23.40864-25.13408-57.2928-40.96-94.99648-40.96-70.70208 0-128 55.66976-128 124.27264 0 17.92 3.91168 34.95936 10.89024 50.36032C43.56608 515.0976 0 578.53952 0 651.84768z m159.9744-150.8096l-15.36-40.26368a57.82528 57.82528 0 0 1-5.4016-24.52992c0-33.41824 33.792-83.08736 86.8096-83.08736 18.2016 0 39.51616 9.07776 51.712 21.97504l50.03776 34.76992 42.54208-56.73984c48.17408-71.81824 129.44384-121.20064 221.09184-121.20064 129.2544 0 256.83968 123.20256 258.88256 246.36416v43.65824l45.00992 12.05248c50.7392 17.08032 84.76672 63.0272 84.76672 114.31424 0 59.43808-60.88704 133.9136-122.22976 143.68768h-342.71744v0.36864h-6.4256v-0.36864H194.23744l-21.22752-1.67424c-61.34784-9.7792-129.11616-82.52928-129.11616-141.97248 0-46.48448 39.60832-120.96 116.08064-147.3536z" fill="" ></path><path d="M256 654.2848h38.51776l28.97408-40.25856h72.19712l-1.00864 40.25856h35.53792l2.53952-182.1696h-41.6256L256 654.2848z m140.43648-70.5792H341.88288l56.91904-73.31328-2.36544 73.31328z m266.112-91.52c-3.21024-7.16288-8.36096-12.30336-15.47776-15.4112-7.11168-3.10272-17.24928-4.6592-30.41792-4.6592h-74.0608l-70.28224 182.1696h37.51936l26.78784-69.45792h23.98208c16.15872 0 27.24864-0.4096 33.29024-1.24928 10.34752-1.39776 18.74944-3.46112 25.1904-6.15936 6.43072-2.67776 12.69248-6.64064 18.80064-11.84768 6.08768-5.2224 11.6992-12.18048 16.78848-20.87936 5.09952-8.69888 8.448-17.64352 10.07104-26.83904 1.75104-9.94816 1.02912-18.5088-2.19136-25.66656z m-35.87072 28.76416c-1.16224 6.54848-4.1216 12.54912-8.89856 18.01728-4.77184 5.46816-10.7008 9.45152-17.77152 11.9296-7.06048 2.48832-20.50048 3.73248-40.28928 3.73248h-11.56096l20.33152-52.56192h26.83904c12.18048 0 19.91168 0.63488 23.2192 1.93024 3.28192 1.28 5.6576 3.31776 7.10144 6.144 1.44896 2.82112 1.792 6.4256 1.02912 10.80832z m103.92064-48.83456l-70.28224 182.1696h37.51936L768 472.1152h-37.4016z" fill="" ></path></symbol><symbol id="icon-wendang" viewBox="0 0 1024 1024"><path d="M832 0H390.4c-19.2 0-38.4 12.8-51.2 25.6l-192 192c-12.8 12.8-19.2 32-19.2 44.8V960c0 38.4 32 64 64 64h620.8c32 0 83.2-25.6 83.2-64V64c0-32-32-64-64-64zM358.4 57.6v140.8c0 19.2-12.8 32-32 32H185.6L358.4 57.6zM864 960c0 12.8-25.6 32-51.2 32H192c-19.2 0-32-12.8-32-32V262.4h166.4c38.4 0 64-32 64-64V32H832c19.2 0 32 12.8 32 32v896zM729.6 217.6H505.6c-6.4 0-19.2 6.4-19.2 19.2 0 6.4 6.4 19.2 19.2 19.2h230.4c6.4 0 19.2-6.4 19.2-19.2-6.4-12.8-12.8-19.2-25.6-19.2z m0 147.2H294.4c-6.4 0-19.2 6.4-19.2 19.2 0 6.4 6.4 19.2 19.2 19.2h441.6c6.4 0 19.2-6.4 19.2-19.2-6.4-12.8-12.8-19.2-25.6-19.2z m0 166.4H294.4c-6.4 0-19.2 6.4-19.2 19.2 0 6.4 6.4 19.2 19.2 19.2h441.6c6.4 0 19.2-6.4 19.2-19.2-6.4-12.8-12.8-19.2-25.6-19.2z m0 147.2H294.4c-6.4 0-19.2 6.4-19.2 19.2 0 6.4 6.4 19.2 19.2 19.2h441.6c6.4 0 19.2-6.4 19.2-19.2-6.4-12.8-12.8-19.2-25.6-19.2z m0 166.4H288c-6.4 0-19.2 6.4-19.2 19.2 0 6.4 6.4 19.2 19.2 19.2h435.2c6.4 0 19.2-6.4 19.2-19.2 0-12.8-6.4-19.2-12.8-19.2z" ></path></symbol><symbol id="icon-tubiaozhizuomobanyihuifu-" viewBox="0 0 1024 1024"><path d="M923.71 718.26l0.65-0.8 0.52-0.66 0.68-0.91 0.42-0.59q0.36-0.52 0.7-1l0.31-0.49q0.37-0.59 0.73-1.2l0.21-0.37q0.38-0.67 0.73-1.35l0.13-0.26q0.38-0.74 0.72-1.5l0.07-0.15q0.36-0.8 0.69-1.62v-0.08q0.33-0.84 0.63-1.7 0.3-0.87 0.56-1.75v-0.06q0.25-0.87 0.47-1.75v-0.13c0.13-0.56 0.26-1.13 0.37-1.7v-0.26c0.1-0.53 0.19-1.06 0.27-1.59 0-0.16 0-0.32 0.06-0.49 0.06-0.46 0.12-0.93 0.17-1.4 0-0.29 0-0.58 0.07-0.87s0.06-0.7 0.08-1.06V122A113.63 113.63 0 0 0 819.64 8.52H217.45A113.63 113.63 0 0 0 104 122v780a113.63 113.63 0 0 0 113.5 113.5h407.34a39.8 39.8 0 0 0 19.41-5h0.06q0.82-0.46 1.61-0.95l0.32-0.21c0.44-0.28 0.87-0.56 1.3-0.86l0.5-0.35c0.36-0.26 0.72-0.52 1.07-0.79l0.6-0.47 0.92-0.75 0.65-0.56 0.83-0.75 0.64-0.61 0.78-0.78 0.35-0.35 268.3-283 0.28-0.31 0.65-0.72zM217.45 935.48A33.54 33.54 0 0 1 184 902V122a33.54 33.54 0 0 1 33.5-33.5h602.14a33.54 33.54 0 0 1 33.5 33.5v530.47h-154.8A113.63 113.63 0 0 0 584.84 766v169.48z m582.65-203L664.84 875.14V766a33.54 33.54 0 0 1 33.5-33.5z" fill="#7B808B" ></path><path d="M315 286.51h358.53a40 40 0 0 0 0-80H315a40 40 0 0 0 0 80zM713.53 416.84a40 40 0 0 0-40-40H315a40 40 0 0 0 0 80h358.53a40 40 0 0 0 40-40zM523.53 547.17H315a40 40 0 0 0 0 80h208.53a40 40 0 0 0 0-80zM538.45 874.41H344a15 15 0 0 0 0 30h194.45a15 15 0 0 0 0-30z" fill="#7B808B" ></path><path d="M288.51 889.41m-15 0a15 15 0 1 0 30 0 15 15 0 1 0-30 0Z" fill="#7B808B" ></path></symbol><symbol id="icon-zdlxb" viewBox="0 0 1024 1024"><path d="M993.889598 704.576038l-41.044193 12.788439c1.179981 8.865801 2.455635 17.508362 2.455636 26.661186 0 9.057149-1.435112 17.859167-2.806441 26.533619l41.394998 12.884114c9.694976 2.806441 17.859167 9.376063 22.57909 18.241864 4.688031 8.865801 5.644772 19.262387 2.423745 28.829798-6.665296 19.708867-28.574668 30.360584-49.080819 24.046093l-41.873369-12.979788a207.389579 207.389579 0 0 1-32.178392 43.27659l25.544987 33.741069a36.388053 36.388053 0 0 1-8.61067 52.174281 39.896104 39.896104 0 0 1-54.438568-8.227973l-25.672553-33.900526a218.009405 218.009405 0 0 1-52.748326 17.093774v41.139867c0 20.601825-17.476471 37.408577-38.939363 37.408577-21.558566 0-39.003146-16.711078-39.003145-37.408577v-41.139867a217.818057 217.818057 0 0 1-52.780218-17.093774l-25.60877 33.900526a40.183126 40.183126 0 0 1-54.47046 8.227973 36.164814 36.164814 0 0 1-8.578778-52.174281l25.800118-34.059983a201.138871 201.138871 0 0 1-33.29459-42.702545l-40.916628 12.78844c-20.601825 6.442057-42.511196-4.337226-49.11271-24.046093a36.930206 36.930206 0 0 1 24.970943-47.071662l41.076084-12.724657c-1.148089-8.833909-2.519418-17.604036-2.519418-26.693077 0-9.184715 1.498894-17.859167 2.838332-26.661185l-41.42689-12.820331c-20.569934-6.442057-31.66813-27.490361-24.970942-47.135445 6.601514-19.613193 28.510885-30.296802 49.112709-24.014201l41.841478 13.04357a211.057087 211.057087 0 0 1 32.178392-43.372263l-25.513096-33.645396a36.451836 36.451836 0 0 1 8.578779-52.206172 39.959887 39.959887 0 0 1 54.47046 8.291756l25.640661 33.900526a214.469463 214.469463 0 0 1 52.748326-17.125665v-41.139868c0-20.633716 17.412688-37.408577 39.003146-37.408577 21.494783 0 38.971254 16.647295 38.971254 37.408577v41.076085a216.733751 216.733751 0 0 1 52.716435 17.157557l25.672553-33.932418a40.119343 40.119343 0 0 1 54.438568-8.291756c17.348905 12.182503 21.271544 35.495095 8.642561 52.238064l-25.832009 34.028092c12.724657 12.916005 24.365007 26.980099 33.358373 42.60687l40.884736-12.660874c20.538042-6.314491 42.415522 4.401009 49.080819 24.077985 6.76097 19.613193-4.528575 40.661497-25.002835 47.071662z m-252.898564-91.273101c-75.327416 0-136.463172 58.616338-136.463172 130.8184 0 72.265844 61.135756 130.754617 136.463172 130.754617 75.231742 0 136.39939-58.488773 136.39939-130.754617 0-72.202062-61.071974-130.8184-136.39939-130.8184z" ></path><path d="M441.690527 895.669127H99.528018a49.750537 49.750537 0 0 1-49.782429-49.782429V99.596749c0-27.45847 22.292068-49.782429 49.782429-49.782429h447.818617v223.909309a99.532966 99.532966 0 0 0 99.532966 99.532966h199.002149v36.451836a322.102837 322.102837 0 0 1 49.782429 32.018935V348.381326l-8.802018-8.770127 1.530785-8.802018-307.05011-330.713507H99.559909A99.532966 99.532966 0 0 0 0.026943 99.62864v746.321841a99.532966 99.532966 0 0 0 99.532966 99.532966h390.446043a322.963904 322.963904 0 0 1-48.315425-49.81432z" ></path><path d="M597.129064 91.145536l217.818057 232.32863h-168.06752a49.750537 49.750537 0 0 1-49.782428-49.750537V91.145536h0.031891zM174.185715 423.007132h248.784577v-49.750537H174.185715v49.750537zM422.970292 223.9412H174.185715v49.782429h248.784577V223.9412zM174.185715 744.057554h248.784577v-49.750537H174.185715v49.750537zM514.115828 545.023514H174.185715v49.750537h339.930113v-49.750537z" ></path></symbol><symbol id="icon-APIwendang1" viewBox="0 0 1152 1024"><path d="M526.272 56c-160.832 0-297.792 106.88-330.88 252.736C80 356.864 3.2 465.536 3.2 587.904c0 168.512 144.256 305.088 322.112 305.088h26.88c19.712 0 35.776-15.168 35.776-33.92 0-18.688-16-33.856-35.84-33.856h-26.816c-138.368 0-250.496-106.24-250.496-237.312 0-100.416 66.496-188.928 164.48-222.912l19.84-6.848 3.2-19.84c19.648-122.688 131.52-214.528 263.872-214.528 126.656 0 235.136 84.224 261.056 200l6.016 26.88h33.28c138.368 0 250.496 106.24 250.496 237.248 0 131.072-112.128 237.312-250.496 237.312h-148.288c-19.776 0-35.84 15.168-35.84 33.92 0 18.688 16.064 33.92 35.84 33.92h148.288c177.92 0 322.112-136.64 322.112-305.152 0-160.896-131.584-292.736-298.432-304.256C807.808 150.272 677.248 56 526.272 56zM370.944 418.304h47.616l97.664 255.552h-44.736l-23.232-64H341.248l-23.296 64H273.28l97.728-255.552z m-17.216 157.12h81.984l-40.064-112h-1.472l-40.448 112z m187.52-157.12h105.984c61.568 0 92.736 26.112 92.736 78.4 0 52.608-31.168 79.104-93.44 79.104h-63.36v98.048h-41.856V418.304z m41.92 35.84v85.888h60.8c18.688 0 32.256-3.584 40.832-10.048 8.64-6.784 12.928-17.92 12.928-33.28s-4.672-26.112-13.248-32.64c-8.576-6.72-22.208-9.984-40.448-9.984h-60.8z m192.576-35.84v255.552h41.856V418.304h-41.856z m-34.688 372.544a25.344 25.344 0 0 0-30.976-40.064l-140.672 108.608 141.184 103.68a25.344 25.344 0 1 0 29.952-40.768l-87.04-63.936 87.552-67.52z" fill="#8F99AE" ></path></symbol><symbol id="icon-debug" viewBox="0 0 1024 1024"><path d="M1022.065 583.401c0 11.056-4.034 20.62-12.111 28.697-8.078 8.078-17.64 12.118-28.69 12.118H838.445c0 72.69-14.235 134.32-42.718 184.899l132.615 133.263c8.077 8.066 12.118 17.635 12.118 28.69 0 11.051-4.035 20.615-12.118 28.692-7.653 8.066-17.21 12.107-28.69 12.107-11.476 0-21.04-4.041-28.691-12.107L744.718 874.153c-2.125 2.118-5.31 4.884-9.559 8.284-4.259 3.398-13.18 9.463-26.785 18.172-13.599 8.715-27.415 16.473-41.44 23.276-14.03 6.798-31.462 12.966-52.29 18.493-20.827 5.518-41.447 8.286-61.842 8.286V379.387H471.19v571.277c-21.668 0-43.25-2.875-64.708-8.615-21.473-5.735-39.96-12.75-55.476-21.04-15.519-8.29-29.542-16.572-42.078-24.867-12.541-8.29-21.78-15.193-27.74-20.715l-9.558-8.932L154.95 998.48c-8.5 8.921-18.7 13.387-30.606 13.387-10.2 0-19.335-3.405-27.409-10.203-8.079-7.652-12.437-17.11-13.08-28.372-0.634-11.263 2.659-21.143 9.893-29.647l128.787-144.727c-24.65-48.465-36.98-106.7-36.98-174.71H42.739c-11.058 0-20.617-4.041-28.69-12.112-8.08-8.082-12.12-17.641-12.12-28.697 0-11.05 4.04-20.62 12.12-28.69 8.073-8.072 17.632-12.107 28.69-12.107h142.815V355.157L75.25 244.855c-8.075-8.078-12.114-17.641-12.114-28.692 0-11.05 4.045-20.62 12.114-28.69 8.072-8.077 17.64-12.123 28.692-12.123 11.057 0 20.612 4.052 28.692 12.123l110.302 110.302h538.129l110.303-110.302c8.07-8.077 17.632-12.123 28.69-12.123 11.05 0 20.618 4.052 28.69 12.123 8.078 8.07 12.119 17.64 12.119 28.69s-4.041 20.615-12.12 28.692L838.447 355.157v187.448h142.816c11.056 0 20.619 4.035 28.69 12.114 8.078 8.07 12.119 17.639 12.119 28.683h-0.006zM716.021 216.158H307.97c0-56.526 19.871-104.668 59.616-144.414 39.734-39.746 87.883-59.612 144.411-59.612 56.53 0 104.679 19.866 144.413 59.612 39.748 39.745 59.612 87.888 59.612 144.414z" fill="" ></path></symbol></svg>',W=(H=document.getElementsByTagName("script"))[H.length-1].getAttribute("data-injectcss");if(W&&!C.__iconfont__svg__cssinject__){C.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(G){console&&console.log(G)}}(function(G){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(G,0);else{var X=function(){document.removeEventListener("DOMContentLoaded",X,!1),G()};document.addEventListener("DOMContentLoaded",X,!1)}else document.attachEvent&&(Q=G,ee=C.document,ie=!1,(te=function(){try{ee.documentElement.doScroll("left")}catch{return void setTimeout(te,50)}Z()})(),ee.onreadystatechange=function(){ee.readyState=="complete"&&(ee.onreadystatechange=null,Z())});function Z(){ie||(ie=!0,Q())}var Q,ee,ie,te})(function(){var G,X;(G=document.createElement("div")).innerHTML=U,U=null,(X=G.getElementsByTagName("svg")[0])&&(X.setAttribute("aria-hidden","true"),X.style.position="absolute",X.style.width=0,X.style.height=0,X.style.overflow="hidden",function(Z,Q){Q.firstChild?function(ee,ie){ie.parentNode.insertBefore(ee,ie)}(Z,Q.firstChild):Q.appendChild(Z)}(X,document.body))})}(window);String.prototype.gblen=function(){let C=0;for(let H=0;H<this.length;H++)this.charCodeAt(H)>127||this.charCodeAt(H)==94?C+=2:C++;return C};String.prototype.startWith=function(C){return new RegExp("^"+C).test(this)};const MyIcon=create$2({scriptUrl:iconFront}),app=createApp(_sfc_main$j);app.use(router);app.component("my-icon",MyIcon);setupStore(app);setupI18n(app);app.mount("#app");export{popScopeId as $,__unplugin_components_3 as A,commonjsGlobal as B,getDefaultExportFromCjs as C,AntdIcon as D,getAugmentedNamespace as E,Fragment as F,localStore as G,DownOutlined$1 as H,DebugAxios as I,normalizeStyle as J,SelectOption as K,__unplugin_components_1$3 as L,Input as M,Button$1 as N,__unplugin_components_4$1 as O,__unplugin_components_7$1 as P,__unplugin_components_8 as Q,Radio as R,Spin as S,Tabs as T,__unplugin_components_12 as U,VAceEditor as V,__unplugin_components_13 as W,Menu as X,Dropdown$1 as Y,pushScopeId as Z,_export_sfc as _,__vitePreload as a,ace$1 as a0,__unplugin_components_0$3 as a1,commonjsRequire as a2,db as a3,parser$8 as a4,log$1 as a5,select as a6,getConfig$1 as a7,insertMarkers$3 as a8,setupGraphViewbox$1 as a9,_copyArray as aA,isArray_1 as aB,isSymbol_1 as aC,_stringToPath as aD,toString_1 as aE,sanitizeText$5 as aF,ref as aG,watch as aH,Checkbox as aI,__unplugin_components_4 as aJ,getStylesFromArray as aa,evaluate as ab,addHtmlLabel$1 as ac,common$1 as ad,insertNode as ae,interpolateToCurve as af,curveLinear as ag,insertEdgeLabel as ah,line$1 as ai,commonDb$1 as aj,parseDirective$c as ak,clear$g as al,lighten$1 as am,darken$1 as an,arc as ao,Color$1 as ap,_ as aq,_root as ar,isObject_1 as as,toNumber_1 as at,_baseGet as au,_assignValue as av,_castPath as aw,_isIndex as ax,_toKey as ay,_arrayMap as az,useGlobalsStore as b,computed as c,defineAsyncComponent as d,useknife4jModels as e,useI18n as f,constants$1 as g,uniqueId_1 as h,cloneDeep_1 as i,createElementBlock as j,createBaseVNode as k,createVNode as l,message$1 as m,normalizeClass as n,openBlock as o,createCommentVNode as p,__unplugin_components_1$1 as q,resolveComponent as r,__unplugin_components_5 as s,toDisplayString$1 as t,utils$c as u,createTextVNode as v,withCtx as w,createBlock as x,renderList as y,__unplugin_components_5$1 as z};
|