index-65bbb3e9.js 1.7 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var Bp=Object.defineProperty;var $p=(d,b,A)=>b in d?Bp(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A;var An=(d,b,A)=>($p(d,typeof b!="symbol"?b+"":b,A),A);function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1);async function*d(){}}(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const C of document.querySelectorAll('link[rel="modulepreload"]'))w(C);new MutationObserver(C=>{for(const x of C)if(x.type==="childList")for(const S of x.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&w(S)}).observe(document,{childList:!0,subtree:!0});function A(C){const x={};return C.integrity&&(x.integrity=C.integrity),C.referrerPolicy&&(x.referrerPolicy=C.referrerPolicy),C.crossOrigin==="use-credentials"?x.credentials="include":C.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function w(C){if(C.ep)return;C.ep=!0;const x=A(C);fetch(C.href,x)}})();const Lato="",FiraCode="",index$1="",common$1="",icon$1="",ripple="",popup="",actionSheet="",ActionSheetSfc="",elevation="",appBar="",AppBarSfc="",avatar="",AvatarSfc="",avatarGroup="",AvatarGroupSfc="",button="",backTop="",BackTopSfc="",badge="",BadgeSfc="",loading$1="",bottomNavigation="",BottomNavigationSfc="",bottomNavigationItem="",BottomNavigationItemSfc="",breadcrumb="",BreadcrumbSfc="",breadcrumbs="",BreadcrumbsSfc="",hoverOverlay="",ButtonSfc="",buttonGroup="",ButtonGroupSfc="",card="",CardSfc="",cell="",CellSfc="",formDetails="",checkbox="",CheckboxSfc="",checkboxGroup="",CheckboxGroupSfc="",chip="",ChipSfc="",col="",ColSfc="",CollapseSfc="",collapseItem="",CollapseItemSfc="",countdown="",CountdownSfc="",counter="",CounterSfc="",datePicker="",DatePickerSfc="",dialog="",DialogSfc="",divider="",DividerSfc="",drag="",DragSfc="",tooltip="",ellipsis="",EllipsisSfc="",fab="",FormSfc="",FormDetailsSfc="",HoverOverlaySfc="",IconSfc="",image="",ImageSfc="",swipe="",swipeItem="",imagePreview="",ImagePreviewSfc="",sticky="",IndexAnchorSfc="",indexBar="",IndexBarSfc="",fieldDecorator="",input="",InputSfc="",link="",LinkSfc="",list="",ListSfc="",LoadingSfc="",loadingBar="",menu="",MenuSfc="",select="",option="",OptionSfc="",overlay$2="",pagination="",PaginationSfc="",paper="",PaperSfc="",picker="",PickerSfc="",progress="",ProgressSfc="",pullRefresh="",PullRefreshSfc="",radio="",RadioSfc="",radioGroup="",RadioGroupSfc="",rate="",RateSfc="",result="",ResultSfc="",row="",RowSfc="",SelectSfc="",skeleton="",SkeletonSfc="",slider="",SliderSfc="",SnackbarSfc="",snackbar="",coreSfc="",space="",step="",StepSfc="",StepsSfc="",StickySfc="",StyleProviderSfc="",SwipeSfc="",SwipeItemSfc="",_switch="",SwitchSfc="",tab="",TabSfc="",tabItem="",TabItemSfc="",table$1="",TableSfc="",tabs="",TabsSfc="",TabsItemsSfc="",timePicker="",TimePickerSfc="",TooltipSfc="",uploader="",UploaderSfc="",theme="";function makeMap(d,b){const A=Object.create(null),w=d.split(",");for(let C=0;C<w.length;C++)A[w[C]]=!0;return b?C=>!!A[C.toLowerCase()]:C=>!!A[C]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=d=>onRE.test(d),isModelListener=d=>d.startsWith("onUpdate:"),extend$2=Object.assign,remove$6=(d,b)=>{const A=d.indexOf(b);A>-1&&d.splice(A,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$2=(d,b)=>hasOwnProperty$f.call(d,b),isArray$9=Array.isArray,isMap$1=d=>toTypeString(d)==="[object Map]",isSet$1=d=>toTypeString(d)==="[object Set]",isFunction$5=d=>typeof d=="function",isString$2=d=>typeof d=="string",isSymbol$2=d=>typeof d=="symbol",isObject$6=d=>d!==null&&typeof d=="object",isPromise$1=d=>isObject$6(d)&&isFunction$5(d.then)&&isFunction$5(d.catch),objectToString$3=Object.prototype.toString,toTypeString=d=>objectToString$3.call(d),toRawType=d=>toTypeString(d).slice(8,-1),isPlainObject$3=d=>toTypeString(d)==="[object Object]",isIntegerKey=d=>isString$2(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=d=>{const b=Object.create(null);return A=>b[A]||(b[A]=d(A))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(d=>d.replace(camelizeRE$1,(b,A)=>A?A.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(d=>d.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(d=>d.charAt(0).toUpperCase()+d.slice(1)),toHandlerKey=cacheStringFunction(d=>d?"on".concat(capitalize(d)):""),hasChanged=(d,b)=>!Object.is(d,b),invokeArrayFns=(d,b)=>{for(let A=0;A<d.length;A++)d[A](b)},def=(d,b,A)=>{Object.defineProperty(d,b,{configurable:!0,enumerable:!1,value:A})},looseToNumber=d=>{const b=parseFloat(d);return isNaN(b)?d:b},toNumber$3=d=>{const b=isString$2(d)?Number(d):NaN;return isNaN(b)?d:b};let _globalThis;const getGlobalThis$1=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(d){if(isArray$9(d)){const b={};for(let A=0;A<d.length;A++){const w=d[A],C=isString$2(w)?parseStringStyle(w):normalizeStyle(w);if(C)for(const x in C)b[x]=C[x]}return b}else{if(isString$2(d))return d;if(isObject$6(d))return d}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(d){const b={};return d.replace(styleCommentRE,"").split(listDelimiterRE).forEach(A=>{if(A){const w=A.split(propertyDelimiterRE);w.length>1&&(b[w[0].trim()]=w[1].trim())}}),b}function normalizeClass(d){let b="";if(isString$2(d))b=d;else if(isArray$9(d))for(let A=0;A<d.length;A++){const w=normalizeClass(d[A]);w&&(b+=w+" ")}else if(isObject$6(d))for(const A in d)d[A]&&(b+=A+" ");return b.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(d){return!!d||d===""}const toDisplayString=d=>isString$2(d)?d:d==null?"":isArray$9(d)||isObject$6(d)&&(d.toString===objectToString$3||!isFunction$5(d.toString))?JSON.stringify(d,replacer$1,2):String(d),replacer$1=(d,b)=>b&&b.__v_isRef?replacer$1(d,b.value):isMap$1(b)?{["Map(".concat(b.size,")")]:[...b.entries()].reduce((A,[w,C])=>(A["".concat(w," =>")]=C,A),{})}:isSet$1(b)?{["Set(".concat(b.size,")")]:[...b.values()]}:isObject$6(b)&&!isArray$9(b)&&!isPlainObject$3(b)?String(b):b;let activeEffectScope;class EffectScope{constructor(b=!1){this.detached=b,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!b&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(b){if(this._active){const A=activeEffectScope;try{return activeEffectScope=this,b()}finally{activeEffectScope=A}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(b){if(this._active){let A,w;for(A=0,w=this.effects.length;A<w;A++)this.effects[A].stop();for(A=0,w=this.cleanups.length;A<w;A++)this.cleanups[A]();if(this.scopes)for(A=0,w=this.scopes.length;A<w;A++)this.scopes[A].stop(!0);if(!this.detached&&this.parent&&!b){const C=this.parent.scopes.pop();C&&C!==this&&(this.parent.scopes[this.index]=C,C.index=this.index)}this.parent=void 0,this._active=!1}}}function recordEffectScope(d,b=activeEffectScope){b&&b.active&&b.effects.push(d)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(d){activeEffectScope&&activeEffectScope.cleanups.push(d)}const createDep=d=>{const b=new Set(d);return b.w=0,b.n=0,b},wasTracked=d=>(d.w&trackOpBit)>0,newTracked=d=>(d.n&trackOpBit)>0,initDepMarkers=({deps:d})=>{if(d.length)for(let b=0;b<d.length;b++)d[b].w|=trackOpBit},finalizeDepMarkers=d=>{const{deps:b}=d;if(b.length){let A=0;for(let w=0;w<b.length;w++){const C=b[w];wasTracked(C)&&!newTracked(C)?C.delete(d):b[A++]=C,C.w&=~trackOpBit,C.n&=~trackOpBit}b.length=A}},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(b,A=null,w){this.fn=b,this.scheduler=A,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,w)}run(){if(!this.active)return this.fn();let b=activeEffect,A=shouldTrack;for(;b;){if(b===this)return;b=b.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=A,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(d){const{deps:b}=d;if(b.length){for(let A=0;A<b.length;A++)b[A].delete(d);b.length=0}}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const d=trackStack.pop();shouldTrack=d===void 0?!0:d}function track(d,b,A){if(shouldTrack&&activeEffect){let w=targetMap.get(d);w||targetMap.set(d,w=new Map);let C=w.get(A);C||w.set(A,C=createDep()),trackEffects(C)}}function trackEffects(d,b){let A=!1;effectTrackDepth<=maxMarkerBits?newTracked(d)||(d.n|=trackOpBit,A=!wasTracked(d)):A=!d.has(activeEffect),A&&(d.add(activeEffect),activeEffect.deps.push(d))}function trigger$1(d,b,A,w,C,x){const S=targetMap.get(d);if(!S)return;let E=[];if(b==="clear")E=[...S.values()];else if(A==="length"&&isArray$9(d)){const P=Number(w);S.forEach((B,k)=>{(k==="length"||k>=P)&&E.push(B)})}else switch(A!==void 0&&E.push(S.get(A)),b){case"add":isArray$9(d)?isIntegerKey(A)&&E.push(S.get("length")):(E.push(S.get(ITERATE_KEY)),isMap$1(d)&&E.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$9(d)||(E.push(S.get(ITERATE_KEY)),isMap$1(d)&&E.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(d)&&E.push(S.get(ITERATE_KEY));break}if(E.length===1)E[0]&&triggerEffects(E[0]);else{const P=[];for(const B of E)B&&P.push(...B);triggerEffects(createDep(P))}}function triggerEffects(d,b){const A=isArray$9(d)?d:[...d];for(const w of A)w.computed&&triggerEffect(w);for(const w of A)w.computed||triggerEffect(w)}function triggerEffect(d,b){(d!==activeEffect||d.allowRecurse)&&(d.scheduler?d.scheduler():d.run())}function getDepFromReactive(d,b){var A;return(A=targetMap.get(d))==null?void 0:A.get(b)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(d=>d!=="arguments"&&d!=="caller").map(d=>Symbol[d]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const d={};return["includes","indexOf","lastIndexOf"].forEach(b=>{d[b]=function(...A){const w=toRaw(this);for(let x=0,S=this.length;x<S;x++)track(w,"get",x+"");const C=w[b](...A);return C===-1||C===!1?w[b](...A.map(toRaw)):C}}),["push","pop","shift","unshift","splice"].forEach(b=>{d[b]=function(...A){pauseTracking();const w=toRaw(this)[b].apply(this,A);return resetTracking(),w}}),d}function hasOwnProperty$e(d){const b=toRaw(this);return track(b,"has",d),b.hasOwnProperty(d)}function createGetter(d=!1,b=!1){return function(w,C,x){if(C==="__v_isReactive")return!d;if(C==="__v_isReadonly")return d;if(C==="__v_isShallow")return b;if(C==="__v_raw"&&x===(d?b?shallowReadonlyMap:readonlyMap:b?shallowReactiveMap:reactiveMap).get(w))return w;const S=isArray$9(w);if(!d){if(S&&hasOwn$2(arrayInstrumentations,C))return Reflect.get(arrayInstrumentations,C,x);if(C==="hasOwnProperty")return hasOwnProperty$e}const E=Reflect.get(w,C,x);return(isSymbol$2(C)?builtInSymbols.has(C):isNonTrackableKeys(C))||(d||track(w,"get",C),b)?E:isRef(E)?S&&isIntegerKey(C)?E:E.value:isObject$6(E)?d?readonly(E):reactive(E):E}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(d=!1){return function(A,w,C,x){let S=A[w];if(isReadonly(S)&&isRef(S)&&!isRef(C))return!1;if(!d&&(!isShallow(C)&&!isReadonly(C)&&(S=toRaw(S),C=toRaw(C)),!isArray$9(A)&&isRef(S)&&!isRef(C)))return S.value=C,!0;const E=isArray$9(A)&&isIntegerKey(w)?Number(w)<A.length:hasOwn$2(A,w),P=Reflect.set(A,w,C,x);return A===toRaw(x)&&(E?hasChanged(C,S)&&trigger$1(A,"set",w,C):trigger$1(A,"add",w,C)),P}}function deleteProperty(d,b){const A=hasOwn$2(d,b);d[b];const w=Reflect.deleteProperty(d,b);return w&&A&&trigger$1(d,"delete",b,void 0),w}function has$1$1(d,b){const A=Reflect.has(d,b);return(!isSymbol$2(b)||!builtInSymbols.has(b))&&track(d,"has",b),A}function ownKeys$1(d){return track(d,"iterate",isArray$9(d)?"length":ITERATE_KEY),Reflect.ownKeys(d)}const mutableHandlers={get:get$1$1,set:set$1,deleteProperty,has:has$1$1,ownKeys:ownKeys$1},readonlyHandlers={get:readonlyGet,set(d,b){return!0},deleteProperty(d,b){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=d=>d,getProto$1=d=>Reflect.getPrototypeOf(d);function get$2(d,b,A=!1,w=!1){d=d.__v_raw;const C=toRaw(d),x=toRaw(b);A||(b!==x&&track(C,"get",b),track(C,"get",x));const{has:S}=getProto$1(C),E=w?toShallow:A?toReadonly:toReactive;if(S.call(C,b))return E(d.get(b));if(S.call(C,x))return E(d.get(x));d!==C&&d.get(b)}function has$4(d,b=!1){const A=this.__v_raw,w=toRaw(A),C=toRaw(d);return b||(d!==C&&track(w,"has",d),track(w,"has",C)),d===C?A.has(d):A.has(d)||A.has(C)}function size$1(d,b=!1){return d=d.__v_raw,!b&&track(toRaw(d),"iterate",ITERATE_KEY),Reflect.get(d,"size",d)}function add(d){d=toRaw(d);const b=toRaw(this);return getProto$1(b).has.call(b,d)||(b.add(d),trigger$1(b,"add",d,d)),this}function set(d,b){b=toRaw(b);const A=toRaw(this),{has:w,get:C}=getProto$1(A);let x=w.call(A,d);x||(d=toRaw(d),x=w.call(A,d));const S=C.call(A,d);return A.set(d,b),x?hasChanged(b,S)&&trigger$1(A,"set",d,b):trigger$1(A,"add",d,b),this}function deleteEntry(d){const b=toRaw(this),{has:A,get:w}=getProto$1(b);let C=A.call(b,d);C||(d=toRaw(d),C=A.call(b,d)),w&&w.call(b,d);const x=b.delete(d);return C&&trigger$1(b,"delete",d,void 0),x}function clear(){const d=toRaw(this),b=d.size!==0,A=d.clear();return b&&trigger$1(d,"clear",void 0,void 0),A}function createForEach(d,b){return function(w,C){const x=this,S=x.__v_raw,E=toRaw(S),P=b?toShallow:d?toReadonly:toReactive;return!d&&track(E,"iterate",ITERATE_KEY),S.forEach((B,k)=>w.call(C,P(B),P(k),x))}}function createIterableMethod(d,b,A){return function(...w){const C=this.__v_raw,x=toRaw(C),S=isMap$1(x),E=d==="entries"||d===Symbol.iterator&&S,P=d==="keys"&&S,B=C[d](...w),k=A?toShallow:b?toReadonly:toReactive;return!b&&track(x,"iterate",P?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:$,done:I}=B.next();return I?{value:$,done:I}:{value:E?[k($[0]),k($[1])]:k($),done:I}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(d){return function(...b){return d==="delete"?!1:this}}function createInstrumentations(){const d={get(x){return get$2(this,x)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},b={get(x){return get$2(this,x,!1,!0)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},A={get(x){return get$2(this,x,!0)},get size(){return size$1(this,!0)},has(x){return has$4.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$2(this,x,!0,!0)},get size(){return size$1(this,!0)},has(x){return has$4.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=>{d[x]=createIterableMethod(x,!1,!1),A[x]=createIterableMethod(x,!0,!1),b[x]=createIterableMethod(x,!1,!0),w[x]=createIterableMethod(x,!0,!0)}),[d,A,b,w]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(d,b){const A=b?d?shallowReadonlyInstrumentations:shallowInstrumentations:d?readonlyInstrumentations:mutableInstrumentations;return(w,C,x)=>C==="__v_isReactive"?!d:C==="__v_isReadonly"?d:C==="__v_raw"?w:Reflect.get(hasOwn$2(A,C)&&C in w?A:w,C,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(d){switch(d){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(d){return d.__v_skip||!Object.isExtensible(d)?0:targetTypeMap(toRawType(d))}function reactive(d){return isReadonly(d)?d:createReactiveObject(d,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(d){return createReactiveObject(d,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(d){return createReactiveObject(d,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(d,b,A,w,C){if(!isObject$6(d)||d.__v_raw&&!(b&&d.__v_isReactive))return d;const x=C.get(d);if(x)return x;const S=getTargetType(d);if(S===0)return d;const E=new Proxy(d,S===2?w:A);return C.set(d,E),E}function isReactive(d){return isReadonly(d)?isReactive(d.__v_raw):!!(d&&d.__v_isReactive)}function isReadonly(d){return!!(d&&d.__v_isReadonly)}function isShallow(d){return!!(d&&d.__v_isShallow)}function isProxy(d){return isReactive(d)||isReadonly(d)}function toRaw(d){const b=d&&d.__v_raw;return b?toRaw(b):d}function markRaw(d){return def(d,"__v_skip",!0),d}const toReactive=d=>isObject$6(d)?reactive(d):d,toReadonly=d=>isObject$6(d)?readonly(d):d;function trackRefValue(d){shouldTrack&&activeEffect&&(d=toRaw(d),trackEffects(d.dep||(d.dep=createDep())))}function triggerRefValue(d,b){d=toRaw(d);const A=d.dep;A&&triggerEffects(A)}function isRef(d){return!!(d&&d.__v_isRef===!0)}function ref(d){return createRef(d,!1)}function shallowRef(d){return createRef(d,!0)}function createRef(d,b){return isRef(d)?d:new RefImpl(d,b)}class RefImpl{constructor(b,A){this.__v_isShallow=A,this.dep=void 0,this.__v_isRef=!0,this._rawValue=A?b:toRaw(b),this._value=A?b:toReactive(b)}get value(){return trackRefValue(this),this._value}set value(b){const A=this.__v_isShallow||isShallow(b)||isReadonly(b);b=A?b:toRaw(b),hasChanged(b,this._rawValue)&&(this._rawValue=b,this._value=A?b:toReactive(b),triggerRefValue(this))}}function unref(d){return isRef(d)?d.value:d}const shallowUnwrapHandlers={get:(d,b,A)=>unref(Reflect.get(d,b,A)),set:(d,b,A,w)=>{const C=d[b];return isRef(C)&&!isRef(A)?(C.value=A,!0):Reflect.set(d,b,A,w)}};function proxyRefs(d){return isReactive(d)?d:new Proxy(d,shallowUnwrapHandlers)}class CustomRefImpl{constructor(b){this.dep=void 0,this.__v_isRef=!0;const{get:A,set:w}=b(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=A,this._set=w}get value(){return this._get()}set value(b){this._set(b)}}function customRef(d){return new CustomRefImpl(d)}function toRefs$1(d){const b=isArray$9(d)?new Array(d.length):{};for(const A in d)b[A]=propertyToRef(d,A);return b}class ObjectRefImpl{constructor(b,A,w){this._object=b,this._key=A,this._defaultValue=w,this.__v_isRef=!0}get value(){const b=this._object[this._key];return b===void 0?this._defaultValue:b}set value(b){this._object[this._key]=b}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(b){this._getter=b,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1(d,b,A){return isRef(d)?d:isFunction$5(d)?new GetterRefImpl(d):isObject$6(d)&&arguments.length>1?propertyToRef(d,b,A):ref(d)}function propertyToRef(d,b,A){const w=d[b];return isRef(w)?w:new ObjectRefImpl(d,b,A)}class ComputedRefImpl{constructor(b,A,w,C){this._setter=A,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(b,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!C,this.__v_isReadonly=w}get value(){const b=toRaw(this);return trackRefValue(b),(b._dirty||!b._cacheable)&&(b._dirty=!1,b._value=b.effect.run()),b._value}set value(b){this._setter(b)}}function computed$1(d,b,A=!1){let w,C;const x=isFunction$5(d);return x?(w=d,C=NOOP):(w=d.get,C=d.set),new ComputedRefImpl(w,C,x||!C,A)}function warn$4(d,...b){}function callWithErrorHandling(d,b,A,w){let C;try{C=w?d(...w):d()}catch(x){handleError(x,b,A)}return C}function callWithAsyncErrorHandling(d,b,A,w){if(isFunction$5(d)){const x=callWithErrorHandling(d,b,A,w);return x&&isPromise$1(x)&&x.catch(S=>{handleError(S,b,A)}),x}const C=[];for(let x=0;x<d.length;x++)C.push(callWithAsyncErrorHandling(d[x],b,A,w));return C}function handleError(d,b,A,w=!0){const C=b?b.vnode:null;if(b){let x=b.parent;const S=b.proxy,E=A;for(;x;){const B=x.ec;if(B){for(let k=0;k<B.length;k++)if(B[k](d,S,E)===!1)return}x=x.parent}const P=b.appContext.config.errorHandler;if(P){callWithErrorHandling(P,null,10,[d,S,E]);return}}logError(d,A,C,w)}function logError(d,b,A,w=!0){console.error(d)}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(d){const b=currentFlushPromise||resolvedPromise;return d?b.then(this?d.bind(this):d):b}function findInsertionIndex(d){let b=flushIndex+1,A=queue$2.length;for(;b<A;){const w=b+A>>>1;getId(queue$2[w])<d?b=w+1:A=w}return b}function queueJob(d){(!queue$2.length||!queue$2.includes(d,isFlushing&&d.allowRecurse?flushIndex+1:flushIndex))&&(d.id==null?queue$2.push(d):queue$2.splice(findInsertionIndex(d.id),0,d),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(d){const b=queue$2.indexOf(d);b>flushIndex&&queue$2.splice(b,1)}function queuePostFlushCb(d){isArray$9(d)?pendingPostFlushCbs.push(...d):(!activePostFlushCbs||!activePostFlushCbs.includes(d,d.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(d),queueFlush()}function flushPreFlushCbs(d,b=isFlushing?flushIndex+1:0){for(;b<queue$2.length;b++){const A=queue$2[b];A&&A.pre&&(queue$2.splice(b,1),b--,A())}}function flushPostFlushCbs(d){if(pendingPostFlushCbs.length){const b=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...b);return}for(activePostFlushCbs=b,activePostFlushCbs.sort((A,w)=>getId(A)-getId(w)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=d=>d.id==null?1/0:d.id,comparator=(d,b)=>{const A=getId(d)-getId(b);if(A===0){if(d.pre&&!b.pre)return-1;if(b.pre&&!d.pre)return 1}return A};function flushJobs(d){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);const b=NOOP;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const A=queue$2[flushIndex];A&&A.active!==!1&&callWithErrorHandling(A,null,14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(d,b,...A){if(d.isUnmounted)return;const w=d.vnode.props||EMPTY_OBJ;let C=A;const x=b.startsWith("update:"),S=x&&b.slice(7);if(S&&S in w){const k="".concat(S==="modelValue"?"model":S,"Modifiers"),{number:$,trim:I}=w[k]||EMPTY_OBJ;I&&(C=A.map(D=>isString$2(D)?D.trim():D)),$&&(C=A.map(looseToNumber))}let E,P=w[E=toHandlerKey(b)]||w[E=toHandlerKey(camelize$1(b))];!P&&x&&(P=w[E=toHandlerKey(hyphenate(b))]),P&&callWithAsyncErrorHandling(P,d,6,C);const B=w[E+"Once"];if(B){if(!d.emitted)d.emitted={};else if(d.emitted[E])return;d.emitted[E]=!0,callWithAsyncErrorHandling(B,d,6,C)}}function normalizeEmitsOptions(d,b,A=!1){const w=b.emitsCache,C=w.get(d);if(C!==void 0)return C;const x=d.emits;let S={},E=!1;if(!isFunction$5(d)){const P=B=>{const k=normalizeEmitsOptions(B,b,!0);k&&(E=!0,extend$2(S,k))};!A&&b.mixins.length&&b.mixins.forEach(P),d.extends&&P(d.extends),d.mixins&&d.mixins.forEach(P)}return!x&&!E?(isObject$6(d)&&w.set(d,null),null):(isArray$9(x)?x.forEach(P=>S[P]=null):extend$2(S,x),isObject$6(d)&&w.set(d,S),S)}function isEmitListener(d,b){return!d||!isOn(b)?!1:(b=b.slice(2).replace(/Once$/,""),hasOwn$2(d,b[0].toLowerCase()+b.slice(1))||hasOwn$2(d,hyphenate(b))||hasOwn$2(d,b))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(d){const b=currentRenderingInstance;return currentRenderingInstance=d,currentScopeId=d&&d.type.__scopeId||null,b}function withCtx(d,b=currentRenderingInstance,A){if(!b||d._n)return d;const w=(...C)=>{w._d&&setBlockTracking(-1);const x=setCurrentRenderingInstance(b);let S;try{S=d(...C)}finally{setCurrentRenderingInstance(x),w._d&&setBlockTracking(1)}return S};return w._n=!0,w._c=!0,w._d=!0,w}function markAttrsAccessed(){}function renderComponentRoot(d){const{type:b,vnode:A,proxy:w,withProxy:C,props:x,propsOptions:[S],slots:E,attrs:P,emit:B,render:k,renderCache:$,data:I,setupState:D,ctx:F,inheritAttrs:z}=d;let L,H;const Q=setCurrentRenderingInstance(d);try{if(A.shapeFlag&4){const U=C||w;L=normalizeVNode(k.call(U,U,$,x,D,I,F)),H=P}else{const U=b;L=normalizeVNode(U.length>1?U(x,{attrs:P,slots:E,emit:B}):U(x,null)),H=b.props?P:getFunctionalFallthrough(P)}}catch(U){blockStack.length=0,handleError(U,d,1),L=createVNode(Comment)}let Y=L;if(H&&z!==!1){const U=Object.keys(H),{shapeFlag:G}=Y;U.length&&G&7&&(S&&U.some(isModelListener)&&(H=filterModelListeners(H,S)),Y=cloneVNode(Y,H))}return A.dirs&&(Y=cloneVNode(Y),Y.dirs=Y.dirs?Y.dirs.concat(A.dirs):A.dirs),A.transition&&(Y.transition=A.transition),L=Y,setCurrentRenderingInstance(Q),L}const getFunctionalFallthrough=d=>{let b;for(const A in d)(A==="class"||A==="style"||isOn(A))&&((b||(b={}))[A]=d[A]);return b},filterModelListeners=(d,b)=>{const A={};for(const w in d)(!isModelListener(w)||!(w.slice(9)in b))&&(A[w]=d[w]);return A};function shouldUpdateComponent(d,b,A){const{props:w,children:C,component:x}=d,{props:S,children:E,patchFlag:P}=b,B=x.emitsOptions;if(b.dirs||b.transition)return!0;if(A&&P>=0){if(P&1024)return!0;if(P&16)return w?hasPropsChanged(w,S,B):!!S;if(P&8){const k=b.dynamicProps;for(let $=0;$<k.length;$++){const I=k[$];if(S[I]!==w[I]&&!isEmitListener(B,I))return!0}}}else return(C||E)&&(!E||!E.$stable)?!0:w===S?!1:w?S?hasPropsChanged(w,S,B):!0:!!S;return!1}function hasPropsChanged(d,b,A){const w=Object.keys(b);if(w.length!==Object.keys(d).length)return!0;for(let C=0;C<w.length;C++){const x=w[C];if(b[x]!==d[x]&&!isEmitListener(A,x))return!0}return!1}function updateHOCHostEl({vnode:d,parent:b},A){for(;b&&b.subTree===d;)(d=b.vnode).el=A,b=b.parent}const isSuspense=d=>d.__isSuspense;function queueEffectWithSuspense(d,b){b&&b.pendingBranch?isArray$9(d)?b.effects.push(...d):b.effects.push(d):queuePostFlushCb(d)}function watchEffect(d,b){return doWatch(d,null,b)}const INITIAL_WATCHER_VALUE={};function watch(d,b,A){return doWatch(d,b,A)}function doWatch(d,b,{immediate:A,deep:w,flush:C,onTrack:x,onTrigger:S}=EMPTY_OBJ){var E;const P=getCurrentScope()===((E=currentInstance)==null?void 0:E.scope)?currentInstance:null;let B,k=!1,$=!1;if(isRef(d)?(B=()=>d.value,k=isShallow(d)):isReactive(d)?(B=()=>d,w=!0):isArray$9(d)?($=!0,k=d.some(U=>isReactive(U)||isShallow(U)),B=()=>d.map(U=>{if(isRef(U))return U.value;if(isReactive(U))return traverse(U);if(isFunction$5(U))return callWithErrorHandling(U,P,2)})):isFunction$5(d)?b?B=()=>callWithErrorHandling(d,P,2):B=()=>{if(!(P&&P.isUnmounted))return I&&I(),callWithAsyncErrorHandling(d,P,3,[D])}:B=NOOP,b&&w){const U=B;B=()=>traverse(U())}let I,D=U=>{I=Q.onStop=()=>{callWithErrorHandling(U,P,4)}},F;if(isInSSRComponentSetup)if(D=NOOP,b?A&&callWithAsyncErrorHandling(b,P,3,[B(),$?[]:void 0,D]):B(),C==="sync"){const U=useSSRContext();F=U.__watcherHandles||(U.__watcherHandles=[])}else return NOOP;let z=$?new Array(d.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const L=()=>{if(Q.active)if(b){const U=Q.run();(w||k||($?U.some((G,W)=>hasChanged(G,z[W])):hasChanged(U,z)))&&(I&&I(),callWithAsyncErrorHandling(b,P,3,[U,z===INITIAL_WATCHER_VALUE?void 0:$&&z[0]===INITIAL_WATCHER_VALUE?[]:z,D]),z=U)}else Q.run()};L.allowRecurse=!!b;let H;C==="sync"?H=L:C==="post"?H=()=>queuePostRenderEffect(L,P&&P.suspense):(L.pre=!0,P&&(L.id=P.uid),H=()=>queueJob(L));const Q=new ReactiveEffect(B,H);b?A?L():z=Q.run():C==="post"?queuePostRenderEffect(Q.run.bind(Q),P&&P.suspense):Q.run();const Y=()=>{Q.stop(),P&&P.scope&&remove$6(P.scope.effects,Q)};return F&&F.push(Y),Y}function instanceWatch(d,b,A){const w=this.proxy,C=isString$2(d)?d.includes(".")?createPathGetter(w,d):()=>w[d]:d.bind(w,w);let x;isFunction$5(b)?x=b:(x=b.handler,A=b);const S=currentInstance;setCurrentInstance(this);const E=doWatch(C,x.bind(w),A);return S?setCurrentInstance(S):unsetCurrentInstance(),E}function createPathGetter(d,b){const A=b.split(".");return()=>{let w=d;for(let C=0;C<A.length&&w;C++)w=w[A[C]];return w}}function traverse(d,b){if(!isObject$6(d)||d.__v_skip||(b=b||new Set,b.has(d)))return d;if(b.add(d),isRef(d))traverse(d.value,b);else if(isArray$9(d))for(let A=0;A<d.length;A++)traverse(d[A],b);else if(isSet$1(d)||isMap$1(d))d.forEach(A=>{traverse(A,b)});else if(isPlainObject$3(d))for(const A in d)traverse(d[A],b);return d}function withDirectives(d,b){const A=currentRenderingInstance;if(A===null)return d;const w=getExposeProxy(A)||A.proxy,C=d.dirs||(d.dirs=[]);for(let x=0;x<b.length;x++){let[S,E,P,B=EMPTY_OBJ]=b[x];S&&(isFunction$5(S)&&(S={mounted:S,updated:S}),S.deep&&traverse(E),C.push({dir:S,instance:w,value:E,oldValue:void 0,arg:P,modifiers:B}))}return d}function invokeDirectiveHook(d,b,A,w){const C=d.dirs,x=b&&b.dirs;for(let S=0;S<C.length;S++){const E=C[S];x&&(E.oldValue=x[S].value);let P=E.dir[w];P&&(pauseTracking(),callWithAsyncErrorHandling(P,A,8,[d.el,E,d,b]),resetTracking())}}function useTransitionState(){const d={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{d.isMounted=!0}),onBeforeUnmount(()=>{d.isUnmounting=!0}),d}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={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},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(d,{slots:b}){const A=getCurrentInstance(),w=useTransitionState();let C;return()=>{const x=b.default&&getTransitionRawChildren(b.default(),!0);if(!x||!x.length)return;let S=x[0];if(x.length>1){for(const z of x)if(z.type!==Comment){S=z;break}}const E=toRaw(d),{mode:P}=E;if(w.isLeaving)return emptyPlaceholder(S);const B=getKeepAliveChild(S);if(!B)return emptyPlaceholder(S);const k=resolveTransitionHooks(B,E,w,A);setTransitionHooks(B,k);const $=A.subTree,I=$&&getKeepAliveChild($);let D=!1;const{getTransitionKey:F}=B.type;if(F){const z=F();C===void 0?C=z:z!==C&&(C=z,D=!0)}if(I&&I.type!==Comment&&(!isSameVNodeType(B,I)||D)){const z=resolveTransitionHooks(I,E,w,A);if(setTransitionHooks(I,z),P==="out-in")return w.isLeaving=!0,z.afterLeave=()=>{w.isLeaving=!1,A.update.active!==!1&&A.update()},emptyPlaceholder(S);P==="in-out"&&B.type!==Comment&&(z.delayLeave=(L,H,Q)=>{const Y=getLeavingNodesForType(w,I);Y[String(I.key)]=I,L._leaveCb=()=>{H(),L._leaveCb=void 0,delete k.delayedLeave},k.delayedLeave=Q})}return S}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(d,b){const{leavingVNodes:A}=d;let w=A.get(b.type);return w||(w=Object.create(null),A.set(b.type,w)),w}function resolveTransitionHooks(d,b,A,w){const{appear:C,mode:x,persisted:S=!1,onBeforeEnter:E,onEnter:P,onAfterEnter:B,onEnterCancelled:k,onBeforeLeave:$,onLeave:I,onAfterLeave:D,onLeaveCancelled:F,onBeforeAppear:z,onAppear:L,onAfterAppear:H,onAppearCancelled:Q}=b,Y=String(d.key),U=getLeavingNodesForType(A,d),G=(X,Z)=>{X&&callWithAsyncErrorHandling(X,w,9,Z)},W=(X,Z)=>{const oe=Z[1];G(X,Z),isArray$9(X)?X.every(he=>he.length<=1)&&oe():X.length<=1&&oe()},K={mode:x,persisted:S,beforeEnter(X){let Z=E;if(!A.isMounted)if(C)Z=z||E;else return;X._leaveCb&&X._leaveCb(!0);const oe=U[Y];oe&&isSameVNodeType(d,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),G(Z,[X])},enter(X){let Z=P,oe=B,he=k;if(!A.isMounted)if(C)Z=L||P,oe=H||B,he=Q||k;else return;let J=!1;const le=X._enterCb=de=>{J||(J=!0,de?G(he,[X]):G(oe,[X]),K.delayedLeave&&K.delayedLeave(),X._enterCb=void 0)};Z?W(Z,[X,le]):le()},leave(X,Z){const oe=String(d.key);if(X._enterCb&&X._enterCb(!0),A.isUnmounting)return Z();G($,[X]);let he=!1;const J=X._leaveCb=le=>{he||(he=!0,Z(),le?G(F,[X]):G(D,[X]),X._leaveCb=void 0,U[oe]===d&&delete U[oe])};U[oe]=d,I?W(I,[X,J]):J()},clone(X){return resolveTransitionHooks(X,b,A,w)}};return K}function emptyPlaceholder(d){if(isKeepAlive(d))return d=cloneVNode(d),d.children=null,d}function getKeepAliveChild(d){return isKeepAlive(d)?d.children?d.children[0]:void 0:d}function setTransitionHooks(d,b){d.shapeFlag&6&&d.component?setTransitionHooks(d.component.subTree,b):d.shapeFlag&128?(d.ssContent.transition=b.clone(d.ssContent),d.ssFallback.transition=b.clone(d.ssFallback)):d.transition=b}function getTransitionRawChildren(d,b=!1,A){let w=[],C=0;for(let x=0;x<d.length;x++){let S=d[x];const E=A==null?S.key:String(A)+String(S.key!=null?S.key:x);S.type===Fragment?(S.patchFlag&128&&C++,w=w.concat(getTransitionRawChildren(S.children,b,E))):(b||S.type!==Comment)&&w.push(E!=null?cloneVNode(S,{key:E}):S)}if(C>1)for(let x=0;x<w.length;x++)w[x].patchFlag=-2;return w}function defineComponent(d,b){return isFunction$5(d)?(()=>extend$2({name:d.name},b,{setup:d}))():d}const isAsyncWrapper=d=>!!d.type.__asyncLoader,isKeepAlive=d=>d.type.__isKeepAlive;function onActivated(d,b){registerKeepAliveHook(d,"a",b)}function onDeactivated(d,b){registerKeepAliveHook(d,"da",b)}function registerKeepAliveHook(d,b,A=currentInstance){const w=d.__wdc||(d.__wdc=()=>{let C=A;for(;C;){if(C.isDeactivated)return;C=C.parent}return d()});if(injectHook(b,w,A),A){let C=A.parent;for(;C&&C.parent;)isKeepAlive(C.parent.vnode)&&injectToKeepAliveRoot(w,b,A,C),C=C.parent}}function injectToKeepAliveRoot(d,b,A,w){const C=injectHook(b,d,w,!0);onUnmounted(()=>{remove$6(w[b],C)},A)}function injectHook(d,b,A=currentInstance,w=!1){if(A){const C=A[d]||(A[d]=[]),x=b.__weh||(b.__weh=(...S)=>{if(A.isUnmounted)return;pauseTracking(),setCurrentInstance(A);const E=callWithAsyncErrorHandling(b,A,d,S);return unsetCurrentInstance(),resetTracking(),E});return w?C.unshift(x):C.push(x),x}}const createHook=d=>(b,A=currentInstance)=>(!isInSSRComponentSetup||d==="sp")&&injectHook(d,(...w)=>b(...w),A),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(d,b=currentInstance){injectHook("ec",d,b)}const COMPONENTS="components";function resolveComponent(d,b){return resolveAsset(COMPONENTS,d,!0,b)||d}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(d){return isString$2(d)?resolveAsset(COMPONENTS,d,!1)||d:d||NULL_DYNAMIC_COMPONENT}function resolveAsset(d,b,A=!0,w=!1){const C=currentRenderingInstance||currentInstance;if(C){const x=C.type;if(d===COMPONENTS){const E=getComponentName(x,!1);if(E&&(E===b||E===camelize$1(b)||E===capitalize(camelize$1(b))))return x}const S=resolve(C[d]||x[d],b)||resolve(C.appContext[d],b);return!S&&w?x:S}}function resolve(d,b){return d&&(d[b]||d[camelize$1(b)]||d[capitalize(camelize$1(b))])}function renderSlot(d,b,A={},w,C){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return b!=="default"&&(A.name=b),createVNode("slot",A,w&&w());let x=d[b];x&&x._c&&(x._d=!1),openBlock();const S=x&&ensureValidVNode$1(x(A)),E=createBlock(Fragment,{key:A.key||S&&S.key||"_".concat(b)},S||(w?w():[]),S&&d._===1?64:-2);return!C&&E.scopeId&&(E.slotScopeIds=[E.scopeId+"-s"]),x&&x._c&&(x._d=!0),E}function ensureValidVNode$1(d){return d.some(b=>isVNode(b)?!(b.type===Comment||b.type===Fragment&&!ensureValidVNode$1(b.children)):!0)?d:null}const getPublicInstance=d=>d?isStatefulComponent(d)?getExposeProxy(d)||d.proxy:getPublicInstance(d.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:d=>d,$el:d=>d.vnode.el,$data:d=>d.data,$props:d=>d.props,$attrs:d=>d.attrs,$slots:d=>d.slots,$refs:d=>d.refs,$parent:d=>getPublicInstance(d.parent),$root:d=>getPublicInstance(d.root),$emit:d=>d.emit,$options:d=>resolveMergedOptions(d),$forceUpdate:d=>d.f||(d.f=()=>queueJob(d.update)),$nextTick:d=>d.n||(d.n=nextTick.bind(d.proxy)),$watch:d=>instanceWatch.bind(d)}),hasSetupBinding=(d,b)=>d!==EMPTY_OBJ&&!d.__isScriptSetup&&hasOwn$2(d,b),PublicInstanceProxyHandlers={get({_:d},b){const{ctx:A,setupState:w,data:C,props:x,accessCache:S,type:E,appContext:P}=d;let B;if(b[0]!=="$"){const D=S[b];if(D!==void 0)switch(D){case 1:return w[b];case 2:return C[b];case 4:return A[b];case 3:return x[b]}else{if(hasSetupBinding(w,b))return S[b]=1,w[b];if(C!==EMPTY_OBJ&&hasOwn$2(C,b))return S[b]=2,C[b];if((B=d.propsOptions[0])&&hasOwn$2(B,b))return S[b]=3,x[b];if(A!==EMPTY_OBJ&&hasOwn$2(A,b))return S[b]=4,A[b];shouldCacheAccess&&(S[b]=0)}}const k=publicPropertiesMap[b];let $,I;if(k)return b==="$attrs"&&track(d,"get",b),k(d);if(($=E.__cssModules)&&($=$[b]))return $;if(A!==EMPTY_OBJ&&hasOwn$2(A,b))return S[b]=4,A[b];if(I=P.config.globalProperties,hasOwn$2(I,b))return I[b]},set({_:d},b,A){const{data:w,setupState:C,ctx:x}=d;return hasSetupBinding(C,b)?(C[b]=A,!0):w!==EMPTY_OBJ&&hasOwn$2(w,b)?(w[b]=A,!0):hasOwn$2(d.props,b)||b[0]==="$"&&b.slice(1)in d?!1:(x[b]=A,!0)},has({_:{data:d,setupState:b,accessCache:A,ctx:w,appContext:C,propsOptions:x}},S){let E;return!!A[S]||d!==EMPTY_OBJ&&hasOwn$2(d,S)||hasSetupBinding(b,S)||(E=x[0])&&hasOwn$2(E,S)||hasOwn$2(w,S)||hasOwn$2(publicPropertiesMap,S)||hasOwn$2(C.config.globalProperties,S)},defineProperty(d,b,A){return A.get!=null?d._.accessCache[b]=0:hasOwn$2(A,"value")&&this.set(d,b,A.value,null),Reflect.defineProperty(d,b,A)}};function normalizePropsOrEmits(d){return isArray$9(d)?d.reduce((b,A)=>(b[A]=null,b),{}):d}let shouldCacheAccess=!0;function applyOptions(d){const b=resolveMergedOptions(d),A=d.proxy,w=d.ctx;shouldCacheAccess=!1,b.beforeCreate&&callHook$1(b.beforeCreate,d,"bc");const{data:C,computed:x,methods:S,watch:E,provide:P,inject:B,created:k,beforeMount:$,mounted:I,beforeUpdate:D,updated:F,activated:z,deactivated:L,beforeDestroy:H,beforeUnmount:Q,destroyed:Y,unmounted:U,render:G,renderTracked:W,renderTriggered:K,errorCaptured:X,serverPrefetch:Z,expose:oe,inheritAttrs:he,components:J,directives:le,filters:de}=b;if(B&&resolveInjections(B,w,null),S)for(const re in S){const fe=S[re];isFunction$5(fe)&&(w[re]=fe.bind(A))}if(C){const re=C.call(A,A);isObject$6(re)&&(d.data=reactive(re))}if(shouldCacheAccess=!0,x)for(const re in x){const fe=x[re],ce=isFunction$5(fe)?fe.bind(A,A):isFunction$5(fe.get)?fe.get.bind(A,A):NOOP,we=!isFunction$5(fe)&&isFunction$5(fe.set)?fe.set.bind(A):NOOP,Fe=computed({get:ce,set:we});Object.defineProperty(w,re,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Ke=>Fe.value=Ke})}if(E)for(const re in E)createWatcher(E[re],w,A,re);if(P){const re=isFunction$5(P)?P.call(A):P;Reflect.ownKeys(re).forEach(fe=>{provide(fe,re[fe])})}k&&callHook$1(k,d,"c");function ne(re,fe){isArray$9(fe)?fe.forEach(ce=>re(ce.bind(A))):fe&&re(fe.bind(A))}if(ne(onBeforeMount,$),ne(onMounted,I),ne(onBeforeUpdate,D),ne(onUpdated,F),ne(onActivated,z),ne(onDeactivated,L),ne(onErrorCaptured,X),ne(onRenderTracked,W),ne(onRenderTriggered,K),ne(onBeforeUnmount,Q),ne(onUnmounted,U),ne(onServerPrefetch,Z),isArray$9(oe))if(oe.length){const re=d.exposed||(d.exposed={});oe.forEach(fe=>{Object.defineProperty(re,fe,{get:()=>A[fe],set:ce=>A[fe]=ce})})}else d.exposed||(d.exposed={});G&&d.render===NOOP&&(d.render=G),he!=null&&(d.inheritAttrs=he),J&&(d.components=J),le&&(d.directives=le)}function resolveInjections(d,b,A=NOOP){isArray$9(d)&&(d=normalizeInject(d));for(const w in d){const C=d[w];let x;isObject$6(C)?"default"in C?x=inject(C.from||w,C.default,!0):x=inject(C.from||w):x=inject(C),isRef(x)?Object.defineProperty(b,w,{enumerable:!0,configurable:!0,get:()=>x.value,set:S=>x.value=S}):b[w]=x}}function callHook$1(d,b,A){callWithAsyncErrorHandling(isArray$9(d)?d.map(w=>w.bind(b.proxy)):d.bind(b.proxy),b,A)}function createWatcher(d,b,A,w){const C=w.includes(".")?createPathGetter(A,w):()=>A[w];if(isString$2(d)){const x=b[d];isFunction$5(x)&&watch(C,x)}else if(isFunction$5(d))watch(C,d.bind(A));else if(isObject$6(d))if(isArray$9(d))d.forEach(x=>createWatcher(x,b,A,w));else{const x=isFunction$5(d.handler)?d.handler.bind(A):b[d.handler];isFunction$5(x)&&watch(C,x,d)}}function resolveMergedOptions(d){const b=d.type,{mixins:A,extends:w}=b,{mixins:C,optionsCache:x,config:{optionMergeStrategies:S}}=d.appContext,E=x.get(b);let P;return E?P=E:!C.length&&!A&&!w?P=b:(P={},C.length&&C.forEach(B=>mergeOptions$1(P,B,S,!0)),mergeOptions$1(P,b,S)),isObject$6(b)&&x.set(b,P),P}function mergeOptions$1(d,b,A,w=!1){const{mixins:C,extends:x}=b;x&&mergeOptions$1(d,x,A,!0),C&&C.forEach(S=>mergeOptions$1(d,S,A,!0));for(const S in b)if(!(w&&S==="expose")){const E=internalOptionMergeStrats[S]||A&&A[S];d[S]=E?E(d[S],b[S]):b[S]}return d}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,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(d,b){return b?d?function(){return extend$2(isFunction$5(d)?d.call(this,this):d,isFunction$5(b)?b.call(this,this):b)}:b:d}function mergeInject(d,b){return mergeObjectOptions(normalizeInject(d),normalizeInject(b))}function normalizeInject(d){if(isArray$9(d)){const b={};for(let A=0;A<d.length;A++)b[d[A]]=d[A];return b}return d}function mergeAsArray(d,b){return d?[...new Set([].concat(d,b))]:b}function mergeObjectOptions(d,b){return d?extend$2(Object.create(null),d,b):b}function mergeEmitsOrPropsOptions(d,b){return d?isArray$9(d)&&isArray$9(b)?[...new Set([...d,...b])]:extend$2(Object.create(null),normalizePropsOrEmits(d),normalizePropsOrEmits(b!=null?b:{})):b}function mergeWatchOptions(d,b){if(!d)return b;if(!b)return d;const A=extend$2(Object.create(null),d);for(const w in b)A[w]=mergeAsArray(d[w],b[w]);return A}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(d,b){return function(w,C=null){isFunction$5(w)||(w=extend$2({},w)),C!=null&&!isObject$6(C)&&(C=null);const x=createAppContext(),S=new Set;let E=!1;const P=x.app={_uid:uid$1++,_component:w,_props:C,_container:null,_context:x,_instance:null,version:version$2,get config(){return x.config},set config(B){},use(B,...k){return S.has(B)||(B&&isFunction$5(B.install)?(S.add(B),B.install(P,...k)):isFunction$5(B)&&(S.add(B),B(P,...k))),P},mixin(B){return x.mixins.includes(B)||x.mixins.push(B),P},component(B,k){return k?(x.components[B]=k,P):x.components[B]},directive(B,k){return k?(x.directives[B]=k,P):x.directives[B]},mount(B,k,$){if(!E){const I=createVNode(w,C);return I.appContext=x,k&&b?b(I,B):d(I,B,$),E=!0,P._container=B,B.__vue_app__=P,getExposeProxy(I.component)||I.component.proxy}},unmount(){E&&(d(null,P._container),delete P._container.__vue_app__)},provide(B,k){return x.provides[B]=k,P},runWithContext(B){currentApp=P;try{return B()}finally{currentApp=null}}};return P}}let currentApp=null;function provide(d,b){if(currentInstance){let A=currentInstance.provides;const w=currentInstance.parent&&currentInstance.parent.provides;w===A&&(A=currentInstance.provides=Object.create(w)),A[d]=b}}function inject(d,b,A=!1){const w=currentInstance||currentRenderingInstance;if(w||currentApp){const C=w?w.parent==null?w.vnode.appContext&&w.vnode.appContext.provides:w.parent.provides:currentApp._context.provides;if(C&&d in C)return C[d];if(arguments.length>1)return A&&isFunction$5(b)?b.call(w&&w.proxy):b}}function initProps(d,b,A,w=!1){const C={},x={};def(x,InternalObjectKey,1),d.propsDefaults=Object.create(null),setFullProps(d,b,C,x);for(const S in d.propsOptions[0])S in C||(C[S]=void 0);A?d.props=w?C:shallowReactive(C):d.type.props?d.props=C:d.props=x,d.attrs=x}function updateProps(d,b,A,w){const{props:C,attrs:x,vnode:{patchFlag:S}}=d,E=toRaw(C),[P]=d.propsOptions;let B=!1;if((w||S>0)&&!(S&16)){if(S&8){const k=d.vnode.dynamicProps;for(let $=0;$<k.length;$++){let I=k[$];if(isEmitListener(d.emitsOptions,I))continue;const D=b[I];if(P)if(hasOwn$2(x,I))D!==x[I]&&(x[I]=D,B=!0);else{const F=camelize$1(I);C[F]=resolvePropValue(P,E,F,D,d,!1)}else D!==x[I]&&(x[I]=D,B=!0)}}}else{setFullProps(d,b,C,x)&&(B=!0);let k;for(const $ in E)(!b||!hasOwn$2(b,$)&&((k=hyphenate($))===$||!hasOwn$2(b,k)))&&(P?A&&(A[$]!==void 0||A[k]!==void 0)&&(C[$]=resolvePropValue(P,E,$,void 0,d,!0)):delete C[$]);if(x!==E)for(const $ in x)(!b||!hasOwn$2(b,$))&&(delete x[$],B=!0)}B&&trigger$1(d,"set","$attrs")}function setFullProps(d,b,A,w){const[C,x]=d.propsOptions;let S=!1,E;if(b)for(let P in b){if(isReservedProp(P))continue;const B=b[P];let k;C&&hasOwn$2(C,k=camelize$1(P))?!x||!x.includes(k)?A[k]=B:(E||(E={}))[k]=B:isEmitListener(d.emitsOptions,P)||(!(P in w)||B!==w[P])&&(w[P]=B,S=!0)}if(x){const P=toRaw(A),B=E||EMPTY_OBJ;for(let k=0;k<x.length;k++){const $=x[k];A[$]=resolvePropValue(C,P,$,B[$],d,!hasOwn$2(B,$))}}return S}function resolvePropValue(d,b,A,w,C,x){const S=d[A];if(S!=null){const E=hasOwn$2(S,"default");if(E&&w===void 0){const P=S.default;if(S.type!==Function&&!S.skipFactory&&isFunction$5(P)){const{propsDefaults:B}=C;A in B?w=B[A]:(setCurrentInstance(C),w=B[A]=P.call(null,b),unsetCurrentInstance())}else w=P}S[0]&&(x&&!E?w=!1:S[1]&&(w===""||w===hyphenate(A))&&(w=!0))}return w}function normalizePropsOptions(d,b,A=!1){const w=b.propsCache,C=w.get(d);if(C)return C;const x=d.props,S={},E=[];let P=!1;if(!isFunction$5(d)){const k=$=>{P=!0;const[I,D]=normalizePropsOptions($,b,!0);extend$2(S,I),D&&E.push(...D)};!A&&b.mixins.length&&b.mixins.forEach(k),d.extends&&k(d.extends),d.mixins&&d.mixins.forEach(k)}if(!x&&!P)return isObject$6(d)&&w.set(d,EMPTY_ARR),EMPTY_ARR;if(isArray$9(x))for(let k=0;k<x.length;k++){const $=camelize$1(x[k]);validatePropName($)&&(S[$]=EMPTY_OBJ)}else if(x)for(const k in x){const $=camelize$1(k);if(validatePropName($)){const I=x[k],D=S[$]=isArray$9(I)||isFunction$5(I)?{type:I}:extend$2({},I);if(D){const F=getTypeIndex(Boolean,D.type),z=getTypeIndex(String,D.type);D[0]=F>-1,D[1]=z<0||F<z,(F>-1||hasOwn$2(D,"default"))&&E.push($)}}}const B=[S,E];return isObject$6(d)&&w.set(d,B),B}function validatePropName(d){return d[0]!=="$"}function getType(d){const b=d&&d.toString().match(/^\s*(function|class) (\w+)/);return b?b[2]:d===null?"null":""}function isSameType(d,b){return getType(d)===getType(b)}function getTypeIndex(d,b){return isArray$9(b)?b.findIndex(A=>isSameType(A,d)):isFunction$5(b)&&isSameType(b,d)?0:-1}const isInternalKey=d=>d[0]==="_"||d==="$stable",normalizeSlotValue=d=>isArray$9(d)?d.map(normalizeVNode):[normalizeVNode(d)],normalizeSlot$1=(d,b,A)=>{if(b._n)return b;const w=withCtx((...C)=>normalizeSlotValue(b(...C)),A);return w._c=!1,w},normalizeObjectSlots=(d,b,A)=>{const w=d._ctx;for(const C in d){if(isInternalKey(C))continue;const x=d[C];if(isFunction$5(x))b[C]=normalizeSlot$1(C,x,w);else if(x!=null){const S=normalizeSlotValue(x);b[C]=()=>S}}},normalizeVNodeSlots=(d,b)=>{const A=normalizeSlotValue(b);d.slots.default=()=>A},initSlots=(d,b)=>{if(d.vnode.shapeFlag&32){const A=b._;A?(d.slots=toRaw(b),def(b,"_",A)):normalizeObjectSlots(b,d.slots={})}else d.slots={},b&&normalizeVNodeSlots(d,b);def(d.slots,InternalObjectKey,1)},updateSlots=(d,b,A)=>{const{vnode:w,slots:C}=d;let x=!0,S=EMPTY_OBJ;if(w.shapeFlag&32){const E=b._;E?A&&E===1?x=!1:(extend$2(C,b),!A&&E===1&&delete C._):(x=!b.$stable,normalizeObjectSlots(b,C)),S=b}else b&&(normalizeVNodeSlots(d,b),S={default:1});if(x)for(const E in C)!isInternalKey(E)&&!(E in S)&&delete C[E]};function setRef(d,b,A,w,C=!1){if(isArray$9(d)){d.forEach((I,D)=>setRef(I,b&&(isArray$9(b)?b[D]:b),A,w,C));return}if(isAsyncWrapper(w)&&!C)return;const x=w.shapeFlag&4?getExposeProxy(w.component)||w.component.proxy:w.el,S=C?null:x,{i:E,r:P}=d,B=b&&b.r,k=E.refs===EMPTY_OBJ?E.refs={}:E.refs,$=E.setupState;if(B!=null&&B!==P&&(isString$2(B)?(k[B]=null,hasOwn$2($,B)&&($[B]=null)):isRef(B)&&(B.value=null)),isFunction$5(P))callWithErrorHandling(P,E,12,[S,k]);else{const I=isString$2(P),D=isRef(P);if(I||D){const F=()=>{if(d.f){const z=I?hasOwn$2($,P)?$[P]:k[P]:P.value;C?isArray$9(z)&&remove$6(z,x):isArray$9(z)?z.includes(x)||z.push(x):I?(k[P]=[x],hasOwn$2($,P)&&($[P]=k[P])):(P.value=[x],d.k&&(k[d.k]=P.value))}else I?(k[P]=S,hasOwn$2($,P)&&($[P]=S)):D&&(P.value=S,d.k&&(k[d.k]=S))};S?(F.id=-1,queuePostRenderEffect(F,A)):F()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(d){return baseCreateRenderer(d)}function baseCreateRenderer(d,b){const A=getGlobalThis$1();A.__VUE__=!0;const{insert:w,remove:C,patchProp:x,createElement:S,createText:E,createComment:P,setText:B,setElementText:k,parentNode:$,nextSibling:I,setScopeId:D=NOOP,insertStaticContent:F}=d,z=(ve,ye,Te,ee=null,se=null,ie=null,be=!1,Ee=null,Ce=!!ye.dynamicChildren)=>{if(ve===ye)return;ve&&!isSameVNodeType(ve,ye)&&(ee=$e(ve),Ke(ve,se,ie,!0),ve=null),ye.patchFlag===-2&&(Ce=!1,ye.dynamicChildren=null);const{type:ge,ref:Ie,shapeFlag:Le}=ye;switch(ge){case Text:L(ve,ye,Te,ee);break;case Comment:H(ve,ye,Te,ee);break;case Static:ve==null&&Q(ye,Te,ee,be);break;case Fragment:J(ve,ye,Te,ee,se,ie,be,Ee,Ce);break;default:Le&1?G(ve,ye,Te,ee,se,ie,be,Ee,Ce):Le&6?le(ve,ye,Te,ee,se,ie,be,Ee,Ce):(Le&64||Le&128)&&ge.process(ve,ye,Te,ee,se,ie,be,Ee,Ce,Oe)}Ie!=null&&se&&setRef(Ie,ve&&ve.ref,ie,ye||ve,!ye)},L=(ve,ye,Te,ee)=>{if(ve==null)w(ye.el=E(ye.children),Te,ee);else{const se=ye.el=ve.el;ye.children!==ve.children&&B(se,ye.children)}},H=(ve,ye,Te,ee)=>{ve==null?w(ye.el=P(ye.children||""),Te,ee):ye.el=ve.el},Q=(ve,ye,Te,ee)=>{[ve.el,ve.anchor]=F(ve.children,ye,Te,ee,ve.el,ve.anchor)},Y=({el:ve,anchor:ye},Te,ee)=>{let se;for(;ve&&ve!==ye;)se=I(ve),w(ve,Te,ee),ve=se;w(ye,Te,ee)},U=({el:ve,anchor:ye})=>{let Te;for(;ve&&ve!==ye;)Te=I(ve),C(ve),ve=Te;C(ye)},G=(ve,ye,Te,ee,se,ie,be,Ee,Ce)=>{be=be||ye.type==="svg",ve==null?W(ye,Te,ee,se,ie,be,Ee,Ce):Z(ve,ye,se,ie,be,Ee,Ce)},W=(ve,ye,Te,ee,se,ie,be,Ee)=>{let Ce,ge;const{type:Ie,props:Le,shapeFlag:Ye,transition:rt,dirs:lt}=ve;if(Ce=ve.el=S(ve.type,ie,Le&&Le.is,Le),Ye&8?k(Ce,ve.children):Ye&16&&X(ve.children,Ce,null,ee,se,ie&&Ie!=="foreignObject",be,Ee),lt&&invokeDirectiveHook(ve,null,ee,"created"),K(Ce,ve,ve.scopeId,be,ee),Le){for(const He in Le)He!=="value"&&!isReservedProp(He)&&x(Ce,He,null,Le[He],ie,ve.children,ee,se,it);"value"in Le&&x(Ce,"value",null,Le.value),(ge=Le.onVnodeBeforeMount)&&invokeVNodeHook(ge,ee,ve)}lt&&invokeDirectiveHook(ve,null,ee,"beforeMount");const pt=(!se||se&&!se.pendingBranch)&&rt&&!rt.persisted;pt&&rt.beforeEnter(Ce),w(Ce,ye,Te),((ge=Le&&Le.onVnodeMounted)||pt||lt)&&queuePostRenderEffect(()=>{ge&&invokeVNodeHook(ge,ee,ve),pt&&rt.enter(Ce),lt&&invokeDirectiveHook(ve,null,ee,"mounted")},se)},K=(ve,ye,Te,ee,se)=>{if(Te&&D(ve,Te),ee)for(let ie=0;ie<ee.length;ie++)D(ve,ee[ie]);if(se){let ie=se.subTree;if(ye===ie){const be=se.vnode;K(ve,be,be.scopeId,be.slotScopeIds,se.parent)}}},X=(ve,ye,Te,ee,se,ie,be,Ee,Ce=0)=>{for(let ge=Ce;ge<ve.length;ge++){const Ie=ve[ge]=Ee?cloneIfMounted(ve[ge]):normalizeVNode(ve[ge]);z(null,Ie,ye,Te,ee,se,ie,be,Ee)}},Z=(ve,ye,Te,ee,se,ie,be)=>{const Ee=ye.el=ve.el;let{patchFlag:Ce,dynamicChildren:ge,dirs:Ie}=ye;Ce|=ve.patchFlag&16;const Le=ve.props||EMPTY_OBJ,Ye=ye.props||EMPTY_OBJ;let rt;Te&&toggleRecurse(Te,!1),(rt=Ye.onVnodeBeforeUpdate)&&invokeVNodeHook(rt,Te,ye,ve),Ie&&invokeDirectiveHook(ye,ve,Te,"beforeUpdate"),Te&&toggleRecurse(Te,!0);const lt=se&&ye.type!=="foreignObject";if(ge?oe(ve.dynamicChildren,ge,Ee,Te,ee,lt,ie):be||fe(ve,ye,Ee,null,Te,ee,lt,ie,!1),Ce>0){if(Ce&16)he(Ee,ye,Le,Ye,Te,ee,se);else if(Ce&2&&Le.class!==Ye.class&&x(Ee,"class",null,Ye.class,se),Ce&4&&x(Ee,"style",Le.style,Ye.style,se),Ce&8){const pt=ye.dynamicProps;for(let He=0;He<pt.length;He++){const at=pt[He],nt=Le[at],mt=Ye[at];(mt!==nt||at==="value")&&x(Ee,at,nt,mt,se,ve.children,Te,ee,it)}}Ce&1&&ve.children!==ye.children&&k(Ee,ye.children)}else!be&&ge==null&&he(Ee,ye,Le,Ye,Te,ee,se);((rt=Ye.onVnodeUpdated)||Ie)&&queuePostRenderEffect(()=>{rt&&invokeVNodeHook(rt,Te,ye,ve),Ie&&invokeDirectiveHook(ye,ve,Te,"updated")},ee)},oe=(ve,ye,Te,ee,se,ie,be)=>{for(let Ee=0;Ee<ye.length;Ee++){const Ce=ve[Ee],ge=ye[Ee],Ie=Ce.el&&(Ce.type===Fragment||!isSameVNodeType(Ce,ge)||Ce.shapeFlag&70)?$(Ce.el):Te;z(Ce,ge,Ie,null,ee,se,ie,be,!0)}},he=(ve,ye,Te,ee,se,ie,be)=>{if(Te!==ee){if(Te!==EMPTY_OBJ)for(const Ee in Te)!isReservedProp(Ee)&&!(Ee in ee)&&x(ve,Ee,Te[Ee],null,be,ye.children,se,ie,it);for(const Ee in ee){if(isReservedProp(Ee))continue;const Ce=ee[Ee],ge=Te[Ee];Ce!==ge&&Ee!=="value"&&x(ve,Ee,ge,Ce,be,ye.children,se,ie,it)}"value"in ee&&x(ve,"value",Te.value,ee.value)}},J=(ve,ye,Te,ee,se,ie,be,Ee,Ce)=>{const ge=ye.el=ve?ve.el:E(""),Ie=ye.anchor=ve?ve.anchor:E("");let{patchFlag:Le,dynamicChildren:Ye,slotScopeIds:rt}=ye;rt&&(Ee=Ee?Ee.concat(rt):rt),ve==null?(w(ge,Te,ee),w(Ie,Te,ee),X(ye.children,Te,Ie,se,ie,be,Ee,Ce)):Le>0&&Le&64&&Ye&&ve.dynamicChildren?(oe(ve.dynamicChildren,Ye,Te,se,ie,be,Ee),(ye.key!=null||se&&ye===se.subTree)&&traverseStaticChildren(ve,ye,!0)):fe(ve,ye,Te,Ie,se,ie,be,Ee,Ce)},le=(ve,ye,Te,ee,se,ie,be,Ee,Ce)=>{ye.slotScopeIds=Ee,ve==null?ye.shapeFlag&512?se.ctx.activate(ye,Te,ee,be,Ce):de(ye,Te,ee,se,ie,be,Ce):me(ve,ye,Ce)},de=(ve,ye,Te,ee,se,ie,be)=>{const Ee=ve.component=createComponentInstance(ve,ee,se);if(isKeepAlive(ve)&&(Ee.ctx.renderer=Oe),setupComponent(Ee),Ee.asyncDep){if(se&&se.registerDep(Ee,ne),!ve.el){const Ce=Ee.subTree=createVNode(Comment);H(null,Ce,ye,Te)}return}ne(Ee,ve,ye,Te,se,ie,be)},me=(ve,ye,Te)=>{const ee=ye.component=ve.component;if(shouldUpdateComponent(ve,ye,Te))if(ee.asyncDep&&!ee.asyncResolved){re(ee,ye,Te);return}else ee.next=ye,invalidateJob(ee.update),ee.update();else ye.el=ve.el,ee.vnode=ye},ne=(ve,ye,Te,ee,se,ie,be)=>{const Ee=()=>{if(ve.isMounted){let{next:Ie,bu:Le,u:Ye,parent:rt,vnode:lt}=ve,pt=Ie,He;toggleRecurse(ve,!1),Ie?(Ie.el=lt.el,re(ve,Ie,be)):Ie=lt,Le&&invokeArrayFns(Le),(He=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&invokeVNodeHook(He,rt,Ie,lt),toggleRecurse(ve,!0);const at=renderComponentRoot(ve),nt=ve.subTree;ve.subTree=at,z(nt,at,$(nt.el),$e(nt),ve,se,ie),Ie.el=at.el,pt===null&&updateHOCHostEl(ve,at.el),Ye&&queuePostRenderEffect(Ye,se),(He=Ie.props&&Ie.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(He,rt,Ie,lt),se)}else{let Ie;const{el:Le,props:Ye}=ye,{bm:rt,m:lt,parent:pt}=ve,He=isAsyncWrapper(ye);if(toggleRecurse(ve,!1),rt&&invokeArrayFns(rt),!He&&(Ie=Ye&&Ye.onVnodeBeforeMount)&&invokeVNodeHook(Ie,pt,ye),toggleRecurse(ve,!0),Le&&Je){const at=()=>{ve.subTree=renderComponentRoot(ve),Je(Le,ve.subTree,ve,se,null)};He?ye.type.__asyncLoader().then(()=>!ve.isUnmounted&&at()):at()}else{const at=ve.subTree=renderComponentRoot(ve);z(null,at,Te,ee,ve,se,ie),ye.el=at.el}if(lt&&queuePostRenderEffect(lt,se),!He&&(Ie=Ye&&Ye.onVnodeMounted)){const at=ye;queuePostRenderEffect(()=>invokeVNodeHook(Ie,pt,at),se)}(ye.shapeFlag&256||pt&&isAsyncWrapper(pt.vnode)&&pt.vnode.shapeFlag&256)&&ve.a&&queuePostRenderEffect(ve.a,se),ve.isMounted=!0,ye=Te=ee=null}},Ce=ve.effect=new ReactiveEffect(Ee,()=>queueJob(ge),ve.scope),ge=ve.update=()=>Ce.run();ge.id=ve.uid,toggleRecurse(ve,!0),ge()},re=(ve,ye,Te)=>{ye.component=ve;const ee=ve.vnode.props;ve.vnode=ye,ve.next=null,updateProps(ve,ye.props,ee,Te),updateSlots(ve,ye.children,Te),pauseTracking(),flushPreFlushCbs(),resetTracking()},fe=(ve,ye,Te,ee,se,ie,be,Ee,Ce=!1)=>{const ge=ve&&ve.children,Ie=ve?ve.shapeFlag:0,Le=ye.children,{patchFlag:Ye,shapeFlag:rt}=ye;if(Ye>0){if(Ye&128){we(ge,Le,Te,ee,se,ie,be,Ee,Ce);return}else if(Ye&256){ce(ge,Le,Te,ee,se,ie,be,Ee,Ce);return}}rt&8?(Ie&16&&it(ge,se,ie),Le!==ge&&k(Te,Le)):Ie&16?rt&16?we(ge,Le,Te,ee,se,ie,be,Ee,Ce):it(ge,se,ie,!0):(Ie&8&&k(Te,""),rt&16&&X(Le,Te,ee,se,ie,be,Ee,Ce))},ce=(ve,ye,Te,ee,se,ie,be,Ee,Ce)=>{ve=ve||EMPTY_ARR,ye=ye||EMPTY_ARR;const ge=ve.length,Ie=ye.length,Le=Math.min(ge,Ie);let Ye;for(Ye=0;Ye<Le;Ye++){const rt=ye[Ye]=Ce?cloneIfMounted(ye[Ye]):normalizeVNode(ye[Ye]);z(ve[Ye],rt,Te,null,se,ie,be,Ee,Ce)}ge>Ie?it(ve,se,ie,!0,!1,Le):X(ye,Te,ee,se,ie,be,Ee,Ce,Le)},we=(ve,ye,Te,ee,se,ie,be,Ee,Ce)=>{let ge=0;const Ie=ye.length;let Le=ve.length-1,Ye=Ie-1;for(;ge<=Le&&ge<=Ye;){const rt=ve[ge],lt=ye[ge]=Ce?cloneIfMounted(ye[ge]):normalizeVNode(ye[ge]);if(isSameVNodeType(rt,lt))z(rt,lt,Te,null,se,ie,be,Ee,Ce);else break;ge++}for(;ge<=Le&&ge<=Ye;){const rt=ve[Le],lt=ye[Ye]=Ce?cloneIfMounted(ye[Ye]):normalizeVNode(ye[Ye]);if(isSameVNodeType(rt,lt))z(rt,lt,Te,null,se,ie,be,Ee,Ce);else break;Le--,Ye--}if(ge>Le){if(ge<=Ye){const rt=Ye+1,lt=rt<Ie?ye[rt].el:ee;for(;ge<=Ye;)z(null,ye[ge]=Ce?cloneIfMounted(ye[ge]):normalizeVNode(ye[ge]),Te,lt,se,ie,be,Ee,Ce),ge++}}else if(ge>Ye)for(;ge<=Le;)Ke(ve[ge],se,ie,!0),ge++;else{const rt=ge,lt=ge,pt=new Map;for(ge=lt;ge<=Ye;ge++){const At=ye[ge]=Ce?cloneIfMounted(ye[ge]):normalizeVNode(ye[ge]);At.key!=null&&pt.set(At.key,ge)}let He,at=0;const nt=Ye-lt+1;let mt=!1,Tt=0;const Dt=new Array(nt);for(ge=0;ge<nt;ge++)Dt[ge]=0;for(ge=rt;ge<=Le;ge++){const At=ve[ge];if(at>=nt){Ke(At,se,ie,!0);continue}let Ae;if(At.key!=null)Ae=pt.get(At.key);else for(He=lt;He<=Ye;He++)if(Dt[He-lt]===0&&isSameVNodeType(At,ye[He])){Ae=He;break}Ae===void 0?Ke(At,se,ie,!0):(Dt[Ae-lt]=ge+1,Ae>=Tt?Tt=Ae:mt=!0,z(At,ye[Ae],Te,null,se,ie,be,Ee,Ce),at++)}const yt=mt?getSequence(Dt):EMPTY_ARR;for(He=yt.length-1,ge=nt-1;ge>=0;ge--){const At=lt+ge,Ae=ye[At],Re=At+1<Ie?ye[At+1].el:ee;Dt[ge]===0?z(null,Ae,Te,Re,se,ie,be,Ee,Ce):mt&&(He<0||ge!==yt[He]?Fe(Ae,Te,Re,2):He--)}}},Fe=(ve,ye,Te,ee,se=null)=>{const{el:ie,type:be,transition:Ee,children:Ce,shapeFlag:ge}=ve;if(ge&6){Fe(ve.component.subTree,ye,Te,ee);return}if(ge&128){ve.suspense.move(ye,Te,ee);return}if(ge&64){be.move(ve,ye,Te,Oe);return}if(be===Fragment){w(ie,ye,Te);for(let Le=0;Le<Ce.length;Le++)Fe(Ce[Le],ye,Te,ee);w(ve.anchor,ye,Te);return}if(be===Static){Y(ve,ye,Te);return}if(ee!==2&&ge&1&&Ee)if(ee===0)Ee.beforeEnter(ie),w(ie,ye,Te),queuePostRenderEffect(()=>Ee.enter(ie),se);else{const{leave:Le,delayLeave:Ye,afterLeave:rt}=Ee,lt=()=>w(ie,ye,Te),pt=()=>{Le(ie,()=>{lt(),rt&&rt()})};Ye?Ye(ie,lt,pt):pt()}else w(ie,ye,Te)},Ke=(ve,ye,Te,ee=!1,se=!1)=>{const{type:ie,props:be,ref:Ee,children:Ce,dynamicChildren:ge,shapeFlag:Ie,patchFlag:Le,dirs:Ye}=ve;if(Ee!=null&&setRef(Ee,null,Te,ve,!0),Ie&256){ye.ctx.deactivate(ve);return}const rt=Ie&1&&Ye,lt=!isAsyncWrapper(ve);let pt;if(lt&&(pt=be&&be.onVnodeBeforeUnmount)&&invokeVNodeHook(pt,ye,ve),Ie&6)dt(ve.component,Te,ee);else{if(Ie&128){ve.suspense.unmount(Te,ee);return}rt&&invokeDirectiveHook(ve,null,ye,"beforeUnmount"),Ie&64?ve.type.remove(ve,ye,Te,se,Oe,ee):ge&&(ie!==Fragment||Le>0&&Le&64)?it(ge,ye,Te,!1,!0):(ie===Fragment&&Le&384||!se&&Ie&16)&&it(Ce,ye,Te),ee&&tt(ve)}(lt&&(pt=be&&be.onVnodeUnmounted)||rt)&&queuePostRenderEffect(()=>{pt&&invokeVNodeHook(pt,ye,ve),rt&&invokeDirectiveHook(ve,null,ye,"unmounted")},Te)},tt=ve=>{const{type:ye,el:Te,anchor:ee,transition:se}=ve;if(ye===Fragment){ut(Te,ee);return}if(ye===Static){U(ve);return}const ie=()=>{C(Te),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(ve.shapeFlag&1&&se&&!se.persisted){const{leave:be,delayLeave:Ee}=se,Ce=()=>be(Te,ie);Ee?Ee(ve.el,ie,Ce):Ce()}else ie()},ut=(ve,ye)=>{let Te;for(;ve!==ye;)Te=I(ve),C(ve),ve=Te;C(ye)},dt=(ve,ye,Te)=>{const{bum:ee,scope:se,update:ie,subTree:be,um:Ee}=ve;ee&&invokeArrayFns(ee),se.stop(),ie&&(ie.active=!1,Ke(be,ve,ye,Te)),Ee&&queuePostRenderEffect(Ee,ye),queuePostRenderEffect(()=>{ve.isUnmounted=!0},ye),ye&&ye.pendingBranch&&!ye.isUnmounted&&ve.asyncDep&&!ve.asyncResolved&&ve.suspenseId===ye.pendingId&&(ye.deps--,ye.deps===0&&ye.resolve())},it=(ve,ye,Te,ee=!1,se=!1,ie=0)=>{for(let be=ie;be<ve.length;be++)Ke(ve[be],ye,Te,ee,se)},$e=ve=>ve.shapeFlag&6?$e(ve.component.subTree):ve.shapeFlag&128?ve.suspense.next():I(ve.anchor||ve.el),ke=(ve,ye,Te)=>{ve==null?ye._vnode&&Ke(ye._vnode,null,null,!0):z(ye._vnode||null,ve,ye,null,null,null,Te),flushPreFlushCbs(),flushPostFlushCbs(),ye._vnode=ve},Oe={p:z,um:Ke,m:Fe,r:tt,mt:de,mc:X,pc:fe,pbc:oe,n:$e,o:d};let Qe,Je;return b&&([Qe,Je]=b(Oe)),{render:ke,hydrate:Qe,createApp:createAppAPI(ke,Qe)}}function toggleRecurse({effect:d,update:b},A){d.allowRecurse=b.allowRecurse=A}function traverseStaticChildren(d,b,A=!1){const w=d.children,C=b.children;if(isArray$9(w)&&isArray$9(C))for(let x=0;x<w.length;x++){const S=w[x];let E=C[x];E.shapeFlag&1&&!E.dynamicChildren&&((E.patchFlag<=0||E.patchFlag===32)&&(E=C[x]=cloneIfMounted(C[x]),E.el=S.el),A||traverseStaticChildren(S,E)),E.type===Text&&(E.el=S.el)}}function getSequence(d){const b=d.slice(),A=[0];let w,C,x,S,E;const P=d.length;for(w=0;w<P;w++){const B=d[w];if(B!==0){if(C=A[A.length-1],d[C]<B){b[w]=C,A.push(w);continue}for(x=0,S=A.length-1;x<S;)E=x+S>>1,d[A[E]]<B?x=E+1:S=E;B<d[A[x]]&&(x>0&&(b[w]=A[x-1]),A[x]=w)}}for(x=A.length,S=A[x-1];x-- >0;)A[x]=S,S=b[S];return A}const isTeleport=d=>d.__isTeleport,isTeleportDisabled=d=>d&&(d.disabled||d.disabled===""),isTargetSVG=d=>typeof SVGElement<"u"&&d instanceof SVGElement,resolveTarget=(d,b)=>{const A=d&&d.to;return isString$2(A)?b?b(A):null:A},TeleportImpl={__isTeleport:!0,process(d,b,A,w,C,x,S,E,P,B){const{mc:k,pc:$,pbc:I,o:{insert:D,querySelector:F,createText:z,createComment:L}}=B,H=isTeleportDisabled(b.props);let{shapeFlag:Q,children:Y,dynamicChildren:U}=b;if(d==null){const G=b.el=z(""),W=b.anchor=z("");D(G,A,w),D(W,A,w);const K=b.target=resolveTarget(b.props,F),X=b.targetAnchor=z("");K&&(D(X,K),S=S||isTargetSVG(K));const Z=(oe,he)=>{Q&16&&k(Y,oe,he,C,x,S,E,P)};H?Z(A,W):K&&Z(K,X)}else{b.el=d.el;const G=b.anchor=d.anchor,W=b.target=d.target,K=b.targetAnchor=d.targetAnchor,X=isTeleportDisabled(d.props),Z=X?A:W,oe=X?G:K;if(S=S||isTargetSVG(W),U?(I(d.dynamicChildren,U,Z,C,x,S,E),traverseStaticChildren(d,b,!0)):P||$(d,b,Z,oe,C,x,S,E,!1),H)X||moveTeleport(b,A,G,B,1);else if((b.props&&b.props.to)!==(d.props&&d.props.to)){const he=b.target=resolveTarget(b.props,F);he&&moveTeleport(b,he,null,B,0)}else X&&moveTeleport(b,W,K,B,1)}updateCssVars(b)},remove(d,b,A,w,{um:C,o:{remove:x}},S){const{shapeFlag:E,children:P,anchor:B,targetAnchor:k,target:$,props:I}=d;if($&&x(k),(S||!isTeleportDisabled(I))&&(x(B),E&16))for(let D=0;D<P.length;D++){const F=P[D];C(F,b,A,!0,!!F.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(d,b,A,{o:{insert:w},m:C},x=2){x===0&&w(d.targetAnchor,b,A);const{el:S,anchor:E,shapeFlag:P,children:B,props:k}=d,$=x===2;if($&&w(S,b,A),(!$||isTeleportDisabled(k))&&P&16)for(let I=0;I<B.length;I++)C(B[I],b,A,2);$&&w(E,b,A)}function hydrateTeleport(d,b,A,w,C,x,{o:{nextSibling:S,parentNode:E,querySelector:P}},B){const k=b.target=resolveTarget(b.props,P);if(k){const $=k._lpa||k.firstChild;if(b.shapeFlag&16)if(isTeleportDisabled(b.props))b.anchor=B(S(d),b,E(d),A,w,C,x),b.targetAnchor=$;else{b.anchor=S(d);let I=$;for(;I;)if(I=S(I),I&&I.nodeType===8&&I.data==="teleport anchor"){b.targetAnchor=I,k._lpa=b.targetAnchor&&S(b.targetAnchor);break}B($,b,k,A,w,C,x)}updateCssVars(b)}return b.anchor&&S(b.anchor)}const Teleport=TeleportImpl;function updateCssVars(d){const b=d.ctx;if(b&&b.ut){let A=d.children[0].el;for(;A!==d.targetAnchor;)A.nodeType===1&&A.setAttribute("data-v-owner",b.uid),A=A.nextSibling;b.ut()}}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(d=!1){blockStack.push(currentBlock=d?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(d){isBlockTreeEnabled+=d}function setupBlock(d){return d.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(d),d}function createElementBlock(d,b,A,w,C,x){return setupBlock(createBaseVNode(d,b,A,w,C,x,!0))}function createBlock(d,b,A,w,C){return setupBlock(createVNode(d,b,A,w,C,!0))}function isVNode(d){return d?d.__v_isVNode===!0:!1}function isSameVNodeType(d,b){return d.type===b.type&&d.key===b.key}const InternalObjectKey="__vInternal",normalizeKey=({key:d})=>d!=null?d:null,normalizeRef=({ref:d,ref_key:b,ref_for:A})=>(typeof d=="number"&&(d=""+d),d!=null?isString$2(d)||isRef(d)||isFunction$5(d)?{i:currentRenderingInstance,r:d,k:b,f:!!A}:d:null);function createBaseVNode(d,b=null,A=null,w=0,C=null,x=d===Fragment?0:1,S=!1,E=!1){const P={__v_isVNode:!0,__v_skip:!0,type:d,props:b,key:b&&normalizeKey(b),ref:b&&normalizeRef(b),scopeId:currentScopeId,slotScopeIds:null,children:A,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:C,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return E?(normalizeChildren(P,A),x&128&&d.normalize(P)):A&&(P.shapeFlag|=isString$2(A)?8:16),isBlockTreeEnabled>0&&!S&&currentBlock&&(P.patchFlag>0||x&6)&&P.patchFlag!==32&&currentBlock.push(P),P}const createVNode=_createVNode;function _createVNode(d,b=null,A=null,w=0,C=null,x=!1){if((!d||d===NULL_DYNAMIC_COMPONENT)&&(d=Comment),isVNode(d)){const E=cloneVNode(d,b,!0);return A&&normalizeChildren(E,A),isBlockTreeEnabled>0&&!x&&currentBlock&&(E.shapeFlag&6?currentBlock[currentBlock.indexOf(d)]=E:currentBlock.push(E)),E.patchFlag|=-2,E}if(isClassComponent(d)&&(d=d.__vccOpts),b){b=guardReactiveProps(b);let{class:E,style:P}=b;E&&!isString$2(E)&&(b.class=normalizeClass(E)),isObject$6(P)&&(isProxy(P)&&!isArray$9(P)&&(P=extend$2({},P)),b.style=normalizeStyle(P))}const S=isString$2(d)?1:isSuspense(d)?128:isTeleport(d)?64:isObject$6(d)?4:isFunction$5(d)?2:0;return createBaseVNode(d,b,A,w,C,S,x,!0)}function guardReactiveProps(d){return d?isProxy(d)||InternalObjectKey in d?extend$2({},d):d:null}function cloneVNode(d,b,A=!1){const{props:w,ref:C,patchFlag:x,children:S}=d,E=b?mergeProps(w||{},b):w;return{__v_isVNode:!0,__v_skip:!0,type:d.type,props:E,key:E&&normalizeKey(E),ref:b&&b.ref?A&&C?isArray$9(C)?C.concat(normalizeRef(b)):[C,normalizeRef(b)]:normalizeRef(b):C,scopeId:d.scopeId,slotScopeIds:d.slotScopeIds,children:S,target:d.target,targetAnchor:d.targetAnchor,staticCount:d.staticCount,shapeFlag:d.shapeFlag,patchFlag:b&&d.type!==Fragment?x===-1?16:x|16:x,dynamicProps:d.dynamicProps,dynamicChildren:d.dynamicChildren,appContext:d.appContext,dirs:d.dirs,transition:d.transition,component:d.component,suspense:d.suspense,ssContent:d.ssContent&&cloneVNode(d.ssContent),ssFallback:d.ssFallback&&cloneVNode(d.ssFallback),el:d.el,anchor:d.anchor,ctx:d.ctx,ce:d.ce}}function createTextVNode(d=" ",b=0){return createVNode(Text,null,d,b)}function normalizeVNode(d){return d==null||typeof d=="boolean"?createVNode(Comment):isArray$9(d)?createVNode(Fragment,null,d.slice()):typeof d=="object"?cloneIfMounted(d):createVNode(Text,null,String(d))}function cloneIfMounted(d){return d.el===null&&d.patchFlag!==-1||d.memo?d:cloneVNode(d)}function normalizeChildren(d,b){let A=0;const{shapeFlag:w}=d;if(b==null)b=null;else if(isArray$9(b))A=16;else if(typeof b=="object")if(w&65){const C=b.default;C&&(C._c&&(C._d=!1),normalizeChildren(d,C()),C._c&&(C._d=!0));return}else{A=32;const C=b._;!C&&!(InternalObjectKey in b)?b._ctx=currentRenderingInstance:C===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?b._=1:(b._=2,d.patchFlag|=1024))}else isFunction$5(b)?(b={default:b,_ctx:currentRenderingInstance},A=32):(b=String(b),w&64?(A=16,b=[createTextVNode(b)]):A=8);d.children=b,d.shapeFlag|=A}function mergeProps(...d){const b={};for(let A=0;A<d.length;A++){const w=d[A];for(const C in w)if(C==="class")b.class!==w.class&&(b.class=normalizeClass([b.class,w.class]));else if(C==="style")b.style=normalizeStyle([b.style,w.style]);else if(isOn(C)){const x=b[C],S=w[C];S&&x!==S&&!(isArray$9(x)&&x.includes(S))&&(b[C]=x?[].concat(x,S):S)}else C!==""&&(b[C]=w[C])}return b}function invokeVNodeHook(d,b,A,w=null){callWithAsyncErrorHandling(d,b,7,[A,w])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(d,b,A){const w=d.type,C=(b?b.appContext:d.appContext)||emptyAppContext,x={uid:uid++,vnode:d,type:w,parent:b,appContext:C,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:b?b.provides:Object.create(C.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(w,C),emitsOptions:normalizeEmitsOptions(w,C),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,attrsProxy:null,slotsProxy:null,suspense:A,suspenseId:A?A.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=b?b.root:x,x.emit=emit.bind(null,x),d.ce&&d.ce(x),x}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey]=[]),globalCurrentInstanceSetters.push(d=>currentInstance=d),internalSetCurrentInstance=d=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(b=>b(d)):globalCurrentInstanceSetters[0](d)};const setCurrentInstance=d=>{internalSetCurrentInstance(d),d.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(d){return d.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(d,b=!1){isInSSRComponentSetup=b;const{props:A,children:w}=d.vnode,C=isStatefulComponent(d);initProps(d,A,C,b),initSlots(d,w);const x=C?setupStatefulComponent(d,b):void 0;return isInSSRComponentSetup=!1,x}function setupStatefulComponent(d,b){const A=d.type;d.accessCache=Object.create(null),d.proxy=markRaw(new Proxy(d.ctx,PublicInstanceProxyHandlers));const{setup:w}=A;if(w){const C=d.setupContext=w.length>1?createSetupContext(d):null;setCurrentInstance(d),pauseTracking();const x=callWithErrorHandling(w,d,0,[d.props,C]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(x)){if(x.then(unsetCurrentInstance,unsetCurrentInstance),b)return x.then(S=>{handleSetupResult(d,S,b)}).catch(S=>{handleError(S,d,0)});d.asyncDep=x}else handleSetupResult(d,x,b)}else finishComponentSetup(d,b)}function handleSetupResult(d,b,A){isFunction$5(b)?d.type.__ssrInlineRender?d.ssrRender=b:d.render=b:isObject$6(b)&&(d.setupState=proxyRefs(b)),finishComponentSetup(d,A)}let compile;function finishComponentSetup(d,b,A){const w=d.type;if(!d.render){if(!b&&compile&&!w.render){const C=w.template||resolveMergedOptions(d).template;if(C){const{isCustomElement:x,compilerOptions:S}=d.appContext.config,{delimiters:E,compilerOptions:P}=w,B=extend$2(extend$2({isCustomElement:x,delimiters:E},S),P);w.render=compile(C,B)}}d.render=w.render||NOOP}setCurrentInstance(d),pauseTracking(),applyOptions(d),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(d){return d.attrsProxy||(d.attrsProxy=new Proxy(d.attrs,{get(b,A){return track(d,"get","$attrs"),b[A]}}))}function createSetupContext(d){const b=A=>{d.exposed=A||{}};return{get attrs(){return getAttrsProxy(d)},slots:d.slots,emit:d.emit,expose:b}}function getExposeProxy(d){if(d.exposed)return d.exposeProxy||(d.exposeProxy=new Proxy(proxyRefs(markRaw(d.exposed)),{get(b,A){if(A in b)return b[A];if(A in publicPropertiesMap)return publicPropertiesMap[A](d)},has(b,A){return A in b||A in publicPropertiesMap}}))}function getComponentName(d,b=!0){return isFunction$5(d)?d.displayName||d.name:d.name||b&&d.__name}function isClassComponent(d){return isFunction$5(d)&&"__vccOpts"in d}const computed=(d,b)=>computed$1(d,b,isInSSRComponentSetup);function h$1(d,b,A){const w=arguments.length;return w===2?isObject$6(b)&&!isArray$9(b)?isVNode(b)?createVNode(d,null,[b]):createVNode(d,b):createVNode(d,null,b):(w>3?A=Array.prototype.slice.call(arguments,2):w===3&&isVNode(A)&&(A=[A]),createVNode(d,b,A))}const ssrContextKey$1=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey$1),version$2="3.3.4",svgNS$1="http://www.w3.org/2000/svg",doc$2=typeof document<"u"?document:null,templateContainer=doc$2&&doc$2.createElement("template"),nodeOps={insert:(d,b,A)=>{b.insertBefore(d,A||null)},remove:d=>{const b=d.parentNode;b&&b.removeChild(d)},createElement:(d,b,A,w)=>{const C=b?doc$2.createElementNS(svgNS$1,d):doc$2.createElement(d,A?{is:A}:void 0);return d==="select"&&w&&w.multiple!=null&&C.setAttribute("multiple",w.multiple),C},createText:d=>doc$2.createTextNode(d),createComment:d=>doc$2.createComment(d),setText:(d,b)=>{d.nodeValue=b},setElementText:(d,b)=>{d.textContent=b},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>doc$2.querySelector(d),setScopeId(d,b){d.setAttribute(b,"")},insertStaticContent(d,b,A,w,C,x){const S=A?A.previousSibling:b.lastChild;if(C&&(C===x||C.nextSibling))for(;b.insertBefore(C.cloneNode(!0),A),!(C===x||!(C=C.nextSibling)););else{templateContainer.innerHTML=w?"<svg>".concat(d,"</svg>"):d;const E=templateContainer.content;if(w){const P=E.firstChild;for(;P.firstChild;)E.appendChild(P.firstChild);E.removeChild(P)}b.insertBefore(E,A)}return[S?S.nextSibling:b.firstChild,A?A.previousSibling:b.lastChild]}};function patchClass(d,b,A){const w=d._vtc;w&&(b=(b?[b,...w]:[...w]).join(" ")),b==null?d.removeAttribute("class"):A?d.setAttribute("class",b):d.className=b}function patchStyle(d,b,A){const w=d.style,C=isString$2(A);if(A&&!C){if(b&&!isString$2(b))for(const x in b)A[x]==null&&setStyle(w,x,"");for(const x in A)setStyle(w,x,A[x])}else{const x=w.display;C?b!==A&&(w.cssText=A):b&&d.removeAttribute("style"),"_vod"in d&&(w.display=x)}}const importantRE=/\s*!important$/;function setStyle(d,b,A){if(isArray$9(A))A.forEach(w=>setStyle(d,b,w));else if(A==null&&(A=""),b.startsWith("--"))d.setProperty(b,A);else{const w=autoPrefix(d,b);importantRE.test(A)?d.setProperty(hyphenate(w),A.replace(importantRE,""),"important"):d[w]=A}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(d,b){const A=prefixCache[b];if(A)return A;let w=camelize$1(b);if(w!=="filter"&&w in d)return prefixCache[b]=w;w=capitalize(w);for(let C=0;C<prefixes.length;C++){const x=prefixes[C]+w;if(x in d)return prefixCache[b]=x}return b}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(d,b,A,w,C){if(w&&b.startsWith("xlink:"))A==null?d.removeAttributeNS(xlinkNS,b.slice(6,b.length)):d.setAttributeNS(xlinkNS,b,A);else{const x=isSpecialBooleanAttr(b);A==null||x&&!includeBooleanAttr(A)?d.removeAttribute(b):d.setAttribute(b,x?"":A)}}function patchDOMProp(d,b,A,w,C,x,S){if(b==="innerHTML"||b==="textContent"){w&&S(w,C,x),d[b]=A==null?"":A;return}const E=d.tagName;if(b==="value"&&E!=="PROGRESS"&&!E.includes("-")){d._value=A;const B=E==="OPTION"?d.getAttribute("value"):d.value,k=A==null?"":A;B!==k&&(d.value=k),A==null&&d.removeAttribute(b);return}let P=!1;if(A===""||A==null){const B=typeof d[b];B==="boolean"?A=includeBooleanAttr(A):A==null&&B==="string"?(A="",P=!0):B==="number"&&(A=0,P=!0)}try{d[b]=A}catch(B){}P&&d.removeAttribute(b)}function addEventListener(d,b,A,w){d.addEventListener(b,A,w)}function removeEventListener(d,b,A,w){d.removeEventListener(b,A,w)}function patchEvent(d,b,A,w,C=null){const x=d._vei||(d._vei={}),S=x[b];if(w&&S)S.value=w;else{const[E,P]=parseName(b);if(w){const B=x[b]=createInvoker(w,C);addEventListener(d,E,B,P)}else S&&(removeEventListener(d,E,S,P),x[b]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(d){let b;if(optionsModifierRE.test(d)){b={};let w;for(;w=d.match(optionsModifierRE);)d=d.slice(0,d.length-w[0].length),b[w[0].toLowerCase()]=!0}return[d[2]===":"?d.slice(3):hyphenate(d.slice(2)),b]}let cachedNow=0;const p$1=Promise.resolve(),getNow=()=>cachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(d,b){const A=w=>{if(!w._vts)w._vts=Date.now();else if(w._vts<=A.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(w,A.value),b,5,[w])};return A.value=d,A.attached=getNow(),A}function patchStopImmediatePropagation(d,b){if(isArray$9(b)){const A=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{A.call(d),d._stopped=!0},b.map(w=>C=>!C._stopped&&w&&w(C))}else return b}const nativeOnRE=/^on[a-z]/,patchProp=(d,b,A,w,C=!1,x,S,E,P)=>{b==="class"?patchClass(d,w,C):b==="style"?patchStyle(d,A,w):isOn(b)?isModelListener(b)||patchEvent(d,b,A,w,S):(b[0]==="."?(b=b.slice(1),!0):b[0]==="^"?(b=b.slice(1),!1):shouldSetAsProp(d,b,w,C))?patchDOMProp(d,b,w,x,S,E,P):(b==="true-value"?d._trueValue=w:b==="false-value"&&(d._falseValue=w),patchAttr(d,b,w,C))};function shouldSetAsProp(d,b,A,w){return w?!!(b==="innerHTML"||b==="textContent"||b in d&&nativeOnRE.test(b)&&isFunction$5(A)):b==="spellcheck"||b==="draggable"||b==="translate"||b==="form"||b==="list"&&d.tagName==="INPUT"||b==="type"&&d.tagName==="TEXTAREA"||nativeOnRE.test(b)&&isString$2(A)?!1:b in d}const TRANSITION="transition",ANIMATION="animation",Transition=(d,{slots:b})=>h$1(BaseTransition,resolveTransitionProps(d),b);Transition.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.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(d,b=[])=>{isArray$9(d)?d.forEach(A=>A(...b)):d&&d(...b)},hasExplicitCallback=d=>d?isArray$9(d)?d.some(b=>b.length>1):d.length>1:!1;function resolveTransitionProps(d){const b={};for(const J in d)J in DOMTransitionPropsValidators||(b[J]=d[J]);if(d.css===!1)return b;const{name:A="v",type:w,duration:C,enterFromClass:x="".concat(A,"-enter-from"),enterActiveClass:S="".concat(A,"-enter-active"),enterToClass:E="".concat(A,"-enter-to"),appearFromClass:P=x,appearActiveClass:B=S,appearToClass:k=E,leaveFromClass:$="".concat(A,"-leave-from"),leaveActiveClass:I="".concat(A,"-leave-active"),leaveToClass:D="".concat(A,"-leave-to")}=d,F=normalizeDuration(C),z=F&&F[0],L=F&&F[1],{onBeforeEnter:H,onEnter:Q,onEnterCancelled:Y,onLeave:U,onLeaveCancelled:G,onBeforeAppear:W=H,onAppear:K=Q,onAppearCancelled:X=Y}=b,Z=(J,le,de)=>{removeTransitionClass(J,le?k:E),removeTransitionClass(J,le?B:S),de&&de()},oe=(J,le)=>{J._isLeaving=!1,removeTransitionClass(J,$),removeTransitionClass(J,D),removeTransitionClass(J,I),le&&le()},he=J=>(le,de)=>{const me=J?K:Q,ne=()=>Z(le,J,de);callHook(me,[le,ne]),nextFrame(()=>{removeTransitionClass(le,J?P:x),addTransitionClass(le,J?k:E),hasExplicitCallback(me)||whenTransitionEnds(le,w,z,ne)})};return extend$2(b,{onBeforeEnter(J){callHook(H,[J]),addTransitionClass(J,x),addTransitionClass(J,S)},onBeforeAppear(J){callHook(W,[J]),addTransitionClass(J,P),addTransitionClass(J,B)},onEnter:he(!1),onAppear:he(!0),onLeave(J,le){J._isLeaving=!0;const de=()=>oe(J,le);addTransitionClass(J,$),forceReflow(),addTransitionClass(J,I),nextFrame(()=>{J._isLeaving&&(removeTransitionClass(J,$),addTransitionClass(J,D),hasExplicitCallback(U)||whenTransitionEnds(J,w,L,de))}),callHook(U,[J,de])},onEnterCancelled(J){Z(J,!1),callHook(Y,[J])},onAppearCancelled(J){Z(J,!0),callHook(X,[J])},onLeaveCancelled(J){oe(J),callHook(G,[J])}})}function normalizeDuration(d){if(d==null)return null;if(isObject$6(d))return[NumberOf(d.enter),NumberOf(d.leave)];{const b=NumberOf(d);return[b,b]}}function NumberOf(d){return toNumber$3(d)}function addTransitionClass(d,b){b.split(/\s+/).forEach(A=>A&&d.classList.add(A)),(d._vtc||(d._vtc=new Set)).add(b)}function removeTransitionClass(d,b){b.split(/\s+/).forEach(w=>w&&d.classList.remove(w));const{_vtc:A}=d;A&&(A.delete(b),A.size||(d._vtc=void 0))}function nextFrame(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let endId=0;function whenTransitionEnds(d,b,A,w){const C=d._endId=++endId,x=()=>{C===d._endId&&w()};if(A)return setTimeout(x,A);const{type:S,timeout:E,propCount:P}=getTransitionInfo(d,b);if(!S)return w();const B=S+"end";let k=0;const $=()=>{d.removeEventListener(B,I),x()},I=D=>{D.target===d&&++k>=P&&$()};setTimeout(()=>{k<P&&$()},E+1),d.addEventListener(B,I)}function getTransitionInfo(d,b){const A=window.getComputedStyle(d),w=F=>(A[F]||"").split(", "),C=w("".concat(TRANSITION,"Delay")),x=w("".concat(TRANSITION,"Duration")),S=getTimeout(C,x),E=w("".concat(ANIMATION,"Delay")),P=w("".concat(ANIMATION,"Duration")),B=getTimeout(E,P);let k=null,$=0,I=0;b===TRANSITION?S>0&&(k=TRANSITION,$=S,I=x.length):b===ANIMATION?B>0&&(k=ANIMATION,$=B,I=P.length):($=Math.max(S,B),k=$>0?S>B?TRANSITION:ANIMATION:null,I=k?k===TRANSITION?x.length:P.length:0);const D=k===TRANSITION&&/\b(transform|all)(,|$)/.test(w("".concat(TRANSITION,"Property")).toString());return{type:k,timeout:$,propCount:I,hasTransform:D}}function getTimeout(d,b){for(;d.length<b.length;)d=d.concat(d);return Math.max(...b.map((A,w)=>toMs(A)+toMs(d[w])))}function toMs(d){return Number(d.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(d,{slots:b}){const A=getCurrentInstance(),w=useTransitionState();let C,x;return onUpdated(()=>{if(!C.length)return;const S=d.moveClass||"".concat(d.name||"v","-move");if(!hasCSSTransform(C[0].el,A.vnode.el,S))return;C.forEach(callPendingCbs),C.forEach(recordPosition);const E=C.filter(applyTranslation);forceReflow(),E.forEach(P=>{const B=P.el,k=B.style;addTransitionClass(B,S),k.transform=k.webkitTransform=k.transitionDuration="";const $=B._moveCb=I=>{I&&I.target!==B||(!I||/transform$/.test(I.propertyName))&&(B.removeEventListener("transitionend",$),B._moveCb=null,removeTransitionClass(B,S))};B.addEventListener("transitionend",$)})}),()=>{const S=toRaw(d),E=resolveTransitionProps(S);let P=S.tag||Fragment;C=x,x=b.default?getTransitionRawChildren(b.default()):[];for(let B=0;B<x.length;B++){const k=x[B];k.key!=null&&setTransitionHooks(k,resolveTransitionHooks(k,E,w,A))}if(C)for(let B=0;B<C.length;B++){const k=C[B];setTransitionHooks(k,resolveTransitionHooks(k,E,w,A)),positionMap.set(k,k.el.getBoundingClientRect())}return createVNode(P,null,x)}}},removeMode=d=>delete d.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(d){const b=d.el;b._moveCb&&b._moveCb(),b._enterCb&&b._enterCb()}function recordPosition(d){newPositionMap.set(d,d.el.getBoundingClientRect())}function applyTranslation(d){const b=positionMap.get(d),A=newPositionMap.get(d),w=b.left-A.left,C=b.top-A.top;if(w||C){const x=d.el.style;return x.transform=x.webkitTransform="translate(".concat(w,"px,").concat(C,"px)"),x.transitionDuration="0s",d}}function hasCSSTransform(d,b,A){const w=d.cloneNode();d._vtc&&d._vtc.forEach(S=>{S.split(/\s+/).forEach(E=>E&&w.classList.remove(E))}),A.split(/\s+/).forEach(S=>S&&w.classList.add(S)),w.style.display="none";const C=b.nodeType===1?b:b.parentNode;C.appendChild(w);const{hasTransform:x}=getTransitionInfo(w);return C.removeChild(w),x}const keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(d,b)=>A=>{if(!("key"in A))return;const w=hyphenate(A.key);if(b.some(C=>C===w||keyNames[C]===w))return d(A)},vShow={beforeMount(d,{value:b},{transition:A}){d._vod=d.style.display==="none"?"":d.style.display,A&&b?A.beforeEnter(d):setDisplay(d,b)},mounted(d,{value:b},{transition:A}){A&&b&&A.enter(d)},updated(d,{value:b,oldValue:A},{transition:w}){!b!=!A&&(w?b?(w.beforeEnter(d),setDisplay(d,!0),w.enter(d)):w.leave(d,()=>{setDisplay(d,!1)}):setDisplay(d,b))},beforeUnmount(d,{value:b}){setDisplay(d,b)}};function setDisplay(d,b){d.style.display=b?d._vod:"none"}const rendererOptions=extend$2({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer(rendererOptions))}const createApp=(...d)=>{const b=ensureRenderer().createApp(...d),{mount:A}=b;return b.mount=w=>{const C=normalizeContainer(w);if(!C)return;const x=b._component;!isFunction$5(x)&&!x.render&&!x.template&&(x.template=C.innerHTML),C.innerHTML="";const S=A(C,!1,C instanceof SVGElement);return C instanceof Element&&(C.removeAttribute("v-cloak"),C.setAttribute("data-v-app","")),S},b};function normalizeContainer(d){return isString$2(d)?document.querySelector(d):d}/*!
  2. * vue-router v4.2.4
  3. * (c) 2023 Eduardo San Martin Morote
  4. * @license MIT
  5. */const isBrowser$3=typeof window<"u";function isESModule(d){return d.__esModule||d[Symbol.toStringTag]==="Module"}const assign$2=Object.assign;function applyToParams(d,b){const A={};for(const w in b){const C=b[w];A[w]=isArray$8(C)?C.map(d):d(C)}return A}const noop$3=()=>{},isArray$8=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=d=>d.replace(TRAILING_SLASH_RE,"");function parseURL(d,b,A="/"){let w,C={},x="",S="";const E=b.indexOf("#");let P=b.indexOf("?");return E<P&&E>=0&&(P=-1),P>-1&&(w=b.slice(0,P),x=b.slice(P+1,E>-1?E:b.length),C=d(x)),E>-1&&(w=w||b.slice(0,E),S=b.slice(E,b.length)),w=resolveRelativePath(w!=null?w:b,A),{fullPath:w+(x&&"?")+x+S,path:w,query:C,hash:S}}function stringifyURL(d,b){const A=b.query?d(b.query):"";return b.path+(A&&"?")+A+(b.hash||"")}function stripBase(d,b){return!b||!d.toLowerCase().startsWith(b.toLowerCase())?d:d.slice(b.length)||"/"}function isSameRouteLocation(d,b,A){const w=b.matched.length-1,C=A.matched.length-1;return w>-1&&w===C&&isSameRouteRecord(b.matched[w],A.matched[C])&&isSameRouteLocationParams(b.params,A.params)&&d(b.query)===d(A.query)&&b.hash===A.hash}function isSameRouteRecord(d,b){return(d.aliasOf||d)===(b.aliasOf||b)}function isSameRouteLocationParams(d,b){if(Object.keys(d).length!==Object.keys(b).length)return!1;for(const A in d)if(!isSameRouteLocationParamsValue(d[A],b[A]))return!1;return!0}function isSameRouteLocationParamsValue(d,b){return isArray$8(d)?isEquivalentArray(d,b):isArray$8(b)?isEquivalentArray(b,d):d===b}function isEquivalentArray(d,b){return isArray$8(b)?d.length===b.length&&d.every((A,w)=>A===b[w]):d.length===1&&d[0]===b}function resolveRelativePath(d,b){if(d.startsWith("/"))return d;if(!d)return b;const A=b.split("/"),w=d.split("/"),C=w[w.length-1];(C===".."||C===".")&&w.push("");let x=A.length-1,S,E;for(S=0;S<w.length;S++)if(E=w[S],E!==".")if(E==="..")x>1&&x--;else break;return A.slice(0,x).join("/")+"/"+w.slice(S-(S===w.length?1:0)).join("/")}var NavigationType;(function(d){d.pop="pop",d.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(d){d.back="back",d.forward="forward",d.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(d){if(!d)if(isBrowser$3){const b=document.querySelector("base");d=b&&b.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),removeTrailingSlash(d)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(d,b){return d.replace(BEFORE_HASH_RE,"#")+b}function getElementPosition(d,b){const A=document.documentElement.getBoundingClientRect(),w=d.getBoundingClientRect();return{behavior:b.behavior,left:w.left-A.left-(b.left||0),top:w.top-A.top-(b.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(d){let b;if("el"in d){const A=d.el,w=typeof A=="string"&&A.startsWith("#"),C=typeof A=="string"?w?document.getElementById(A.slice(1)):document.querySelector(A):A;if(!C)return;b=getElementPosition(C,d)}else b=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(b):window.scrollTo(b.left!=null?b.left:window.pageXOffset,b.top!=null?b.top:window.pageYOffset)}function getScrollKey(d,b){return(history.state?history.state.position-b:-1)+d}const scrollPositions=new Map;function saveScrollPosition(d,b){scrollPositions.set(d,b)}function getSavedScrollPosition(d){const b=scrollPositions.get(d);return scrollPositions.delete(d),b}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(d,b){const{pathname:A,search:w,hash:C}=b,x=d.indexOf("#");if(x>-1){let E=C.includes(d.slice(x))?d.slice(x).length:1,P=C.slice(E);return P[0]!=="/"&&(P="/"+P),stripBase(P,"")}return stripBase(A,d)+w+C}function useHistoryListeners(d,b,A,w){let C=[],x=[],S=null;const E=({state:I})=>{const D=createCurrentLocation(d,location),F=A.value,z=b.value;let L=0;if(I){if(A.value=D,b.value=I,S&&S===F){S=null;return}L=z?I.position-z.position:0}else w(D);C.forEach(H=>{H(A.value,F,{delta:L,type:NavigationType.pop,direction:L?L>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function P(){S=A.value}function B(I){C.push(I);const D=()=>{const F=C.indexOf(I);F>-1&&C.splice(F,1)};return x.push(D),D}function k(){const{history:I}=window;I.state&&I.replaceState(assign$2({},I.state,{scroll:computeScrollPosition()}),"")}function $(){for(const I of x)I();x=[],window.removeEventListener("popstate",E),window.removeEventListener("beforeunload",k)}return window.addEventListener("popstate",E),window.addEventListener("beforeunload",k,{passive:!0}),{pauseListeners:P,listen:B,destroy:$}}function buildState(d,b,A,w=!1,C=!1){return{back:d,current:b,forward:A,replaced:w,position:window.history.length,scroll:C?computeScrollPosition():null}}function useHistoryStateNavigation(d){const{history:b,location:A}=window,w={value:createCurrentLocation(d,A)},C={value:b.state};C.value||x(w.value,{back:null,current:w.value,forward:null,position:b.length-1,replaced:!0,scroll:null},!0);function x(P,B,k){const $=d.indexOf("#"),I=$>-1?(A.host&&document.querySelector("base")?d:d.slice($))+P:createBaseLocation()+d+P;try{b[k?"replaceState":"pushState"](B,"",I),C.value=B}catch(D){console.error(D),A[k?"replace":"assign"](I)}}function S(P,B){const k=assign$2({},b.state,buildState(C.value.back,P,C.value.forward,!0),B,{position:C.value.position});x(P,k,!0),w.value=P}function E(P,B){const k=assign$2({},C.value,b.state,{forward:P,scroll:computeScrollPosition()});x(k.current,k,!0);const $=assign$2({},buildState(w.value,P,null),{position:k.position+1},B);x(P,$,!1),w.value=P}return{location:w,state:C,push:E,replace:S}}function createWebHistory(d){d=normalizeBase(d);const b=useHistoryStateNavigation(d),A=useHistoryListeners(d,b.state,b.location,b.replace);function w(x,S=!0){S||A.pauseListeners(),history.go(x)}const C=assign$2({location:"",base:d,go:w,createHref:createHref.bind(null,d)},b,A);return Object.defineProperty(C,"location",{enumerable:!0,get:()=>b.location.value}),Object.defineProperty(C,"state",{enumerable:!0,get:()=>b.state.value}),C}function createWebHashHistory(d){return d=location.host?d||location.pathname+location.search:"",d.includes("#")||(d+="#"),createWebHistory(d)}function isRouteLocation(d){return typeof d=="string"||d&&typeof d=="object"}function isRouteName(d){return typeof d=="string"||typeof d=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(d){d[d.aborted=4]="aborted",d[d.cancelled=8]="cancelled",d[d.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(d,b){return assign$2(new Error,{type:d,[NavigationFailureSymbol]:!0},b)}function isNavigationFailure(d,b){return d instanceof Error&&NavigationFailureSymbol in d&&(b==null||!!(d.type&b))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(d,b){const A=assign$2({},BASE_PATH_PARSER_OPTIONS,b),w=[];let C=A.start?"^":"";const x=[];for(const B of d){const k=B.length?[]:[90];A.strict&&!B.length&&(C+="/");for(let $=0;$<B.length;$++){const I=B[$];let D=40+(A.sensitive?.25:0);if(I.type===0)$||(C+="/"),C+=I.value.replace(REGEX_CHARS_RE,"\\$&"),D+=40;else if(I.type===1){const{value:F,repeatable:z,optional:L,regexp:H}=I;x.push({name:F,repeatable:z,optional:L});const Q=H||BASE_PARAM_PATTERN;if(Q!==BASE_PARAM_PATTERN){D+=10;try{new RegExp("(".concat(Q,")"))}catch(U){throw new Error('Invalid custom RegExp for param "'.concat(F,'" (').concat(Q,"): ")+U.message)}}let Y=z?"((?:".concat(Q,")(?:/(?:").concat(Q,"))*)"):"(".concat(Q,")");$||(Y=L&&B.length<2?"(?:/".concat(Y,")"):"/"+Y),L&&(Y+="?"),C+=Y,D+=20,L&&(D+=-8),z&&(D+=-20),Q===".*"&&(D+=-50)}k.push(D)}w.push(k)}if(A.strict&&A.end){const B=w.length-1;w[B][w[B].length-1]+=.7000000000000001}A.strict||(C+="/?"),A.end?C+="$":A.strict&&(C+="(?:/|$)");const S=new RegExp(C,A.sensitive?"":"i");function E(B){const k=B.match(S),$={};if(!k)return null;for(let I=1;I<k.length;I++){const D=k[I]||"",F=x[I-1];$[F.name]=D&&F.repeatable?D.split("/"):D}return $}function P(B){let k="",$=!1;for(const I of d){(!$||!k.endsWith("/"))&&(k+="/"),$=!1;for(const D of I)if(D.type===0)k+=D.value;else if(D.type===1){const{value:F,repeatable:z,optional:L}=D,H=F in B?B[F]:"";if(isArray$8(H)&&!z)throw new Error('Provided param "'.concat(F,'" is an array but it is not repeatable (* or + modifiers)'));const Q=isArray$8(H)?H.join("/"):H;if(!Q)if(L)I.length<2&&(k.endsWith("/")?k=k.slice(0,-1):$=!0);else throw new Error('Missing required param "'.concat(F,'"'));k+=Q}}return k||"/"}return{re:S,score:w,keys:x,parse:E,stringify:P}}function compareScoreArray(d,b){let A=0;for(;A<d.length&&A<b.length;){const w=b[A]-d[A];if(w)return w;A++}return d.length<b.length?d.length===1&&d[0]===40+40?-1:1:d.length>b.length?b.length===1&&b[0]===40+40?1:-1:0}function comparePathParserScore(d,b){let A=0;const w=d.score,C=b.score;for(;A<w.length&&A<C.length;){const x=compareScoreArray(w[A],C[A]);if(x)return x;A++}if(Math.abs(C.length-w.length)===1){if(isLastScoreNegative(w))return 1;if(isLastScoreNegative(C))return-1}return C.length-w.length}function isLastScoreNegative(d){const b=d[d.length-1];return d.length>0&&b[b.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(d){if(!d)return[[]];if(d==="/")return[[ROOT_TOKEN]];if(!d.startsWith("/"))throw new Error('Invalid path "'.concat(d,'"'));function b(D){throw new Error("ERR (".concat(A,')/"').concat(B,'": ').concat(D))}let A=0,w=A;const C=[];let x;function S(){x&&C.push(x),x=[]}let E=0,P,B="",k="";function $(){B&&(A===0?x.push({type:0,value:B}):A===1||A===2||A===3?(x.length>1&&(P==="*"||P==="+")&&b("A repeatable param (".concat(B,") must be alone in its segment. eg: '/:ids+.")),x.push({type:1,value:B,regexp:k,repeatable:P==="*"||P==="+",optional:P==="*"||P==="?"})):b("Invalid state to consume buffer"),B="")}function I(){B+=P}for(;E<d.length;){if(P=d[E++],P==="\\"&&A!==2){w=A,A=4;continue}switch(A){case 0:P==="/"?(B&&$(),S()):P===":"?($(),A=1):I();break;case 4:I(),A=w;break;case 1:P==="("?A=2:VALID_PARAM_RE.test(P)?I():($(),A=0,P!=="*"&&P!=="?"&&P!=="+"&&E--);break;case 2:P===")"?k[k.length-1]=="\\"?k=k.slice(0,-1)+P:A=3:k+=P;break;case 3:$(),A=0,P!=="*"&&P!=="?"&&P!=="+"&&E--,k="";break;default:b("Unknown state");break}}return A===2&&b('Unfinished custom RegExp for param "'.concat(B,'"')),$(),S(),C}function createRouteRecordMatcher(d,b,A){const w=tokensToParser(tokenizePath(d.path),A),C=assign$2(w,{record:d,parent:b,children:[],alias:[]});return b&&!C.record.aliasOf==!b.record.aliasOf&&b.children.push(C),C}function createRouterMatcher(d,b){const A=[],w=new Map;b=mergeOptions({strict:!1,end:!0,sensitive:!1},b);function C(k){return w.get(k)}function x(k,$,I){const D=!I,F=normalizeRouteRecord(k);F.aliasOf=I&&I.record;const z=mergeOptions(b,k),L=[F];if("alias"in k){const Y=typeof k.alias=="string"?[k.alias]:k.alias;for(const U of Y)L.push(assign$2({},F,{components:I?I.record.components:F.components,path:U,aliasOf:I?I.record:F}))}let H,Q;for(const Y of L){const{path:U}=Y;if($&&U[0]!=="/"){const G=$.record.path,W=G[G.length-1]==="/"?"":"/";Y.path=$.record.path+(U&&W+U)}if(H=createRouteRecordMatcher(Y,$,z),I?I.alias.push(H):(Q=Q||H,Q!==H&&Q.alias.push(H),D&&k.name&&!isAliasRecord(H)&&S(k.name)),F.children){const G=F.children;for(let W=0;W<G.length;W++)x(G[W],H,I&&I.children[W])}I=I||H,(H.record.components&&Object.keys(H.record.components).length||H.record.name||H.record.redirect)&&P(H)}return Q?()=>{S(Q)}:noop$3}function S(k){if(isRouteName(k)){const $=w.get(k);$&&(w.delete(k),A.splice(A.indexOf($),1),$.children.forEach(S),$.alias.forEach(S))}else{const $=A.indexOf(k);$>-1&&(A.splice($,1),k.record.name&&w.delete(k.record.name),k.children.forEach(S),k.alias.forEach(S))}}function E(){return A}function P(k){let $=0;for(;$<A.length&&comparePathParserScore(k,A[$])>=0&&(k.record.path!==A[$].record.path||!isRecordChildOf(k,A[$]));)$++;A.splice($,0,k),k.record.name&&!isAliasRecord(k)&&w.set(k.record.name,k)}function B(k,$){let I,D={},F,z;if("name"in k&&k.name){if(I=w.get(k.name),!I)throw createRouterError(1,{location:k});z=I.record.name,D=assign$2(paramsFromLocation($.params,I.keys.filter(Q=>!Q.optional).map(Q=>Q.name)),k.params&&paramsFromLocation(k.params,I.keys.map(Q=>Q.name))),F=I.stringify(D)}else if("path"in k)F=k.path,I=A.find(Q=>Q.re.test(F)),I&&(D=I.parse(F),z=I.record.name);else{if(I=$.name?w.get($.name):A.find(Q=>Q.re.test($.path)),!I)throw createRouterError(1,{location:k,currentLocation:$});z=I.record.name,D=assign$2({},$.params,k.params),F=I.stringify(D)}const L=[];let H=I;for(;H;)L.unshift(H.record),H=H.parent;return{name:z,path:F,params:D,matched:L,meta:mergeMetaFields(L)}}return d.forEach(k=>x(k)),{addRoute:x,resolve:B,removeRoute:S,getRoutes:E,getRecordMatcher:C}}function paramsFromLocation(d,b){const A={};for(const w of b)w in d&&(A[w]=d[w]);return A}function normalizeRouteRecord(d){return{path:d.path,redirect:d.redirect,name:d.name,meta:d.meta||{},aliasOf:void 0,beforeEnter:d.beforeEnter,props:normalizeRecordProps(d),children:d.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in d?d.components||null:d.component&&{default:d.component}}}function normalizeRecordProps(d){const b={},A=d.props||!1;if("component"in d)b.default=A;else for(const w in d.components)b[w]=typeof A=="object"?A[w]:A;return b}function isAliasRecord(d){for(;d;){if(d.record.aliasOf)return!0;d=d.parent}return!1}function mergeMetaFields(d){return d.reduce((b,A)=>assign$2(b,A.meta),{})}function mergeOptions(d,b){const A={};for(const w in d)A[w]=w in b?b[w]:d[w];return A}function isRecordChildOf(d,b){return b.children.some(A=>A===d||isRecordChildOf(d,A))}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(d){return encodeURI(""+d).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(d){return commonEncode(d).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(d){return commonEncode(d).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(d){return encodeQueryValue(d).replace(EQUAL_RE,"%3D")}function encodePath(d){return commonEncode(d).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(d){return d==null?"":encodePath(d).replace(SLASH_RE,"%2F")}function decode$4(d){try{return decodeURIComponent(""+d)}catch(b){}return""+d}function parseQuery(d){const b={};if(d===""||d==="?")return b;const w=(d[0]==="?"?d.slice(1):d).split("&");for(let C=0;C<w.length;++C){const x=w[C].replace(PLUS_RE," "),S=x.indexOf("="),E=decode$4(S<0?x:x.slice(0,S)),P=S<0?null:decode$4(x.slice(S+1));if(E in b){let B=b[E];isArray$8(B)||(B=b[E]=[B]),B.push(P)}else b[E]=P}return b}function stringifyQuery(d){let b="";for(let A in d){const w=d[A];if(A=encodeQueryKey(A),w==null){w!==void 0&&(b+=(b.length?"&":"")+A);continue}(isArray$8(w)?w.map(x=>x&&encodeQueryValue(x)):[w&&encodeQueryValue(w)]).forEach(x=>{x!==void 0&&(b+=(b.length?"&":"")+A,x!=null&&(b+="="+x))})}return b}function normalizeQuery(d){const b={};for(const A in d){const w=d[A];w!==void 0&&(b[A]=isArray$8(w)?w.map(C=>C==null?null:""+C):w==null?w:""+w)}return b}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let d=[];function b(w){return d.push(w),()=>{const C=d.indexOf(w);C>-1&&d.splice(C,1)}}function A(){d=[]}return{add:b,list:()=>d.slice(),reset:A}}function guardToPromiseFn(d,b,A,w,C){const x=w&&(w.enterCallbacks[C]=w.enterCallbacks[C]||[]);return()=>new Promise((S,E)=>{const P=$=>{$===!1?E(createRouterError(4,{from:A,to:b})):$ instanceof Error?E($):isRouteLocation($)?E(createRouterError(2,{from:b,to:$})):(x&&w.enterCallbacks[C]===x&&typeof $=="function"&&x.push($),S())},B=d.call(w&&w.instances[C],b,A,P);let k=Promise.resolve(B);d.length<3&&(k=k.then(P)),k.catch($=>E($))})}function extractComponentsGuards(d,b,A,w){const C=[];for(const x of d)for(const S in x.components){let E=x.components[S];if(!(b!=="beforeRouteEnter"&&!x.instances[S]))if(isRouteComponent(E)){const B=(E.__vccOpts||E)[b];B&&C.push(guardToPromiseFn(B,A,w,x,S))}else{let P=E();C.push(()=>P.then(B=>{if(!B)return Promise.reject(new Error("Couldn't resolve component \"".concat(S,'" at "').concat(x.path,'"')));const k=isESModule(B)?B.default:B;x.components[S]=k;const I=(k.__vccOpts||k)[b];return I&&guardToPromiseFn(I,A,w,x,S)()}))}}return C}function isRouteComponent(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function useLink(d){const b=inject(routerKey),A=inject(routeLocationKey),w=computed(()=>b.resolve(unref(d.to))),C=computed(()=>{const{matched:P}=w.value,{length:B}=P,k=P[B-1],$=A.matched;if(!k||!$.length)return-1;const I=$.findIndex(isSameRouteRecord.bind(null,k));if(I>-1)return I;const D=getOriginalPath(P[B-2]);return B>1&&getOriginalPath(k)===D&&$[$.length-1].path!==D?$.findIndex(isSameRouteRecord.bind(null,P[B-2])):I}),x=computed(()=>C.value>-1&&includesParams(A.params,w.value.params)),S=computed(()=>C.value>-1&&C.value===A.matched.length-1&&isSameRouteLocationParams(A.params,w.value.params));function E(P={}){return guardEvent(P)?b[unref(d.replace)?"replace":"push"](unref(d.to)).catch(noop$3):Promise.resolve()}return{route:w,href:computed(()=>w.value.href),isActive:x,isExactActive:S,navigate:E}}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(d,{slots:b}){const A=reactive(useLink(d)),{options:w}=inject(routerKey),C=computed(()=>({[getLinkClass(d.activeClass,w.linkActiveClass,"router-link-active")]:A.isActive,[getLinkClass(d.exactActiveClass,w.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const x=b.default&&b.default(A);return d.custom?x:h$1("a",{"aria-current":A.isExactActive?d.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:C.value},x)}}}),RouterLink=RouterLinkImpl;function guardEvent(d){if(!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&!d.defaultPrevented&&!(d.button!==void 0&&d.button!==0)){if(d.currentTarget&&d.currentTarget.getAttribute){const b=d.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(b))return}return d.preventDefault&&d.preventDefault(),!0}}function includesParams(d,b){for(const A in b){const w=b[A],C=d[A];if(typeof w=="string"){if(w!==C)return!1}else if(!isArray$8(C)||C.length!==w.length||w.some((x,S)=>x!==C[S]))return!1}return!0}function getOriginalPath(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const getLinkClass=(d,b,A)=>d!=null?d:b!=null?b:A,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:b,slots:A}){const w=inject(routerViewLocationKey),C=computed(()=>d.route||w.value),x=inject(viewDepthKey,0),S=computed(()=>{let B=unref(x);const{matched:k}=C.value;let $;for(;($=k[B])&&!$.components;)B++;return B}),E=computed(()=>C.value.matched[S.value]);provide(viewDepthKey,computed(()=>S.value+1)),provide(matchedRouteKey,E),provide(routerViewLocationKey,C);const P=ref();return watch(()=>[P.value,E.value,d.name],([B,k,$],[I,D,F])=>{k&&(k.instances[$]=B,D&&D!==k&&B&&B===I&&(k.leaveGuards.size||(k.leaveGuards=D.leaveGuards),k.updateGuards.size||(k.updateGuards=D.updateGuards))),B&&k&&(!D||!isSameRouteRecord(k,D)||!I)&&(k.enterCallbacks[$]||[]).forEach(z=>z(B))},{flush:"post"}),()=>{const B=C.value,k=d.name,$=E.value,I=$&&$.components[k];if(!I)return normalizeSlot(A.default,{Component:I,route:B});const D=$.props[k],F=D?D===!0?B.params:typeof D=="function"?D(B):D:null,L=h$1(I,assign$2({},F,b,{onVnodeUnmounted:H=>{H.component.isUnmounted&&($.instances[k]=null)},ref:P}));return normalizeSlot(A.default,{Component:L,route:B})||L}}});function normalizeSlot(d,b){if(!d)return null;const A=d(b);return A.length===1?A[0]:A}const RouterView=RouterViewImpl;function createRouter(d){const b=createRouterMatcher(d.routes,d),A=d.parseQuery||parseQuery,w=d.stringifyQuery||stringifyQuery,C=d.history,x=useCallbacks(),S=useCallbacks(),E=useCallbacks(),P=shallowRef(START_LOCATION_NORMALIZED);let B=START_LOCATION_NORMALIZED;isBrowser$3&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const k=applyToParams.bind(null,$e=>""+$e),$=applyToParams.bind(null,encodeParam),I=applyToParams.bind(null,decode$4);function D($e,ke){let Oe,Qe;return isRouteName($e)?(Oe=b.getRecordMatcher($e),Qe=ke):Qe=$e,b.addRoute(Qe,Oe)}function F($e){const ke=b.getRecordMatcher($e);ke&&b.removeRoute(ke)}function z(){return b.getRoutes().map($e=>$e.record)}function L($e){return!!b.getRecordMatcher($e)}function H($e,ke){if(ke=assign$2({},ke||P.value),typeof $e=="string"){const Te=parseURL(A,$e,ke.path),ee=b.resolve({path:Te.path},ke),se=C.createHref(Te.fullPath);return assign$2(Te,ee,{params:I(ee.params),hash:decode$4(Te.hash),redirectedFrom:void 0,href:se})}let Oe;if("path"in $e)Oe=assign$2({},$e,{path:parseURL(A,$e.path,ke.path).path});else{const Te=assign$2({},$e.params);for(const ee in Te)Te[ee]==null&&delete Te[ee];Oe=assign$2({},$e,{params:$(Te)}),ke.params=$(ke.params)}const Qe=b.resolve(Oe,ke),Je=$e.hash||"";Qe.params=k(I(Qe.params));const ve=stringifyURL(w,assign$2({},$e,{hash:encodeHash(Je),path:Qe.path})),ye=C.createHref(ve);return assign$2({fullPath:ve,hash:Je,query:w===stringifyQuery?normalizeQuery($e.query):$e.query||{}},Qe,{redirectedFrom:void 0,href:ye})}function Q($e){return typeof $e=="string"?parseURL(A,$e,P.value.path):assign$2({},$e)}function Y($e,ke){if(B!==$e)return createRouterError(8,{from:ke,to:$e})}function U($e){return K($e)}function G($e){return U(assign$2(Q($e),{replace:!0}))}function W($e){const ke=$e.matched[$e.matched.length-1];if(ke&&ke.redirect){const{redirect:Oe}=ke;let Qe=typeof Oe=="function"?Oe($e):Oe;return typeof Qe=="string"&&(Qe=Qe.includes("?")||Qe.includes("#")?Qe=Q(Qe):{path:Qe},Qe.params={}),assign$2({query:$e.query,hash:$e.hash,params:"path"in Qe?{}:$e.params},Qe)}}function K($e,ke){const Oe=B=H($e),Qe=P.value,Je=$e.state,ve=$e.force,ye=$e.replace===!0,Te=W(Oe);if(Te)return K(assign$2(Q(Te),{state:typeof Te=="object"?assign$2({},Je,Te.state):Je,force:ve,replace:ye}),ke||Oe);const ee=Oe;ee.redirectedFrom=ke;let se;return!ve&&isSameRouteLocation(w,Qe,Oe)&&(se=createRouterError(16,{to:ee,from:Qe}),Fe(Qe,Qe,!0,!1)),(se?Promise.resolve(se):oe(ee,Qe)).catch(ie=>isNavigationFailure(ie)?isNavigationFailure(ie,2)?ie:we(ie):fe(ie,ee,Qe)).then(ie=>{if(ie){if(isNavigationFailure(ie,2))return K(assign$2({replace:ye},Q(ie.to),{state:typeof ie.to=="object"?assign$2({},Je,ie.to.state):Je,force:ve}),ke||ee)}else ie=J(ee,Qe,!0,ye,Je);return he(ee,Qe,ie),ie})}function X($e,ke){const Oe=Y($e,ke);return Oe?Promise.reject(Oe):Promise.resolve()}function Z($e){const ke=ut.values().next().value;return ke&&typeof ke.runWithContext=="function"?ke.runWithContext($e):$e()}function oe($e,ke){let Oe;const[Qe,Je,ve]=extractChangingRecords($e,ke);Oe=extractComponentsGuards(Qe.reverse(),"beforeRouteLeave",$e,ke);for(const Te of Qe)Te.leaveGuards.forEach(ee=>{Oe.push(guardToPromiseFn(ee,$e,ke))});const ye=X.bind(null,$e,ke);return Oe.push(ye),it(Oe).then(()=>{Oe=[];for(const Te of x.list())Oe.push(guardToPromiseFn(Te,$e,ke));return Oe.push(ye),it(Oe)}).then(()=>{Oe=extractComponentsGuards(Je,"beforeRouteUpdate",$e,ke);for(const Te of Je)Te.updateGuards.forEach(ee=>{Oe.push(guardToPromiseFn(ee,$e,ke))});return Oe.push(ye),it(Oe)}).then(()=>{Oe=[];for(const Te of ve)if(Te.beforeEnter)if(isArray$8(Te.beforeEnter))for(const ee of Te.beforeEnter)Oe.push(guardToPromiseFn(ee,$e,ke));else Oe.push(guardToPromiseFn(Te.beforeEnter,$e,ke));return Oe.push(ye),it(Oe)}).then(()=>($e.matched.forEach(Te=>Te.enterCallbacks={}),Oe=extractComponentsGuards(ve,"beforeRouteEnter",$e,ke),Oe.push(ye),it(Oe))).then(()=>{Oe=[];for(const Te of S.list())Oe.push(guardToPromiseFn(Te,$e,ke));return Oe.push(ye),it(Oe)}).catch(Te=>isNavigationFailure(Te,8)?Te:Promise.reject(Te))}function he($e,ke,Oe){E.list().forEach(Qe=>Z(()=>Qe($e,ke,Oe)))}function J($e,ke,Oe,Qe,Je){const ve=Y($e,ke);if(ve)return ve;const ye=ke===START_LOCATION_NORMALIZED,Te=isBrowser$3?history.state:{};Oe&&(Qe||ye?C.replace($e.fullPath,assign$2({scroll:ye&&Te&&Te.scroll},Je)):C.push($e.fullPath,Je)),P.value=$e,Fe($e,ke,Oe,ye),we()}let le;function de(){le||(le=C.listen(($e,ke,Oe)=>{if(!dt.listening)return;const Qe=H($e),Je=W(Qe);if(Je){K(assign$2(Je,{replace:!0}),Qe).catch(noop$3);return}B=Qe;const ve=P.value;isBrowser$3&&saveScrollPosition(getScrollKey(ve.fullPath,Oe.delta),computeScrollPosition()),oe(Qe,ve).catch(ye=>isNavigationFailure(ye,12)?ye:isNavigationFailure(ye,2)?(K(ye.to,Qe).then(Te=>{isNavigationFailure(Te,20)&&!Oe.delta&&Oe.type===NavigationType.pop&&C.go(-1,!1)}).catch(noop$3),Promise.reject()):(Oe.delta&&C.go(-Oe.delta,!1),fe(ye,Qe,ve))).then(ye=>{ye=ye||J(Qe,ve,!1),ye&&(Oe.delta&&!isNavigationFailure(ye,8)?C.go(-Oe.delta,!1):Oe.type===NavigationType.pop&&isNavigationFailure(ye,20)&&C.go(-1,!1)),he(Qe,ve,ye)}).catch(noop$3)}))}let me=useCallbacks(),ne=useCallbacks(),re;function fe($e,ke,Oe){we($e);const Qe=ne.list();return Qe.length?Qe.forEach(Je=>Je($e,ke,Oe)):console.error($e),Promise.reject($e)}function ce(){return re&&P.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise(($e,ke)=>{me.add([$e,ke])})}function we($e){return re||(re=!$e,de(),me.list().forEach(([ke,Oe])=>$e?Oe($e):ke()),me.reset()),$e}function Fe($e,ke,Oe,Qe){const{scrollBehavior:Je}=d;if(!isBrowser$3||!Je)return Promise.resolve();const ve=!Oe&&getSavedScrollPosition(getScrollKey($e.fullPath,0))||(Qe||!Oe)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Je($e,ke,ve)).then(ye=>ye&&scrollToPosition(ye)).catch(ye=>fe(ye,$e,ke))}const Ke=$e=>C.go($e);let tt;const ut=new Set,dt={currentRoute:P,listening:!0,addRoute:D,removeRoute:F,hasRoute:L,getRoutes:z,resolve:H,options:d,push:U,replace:G,go:Ke,back:()=>Ke(-1),forward:()=>Ke(1),beforeEach:x.add,beforeResolve:S.add,afterEach:E.add,onError:ne.add,isReady:ce,install($e){const ke=this;$e.component("RouterLink",RouterLink),$e.component("RouterView",RouterView),$e.config.globalProperties.$router=ke,Object.defineProperty($e.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(P)}),isBrowser$3&&!tt&&P.value===START_LOCATION_NORMALIZED&&(tt=!0,U(C.location).catch(Je=>{}));const Oe={};for(const Je in START_LOCATION_NORMALIZED)Object.defineProperty(Oe,Je,{get:()=>P.value[Je],enumerable:!0});$e.provide(routerKey,ke),$e.provide(routeLocationKey,shallowReactive(Oe)),$e.provide(routerViewLocationKey,P);const Qe=$e.unmount;ut.add($e),$e.unmount=function(){ut.delete($e),ut.size<1&&(B=START_LOCATION_NORMALIZED,le&&le(),le=null,P.value=START_LOCATION_NORMALIZED,tt=!1,re=!1),Qe()}}};function it($e){return $e.reduce((ke,Oe)=>ke.then(()=>Z(Oe)),Promise.resolve())}return dt}function extractChangingRecords(d,b){const A=[],w=[],C=[],x=Math.max(b.matched.length,d.matched.length);for(let S=0;S<x;S++){const E=b.matched[S];E&&(d.matched.find(B=>isSameRouteRecord(B,E))?w.push(E):A.push(E));const P=d.matched[S];P&&(b.matched.find(B=>isSameRouteRecord(B,P))||C.push(P))}return[A,w,C]}function useRouter(){return inject(routerKey)}function useRoute$1(){return inject(routeLocationKey)}function noop$2(){}const extend$1=Object.assign,inBrowser$3=typeof window<"u",isObject$5=d=>d!==null&&typeof d=="object",isDef=d=>d!=null,isFunction$4=d=>typeof d=="function",isPromise=d=>isObject$5(d)&&isFunction$4(d.then)&&isFunction$4(d.catch),isNumeric=d=>typeof d=="number"||/^\d+(\.\d+)?$/.test(d),isIOS$1=()=>inBrowser$3?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get$1(d,b){const A=b.split(".");let w=d;return A.forEach(C=>{var x;w=isObject$5(w)&&(x=w[C])!=null?x:""}),w}function pick$1(d,b,A){return b.reduce((w,C)=>((!A||d[C]!==void 0)&&(w[C]=d[C]),w),{})}const unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeNumberProp=d=>({type:Number,default:d}),makeStringProp=d=>({type:String,default:d});var inBrowser$2=typeof window<"u",isWindow$1=d=>d===window,makeDOMRect=(d,b)=>({top:0,left:0,right:d,bottom:b,width:d,height:b}),useRect=d=>{const b=unref(d);if(isWindow$1(b)){const A=b.innerWidth,w=b.innerHeight;return makeDOMRect(A,w)}return b!=null&&b.getBoundingClientRect?b.getBoundingClientRect():makeDOMRect(0,0)};function useParent$1(d){const b=inject(d,null);if(b){const A=getCurrentInstance(),{link:w,unlink:C,internalChildren:x}=b;w(A),onUnmounted(()=>C(A));const S=computed(()=>x.indexOf(A));return{parent:b,index:S}}return{parent:null,index:ref(-1)}}function flattenVNodes(d){const b=[],A=w=>{Array.isArray(w)&&w.forEach(C=>{var x;isVNode(C)&&(b.push(C),(x=C.component)!=null&&x.subTree&&(b.push(C.component.subTree),A(C.component.subTree.children)),C.children&&A(C.children))})};return A(d),b}var findVNodeIndex=(d,b)=>{const A=d.indexOf(b);return A===-1?d.findIndex(w=>b.key!==void 0&&b.key!==null&&w.type===b.type&&w.key===b.key):A};function sortChildren(d,b,A){const w=flattenVNodes(d.subTree.children);A.sort((x,S)=>findVNodeIndex(w,x.vnode)-findVNodeIndex(w,S.vnode));const C=A.map(x=>x.proxy);b.sort((x,S)=>{const E=C.indexOf(x),P=C.indexOf(S);return E-P})}function useChildren$1(d){const b=reactive([]),A=reactive([]),w=getCurrentInstance();return{children:b,linkChildren:x=>{provide(d,Object.assign({link:P=>{P.proxy&&(A.push(P),b.push(P.proxy),sortChildren(w,b,A))},unlink:P=>{const B=A.indexOf(P);b.splice(B,1),A.splice(B,1)},children:b,internalChildren:A},x))}}}function onMountedOrActivated(d){let b;onMounted(()=>{d(),nextTick(()=>{b=!0})}),onActivated(()=>{b&&d()})}function useEventListener$2(d,b,A={}){if(!inBrowser$2)return;const{target:w=window,passive:C=!1,capture:x=!1}=A;let S=!1,E;const P=$=>{if(S)return;const I=unref($);I&&!E&&(I.addEventListener(d,b,{capture:x,passive:C}),E=!0)},B=$=>{if(S)return;const I=unref($);I&&E&&(I.removeEventListener(d,b,x),E=!1)};onUnmounted(()=>B(w)),onDeactivated(()=>B(w)),onMountedOrActivated(()=>P(w));let k;return isRef(w)&&(k=watch(w,($,I)=>{B(I),P($)})),()=>{k==null||k(),B(w),S=!0}}var width,height;function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser$2)){const d=()=>{width.value=window.innerWidth,height.value=window.innerHeight};d(),window.addEventListener("resize",d,{passive:!0}),window.addEventListener("orientationchange",d,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser$2?window:void 0;function isElement$2(d){return d.tagName!=="HTML"&&d.tagName!=="BODY"&&d.nodeType===1}function getScrollParent$1(d,b=defaultRoot){let A=d;for(;A&&A!==b&&isElement$2(A);){const{overflowY:w}=window.getComputedStyle(A);if(overflowScrollReg.test(w))return A;A=A.parentNode}return b}var visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser$2)){const d=()=>{visibility.value=document.hidden?"hidden":"visible"};d(),window.addEventListener("visibilitychange",d)}return visibility}isIOS$1();const stopPropagation=d=>d.stopPropagation();function preventDefault$1(d,b){(typeof d.cancelable!="boolean"||d.cancelable)&&d.preventDefault(),b&&stopPropagation(d)}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(d){if(isDef(d))return isNumeric(d)?"".concat(d,"px"):String(d)}function getSizeStyle(d){if(isDef(d)){if(Array.isArray(d))return{width:addUnit(d[0]),height:addUnit(d[1])};const b=addUnit(d);return{width:b,height:b}}}function getZIndexStyle(d){const b={};return d!==void 0&&(b.zIndex=+d),b}const camelizeRE=/-(\w)/g,camelize=d=>d.replace(camelizeRE,(b,A)=>A.toUpperCase()),{hasOwnProperty:hasOwnProperty$d}=Object.prototype;function assignKey(d,b,A){const w=b[A];isDef(w)&&(!hasOwnProperty$d.call(d,A)||!isObject$5(w)?d[A]=w:d[A]=deepAssign(Object(d[A]),w))}function deepAssign(d,b){return Object.keys(b).forEach(A=>{assignKey(d,b,A)}),d}var stdin_default$d={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(d,b)=>"".concat(d,"年").concat(b,"月"),rangePrompt:d=>"最多选择 ".concat(d," 天")},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:d=>"".concat(d,"折"),condition:d=>"满".concat(d,"元可用")},vanCouponCell:{title:"优惠券",count:d=>"".concat(d,"张可用")},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=ref("zh-CN"),messages=reactive({"zh-CN":stdin_default$d}),Locale={messages(){return messages[lang.value]},use(d,b){lang.value=d,this.add({[d]:b})},add(d={}){deepAssign(messages,d)}};var stdin_default$c=Locale;function createTranslate(d){const b=camelize(d)+".";return(A,...w)=>{const C=stdin_default$c.messages(),x=get$1(C,b+A)||get$1(C,A);return isFunction$4(x)?x(...w):x}}function genBem(d,b){return b?typeof b=="string"?" ".concat(d,"--").concat(b):Array.isArray(b)?b.reduce((A,w)=>A+genBem(d,w),""):Object.keys(b).reduce((A,w)=>A+(b[w]?genBem(d,w):""),""):""}function createBEM(d){return(b,A)=>(b&&typeof b!="string"&&(A=b,b=""),b=b?"".concat(d,"__").concat(b):d,"".concat(b).concat(genBem(b,A)))}function createNamespace$1(d){const b="van-".concat(d);return[b,createBEM(b),createTranslate(b)]}const BORDER="van-hairline",BORDER_TOP="".concat(BORDER,"--top"),BORDER_LEFT="".concat(BORDER,"--left"),BORDER_BOTTOM="".concat(BORDER,"--bottom"),BORDER_SURROUND="".concat(BORDER,"--surround"),HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(d,{args:b=[],done:A,canceled:w}){if(d){const C=d.apply(null,b);isPromise(C)?C.then(x=>{x?A():w&&w()}).catch(noop$2):C?A():w&&w()}else A()}function withInstall$1(d){return d.install=b=>{const{name:A}=d;A&&(b.component(A,d),b.component(camelize("-".concat(A)),d))},d}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(d){const b=inject(POPUP_TOGGLE_KEY,null);b&&watch(b,A=>{A&&d()})}const useHeight=(d,b)=>{const A=ref(),w=()=>{A.value=useRect(d).height};return onMounted(()=>{if(nextTick(w),b)for(let C=1;C<=3;C++)setTimeout(w,100*C)}),onPopupReopen(()=>nextTick(w)),watch([windowWidth,windowHeight],w),A};function usePlaceholder(d,b){const A=useHeight(d,!0);return w=>createVNode("div",{class:b("placeholder"),style:{height:A.value?"".concat(A.value,"px"):void 0}},[w()])}const[name$c,bem$c]=createNamespace$1("action-bar"),ACTION_BAR_KEY=Symbol(name$c),actionBarProps={placeholder:Boolean,safeAreaInsetBottom:truthProp};var stdin_default$b=defineComponent({name:name$c,props:actionBarProps,setup(d,{slots:b}){const A=ref(),w=usePlaceholder(A,bem$c),{linkChildren:C}=useChildren$1(ACTION_BAR_KEY);C();const x=()=>{var S;return createVNode("div",{ref:A,class:[bem$c(),{"van-safe-area-bottom":d.safeAreaInsetBottom}]},[(S=b.default)==null?void 0:S.call(b)])};return()=>d.placeholder?w(x):x()}});const ActionBar=withInstall$1(stdin_default$b);function useExpose(d){const b=getCurrentInstance();b&&extend$1(b.proxy,d)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:d,url:b,replace:A,$router:w}){d&&w?w[A?"replace":"push"](d):b&&(A?location.replace(b):location.href=b)}function useRoute(){const d=getCurrentInstance().proxy;return()=>route(d)}const[name$b,bem$b]=createNamespace$1("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$a=defineComponent({name:name$b,props:badgeProps,setup(d,{slots:b}){const A=()=>{if(b.content)return!0;const{content:E,showZero:P}=d;return isDef(E)&&E!==""&&(P||E!==0&&E!=="0")},w=()=>{const{dot:E,max:P,content:B}=d;if(!E&&A())return b.content?b.content():isDef(P)&&isNumeric(B)&&+B>+P?"".concat(P,"+"):B},C=E=>E.startsWith("-")?E.replace("-",""):"-".concat(E),x=computed(()=>{const E={background:d.color};if(d.offset){const[P,B]=d.offset,{position:k}=d,[$,I]=k.split("-");b.default?(typeof B=="number"?E[$]=addUnit($==="top"?B:-B):E[$]=$==="top"?addUnit(B):C(B),typeof P=="number"?E[I]=addUnit(I==="left"?P:-P):E[I]=I==="left"?addUnit(P):C(P)):(E.marginTop=addUnit(B),E.marginLeft=addUnit(P))}return E}),S=()=>{if(A()||d.dot)return createVNode("div",{class:bem$b([d.position,{dot:d.dot,fixed:!!b.default}]),style:x.value},[w()])};return()=>{if(b.default){const{tag:E}=d;return createVNode(E,{class:bem$b("wrapper")},{default:()=>[b.default(),S()]})}return S()}}});const Badge=withInstall$1(stdin_default$a);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,[name$a,bem$a]=createNamespace$1("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$a),[name$9,bem$9]=createNamespace$1("icon"),isImage=d=>d==null?void 0:d.includes("/"),iconProps$1={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$9=defineComponent({name:name$9,props:iconProps$1,setup(d,{slots:b}){const A=inject(CONFIG_PROVIDER_KEY,null),w=computed(()=>d.classPrefix||(A==null?void 0:A.iconPrefix)||bem$9());return()=>{const{tag:C,dot:x,name:S,size:E,badge:P,color:B}=d,k=isImage(S);return createVNode(Badge,mergeProps({dot:x,tag:C,class:[w.value,k?"":"".concat(w.value,"-").concat(S)],style:{color:B,fontSize:addUnit(E)},content:P},d.badgeProps),{default:()=>{var $;return[($=b.default)==null?void 0:$.call(b),k&&createVNode("img",{class:bem$9("image"),src:S},null)]}})}}});const Icon$1=withInstall$1(stdin_default$9),[name$8,bem$8]=createNamespace$1("loading"),SpinIcon=Array(12).fill(null).map((d,b)=>createVNode("i",{class:bem$8("line",String(b+1))},null)),CircularIcon=createVNode("svg",{class:bem$8("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$8=defineComponent({name:name$8,props:loadingProps,setup(d,{slots:b}){const A=computed(()=>extend$1({color:d.color},getSizeStyle(d.size))),w=()=>{const x=d.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$8("spinner",d.type),style:A.value},[b.icon?b.icon():x])},C=()=>{var x;if(b.default)return createVNode("span",{class:bem$8("text"),style:{fontSize:addUnit(d.textSize),color:(x=d.textColor)!=null?x:d.color}},[b.default()])};return()=>{const{type:x,vertical:S}=d;return createVNode("div",{class:bem$8([x,{vertical:S}]),"aria-live":"polite","aria-busy":!0},[w(),C()])}}});const Loading=withInstall$1(stdin_default$8),[name$7,bem$7]=createNamespace$1("button"),buttonProps$1=extend$1({},routeProps,{tag:makeStringProp("button"),text:String,icon:String,type:makeStringProp("default"),size:makeStringProp("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:makeStringProp("button"),loadingSize:numericProp,loadingText:String,loadingType:String,iconPosition:makeStringProp("left")});var stdin_default$7=defineComponent({name:name$7,props:buttonProps$1,emits:["click"],setup(d,{emit:b,slots:A}){const w=useRoute(),C=()=>A.loading?A.loading():createVNode(Loading,{size:d.loadingSize,type:d.loadingType,class:bem$7("loading")},null),x=()=>{if(d.loading)return C();if(A.icon)return createVNode("div",{class:bem$7("icon")},[A.icon()]);if(d.icon)return createVNode(Icon$1,{name:d.icon,class:bem$7("icon"),classPrefix:d.iconPrefix},null)},S=()=>{let B;if(d.loading?B=d.loadingText:B=A.default?A.default():d.text,B)return createVNode("span",{class:bem$7("text")},[B])},E=()=>{const{color:B,plain:k}=d;if(B){const $={color:k?B:"white"};return k||($.background=B),B.includes("gradient")?$.border=0:$.borderColor=B,$}},P=B=>{d.loading?preventDefault$1(B):d.disabled||(b("click",B),w())};return()=>{const{tag:B,type:k,size:$,block:I,round:D,plain:F,square:z,loading:L,disabled:H,hairline:Q,nativeType:Y,iconPosition:U}=d,G=[bem$7([k,$,{plain:F,block:I,round:D,square:z,loading:L,disabled:H,hairline:Q}]),{[BORDER_SURROUND]:Q}];return createVNode(B,{type:Y,class:G,style:E(),disabled:H,onClick:P},{default:()=>[createVNode("div",{class:bem$7("content")},[U==="left"&&x(),S(),U==="right"&&x()])]})}}});const Button$1=withInstall$1(stdin_default$7),[name$6,bem$6]=createNamespace$1("action-bar-button"),actionBarButtonProps=extend$1({},routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var stdin_default$6=defineComponent({name:name$6,props:actionBarButtonProps,setup(d,{slots:b}){const A=useRoute(),{parent:w,index:C}=useParent$1(ACTION_BAR_KEY),x=computed(()=>{if(w){const E=w.children[C.value-1];return!(E&&"isButton"in E)}}),S=computed(()=>{if(w){const E=w.children[C.value+1];return!(E&&"isButton"in E)}});return useExpose({isButton:!0}),()=>{const{type:E,icon:P,text:B,color:k,loading:$,disabled:I}=d;return createVNode(Button$1,{class:bem$6([E,{last:S.value,first:x.value}]),size:"large",type:E,icon:P,color:k,loading:$,disabled:I,onClick:A},{default:()=>[b.default?b.default():B]})}}});const ActionBarButton=withInstall$1(stdin_default$6),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp},popupSharedPropKeys=Object.keys(popupSharedProps);function getDirection(d,b){return d>b?"horizontal":b>d?"vertical":""}function useTouch(){const d=ref(0),b=ref(0),A=ref(0),w=ref(0),C=ref(0),x=ref(0),S=ref(""),E=ref(!0),P=()=>S.value==="vertical",B=()=>S.value==="horizontal",k=()=>{A.value=0,w.value=0,C.value=0,x.value=0,S.value="",E.value=!0};return{move:D=>{const F=D.touches[0];A.value=(F.clientX<0?0:F.clientX)-d.value,w.value=F.clientY-b.value,C.value=Math.abs(A.value),x.value=Math.abs(w.value);const z=10;(!S.value||C.value<z&&x.value<z)&&(S.value=getDirection(C.value,x.value)),E.value&&(C.value>TAP_OFFSET||x.value>TAP_OFFSET)&&(E.value=!1)},start:D=>{k(),d.value=D.touches[0].clientX,b.value=D.touches[0].clientY},reset:k,startX:d,startY:b,deltaX:A,deltaY:w,offsetX:C,offsetY:x,direction:S,isVertical:P,isHorizontal:B,isTap:E}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(d,b){const A=useTouch(),w="01",C="10",x=k=>{A.move(k);const $=A.deltaY.value>0?C:w,I=getScrollParent$1(k.target,d.value),{scrollHeight:D,offsetHeight:F,scrollTop:z}=I;let L="11";z===0?L=F>=D?"00":"01":z+F>=D&&(L="10"),L!=="11"&&A.isVertical()&&!(parseInt(L,2)&parseInt($,2))&&preventDefault$1(k,!0)},S=()=>{document.addEventListener("touchstart",A.start),document.addEventListener("touchmove",x,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},E=()=>{totalLockCount&&(document.removeEventListener("touchstart",A.start),document.removeEventListener("touchmove",x),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},P=()=>b()&&S(),B=()=>b()&&E();onMountedOrActivated(P),onDeactivated(B),onBeforeUnmount(B),watch(b,k=>{k?S():E()})}function useLazyRender(d){const b=ref(!1);return watch(d,A=>{A&&(b.value=A)},{immediate:!0}),A=>()=>b.value?A():null}const[name$5,bem$5]=createNamespace$1("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object};var stdin_default$5=defineComponent({name:name$5,props:overlayProps,setup(d,{slots:b}){const A=ref(),w=useLazyRender(()=>d.show||!d.lazyRender),C=S=>{d.lockScroll&&preventDefault$1(S,!0)},x=w(()=>{var S;const E=extend$1(getZIndexStyle(d.zIndex),d.customStyle);return isDef(d.duration)&&(E.animationDuration="".concat(d.duration,"s")),withDirectives(createVNode("div",{ref:A,style:E,class:[bem$5(),d.className]},[(S=b.default)==null?void 0:S.call(b)]),[[vShow,d.show]])});return useEventListener$2("touchmove",C,{target:A}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:x})}});const Overlay=withInstall$1(stdin_default$5),popupProps=extend$1({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$4,bem$4]=createNamespace$1("popup");var stdin_default$4=defineComponent({name:name$4,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(d,{emit:b,attrs:A,slots:w}){let C,x;const S=ref(),E=ref(),P=useLazyRender(()=>d.show||!d.lazyRender),B=computed(()=>{const W={zIndex:S.value};if(isDef(d.duration)){const K=d.position==="center"?"animationDuration":"transitionDuration";W[K]="".concat(d.duration,"s")}return W}),k=()=>{C||(C=!0,S.value=d.zIndex!==void 0?+d.zIndex:useGlobalZIndex(),b("open"))},$=()=>{C&&callInterceptor(d.beforeClose,{done(){C=!1,b("close"),b("update:show",!1)}})},I=W=>{b("clickOverlay",W),d.closeOnClickOverlay&&$()},D=()=>{if(d.overlay)return createVNode(Overlay,{show:d.show,class:d.overlayClass,zIndex:S.value,duration:d.duration,customStyle:d.overlayStyle,role:d.closeOnClickOverlay?"button":void 0,tabindex:d.closeOnClickOverlay?0:void 0,onClick:I},{default:w["overlay-content"]})},F=W=>{b("clickCloseIcon",W),$()},z=()=>{if(d.closeable)return createVNode(Icon$1,{role:"button",tabindex:0,name:d.closeIcon,class:[bem$4("close-icon",d.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:d.iconPrefix,onClick:F},null)};let L;const H=()=>{L&&clearTimeout(L),L=setTimeout(()=>{b("opened")})},Q=()=>b("closed"),Y=W=>b("keydown",W),U=P(()=>{var W;const{round:K,position:X,safeAreaInsetTop:Z,safeAreaInsetBottom:oe}=d;return withDirectives(createVNode("div",mergeProps({ref:E,style:B.value,role:"dialog",tabindex:0,class:[bem$4({round:K,[X]:X}),{"van-safe-area-top":Z,"van-safe-area-bottom":oe}],onKeydown:Y},A),[(W=w.default)==null?void 0:W.call(w),z()]),[[vShow,d.show]])}),G=()=>{const{position:W,transition:K,transitionAppear:X}=d,Z=W==="center"?"van-fade":"van-popup-slide-".concat(W);return createVNode(Transition,{name:K||Z,appear:X,onAfterEnter:H,onAfterLeave:Q},{default:U})};return watch(()=>d.show,W=>{W&&!C&&(k(),A.tabindex===0&&nextTick(()=>{var K;(K=E.value)==null||K.focus()})),!W&&C&&(C=!1,b("close"))}),useExpose({popupRef:E}),useLockScroll(E,()=>d.show&&d.lockScroll),useEventListener$2("popstate",()=>{d.closeOnPopstate&&($(),x=!1)}),onMounted(()=>{d.show&&k()}),onActivated(()=>{x&&(b("update:show",!0),x=!1)}),onDeactivated(()=>{d.show&&d.teleport&&($(),x=!0)}),provide(POPUP_TOGGLE_KEY,()=>d.show),()=>d.teleport?createVNode(Teleport,{to:d.teleport},{default:()=>[D(),G()]}):createVNode(Fragment,null,[D(),G()])}});const Popup=withInstall$1(stdin_default$4);let current=0;function useId(){const d=getCurrentInstance(),{name:b="unknown"}=(d==null?void 0:d.type)||{};return"".concat(b,"-").concat(++current)}let lockCount$1=0;function lockClick(d){d?(lockCount$1||document.body.classList.add("van-toast--unclickable"),lockCount$1++):lockCount$1&&(lockCount$1--,lockCount$1||document.body.classList.remove("van-toast--unclickable"))}const[name$3,bem$3]=createNamespace$1("toast"),popupInheritProps=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],toastProps={icon:String,show:Boolean,type:makeStringProp("text"),overlay:Boolean,message:numericProp,iconSize:numericProp,duration:makeNumberProp(2e3),position:makeStringProp("middle"),teleport:[String,Object],wordBreak:String,className:unknownProp,iconPrefix:String,transition:makeStringProp("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var stdin_default$3=defineComponent({name:name$3,props:toastProps,emits:["update:show"],setup(d,{emit:b,slots:A}){let w,C=!1;const x=()=>{const $=d.show&&d.forbidClick;C!==$&&(C=$,lockClick(C))},S=$=>b("update:show",$),E=()=>{d.closeOnClick&&S(!1)},P=()=>clearTimeout(w),B=()=>{const{icon:$,type:I,iconSize:D,iconPrefix:F,loadingType:z}=d;if($||I==="success"||I==="fail")return createVNode(Icon$1,{name:$||I,size:D,class:bem$3("icon"),classPrefix:F},null);if(I==="loading")return createVNode(Loading,{class:bem$3("loading"),size:D,type:z},null)},k=()=>{const{type:$,message:I}=d;if(A.message)return createVNode("div",{class:bem$3("text")},[A.message()]);if(isDef(I)&&I!=="")return $==="html"?createVNode("div",{key:0,class:bem$3("text"),innerHTML:String(I)},null):createVNode("div",{class:bem$3("text")},[I])};return watch(()=>[d.show,d.forbidClick],x),watch(()=>[d.show,d.type,d.message,d.duration],()=>{P(),d.show&&d.duration>0&&(w=setTimeout(()=>{S(!1)},d.duration))}),onMounted(x),onUnmounted(x),()=>createVNode(Popup,mergeProps({class:[bem$3([d.position,d.wordBreak==="normal"?"break-normal":d.wordBreak,{[d.type]:!d.icon}]),d.className],lockScroll:!1,onClick:E,onClosed:P,"onUpdate:show":S},pick$1(d,popupInheritProps)),{default:()=>[B(),k()]})}});function usePopupState(){const d=reactive({show:!1}),b=C=>{d.show=C},A=C=>{extend$1(d,C,{transitionAppear:!0}),b(!0)},w=()=>b(!1);return useExpose({open:A,close:w,toggle:b}),{open:A,close:w,state:d,toggle:b}}function mountComponent(d){const b=createApp(d),A=document.createElement("div");return document.body.appendChild(A),{instance:b.mount(A),unmount(){b.unmount(),document.body.removeChild(A)}}}const defaultOptions={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let queue$1=[],allowMultiple=!1,currentOptions$1=extend$1({},defaultOptions);const defaultOptionsMap=new Map;function parseOptions(d){return isObject$5(d)?d:{message:d}}function createInstance(){const{instance:d,unmount:b}=mountComponent({setup(){const A=ref(""),{open:w,state:C,close:x,toggle:S}=usePopupState(),E=()=>{},P=()=>createVNode(stdin_default$3,mergeProps(C,{onClosed:E,"onUpdate:show":S}),null);return watch(A,B=>{C.message=B}),getCurrentInstance().render=P,{open:w,close:x,message:A}}});return d}function getInstance(){if(!queue$1.length||allowMultiple){const d=createInstance();queue$1.push(d)}return queue$1[queue$1.length-1]}function showToast(d={}){if(!inBrowser$3)return{};const b=getInstance(),A=parseOptions(d);return b.open(extend$1({},currentOptions$1,defaultOptionsMap.get(A.type||currentOptions$1.type),A)),b}withInstall$1(stdin_default$3);const[name$2,bem$2]=createNamespace$1("empty"),emptyProps$1={image:makeStringProp("default"),imageSize:[Number,String,Array],description:String};var stdin_default$2=defineComponent({name:name$2,props:emptyProps$1,setup(d,{slots:b}){const A=()=>{const H=b.description?b.description():d.description;if(H)return createVNode("p",{class:bem$2("description")},[H])},w=()=>{if(b.default)return createVNode("div",{class:bem$2("bottom")},[b.default()])},C=useId(),x=H=>"".concat(C,"-").concat(H),S=H=>"url(#".concat(x(H),")"),E=(H,Q,Y)=>createVNode("stop",{"stop-color":H,offset:"".concat(Q,"%"),"stop-opacity":Y},null),P=(H,Q)=>[E(H,0),E(Q,100)],B=H=>[createVNode("defs",null,[createVNode("radialGradient",{id:x(H),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[E("#EBEDF0",0),E("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:S(H),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],k=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:x("a"),x1:"64%",y1:"100%",x2:"64%"},[E("#FFF",0,.5),E("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:S("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:S("a")},null)])],$=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:x("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[E("#F2F3F5",0,.3),E("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:S("b")},null),createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:S("b")},null)])],I=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:x(1),x1:"64%",y1:"100%",x2:"64%"},[E("#FFF",0,.5),E("#F2F3F5",100)]),createVNode("linearGradient",{id:x(2),x1:"50%",x2:"50%",y2:"84%"},[E("#EBEDF0",0),E("#DCDEE0",100,0)]),createVNode("linearGradient",{id:x(3),x1:"100%",x2:"100%",y2:"100%"},[P("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:x(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[E("#EBEDF0",0),E("#FFF",100,0)])]),createVNode("g",{fill:"none"},[k(),createVNode("path",{fill:S(4),d:"M0 139h160v21H0z"},null),createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:S(2)},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:S(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:S(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:S(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:S(3)},null)]),createVNode("g",{transform:"translate(31 105)"},[createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),D=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(5)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:x(6)},[P("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:x(7)},[P("#EAEDF1","#DCDEE0")])]),k(),$(),createVNode("g",{transform:"translate(36 50)",fill:"none"},[createVNode("g",{transform:"translate(8)"},[createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),createVNode("rect",{fill:S(5),width:"64",height:"66",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),createVNode("g",{transform:"translate(15 17)",fill:S(6)},[createVNode("rect",{width:"34",height:"6",rx:"1"},null),createVNode("path",{d:"M0 14h34v6H0z"},null),createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),createVNode("rect",{fill:S(7),y:"61",width:"88",height:"28",rx:"1"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),F=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(8)},[P("#EAEDF1","#DCDEE0")])]),k(),$(),B("c"),createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:S(8)},null)]),z=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:x(9)},[P("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:x(10)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(11)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(12)},[P("#FFF","#F7F8FA")])]),k(),$(),B("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[createVNode("rect",{fill:S(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:S(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:S(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:S(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:S(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),L=()=>{var H;if(b.image)return b.image();const Q={error:F,search:z,network:I,default:D};return((H=Q[d.image])==null?void 0:H.call(Q))||createVNode("img",{src:d.image},null)};return()=>createVNode("div",{class:bem$2()},[createVNode("div",{class:bem$2("image"),style:getSizeStyle(d.imageSize)},[L()]),A(),w()])}});const Empty=withInstall$1(stdin_default$2),[name$1,bem$1,t$1]=createNamespace$1("dialog"),dialogProps$1=extend$1({},popupSharedProps,{title:String,theme:String,width:numericProp,message:[String,Function],callback:Function,allowHtml:Boolean,className:unknownProp,transition:makeStringProp("van-dialog-bounce"),messageAlign:String,closeOnPopstate:truthProp,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:truthProp,closeOnClickOverlay:Boolean}),popupInheritKeys=[...popupSharedPropKeys,"transition","closeOnPopstate"];var stdin_default$1=defineComponent({name:name$1,props:dialogProps$1,emits:["confirm","cancel","keydown","update:show"],setup(d,{emit:b,slots:A}){const w=ref(),C=reactive({confirm:!1,cancel:!1}),x=H=>b("update:show",H),S=H=>{var Q;x(!1),(Q=d.callback)==null||Q.call(d,H)},E=H=>()=>{d.show&&(b(H),d.beforeClose?(C[H]=!0,callInterceptor(d.beforeClose,{args:[H],done(){S(H),C[H]=!1},canceled(){C[H]=!1}})):S(H))},P=E("cancel"),B=E("confirm"),k=withKeys(H=>{var Q,Y;if(H.target!==((Y=(Q=w.value)==null?void 0:Q.popupRef)==null?void 0:Y.value))return;({Enter:d.showConfirmButton?B:noop$2,Escape:d.showCancelButton?P:noop$2})[H.key](),b("keydown",H)},["enter","esc"]),$=()=>{const H=A.title?A.title():d.title;if(H)return createVNode("div",{class:bem$1("header",{isolated:!d.message&&!A.default})},[H])},I=H=>{const{message:Q,allowHtml:Y,messageAlign:U}=d,G=bem$1("message",{"has-title":H,[U]:U}),W=isFunction$4(Q)?Q():Q;return Y&&typeof W=="string"?createVNode("div",{class:G,innerHTML:W},null):createVNode("div",{class:G},[W])},D=()=>{if(A.default)return createVNode("div",{class:bem$1("content")},[A.default()]);const{title:H,message:Q,allowHtml:Y}=d;if(Q){const U=!!(H||A.title);return createVNode("div",{key:Y?1:0,class:bem$1("content",{isolated:!U})},[I(U)])}},F=()=>createVNode("div",{class:[BORDER_TOP,bem$1("footer")]},[d.showCancelButton&&createVNode(Button$1,{size:"large",text:d.cancelButtonText||t$1("cancel"),class:bem$1("cancel"),style:{color:d.cancelButtonColor},loading:C.cancel,disabled:d.cancelButtonDisabled,onClick:P},null),d.showConfirmButton&&createVNode(Button$1,{size:"large",text:d.confirmButtonText||t$1("confirm"),class:[bem$1("confirm"),{[BORDER_LEFT]:d.showCancelButton}],style:{color:d.confirmButtonColor},loading:C.confirm,disabled:d.confirmButtonDisabled,onClick:B},null)]),z=()=>createVNode(ActionBar,{class:bem$1("footer")},{default:()=>[d.showCancelButton&&createVNode(ActionBarButton,{type:"warning",text:d.cancelButtonText||t$1("cancel"),class:bem$1("cancel"),color:d.cancelButtonColor,loading:C.cancel,disabled:d.cancelButtonDisabled,onClick:P},null),d.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:d.confirmButtonText||t$1("confirm"),class:bem$1("confirm"),color:d.confirmButtonColor,loading:C.confirm,disabled:d.confirmButtonDisabled,onClick:B},null)]}),L=()=>A.footer?A.footer():d.theme==="round-button"?z():F();return()=>{const{width:H,title:Q,theme:Y,message:U,className:G}=d;return createVNode(Popup,mergeProps({ref:w,role:"dialog",class:[bem$1([Y]),G],style:{width:addUnit(H)},tabindex:0,"aria-labelledby":Q||U,onKeydown:k,"onUpdate:show":x},pick$1(d,popupInheritKeys)),{default:()=>[$(),D(),L()]})}}});let instance;const DEFAULT_OPTIONS={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1};let currentOptions=extend$1({},DEFAULT_OPTIONS);function initInstance(){({instance}=mountComponent({setup(){const{state:b,toggle:A}=usePopupState();return()=>createVNode(stdin_default$1,mergeProps(b,{"onUpdate:show":A}),null)}}))}function showDialog(d){return inBrowser$3?new Promise((b,A)=>{instance||initInstance(),instance.open(extend$1({},currentOptions,d,{callback:w=>{(w==="confirm"?b:A)(w)}}))}):Promise.resolve()}const showConfirmDialog=d=>showDialog(extend$1({showCancelButton:!0},d));withInstall$1(stdin_default$1);const[name,bem]=createNamespace$1("nav-bar"),navBarProps={title:String,fixed:Boolean,zIndex:numericProp,border:truthProp,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:truthProp};var stdin_default=defineComponent({name,props:navBarProps,emits:["clickLeft","clickRight"],setup(d,{emit:b,slots:A}){const w=ref(),C=usePlaceholder(w,bem),x=k=>b("clickLeft",k),S=k=>b("clickRight",k),E=()=>A.left?A.left():[d.leftArrow&&createVNode(Icon$1,{class:bem("arrow"),name:"arrow-left"},null),d.leftText&&createVNode("span",{class:bem("text")},[d.leftText])],P=()=>A.right?A.right():createVNode("span",{class:bem("text")},[d.rightText]),B=()=>{const{title:k,fixed:$,border:I,zIndex:D}=d,F=getZIndexStyle(D),z=d.leftArrow||d.leftText||A.left,L=d.rightText||A.right;return createVNode("div",{ref:w,style:F,class:[bem({fixed:$}),{[BORDER_BOTTOM]:I,"van-safe-area-top":d.safeAreaInsetTop}]},[createVNode("div",{class:bem("content")},[z&&createVNode("div",{class:[bem("left"),d.clickable?HAPTICS_FEEDBACK:""],onClick:x},[E()]),createVNode("div",{class:[bem("title"),"van-ellipsis"]},[A.title?A.title():k]),L&&createVNode("div",{class:[bem("right"),d.clickable?HAPTICS_FEEDBACK:""],onClick:S},[P()])])])};return()=>d.fixed&&d.placeholder?C(B):B()}});const NavBar=withInstall$1(stdin_default),TheError=defineComponent({name:"The-error",setup(d,b){return()=>createVNode("div",null,[createVNode(NavBar,{leftArrow:!0,onClickLeft:()=>{}},null),createVNode(Empty,{image:"error",description:"网络开小差,请稍后重试"},{default:()=>[createVNode(Button$1,{type:"primary",size:"small",onClick:()=>history.go(0)},{default:()=>[createTextVNode("重新加载")]})]})])}}),storeData=reactive({status:"init",user:{},platformType:"TEACHER",platformApi:"/edu-app",proxy:"",isApp:!1}),setUserInfo=d=>{storeData.status="login",storeData.user=d||{}},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(d,b){try{return[decodeURIComponent(d.join(""))]}catch(C){}if(d.length===1)return d;b=b||1;const A=d.slice(0,b),w=d.slice(b);return Array.prototype.concat.call([],decodeComponents(A),decodeComponents(w))}function decode$3(d){try{return decodeURIComponent(d)}catch(b){let A=d.match(singleMatcher)||[];for(let w=1;w<A.length;w++)d=decodeComponents(A,w).join(""),A=d.match(singleMatcher)||[];return d}}function customDecodeURIComponent(d){const b={"%FE%FF":"��","%FF%FE":"��"};let A=multiMatcher.exec(d);for(;A;){try{b[A[0]]=decodeURIComponent(A[0])}catch(C){const x=decode$3(A[0]);x!==A[0]&&(b[A[0]]=x)}A=multiMatcher.exec(d)}b["%C2"]="�";const w=Object.keys(b);for(const C of w)d=d.replace(new RegExp(C,"g"),b[C]);return d}function decodeUriComponent(d){if(typeof d!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof d+"`");try{return decodeURIComponent(d)}catch(b){return customDecodeURIComponent(d)}}function splitOnFirst(d,b){if(!(typeof d=="string"&&typeof b=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(d===""||b==="")return[];const A=d.indexOf(b);return A===-1?[]:[d.slice(0,A),d.slice(A+b.length)]}function includeKeys(d,b){const A={};if(Array.isArray(b))for(const w of b){const C=Object.getOwnPropertyDescriptor(d,w);C!=null&&C.enumerable&&Object.defineProperty(A,w,C)}else for(const w of Reflect.ownKeys(d)){const C=Object.getOwnPropertyDescriptor(d,w);if(C.enumerable){const x=d[w];b(w,x,d)&&Object.defineProperty(A,w,C)}}return A}const isNullOrUndefined=d=>d==null,strictUriEncode=d=>encodeURIComponent(d).replace(/[!'()*]/g,b=>"%".concat(b.charCodeAt(0).toString(16).toUpperCase())),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(d){switch(d.arrayFormat){case"index":return b=>(A,w)=>{const C=A.length;return w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?A:w===null?[...A,[encode$1(b,d),"[",C,"]"].join("")]:[...A,[encode$1(b,d),"[",encode$1(C,d),"]=",encode$1(w,d)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?A:w===null?[...A,[encode$1(b,d),"[]"].join("")]:[...A,[encode$1(b,d),"[]=",encode$1(w,d)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?A:w===null?[...A,[encode$1(b,d),":list="].join("")]:[...A,[encode$1(b,d),":list=",encode$1(w,d)].join("")];case"comma":case"separator":case"bracket-separator":{const b=d.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?w:(C=C===null?"":C,w.length===0?[[encode$1(A,d),b,encode$1(C,d)].join("")]:[[w,encode$1(C,d)].join(d.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?A:w===null?[...A,encode$1(b,d)]:[...A,[encode$1(b,d),"=",encode$1(w,d)].join("")]}}function parserForArrayFormat(d){let b;switch(d.arrayFormat){case"index":return(A,w,C)=>{if(b=/\[(\d*)]$/.exec(A),A=A.replace(/\[\d*]$/,""),!b){C[A]=w;return}C[A]===void 0&&(C[A]={}),C[A][b[1]]=w};case"bracket":return(A,w,C)=>{if(b=/(\[])$/.exec(A),A=A.replace(/\[]$/,""),!b){C[A]=w;return}if(C[A]===void 0){C[A]=[w];return}C[A]=[...C[A],w]};case"colon-list-separator":return(A,w,C)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){C[A]=w;return}if(C[A]===void 0){C[A]=[w];return}C[A]=[...C[A],w]};case"comma":case"separator":return(A,w,C)=>{const x=typeof w=="string"&&w.includes(d.arrayFormatSeparator),S=typeof w=="string"&&!x&&decode$2(w,d).includes(d.arrayFormatSeparator);w=S?decode$2(w,d):w;const E=x||S?w.split(d.arrayFormatSeparator).map(P=>decode$2(P,d)):w===null?w:decode$2(w,d);C[A]=E};case"bracket-separator":return(A,w,C)=>{const x=/(\[])$/.test(A);if(A=A.replace(/\[]$/,""),!x){C[A]=w&&decode$2(w,d);return}const S=w===null?[]:w.split(d.arrayFormatSeparator).map(E=>decode$2(E,d));if(C[A]===void 0){C[A]=S;return}C[A]=[...C[A],...S]};default:return(A,w,C)=>{if(C[A]===void 0){C[A]=w;return}C[A]=[...[C[A]].flat(),w]}}}function validateArrayFormatSeparator(d){if(typeof d!="string"||d.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$1(d,b){return b.encode?b.strict?strictUriEncode(d):encodeURIComponent(d):d}function decode$2(d,b){return b.decode?decodeUriComponent(d):d}function keysSorter(d){return Array.isArray(d)?d.sort():typeof d=="object"?keysSorter(Object.keys(d)).sort((b,A)=>Number(b)-Number(A)).map(b=>d[b]):d}function removeHash(d){const b=d.indexOf("#");return b!==-1&&(d=d.slice(0,b)),d}function getHash(d){let b="";const A=d.indexOf("#");return A!==-1&&(b=d.slice(A)),b}function parseValue(d,b){return b.parseNumbers&&!Number.isNaN(Number(d))&&typeof d=="string"&&d.trim()!==""?d=Number(d):b.parseBooleans&&d!==null&&(d.toLowerCase()==="true"||d.toLowerCase()==="false")&&(d=d.toLowerCase()==="true"),d}function extract(d){d=removeHash(d);const b=d.indexOf("?");return b===-1?"":d.slice(b+1)}function parse$3(d,b){b={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...b},validateArrayFormatSeparator(b.arrayFormatSeparator);const A=parserForArrayFormat(b),w=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return w;for(const C of d.split("&")){if(C==="")continue;const x=b.decode?C.replace(/\+/g," "):C;let[S,E]=splitOnFirst(x,"=");S===void 0&&(S=x),E=E===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?E:decode$2(E,b),A(decode$2(S,b),E,w)}for(const[C,x]of Object.entries(w))if(typeof x=="object"&&x!==null)for(const[S,E]of Object.entries(x))x[S]=parseValue(E,b);else w[C]=parseValue(x,b);return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((C,x)=>{const S=w[x];return S&&typeof S=="object"&&!Array.isArray(S)?C[x]=keysSorter(S):C[x]=S,C},Object.create(null))}function stringify$2(d,b){if(!d)return"";b={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...b},validateArrayFormatSeparator(b.arrayFormatSeparator);const A=S=>b.skipNull&&isNullOrUndefined(d[S])||b.skipEmptyString&&d[S]==="",w=encoderForArrayFormat(b),C={};for(const[S,E]of Object.entries(d))A(S)||(C[S]=E);const x=Object.keys(C);return b.sort!==!1&&x.sort(b.sort),x.map(S=>{const E=d[S];return E===void 0?"":E===null?encode$1(S,b):Array.isArray(E)?E.length===0&&b.arrayFormat==="bracket-separator"?encode$1(S,b)+"[]":E.reduce(w(S),[]).join("&"):encode$1(S,b)+"="+encode$1(E,b)}).filter(S=>S.length>0).join("&")}function parseUrl(d,b){var C,x;b={decode:!0,...b};let[A,w]=splitOnFirst(d,"#");return A===void 0&&(A=d),{url:(x=(C=A==null?void 0:A.split("?"))==null?void 0:C[0])!=null?x:"",query:parse$3(extract(d),b),...b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:decode$2(w,b)}:{}}}function stringifyUrl(d,b){b={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...b};const A=removeHash(d.url).split("?")[0]||"",w=extract(d.url),C={...parse$3(w,{sort:!1}),...d.query};let x=stringify$2(C,b);x&&(x="?".concat(x));let S=getHash(d.url);if(d.fragmentIdentifier){const E=new URL(A);E.hash=d.fragmentIdentifier,S=b[encodeFragmentIdentifier]?E.hash:"#".concat(d.fragmentIdentifier)}return"".concat(A).concat(x).concat(S)}function pick(d,b,A){A={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...A};const{url:w,query:C,fragmentIdentifier:x}=parseUrl(d,A);return stringifyUrl({url:w,query:includeKeys(C,b),fragmentIdentifier:x},A)}function exclude(d,b,A){const w=Array.isArray(b)?C=>!b.includes(C):(C,x)=>!b(C,x);return pick(d,w,A)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse:parse$3,parseUrl,pick,stringify:stringify$2,stringifyUrl},Symbol.toStringTag,{value:"Module"})),getQuery=()=>{let d={};try{d={...queryString.parse(location.search),...queryString.parse(location.hash.split("?")[1])}}catch(b){console.log("解析query错误:",b)}return{...d}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function getAugmentedNamespace(d){if(d.__esModule)return d;var b=d.default;if(typeof b=="function"){var A=function w(){return this instanceof w?Reflect.construct(b,arguments,this.constructor):b.apply(this,arguments)};A.prototype=b.prototype}else A={};return Object.defineProperty(A,"__esModule",{value:!0}),Object.keys(d).forEach(function(w){var C=Object.getOwnPropertyDescriptor(d,w);Object.defineProperty(A,w,C.get?C:{enumerable:!0,get:function(){return d[w]}})}),A}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var b={},A=Symbol("test"),w=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(w)!=="[object Symbol]")return!1;var C=42;b[A]=C;for(A in b)return!1;if(typeof Object.keys=="function"&&Object.keys(b).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(b).length!==0)return!1;var x=Object.getOwnPropertySymbols(b);if(x.length!==1||x[0]!==A||!Object.prototype.propertyIsEnumerable.call(b,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(b,A);if(S.value!==C||S.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$2=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(b){var A=this;if(typeof A!="function"||toStr$1.call(A)!==funcType)throw new TypeError(ERROR_MESSAGE+A);for(var w=slice$2.call(arguments,1),C,x=function(){if(this instanceof C){var k=A.apply(this,w.concat(slice$2.call(arguments)));return Object(k)===k?k:this}else return A.apply(b,w.concat(slice$2.call(arguments)))},S=Math.max(0,A.length-w.length),E=[],P=0;P<S;P++)E.push("$"+P);if(C=Function("binder","return function ("+E.join(",")+"){ return binder.apply(this,arguments); }")(x),A.prototype){var B=function(){};B.prototype=A.prototype,C.prototype=new B,B.prototype=null}return C},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src$1=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(d){try{return $Function('"use strict"; return ('+d+").constructor;")()}catch(b){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(d){$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch(d){try{return $gOPD(arguments,"callee").get}catch(b){return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto=Object.getPrototypeOf||(hasProto?function(d){return d.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(d){var errorProto=getProto(getProto(d));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function d(b){var A;if(b==="%AsyncFunction%")A=getEvalledConstructor("async function () {}");else if(b==="%GeneratorFunction%")A=getEvalledConstructor("function* () {}");else if(b==="%AsyncGeneratorFunction%")A=getEvalledConstructor("async function* () {}");else if(b==="%AsyncGenerator%"){var w=d("%AsyncGeneratorFunction%");w&&(A=w.prototype)}else if(b==="%AsyncIteratorPrototype%"){var C=d("%AsyncGenerator%");C&&getProto&&(A=getProto(C.prototype))}return INTRINSICS[b]=A,A},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$1=src$1,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(b){var A=$strSlice(b,0,1),w=$strSlice(b,-1);if(A==="%"&&w!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(w==="%"&&A!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var C=[];return $replace$1(b,rePropName$1,function(x,S,E,P){C[C.length]=E?$replace$1(P,reEscapeChar$1,"$1"):S||x}),C},getBaseIntrinsic=function(b,A){var w=b,C;if(hasOwn$1(LEGACY_ALIASES,w)&&(C=LEGACY_ALIASES[w],w="%"+C[0]+"%"),hasOwn$1(INTRINSICS,w)){var x=INTRINSICS[w];if(x===needsEval&&(x=doEval(w)),typeof x>"u"&&!A)throw new $TypeError$1("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:C,name:w,value:x}}throw new $SyntaxError("intrinsic "+b+" does not exist!")},getIntrinsic=function(b,A){if(typeof b!="string"||b.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,b)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var w=stringToPath$2(b),C=w.length>0?w[0]:"",x=getBaseIntrinsic("%"+C+"%",A),S=x.name,E=x.value,P=!1,B=x.alias;B&&(C=B[0],$spliceApply(w,$concat$1([0,1],B)));for(var k=1,$=!0;k<w.length;k+=1){var I=w[k],D=$strSlice(I,0,1),F=$strSlice(I,-1);if((D==='"'||D==="'"||D==="`"||F==='"'||F==="'"||F==="`")&&D!==F)throw new $SyntaxError("property names with quotes must have matching quotes");if((I==="constructor"||!$)&&(P=!0),C+="."+I,S="%"+C+"%",hasOwn$1(INTRINSICS,S))E=INTRINSICS[S];else if(E!=null){if(!(I in E)){if(!A)throw new $TypeError$1("base intrinsic for "+b+" exists, but the property is not available.");return}if($gOPD&&k+1>=w.length){var z=$gOPD(E,I);$=!!z,$&&"get"in z&&!("originalValue"in z.get)?E=z.get:E=E[I]}else $=hasOwn$1(E,I),E=E[I];$&&!P&&(INTRINSICS[S]=E)}}return E},callBind$1={exports:{}};(function(d){var b=functionBind,A=getIntrinsic,w=A("%Function.prototype.apply%"),C=A("%Function.prototype.call%"),x=A("%Reflect.apply%",!0)||b.call(C,w),S=A("%Object.getOwnPropertyDescriptor%",!0),E=A("%Object.defineProperty%",!0),P=A("%Math.max%");if(E)try{E({},"a",{value:1})}catch(k){E=null}d.exports=function($){var I=x(b,C,arguments);if(S&&E){var D=S(I,"length");D.configurable&&E(I,"length",{value:1+P(0,$.length-(arguments.length-1))})}return I};var B=function(){return x(b,w,arguments)};E?E(d.exports,"apply",{value:B}):d.exports.apply=B})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(b,A){var w=GetIntrinsic$1(b,!!A);return typeof w=="function"&&$indexOf(b,".prototype.")>-1?callBind(w):w};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString$2=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(d){return d.__proto__}:null);function addNumericSeparator(d,b){if(d===1/0||d===-1/0||d!==d||d&&d>-1e3&&d<1e3||$test.call(/e/,b))return b;var A=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof d=="number"){var w=d<0?-$floor(-d):$floor(d);if(w!==d){var C=String(w),x=$slice.call(b,C.length+1);return $replace.call(C,A,"$&_")+"."+$replace.call($replace.call(x,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(b,A,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$1(inspectCustom)?inspectCustom:null,objectInspect=function d(b,A,w,C){var x=A||{};if(has$3(x,"quoteStyle")&&x.quoteStyle!=="single"&&x.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(x,"maxStringLength")&&(typeof x.maxStringLength=="number"?x.maxStringLength<0&&x.maxStringLength!==1/0:x.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=has$3(x,"customInspect")?x.customInspect:!0;if(typeof S!="boolean"&&S!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(x,"indent")&&x.indent!==null&&x.indent!==" "&&!(parseInt(x.indent,10)===x.indent&&x.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(x,"numericSeparator")&&typeof x.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=x.numericSeparator;if(typeof b>"u")return"undefined";if(b===null)return"null";if(typeof b=="boolean")return b?"true":"false";if(typeof b=="string")return inspectString(b,x);if(typeof b=="number"){if(b===0)return 1/0/b>0?"0":"-0";var P=String(b);return E?addNumericSeparator(b,P):P}if(typeof b=="bigint"){var B=String(b)+"n";return E?addNumericSeparator(b,B):B}var k=typeof x.depth>"u"?5:x.depth;if(typeof w>"u"&&(w=0),w>=k&&k>0&&typeof b=="object")return isArray$7(b)?"[Array]":"[Object]";var $=getIndent(x,w);if(typeof C>"u")C=[];else if(indexOf(C,b)>=0)return"[Circular]";function I(le,de,me){if(de&&(C=$arrSlice.call(C),C.push(de)),me){var ne={depth:x.depth};return has$3(x,"quoteStyle")&&(ne.quoteStyle=x.quoteStyle),d(le,ne,w+1,C)}return d(le,x,w+1,C)}if(typeof b=="function"&&!isRegExp$1(b)){var D=nameOf(b),F=arrObjKeys(b,I);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(F.length>0?" { "+$join.call(F,", ")+" }":"")}if(isSymbol$1(b)){var z=hasShammedSymbols?$replace.call(String(b),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(b);return typeof b=="object"&&!hasShammedSymbols?markBoxed(z):z}if(isElement$1(b)){for(var L="<"+$toLowerCase.call(String(b.nodeName)),H=b.attributes||[],Q=0;Q<H.length;Q++)L+=" "+H[Q].name+"="+wrapQuotes(quote(H[Q].value),"double",x);return L+=">",b.childNodes&&b.childNodes.length&&(L+="..."),L+="</"+$toLowerCase.call(String(b.nodeName))+">",L}if(isArray$7(b)){if(b.length===0)return"[]";var Y=arrObjKeys(b,I);return $&&!singleLineValues(Y)?"["+indentedJoin(Y,$)+"]":"[ "+$join.call(Y,", ")+" ]"}if(isError(b)){var U=arrObjKeys(b,I);return!("cause"in Error.prototype)&&"cause"in b&&!isEnumerable.call(b,"cause")?"{ ["+String(b)+"] "+$join.call($concat.call("[cause]: "+I(b.cause),U),", ")+" }":U.length===0?"["+String(b)+"]":"{ ["+String(b)+"] "+$join.call(U,", ")+" }"}if(typeof b=="object"&&S){if(inspectSymbol&&typeof b[inspectSymbol]=="function"&&utilInspect)return utilInspect(b,{depth:k-w});if(S!=="symbol"&&typeof b.inspect=="function")return b.inspect()}if(isMap(b)){var G=[];return mapForEach&&mapForEach.call(b,function(le,de){G.push(I(de,b,!0)+" => "+I(le,b))}),collectionOf("Map",mapSize.call(b),G,$)}if(isSet(b)){var W=[];return setForEach&&setForEach.call(b,function(le){W.push(I(le,b))}),collectionOf("Set",setSize.call(b),W,$)}if(isWeakMap(b))return weakCollectionOf("WeakMap");if(isWeakSet(b))return weakCollectionOf("WeakSet");if(isWeakRef(b))return weakCollectionOf("WeakRef");if(isNumber$1(b))return markBoxed(I(Number(b)));if(isBigInt(b))return markBoxed(I(bigIntValueOf.call(b)));if(isBoolean$1(b))return markBoxed(booleanValueOf.call(b));if(isString$1(b))return markBoxed(I(String(b)));if(!isDate$1(b)&&!isRegExp$1(b)){var K=arrObjKeys(b,I),X=gPO?gPO(b)===Object.prototype:b instanceof Object||b.constructor===Object,Z=b instanceof Object?"":"null prototype",oe=!X&&toStringTag&&Object(b)===b&&toStringTag in b?$slice.call(toStr(b),8,-1):Z?"Object":"",he=X||typeof b.constructor!="function"?"":b.constructor.name?b.constructor.name+" ":"",J=he+(oe||Z?"["+$join.call($concat.call([],oe||[],Z||[]),": ")+"] ":"");return K.length===0?J+"{}":$?J+"{"+indentedJoin(K,$)+"}":J+"{ "+$join.call(K,", ")+" }"}return String(b)};function wrapQuotes(d,b,A){var w=(A.quoteStyle||b)==="double"?'"':"'";return w+d+w}function quote(d){return $replace.call(String(d),/"/g,"&quot;")}function isArray$7(d){return toStr(d)==="[object Array]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isDate$1(d){return toStr(d)==="[object Date]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isRegExp$1(d){return toStr(d)==="[object RegExp]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isError(d){return toStr(d)==="[object Error]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isString$1(d){return toStr(d)==="[object String]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isNumber$1(d){return toStr(d)==="[object Number]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isBoolean$1(d){return toStr(d)==="[object Boolean]"&&(!toStringTag||!(typeof d=="object"&&toStringTag in d))}function isSymbol$1(d){if(hasShammedSymbols)return d&&typeof d=="object"&&d instanceof Symbol;if(typeof d=="symbol")return!0;if(!d||typeof d!="object"||!symToString)return!1;try{return symToString.call(d),!0}catch(b){}return!1}function isBigInt(d){if(!d||typeof d!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(d),!0}catch(b){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(d){return d in this};function has$3(d,b){return hasOwn.call(d,b)}function toStr(d){return objectToString$2.call(d)}function nameOf(d){if(d.name)return d.name;var b=$match.call(functionToString.call(d),/^function\s*([\w$]+)/);return b?b[1]:null}function indexOf(d,b){if(d.indexOf)return d.indexOf(b);for(var A=0,w=d.length;A<w;A++)if(d[A]===b)return A;return-1}function isMap(d){if(!mapSize||!d||typeof d!="object")return!1;try{mapSize.call(d);try{setSize.call(d)}catch(b){return!0}return d instanceof Map}catch(b){}return!1}function isWeakMap(d){if(!weakMapHas||!d||typeof d!="object")return!1;try{weakMapHas.call(d,weakMapHas);try{weakSetHas.call(d,weakSetHas)}catch(b){return!0}return d instanceof WeakMap}catch(b){}return!1}function isWeakRef(d){if(!weakRefDeref||!d||typeof d!="object")return!1;try{return weakRefDeref.call(d),!0}catch(b){}return!1}function isSet(d){if(!setSize||!d||typeof d!="object")return!1;try{setSize.call(d);try{mapSize.call(d)}catch(b){return!0}return d instanceof Set}catch(b){}return!1}function isWeakSet(d){if(!weakSetHas||!d||typeof d!="object")return!1;try{weakSetHas.call(d,weakSetHas);try{weakMapHas.call(d,weakMapHas)}catch(b){return!0}return d instanceof WeakSet}catch(b){}return!1}function isElement$1(d){return!d||typeof d!="object"?!1:typeof HTMLElement<"u"&&d instanceof HTMLElement?!0:typeof d.nodeName=="string"&&typeof d.getAttribute=="function"}function inspectString(d,b){if(d.length>b.maxStringLength){var A=d.length-b.maxStringLength,w="... "+A+" more character"+(A>1?"s":"");return inspectString($slice.call(d,0,b.maxStringLength),b)+w}var C=$replace.call($replace.call(d,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(C,"single",b)}function lowbyte(d){var b=d.charCodeAt(0),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[b];return A?"\\"+A:"\\x"+(b<16?"0":"")+$toUpperCase.call(b.toString(16))}function markBoxed(d){return"Object("+d+")"}function weakCollectionOf(d){return d+" { ? }"}function collectionOf(d,b,A,w){var C=w?indentedJoin(A,w):$join.call(A,", ");return d+" ("+b+") {"+C+"}"}function singleLineValues(d){for(var b=0;b<d.length;b++)if(indexOf(d[b],"\n")>=0)return!1;return!0}function getIndent(d,b){var A;if(d.indent===" ")A=" ";else if(typeof d.indent=="number"&&d.indent>0)A=$join.call(Array(d.indent+1)," ");else return null;return{base:A,prev:$join.call(Array(b+1),A)}}function indentedJoin(d,b){if(d.length===0)return"";var A="\n"+b.prev+b.base;return A+$join.call(d,","+A)+"\n"+b.prev}function arrObjKeys(d,b){var A=isArray$7(d),w=[];if(A){w.length=d.length;for(var C=0;C<d.length;C++)w[C]=has$3(d,C)?b(d[C],d):""}var x=typeof gOPS=="function"?gOPS(d):[],S;if(hasShammedSymbols){S={};for(var E=0;E<x.length;E++)S["$"+x[E]]=x[E]}for(var P in d)has$3(d,P)&&(A&&String(Number(P))===P&&P<d.length||hasShammedSymbols&&S["$"+P]instanceof Symbol||($test.call(/[^\w$]/,P)?w.push(b(P,d)+": "+b(d[P],d)):w.push(P+": "+b(d[P],d))));if(typeof gOPS=="function")for(var B=0;B<x.length;B++)isEnumerable.call(d,x[B])&&w.push("["+b(x[B])+"]: "+b(d[x[B]],d));return w}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(d,b){for(var A=d,w;(w=A.next)!==null;A=w)if(w.key===b)return A.next=w.next,w.next=d.next,d.next=w,w},listGet=function(d,b){var A=listGetNode(d,b);return A&&A.value},listSet=function(d,b,A){var w=listGetNode(d,b);w?w.value=A:d.next={key:b,next:d.next,value:A}},listHas=function(d,b){return!!listGetNode(d,b)},sideChannel=function(){var b,A,w,C={assert:function(x){if(!C.has(x))throw new $TypeError("Side channel does not contain "+inspect(x))},get:function(x){if($WeakMap&&x&&(typeof x=="object"||typeof x=="function")){if(b)return $weakMapGet(b,x)}else if($Map){if(A)return $mapGet(A,x)}else if(w)return listGet(w,x)},has:function(x){if($WeakMap&&x&&(typeof x=="object"||typeof x=="function")){if(b)return $weakMapHas(b,x)}else if($Map){if(A)return $mapHas(A,x)}else if(w)return listHas(w,x);return!1},set:function(x,S){$WeakMap&&x&&(typeof x=="object"||typeof x=="function")?(b||(b=new $WeakMap),$weakMapSet(b,x,S)):$Map?(A||(A=new $Map),$mapSet(A,x,S)):(w||(w={key:{},next:null}),listSet(w,x,S))}};return C},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(d){return replace.call(d,percentTwenties,"+")},RFC3986:function(d){return String(d)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$6=Array.isArray,hexTable=function(){for(var d=[],b=0;b<256;++b)d.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return d}(),compactQueue=function(b){for(;b.length>1;){var A=b.pop(),w=A.obj[A.prop];if(isArray$6(w)){for(var C=[],x=0;x<w.length;++x)typeof w[x]<"u"&&C.push(w[x]);A.obj[A.prop]=C}}},arrayToObject=function(b,A){for(var w=A&&A.plainObjects?Object.create(null):{},C=0;C<b.length;++C)typeof b[C]<"u"&&(w[C]=b[C]);return w},merge$3=function d(b,A,w){if(!A)return b;if(typeof A!="object"){if(isArray$6(b))b.push(A);else if(b&&typeof b=="object")(w&&(w.plainObjects||w.allowPrototypes)||!has$2.call(Object.prototype,A))&&(b[A]=!0);else return[b,A];return b}if(!b||typeof b!="object")return[b].concat(A);var C=b;return isArray$6(b)&&!isArray$6(A)&&(C=arrayToObject(b,w)),isArray$6(b)&&isArray$6(A)?(A.forEach(function(x,S){if(has$2.call(b,S)){var E=b[S];E&&typeof E=="object"&&x&&typeof x=="object"?b[S]=d(E,x,w):b.push(x)}else b[S]=x}),b):Object.keys(A).reduce(function(x,S){var E=A[S];return has$2.call(x,S)?x[S]=d(x[S],E,w):x[S]=E,x},C)},assign$1=function(b,A){return Object.keys(A).reduce(function(w,C){return w[C]=A[C],w},b)},decode$1=function(d,b,A){var w=d.replace(/\+/g," ");if(A==="iso-8859-1")return w.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(w)}catch(C){return w}},encode=function(b,A,w,C,x){if(b.length===0)return b;var S=b;if(typeof b=="symbol"?S=Symbol.prototype.toString.call(b):typeof b!="string"&&(S=String(b)),w==="iso-8859-1")return escape(S).replace(/%u[0-9a-f]{4}/gi,function(k){return"%26%23"+parseInt(k.slice(2),16)+"%3B"});for(var E="",P=0;P<S.length;++P){var B=S.charCodeAt(P);if(B===45||B===46||B===95||B===126||B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||x===formats$2.RFC1738&&(B===40||B===41)){E+=S.charAt(P);continue}if(B<128){E=E+hexTable[B];continue}if(B<2048){E=E+(hexTable[192|B>>6]+hexTable[128|B&63]);continue}if(B<55296||B>=57344){E=E+(hexTable[224|B>>12]+hexTable[128|B>>6&63]+hexTable[128|B&63]);continue}P+=1,B=65536+((B&1023)<<10|S.charCodeAt(P)&1023),E+=hexTable[240|B>>18]+hexTable[128|B>>12&63]+hexTable[128|B>>6&63]+hexTable[128|B&63]}return E},compact=function(b){for(var A=[{obj:{o:b},prop:"o"}],w=[],C=0;C<A.length;++C)for(var x=A[C],S=x.obj[x.prop],E=Object.keys(S),P=0;P<E.length;++P){var B=E[P],k=S[B];typeof k=="object"&&k!==null&&w.indexOf(k)===-1&&(A.push({obj:S,prop:B}),w.push(k))}return compactQueue(A),b},isRegExp=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},isBuffer$2=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},combine=function(b,A){return[].concat(b,A)},maybeMap=function(b,A){if(isArray$6(b)){for(var w=[],C=0;C<b.length;C+=1)w.push(A(b[C]));return w}return A(b)},utils$2={arrayToObject,assign:assign$1,combine,compact,decode:decode$1,encode,isBuffer:isBuffer$2,isRegExp,maybeMap,merge:merge$3},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,A){return b+"["+A+"]"},repeat:function(b){return b}},isArray$5=Array.isArray,push=Array.prototype.push,pushToArray=function(d,b){push.apply(d,isArray$5(b)?b:[b])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(b){return toISO.call(b)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},sentinel={},stringify$1=function d(b,A,w,C,x,S,E,P,B,k,$,I,D,F,z,L){for(var H=b,Q=L,Y=0,U=!1;(Q=Q.get(sentinel))!==void 0&&!U;){var G=Q.get(b);if(Y+=1,typeof G<"u"){if(G===Y)throw new RangeError("Cyclic object value");U=!0}typeof Q.get(sentinel)>"u"&&(Y=0)}if(typeof P=="function"?H=P(A,H):H instanceof Date?H=$(H):w==="comma"&&isArray$5(H)&&(H=utils$1.maybeMap(H,function(ne){return ne instanceof Date?$(ne):ne})),H===null){if(x)return E&&!F?E(A,defaults$1.encoder,z,"key",I):A;H=""}if(isNonNullishPrimitive(H)||utils$1.isBuffer(H)){if(E){var W=F?A:E(A,defaults$1.encoder,z,"key",I);return[D(W)+"="+D(E(H,defaults$1.encoder,z,"value",I))]}return[D(A)+"="+D(String(H))]}var K=[];if(typeof H>"u")return K;var X;if(w==="comma"&&isArray$5(H))F&&E&&(H=utils$1.maybeMap(H,E)),X=[{value:H.length>0?H.join(",")||null:void 0}];else if(isArray$5(P))X=P;else{var Z=Object.keys(H);X=B?Z.sort(B):Z}for(var oe=C&&isArray$5(H)&&H.length===1?A+"[]":A,he=0;he<X.length;++he){var J=X[he],le=typeof J=="object"&&typeof J.value<"u"?J.value:H[J];if(!(S&&le===null)){var de=isArray$5(H)?typeof w=="function"?w(oe,J):oe:oe+(k?"."+J:"["+J+"]");L.set(b,Y);var me=getSideChannel();me.set(sentinel,L),pushToArray(K,d(le,de,w,C,x,S,w==="comma"&&F&&isArray$5(H)?null:E,P,B,k,$,I,D,F,z,me))}}return K},normalizeStringifyOptions=function(b){if(!b)return defaults$1;if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var A=b.charset||defaults$1.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=formats$1.default;if(typeof b.format<"u"){if(!has$1.call(formats$1.formatters,b.format))throw new TypeError("Unknown format option provided.");w=b.format}var C=formats$1.formatters[w],x=defaults$1.filter;return(typeof b.filter=="function"||isArray$5(b.filter))&&(x=b.filter),{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof b.allowDots>"u"?defaults$1.allowDots:!!b.allowDots,charset:A,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof b.delimiter>"u"?defaults$1.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:defaults$1.encode,encoder:typeof b.encoder=="function"?b.encoder:defaults$1.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:x,format:w,formatter:C,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:defaults$1.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:defaults$1.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(d,b){var A=d,w=normalizeStringifyOptions(b),C,x;typeof w.filter=="function"?(x=w.filter,A=x("",A)):isArray$5(w.filter)&&(x=w.filter,C=x);var S=[];if(typeof A!="object"||A===null)return"";var E;b&&b.arrayFormat in arrayPrefixGenerators?E=b.arrayFormat:b&&"indices"in b?E=b.indices?"indices":"repeat":E="indices";var P=arrayPrefixGenerators[E];if(b&&"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=P==="comma"&&b&&b.commaRoundTrip;C||(C=Object.keys(A)),w.sort&&C.sort(w.sort);for(var k=getSideChannel(),$=0;$<C.length;++$){var I=C[$];w.skipNulls&&A[I]===null||pushToArray(S,stringify$1(A[I],I,P,B,w.strictNullHandling,w.skipNulls,w.encode?w.encoder:null,w.filter,w.sort,w.allowDots,w.serializeDate,w.format,w.formatter,w.encodeValuesOnly,w.charset,k))}var D=S.join(w.delimiter),F=w.addQueryPrefix===!0?"?":"";return w.charsetSentinel&&(w.charset==="iso-8859-1"?F+="utf8=%26%2310003%3B&":F+="utf8=%E2%9C%93&"),D.length>0?F+D:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(d){return d.replace(/&#(\d+);/g,function(b,A){return String.fromCharCode(parseInt(A,10))})},parseArrayValue=function(d,b){return d&&typeof d=="string"&&b.comma&&d.indexOf(",")>-1?d.split(","):d},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(b,A){var w={__proto__:null},C=A.ignoreQueryPrefix?b.replace(/^\?/,""):b,x=A.parameterLimit===1/0?void 0:A.parameterLimit,S=C.split(A.delimiter,x),E=-1,P,B=A.charset;if(A.charsetSentinel)for(P=0;P<S.length;++P)S[P].indexOf("utf8=")===0&&(S[P]===charsetSentinel?B="utf-8":S[P]===isoSentinel&&(B="iso-8859-1"),E=P,P=S.length);for(P=0;P<S.length;++P)if(P!==E){var k=S[P],$=k.indexOf("]="),I=$===-1?k.indexOf("="):$+1,D,F;I===-1?(D=A.decoder(k,defaults.decoder,B,"key"),F=A.strictNullHandling?null:""):(D=A.decoder(k.slice(0,I),defaults.decoder,B,"key"),F=utils.maybeMap(parseArrayValue(k.slice(I+1),A),function(z){return A.decoder(z,defaults.decoder,B,"value")})),F&&A.interpretNumericEntities&&B==="iso-8859-1"&&(F=interpretNumericEntities(F)),k.indexOf("[]=")>-1&&(F=isArray$4(F)?[F]:F),has.call(w,D)?w[D]=utils.combine(w[D],F):w[D]=F}return w},parseObject=function(d,b,A,w){for(var C=w?b:parseArrayValue(b,A),x=d.length-1;x>=0;--x){var S,E=d[x];if(E==="[]"&&A.parseArrays)S=[].concat(C);else{S=A.plainObjects?Object.create(null):{};var P=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,B=parseInt(P,10);!A.parseArrays&&P===""?S={0:C}:!isNaN(B)&&E!==P&&String(B)===P&&B>=0&&A.parseArrays&&B<=A.arrayLimit?(S=[],S[B]=C):P!=="__proto__"&&(S[P]=C)}C=S}return C},parseKeys=function(b,A,w,C){if(b){var x=w.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,S=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,P=w.depth>0&&S.exec(x),B=P?x.slice(0,P.index):x,k=[];if(B){if(!w.plainObjects&&has.call(Object.prototype,B)&&!w.allowPrototypes)return;k.push(B)}for(var $=0;w.depth>0&&(P=E.exec(x))!==null&&$<w.depth;){if($+=1,!w.plainObjects&&has.call(Object.prototype,P[1].slice(1,-1))&&!w.allowPrototypes)return;k.push(P[1])}return P&&k.push("["+x.slice(P.index)+"]"),parseObject(k,A,w,C)}},normalizeParseOptions=function(b){if(!b)return defaults;if(b.decoder!==null&&b.decoder!==void 0&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=typeof b.charset>"u"?defaults.charset:b.charset;return{allowDots:typeof b.allowDots>"u"?defaults.allowDots:!!b.allowDots,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:defaults.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:defaults.arrayLimit,charset:A,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:defaults.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:defaults.comma,decoder:typeof b.decoder=="function"?b.decoder:defaults.decoder,delimiter:typeof b.delimiter=="string"||utils.isRegExp(b.delimiter)?b.delimiter:defaults.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:defaults.depth,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:defaults.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:defaults.plainObjects,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:defaults.strictNullHandling}},parse$2=function(d,b){var A=normalizeParseOptions(b);if(d===""||d===null||typeof d>"u")return A.plainObjects?Object.create(null):{};for(var w=typeof d=="string"?parseValues(d,A):d,C=A.plainObjects?Object.create(null):{},x=Object.keys(w),S=0;S<x.length;++S){var E=x[S],P=parseKeys(E,w[E],A,typeof d=="string");C=utils.merge(C,P,A)}return A.allowSparse===!0?C:utils.compact(C)},stringify=stringify_1,parse$1=parse$2,formats=formats$3,lib={formats,parse:parse$1,stringify},g=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},support={searchParams:"URLSearchParams"in g,iterable:"Symbol"in g&&"iterator"in Symbol,blob:"FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch(d){return!1}}(),formData:"FormData"in g,arrayBuffer:"ArrayBuffer"in g};function isDataView(d){return d&&DataView.prototype.isPrototypeOf(d)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(d){return d&&viewClasses.indexOf(Object.prototype.toString.call(d))>-1};function normalizeName(d){if(typeof d!="string"&&(d=String(d)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d)||d==="")throw new TypeError('Invalid character in header field name: "'+d+'"');return d.toLowerCase()}function normalizeValue(d){return typeof d!="string"&&(d=String(d)),d}function iteratorFor(d){var b={next:function(){var A=d.shift();return{done:A===void 0,value:A}}};return support.iterable&&(b[Symbol.iterator]=function(){return b}),b}function Headers(d){this.map={},d instanceof Headers?d.forEach(function(b,A){this.append(A,b)},this):Array.isArray(d)?d.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):d&&Object.getOwnPropertyNames(d).forEach(function(b){this.append(b,d[b])},this)}Headers.prototype.append=function(d,b){d=normalizeName(d),b=normalizeValue(b);var A=this.map[d];this.map[d]=A?A+", "+b:b};Headers.prototype.delete=function(d){delete this.map[normalizeName(d)]};Headers.prototype.get=function(d){return d=normalizeName(d),this.has(d)?this.map[d]:null};Headers.prototype.has=function(d){return this.map.hasOwnProperty(normalizeName(d))};Headers.prototype.set=function(d,b){this.map[normalizeName(d)]=normalizeValue(b)};Headers.prototype.forEach=function(d,b){for(var A in this.map)this.map.hasOwnProperty(A)&&d.call(b,this.map[A],A,this)};Headers.prototype.keys=function(){var d=[];return this.forEach(function(b,A){d.push(A)}),iteratorFor(d)};Headers.prototype.values=function(){var d=[];return this.forEach(function(b){d.push(b)}),iteratorFor(d)};Headers.prototype.entries=function(){var d=[];return this.forEach(function(b,A){d.push([A,b])}),iteratorFor(d)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(d){if(!d._noBody){if(d.bodyUsed)return Promise.reject(new TypeError("Already read"));d.bodyUsed=!0}}function fileReaderReady(d){return new Promise(function(b,A){d.onload=function(){b(d.result)},d.onerror=function(){A(d.error)}})}function readBlobAsArrayBuffer(d){var b=new FileReader,A=fileReaderReady(b);return b.readAsArrayBuffer(d),A}function readBlobAsText(d){var b=new FileReader,A=fileReaderReady(b),w=/charset=([A-Za-z0-9_-]+)/.exec(d.type),C=w?w[1]:"utf-8";return b.readAsText(d,C),A}function readArrayBufferAsText(d){for(var b=new Uint8Array(d),A=new Array(b.length),w=0;w<b.length;w++)A[w]=String.fromCharCode(b[w]);return A.join("")}function bufferClone(d){if(d.slice)return d.slice(0);var b=new Uint8Array(d.byteLength);return b.set(new Uint8Array(d)),b.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(d){this.bodyUsed=this.bodyUsed,this._bodyInit=d,d?typeof d=="string"?this._bodyText=d:support.blob&&Blob.prototype.isPrototypeOf(d)?this._bodyBlob=d:support.formData&&FormData.prototype.isPrototypeOf(d)?this._bodyFormData=d:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)?this._bodyText=d.toString():support.arrayBuffer&&support.blob&&isDataView(d)?(this._bodyArrayBuffer=bufferClone(d.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(d)||isArrayBufferView(d))?this._bodyArrayBuffer=bufferClone(d):this._bodyText=d=Object.prototype.toString.call(d):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof d=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var d=consumed(this);if(d)return d;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var d=consumed(this);return d||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(support.blob)return this.blob().then(readBlobAsArrayBuffer);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var d=consumed(this);if(d)return d;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function normalizeMethod(d){var b=d.toUpperCase();return methods.indexOf(b)>-1?b:d}function Request(d,b){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var A=b.body;if(d instanceof Request){if(d.bodyUsed)throw new TypeError("Already read");this.url=d.url,this.credentials=d.credentials,b.headers||(this.headers=new Headers(d.headers)),this.method=d.method,this.mode=d.mode,this.signal=d.signal,!A&&d._bodyInit!=null&&(A=d._bodyInit,d.bodyUsed=!0)}else this.url=String(d);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new Headers(b.headers)),this.method=normalizeMethod(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in g){var x=new AbortController;return x.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var C=/\?/;this.url+=(C.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(d){var b=new FormData;return d.trim().split("&").forEach(function(A){if(A){var w=A.split("="),C=w.shift().replace(/\+/g," "),x=w.join("=").replace(/\+/g," ");b.append(decodeURIComponent(C),decodeURIComponent(x))}}),b}function parseHeaders(d){var b=new Headers,A=d.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(w){return w.indexOf("\n")===0?w.substr(1,w.length):w}).forEach(function(w){var C=w.split(":"),x=C.shift().trim();if(x){var S=C.join(":").trim();try{b.append(x,S)}catch(E){console.warn("Response "+E.message)}}}),b}Body.call(Request.prototype);function Response(d,b){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new Headers(b.headers),this.url=b.url||"",this._initBody(d)}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})};Response.error=function(){var d=new Response(null,{status:200,statusText:""});return d.status=0,d.type="error",d};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(d,b){if(redirectStatuses.indexOf(b)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:b,headers:{location:d}})};var DOMException=g.DOMException;try{new DOMException}catch(d){DOMException=function(b,A){this.message=b,this.name=A;var w=Error(b);this.stack=w.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(d,b){return new Promise(function(A,w){var C=new Request(d,b);if(C.signal&&C.signal.aborted)return w(new DOMException("Aborted","AbortError"));var x=new XMLHttpRequest;function S(){x.abort()}x.onload=function(){var B={status:x.status,statusText:x.statusText,headers:parseHeaders(x.getAllResponseHeaders()||"")};B.url="responseURL"in x?x.responseURL:B.headers.get("X-Request-URL");var k="response"in x?x.response:x.responseText;setTimeout(function(){A(new Response(k,B))},0)},x.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},x.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},x.onabort=function(){setTimeout(function(){w(new DOMException("Aborted","AbortError"))},0)};function E(B){try{return B===""&&g.location.href?g.location.href:B}catch(k){return B}}if(x.open(C.method,E(C.url),!0),C.credentials==="include"?x.withCredentials=!0:C.credentials==="omit"&&(x.withCredentials=!1),"responseType"in x&&(support.blob?x.responseType="blob":support.arrayBuffer&&(x.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof Headers||g.Headers&&b.headers instanceof g.Headers)){var P=[];Object.getOwnPropertyNames(b.headers).forEach(function(B){P.push(normalizeName(B)),x.setRequestHeader(B,normalizeValue(b.headers[B]))}),C.headers.forEach(function(B,k){P.indexOf(k)===-1&&x.setRequestHeader(k,B)})}else C.headers.forEach(function(B,k){x.setRequestHeader(k,B)});C.signal&&(C.signal.addEventListener("abort",S),x.onreadystatechange=function(){x.readyState===4&&C.signal.removeEventListener("abort",S)}),x.send(typeof C._bodyInit>"u"?null:C._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);self.fetch.bind(self);function ownKeys(d,b){var A=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);b&&(w=w.filter(function(C){return Object.getOwnPropertyDescriptor(d,C).enumerable})),A.push.apply(A,w)}return A}function _objectSpread2(d){for(var b=1;b<arguments.length;b++){var A=arguments[b]!=null?arguments[b]:{};b%2?ownKeys(Object(A),!0).forEach(function(w){_defineProperty(d,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(A)):ownKeys(Object(A)).forEach(function(w){Object.defineProperty(d,w,Object.getOwnPropertyDescriptor(A,w))})}return d}function _typeof$1(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(b){return typeof b}:_typeof$1=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},_typeof$1(d)}function _classCallCheck$1(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(d,b){for(var A=0;A<b.length;A++){var w=b[A];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function _createClass(d,b,A){return b&&_defineProperties(d.prototype,b),A&&_defineProperties(d,A),d}function _defineProperty(d,b,A){return b in d?Object.defineProperty(d,b,{value:A,enumerable:!0,configurable:!0,writable:!0}):d[b]=A,d}function _inherits(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(b&&b.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),b&&_setPrototypeOf(d,b)}function _getPrototypeOf(d){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},_getPrototypeOf(d)}function _setPrototypeOf(d,b){return _setPrototypeOf=Object.setPrototypeOf||function(w,C){return w.__proto__=C,w},_setPrototypeOf(d,b)}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(d){return!1}}function _construct(d,b,A){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(C,x,S){var E=[null];E.push.apply(E,x);var P=Function.bind.apply(C,E),B=new P;return S&&_setPrototypeOf(B,S.prototype),B},_construct.apply(null,arguments)}function _isNativeFunction(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function _wrapNativeSuper(d){var b=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 b<"u"){if(b.has(w))return b.get(w);b.set(w,C)}function C(){return _construct(w,arguments,_getPrototypeOf(this).constructor)}return C.prototype=Object.create(w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(C,w)},_wrapNativeSuper(d)}function _assertThisInitialized(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function _possibleConstructorReturn(d,b){if(b&&(typeof b=="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(d)}function _createSuper(d){var b=_isNativeReflectConstruct();return function(){var w=_getPrototypeOf(d),C;if(b){var x=_getPrototypeOf(this).constructor;C=Reflect.construct(w,arguments,x)}else C=w.apply(this,arguments);return _possibleConstructorReturn(this,C)}}function _toConsumableArray(d){return _arrayWithoutHoles(d)||_iterableToArray(d)||_unsupportedIterableToArray(d)||_nonIterableSpread()}function _arrayWithoutHoles(d){if(Array.isArray(d))return _arrayLikeToArray(d)}function _iterableToArray(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function _unsupportedIterableToArray(d,b){if(d){if(typeof d=="string")return _arrayLikeToArray(d,b);var A=Object.prototype.toString.call(d).slice(8,-1);if(A==="Object"&&d.constructor&&(A=d.constructor.name),A==="Map"||A==="Set")return Array.from(d);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return _arrayLikeToArray(d,b)}}function _arrayLikeToArray(d,b){(b==null||b>d.length)&&(b=d.length);for(var A=0,w=new Array(b);A<b;A++)w[A]=d[A];return w}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function compose(d){if(!Array.isArray(d))throw new TypeError("Middlewares must be an array!");for(var b=d.length,A=0;A<b;A++)if(typeof d[A]!="function")throw new TypeError("Middleware must be componsed of function");return function(C,x){var S=-1;function E(P){if(P<=S)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));S=P;var B=d[P]||x;if(!B)return Promise.resolve();try{return Promise.resolve(B(C,function(){return E(P+1)}))}catch(k){return Promise.reject(k)}}return E(0)}}var Onion=function(){function d(b){if(_classCallCheck$1(this,d),!Array.isArray(b))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=_toConsumableArray(b),this.middlewares=[]}return _createClass(d,[{key:"use",value:function(A){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},C=!1,x=!1,S=!1;if(typeof w=="number"?(process&&process.env,C=!0,x=!1):_typeof$1(w)==="object"&&w&&(x=w.global||!1,C=w.core||!1,S=w.defaultInstance||!1),x){d.globalMiddlewares.splice(d.globalMiddlewares.length-d.defaultGlobalMiddlewaresLength,0,A);return}if(C){d.coreMiddlewares.splice(d.coreMiddlewares.length-d.defaultCoreMiddlewaresLength,0,A);return}if(S){this.defaultMiddlewares.push(A);return}this.middlewares.push(A)}},{key:"execute",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=compose([].concat(_toConsumableArray(this.middlewares),_toConsumableArray(this.defaultMiddlewares),_toConsumableArray(d.globalMiddlewares),_toConsumableArray(d.coreMiddlewares)));return w(A)}}]),d}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache$1=function(){function d(b){_classCallCheck$1(this,d),this.cache=new Map,this.timer={},this.extendOptions(b)}return _createClass(d,[{key:"extendOptions",value:function(A){this.maxCache=A.maxCache||0}},{key:"get",value:function(A){return this.cache.get(JSON.stringify(A))}},{key:"set",value:function(A,w){var C=this,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var S=_toConsumableArray(this.cache.keys())[0];this.cache.delete(S),this.timer[S]&&clearTimeout(this.timer[S])}var E=JSON.stringify(A);this.cache.set(E,w),x>0&&(this.timer[E]=setTimeout(function(){C.cache.delete(E),delete C.timer[E]},x))}},{key:"delete",value:function(A){var w=JSON.stringify(A);return delete this.timer[w],this.cache.delete(w)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),d}(),RequestError=function(d){_inherits(A,d);var b=_createSuper(A);function A(w,C){var x,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck$1(this,A),x=b.call(this,w),x.name="RequestError",x.request=C,x.type=S,x}return A}(_wrapNativeSuper(Error)),ResponseError=function(d){_inherits(A,d);var b=_createSuper(A);function A(w,C,x,S){var E,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck$1(this,A),E=b.call(this,C||w.statusText),E.name="ResponseError",E.data=x,E.response=w,E.request=S,E.type=P,E}return A}(_wrapNativeSuper(Error));function readerGBK(d){return new Promise(function(b,A){var w=new FileReader;w.onload=function(){b(w.result)},w.onerror=A,w.readAsText(d,"GBK")})}function safeJsonParse(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(d)}catch(C){if(b)throw new ResponseError(A,"JSON.parse fail",d,w,"ParseError")}return d}function timeout2Throw(d,b,A){return new Promise(function(w,C){setTimeout(function(){C(new RequestError(b||"timeout of ".concat(d,"ms exceeded"),A,"Timeout"))},d)})}function cancel2Throw(d){return new Promise(function(b,A){d.cancelToken&&d.cancelToken.promise.then(function(w){A(w)})})}var toString$1=Object.prototype.toString;function getEnv(){var d;return typeof process<"u"&&toString$1.call(process)==="[object process]"&&(d="NODE"),typeof XMLHttpRequest<"u"&&(d="BROWSER"),d}function isArray$3(d){return _typeof$1(d)==="object"&&Object.prototype.toString.call(d)==="[object Array]"}function isURLSearchParams(d){return typeof URLSearchParams<"u"&&d instanceof URLSearchParams}function isDate(d){return _typeof$1(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}function isObject$4(d){return d!==null&&_typeof$1(d)==="object"}function forEach2ObjArr(d,b){if(d)if(_typeof$1(d)!=="object"&&(d=[d]),isArray$3(d))for(var A=0;A<d.length;A++)b.call(null,d[A],A,d);else for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&b.call(null,d[w],w,d)}function getParamObject(d){return isURLSearchParams(d)?lib.parse(d.toString(),{strictNullHandling:!0}):typeof d=="string"?[d]:d}function reqStringify(d){return lib.stringify(d,{arrayFormat:"repeat",strictNullHandling:!0})}function mergeRequestOptions(d,b){return _objectSpread2(_objectSpread2(_objectSpread2({},d),b),{},{headers:_objectSpread2(_objectSpread2({},d.headers),b.headers),params:_objectSpread2(_objectSpread2({},getParamObject(d.params)),getParamObject(b.params)),method:(b.method||d.method||"get").toLowerCase()})}var addfix=function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=A.prefix,C=A.suffix;return w&&(b="".concat(w).concat(b)),C&&(b="".concat(b).concat(C)),{url:b,options:A}},warnedCoreType=!1;function __defaultValidateCache(d,b){var A=b.method,w=A===void 0?"get":A;return w.toLowerCase()==="get"}function fetchMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var w=A.options,C=w===void 0?{}:w,x=A.url,S=x===void 0?"":x,E=d.cache,P=d.responseInterceptors,B=C.timeout,k=B===void 0?0:B,$=C.timeoutMessage,I=C.__umiRequestCoreType__,D=I===void 0?"normal":I,F=C.useCache,z=F===void 0?!1:F,L=C.method,H=L===void 0?"get":L,Q=C.params,Y=C.ttl,U=C.validateCache,G=U===void 0?__defaultValidateCache:U;if(D!=="normal")return process&&process.env,b();var W=fetch;if(!W)throw new Error("Global fetch not exist!");var K=getEnv()==="BROWSER",X=G(S,C)&&z&&K;if(X){var Z=E.get({url:S,params:Q,method:H});if(Z)return Z=Z.clone(),Z.useCache=!0,d.res=Z,b()}var oe;return k>0?oe=Promise.race([cancel2Throw(C),W(S,C),timeout2Throw(k,$,d.req)]):oe=Promise.race([cancel2Throw(C),W(S,C)]),P.forEach(function(he){oe=oe.then(function(J){var le=typeof J.clone=="function"?J.clone():J;return he(le,C)})}),oe.then(function(he){if(X&&he.status===200){var J=he.clone();J.useCache=!0,E.set({url:S,params:Q,method:H},J,Y)}return d.res=he,b()})}function parseResponseMiddleware(d,b){var A;return b().then(function(){if(d){var w=d.res,C=w===void 0?{}:w,x=d.req,S=x===void 0?{}:x,E=S||{},P=E.options;P=P===void 0?{}:P;var B=P.responseType,k=B===void 0?"json":B,$=P.charset,I=$===void 0?"utf8":$;P.getResponse;var D=P.throwErrIfParseFail,F=D===void 0?!1:D,z=P.parseResponse,L=z===void 0?!0:z;if(L&&!(!C||!C.clone)){if(A=getEnv()==="BROWSER"?C.clone():C,A.useCache=C.useCache||!1,I==="gbk")try{return C.blob().then(readerGBK).then(function(H){return safeJsonParse(H,!1,A,S)})}catch(H){throw new ResponseError(A,H.message,null,S,"ParseError")}else if(k==="json")return C.text().then(function(H){return safeJsonParse(H,F,A,S)});try{return C[k]()}catch(H){throw new ResponseError(A,"responseType not support",null,S,"ParseError")}}}}).then(function(w){if(d){d.res;var C=d.req,x=C===void 0?{}:C,S=x||{},E=S.options;E=E===void 0?{}:E;var P=E.getResponse,B=P===void 0?!1:P;if(A){if(A.status>=200&&A.status<300){if(B){d.res={data:w,response:A};return}d.res=w;return}throw new ResponseError(A,"http error",w,x,"HttpError")}}}).catch(function(w){if(w instanceof RequestError||w instanceof ResponseError)throw w;var C=d.req,x=d.res;throw w.request=w.request||C,w.response=w.response||x,w.type=w.type||w.name,w.data=w.data||void 0,w})}function simplePostMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var w=A.options,C=w===void 0?{}:w,x=C.method,S=x===void 0?"get":x;if(["post","put","patch","delete"].indexOf(S.toLowerCase())===-1)return b();var E=C.requestType,P=E===void 0?"json":E,B=C.data;if(B){var k=Object.prototype.toString.call(B);k==="[object Object]"||k==="[object Array]"?P==="json"?(C.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},C.headers),C.body=JSON.stringify(B)):P==="form"&&(C.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},C.headers),C.body=reqStringify(B)):(C.headers=_objectSpread2({Accept:"application/json"},C.headers),C.body=B)}return d.req.options=C,b()}function paramsSerialize(d,b){var A,w;if(d)if(b)A=b(d);else if(isURLSearchParams(d))A=d.toString();else if(isArray$3(d))w=[],forEach2ObjArr(d,function(x){x===null||typeof x>"u"?w.push(x):w.push(isObject$4(x)?JSON.stringify(x):x)}),A=reqStringify(w);else{w={},forEach2ObjArr(d,function(x,S){var E=x;x===null||typeof x>"u"?w[S]=x:isDate(x)?E=x.toISOString():isArray$3(x)?E=x:isObject$4(x)&&(E=JSON.stringify(x)),w[S]=E});var C=reqStringify(w);A=C}return A}function simpleGetMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var w=A.options,C=w===void 0?{}:w,x=C.paramsSerializer,S=C.params,E=d.req;E=E===void 0?{}:E;var P=E.url,B=P===void 0?"":P;C.method=C.method?C.method.toUpperCase():"GET",C.credentials=C.credentials||"same-origin";var k=paramsSerialize(S,x);if(d.req.originUrl=B,k){var $=B.indexOf("?")!==-1?"&":"?";d.req.url="".concat(B).concat($).concat(k)}return d.req.options=C,b()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function d(b){_classCallCheck$1(this,d),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache$1(b),this.initOptions=b,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(d,[{key:"use",value:function(A){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(A,w),this}},{key:"extendOptions",value:function(A){this.initOptions=mergeRequestOptions(this.initOptions,A),this.mapCache.extendOptions(A)}},{key:"dealRequestInterceptors",value:function(A){var w=function(S,E){return S.then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return A.req.url=P.url||A.req.url,A.req.options=P.options||A.req.options,E(A.req.url,A.req.options)})},C=[].concat(_toConsumableArray(d.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors));return C.reduce(w,Promise.resolve()).then(function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return A.req.url=x.url||A.req.url,A.req.options=x.options||A.req.options,Promise.resolve()})}},{key:"request",value:function(A,w){var C=this,x=this.onion,S={req:{url:A,options:_objectSpread2(_objectSpread2({},w),{},{url:A})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(d.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if(typeof A!="string")throw new Error("url MUST be a string");return new Promise(function(E,P){C.dealRequestInterceptors(S).then(function(){return x.execute(S)}).then(function(){E(S.res)}).catch(function(B){var k=S.req.options.errorHandler;if(k)try{var $=k(B);E($)}catch(I){P(I)}else P(B)})})}}],[{key:"requestUse",value:function(A){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof A!="function")throw new TypeError("Interceptor must be function!");w.global?d.requestInterceptors.push(A):this.instanceRequestInterceptors.push(A)}},{key:"responseUse",value:function(A){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof A!="function")throw new TypeError("Interceptor must be function!");w.global?d.responseInterceptors.push(A):this.instanceResponseInterceptors.push(A)}}]),d}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(d){this.message=d}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken(d){if(typeof d!="function")throw new TypeError("executor must be a function.");var b;this.promise=new Promise(function(C){b=C});var A=this;d(function(C){A.reason||(A.reason=new Cancel(C),b(A.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken.source=function(){var b,A=new CancelToken(function(C){b=C});return{token:A,cancel:b}};function isCancel(d){return!!(d&&d.__CANCEL__)}var request$1=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=new Core(b),w=function(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=mergeRequestOptions(A.initOptions,E);return A.request(S,P)};w.use=A.use.bind(A),w.fetchIndex=A.fetchIndex,w.interceptors={request:{use:Core.requestUse.bind(A)},response:{use:Core.responseUse.bind(A)}};var C=["get","post","delete","put","patch","head","options","rpc"];return C.forEach(function(x){w[x]=function(S,E){return w(S,_objectSpread2(_objectSpread2({},E),{},{method:x}))}}),w.Cancel=Cancel,w.CancelToken=CancelToken,w.isCancel=isCancel,w.extendOptions=A.extendOptions.bind(A),w.middlewares={instance:A.onion.middlewares,defaultInstance:A.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},w},extend=function(b){return request$1(b)};request$1({parseResponse:!1});request$1({});const whiteUrl=()=>({"/sysMusicScoreCategories/queryTree":"/eduMusicScore/queryTree","/sysMusicScoreAccompaniment/queryPage":queryString.parse(location.search).platform?"/sysMusicScoreAccompaniment/queryPage":"/eduMusicScore/queryPage","/sysMusicScoreAccompaniment/queryPageLimit":"/eduMusicScore/queryPageLimit","/sysMusicScoreAccompaniment/querySubjectIds":"/eduMusicScore/querySubjectIds"});var assign=make_assign(),create$2=make_create(),trim$1=make_trim(),Global$5=typeof window<"u"?window:commonjsGlobal,util$6={assign,create:create$2,trim:trim$1,bind:bind$1,slice:slice$1,each:each$7,map:map$1,pluck:pluck$1,isList:isList$1,isFunction:isFunction$3,isObject:isObject$3,Global:Global$5};function make_assign(){return Object.assign?Object.assign:function(b,A,w,C){for(var x=1;x<arguments.length;x++)each$7(Object(arguments[x]),function(S,E){b[E]=S});return b}}function make_create(){if(Object.create)return function(b,A,w,C){var x=slice$1(arguments,1);return assign.apply(this,[Object.create(b)].concat(x))};{let d=function(){};return function(A,w,C,x){var S=slice$1(arguments,1);return d.prototype=A,assign.apply(this,[new d].concat(S))}}}function make_trim(){return String.prototype.trim?function(b){return String.prototype.trim.call(b)}:function(b){return b.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function bind$1(d,b){return function(){return b.apply(d,Array.prototype.slice.call(arguments,0))}}function slice$1(d,b){return Array.prototype.slice.call(d,b||0)}function each$7(d,b){pluck$1(d,function(A,w){return b(A,w),!1})}function map$1(d,b){var A=isList$1(d)?[]:{};return pluck$1(d,function(w,C){return A[C]=b(w,C),!1}),A}function pluck$1(d,b){if(isList$1(d)){for(var A=0;A<d.length;A++)if(b(d[A],A))return d[A]}else for(var w in d)if(d.hasOwnProperty(w)&&b(d[w],w))return d[w]}function isList$1(d){return d!=null&&typeof d!="function"&&typeof d.length=="number"}function isFunction$3(d){return d&&{}.toString.call(d)==="[object Function]"}function isObject$3(d){return d&&{}.toString.call(d)==="[object Object]"}var util$5=util$6,slice=util$5.slice,pluck=util$5.pluck,each$6=util$5.each,bind=util$5.bind,create$1=util$5.create,isList=util$5.isList,isFunction$2=util$5.isFunction,isObject$2=util$5.isObject,storeEngine={createStore},storeAPI={version:"2.0.12",enabled:!1,get:function(d,b){var A=this.storage.read(this._namespacePrefix+d);return this._deserialize(A,b)},set:function(d,b){return b===void 0?this.remove(d):(this.storage.write(this._namespacePrefix+d,this._serialize(b)),b)},remove:function(d){this.storage.remove(this._namespacePrefix+d)},each:function(d){var b=this;this.storage.each(function(A,w){d.call(b,b._deserialize(A),(w||"").replace(b._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(d){return this._namespacePrefix=="__storejs_"+d+"_"},createStore:function(){return createStore.apply(this,arguments)},addPlugin:function(d){this._addPlugin(d)},namespace:function(d){return createStore(this.storage,this.plugins,d)}};function _warn(){var d=typeof console>"u"?null:console;if(d){var b=d.warn?d.warn:d.log;b.apply(d,arguments)}}function createStore(d,b,A){A||(A=""),d&&!isList(d)&&(d=[d]),b&&!isList(b)&&(b=[b]);var w=A?"__storejs_"+A+"_":"",C=A?new RegExp("^"+w):null,x=/^[a-zA-Z0-9_\-]*$/;if(!x.test(A))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var S={_namespacePrefix:w,_namespaceRegexp:C,_testStorage:function(P){try{var B="__storejs__test__";P.write(B,B);var k=P.read(B)===B;return P.remove(B),k}catch($){return!1}},_assignPluginFnProp:function(P,B){var k=this[B];this[B]=function(){var I=slice(arguments,0),D=this;function F(){if(k)return each$6(arguments,function(L,H){I[H]=L}),k.apply(D,I)}var z=[F].concat(I);return P.apply(D,z)}},_serialize:function(P){return JSON.stringify(P)},_deserialize:function(P,B){if(!P)return B;var k="";try{k=JSON.parse(P)}catch($){k=P}return k!==void 0?k:B},_addStorage:function(P){this.enabled||this._testStorage(P)&&(this.storage=P,this.enabled=!0)},_addPlugin:function(P){var B=this;if(isList(P)){each$6(P,function(I){B._addPlugin(I)});return}var k=pluck(this.plugins,function(I){return P===I});if(!k){if(this.plugins.push(P),!isFunction$2(P))throw new Error("Plugins must be function values that return objects");var $=P.call(this);if(!isObject$2($))throw new Error("Plugins must return an object of function properties");each$6($,function(I,D){if(!isFunction$2(I))throw new Error("Bad plugin property: "+D+" from plugin "+P.name+". Plugins should only return functions.");B._assignPluginFnProp(I,D)})}},addStorage:function(P){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(P)}},E=create$1(S,storeAPI,{plugins:[]});return E.raw={},each$6(E,function(P,B){isFunction$2(P)&&(E.raw[B]=bind(E,P))}),each$6(d,function(P){E._addStorage(P)}),each$6(b,function(P){E._addPlugin(P)}),E}var util$4=util$6,Global$4=util$4.Global,localStorage_1={name:"localStorage",read:read$5,write:write$5,each:each$5,remove:remove$5,clearAll:clearAll$5};function localStorage$1(){return Global$4.localStorage}function read$5(d){return localStorage$1().getItem(d)}function write$5(d,b){return localStorage$1().setItem(d,b)}function each$5(d){for(var b=localStorage$1().length-1;b>=0;b--){var A=localStorage$1().key(b);d(read$5(A),A)}}function remove$5(d){return localStorage$1().removeItem(d)}function clearAll$5(){return localStorage$1().clear()}var util$3=util$6,Global$3=util$3.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$4,write:write$4,each:each$4,remove:remove$4,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$4(d){return globalStorage[d]}function write$4(d,b){globalStorage[d]=b}function each$4(d){for(var b=globalStorage.length-1;b>=0;b--){var A=globalStorage.key(b);d(globalStorage[A],A)}}function remove$4(d){return globalStorage.removeItem(d)}function clearAll$4(){each$4(function(d,b){delete globalStorage[d]})}var util$2=util$6,Global$2=util$2.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$3,read:read$3,each:each$3,remove:remove$3,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$3(d,b){if(!disable){var A=fixKey(d);_withStorageEl(function(w){w.setAttribute(A,b),w.save(storageName)})}}function read$3(d){if(!disable){var b=fixKey(d),A=null;return _withStorageEl(function(w){A=w.getAttribute(b)}),A}}function each$3(d){_withStorageEl(function(b){for(var A=b.XMLDocument.documentElement.attributes,w=A.length-1;w>=0;w--){var C=A[w];d(b.getAttribute(C.name),C.name)}})}function remove$3(d){var b=fixKey(d);_withStorageEl(function(A){A.removeAttribute(b),A.save(storageName)})}function clearAll$3(){_withStorageEl(function(d){var b=d.XMLDocument.documentElement.attributes;d.load(storageName);for(var A=b.length-1;A>=0;A--)d.removeAttribute(b[A].name);d.save(storageName)})}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fixKey(d){return d.replace(/^\d/,"___$&").replace(forbiddenCharsRegex,"___")}function _makeIEStorageElFunction(){if(!doc$1||!doc$1.documentElement||!doc$1.documentElement.addBehavior)return null;var d="script",b,A,w;try{A=new ActiveXObject("htmlfile"),A.open(),A.write("<"+d+">document.w=window</"+d+'><iframe src="/favicon.ico"></iframe>'),A.close(),b=A.w.frames[0].document,w=b.createElement("div")}catch(C){w=doc$1.createElement("div"),b=doc$1.body}return function(C){var x=[].slice.call(arguments,0);x.unshift(w),b.appendChild(w),w.addBehavior("#default#userData"),w.load(storageName),C.apply(this,x),b.removeChild(w)}}var util$1=util$6,Global$1=util$1.Global,trim=util$1.trim,cookieStorage={name:"cookieStorage",read:read$2,write:write$2,each:each$2,remove:remove$2,clearAll:clearAll$2},doc=Global$1.document;function read$2(d){if(!d||!_has(d))return null;var b="(?:^|.*;\\s*)"+escape(d).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(b),"$1"))}function each$2(d){for(var b=doc.cookie.split(/; ?/g),A=b.length-1;A>=0;A--)if(trim(b[A])){var w=b[A].split("="),C=unescape(w[0]),x=unescape(w[1]);d(x,C)}}function write$2(d,b){d&&(doc.cookie=escape(d)+"="+escape(b)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function remove$2(d){!d||!_has(d)||(doc.cookie=escape(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function clearAll$2(){each$2(function(d,b){remove$2(b)})}function _has(d){return new RegExp("(?:^|;\\s*)"+escape(d).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(doc.cookie)}var util=util$6,Global=util.Global,sessionStorage_1={name:"sessionStorage",read:read$1,write:write$1,each:each$1,remove:remove$1,clearAll:clearAll$1};function sessionStorage$1(){return Global.sessionStorage}function read$1(d){return sessionStorage$1().getItem(d)}function write$1(d,b){return sessionStorage$1().setItem(d,b)}function each$1(d){for(var b=sessionStorage$1().length-1;b>=0;b--){var A=sessionStorage$1().key(b);d(read$1(A),A)}}function remove$1(d){return sessionStorage$1().removeItem(d)}function clearAll$1(){return sessionStorage$1().clear()}var memoryStorage_1={name:"memoryStorage",read,write,each,remove,clearAll},memoryStorage={};function read(d){return memoryStorage[d]}function write(d,b){memoryStorage[d]=b}function each(d){for(var b in memoryStorage)memoryStorage.hasOwnProperty(b)&&d(memoryStorage[b],b)}function remove(d){delete memoryStorage[d]}function clearAll(d){memoryStorage={}}var all=[localStorage_1,oldFFGlobalStorage,oldIEUserDataStorage,cookieStorage,sessionStorage_1,memoryStorage_1],json2$1={},hasRequiredJson2;function requireJson2(){return hasRequiredJson2||(hasRequiredJson2=1,typeof JSON!="object"&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(d){return d<10?"0"+d:d}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(d){return rx_escapable.lastIndex=0,rx_escapable.test(d)?'"'+d.replace(rx_escapable,function(b){var A=meta[b];return typeof A=="string"?A:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function str(d,b){var A,w,C,x,S=gap,E,P=b[d];switch(P&&typeof P=="object"&&typeof P.toJSON=="function"&&(P=P.toJSON(d)),typeof rep=="function"&&(P=rep.call(b,d,P)),typeof P){case"string":return quote(P);case"number":return isFinite(P)?String(P):"null";case"boolean":case"null":return String(P);case"object":if(!P)return"null";if(gap+=indent,E=[],Object.prototype.toString.apply(P)==="[object Array]"){for(x=P.length,A=0;A<x;A+=1)E[A]=str(A,P)||"null";return C=E.length===0?"[]":gap?"[\n"+gap+E.join(",\n"+gap)+"\n"+S+"]":"["+E.join(",")+"]",gap=S,C}if(rep&&typeof rep=="object")for(x=rep.length,A=0;A<x;A+=1)typeof rep[A]=="string"&&(w=rep[A],C=str(w,P),C&&E.push(quote(w)+(gap?": ":":")+C));else for(w in P)Object.prototype.hasOwnProperty.call(P,w)&&(C=str(w,P),C&&E.push(quote(w)+(gap?": ":":")+C));return C=E.length===0?"{}":gap?"{\n"+gap+E.join(",\n"+gap)+"\n"+S+"}":"{"+E.join(",")+"}",gap=S,C}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(d,b,A){var w;if(gap="",indent="",typeof A=="number")for(w=0;w<A;w+=1)indent+=" ";else typeof A=="string"&&(indent=A);if(rep=b,b&&typeof b!="function"&&(typeof b!="object"||typeof b.length!="number"))throw new Error("JSON.stringify");return str("",{"":d})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(d,b){var A,w,C=d[b];if(C&&typeof C=="object")for(A in C)Object.prototype.hasOwnProperty.call(C,A)&&(w=walk(C,A),w!==void 0?C[A]=w:delete C[A]);return reviver.call(d,b,C)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(d){return"\\u"+("0000"+d.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2];engine.createStore(storages,plugins);const browser=()=>{const d=navigator.userAgent;return{trident:d.indexOf("Trident")>-1,presto:d.indexOf("Presto")>-1,webKit:d.indexOf("AppleWebKit")>-1,gecko:d.indexOf("Gecko")>-1&&d.indexOf("KHTML")==-1,mobile:!!d.match(/AppleWebKit.*Mobile.*/),ios:!!d.match(/Mac OS X/)||/(iPhone|iPad|iPod|iOS)/i.test(d),android:d.indexOf("Android")>-1||d.indexOf("Adr")>-1,iPhone:d.indexOf("ORCHESTRAAPPI")>-1,isApp:d.includes("DAYAAPPA")||d.includes("DAYAAPPI")||d.includes("COLEXIUAPPA")||d.includes("COLEXIUAPPI")||d.includes("ORCHESTRAAPPI")||d.includes("ORCHESTRAAPPA"),isTeacher:d.indexOf("ORCHESTRATEACHER")>-1||d.includes("COLEXIUTEACHER"),isStudent:d.indexOf("ORCHESTRASTUDENT")>-1||d.includes("COLEXIUSTUDENT"),isSchool:d.indexOf("ORCHESTRASCHOOL")>-1,iPad:d.indexOf("iPad")>-1,webApp:d.indexOf("Safari")==-1,weixin:d.indexOf("MicroMessenger")>-1,alipay:d.indexOf("AlipayClient")>-1,huawei:!!d.match(/huawei/i)||!!d.match(/honor/i),xiaomi:!!d.match(/mi\s/i)||!!d.match(/redmi/i)||!!d.match(/mix/i)}},AuthorizationKey="AUTHORIZATION",setToken=d=>{sessionStorage.setItem(AuthorizationKey,d)},getToken=()=>sessionStorage.getItem(AuthorizationKey)||"";function addLight(d,b){const A=parseInt(d,16)+b,w=A>255?255:A;return w.toString(16).length>1?w.toString(16):"0".concat(w.toString(16))}function lighten(d,b){return d=d.indexOf("#")>=0?d.substring(1,d.length):d,b=Math.trunc(255*b/100),"#".concat(addLight(d.substring(0,2),b)).concat(addLight(d.substring(2,4),b)).concat(addLight(d.substring(4,6),b))}function downloadFile(d,b){var A=document.createElement("a");document.body.appendChild(A),A.setAttribute("style","display: none;"),A.href=d,A.download=b||"output.wav",A.click(),window.URL.revokeObjectURL(d),document.body.removeChild(A)}const apiRouter=whiteUrl();browser();const request=extend({requestType:"form",timeout:1e4});request.interceptors.request.use((d,b)=>{const A=storeData.proxy+storeData.platformApi;storeData.platformType==="WEB"&&apiRouter[d]&&(d=apiRouter[d]);const w=getToken(),C={};return w&&(C.Authorization=w),{url:A+d,options:{...b,params:b.params,data:b.data,headers:{...b.headers,...C}}}},{global:!1});request.interceptors.response.use(async(d,b)=>{if(d.status>299||d.status<200){const w=d.statusText+", 状态码"+d.status;throw showToast(w),new Error(w)}const A=await d.clone().json();if(A.code!==200&&A.errCode!==0){const w=A.msg||A.message||"处理失败,请重试";if(A.code===5e3)return A;throw A.code===403||A.code===401||showToast(w),new Error(w)}return A},{global:!1});const studentQueryUserInfo=async()=>await request.get("/student/queryUserInfo"),teacherQueryUserInfo=()=>request.get("/user/getUserInfo"),api_musicSheetCreationSave=d=>request.post("/musicSheetCreation/save",{data:d,requestType:"json"}),api_musicSheetCreationPage=d=>request.post("/musicSheetCreation/page",{data:d,requestType:"json"}),api_musicSheetCreationRemove=d=>request.post("/musicSheetCreation/remove?id="+d),api_musicSheetCreationDetail=d=>request.get("/musicSheetCreation/detail/".concat(d)),api_musicSheetCreationUpdate=d=>request.post("/musicSheetCreation/update",{data:d,requestType:"json"}),api_subjectList=()=>request.post("/subject/list");let onceCbs=[];const paramsMap=new WeakMap;function flushOnceCallbacks(){onceCbs.forEach(d=>d(...paramsMap.get(d))),onceCbs=[]}function beforeNextFrameOnce(d,...b){paramsMap.set(d,b),!onceCbs.includes(d)&&onceCbs.push(d)===1&&requestAnimationFrame(flushOnceCallbacks)}function happensIn(d,b){let{target:A}=d;for(;A;){if(A.dataset&&A.dataset[b]!==void 0)return!0;A=A.parentElement}return!1}function getPreciseEventTarget(d){return d.composedPath()[0]||null}function parseResponsiveProp(d){if(typeof d=="number")return{"":d.toString()};const b={};return d.split(/ +/).forEach(A=>{if(A==="")return;const[w,C]=A.split(":");C===void 0?b[""]=w:b[w]=C}),b}function parseResponsivePropValue(d,b){var A;if(d==null)return;const w=parseResponsiveProp(d);if(b===void 0)return w[""];if(typeof b=="string")return(A=w[b])!==null&&A!==void 0?A:w[""];if(Array.isArray(b)){for(let C=b.length-1;C>=0;--C){const x=b[C];if(x in w)return w[x]}return w[""]}else{let C,x=-1;return Object.keys(w).forEach(S=>{const E=Number(S);!Number.isNaN(E)&&b>=E&&E>=x&&(x=E,C=w[S])}),C}}function depx(d){return typeof d=="string"?d.endsWith("px")?Number(d.slice(0,d.length-2)):Number(d):d}function pxfy(d){if(d!=null)return typeof d=="number"?"".concat(d,"px"):d.endsWith("px")?d:"".concat(d,"px")}function getMargin(d,b){const A=d.trim().split(/\s+/g),w={top:A[0]};switch(A.length){case 1:w.right=A[0],w.bottom=A[0],w.left=A[0];break;case 2:w.right=A[1],w.left=A[1],w.bottom=A[0];break;case 3:w.right=A[1],w.bottom=A[2],w.left=A[1];break;case 4:w.right=A[1],w.bottom=A[2],w.left=A[3];break;default:throw new Error("[seemly/getMargin]:"+d+" is not a valid value.")}return b===void 0?w:w[b]}function getGap(d,b){const[A,w]=d.split(" ");return b?b==="row"?A:w:{row:A,col:w||A}}const colors={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},prefix$1="^\\s*",suffix$1="\\s*$",float="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",hex="([0-9A-Fa-f])",dhex="([0-9A-Fa-f]{2})",rgbRegex=new RegExp("".concat(prefix$1,"rgb\\s*\\(").concat(float,",").concat(float,",").concat(float,"\\)").concat(suffix$1)),rgbaRegex=new RegExp("".concat(prefix$1,"rgba\\s*\\(").concat(float,",").concat(float,",").concat(float,",").concat(float,"\\)").concat(suffix$1)),sHexRegex=new RegExp("".concat(prefix$1,"#").concat(hex).concat(hex).concat(hex).concat(suffix$1)),hexRegex=new RegExp("".concat(prefix$1,"#").concat(dhex).concat(dhex).concat(dhex).concat(suffix$1)),sHexaRegex=new RegExp("".concat(prefix$1,"#").concat(hex).concat(hex).concat(hex).concat(hex).concat(suffix$1)),hexaRegex=new RegExp("".concat(prefix$1,"#").concat(dhex).concat(dhex).concat(dhex).concat(dhex).concat(suffix$1));function parseHex(d){return parseInt(d,16)}function rgba(d){try{let b;if(b=hexRegex.exec(d))return[parseHex(b[1]),parseHex(b[2]),parseHex(b[3]),1];if(b=rgbRegex.exec(d))return[roundChannel(b[1]),roundChannel(b[5]),roundChannel(b[9]),1];if(b=rgbaRegex.exec(d))return[roundChannel(b[1]),roundChannel(b[5]),roundChannel(b[9]),roundAlpha(b[13])];if(b=sHexRegex.exec(d))return[parseHex(b[1]+b[1]),parseHex(b[2]+b[2]),parseHex(b[3]+b[3]),1];if(b=hexaRegex.exec(d))return[parseHex(b[1]),parseHex(b[2]),parseHex(b[3]),roundAlpha(parseHex(b[4])/255)];if(b=sHexaRegex.exec(d))return[parseHex(b[1]+b[1]),parseHex(b[2]+b[2]),parseHex(b[3]+b[3]),roundAlpha(parseHex(b[4]+b[4])/255)];if(d in colors)return rgba(colors[d]);throw new Error("[seemly/rgba]: Invalid color value ".concat(d,"."))}catch(b){throw b}}function normalizeAlpha(d){return d>1?1:d<0?0:d}function stringifyRgba(d,b,A,w){return"rgba(".concat(roundChannel(d),", ").concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(normalizeAlpha(w),")")}function compositeChannel(d,b,A,w,C){return roundChannel((d*b*(1-w)+A*w)/C)}function composite(d,b){Array.isArray(d)||(d=rgba(d)),Array.isArray(b)||(b=rgba(b));const A=d[3],w=b[3],C=roundAlpha(A+w-A*w);return stringifyRgba(compositeChannel(d[0],A,b[0],w,C),compositeChannel(d[1],A,b[1],w,C),compositeChannel(d[2],A,b[2],w,C),C)}function changeColor(d,b){const[A,w,C,x=1]=Array.isArray(d)?d:rgba(d);return b.alpha?stringifyRgba(A,w,C,b.alpha):stringifyRgba(A,w,C,x)}function scaleColor(d,b){const[A,w,C,x=1]=Array.isArray(d)?d:rgba(d),{lightness:S=1,alpha:E=1}=b;return toRgbaString([A*S,w*S,C*S,x*E])}function roundAlpha(d){const b=Math.round(Number(d)*100)/100;return b>1?1:b<0?0:b}function roundChannel(d){const b=Math.round(Number(d));return b>255?255:b<0?0:b}function toRgbaString(d){const[b,A,w]=d;return 3 in d?"rgba(".concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(roundChannel(w),", ").concat(roundAlpha(d[3]),")"):"rgba(".concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(roundChannel(w),", 1)")}function createId(d=8){return Math.random().toString(16).slice(2,2+d)}function getSlot$1(d,b="default",A=[]){const C=d.$slots[b];return C===void 0?A:C()}function keep(d,b=[],A){const w={};return b.forEach(C=>{w[C]=d[C]}),Object.assign(w,A)}function omit(d,b=[],A){const w={};return Object.getOwnPropertyNames(d).forEach(x=>{b.includes(x)||(w[x]=d[x])}),Object.assign(w,A)}function flatten$4(d,b=!0,A=[]){return d.forEach(w=>{if(w!==null){if(typeof w!="object"){(typeof w=="string"||typeof w=="number")&&A.push(createTextVNode(String(w)));return}if(Array.isArray(w)){flatten$4(w,b,A);return}if(w.type===Fragment){if(w.children===null)return;Array.isArray(w.children)&&flatten$4(w.children,b,A)}else w.type!==Comment&&A.push(w)}}),A}function call$1(d,...b){if(Array.isArray(d))d.forEach(A=>call$1(A,...b));else return d(...b)}function keysOf(d){return Object.keys(d)}const render$1=(d,...b)=>typeof d=="function"?d(...b):typeof d=="string"?createTextVNode(d):typeof d=="number"?createTextVNode(String(d)):null;function warn$3(d,b){console.error("[naive/".concat(d,"]: ").concat(b))}function throwError(d,b){throw new Error("[naive/".concat(d,"]: ").concat(b))}function getTitleAttribute(d){switch(typeof d){case"string":return d||void 0;case"number":return String(d);default:return}}function getFirstSlotVNode(d,b="default",A=void 0){const w=d[b];if(!w)return warn$3("getFirstSlotVNode","slot[".concat(b,"] is empty")),null;const C=flatten$4(w(A));return C.length===1?C[0]:(warn$3("getFirstSlotVNode","slot[".concat(b,"] should have exactly one child")),null)}function createRefSetter(d){return b=>{b?d.value=b.$el:d.value=null}}function createInjectionKey(d){return d}function ensureValidVNode(d){return d.some(b=>isVNode(b)?!(b.type===Comment||b.type===Fragment&&!ensureValidVNode(b.children)):!0)?d:null}function resolveSlot(d,b){return d&&ensureValidVNode(d())||b()}function resolveSlotWithProps(d,b,A){return d&&ensureValidVNode(d(b))||A(b)}function resolveWrappedSlot(d,b){const A=d&&ensureValidVNode(d());return b(A||null)}function isSlotEmpty(d){return!(d&&ensureValidVNode(d()))}function mergeEventHandlers(d){const b=d.filter(A=>A!==void 0);if(b.length!==0)return b.length===1?b[0]:A=>{d.forEach(w=>{w&&w(A)})}}function isNodeVShowFalse(d){var b;const A=(b=d.dirs)===null||b===void 0?void 0:b.find(({dir:w})=>w===vShow);return!!(A&&A.value===!1)}const Wrapper=defineComponent({render(){var d,b;return(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)}}),pureNumberRegex=/^(\d|\.)+$/,numberRegex=/(\d|\.)+/;function formatLength(d,{c:b=1,offset:A=0,attachPx:w=!0}={}){if(typeof d=="number"){const C=(d+A)*b;return C===0?"0":"".concat(C,"px")}else if(typeof d=="string")if(pureNumberRegex.test(d)){const C=(Number(d)+A)*b;return w?C===0?"0":"".concat(C,"px"):"".concat(C)}else{const C=numberRegex.exec(d);return C?d.replace(numberRegex,String((Number(C[0])+A)*b)):d}return d}function color2Class(d){return d.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(d){let b=0;for(let A=0;A<d.length;++A)d[A]==="&"&&++b;return b}const separatorRegex=/\s*,(?![^(]*\))\s*/g,extraSpaceRegex=/\s+/g;function resolveSelectorWithAmp(d,b){const A=[];return b.split(separatorRegex).forEach(w=>{let C=ampCount(w);if(C){if(C===1){d.forEach(S=>{A.push(w.replace("&",S))});return}}else{d.forEach(S=>{A.push((S&&S+" ")+w)});return}let x=[w];for(;C--;){const S=[];x.forEach(E=>{d.forEach(P=>{S.push(E.replace("&",P))})}),x=S}x.forEach(S=>A.push(S))}),A}function resolveSelector(d,b){const A=[];return b.split(separatorRegex).forEach(w=>{d.forEach(C=>{A.push((C&&C+" ")+w)})}),A}function parseSelectorPath(d){let b=[""];return d.forEach(A=>{A=A&&A.trim(),A&&(A.includes("&")?b=resolveSelectorWithAmp(b,A):b=resolveSelector(b,A))}),b.join(", ").replace(extraSpaceRegex," ")}function removeElement(d){if(!d)return;const b=d.parentElement;b&&b.removeChild(d)}function queryElement(d){return document.querySelector('style[cssr-id="'.concat(d,'"]'))}function createElement(d){const b=document.createElement("style");return b.setAttribute("cssr-id",d),b}function isMediaOrSupports(d){return d?/^\s*@(s|m)/.test(d):!1}const kebabRegex=/[A-Z]/g;function kebabCase(d){return d.replace(kebabRegex,b=>"-"+b.toLowerCase())}function unwrapProperty(d,b=" "){return typeof d=="object"&&d!==null?" {\n"+Object.entries(d).map(A=>b+" ".concat(kebabCase(A[0]),": ").concat(A[1],";")).join("\n")+"\n"+b+"}":": ".concat(d,";")}function unwrapProperties(d,b,A){return typeof d=="function"?d({context:b.context,props:A}):d}function createStyle(d,b,A,w){if(!b)return"";const C=unwrapProperties(b,A,w);if(!C)return"";if(typeof C=="string")return"".concat(d," {\n").concat(C,"\n}");const x=Object.keys(C);if(x.length===0)return A.config.keepEmptyBlock?d+" {\n}":"";const S=d?[d+" {"]:[];return x.forEach(E=>{const P=C[E];if(E==="raw"){S.push("\n"+P+"\n");return}E=kebabCase(E),P!=null&&S.push(" ".concat(E).concat(unwrapProperty(P)))}),d&&S.push("}"),S.join("\n")}function loopCNodeListWithCallback(d,b,A){d&&d.forEach(w=>{if(Array.isArray(w))loopCNodeListWithCallback(w,b,A);else if(typeof w=="function"){const C=w(b);Array.isArray(C)?loopCNodeListWithCallback(C,b,A):C&&A(C)}else w&&A(w)})}function traverseCNode(d,b,A,w,C,x){const S=d.$;let E="";if(!S||typeof S=="string")isMediaOrSupports(S)?E=S:b.push(S);else if(typeof S=="function"){const k=S({context:w.context,props:C});isMediaOrSupports(k)?E=k:b.push(k)}else if(S.before&&S.before(w.context),!S.$||typeof S.$=="string")isMediaOrSupports(S.$)?E=S.$:b.push(S.$);else if(S.$){const k=S.$({context:w.context,props:C});isMediaOrSupports(k)?E=k:b.push(k)}const P=parseSelectorPath(b),B=createStyle(P,d.props,w,C);E?(A.push("".concat(E," {")),x&&B&&x.insertRule("".concat(E," {\n").concat(B,"\n}\n"))):(x&&B&&x.insertRule(B),!x&&B.length&&A.push(B)),d.children&&loopCNodeListWithCallback(d.children,{context:w.context,props:C},k=>{if(typeof k=="string"){const $=createStyle(P,{raw:k},w,C);x?x.insertRule($):A.push($)}else traverseCNode(k,b,A,w,C,x)}),b.pop(),E&&A.push("}"),S&&S.after&&S.after(w.context)}function render(d,b,A,w=!1){const C=[];return traverseCNode(d,[],C,b,A,w?d.instance.__styleSheet:void 0),w?"":C.join("\n\n")}function murmur2(d){for(var b=0,A,w=0,C=d.length;C>=4;++w,C-=4)A=d.charCodeAt(w)&255|(d.charCodeAt(++w)&255)<<8|(d.charCodeAt(++w)&255)<<16|(d.charCodeAt(++w)&255)<<24,A=(A&65535)*1540483477+((A>>>16)*59797<<16),A^=A>>>24,b=(A&65535)*1540483477+((A>>>16)*59797<<16)^(b&65535)*1540483477+((b>>>16)*59797<<16);switch(C){case 3:b^=(d.charCodeAt(w+2)&255)<<16;case 2:b^=(d.charCodeAt(w+1)&255)<<8;case 1:b^=d.charCodeAt(w)&255,b=(b&65535)*1540483477+((b>>>16)*59797<<16)}return b^=b>>>13,b=(b&65535)*1540483477+((b>>>16)*59797<<16),((b^b>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function unmount(d,b,A){const{els:w}=b;if(A===void 0)w.forEach(removeElement),b.els=[];else{const C=queryElement(A);C&&w.includes(C)&&(removeElement(C),b.els=w.filter(x=>x!==C))}}function addElementToList(d,b){d.push(b)}function mount(d,b,A,w,C,x,S,E,P){if(x&&!P){if(A===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const I=window.__cssrContext;I[A]||(I[A]=!0,render(b,d,w,x));return}let B;if(A===void 0&&(B=b.render(w),A=murmur2(B)),P){P.adapter(A,B!=null?B:b.render(w));return}const k=queryElement(A);if(k!==null&&!S)return k;const $=k!=null?k:createElement(A);if(B===void 0&&(B=b.render(w)),$.textContent=B,k!==null)return k;if(E){const I=document.head.querySelector('meta[name="'.concat(E,'"]'));if(I)return document.head.insertBefore($,I),addElementToList(b.els,$),$}return C?document.head.insertBefore($,document.head.querySelector("style, link")):document.head.appendChild($),addElementToList(b.els,$),$}function wrappedRender(d){return render(this,this.instance,d)}function wrappedMount(d={}){const{id:b,ssr:A,props:w,head:C=!1,silent:x=!1,force:S=!1,anchorMetaName:E}=d;return mount(this.instance,this,b,w,C,x,S,E,A)}function wrappedUnmount(d={}){const{id:b}=d;unmount(this.instance,this,b)}const createCNode=function(d,b,A,w){return{instance:d,$:b,props:A,children:w,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$4=function(d,b,A,w){return Array.isArray(b)?createCNode(d,{$:null},null,b):Array.isArray(A)?createCNode(d,b,null,A):Array.isArray(w)?createCNode(d,b,A,w):createCNode(d,b,A,null)};function CssRender(d={}){let b=null;const A={c:(...w)=>c$4(A,...w),use:(w,...C)=>w.install(A,...C),find:queryElement,context:{},config:d,get __styleSheet(){if(!b){const w=document.createElement("style");return document.head.appendChild(w),b=document.styleSheets[document.styleSheets.length-1],b}return b}};return A}function exists(d,b){if(d===void 0)return!1;if(b){const{context:{ids:A}}=b;return A.has(d)}return queryElement(d)!==null}function plugin$1(d){let b=".",A="__",w="--",C;if(d){let F=d.blockPrefix;F&&(b=F),F=d.elementPrefix,F&&(A=F),F=d.modifierPrefix,F&&(w=F)}const x={install(F){C=F.c;const z=F.context;z.bem={},z.bem.b=null,z.bem.els=null}};function S(F){let z,L;return{before(H){z=H.bem.b,L=H.bem.els,H.bem.els=null},after(H){H.bem.b=z,H.bem.els=L},$({context:H,props:Q}){return F=typeof F=="string"?F:F({context:H,props:Q}),H.bem.b=F,"".concat((Q==null?void 0:Q.bPrefix)||b).concat(H.bem.b)}}}function E(F){let z;return{before(L){z=L.bem.els},after(L){L.bem.els=z},$({context:L,props:H}){return F=typeof F=="string"?F:F({context:L,props:H}),L.bem.els=F.split(",").map(Q=>Q.trim()),L.bem.els.map(Q=>"".concat((H==null?void 0:H.bPrefix)||b).concat(L.bem.b).concat(A).concat(Q)).join(", ")}}}function P(F){return{$({context:z,props:L}){F=typeof F=="string"?F:F({context:z,props:L});const H=F.split(",").map(U=>U.trim());function Q(U){return H.map(G=>"&".concat((L==null?void 0:L.bPrefix)||b).concat(z.bem.b).concat(U!==void 0?"".concat(A).concat(U):"").concat(w).concat(G)).join(", ")}const Y=z.bem.els;return Y!==null?Q(Y[0]):Q()}}}function B(F){return{$({context:z,props:L}){F=typeof F=="string"?F:F({context:z,props:L});const H=z.bem.els;return"&:not(".concat((L==null?void 0:L.bPrefix)||b).concat(z.bem.b).concat(H!==null&&H.length>0?"".concat(A).concat(H[0]):"").concat(w).concat(F,")")}}}return Object.assign(x,{cB:(...F)=>C(S(F[0]),F[1],F[2]),cE:(...F)=>C(E(F[0]),F[1],F[2]),cM:(...F)=>C(P(F[0]),F[1],F[2]),cNotM:(...F)=>C(B(F[0]),F[1],F[2])}),x}function createKey(d,b){return d+(b==="default"?"":b.replace(/^[a-z]/,A=>A.toUpperCase()))}createKey("abc","def");const namespace="n",prefix=".".concat(namespace,"-"),elementPrefix="__",modifierPrefix="--",cssr=CssRender(),plugin=plugin$1({blockPrefix:prefix,elementPrefix,modifierPrefix});cssr.use(plugin);const{c:c$3,find}=cssr,{cB,cE,cM,cNotM}=plugin;function insideModal(d){return c$3(({props:{bPrefix:b}})=>"".concat(b||prefix,"modal, ").concat(b||prefix,"drawer"),[d])}function insidePopover(d){return c$3(({props:{bPrefix:b}})=>"".concat(b||prefix,"popover"),[d])}function asModal(d){return c$3(({props:{bPrefix:b}})=>"&".concat(b||prefix,"modal"),d)}const cCB=(...d)=>c$3(">",[cB(...d)]);let _isJsdom;function isJsdom(){return _isJsdom===void 0&&(_isJsdom=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_isJsdom}const isBrowser$2=typeof document<"u"&&typeof window<"u",eventSet=new WeakSet;function markEventEffectPerformed(d){eventSet.add(d)}function eventEffectNotPerformed(d){return!eventSet.has(d)}function useDeferredTrue(d,b,A){if(!b)return d;const w=ref(d.value);let C=null;return watch(d,x=>{C!==null&&window.clearTimeout(C),x===!0?A&&!A.value?w.value=!0:C=window.setTimeout(()=>{w.value=!0},b):w.value=!1}),w}function useFalseUntilTruthy(d){const b=ref(!!d.value);if(b.value)return readonly(b);const A=watch(d,w=>{w&&(b.value=!0,A())});return readonly(b)}function useMemo(d){const b=computed(d),A=ref(b.value);return watch(b,w=>{A.value=w}),typeof d=="function"?A:{__v_isRef:!0,get value(){return A.value},set value(w){d.set(w)}}}function hasInstance(){return getCurrentInstance()!==null}const isBrowser$1=typeof window<"u";let fontsReady,isFontReady;const init=()=>{var d,b;fontsReady=isBrowser$1?(b=(d=document)===null||d===void 0?void 0:d.fonts)===null||b===void 0?void 0:b.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init();function onFontsReady(d){if(isFontReady)return;let b=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{b||d()})}),onBeforeUnmount(()=>{b=!0})}function getEventTarget(d){return d.composedPath()[0]}const traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(d,b,A){if(d==="mousemoveoutside"){const w=C=>{b.contains(getEventTarget(C))||A(C)};return{mousemove:w,touchstart:w}}else if(d==="clickoutside"){let w=!1;const C=S=>{w=!b.contains(getEventTarget(S))},x=S=>{w&&(b.contains(getEventTarget(S))||A(S))};return{mousedown:C,mouseup:x,touchstart:C,touchend:x}}return console.error("[evtd/create-trap-handler]: name `".concat(d,"` is invalid. This could be a bug of evtd.")),{}}function ensureTrapHandlers(d,b,A){const w=traps[d];let C=w.get(b);C===void 0&&w.set(b,C=new WeakMap);let x=C.get(A);return x===void 0&&C.set(A,x=createTrapHandler(d,b,A)),x}function trapOn(d,b,A,w){if(d==="mousemoveoutside"||d==="clickoutside"){const C=ensureTrapHandlers(d,b,A);return Object.keys(C).forEach(x=>{on(x,document,C[x],w)}),!0}return!1}function trapOff(d,b,A,w){if(d==="mousemoveoutside"||d==="clickoutside"){const C=ensureTrapHandlers(d,b,A);return Object.keys(C).forEach(x=>{off(x,document,C[x],w)}),!0}return!1}function createDelegate(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const d=new WeakMap,b=new WeakMap;function A(){d.set(this,!0)}function w(){d.set(this,!0),b.set(this,!0)}function C(K,X,Z){const oe=K[X];return K[X]=function(){return Z.apply(K,arguments),oe.apply(K,arguments)},K}function x(K,X){K[X]=Event.prototype[X]}const S=new WeakMap,E=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function P(){var K;return(K=S.get(this))!==null&&K!==void 0?K:null}function B(K,X){E!==void 0&&Object.defineProperty(K,"currentTarget",{configurable:!0,enumerable:!0,get:X!=null?X:E.get})}const k={bubble:{},capture:{}},$={};function I(){const K=function(X){const{type:Z,eventPhase:oe,bubbles:he}=X,J=getEventTarget(X);if(oe===2)return;const le=oe===1?"capture":"bubble";let de=J;const me=[];for(;de===null&&(de=window),me.push(de),de!==window;)de=de.parentNode||null;const ne=k.capture[Z],re=k.bubble[Z];if(C(X,"stopPropagation",A),C(X,"stopImmediatePropagation",w),B(X,P),le==="capture"){if(ne===void 0)return;for(let fe=me.length-1;fe>=0&&!d.has(X);--fe){const ce=me[fe],we=ne.get(ce);if(we!==void 0){S.set(X,ce);for(const Fe of we){if(b.has(X))break;Fe(X)}}if(fe===0&&!he&&re!==void 0){const Fe=re.get(ce);if(Fe!==void 0)for(const Ke of Fe){if(b.has(X))break;Ke(X)}}}}else if(le==="bubble"){if(re===void 0)return;for(let fe=0;fe<me.length&&!d.has(X);++fe){const ce=me[fe],we=re.get(ce);if(we!==void 0){S.set(X,ce);for(const Fe of we){if(b.has(X))break;Fe(X)}}}}x(X,"stopPropagation"),x(X,"stopImmediatePropagation"),B(X)};return K.displayName="evtdUnifiedHandler",K}function D(){const K=function(X){const{type:Z,eventPhase:oe}=X;if(oe!==2)return;const he=$[Z];he!==void 0&&he.forEach(J=>J(X))};return K.displayName="evtdUnifiedWindowEventHandler",K}const F=I(),z=D();function L(K,X){const Z=k[K];return Z[X]===void 0&&(Z[X]=new Map,window.addEventListener(X,F,K==="capture")),Z[X]}function H(K){return $[K]===void 0&&($[K]=new Set,window.addEventListener(K,z)),$[K]}function Q(K,X){let Z=K.get(X);return Z===void 0&&K.set(X,Z=new Set),Z}function Y(K,X,Z,oe){const he=k[X][Z];if(he!==void 0){const J=he.get(K);if(J!==void 0&&J.has(oe))return!0}return!1}function U(K,X){const Z=$[K];return!!(Z!==void 0&&Z.has(X))}function G(K,X,Z,oe){let he;if(typeof oe=="object"&&oe.once===!0?he=ne=>{W(K,X,he,oe),Z(ne)}:he=Z,trapOn(K,X,he,oe))return;const le=oe===!0||typeof oe=="object"&&oe.capture===!0?"capture":"bubble",de=L(le,K),me=Q(de,X);if(me.has(he)||me.add(he),X===window){const ne=H(K);ne.has(he)||ne.add(he)}}function W(K,X,Z,oe){if(trapOff(K,X,Z,oe))return;const J=oe===!0||typeof oe=="object"&&oe.capture===!0,le=J?"capture":"bubble",de=L(le,K),me=Q(de,X);if(X===window&&!Y(X,J?"bubble":"capture",K,Z)&&U(K,Z)){const re=$[K];re.delete(Z),re.size===0&&(window.removeEventListener(K,z),$[K]=void 0)}me.has(Z)&&me.delete(Z),me.size===0&&de.delete(X),de.size===0&&(window.removeEventListener(K,F,le==="capture"),k[le][K]=void 0)}return{on:G,off:W}}const{on,off}=createDelegate(),mousePositionRef=ref(null);function clickHandler(d){if(d.clientX>0||d.clientY>0)mousePositionRef.value={x:d.clientX,y:d.clientY};else{const{target:b}=d;if(b instanceof Element){const{left:A,top:w,width:C,height:x}=b.getBoundingClientRect();A>0||w>0?mousePositionRef.value={x:A+C/2,y:w+x/2}:mousePositionRef.value={x:0,y:0}}else mousePositionRef.value=null}}let usedCount$1=0,managable$1=!0;function useClickPosition(){if(!isBrowser$1)return readonly(ref(null));usedCount$1===0&&on("click",document,clickHandler,!0);const d=()=>{usedCount$1+=1};return managable$1&&(managable$1=hasInstance())?(onBeforeMount(d),onBeforeUnmount(()=>{usedCount$1-=1,usedCount$1===0&&off("click",document,clickHandler,!0)})):d(),readonly(mousePositionRef)}const clickedTimeRef=ref(void 0);let usedCount=0;function handleClick(){clickedTimeRef.value=Date.now()}let managable=!0;function useClicked(d){if(!isBrowser$1)return readonly(ref(!1));const b=ref(!1);let A=null;function w(){A!==null&&window.clearTimeout(A)}function C(){w(),b.value=!0,A=window.setTimeout(()=>{b.value=!1},d)}usedCount===0&&on("click",window,handleClick,!0);const x=()=>{usedCount+=1,on("click",window,C,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(x),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off("click",window,handleClick,!0),off("click",window,C,!0),w()})):x(),readonly(b)}function useMergedState(d,b){return watch(d,A=>{A!==void 0&&(b.value=A)}),computed(()=>d.value===void 0?b.value:d.value)}function isMounted(){const d=ref(!1);return onMounted(()=>{d.value=!0}),readonly(d)}function useCompitable(d,b){return computed(()=>{for(const A of b)if(d[A]!==void 0)return d[A];return d[b[b.length-1]]})}const isIos=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function useIsIos(){return isIos}const defaultBreakpointOptions={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function createMediaQuery(d){return"(min-width: ".concat(d,"px)")}const mqlMap={};function useBreakpoints(d=defaultBreakpointOptions){if(!isBrowser$1)return computed(()=>[]);if(typeof window.matchMedia!="function")return computed(()=>[]);const b=ref({}),A=Object.keys(d),w=(C,x)=>{C.matches?b.value[x]=!0:b.value[x]=!1};return A.forEach(C=>{const x=d[C];let S,E;mqlMap[x]===void 0?(S=window.matchMedia(createMediaQuery(x)),S.addEventListener?S.addEventListener("change",P=>{E.forEach(B=>{B(P,C)})}):S.addListener&&S.addListener(P=>{E.forEach(B=>{B(P,C)})}),E=new Set,mqlMap[x]={mql:S,cbs:E}):(S=mqlMap[x].mql,E=mqlMap[x].cbs),E.add(w),S.matches&&E.forEach(P=>{P(S,C)})}),onBeforeUnmount(()=>{A.forEach(C=>{const{cbs:x}=mqlMap[d[C]];x.has(w)&&x.delete(w)})}),computed(()=>{const{value:C}=b;return A.filter(x=>C[x])})}function useKeyboard(d={},b){const A=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:w,keyup:C}=d,x=P=>{switch(P.key){case"Control":A.ctrl=!0;break;case"Meta":A.command=!0,A.win=!0;break;case"Shift":A.shift=!0;break;case"Tab":A.tab=!0;break}w!==void 0&&Object.keys(w).forEach(B=>{if(B!==P.key)return;const k=w[B];if(typeof k=="function")k(P);else{const{stop:$=!1,prevent:I=!1}=k;$&&P.stopPropagation(),I&&P.preventDefault(),k.handler(P)}})},S=P=>{switch(P.key){case"Control":A.ctrl=!1;break;case"Meta":A.command=!1,A.win=!1;break;case"Shift":A.shift=!1;break;case"Tab":A.tab=!1;break}C!==void 0&&Object.keys(C).forEach(B=>{if(B!==P.key)return;const k=C[B];if(typeof k=="function")k(P);else{const{stop:$=!1,prevent:I=!1}=k;$&&P.stopPropagation(),I&&P.preventDefault(),k.handler(P)}})},E=()=>{(b===void 0||b.value)&&(on("keydown",document,x),on("keyup",document,S)),b!==void 0&&watch(b,P=>{P?(on("keydown",document,x),on("keyup",document,S)):(off("keydown",document,x),off("keyup",document,S))})};return hasInstance()?(onBeforeMount(E),onBeforeUnmount(()=>{(b===void 0||b.value)&&(off("keydown",document,x),off("keyup",document,S))})):E(),readonly(A)}const internalSelectionMenuInjectionKey="n-internal-select-menu",internalSelectionMenuBodyInjectionKey="n-internal-select-menu-body",modalBodyInjectionKey="n-modal-body",modalInjectionKey="n-modal",drawerBodyInjectionKey="n-drawer-body",popoverBodyInjectionKey="n-popover-body",teleportDisabled="__disabled__";function useAdjustedTo(d){const b=inject(modalBodyInjectionKey,null),A=inject(drawerBodyInjectionKey,null),w=inject(popoverBodyInjectionKey,null),C=inject(internalSelectionMenuBodyInjectionKey,null),x=ref();if(typeof document<"u"){x.value=document.fullscreenElement;const S=()=>{x.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,S)}),onBeforeUnmount(()=>{off("fullscreenchange",document,S)})}return useMemo(()=>{var S;const{to:E}=d;return E!==void 0?E===!1?teleportDisabled:E===!0?x.value||"body":E:b!=null&&b.value?(S=b.value.$el)!==null&&S!==void 0?S:b.value:A!=null&&A.value?A.value:w!=null&&w.value?w.value:C!=null&&C.value?C.value:E!=null?E:x.value||"body"})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(d,b,A="default"){const w=b[A];if(w===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] is empty."));return w()}function flatten$3(d,b=!0,A=[]){return d.forEach(w=>{if(w!==null){if(typeof w!="object"){(typeof w=="string"||typeof w=="number")&&A.push(createTextVNode(String(w)));return}if(Array.isArray(w)){flatten$3(w,b,A);return}if(w.type===Fragment){if(w.children===null)return;Array.isArray(w.children)&&flatten$3(w.children,b,A)}else w.type!==Comment&&A.push(w)}}),A}function getFirstVNode(d,b,A="default"){const w=b[A];if(w===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] is empty."));const C=flatten$3(w());if(C.length===1)return C[0];throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] should have exactly one child."))}let viewMeasurer=null;function ensureViewBoundingRect(){if(viewMeasurer===null&&(viewMeasurer=document.getElementById("v-binder-view-measurer"),viewMeasurer===null)){viewMeasurer=document.createElement("div"),viewMeasurer.id="v-binder-view-measurer";const{style:d}=viewMeasurer;d.position="fixed",d.left="0",d.right="0",d.top="0",d.bottom="0",d.pointerEvents="none",d.visibility="hidden",document.body.appendChild(viewMeasurer)}return viewMeasurer.getBoundingClientRect()}function getPointRect(d,b){const A=ensureViewBoundingRect();return{top:b,left:d,height:0,width:0,right:A.width-d,bottom:A.height-b}}function getRect$1(d){const b=d.getBoundingClientRect(),A=ensureViewBoundingRect();return{left:b.left-A.left,top:b.top-A.top,bottom:A.height+A.top-b.bottom,right:A.width+A.left-b.right,width:b.width,height:b.height}}function getParentNode(d){return d.nodeType===9?null:d.parentNode}function getScrollParent(d){if(d===null)return null;const b=getParentNode(d);if(b===null)return null;if(b.nodeType===9)return document;if(b.nodeType===1){const{overflow:A,overflowX:w,overflowY:C}=getComputedStyle(b);if(/(auto|scroll|overlay)/.test(A+C+w))return b}return getScrollParent(b)}const Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(d){var b;provide("VBinder",(b=getCurrentInstance())===null||b===void 0?void 0:b.proxy);const A=inject("VBinder",null),w=ref(null),C=H=>{w.value=H,A&&d.syncTargetWithParent&&A.setTargetRef(H)};let x=[];const S=()=>{let H=w.value;for(;H=getScrollParent(H),H!==null;)x.push(H);for(const Q of x)on("scroll",Q,$,!0)},E=()=>{for(const H of x)off("scroll",H,$,!0);x=[]},P=new Set,B=H=>{P.size===0&&S(),P.has(H)||P.add(H)},k=H=>{P.has(H)&&P.delete(H),P.size===0&&E()},$=()=>{beforeNextFrameOnce(I)},I=()=>{P.forEach(H=>H())},D=new Set,F=H=>{D.size===0&&on("resize",window,L),D.has(H)||D.add(H)},z=H=>{D.has(H)&&D.delete(H),D.size===0&&off("resize",window,L)},L=()=>{D.forEach(H=>H())};return onBeforeUnmount(()=>{off("resize",window,L),E()}),{targetRef:w,setTargetRef:C,addScrollListener:B,removeScrollListener:k,addResizeListener:F,removeResizeListener:z}},render(){return getSlot("binder",this.$slots)}}),VBinder=Binder,VTarget=defineComponent({name:"Target",setup(){const{setTargetRef:d,syncTarget:b}=inject("VBinder");return{syncTarget:b,setTargetDirective:{mounted:d,updated:d}}},render(){const{syncTarget:d,setTargetDirective:b}=this;return d?withDirectives(getFirstVNode("follower",this.$slots),[[b]]):getFirstVNode("follower",this.$slots)}}),ctxKey$1="@@mmoContext",mousemoveoutside={mounted(d,{value:b}){d[ctxKey$1]={handler:void 0},typeof b=="function"&&(d[ctxKey$1].handler=b,on("mousemoveoutside",d,b))},updated(d,{value:b}){const A=d[ctxKey$1];typeof b=="function"?A.handler?A.handler!==b&&(off("mousemoveoutside",d,A.handler),A.handler=b,on("mousemoveoutside",d,b)):(d[ctxKey$1].handler=b,on("mousemoveoutside",d,b)):A.handler&&(off("mousemoveoutside",d,A.handler),A.handler=void 0)},unmounted(d){const{handler:b}=d[ctxKey$1];b&&off("mousemoveoutside",d,b),d[ctxKey$1].handler=void 0}},mousemoveoutside$1=mousemoveoutside,ctxKey="@@coContext",clickoutside={mounted(d,{value:b,modifiers:A}){d[ctxKey]={handler:void 0},typeof b=="function"&&(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:A.capture}))},updated(d,{value:b,modifiers:A}){const w=d[ctxKey];typeof b=="function"?w.handler?w.handler!==b&&(off("clickoutside",d,w.handler,{capture:A.capture}),w.handler=b,on("clickoutside",d,b,{capture:A.capture})):(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:A.capture})):w.handler&&(off("clickoutside",d,w.handler,{capture:A.capture}),w.handler=void 0)},unmounted(d,{modifiers:b}){const{handler:A}=d[ctxKey];A&&off("clickoutside",d,A,{capture:b.capture}),d[ctxKey].handler=void 0}},clickoutside$1=clickoutside;function warn$2(d,b){console.error("[vdirs/".concat(d,"]: ").concat(b))}class ZIndexManager{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(b,A){const{elementZIndex:w}=this;if(A!==void 0){b.style.zIndex="".concat(A),w.delete(b);return}const{nextZIndex:C}=this;w.has(b)&&w.get(b)+1===this.nextZIndex||(b.style.zIndex="".concat(C),w.set(b,C),this.nextZIndex=C+1,this.squashState())}unregister(b,A){const{elementZIndex:w}=this;w.has(b)?w.delete(b):A===void 0&&warn$2("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:b}=this;b||(this.nextZIndex=2e3),this.nextZIndex-b>2500&&this.rearrange()}rearrange(){const b=Array.from(this.elementZIndex.entries());b.sort((A,w)=>A[1]-w[1]),this.nextZIndex=2e3,b.forEach(A=>{const w=A[0],C=this.nextZIndex++;"".concat(C)!==w.style.zIndex&&(w.style.zIndex="".concat(C))})}}const zIndexManager=new ZIndexManager,ctx="@@ziContext",zindexable={mounted(d,b){const{value:A={}}=b,{zIndex:w,enabled:C}=A;d[ctx]={enabled:!!C,initialized:!1},C&&(zIndexManager.ensureZIndex(d,w),d[ctx].initialized=!0)},updated(d,b){const{value:A={}}=b,{zIndex:w,enabled:C}=A,x=d[ctx].enabled;C&&!x&&(zIndexManager.ensureZIndex(d,w),d[ctx].initialized=!0),d[ctx].enabled=!!C},unmounted(d,b){if(!d[ctx].initialized)return;const{value:A={}}=b,{zIndex:w}=A;zIndexManager.unregister(d,w)}},zindexable$1=zindexable,ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(d,b){return'<style cssr-id="'.concat(d,'">\n').concat(b,"\n</style>")}function ssrAdapter(d,b){const A=inject(ssrContextKey,null);if(A===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:w,ids:C}=A;C.has(d)||w!==null&&(C.add(d),w.push(createStyleString(d,b)))}const isBrowser=typeof document<"u";function useSsrAdapter(){if(isBrowser)return;const d=inject(ssrContextKey,null);if(d!==null)return{adapter:ssrAdapter,context:d}}function warn$1(d,b){console.error("[vueuc/".concat(d,"]: ").concat(b))}const{c:c$2}=CssRender(),cssrAnchorMetaName$1="vueuc-style";function lowBit(d){return d&-d}class FinweckTree{constructor(b,A){this.l=b,this.min=A;const w=new Array(b+1);for(let C=0;C<b+1;++C)w[C]=0;this.ft=w}add(b,A){if(A===0)return;const{l:w,ft:C}=this;for(b+=1;b<=w;)C[b]+=A,b+=lowBit(b)}get(b){return this.sum(b+1)-this.sum(b)}sum(b){if(b===void 0&&(b=this.l),b<=0)return 0;const{ft:A,min:w,l:C}=this;if(b>C)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let x=b*w;for(;b>0;)x+=A[b],b-=lowBit(b);return x}getBound(b){let A=0,w=this.l;for(;w>A;){const C=Math.floor((A+w)/2),x=this.sum(C);if(x>b){w=C;continue}else if(x<b){if(A===C)return this.sum(A+1)<=b?A+1:C;A=C}else return C}return A}}function resolveTo(d){return typeof d=="string"?document.querySelector(d):d()}const LazyTeleport=defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(d){return{showTeleport:useFalseUntilTruthy(toRef$1(d,"show")),mergedTo:computed(()=>{const{to:b}=d;return b!=null?b:"body"})}},render(){return this.showTeleport?this.disabled?getSlot("lazy-teleport",this.$slots):h$1(Teleport,{disabled:this.disabled,to:this.mergedTo},getSlot("lazy-teleport",this.$slots)):null}}),oppositionPositions={top:"bottom",bottom:"top",left:"right",right:"left"},oppositeAligns={start:"end",center:"center",end:"start"},propToCompare={top:"height",bottom:"height",left:"width",right:"width"},transformOrigins={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},overlapTransformOrigin={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},oppositeAlignCssPositionProps={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},keepOffsetDirection={top:!0,bottom:!1,left:!0,right:!1},cssPositionToOppositeAlign={top:"end",bottom:"start",left:"end",right:"start"};function getPlacementAndOffsetOfFollower(d,b,A,w,C,x){if(!C||x)return{placement:d,top:0,left:0};const[S,E]=d.split("-");let P=E!=null?E:"center",B={top:0,left:0};const k=(D,F,z)=>{let L=0,H=0;const Q=A[D]-b[F]-b[D];return Q>0&&w&&(z?H=keepOffsetDirection[F]?Q:-Q:L=keepOffsetDirection[F]?Q:-Q),{left:L,top:H}},$=S==="left"||S==="right";if(P!=="center"){const D=oppositeAlignCssPositionProps[d],F=oppositionPositions[D],z=propToCompare[D];if(A[z]>b[z]){if(b[D]+b[z]<A[z]){const L=(A[z]-b[z])/2;b[D]<L||b[F]<L?b[D]<b[F]?(P=oppositeAligns[E],B=k(z,F,$)):B=k(z,D,$):P="center"}}else A[z]<b[z]&&b[F]<0&&b[D]>b[F]&&(P=oppositeAligns[E])}else{const D=S==="bottom"||S==="top"?"left":"top",F=oppositionPositions[D],z=propToCompare[D],L=(A[z]-b[z])/2;(b[D]<L||b[F]<L)&&(b[D]>b[F]?(P=cssPositionToOppositeAlign[D],B=k(z,D,$)):(P=cssPositionToOppositeAlign[F],B=k(z,F,$)))}let I=S;return b[S]<A[propToCompare[S]]&&b[S]<b[oppositionPositions[S]]&&(I=oppositionPositions[S]),{placement:P!=="center"?"".concat(I,"-").concat(P):I,left:B.left,top:B.top}}function getProperTransformOrigin(d,b){return b?overlapTransformOrigin[d]:transformOrigins[d]}function getOffset(d,b,A,w,C,x){if(x)switch(d){case"bottom-start":return{top:"".concat(Math.round(A.top-b.top+A.height),"px"),left:"".concat(Math.round(A.left-b.left),"px"),transform:"translateY(-100%)"};case"bottom-end":return{top:"".concat(Math.round(A.top-b.top+A.height),"px"),left:"".concat(Math.round(A.left-b.left+A.width),"px"),transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:"".concat(Math.round(A.top-b.top),"px"),left:"".concat(Math.round(A.left-b.left),"px"),transform:""};case"top-end":return{top:"".concat(Math.round(A.top-b.top),"px"),left:"".concat(Math.round(A.left-b.left+A.width),"px"),transform:"translateX(-100%)"};case"right-start":return{top:"".concat(Math.round(A.top-b.top),"px"),left:"".concat(Math.round(A.left-b.left+A.width),"px"),transform:"translateX(-100%)"};case"right-end":return{top:"".concat(Math.round(A.top-b.top+A.height),"px"),left:"".concat(Math.round(A.left-b.left+A.width),"px"),transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:"".concat(Math.round(A.top-b.top),"px"),left:"".concat(Math.round(A.left-b.left),"px"),transform:""};case"left-end":return{top:"".concat(Math.round(A.top-b.top+A.height),"px"),left:"".concat(Math.round(A.left-b.left),"px"),transform:"translateY(-100%)"};case"top":return{top:"".concat(Math.round(A.top-b.top),"px"),left:"".concat(Math.round(A.left-b.left+A.width/2),"px"),transform:"translateX(-50%)"};case"right":return{top:"".concat(Math.round(A.top-b.top+A.height/2),"px"),left:"".concat(Math.round(A.left-b.left+A.width),"px"),transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:"".concat(Math.round(A.top-b.top+A.height/2),"px"),left:"".concat(Math.round(A.left-b.left),"px"),transform:"translateY(-50%)"};case"bottom":default:return{top:"".concat(Math.round(A.top-b.top+A.height),"px"),left:"".concat(Math.round(A.left-b.left+A.width/2),"px"),transform:"translateX(-50%) translateY(-100%)"}}switch(d){case"bottom-start":return{top:"".concat(Math.round(A.top-b.top+A.height+w),"px"),left:"".concat(Math.round(A.left-b.left+C),"px"),transform:""};case"bottom-end":return{top:"".concat(Math.round(A.top-b.top+A.height+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width+C),"px"),transform:"translateX(-100%)"};case"top-start":return{top:"".concat(Math.round(A.top-b.top+w),"px"),left:"".concat(Math.round(A.left-b.left+C),"px"),transform:"translateY(-100%)"};case"top-end":return{top:"".concat(Math.round(A.top-b.top+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width+C),"px"),transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:"".concat(Math.round(A.top-b.top+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width+C),"px"),transform:""};case"right-end":return{top:"".concat(Math.round(A.top-b.top+A.height+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width+C),"px"),transform:"translateY(-100%)"};case"left-start":return{top:"".concat(Math.round(A.top-b.top+w),"px"),left:"".concat(Math.round(A.left-b.left+C),"px"),transform:"translateX(-100%)"};case"left-end":return{top:"".concat(Math.round(A.top-b.top+A.height+w),"px"),left:"".concat(Math.round(A.left-b.left+C),"px"),transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:"".concat(Math.round(A.top-b.top+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width/2+C),"px"),transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:"".concat(Math.round(A.top-b.top+A.height/2+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width+C),"px"),transform:"translateY(-50%)"};case"left":return{top:"".concat(Math.round(A.top-b.top+A.height/2+w),"px"),left:"".concat(Math.round(A.left-b.left+C),"px"),transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:"".concat(Math.round(A.top-b.top+A.height+w),"px"),left:"".concat(Math.round(A.left-b.left+A.width/2+C),"px"),transform:"translateX(-50%)"}}}const style$s=c$2([c$2(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),c$2(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[c$2("> *",{pointerEvents:"all"})])]),VFollower=defineComponent({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(d){const b=inject("VBinder"),A=useMemo(()=>d.enabled!==void 0?d.enabled:d.show),w=ref(null),C=ref(null),x=()=>{const{syncTrigger:I}=d;I.includes("scroll")&&b.addScrollListener(P),I.includes("resize")&&b.addResizeListener(P)},S=()=>{b.removeScrollListener(P),b.removeResizeListener(P)};onMounted(()=>{A.value&&(P(),x())});const E=useSsrAdapter();style$s.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:E}),onBeforeUnmount(()=>{S()}),onFontsReady(()=>{A.value&&P()});const P=()=>{if(!A.value)return;const I=w.value;if(I===null)return;const D=b.targetRef,{x:F,y:z,overlap:L}=d,H=F!==void 0&&z!==void 0?getPointRect(F,z):getRect$1(D);I.style.setProperty("--v-target-width","".concat(Math.round(H.width),"px")),I.style.setProperty("--v-target-height","".concat(Math.round(H.height),"px"));const{width:Q,minWidth:Y,placement:U,internalShift:G,flip:W}=d;I.setAttribute("v-placement",U),L?I.setAttribute("v-overlap",""):I.removeAttribute("v-overlap");const{style:K}=I;Q==="target"?K.width="".concat(H.width,"px"):Q!==void 0?K.width=Q:K.width="",Y==="target"?K.minWidth="".concat(H.width,"px"):Y!==void 0?K.minWidth=Y:K.minWidth="";const X=getRect$1(I),Z=getRect$1(C.value),{left:oe,top:he,placement:J}=getPlacementAndOffsetOfFollower(U,H,X,G,W,L),le=getProperTransformOrigin(J,L),{left:de,top:me,transform:ne}=getOffset(J,Z,H,he,oe,L);I.setAttribute("v-placement",J),I.style.setProperty("--v-offset-left","".concat(Math.round(oe),"px")),I.style.setProperty("--v-offset-top","".concat(Math.round(he),"px")),I.style.transform="translateX(".concat(de,") translateY(").concat(me,") ").concat(ne),I.style.setProperty("--v-transform-origin",le),I.style.transformOrigin=le};watch(A,I=>{I?(x(),B()):S()});const B=()=>{nextTick().then(P).catch(I=>console.error(I))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(I=>{watch(toRef$1(d,I),P)}),["teleportDisabled"].forEach(I=>{watch(toRef$1(d,I),B)}),watch(toRef$1(d,"syncTrigger"),I=>{I.includes("resize")?b.addResizeListener(P):b.removeResizeListener(P),I.includes("scroll")?b.addScrollListener(P):b.removeScrollListener(P)});const k=isMounted(),$=useMemo(()=>{const{to:I}=d;if(I!==void 0)return I;k.value});return{VBinder:b,mergedEnabled:A,offsetContainerRef:C,followerRef:w,mergedTo:$,syncPosition:P}},render(){return h$1(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var d,b;const A=h$1("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h$1("div",{class:"v-binder-follower-content",ref:"followerRef"},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d))]);return this.zindexable?withDirectives(A,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):A}})}});var resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(d){return d.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(d){return d.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var d;typeof ErrorEvent=="function"?d=new ErrorEvent("error",{message:msg}):(d=document.createEvent("Event"),d.initEvent("error",!1,!1),d.message=msg),window.dispatchEvent(d)},ResizeObserverBoxOptions;(function(d){d.BORDER_BOX="border-box",d.CONTENT_BOX="content-box",d.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(d){return Object.freeze(d)},ResizeObserverSize=function(){function d(b,A){this.inlineSize=b,this.blockSize=A,freeze(this)}return d}(),DOMRectReadOnly=function(){function d(b,A,w,C){return this.x=b,this.y=A,this.width=w,this.height=C,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return d.prototype.toJSON=function(){var b=this,A=b.x,w=b.y,C=b.top,x=b.right,S=b.bottom,E=b.left,P=b.width,B=b.height;return{x:A,y:w,top:C,right:x,bottom:S,left:E,width:P,height:B}},d.fromRect=function(b){return new d(b.x,b.y,b.width,b.height)},d}(),isSVG=function(d){return d instanceof SVGElement&&"getBBox"in d},isHidden=function(d){if(isSVG(d)){var b=d.getBBox(),A=b.width,w=b.height;return!A&&!w}var C=d,x=C.offsetWidth,S=C.offsetHeight;return!(x||S||d.getClientRects().length)},isElement=function(d){var b;if(d instanceof Element)return!0;var A=(b=d==null?void 0:d.ownerDocument)===null||b===void 0?void 0:b.defaultView;return!!(A&&d instanceof A.Element)},isReplacedElement=function(d){switch(d.tagName){case"INPUT":if(d.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},global$1=typeof window<"u"?window:{},cache=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global$1.navigator&&global$1.navigator.userAgent),parseDimension=function(d){return parseFloat(d||"0")},size=function(d,b,A){return d===void 0&&(d=0),b===void 0&&(b=0),A===void 0&&(A=!1),new ResizeObserverSize((A?b:d)||0,(A?d:b)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(d,b){if(b===void 0&&(b=!1),cache.has(d)&&!b)return cache.get(d);if(isHidden(d))return cache.set(d,zeroBoxes),zeroBoxes;var A=getComputedStyle(d),w=isSVG(d)&&d.ownerSVGElement&&d.getBBox(),C=!IE&&A.boxSizing==="border-box",x=verticalRegexp.test(A.writingMode||""),S=!w&&scrollRegexp.test(A.overflowY||""),E=!w&&scrollRegexp.test(A.overflowX||""),P=w?0:parseDimension(A.paddingTop),B=w?0:parseDimension(A.paddingRight),k=w?0:parseDimension(A.paddingBottom),$=w?0:parseDimension(A.paddingLeft),I=w?0:parseDimension(A.borderTopWidth),D=w?0:parseDimension(A.borderRightWidth),F=w?0:parseDimension(A.borderBottomWidth),z=w?0:parseDimension(A.borderLeftWidth),L=$+B,H=P+k,Q=z+D,Y=I+F,U=E?d.offsetHeight-Y-d.clientHeight:0,G=S?d.offsetWidth-Q-d.clientWidth:0,W=C?L+Q:0,K=C?H+Y:0,X=w?w.width:parseDimension(A.width)-W-G,Z=w?w.height:parseDimension(A.height)-K-U,oe=X+L+G+Q,he=Z+H+U+Y,J=freeze({devicePixelContentBoxSize:size(Math.round(X*devicePixelRatio),Math.round(Z*devicePixelRatio),x),borderBoxSize:size(oe,he,x),contentBoxSize:size(X,Z,x),contentRect:new DOMRectReadOnly($,P,X,Z)});return cache.set(d,J),J},calculateBoxSize=function(d,b,A){var w=calculateBoxSizes(d,A),C=w.borderBoxSize,x=w.contentBoxSize,S=w.devicePixelContentBoxSize;switch(b){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return S;case ResizeObserverBoxOptions.BORDER_BOX:return C;default:return x}},ResizeObserverEntry=function(){function d(b){var A=calculateBoxSizes(b);this.target=b,this.contentRect=A.contentRect,this.borderBoxSize=freeze([A.borderBoxSize]),this.contentBoxSize=freeze([A.contentBoxSize]),this.devicePixelContentBoxSize=freeze([A.devicePixelContentBoxSize])}return d}(),calculateDepthForNode=function(d){if(isHidden(d))return 1/0;for(var b=0,A=d.parentNode;A;)b+=1,A=A.parentNode;return b},broadcastActiveObservations=function(){var d=1/0,b=[];resizeObservers.forEach(function(S){if(S.activeTargets.length!==0){var E=[];S.activeTargets.forEach(function(B){var k=new ResizeObserverEntry(B.target),$=calculateDepthForNode(B.target);E.push(k),B.lastReportedSize=calculateBoxSize(B.target,B.observedBox),$<d&&(d=$)}),b.push(function(){S.callback.call(S.observer,E,S.observer)}),S.activeTargets.splice(0,S.activeTargets.length)}});for(var A=0,w=b;A<w.length;A++){var C=w[A];C()}return d},gatherActiveObservationsAtDepth=function(d){resizeObservers.forEach(function(A){A.activeTargets.splice(0,A.activeTargets.length),A.skippedTargets.splice(0,A.skippedTargets.length),A.observationTargets.forEach(function(C){C.isActive()&&(calculateDepthForNode(C.target)>d?A.activeTargets.push(C):A.skippedTargets.push(C))})})},process$1=function(){var d=0;for(gatherActiveObservationsAtDepth(d);hasActiveObservations();)d=broadcastActiveObservations(),gatherActiveObservationsAtDepth(d);return hasSkippedObservations()&&deliverResizeLoopError(),d>0},trigger,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(d){return d()})},queueMicroTask=function(d){if(!trigger){var b=0,A=document.createTextNode(""),w={characterData:!0};new MutationObserver(function(){return notify()}).observe(A,w),trigger=function(){A.textContent="".concat(b?b--:b++)}}callbacks.push(d),trigger()},queueResizeObserver=function(d){queueMicroTask(function(){requestAnimationFrame(d)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time$1=function(d){return d===void 0&&(d=0),Date.now()+d},scheduled=!1,Scheduler=function(){function d(){var b=this;this.stopped=!0,this.listener=function(){return b.schedule()}}return d.prototype.run=function(b){var A=this;if(b===void 0&&(b=CATCH_PERIOD),!scheduled){scheduled=!0;var w=time$1(b);queueResizeObserver(function(){var C=!1;try{C=process$1()}finally{if(scheduled=!1,b=w-time$1(),!isWatching())return;C?A.run(1e3):b>0?A.run(b):A.start()}})}},d.prototype.schedule=function(){this.stop(),this.run()},d.prototype.observe=function(){var b=this,A=function(){return b.observer&&b.observer.observe(document.body,observerConfig)};document.body?A():global$1.addEventListener("DOMContentLoaded",A)},d.prototype.start=function(){var b=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(A){return global$1.addEventListener(A,b.listener,!0)}))},d.prototype.stop=function(){var b=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(A){return global$1.removeEventListener(A,b.listener,!0)}),this.stopped=!0)},d}(),scheduler=new Scheduler,updateCount=function(d){!watching&&d>0&&scheduler.start(),watching+=d,!watching&&scheduler.stop()},skipNotifyOnElement=function(d){return!isSVG(d)&&!isReplacedElement(d)&&getComputedStyle(d).display==="inline"},ResizeObservation=function(){function d(b,A){this.target=b,this.observedBox=A||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return d.prototype.isActive=function(){var b=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=b),this.lastReportedSize.inlineSize!==b.inlineSize||this.lastReportedSize.blockSize!==b.blockSize},d}(),ResizeObserverDetail=function(){function d(b,A){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=b,this.callback=A}return d}(),observerMap=new WeakMap,getObservationIndex=function(d,b){for(var A=0;A<d.length;A+=1)if(d[A].target===b)return A;return-1},ResizeObserverController=function(){function d(){}return d.connect=function(b,A){var w=new ResizeObserverDetail(b,A);observerMap.set(b,w)},d.observe=function(b,A,w){var C=observerMap.get(b),x=C.observationTargets.length===0;getObservationIndex(C.observationTargets,A)<0&&(x&&resizeObservers.push(C),C.observationTargets.push(new ResizeObservation(A,w&&w.box)),updateCount(1),scheduler.schedule())},d.unobserve=function(b,A){var w=observerMap.get(b),C=getObservationIndex(w.observationTargets,A),x=w.observationTargets.length===1;C>=0&&(x&&resizeObservers.splice(resizeObservers.indexOf(w),1),w.observationTargets.splice(C,1),updateCount(-1))},d.disconnect=function(b){var A=this,w=observerMap.get(b);w.observationTargets.slice().forEach(function(C){return A.unobserve(b,C.target)}),w.activeTargets.splice(0,w.activeTargets.length)},d}(),ResizeObserver=function(){function d(b){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof b!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,b)}return d.prototype.observe=function(b,A){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(b))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,b,A)},d.prototype.unobserve=function(b){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(b))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,b)},d.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},d.toString=function(){return"function ResizeObserver () { [polyfill code] }"},d}();class ResizeObserverDelegate{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||ResizeObserver)(this.handleResize),this.elHandlersMap=new Map}handleResize(b){for(const A of b){const w=this.elHandlersMap.get(A.target);w!==void 0&&w(A)}}registerHandler(b,A){this.elHandlersMap.set(b,A),this.observer.observe(b)}unregisterHandler(b){this.elHandlersMap.has(b)&&(this.elHandlersMap.delete(b),this.observer.unobserve(b))}}const resizeObserverManager=new ResizeObserverDelegate,VResizeObserver=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(d){let b=!1;const A=getCurrentInstance().proxy;function w(C){const{onResize:x}=d;x!==void 0&&x(C)}onMounted(()=>{const C=A.$el;if(C===void 0){warn$1("resize-observer","$el does not exist.");return}if(C.nextElementSibling!==C.nextSibling&&C.nodeType===3&&C.nodeValue!==""){warn$1("resize-observer","$el can not be observed (it may be a text node).");return}C.nextElementSibling!==null&&(resizeObserverManager.registerHandler(C.nextElementSibling,w),b=!0)}),onBeforeUnmount(()=>{b&&resizeObserverManager.unregisterHandler(A.$el.nextElementSibling)})},render(){return renderSlot(this.$slots,"default")}});let maybeTouch;function ensureMaybeTouch(){return maybeTouch===void 0&&("matchMedia"in window?maybeTouch=window.matchMedia("(pointer:coarse)").matches:maybeTouch=!1),maybeTouch}let wheelScale;function ensureWheelScale(){return wheelScale===void 0&&(wheelScale="chrome"in window?window.devicePixelRatio:1),wheelScale}const styles$8=c$2(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[c$2("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[c$2("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),VVirtualList=defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(d){const b=useSsrAdapter();styles$8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:b}),onMounted(()=>{const{defaultScrollIndex:he,defaultScrollKey:J}=d;he!=null?F({index:he}):J!=null&&F({key:J})});let A=!1,w=!1;onActivated(()=>{if(A=!1,!w){w=!0;return}F({top:$.value,left:k})}),onDeactivated(()=>{A=!0,w||(w=!0)});const C=computed(()=>{const he=new Map,{keyField:J}=d;return d.items.forEach((le,de)=>{he.set(le[J],de)}),he}),x=ref(null),S=ref(void 0),E=new Map,P=computed(()=>{const{items:he,itemSize:J,keyField:le}=d,de=new FinweckTree(he.length,J);return he.forEach((me,ne)=>{const re=me[le],fe=E.get(re);fe!==void 0&&de.add(ne,fe)}),de}),B=ref(0);let k=0;const $=ref(0),I=useMemo(()=>Math.max(P.value.getBound($.value-depx(d.paddingTop))-1,0)),D=computed(()=>{const{value:he}=S;if(he===void 0)return[];const{items:J,itemSize:le}=d,de=I.value,me=Math.min(de+Math.ceil(he/le+1),J.length-1),ne=[];for(let re=de;re<=me;++re)ne.push(J[re]);return ne}),F=(he,J)=>{if(typeof he=="number"){Q(he,J,"auto");return}const{left:le,top:de,index:me,key:ne,position:re,behavior:fe,debounce:ce=!0}=he;if(le!==void 0||de!==void 0)Q(le,de,fe);else if(me!==void 0)H(me,fe,ce);else if(ne!==void 0){const we=C.value.get(ne);we!==void 0&&H(we,fe,ce)}else re==="bottom"?Q(0,Number.MAX_SAFE_INTEGER,fe):re==="top"&&Q(0,0,fe)};let z,L=null;function H(he,J,le){const{value:de}=P,me=de.sum(he)+depx(d.paddingTop);if(!le)x.value.scrollTo({left:0,top:me,behavior:J});else{z=he,L!==null&&window.clearTimeout(L),L=window.setTimeout(()=>{z=void 0,L=null},16);const{scrollTop:ne,offsetHeight:re}=x.value;if(me>ne){const fe=de.get(he);me+fe<=ne+re||x.value.scrollTo({left:0,top:me+fe-re,behavior:J})}else x.value.scrollTo({left:0,top:me,behavior:J})}}function Q(he,J,le){x.value.scrollTo({left:he,top:J,behavior:le})}function Y(he,J){var le,de,me;if(A||d.ignoreItemResize||oe(J.target))return;const{value:ne}=P,re=C.value.get(he),fe=ne.get(re),ce=(me=(de=(le=J.borderBoxSize)===null||le===void 0?void 0:le[0])===null||de===void 0?void 0:de.blockSize)!==null&&me!==void 0?me:J.contentRect.height;if(ce===fe)return;ce-d.itemSize===0?E.delete(he):E.set(he,ce-d.itemSize);const Fe=ce-fe;if(Fe===0)return;ne.add(re,Fe);const Ke=x.value;if(Ke!=null){if(z===void 0){const tt=ne.sum(re);Ke.scrollTop>tt&&Ke.scrollBy(0,Fe)}else if(re<z)Ke.scrollBy(0,Fe);else if(re===z){const tt=ne.sum(re);ce+tt>Ke.scrollTop+Ke.offsetHeight&&Ke.scrollBy(0,Fe)}Z()}B.value++}const U=!ensureMaybeTouch();let G=!1;function W(he){var J;(J=d.onScroll)===null||J===void 0||J.call(d,he),(!U||!G)&&Z()}function K(he){var J;if((J=d.onWheel)===null||J===void 0||J.call(d,he),U){const le=x.value;if(le!=null){if(he.deltaX===0&&(le.scrollTop===0&&he.deltaY<=0||le.scrollTop+le.offsetHeight>=le.scrollHeight&&he.deltaY>=0))return;he.preventDefault(),le.scrollTop+=he.deltaY/ensureWheelScale(),le.scrollLeft+=he.deltaX/ensureWheelScale(),Z(),G=!0,beforeNextFrameOnce(()=>{G=!1})}}}function X(he){if(A||oe(he.target)||he.contentRect.height===S.value)return;S.value=he.contentRect.height;const{onResize:J}=d;J!==void 0&&J(he)}function Z(){const{value:he}=x;he!=null&&($.value=he.scrollTop,k=he.scrollLeft)}function oe(he){let J=he;for(;J!==null;){if(J.style.display==="none")return!0;J=J.parentElement}return!1}return{listHeight:S,listStyle:{overflow:"auto"},keyToIndex:C,itemsStyle:computed(()=>{const{itemResizable:he}=d,J=pxfy(P.value.sum());return B.value,[d.itemsStyle,{boxSizing:"content-box",height:he?"":J,minHeight:he?J:"",paddingTop:pxfy(d.paddingTop),paddingBottom:pxfy(d.paddingBottom)}]}),visibleItemsStyle:computed(()=>(B.value,{transform:"translateY(".concat(pxfy(P.value.sum(I.value)),")")})),viewportItems:D,listElRef:x,itemsElRef:ref(null),scrollTo:F,handleListResize:X,handleListScroll:W,handleListWheel:K,handleItemResize:Y}},render(){const{itemResizable:d,keyField:b,keyToIndex:A,visibleItemsTag:w}=this;return h$1(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var C,x;return h$1("div",mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?h$1("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h$1(w,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(S=>{const E=S[b],P=A.get(E),B=this.$slots.default({item:S,index:P})[0];return d?h$1(VResizeObserver,{key:E,onResize:k=>this.handleItemResize(E,k)},{default:()=>B}):(B.key=E,B)})})]):(x=(C=this.$slots).empty)===null||x===void 0?void 0:x.call(C)])}})}}),styles$7=c$2(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[c$2("&::-webkit-scrollbar",{width:0,height:0})]),VXScroll=defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const d=ref(null);function b(C){!(C.currentTarget.offsetWidth<C.currentTarget.scrollWidth)||C.deltaY===0||(C.currentTarget.scrollLeft+=C.deltaY+C.deltaX,C.preventDefault())}const A=useSsrAdapter();return styles$7.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:A}),Object.assign({selfRef:d,handleWheel:b},{scrollTo(...C){var x;(x=d.value)===null||x===void 0||x.scrollTo(...C)}})},render(){return h$1("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),hiddenAttr="v-hidden",style$r=c$2("[v-hidden]",{display:"none!important"}),VOverflow=defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(d,{slots:b}){const A=ref(null),w=ref(null);function C(){const{value:S}=A,{getCounter:E,getTail:P}=d;let B;if(E!==void 0?B=E():B=w.value,!S||!B)return;B.hasAttribute(hiddenAttr)&&B.removeAttribute(hiddenAttr);const{children:k}=S,$=S.offsetWidth,I=[],D=b.tail?P==null?void 0:P():null;let F=D?D.offsetWidth:0,z=!1;const L=S.children.length-(b.tail?1:0);for(let Q=0;Q<L-1;++Q){if(Q<0)continue;const Y=k[Q];if(z){Y.hasAttribute(hiddenAttr)||Y.setAttribute(hiddenAttr,"");continue}else Y.hasAttribute(hiddenAttr)&&Y.removeAttribute(hiddenAttr);const U=Y.offsetWidth;if(F+=U,I[Q]=U,F>$){const{updateCounter:G}=d;for(let W=Q;W>=0;--W){const K=L-1-W;G!==void 0?G(K):B.textContent="".concat(K);const X=B.offsetWidth;if(F-=I[W],F+X<=$||W===0){z=!0,Q=W-1,D&&(Q===-1?(D.style.maxWidth="".concat($-X,"px"),D.style.boxSizing="border-box"):D.style.maxWidth="");break}}}}const{onUpdateOverflow:H}=d;z?H!==void 0&&H(!0):(H!==void 0&&H(!1),B.setAttribute(hiddenAttr,""))}const x=useSsrAdapter();return style$r.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:x}),onMounted(C),{selfRef:A,counterRef:w,sync:C}},render(){const{$slots:d}=this;return nextTick(this.sync),h$1("div",{class:"v-overflow",ref:"selfRef"},[renderSlot(d,"default"),d.counter?d.counter():h$1("span",{style:{display:"inline-block"},ref:"counterRef"}),d.tail?d.tail():null])}});function isHTMLElement(d){return d instanceof HTMLElement}function focusFirstDescendant(d){for(let b=0;b<d.childNodes.length;b++){const A=d.childNodes[b];if(isHTMLElement(A)&&(attemptFocus(A)||focusFirstDescendant(A)))return!0}return!1}function focusLastDescendant(d){for(let b=d.childNodes.length-1;b>=0;b--){const A=d.childNodes[b];if(isHTMLElement(A)&&(attemptFocus(A)||focusLastDescendant(A)))return!0}return!1}function attemptFocus(d){if(!isFocusable(d))return!1;try{d.focus({preventScroll:!0})}catch(b){}return document.activeElement===d}function isFocusable(d){if(d.tabIndex>0||d.tabIndex===0&&d.getAttribute("tabIndex")!==null)return!0;if(d.getAttribute("disabled"))return!1;switch(d.nodeName){case"A":return!!d.href&&d.rel!=="ignore";case"INPUT":return d.type!=="hidden"&&d.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let stack=[];const FocusTrap=defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(d){const b=createId(),A=ref(null),w=ref(null);let C=!1,x=!1;const S=typeof document>"u"?null:document.activeElement;function E(){return stack[stack.length-1]===b}function P(L){var H;L.code==="Escape"&&E()&&((H=d.onEsc)===null||H===void 0||H.call(d,L))}onMounted(()=>{watch(()=>d.active,L=>{L?($(),on("keydown",document,P)):(off("keydown",document,P),C&&I())},{immediate:!0})}),onBeforeUnmount(()=>{off("keydown",document,P),C&&I()});function B(L){if(!x&&E()){const H=k();if(H===null||H.contains(getPreciseEventTarget(L)))return;D("first")}}function k(){const L=A.value;if(L===null)return null;let H=L;for(;H=H.nextSibling,!(H===null||H instanceof Element&&H.tagName==="DIV"););return H}function $(){var L;if(!d.disabled){if(stack.push(b),d.autoFocus){const{initialFocusTo:H}=d;H===void 0?D("first"):(L=resolveTo(H))===null||L===void 0||L.focus({preventScroll:!0})}C=!0,document.addEventListener("focus",B,!0)}}function I(){var L;if(d.disabled||(document.removeEventListener("focus",B,!0),stack=stack.filter(Q=>Q!==b),E()))return;const{finalFocusTo:H}=d;H!==void 0?(L=resolveTo(H))===null||L===void 0||L.focus({preventScroll:!0}):d.returnFocusOnDeactivated&&S instanceof HTMLElement&&(x=!0,S.focus({preventScroll:!0}),x=!1)}function D(L){if(E()&&d.active){const H=A.value,Q=w.value;if(H!==null&&Q!==null){const Y=k();if(Y==null||Y===Q){x=!0,H.focus({preventScroll:!0}),x=!1;return}x=!0;const U=L==="first"?focusFirstDescendant(Y):focusLastDescendant(Y);x=!1,U||(x=!0,H.focus({preventScroll:!0}),x=!1)}}}function F(L){if(x)return;const H=k();H!==null&&(L.relatedTarget!==null&&H.contains(L.relatedTarget)?D("last"):D("first"))}function z(L){x||(L.relatedTarget!==null&&L.relatedTarget===A.value?D("last"):D("first"))}return{focusableStartRef:A,focusableEndRef:w,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:F,handleEndFocus:z}},render(){const{default:d}=this.$slots;if(d===void 0)return null;if(this.disabled)return d();const{active:b,focusableStyle:A}=this;return h$1(Fragment,null,[h$1("div",{"aria-hidden":"true",tabindex:b?"0":"-1",ref:"focusableStartRef",style:A,onFocus:this.handleStartFocus}),d(),h$1("div",{"aria-hidden":"true",style:A,ref:"focusableEndRef",tabindex:b?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(d,b){b&&(onMounted(()=>{const{value:A}=d;A&&resizeObserverManager.registerHandler(A,b)}),onBeforeUnmount(()=>{const{value:A}=d;A&&resizeObserverManager.unregisterHandler(A)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(d){if(typeof document>"u")return;const b=document.documentElement;let A,w=!1;const C=()=>{b.style.marginRight=originalMarginRight,b.style.overflow=originalOverflow,b.style.overflowX=originalOverflowX,b.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{A=watch(d,x=>{if(x){if(!lockCount){const S=window.innerWidth-b.offsetWidth;S>0&&(originalMarginRight=b.style.marginRight,b.style.marginRight="".concat(S,"px"),lockHtmlScrollRightCompensationRef.value="".concat(S,"px")),originalOverflow=b.style.overflow,originalOverflowX=b.style.overflowX,originalOverflowY=b.style.overflowY,b.style.overflow="hidden",b.style.overflowX="hidden",b.style.overflowY="hidden"}w=!0,lockCount++}else lockCount--,lockCount||C(),w=!1},{immediate:!0})}),onBeforeUnmount(()=>{A==null||A(),w&&(lockCount--,lockCount||C(),w=!1)})}const isComposingRef=ref(!1),compositionStartHandler=()=>{isComposingRef.value=!0},compositionEndHandler=()=>{isComposingRef.value=!1};let mountedCount=0;const useIsComposing=()=>(isBrowser$2&&(onBeforeMount(()=>{mountedCount||(window.addEventListener("compositionstart",compositionStartHandler),window.addEventListener("compositionend",compositionEndHandler)),mountedCount++}),onBeforeUnmount(()=>{mountedCount<=1?(window.removeEventListener("compositionstart",compositionStartHandler),window.removeEventListener("compositionend",compositionEndHandler),mountedCount=0):mountedCount--})),isComposingRef);function useReactivated(d){const b={isDeactivated:!1};let A=!1;return onActivated(()=>{if(b.isDeactivated=!1,!A){A=!0;return}d()}),onDeactivated(()=>{b.isDeactivated=!0,A||(A=!0)}),b}const formItemInjectionKey="n-form-item";function useFormItem(d,{defaultSize:b="medium",mergedSize:A,mergedDisabled:w}={}){const C=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const x=computed(A?()=>A(C):()=>{const{size:P}=d;if(P)return P;if(C){const{mergedSize:B}=C;if(B.value!==void 0)return B.value}return b}),S=computed(w?()=>w(C):()=>{const{disabled:P}=d;return P!==void 0?P:C?C.disabled.value:!1}),E=computed(()=>{const{status:P}=d;return P||(C==null?void 0:C.mergedValidationStatus.value)});return onBeforeUnmount(()=>{C&&C.restoreValidation()}),{mergedSizeRef:x,mergedDisabledRef:S,mergedStatusRef:E,nTriggerFormBlur(){C&&C.handleContentBlur()},nTriggerFormChange(){C&&C.handleContentChange()},nTriggerFormFocus(){C&&C.handleContentFocus()},nTriggerFormInput(){C&&C.handleContentInput()}}}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf||Function("return this")();const root$2=root$1;var Symbol$1=root$2.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$c=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(d){var b=hasOwnProperty$c.call(d,symToStringTag$1),A=d[symToStringTag$1];try{d[symToStringTag$1]=void 0;var w=!0}catch(x){}var C=nativeObjectToString$1.call(d);return w&&(b?d[symToStringTag$1]=A:delete d[symToStringTag$1]),C}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(d){return nativeObjectToString.call(d)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(d){return d==null?d===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(d)?getRawTag(d):objectToString$1(d)}function isObjectLike$1(d){return d!=null&&typeof d=="object"}var symbolTag$1="[object Symbol]";function isSymbol(d){return typeof d=="symbol"||isObjectLike$1(d)&&baseGetTag(d)==symbolTag$1}function arrayMap(d,b){for(var A=-1,w=d==null?0:d.length,C=Array(w);++A<w;)C[A]=b(d[A],A,d);return C}var isArray$1=Array.isArray;const isArray$2=isArray$1;var INFINITY$1=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString(d){if(typeof d=="string")return d;if(isArray$2(d))return arrayMap(d,baseToString)+"";if(isSymbol(d))return symbolToString?symbolToString.call(d):"";var b=d+"";return b=="0"&&1/d==-INFINITY$1?"-0":b}var reWhitespace=/\s/;function trimmedEndIndex(d){for(var b=d.length;b--&&reWhitespace.test(d.charAt(b)););return b}var reTrimStart=/^\s+/;function baseTrim(d){return d&&d.slice(0,trimmedEndIndex(d)+1).replace(reTrimStart,"")}function isObject$1(d){var b=typeof d;return d!=null&&(b=="object"||b=="function")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(d){if(typeof d=="number")return d;if(isSymbol(d))return NAN;if(isObject$1(d)){var b=typeof d.valueOf=="function"?d.valueOf():d;d=isObject$1(b)?b+"":b}if(typeof d!="string")return d===0?d:+d;d=baseTrim(d);var A=reIsBinary.test(d);return A||reIsOctal.test(d)?freeParseInt(d.slice(2),A?2:8):reIsBadHex.test(d)?NAN:+d}function identity(d){return d}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$1(d){if(!isObject$1(d))return!1;var b=baseGetTag(d);return b==funcTag$1||b==genTag||b==asyncTag||b==proxyTag}var coreJsData=root$2["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var d=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function isMasked(d){return!!maskSrcKey&&maskSrcKey in d}var funcProto$3=Function.prototype,funcToString$3=funcProto$3.toString;function toSource(d){if(d!=null){try{return funcToString$3.call(d)}catch(b){}try{return d+""}catch(b){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$2=Function.prototype,objectProto$d=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$b=objectProto$d.hasOwnProperty,reIsNative=RegExp("^"+funcToString$2.call(hasOwnProperty$b).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(d){if(!isObject$1(d)||isMasked(d))return!1;var b=isFunction$1(d)?reIsNative:reIsHostCtor;return b.test(toSource(d))}function getValue(d,b){return d==null?void 0:d[b]}function getNative(d,b){var A=getValue(d,b);return baseIsNative(A)?A:void 0}var WeakMap$1=getNative(root$2,"WeakMap");const WeakMap$2=WeakMap$1;var objectCreate=Object.create,baseCreate=function(){function d(){}return function(b){if(!isObject$1(b))return{};if(objectCreate)return objectCreate(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();const baseCreate$1=baseCreate;function apply(d,b,A){switch(A.length){case 0:return d.call(b);case 1:return d.call(b,A[0]);case 2:return d.call(b,A[0],A[1]);case 3:return d.call(b,A[0],A[1],A[2])}return d.apply(b,A)}function copyArray(d,b){var A=-1,w=d.length;for(b||(b=Array(w));++A<w;)b[A]=d[A];return b}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(d){var b=0,A=0;return function(){var w=nativeNow(),C=HOT_SPAN-(w-A);if(A=w,C>0){if(++b>=HOT_COUNT)return arguments[0]}else b=0;return d.apply(void 0,arguments)}}function constant(d){return function(){return d}}var defineProperty=function(){try{var d=getNative(Object,"defineProperty");return d({},"",{}),d}catch(b){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(d,b){return defineProperty$1(d,"toString",{configurable:!0,enumerable:!1,value:constant(b),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(d,b){var A=typeof d;return b=b==null?MAX_SAFE_INTEGER$1:b,!!b&&(A=="number"||A!="symbol"&&reIsUint.test(d))&&d>-1&&d%1==0&&d<b}function baseAssignValue(d,b,A){b=="__proto__"&&defineProperty$1?defineProperty$1(d,b,{configurable:!0,enumerable:!0,value:A,writable:!0}):d[b]=A}function eq(d,b){return d===b||d!==d&&b!==b}var objectProto$c=Object.prototype,hasOwnProperty$a=objectProto$c.hasOwnProperty;function assignValue(d,b,A){var w=d[b];(!(hasOwnProperty$a.call(d,b)&&eq(w,A))||A===void 0&&!(b in d))&&baseAssignValue(d,b,A)}function copyObject(d,b,A,w){var C=!A;A||(A={});for(var x=-1,S=b.length;++x<S;){var E=b[x],P=w?w(A[E],d[E],E,A,d):void 0;P===void 0&&(P=d[E]),C?baseAssignValue(A,E,P):assignValue(A,E,P)}return A}var nativeMax$1=Math.max;function overRest(d,b,A){return b=nativeMax$1(b===void 0?d.length-1:b,0),function(){for(var w=arguments,C=-1,x=nativeMax$1(w.length-b,0),S=Array(x);++C<x;)S[C]=w[b+C];C=-1;for(var E=Array(b+1);++C<b;)E[C]=w[C];return E[b]=A(S),apply(d,this,E)}}function baseRest(d,b){return setToString$1(overRest(d,b,identity),d+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=MAX_SAFE_INTEGER}function isArrayLike(d){return d!=null&&isLength(d.length)&&!isFunction$1(d)}function isIterateeCall(d,b,A){if(!isObject$1(A))return!1;var w=typeof b;return(w=="number"?isArrayLike(A)&&isIndex(b,A.length):w=="string"&&b in A)?eq(A[b],d):!1}function createAssigner(d){return baseRest(function(b,A){var w=-1,C=A.length,x=C>1?A[C-1]:void 0,S=C>2?A[2]:void 0;for(x=d.length>3&&typeof x=="function"?(C--,x):void 0,S&&isIterateeCall(A[0],A[1],S)&&(x=C<3?void 0:x,C=1),b=Object(b);++w<C;){var E=A[w];E&&d(b,E,w,x)}return b})}var objectProto$b=Object.prototype;function isPrototype(d){var b=d&&d.constructor,A=typeof b=="function"&&b.prototype||objectProto$b;return d===A}function baseTimes(d,b){for(var A=-1,w=Array(d);++A<d;)w[A]=b(A);return w}var argsTag$2="[object Arguments]";function baseIsArguments(d){return isObjectLike$1(d)&&baseGetTag(d)==argsTag$2}var objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(d){return isObjectLike$1(d)&&hasOwnProperty$9.call(d,"callee")&&!propertyIsEnumerable$1.call(d,"callee")};const isArguments$1=isArguments;function stubFalse(){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$1=moduleExports$2?root$2.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$4="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[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]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray(d){return isObjectLike$1(d)&&isLength(d.length)&&!!typedArrayTags[baseGetTag(d)]}function baseUnary(d){return function(b){return d(b)}}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$1.process,nodeUtil=function(){try{var d=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return d||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(b){}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty;function arrayLikeKeys(d,b){var A=isArray$2(d),w=!A&&isArguments$1(d),C=!A&&!w&&isBuffer$1(d),x=!A&&!w&&!C&&isTypedArray$1(d),S=A||w||C||x,E=S?baseTimes(d.length,String):[],P=E.length;for(var B in d)(b||hasOwnProperty$8.call(d,B))&&!(S&&(B=="length"||C&&(B=="offset"||B=="parent")||x&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||isIndex(B,P)))&&E.push(B);return E}function overArg$1(d,b){return function(A){return d(b(A))}}var nativeKeys=overArg$1(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function baseKeys(d){if(!isPrototype(d))return nativeKeys$1(d);var b=[];for(var A in Object(d))hasOwnProperty$7.call(d,A)&&A!="constructor"&&b.push(A);return b}function keys$2(d){return isArrayLike(d)?arrayLikeKeys(d):baseKeys(d)}function nativeKeysIn(d){var b=[];if(d!=null)for(var A in Object(d))b.push(A);return b}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeysIn(d){if(!isObject$1(d))return nativeKeysIn(d);var b=isPrototype(d),A=[];for(var w in d)w=="constructor"&&(b||!hasOwnProperty$6.call(d,w))||A.push(w);return A}function keysIn(d){return isArrayLike(d)?arrayLikeKeys(d,!0):baseKeysIn(d)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(d,b){if(isArray$2(d))return!1;var A=typeof d;return A=="number"||A=="symbol"||A=="boolean"||d==null||isSymbol(d)?!0:reIsPlainProp.test(d)||!reIsDeepProp.test(d)||b!=null&&d in Object(b)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(d){var b=this.has(d)&&delete this.__data__[d];return this.size-=b?1:0,b}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashGet(d){var b=this.__data__;if(nativeCreate$1){var A=b[d];return A===HASH_UNDEFINED$2?void 0:A}return hasOwnProperty$5.call(b,d)?b[d]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashHas(d){var b=this.__data__;return nativeCreate$1?b[d]!==void 0:hasOwnProperty$4.call(b,d)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=nativeCreate$1&&b===void 0?HASH_UNDEFINED$1:b,this}function Hash(d){var b=-1,A=d==null?0:d.length;for(this.clear();++b<A;){var w=d[b];this.set(w[0],w[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(d,b){for(var A=d.length;A--;)if(eq(d[A][0],b))return A;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(d){var b=this.__data__,A=assocIndexOf(b,d);if(A<0)return!1;var w=b.length-1;return A==w?b.pop():splice.call(b,A,1),--this.size,!0}function listCacheGet(d){var b=this.__data__,A=assocIndexOf(b,d);return A<0?void 0:b[A][1]}function listCacheHas(d){return assocIndexOf(this.__data__,d)>-1}function listCacheSet(d,b){var A=this.__data__,w=assocIndexOf(A,d);return w<0?(++this.size,A.push([d,b])):A[w][1]=b,this}function ListCache(d){var b=-1,A=d==null?0:d.length;for(this.clear();++b<A;){var w=d[b];this.set(w[0],w[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$2,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(d){var b=typeof d;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?d!=="__proto__":d===null}function getMapData(d,b){var A=d.__data__;return isKeyable(b)?A[typeof b=="string"?"string":"hash"]:A.map}function mapCacheDelete(d){var b=getMapData(this,d).delete(d);return this.size-=b?1:0,b}function mapCacheGet(d){return getMapData(this,d).get(d)}function mapCacheHas(d){return getMapData(this,d).has(d)}function mapCacheSet(d,b){var A=getMapData(this,d),w=A.size;return A.set(d,b),this.size+=A.size==w?0:1,this}function MapCache(d){var b=-1,A=d==null?0:d.length;for(this.clear();++b<A;){var w=d[b];this.set(w[0],w[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var A=function(){var w=arguments,C=b?b.apply(this,w):w[0],x=A.cache;if(x.has(C))return x.get(C);var S=d.apply(this,w);return A.cache=x.set(C,S)||x,S};return A.cache=new(memoize.Cache||MapCache),A}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(d){var b=memoize(d,function(w){return A.size===MAX_MEMOIZE_SIZE&&A.clear(),w}),A=b.cache;return b}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(d){var b=[];return d.charCodeAt(0)===46&&b.push(""),d.replace(rePropName,function(A,w,C,x){b.push(C?x.replace(reEscapeChar,"$1"):w||A)}),b});const stringToPath$1=stringToPath;function toString(d){return d==null?"":baseToString(d)}function castPath(d,b){return isArray$2(d)?d:isKey(d,b)?[d]:stringToPath$1(toString(d))}var INFINITY=1/0;function toKey(d){if(typeof d=="string"||isSymbol(d))return d;var b=d+"";return b=="0"&&1/d==-INFINITY?"-0":b}function baseGet(d,b){b=castPath(b,d);for(var A=0,w=b.length;d!=null&&A<w;)d=d[toKey(b[A++])];return A&&A==w?d:void 0}function get(d,b,A){var w=d==null?void 0:baseGet(d,b);return w===void 0?A:w}function arrayPush(d,b){for(var A=-1,w=b.length,C=d.length;++A<w;)d[C+A]=b[A];return d}var getPrototype$1=overArg$1(Object.getPrototypeOf,Object);const getPrototype$2=getPrototype$1;var objectTag$3="[object Object]",funcProto$1=Function.prototype,objectProto$4=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$3=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString$1.call(Object);function isPlainObject$2(d){if(!isObjectLike$1(d)||baseGetTag(d)!=objectTag$3)return!1;var b=getPrototype$2(d);if(b===null)return!0;var A=hasOwnProperty$3.call(b,"constructor")&&b.constructor;return typeof A=="function"&&A instanceof A&&funcToString$1.call(A)==objectCtorString$1}function baseSlice(d,b,A){var w=-1,C=d.length;b<0&&(b=-b>C?0:C+b),A=A>C?C:A,A<0&&(A+=C),C=b>A?0:A-b>>>0,b>>>=0;for(var x=Array(C);++w<C;)x[w]=d[w+b];return x}function castSlice(d,b,A){var w=d.length;return A=A===void 0?w:A,!b&&A>=w?d:baseSlice(d,b,A)}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode(d){return reHasUnicode.test(d)}function asciiToArray(d){return d.split("")}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray(d){return d.match(reUnicode)||[]}function stringToArray(d){return hasUnicode(d)?unicodeToArray(d):asciiToArray(d)}function createCaseFirst(d){return function(b){b=toString(b);var A=hasUnicode(b)?stringToArray(b):void 0,w=A?A[0]:b.charAt(0),C=A?castSlice(A,1).join(""):b.slice(1);return w[d]()+C}}var upperFirst=createCaseFirst("toUpperCase");const upperFirst$1=upperFirst;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(d){var b=this.__data__,A=b.delete(d);return this.size=b.size,A}function stackGet(d){return this.__data__.get(d)}function stackHas(d){return this.__data__.has(d)}var LARGE_ARRAY_SIZE=200;function stackSet(d,b){var A=this.__data__;if(A instanceof ListCache){var w=A.__data__;if(!Map$2||w.length<LARGE_ARRAY_SIZE-1)return w.push([d,b]),this.size=++A.size,this;A=this.__data__=new MapCache(w)}return A.set(d,b),this.size=A.size,this}function Stack(d){var b=this.__data__=new ListCache(d);this.size=b.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$2.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(d,b){if(b)return d.slice();var A=d.length,w=allocUnsafe?allocUnsafe(A):new d.constructor(A);return d.copy(w),w}function arrayFilter(d,b){for(var A=-1,w=d==null?0:d.length,C=0,x=[];++A<w;){var S=d[A];b(S,A,d)&&(x[C++]=S)}return x}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(d){return d==null?[]:(d=Object(d),arrayFilter(nativeGetSymbols(d),function(b){return propertyIsEnumerable.call(d,b)}))}:stubArray;const getSymbols$1=getSymbols;function baseGetAllKeys(d,b,A){var w=b(d);return isArray$2(d)?w:arrayPush(w,A(d))}function getAllKeys(d){return baseGetAllKeys(d,keys$2,getSymbols$1)}var DataView$1=getNative(root$2,"DataView");const DataView$2=DataView$1;var Promise$1=getNative(root$2,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$2,"Set");const Set$2=Set$1;var mapTag$1="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag$1="[object DataView]",dataViewCtorString=toSource(DataView$2),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$2),getTag=baseGetTag;(DataView$2&&getTag(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$1||Map$2&&getTag(new Map$2)!=mapTag$1||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$1||WeakMap$2&&getTag(new WeakMap$2)!=weakMapTag)&&(getTag=function(d){var b=baseGetTag(d),A=b==objectTag$2?d.constructor:void 0,w=A?toSource(A):"";if(w)switch(w){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return b});const getTag$1=getTag;var Uint8Array$1=root$2.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(d){var b=new d.constructor(d.byteLength);return new Uint8Array$2(b).set(new Uint8Array$2(d)),b}function cloneTypedArray(d,b){var A=b?cloneArrayBuffer(d.buffer):d.buffer;return new d.constructor(A,d.byteOffset,d.length)}function initCloneObject(d){return typeof d.constructor=="function"&&!isPrototype(d)?baseCreate$1(getPrototype$2(d)):{}}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(d){return this.__data__.set(d,HASH_UNDEFINED),this}function setCacheHas(d){return this.__data__.has(d)}function SetCache(d){var b=-1,A=d==null?0:d.length;for(this.__data__=new MapCache;++b<A;)this.add(d[b])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(d,b){for(var A=-1,w=d==null?0:d.length;++A<w;)if(b(d[A],A,d))return!0;return!1}function cacheHas(d,b){return d.has(b)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(d,b,A,w,C,x){var S=A&COMPARE_PARTIAL_FLAG$5,E=d.length,P=b.length;if(E!=P&&!(S&&P>E))return!1;var B=x.get(d),k=x.get(b);if(B&&k)return B==b&&k==d;var $=-1,I=!0,D=A&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(x.set(d,b),x.set(b,d);++$<E;){var F=d[$],z=b[$];if(w)var L=S?w(z,F,$,b,d,x):w(F,z,$,d,b,x);if(L!==void 0){if(L)continue;I=!1;break}if(D){if(!arraySome(b,function(H,Q){if(!cacheHas(D,Q)&&(F===H||C(F,H,A,w,x)))return D.push(Q)})){I=!1;break}}else if(!(F===z||C(F,z,A,w,x))){I=!1;break}}return x.delete(d),x.delete(b),I}function mapToArray(d){var b=-1,A=Array(d.size);return d.forEach(function(w,C){A[++b]=[C,w]}),A}function setToArray(d){var b=-1,A=Array(d.size);return d.forEach(function(w){A[++b]=w}),A}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(d,b,A,w,C,x,S){switch(A){case dataViewTag:if(d.byteLength!=b.byteLength||d.byteOffset!=b.byteOffset)return!1;d=d.buffer,b=b.buffer;case arrayBufferTag:return!(d.byteLength!=b.byteLength||!x(new Uint8Array$2(d),new Uint8Array$2(b)));case boolTag:case dateTag:case numberTag:return eq(+d,+b);case errorTag:return d.name==b.name&&d.message==b.message;case regexpTag:case stringTag:return d==b+"";case mapTag:var E=mapToArray;case setTag:var P=w&COMPARE_PARTIAL_FLAG$4;if(E||(E=setToArray),d.size!=b.size&&!P)return!1;var B=S.get(d);if(B)return B==b;w|=COMPARE_UNORDERED_FLAG$2,S.set(d,b);var k=equalArrays(E(d),E(b),w,C,x,S);return S.delete(d),k;case symbolTag:if(symbolValueOf)return symbolValueOf.call(d)==symbolValueOf.call(b)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function equalObjects(d,b,A,w,C,x){var S=A&COMPARE_PARTIAL_FLAG$3,E=getAllKeys(d),P=E.length,B=getAllKeys(b),k=B.length;if(P!=k&&!S)return!1;for(var $=P;$--;){var I=E[$];if(!(S?I in b:hasOwnProperty$2.call(b,I)))return!1}var D=x.get(d),F=x.get(b);if(D&&F)return D==b&&F==d;var z=!0;x.set(d,b),x.set(b,d);for(var L=S;++$<P;){I=E[$];var H=d[I],Q=b[I];if(w)var Y=S?w(Q,H,I,b,d,x):w(H,Q,I,d,b,x);if(!(Y===void 0?H===Q||C(H,Q,A,w,x):Y)){z=!1;break}L||(L=I=="constructor")}if(z&&!L){var U=d.constructor,G=b.constructor;U!=G&&"constructor"in d&&"constructor"in b&&!(typeof U=="function"&&U instanceof U&&typeof G=="function"&&G instanceof G)&&(z=!1)}return x.delete(d),x.delete(b),z}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag$1="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function baseIsEqualDeep(d,b,A,w,C,x){var S=isArray$2(d),E=isArray$2(b),P=S?arrayTag:getTag$1(d),B=E?arrayTag:getTag$1(b);P=P==argsTag?objectTag$1:P,B=B==argsTag?objectTag$1:B;var k=P==objectTag$1,$=B==objectTag$1,I=P==B;if(I&&isBuffer$1(d)){if(!isBuffer$1(b))return!1;S=!0,k=!1}if(I&&!k)return x||(x=new Stack),S||isTypedArray$1(d)?equalArrays(d,b,A,w,C,x):equalByTag(d,b,P,A,w,C,x);if(!(A&COMPARE_PARTIAL_FLAG$2)){var D=k&&hasOwnProperty$1.call(d,"__wrapped__"),F=$&&hasOwnProperty$1.call(b,"__wrapped__");if(D||F){var z=D?d.value():d,L=F?b.value():b;return x||(x=new Stack),C(z,L,A,w,x)}}return I?(x||(x=new Stack),equalObjects(d,b,A,w,C,x)):!1}function baseIsEqual(d,b,A,w,C){return d===b?!0:d==null||b==null||!isObjectLike$1(d)&&!isObjectLike$1(b)?d!==d&&b!==b:baseIsEqualDeep(d,b,A,w,baseIsEqual,C)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(d,b,A,w){var C=A.length,x=C,S=!w;if(d==null)return!x;for(d=Object(d);C--;){var E=A[C];if(S&&E[2]?E[1]!==d[E[0]]:!(E[0]in d))return!1}for(;++C<x;){E=A[C];var P=E[0],B=d[P],k=E[1];if(S&&E[2]){if(B===void 0&&!(P in d))return!1}else{var $=new Stack;if(w)var I=w(B,k,P,d,b,$);if(!(I===void 0?baseIsEqual(k,B,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,w,$):I))return!1}}return!0}function isStrictComparable(d){return d===d&&!isObject$1(d)}function getMatchData(d){for(var b=keys$2(d),A=b.length;A--;){var w=b[A],C=d[w];b[A]=[w,C,isStrictComparable(C)]}return b}function matchesStrictComparable(d,b){return function(A){return A==null?!1:A[d]===b&&(b!==void 0||d in Object(A))}}function baseMatches(d){var b=getMatchData(d);return b.length==1&&b[0][2]?matchesStrictComparable(b[0][0],b[0][1]):function(A){return A===d||baseIsMatch(A,d,b)}}function baseHasIn(d,b){return d!=null&&b in Object(d)}function hasPath(d,b,A){b=castPath(b,d);for(var w=-1,C=b.length,x=!1;++w<C;){var S=toKey(b[w]);if(!(x=d!=null&&A(d,S)))break;d=d[S]}return x||++w!=C?x:(C=d==null?0:d.length,!!C&&isLength(C)&&isIndex(S,C)&&(isArray$2(d)||isArguments$1(d)))}function hasIn(d,b){return d!=null&&hasPath(d,b,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(d,b){return isKey(d)&&isStrictComparable(b)?matchesStrictComparable(toKey(d),b):function(A){var w=get(A,d);return w===void 0&&w===b?hasIn(A,d):baseIsEqual(b,w,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(d){return function(b){return b==null?void 0:b[d]}}function basePropertyDeep(d){return function(b){return baseGet(b,d)}}function property(d){return isKey(d)?baseProperty(toKey(d)):basePropertyDeep(d)}function baseIteratee(d){return typeof d=="function"?d:d==null?identity:typeof d=="object"?isArray$2(d)?baseMatchesProperty(d[0],d[1]):baseMatches(d):property(d)}function createBaseFor(d){return function(b,A,w){for(var C=-1,x=Object(b),S=w(b),E=S.length;E--;){var P=S[d?E:++C];if(A(x[P],P,x)===!1)break}return b}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn(d,b){return d&&baseFor$1(d,b,keys$2)}function createBaseEach(d,b){return function(A,w){if(A==null)return A;if(!isArrayLike(A))return d(A,w);for(var C=A.length,x=b?C:-1,S=Object(A);(b?x--:++x<C)&&w(S[x],x,S)!==!1;);return A}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach;var now$1=function(){return root$2.Date.now()};const now$2=now$1;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(d,b,A){var w,C,x,S,E,P,B=0,k=!1,$=!1,I=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT$1);b=toNumber$2(b)||0,isObject$1(A)&&(k=!!A.leading,$="maxWait"in A,x=$?nativeMax(toNumber$2(A.maxWait)||0,b):x,I="trailing"in A?!!A.trailing:I);function D(W){var K=w,X=C;return w=C=void 0,B=W,S=d.apply(X,K),S}function F(W){return B=W,E=setTimeout(H,b),k?D(W):S}function z(W){var K=W-P,X=W-B,Z=b-K;return $?nativeMin(Z,x-X):Z}function L(W){var K=W-P,X=W-B;return P===void 0||K>=b||K<0||$&&X>=x}function H(){var W=now$2();if(L(W))return Q(W);E=setTimeout(H,z(W))}function Q(W){return E=void 0,I&&w?D(W):(w=C=void 0,S)}function Y(){E!==void 0&&clearTimeout(E),B=0,w=P=C=E=void 0}function U(){return E===void 0?S:Q(now$2())}function G(){var W=now$2(),K=L(W);if(w=arguments,C=this,P=W,K){if(E===void 0)return F(P);if($)return clearTimeout(E),E=setTimeout(H,b),D(P)}return E===void 0&&(E=setTimeout(H,b)),S}return G.cancel=Y,G.flush=U,G}function assignMergeValue(d,b,A){(A!==void 0&&!eq(d[b],A)||A===void 0&&!(b in d))&&baseAssignValue(d,b,A)}function isArrayLikeObject(d){return isObjectLike$1(d)&&isArrayLike(d)}function safeGet(d,b){if(!(b==="constructor"&&typeof d[b]=="function")&&b!="__proto__")return d[b]}function toPlainObject(d){return copyObject(d,keysIn(d))}function baseMergeDeep(d,b,A,w,C,x,S){var E=safeGet(d,A),P=safeGet(b,A),B=S.get(P);if(B){assignMergeValue(d,A,B);return}var k=x?x(E,P,A+"",d,b,S):void 0,$=k===void 0;if($){var I=isArray$2(P),D=!I&&isBuffer$1(P),F=!I&&!D&&isTypedArray$1(P);k=P,I||D||F?isArray$2(E)?k=E:isArrayLikeObject(E)?k=copyArray(E):D?($=!1,k=cloneBuffer(P,!0)):F?($=!1,k=cloneTypedArray(P,!0)):k=[]:isPlainObject$2(P)||isArguments$1(P)?(k=E,isArguments$1(E)?k=toPlainObject(E):(!isObject$1(E)||isFunction$1(E))&&(k=initCloneObject(P))):$=!1}$&&(S.set(P,k),C(k,P,w,x,S),S.delete(P)),assignMergeValue(d,A,k)}function baseMerge(d,b,A,w,C){d!==b&&baseFor$1(b,function(x,S){if(C||(C=new Stack),isObject$1(x))baseMergeDeep(d,b,S,A,baseMerge,w,C);else{var E=w?w(safeGet(d,S),x,S+"",d,b,C):void 0;E===void 0&&(E=x),assignMergeValue(d,S,E)}},keysIn)}function baseMap(d,b){var A=-1,w=isArrayLike(d)?Array(d.length):[];return baseEach$1(d,function(C,x,S){w[++A]=b(C,x,S)}),w}function map(d,b){var A=isArray$2(d)?arrayMap:baseMap;return A(d,baseIteratee(b))}var merge$1=createAssigner(function(d,b,A){baseMerge(d,b,A)});const merge$2=merge$1;var FUNC_ERROR_TEXT="Expected a function";function throttle(d,b,A){var w=!0,C=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$1(A)&&(w="leading"in A?!!A.leading:w,C="trailing"in A?!!A.trailing:C),debounce(d,b,{leading:w,maxWait:b,trailing:C})}const commonVariables$m={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize,fontFamily,lineHeight}=commonVariables$m,globalStyle=c$3("body","\n margin: 0;\n font-size: ".concat(fontSize,";\n font-family: ").concat(fontFamily,";\n line-height: ").concat(lineHeight,";\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n"),[c$3("input","\n font-family: inherit;\n font-size: inherit;\n ")]),configProviderInjectionKey="n-config-provider",cssrAnchorMetaName="naive-ui-style";function createTheme(d){return d}function useTheme(d,b,A,w,C,x){const S=useSsrAdapter(),E=inject(configProviderInjectionKey,null);if(A){const B=()=>{const k=x==null?void 0:x.value;A.mount({id:k===void 0?b:k+b,head:!0,props:{bPrefix:k?".".concat(k,"-"):void 0},anchorMetaName:cssrAnchorMetaName,ssr:S}),E!=null&&E.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:S})};S?B():onBeforeMount(B)}return computed(()=>{var B;const{theme:{common:k,self:$,peers:I={}}={},themeOverrides:D={},builtinThemeOverrides:F={}}=C,{common:z,peers:L}=D,{common:H=void 0,[d]:{common:Q=void 0,self:Y=void 0,peers:U={}}={}}=(E==null?void 0:E.mergedThemeRef.value)||{},{common:G=void 0,[d]:W={}}=(E==null?void 0:E.mergedThemeOverridesRef.value)||{},{common:K,peers:X={}}=W,Z=merge$2({},k||Q||H||w.common,G,K,z),oe=merge$2((B=$||Y||w.self)===null||B===void 0?void 0:B(Z),F,W,D);return{common:Z,self:oe,peers:merge$2({},w.peers,U,I),peerOverrides:merge$2({},F.peers,X,L)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(d={},b={defaultBordered:!0}){const A=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:A==null?void 0:A.inlineThemeDisabled,mergedRtlRef:A==null?void 0:A.mergedRtlRef,mergedComponentPropsRef:A==null?void 0:A.mergedComponentPropsRef,mergedBreakpointsRef:A==null?void 0:A.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var w,C;const{bordered:x}=d;return x!==void 0?x:(C=(w=A==null?void 0:A.mergedBorderedRef.value)!==null&&w!==void 0?w:b.defaultBordered)!==null&&C!==void 0?C:!0}),mergedClsPrefixRef:computed(()=>(A==null?void 0:A.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed(()=>A==null?void 0:A.mergedNamespaceRef.value)}}const enUS={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:d=>"Please load all ".concat(d,"'s descendants before checking it.")},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:d=>"Total ".concat(d," items"),selected:d=>"".concat(d," items selected")},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},enUS$1=enUS;function buildFormatLongFn(d){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=b.width?String(b.width):d.defaultWidth,w=d.formats[A]||d.formats[d.defaultWidth];return w}}function buildLocalizeFn(d){return function(b,A){var w=A!=null&&A.context?String(A.context):"standalone",C;if(w==="formatting"&&d.formattingValues){var x=d.defaultFormattingWidth||d.defaultWidth,S=A!=null&&A.width?String(A.width):x;C=d.formattingValues[S]||d.formattingValues[x]}else{var E=d.defaultWidth,P=A!=null&&A.width?String(A.width):d.defaultWidth;C=d.values[P]||d.values[E]}var B=d.argumentCallback?d.argumentCallback(b):b;return C[B]}}function buildMatchFn(d){return function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=A.width,C=w&&d.matchPatterns[w]||d.matchPatterns[d.defaultMatchWidth],x=b.match(C);if(!x)return null;var S=x[0],E=w&&d.parsePatterns[w]||d.parsePatterns[d.defaultParseWidth],P=Array.isArray(E)?findIndex(E,function($){return $.test(S)}):findKey(E,function($){return $.test(S)}),B;B=d.valueCallback?d.valueCallback(P):P,B=A.valueCallback?A.valueCallback(B):B;var k=b.slice(S.length);return{value:B,rest:k}}}function findKey(d,b){for(var A in d)if(d.hasOwnProperty(A)&&b(d[A]))return A}function findIndex(d,b){for(var A=0;A<d.length;A++)if(b(d[A]))return A}function buildMatchPatternFn(d){return function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=b.match(d.matchPattern);if(!w)return null;var C=w[0],x=b.match(d.parsePattern);if(!x)return null;var S=d.valueCallback?d.valueCallback(x[0]):x[0];S=A.valueCallback?A.valueCallback(S):S;var E=b.slice(C.length);return{value:S,rest:E}}}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function d(b,A,w){var C,x=formatDistanceLocale[b];return typeof x=="string"?C=x:A===1?C=x.one:C=x.other.replace("{{count}}",A.toString()),w!=null&&w.addSuffix?w.comparison&&w.comparison>0?"in "+C:C+" ago":C};const formatDistance$1=formatDistance;var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};const formatLong$1=formatLong;var formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function d(b,A,w,C){return formatRelativeLocale[b]};const formatRelative$1=formatRelative;var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function d(b,A){var w=Number(b),C=w%100;if(C>20||C<10)switch(C%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function d(b){return b-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};const localize$1=localize;var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function d(b){return parseInt(b,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function d(b){return b+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};const match$1=match;var locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const defaultLocale=locale,dateEnUs={name:"en-US",locale:defaultLocale},dateEnUS=dateEnUs;function useLocale(d){const{mergedLocaleRef:b,mergedDateLocaleRef:A}=inject(configProviderInjectionKey,null)||{},w=computed(()=>{var x,S;return(S=(x=b==null?void 0:b.value)===null||x===void 0?void 0:x[d])!==null&&S!==void 0?S:enUS$1[d]});return{dateLocaleRef:computed(()=>{var x;return(x=A==null?void 0:A.value)!==null&&x!==void 0?x:dateEnUS}),localeRef:w}}function useStyle(d,b,A){if(!b)return;const w=useSsrAdapter(),C=inject(configProviderInjectionKey,null),x=()=>{const S=A==null?void 0:A.value;b.mount({id:S===void 0?d:S+d,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:S?".".concat(S,"-"):void 0},ssr:w}),C!=null&&C.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:w})};w?x():onBeforeMount(x)}function useThemeClass(d,b,A,w){var C;A||throwError("useThemeClass","cssVarsRef is not passed");const x=(C=inject(configProviderInjectionKey,null))===null||C===void 0?void 0:C.mergedThemeHashRef,S=ref(""),E=useSsrAdapter();let P;const B="__".concat(d),k=()=>{let $=B;const I=b?b.value:void 0,D=x==null?void 0:x.value;D&&($+="-"+D),I&&($+="-"+I);const{themeOverrides:F,builtinThemeOverrides:z}=w;F&&($+="-"+murmur2(JSON.stringify(F))),z&&($+="-"+murmur2(JSON.stringify(z))),S.value=$,P=()=>{const L=A.value;let H="";for(const Q in L)H+="".concat(Q,": ").concat(L[Q],";");c$3(".".concat($),H).mount({id:$,ssr:E}),P=void 0}};return watchEffect(()=>{k()}),{themeClass:S,onRender:()=>{P==null||P()}}}function useRtl(d,b,A){if(!b)return;const w=useSsrAdapter(),C=computed(()=>{const{value:S}=b;if(!S)return;const E=S[d];if(E)return E}),x=()=>{watchEffect(()=>{const{value:S}=A,E="".concat(S).concat(d,"Rtl");if(exists(E,w))return;const{value:P}=C;P&&P.style.mount({id:E,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:S?".".concat(S,"-"):void 0},ssr:w})})};return w?x():onBeforeMount(x),C}const AddIcon=defineComponent({name:"Add",render(){return h$1("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function replaceable(d,b){return defineComponent({name:upperFirst$1(d),setup(){var A;const w=(A=inject(configProviderInjectionKey,null))===null||A===void 0?void 0:A.mergedIconsRef;return()=>{var C;const x=(C=w==null?void 0:w.value)===null||C===void 0?void 0:C[d];return x?x():b}}})}const FinishedIcon=defineComponent({name:"Checkmark",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h$1("g",{fill:"none"},h$1("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),ChevronRightIcon=defineComponent({name:"ChevronRight",render(){return h$1("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ErrorIcon$1=replaceable("close",h$1("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},h$1("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h$1("g",{fill:"currentColor","fill-rule":"nonzero"},h$1("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),EyeIcon=defineComponent({name:"Eye",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),h$1("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),EyeOffIcon=defineComponent({name:"EyeOff",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),h$1("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),h$1("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),h$1("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),h$1("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),EmptyIcon=defineComponent({name:"Empty",render(){return h$1("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),h$1("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ErrorIcon=replaceable("error",h$1("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),InfoIcon=replaceable("info",h$1("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),RemoveIcon=defineComponent({name:"Remove",render(){return h$1("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h$1("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:"\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 32px;\n "}))}}),SuccessIcon=replaceable("success",h$1("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),WarningIcon=replaceable("warning",h$1("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h$1("g",{"fill-rule":"nonzero"},h$1("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),ChevronDownIcon=defineComponent({name:"ChevronDown",render(){return h$1("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),ClearIcon=replaceable("clear",h$1("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h$1("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h$1("g",{fill:"currentColor","fill-rule":"nonzero"},h$1("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NIconSwitchTransition=defineComponent({name:"BaseIconSwitchTransition",setup(d,{slots:b}){const A=isMounted();return()=>h$1(Transition,{name:"icon-switch-transition",appear:A.value},b)}}),NFadeInExpandTransition=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(d,{slots:b}){function A(E){d.width?E.style.maxWidth="".concat(E.offsetWidth,"px"):E.style.maxHeight="".concat(E.offsetHeight,"px"),E.offsetWidth}function w(E){d.width?E.style.maxWidth="0":E.style.maxHeight="0",E.offsetWidth;const{onLeave:P}=d;P&&P()}function C(E){d.width?E.style.maxWidth="":E.style.maxHeight="";const{onAfterLeave:P}=d;P&&P()}function x(E){if(E.style.transition="none",d.width){const P=E.offsetWidth;E.style.maxWidth="0",E.offsetWidth,E.style.transition="",E.style.maxWidth="".concat(P,"px")}else if(d.reverse)E.style.maxHeight="".concat(E.offsetHeight,"px"),E.offsetHeight,E.style.transition="",E.style.maxHeight="0";else{const P=E.offsetHeight;E.style.maxHeight="0",E.offsetWidth,E.style.transition="",E.style.maxHeight="".concat(P,"px")}E.offsetWidth}function S(E){var P;d.width?E.style.maxWidth="":d.reverse||(E.style.maxHeight=""),(P=d.onAfterEnter)===null||P===void 0||P.call(d)}return()=>{const{group:E,width:P,appear:B,mode:k}=d,$=E?TransitionGroup:Transition,I={name:P?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:B,onEnter:x,onAfterEnter:S,onBeforeLeave:A,onLeave:w,onAfterLeave:C};return E||(I.mode=k),h$1($,I,b)}}}),style$q=cB("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[c$3("svg","\n height: 1em;\n width: 1em;\n ")]),NBaseIcon=defineComponent({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(d){useStyle("-base-icon",style$q,toRef$1(d,"clsPrefix"))},render(){return h$1("i",{class:"".concat(this.clsPrefix,"-base-icon"),onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),style$p=cB("base-close","\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: transparent;\n color: var(--n-close-icon-color);\n border-radius: var(--n-close-border-radius);\n height: var(--n-close-size);\n width: var(--n-close-size);\n font-size: var(--n-close-icon-size);\n outline: none;\n border: none;\n position: relative;\n padding: 0;\n",[cM("absolute","\n height: var(--n-close-icon-size);\n width: var(--n-close-icon-size);\n "),c$3("&::before",'\n content: "";\n position: absolute;\n width: var(--n-close-size);\n height: var(--n-close-size);\n left: 50%;\n top: 50%;\n transform: translateY(-50%) translateX(-50%);\n transition: inherit;\n border-radius: inherit;\n '),cNotM("disabled",[c$3("&:hover","\n color: var(--n-close-icon-color-hover);\n "),c$3("&:hover::before","\n background-color: var(--n-close-color-hover);\n "),c$3("&:focus::before","\n background-color: var(--n-close-color-hover);\n "),c$3("&:active","\n color: var(--n-close-icon-color-pressed);\n "),c$3("&:active::before","\n background-color: var(--n-close-color-pressed);\n ")]),cM("disabled","\n cursor: not-allowed;\n color: var(--n-close-icon-color-disabled);\n background-color: transparent;\n "),cM("round",[c$3("&::before","\n border-radius: 50%;\n ")])]),NBaseClose=defineComponent({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(d){return useStyle("-base-close",style$p,toRef$1(d,"clsPrefix")),()=>{const{clsPrefix:b,disabled:A,absolute:w,round:C,isButtonTag:x}=d;return h$1(x?"button":"div",{type:x?"button":void 0,tabindex:A||!d.focusable?-1:0,"aria-disabled":A,"aria-label":"close",role:x?void 0:"button",disabled:A,class:["".concat(b,"-base-close"),w&&"".concat(b,"-base-close--absolute"),A&&"".concat(b,"-base-close--disabled"),C&&"".concat(b,"-base-close--round")],onMousedown:E=>{d.focusable||E.preventDefault()},onClick:d.onClick},h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(ErrorIcon$1,null)}))}}}),FocusDetector=defineComponent({props:{onFocus:Function,onBlur:Function},setup(d){return()=>h$1("div",{style:"width: 0; height: 0",tabindex:0,onFocus:d.onFocus,onBlur:d.onBlur})}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$3}=commonVariables$m;function iconSwitchTransition({originalTransform:d="",left:b=0,top:A=0,transition:w="all .3s ".concat(cubicBezierEaseInOut$3," !important")}={}){return[c$3("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:d+" scale(0.75)",left:b,top:A,opacity:0}),c$3("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:"scale(1) ".concat(d),left:b,top:A,opacity:1}),c$3("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:b,top:A,transition:w})]}const style$o=c$3([c$3("@keyframes loading-container-rotate","\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n "),c$3("@keyframes loading-layer-rotate","\n 12.5% {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n 25% {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n }\n 37.5% {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n }\n 50% {\n -webkit-transform: rotate(540deg);\n transform: rotate(540deg);\n }\n 62.5% {\n -webkit-transform: rotate(675deg);\n transform: rotate(675deg);\n }\n 75% {\n -webkit-transform: rotate(810deg);\n transform: rotate(810deg);\n }\n 87.5% {\n -webkit-transform: rotate(945deg);\n transform: rotate(945deg);\n }\n 100% {\n -webkit-transform: rotate(1080deg);\n transform: rotate(1080deg);\n } \n "),c$3("@keyframes loading-left-spin","\n from {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n 50% {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n to {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n "),c$3("@keyframes loading-right-spin","\n from {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n 50% {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n to {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n "),cB("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[cE("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[iconSwitchTransition()]),cE("container","\n display: inline-flex;\n position: relative;\n direction: ltr;\n line-height: 0;\n animation: loading-container-rotate 1568.2352941176ms linear infinite;\n font-size: 0;\n letter-spacing: 0;\n white-space: nowrap;\n opacity: 1;\n width: 100%;\n height: 100%;\n ",[cE("svg","\n stroke: var(--n-text-color);\n fill: transparent;\n position: absolute;\n height: 100%;\n overflow: hidden;\n "),cE("container-layer","\n position: absolute;\n width: 100%;\n height: 100%;\n animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n ",[cE("container-layer-left","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n width: 200%;\n ")]),cE("container-layer-patch","\n position: absolute;\n top: 0;\n left: 47.5%;\n box-sizing: border-box;\n width: 5%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n left: -900%;\n width: 2000%;\n transform: rotate(180deg);\n ")]),cE("container-layer-right","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[cE("svg","\n animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n left: -100%;\n width: 200%;\n ")])])]),cE("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),exposedLoadingProps={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},NBaseLoading=defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},exposedLoadingProps),setup(d){useStyle("-base-loading",style$o,toRef$1(d,"clsPrefix"))},render(){const{clsPrefix:d,radius:b,strokeWidth:A,stroke:w,scale:C}=this,x=b/C;return h$1("div",{class:"".concat(d,"-base-loading"),role:"img","aria-label":"loading"},h$1(NIconSwitchTransition,null,{default:()=>this.show?h$1("div",{key:"icon",class:"".concat(d,"-base-loading__transition-wrapper")},h$1("div",{class:"".concat(d,"-base-loading__container")},h$1("div",{class:"".concat(d,"-base-loading__container-layer")},h$1("div",{class:"".concat(d,"-base-loading__container-layer-left")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:w}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b}))),h$1("div",{class:"".concat(d,"-base-loading__container-layer-patch")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:w}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b}))),h$1("div",{class:"".concat(d,"-base-loading__container-layer-right")},h$1("svg",{class:"".concat(d,"-base-loading__svg"),viewBox:"0 0 ".concat(2*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:w}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/2,"stroke-dasharray":4.91*b,"stroke-dashoffset":2.46*b})))))):h$1("div",{key:"placeholder",class:"".concat(d,"-base-loading__placeholder")},this.$slots)}))}});function toArray(d){return Array.isArray(d)?d:[d]}const TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(d,b){const A=b(d);d.children!==void 0&&A!==TRAVERSE_COMMAND.STOP&&d.children.forEach(w=>traverseWithCb(w,b))}function getNonLeafKeys(d,b={}){const{preserveGroup:A=!1}=b,w=[],C=A?S=>{S.isLeaf||(w.push(S.key),x(S.children))}:S=>{S.isLeaf||(S.isGroup||w.push(S.key),x(S.children))};function x(S){S.forEach(C)}return x(d),w}function isLeaf(d,b){const{isLeaf:A}=d;return A!==void 0?A:!b(d)}function defaultGetChildren(d){return d.children}function defaultGetKey(d){return d.key}function isIgnored(){return!1}function isShallowLoaded(d,b){const{isLeaf:A}=d;return!(A===!1&&!Array.isArray(b(d)))}function isDisabled(d){return d.disabled===!0}function isExpilicitlyNotLoaded(d,b){return d.isLeaf===!1&&!Array.isArray(b(d))}function unwrapCheckedKeys(d){var b;return d==null?[]:Array.isArray(d)?d:(b=d.checkedKeys)!==null&&b!==void 0?b:[]}function unwrapIndeterminateKeys(d){var b;return d==null||Array.isArray(d)?[]:(b=d.indeterminateKeys)!==null&&b!==void 0?b:[]}function merge(d,b){const A=new Set(d);return b.forEach(w=>{A.has(w)||A.add(w)}),Array.from(A)}function minus(d,b){const A=new Set(d);return b.forEach(w=>{A.has(w)&&A.delete(w)}),Array.from(A)}function isGroup(d){return(d==null?void 0:d.type)==="group"}function createIndexGetter(d){const b=new Map;return d.forEach((A,w)=>{b.set(A.key,w)}),A=>{var w;return(w=b.get(A))!==null&&w!==void 0?w:null}}class SubtreeNotLoadedError extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function getExtendedCheckedKeySetAfterCheck(d,b,A,w){return getExtendedCheckedKeySet(b.concat(d),A,w,!1)}function getAvailableAscendantNodeSet(d,b){const A=new Set;return d.forEach(w=>{const C=b.treeNodeMap.get(w);if(C!==void 0){let x=C.parent;for(;x!==null&&!(x.disabled||A.has(x.key));)A.add(x.key),x=x.parent}}),A}function getExtendedCheckedKeySetAfterUncheck(d,b,A,w){const C=getExtendedCheckedKeySet(b,A,w,!1),x=getExtendedCheckedKeySet(d,A,w,!0),S=getAvailableAscendantNodeSet(d,A),E=[];return C.forEach(P=>{(x.has(P)||S.has(P))&&E.push(P)}),E.forEach(P=>C.delete(P)),C}function getCheckedKeys(d,b){const{checkedKeys:A,keysToCheck:w,keysToUncheck:C,indeterminateKeys:x,cascade:S,leafOnly:E,checkStrategy:P,allowNotLoaded:B}=d;if(!S)return w!==void 0?{checkedKeys:merge(A,w),indeterminateKeys:Array.from(x)}:C!==void 0?{checkedKeys:minus(A,C),indeterminateKeys:Array.from(x)}:{checkedKeys:Array.from(A),indeterminateKeys:Array.from(x)};const{levelTreeNodeMap:k}=b;let $;C!==void 0?$=getExtendedCheckedKeySetAfterUncheck(C,A,b,B):w!==void 0?$=getExtendedCheckedKeySetAfterCheck(w,A,b,B):$=getExtendedCheckedKeySet(A,b,B,!1);const I=P==="parent",D=P==="child"||E,F=$,z=new Set,L=Math.max.apply(null,Array.from(k.keys()));for(let H=L;H>=0;H-=1){const Q=H===0,Y=k.get(H);for(const U of Y){if(U.isLeaf)continue;const{key:G,shallowLoaded:W}=U;if(D&&W&&U.children.forEach(oe=>{!oe.disabled&&!oe.isLeaf&&oe.shallowLoaded&&F.has(oe.key)&&F.delete(oe.key)}),U.disabled||!W)continue;let K=!0,X=!1,Z=!0;for(const oe of U.children){const he=oe.key;if(!oe.disabled){if(Z&&(Z=!1),F.has(he))X=!0;else if(z.has(he)){X=!0,K=!1;break}else if(K=!1,X)break}}K&&!Z?(I&&U.children.forEach(oe=>{!oe.disabled&&F.has(oe.key)&&F.delete(oe.key)}),F.add(G)):X&&z.add(G),Q&&D&&F.has(G)&&F.delete(G)}}return{checkedKeys:Array.from(F),indeterminateKeys:Array.from(z)}}function getExtendedCheckedKeySet(d,b,A,w){const{treeNodeMap:C,getChildren:x}=b,S=new Set,E=new Set(d);return d.forEach(P=>{const B=C.get(P);B!==void 0&&traverseWithCb(B,k=>{if(k.disabled)return TRAVERSE_COMMAND.STOP;const{key:$}=k;if(!S.has($)&&(S.add($),E.add($),isExpilicitlyNotLoaded(k.rawNode,x))){if(w)return TRAVERSE_COMMAND.STOP;if(!A)throw new SubtreeNotLoadedError}})}),E}function getPath(d,{includeGroup:b=!1,includeSelf:A=!0},w){var C;const x=w.treeNodeMap;let S=d==null?null:(C=x.get(d))!==null&&C!==void 0?C:null;const E={keyPath:[],treeNodePath:[],treeNode:S};if(S!=null&&S.ignored)return E.treeNode=null,E;for(;S;)!S.ignored&&(b||!S.isGroup)&&E.treeNodePath.push(S),S=S.parent;return E.treeNodePath.reverse(),A||E.treeNodePath.pop(),E.keyPath=E.treeNodePath.map(P=>P.key),E}function getFirstAvailableNode(d){if(d.length===0)return null;const b=d[0];return b.isGroup||b.ignored||b.disabled?b.getNext():b}function rawGetNext(d,b){const A=d.siblings,w=A.length,{index:C}=d;return b?A[(C+1)%w]:C===A.length-1?null:A[C+1]}function move(d,b,{loop:A=!1,includeDisabled:w=!1}={}){const C=b==="prev"?rawGetPrev:rawGetNext,x={reverse:b==="prev"};let S=!1,E=null;function P(B){if(B!==null){if(B===d){if(!S)S=!0;else if(!d.disabled&&!d.isGroup){E=d;return}}else if((!B.disabled||w)&&!B.ignored&&!B.isGroup){E=B;return}if(B.isGroup){const k=getChild(B,x);k!==null?E=k:P(C(B,A))}else{const k=C(B,!1);if(k!==null)P(k);else{const $=rawGetParent(B);$!=null&&$.isGroup?P(C($,A)):A&&P(C(B,!0))}}}}return P(d),E}function rawGetPrev(d,b){const A=d.siblings,w=A.length,{index:C}=d;return b?A[(C-1+w)%w]:C===0?null:A[C-1]}function rawGetParent(d){return d.parent}function getChild(d,b={}){const{reverse:A=!1}=b,{children:w}=d;if(w){const{length:C}=w,x=A?C-1:0,S=A?-1:C,E=A?-1:1;for(let P=x;P!==S;P+=E){const B=w[P];if(!B.disabled&&!B.ignored)if(B.isGroup){const k=getChild(B,b);if(k!==null)return k}else return B}}return null}const moveMethods={getChild(){return this.ignored?null:getChild(this)},getParent(){const{parent:d}=this;return d!=null&&d.isGroup?d.getParent():d},getNext(d={}){return move(this,"next",d)},getPrev(d={}){return move(this,"prev",d)}};function flatten$2(d,b){const A=b?new Set(b):void 0,w=[];function C(x){x.forEach(S=>{w.push(S),!(S.isLeaf||!S.children||S.ignored)&&(S.isGroup||A===void 0||A.has(S.key))&&C(S.children)})}return C(d),w}function contains(d,b){const A=d.key;for(;b;){if(b.key===A)return!0;b=b.parent}return!1}function createTreeNodes(d,b,A,w,C,x=null,S=0){const E=[];return d.forEach((P,B)=>{var k;const $=Object.create(w);if($.rawNode=P,$.siblings=E,$.level=S,$.index=B,$.isFirstChild=B===0,$.isLastChild=B+1===d.length,$.parent=x,!$.ignored){const I=C(P);Array.isArray(I)&&($.children=createTreeNodes(I,b,A,w,C,$,S+1))}E.push($),b.set($.key,$),A.has(S)||A.set(S,[]),(k=A.get(S))===null||k===void 0||k.push($)}),E}function createTreeMate(d,b={}){var A;const w=new Map,C=new Map,{getDisabled:x=isDisabled,getIgnored:S=isIgnored,getIsGroup:E=isGroup,getKey:P=defaultGetKey}=b,B=(A=b.getChildren)!==null&&A!==void 0?A:defaultGetChildren,k=b.ignoreEmptyChildren?U=>{const G=B(U);return Array.isArray(G)?G.length?G:null:G}:B,$=Object.assign({get key(){return P(this.rawNode)},get disabled(){return x(this.rawNode)},get isGroup(){return E(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,k)},get shallowLoaded(){return isShallowLoaded(this.rawNode,k)},get ignored(){return S(this.rawNode)},contains(U){return contains(this,U)}},moveMethods),I=createTreeNodes(d,w,C,$,k);function D(U){if(U==null)return null;const G=w.get(U);return G&&!G.isGroup&&!G.ignored?G:null}function F(U){if(U==null)return null;const G=w.get(U);return G&&!G.ignored?G:null}function z(U,G){const W=F(U);return W?W.getPrev(G):null}function L(U,G){const W=F(U);return W?W.getNext(G):null}function H(U){const G=F(U);return G?G.getParent():null}function Q(U){const G=F(U);return G?G.getChild():null}const Y={treeNodes:I,treeNodeMap:w,levelTreeNodeMap:C,maxLevel:Math.max(...C.keys()),getChildren:k,getFlattenedNodes(U){return flatten$2(I,U)},getNode:D,getPrev:z,getNext:L,getParent:H,getChild:Q,getFirstAvailableNode(){return getFirstAvailableNode(I)},getPath(U,G={}){return getPath(U,G,Y)},getCheckedKeys(U,G={}){const{cascade:W=!0,leafOnly:K=!1,checkStrategy:X="all",allowNotLoaded:Z=!1}=G;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(U),indeterminateKeys:unwrapIndeterminateKeys(U),cascade:W,leafOnly:K,checkStrategy:X,allowNotLoaded:Z},Y)},check(U,G,W={}){const{cascade:K=!0,leafOnly:X=!1,checkStrategy:Z="all",allowNotLoaded:oe=!1}=W;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(G),indeterminateKeys:unwrapIndeterminateKeys(G),keysToCheck:U==null?[]:toArray(U),cascade:K,leafOnly:X,checkStrategy:Z,allowNotLoaded:oe},Y)},uncheck(U,G,W={}){const{cascade:K=!0,leafOnly:X=!1,checkStrategy:Z="all",allowNotLoaded:oe=!1}=W;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(G),indeterminateKeys:unwrapIndeterminateKeys(G),keysToUncheck:U==null?[]:toArray(U),cascade:K,leafOnly:X,checkStrategy:Z,allowNotLoaded:oe},Y)},getNonLeafKeys(U={}){return getNonLeafKeys(I,U)}};return Y}const base$1={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},baseBackgroundRgb$1=rgba(base$1.neutralBase),baseInvertBackgroundRgb$1=rgba(base$1.neutralInvertBase),overlayPrefix$1="rgba("+baseInvertBackgroundRgb$1.slice(0,3).join(", ")+", ";function overlay$1(d){return overlayPrefix$1+String(d)+")"}function neutral$1(d){const b=Array.from(baseInvertBackgroundRgb$1);return b[3]=Number(d),composite(baseBackgroundRgb$1,b)}const derived$1=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base$1.neutralBase,primaryColor:base$1.primaryDefault,primaryColorHover:base$1.primaryHover,primaryColorPressed:base$1.primaryActive,primaryColorSuppl:base$1.primarySuppl,infoColor:base$1.infoDefault,infoColorHover:base$1.infoHover,infoColorPressed:base$1.infoActive,infoColorSuppl:base$1.infoSuppl,successColor:base$1.successDefault,successColorHover:base$1.successHover,successColorPressed:base$1.successActive,successColorSuppl:base$1.successSuppl,warningColor:base$1.warningDefault,warningColorHover:base$1.warningHover,warningColorPressed:base$1.warningActive,warningColorSuppl:base$1.warningSuppl,errorColor:base$1.errorDefault,errorColorHover:base$1.errorHover,errorColorPressed:base$1.errorActive,errorColorSuppl:base$1.errorSuppl,textColorBase:base$1.neutralTextBase,textColor1:overlay$1(base$1.alpha1),textColor2:overlay$1(base$1.alpha2),textColor3:overlay$1(base$1.alpha3),textColorDisabled:overlay$1(base$1.alpha4),placeholderColor:overlay$1(base$1.alpha4),placeholderColorDisabled:overlay$1(base$1.alpha5),iconColor:overlay$1(base$1.alpha4),iconColorDisabled:overlay$1(base$1.alpha5),iconColorHover:overlay$1(Number(base$1.alpha4)*1.25),iconColorPressed:overlay$1(Number(base$1.alpha4)*.8),opacity1:base$1.alpha1,opacity2:base$1.alpha2,opacity3:base$1.alpha3,opacity4:base$1.alpha4,opacity5:base$1.alpha5,dividerColor:overlay$1(base$1.alphaDivider),borderColor:overlay$1(base$1.alphaBorder),closeIconColorHover:overlay$1(Number(base$1.alphaClose)),closeIconColor:overlay$1(Number(base$1.alphaClose)),closeIconColorPressed:overlay$1(Number(base$1.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:overlay$1(base$1.alpha4),clearColorHover:scaleColor(overlay$1(base$1.alpha4),{alpha:1.25}),clearColorPressed:scaleColor(overlay$1(base$1.alpha4),{alpha:.8}),scrollbarColor:overlay$1(base$1.alphaScrollbar),scrollbarColorHover:overlay$1(base$1.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:overlay$1(base$1.alphaProgressRail),railColor:overlay$1(base$1.alphaRail),popoverColor:base$1.neutralPopover,tableColor:base$1.neutralCard,cardColor:base$1.neutralCard,modalColor:base$1.neutralModal,bodyColor:base$1.neutralBody,tagColor:neutral$1(base$1.alphaTag),avatarColor:overlay$1(base$1.alphaAvatar),invertedColor:base$1.neutralBase,inputColor:overlay$1(base$1.alphaInput),codeColor:overlay$1(base$1.alphaCode),tabColor:overlay$1(base$1.alphaTab),actionColor:overlay$1(base$1.alphaAction),tableHeaderColor:overlay$1(base$1.alphaAction),hoverColor:overlay$1(base$1.alphaPending),tableColorHover:overlay$1(base$1.alphaTablePending),tableColorStriped:overlay$1(base$1.alphaTableStriped),pressedColor:overlay$1(base$1.alphaPressed),opacityDisabled:base$1.alphaDisabled,inputColorDisabled:overlay$1(base$1.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),commonDark=derived$1,base={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},baseBackgroundRgb=rgba(base.neutralBase),baseInvertBackgroundRgb=rgba(base.neutralInvertBase),overlayPrefix="rgba("+baseInvertBackgroundRgb.slice(0,3).join(", ")+", ";function overlay(d){return overlayPrefix+String(d)+")"}function neutral(d){const b=Array.from(baseInvertBackgroundRgb);return b[3]=Number(d),composite(baseBackgroundRgb,b)}const derived=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base.neutralBase,primaryColor:base.primaryDefault,primaryColorHover:base.primaryHover,primaryColorPressed:base.primaryActive,primaryColorSuppl:base.primarySuppl,infoColor:base.infoDefault,infoColorHover:base.infoHover,infoColorPressed:base.infoActive,infoColorSuppl:base.infoSuppl,successColor:base.successDefault,successColorHover:base.successHover,successColorPressed:base.successActive,successColorSuppl:base.successSuppl,warningColor:base.warningDefault,warningColorHover:base.warningHover,warningColorPressed:base.warningActive,warningColorSuppl:base.warningSuppl,errorColor:base.errorDefault,errorColorHover:base.errorHover,errorColorPressed:base.errorActive,errorColorSuppl:base.errorSuppl,textColorBase:base.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:neutral(base.alpha4),placeholderColor:neutral(base.alpha4),placeholderColorDisabled:neutral(base.alpha5),iconColor:neutral(base.alpha4),iconColorHover:scaleColor(neutral(base.alpha4),{lightness:.75}),iconColorPressed:scaleColor(neutral(base.alpha4),{lightness:.9}),iconColorDisabled:neutral(base.alpha5),opacity1:base.alpha1,opacity2:base.alpha2,opacity3:base.alpha3,opacity4:base.alpha4,opacity5:base.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:neutral(Number(base.alphaClose)),closeIconColorHover:neutral(Number(base.alphaClose)),closeIconColorPressed:neutral(Number(base.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:neutral(base.alpha4),clearColorHover:scaleColor(neutral(base.alpha4),{lightness:.75}),clearColorPressed:scaleColor(neutral(base.alpha4),{lightness:.9}),scrollbarColor:overlay(base.alphaScrollbar),scrollbarColorHover:overlay(base.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:neutral(base.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:base.neutralPopover,tableColor:base.neutralCard,cardColor:base.neutralCard,modalColor:base.neutralModal,bodyColor:base.neutralBody,tagColor:"#eee",avatarColor:neutral(base.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:neutral(base.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:base.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),commonLight=derived,commonVars$c={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},self$U=d=>{const{textColorDisabled:b,iconColor:A,textColor2:w,fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,fontSizeHuge:E}=d;return Object.assign(Object.assign({},commonVars$c),{fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,fontSizeHuge:E,textColor:b,iconColor:A,extraTextColor:w})},emptyLight={name:"Empty",common:commonLight,self:self$U},emptyLight$1=emptyLight,emptyDark={name:"Empty",common:commonDark,self:self$U},emptyDark$1=emptyDark,style$n=cB("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[cE("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[c$3("+",[cE("description","\n margin-top: 8px;\n ")])]),cE("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),cE("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]),emptyProps=Object.assign(Object.assign({},useTheme.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),NEmpty=defineComponent({name:"Empty",props:emptyProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:A}=useConfig(d),w=useTheme("Empty","-empty",style$n,emptyLight$1,d,b),{localeRef:C}=useLocale("Empty"),x=inject(configProviderInjectionKey,null),S=computed(()=>{var k,$,I;return(k=d.description)!==null&&k!==void 0?k:(I=($=x==null?void 0:x.mergedComponentPropsRef.value)===null||$===void 0?void 0:$.Empty)===null||I===void 0?void 0:I.description}),E=computed(()=>{var k,$;return(($=(k=x==null?void 0:x.mergedComponentPropsRef.value)===null||k===void 0?void 0:k.Empty)===null||$===void 0?void 0:$.renderIcon)||(()=>h$1(EmptyIcon,null))}),P=computed(()=>{const{size:k}=d,{common:{cubicBezierEaseInOut:$},self:{[createKey("iconSize",k)]:I,[createKey("fontSize",k)]:D,textColor:F,iconColor:z,extraTextColor:L}}=w.value;return{"--n-icon-size":I,"--n-font-size":D,"--n-bezier":$,"--n-text-color":F,"--n-icon-color":z,"--n-extra-text-color":L}}),B=A?useThemeClass("empty",computed(()=>{let k="";const{size:$}=d;return k+=$[0],k}),P,d):void 0;return{mergedClsPrefix:b,mergedRenderIcon:E,localizedDescription:computed(()=>S.value||C.value.description),cssVars:A?void 0:P,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const{$slots:d,mergedClsPrefix:b,onRender:A}=this;return A==null||A(),h$1("div",{class:["".concat(b,"-empty"),this.themeClass],style:this.cssVars},this.showIcon?h$1("div",{class:"".concat(b,"-empty__icon")},d.icon?d.icon():h$1(NBaseIcon,{clsPrefix:b},{default:this.mergedRenderIcon})):null,this.showDescription?h$1("div",{class:"".concat(b,"-empty__description")},d.default?d.default():this.localizedDescription):null,d.extra?h$1("div",{class:"".concat(b,"-empty__extra")},d.extra()):null)}}),self$T=d=>{const{scrollbarColor:b,scrollbarColorHover:A}=d;return{color:b,colorHover:A}},scrollbarLight={name:"Scrollbar",common:commonLight,self:self$T},scrollbarLight$1=scrollbarLight,scrollbarDark={name:"Scrollbar",common:commonDark,self:self$T},scrollbarDark$1=scrollbarDark,{cubicBezierEaseInOut:cubicBezierEaseInOut$2}=commonVariables$m;function fadeInTransition({name:d="fade-in",enterDuration:b="0.2s",leaveDuration:A="0.2s",enterCubicBezier:w=cubicBezierEaseInOut$2,leaveCubicBezier:C=cubicBezierEaseInOut$2}={}){return[c$3("&.".concat(d,"-transition-enter-active"),{transition:"all ".concat(b," ").concat(w,"!important")}),c$3("&.".concat(d,"-transition-leave-active"),{transition:"all ".concat(A," ").concat(C,"!important")}),c$3("&.".concat(d,"-transition-enter-from, &.").concat(d,"-transition-leave-to"),{opacity:0}),c$3("&.".concat(d,"-transition-leave-from, &.").concat(d,"-transition-enter-to"),{opacity:1})]}const style$m=cB("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[c$3(">",[cB("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),c$3(">",[cB("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),c$3(">, +",[cB("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[cM("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[c$3(">",[cE("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),cM("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[c$3(">",[cE("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),cM("disabled",[c$3(">",[cE("scrollbar",{pointerEvents:"none"})])]),c$3(">",[cE("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[fadeInTransition(),c$3("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),scrollbarProps$1=Object.assign(Object.assign({},useTheme.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Scrollbar$1=defineComponent({name:"Scrollbar",props:scrollbarProps$1,inheritAttrs:!1,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:A,mergedRtlRef:w}=useConfig(d),C=useRtl("Scrollbar",w,b),x=ref(null),S=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(null),$=ref(null),I=ref(null),D=ref(null),F=ref(null),z=ref(null),L=ref(0),H=ref(0),Q=ref(!1),Y=ref(!1);let U=!1,G=!1,W,K,X=0,Z=0,oe=0,he=0;const J=useIsIos(),le=computed(()=>{const{value:Ae}=I,{value:Re}=k,{value:qe}=F;return Ae===null||Re===null||qe===null?0:Math.min(Ae,qe*Ae/Re+d.size*1.5)}),de=computed(()=>"".concat(le.value,"px")),me=computed(()=>{const{value:Ae}=D,{value:Re}=$,{value:qe}=z;return Ae===null||Re===null||qe===null?0:qe*Ae/Re+d.size*1.5}),ne=computed(()=>"".concat(me.value,"px")),re=computed(()=>{const{value:Ae}=I,{value:Re}=L,{value:qe}=k,{value:ft}=F;if(Ae===null||qe===null||ft===null)return 0;{const vt=qe-Ae;return vt?Re/vt*(ft-le.value):0}}),fe=computed(()=>"".concat(re.value,"px")),ce=computed(()=>{const{value:Ae}=D,{value:Re}=H,{value:qe}=$,{value:ft}=z;if(Ae===null||qe===null||ft===null)return 0;{const vt=qe-Ae;return vt?Re/vt*(ft-me.value):0}}),we=computed(()=>"".concat(ce.value,"px")),Fe=computed(()=>{const{value:Ae}=I,{value:Re}=k;return Ae!==null&&Re!==null&&Re>Ae}),Ke=computed(()=>{const{value:Ae}=D,{value:Re}=$;return Ae!==null&&Re!==null&&Re>Ae}),tt=computed(()=>{const{trigger:Ae}=d;return Ae==="none"||Q.value}),ut=computed(()=>{const{trigger:Ae}=d;return Ae==="none"||Y.value}),dt=computed(()=>{const{container:Ae}=d;return Ae?Ae():S.value}),it=computed(()=>{const{content:Ae}=d;return Ae?Ae():E.value}),$e=useReactivated(()=>{d.container||Qe({top:L.value,left:H.value})}),ke=()=>{$e.isDeactivated||Ye()},Oe=Ae=>{if($e.isDeactivated)return;const{onResize:Re}=d;Re&&Re(Ae),Ye()},Qe=(Ae,Re)=>{if(!d.scrollable)return;if(typeof Ae=="number"){ve(Re!=null?Re:0,Ae,0,!1,"auto");return}const{left:qe,top:ft,index:vt,elSize:bt,position:xe,behavior:Ne,el:ze,debounce:Ve=!0}=Ae;(qe!==void 0||ft!==void 0)&&ve(qe!=null?qe:0,ft!=null?ft:0,0,!1,Ne),ze!==void 0?ve(0,ze.offsetTop,ze.offsetHeight,Ve,Ne):vt!==void 0&&bt!==void 0?ve(0,vt*bt,bt,Ve,Ne):xe==="bottom"?ve(0,Number.MAX_SAFE_INTEGER,0,!1,Ne):xe==="top"&&ve(0,0,0,!1,Ne)},Je=(Ae,Re)=>{if(!d.scrollable)return;const{value:qe}=dt;qe&&(typeof Ae=="object"?qe.scrollBy(Ae):qe.scrollBy(Ae,Re||0))};function ve(Ae,Re,qe,ft,vt){const{value:bt}=dt;if(bt){if(ft){const{scrollTop:xe,offsetHeight:Ne}=bt;if(Re>xe){Re+qe<=xe+Ne||bt.scrollTo({left:Ae,top:Re+qe-Ne,behavior:vt});return}}bt.scrollTo({left:Ae,top:Re,behavior:vt})}}function ye(){be(),Ee(),Ye()}function Te(){ee()}function ee(){se(),ie()}function se(){K!==void 0&&window.clearTimeout(K),K=window.setTimeout(()=>{Y.value=!1},d.duration)}function ie(){W!==void 0&&window.clearTimeout(W),W=window.setTimeout(()=>{Q.value=!1},d.duration)}function be(){W!==void 0&&window.clearTimeout(W),Q.value=!0}function Ee(){K!==void 0&&window.clearTimeout(K),Y.value=!0}function Ce(Ae){const{onScroll:Re}=d;Re&&Re(Ae),ge()}function ge(){const{value:Ae}=dt;Ae&&(L.value=Ae.scrollTop,H.value=Ae.scrollLeft*(C!=null&&C.value?-1:1))}function Ie(){const{value:Ae}=it;Ae&&(k.value=Ae.offsetHeight,$.value=Ae.offsetWidth);const{value:Re}=dt;Re&&(I.value=Re.offsetHeight,D.value=Re.offsetWidth);const{value:qe}=B,{value:ft}=P;qe&&(z.value=qe.offsetWidth),ft&&(F.value=ft.offsetHeight)}function Le(){const{value:Ae}=dt;Ae&&(L.value=Ae.scrollTop,H.value=Ae.scrollLeft*(C!=null&&C.value?-1:1),I.value=Ae.offsetHeight,D.value=Ae.offsetWidth,k.value=Ae.scrollHeight,$.value=Ae.scrollWidth);const{value:Re}=B,{value:qe}=P;Re&&(z.value=Re.offsetWidth),qe&&(F.value=qe.offsetHeight)}function Ye(){d.scrollable&&(d.useUnifiedContainer?Le():(Ie(),ge()))}function rt(Ae){var Re;return!(!((Re=x.value)===null||Re===void 0)&&Re.contains(getPreciseEventTarget(Ae)))}function lt(Ae){Ae.preventDefault(),Ae.stopPropagation(),G=!0,on("mousemove",window,pt,!0),on("mouseup",window,He,!0),Z=H.value,oe=C!=null&&C.value?window.innerWidth-Ae.clientX:Ae.clientX}function pt(Ae){if(!G)return;W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K);const{value:Re}=D,{value:qe}=$,{value:ft}=me;if(Re===null||qe===null)return;const bt=(C!=null&&C.value?window.innerWidth-Ae.clientX-oe:Ae.clientX-oe)*(qe-Re)/(Re-ft),xe=qe-Re;let Ne=Z+bt;Ne=Math.min(xe,Ne),Ne=Math.max(Ne,0);const{value:ze}=dt;if(ze){ze.scrollLeft=Ne*(C!=null&&C.value?-1:1);const{internalOnUpdateScrollLeft:Ve}=d;Ve&&Ve(Ne)}}function He(Ae){Ae.preventDefault(),Ae.stopPropagation(),off("mousemove",window,pt,!0),off("mouseup",window,He,!0),G=!1,Ye(),rt(Ae)&&ee()}function at(Ae){Ae.preventDefault(),Ae.stopPropagation(),U=!0,on("mousemove",window,nt,!0),on("mouseup",window,mt,!0),X=L.value,he=Ae.clientY}function nt(Ae){if(!U)return;W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K);const{value:Re}=I,{value:qe}=k,{value:ft}=le;if(Re===null||qe===null)return;const bt=(Ae.clientY-he)*(qe-Re)/(Re-ft),xe=qe-Re;let Ne=X+bt;Ne=Math.min(xe,Ne),Ne=Math.max(Ne,0);const{value:ze}=dt;ze&&(ze.scrollTop=Ne)}function mt(Ae){Ae.preventDefault(),Ae.stopPropagation(),off("mousemove",window,nt,!0),off("mouseup",window,mt,!0),U=!1,Ye(),rt(Ae)&&ee()}watchEffect(()=>{const{value:Ae}=Ke,{value:Re}=Fe,{value:qe}=b,{value:ft}=B,{value:vt}=P;ft&&(Ae?ft.classList.remove("".concat(qe,"-scrollbar-rail--disabled")):ft.classList.add("".concat(qe,"-scrollbar-rail--disabled"))),vt&&(Re?vt.classList.remove("".concat(qe,"-scrollbar-rail--disabled")):vt.classList.add("".concat(qe,"-scrollbar-rail--disabled")))}),onMounted(()=>{d.container||Ye()}),onBeforeUnmount(()=>{W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K),off("mousemove",window,nt,!0),off("mouseup",window,mt,!0)});const Tt=useTheme("Scrollbar","-scrollbar",style$m,scrollbarLight$1,d,b),Dt=computed(()=>{const{common:{cubicBezierEaseInOut:Ae,scrollbarBorderRadius:Re,scrollbarHeight:qe,scrollbarWidth:ft},self:{color:vt,colorHover:bt}}=Tt.value;return{"--n-scrollbar-bezier":Ae,"--n-scrollbar-color":vt,"--n-scrollbar-color-hover":bt,"--n-scrollbar-border-radius":Re,"--n-scrollbar-width":ft,"--n-scrollbar-height":qe}}),yt=A?useThemeClass("scrollbar",void 0,Dt,d):void 0;return Object.assign(Object.assign({},{scrollTo:Qe,scrollBy:Je,sync:Ye,syncUnifiedContainer:Le,handleMouseEnterWrapper:ye,handleMouseLeaveWrapper:Te}),{mergedClsPrefix:b,rtlEnabled:C,containerScrollTop:L,wrapperRef:x,containerRef:S,contentRef:E,yRailRef:P,xRailRef:B,needYBar:Fe,needXBar:Ke,yBarSizePx:de,xBarSizePx:ne,yBarTopPx:fe,xBarLeftPx:we,isShowXBar:tt,isShowYBar:ut,isIos:J,handleScroll:Ce,handleContentResize:ke,handleContainerResize:Oe,handleYScrollMouseDown:at,handleXScrollMouseDown:lt,cssVars:A?void 0:Dt,themeClass:yt==null?void 0:yt.themeClass,onRender:yt==null?void 0:yt.onRender})},render(){var d;const{$slots:b,mergedClsPrefix:A,triggerDisplayManually:w,rtlEnabled:C,internalHoistYRail:x}=this;if(!this.scrollable)return(d=b.default)===null||d===void 0?void 0:d.call(b);const S=this.trigger==="none",E=()=>h$1("div",{ref:"yRailRef",class:["".concat(A,"-scrollbar-rail"),"".concat(A,"-scrollbar-rail--vertical")],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},h$1(S?Wrapper:Transition,S?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h$1("div",{class:"".concat(A,"-scrollbar-rail__scrollbar"),style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),P=()=>{var k,$;return(k=this.onRender)===null||k===void 0||k.call(this),h$1("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:["".concat(A,"-scrollbar"),this.themeClass,C&&"".concat(A,"-scrollbar--rtl")],style:this.cssVars,onMouseenter:w?void 0:this.handleMouseEnterWrapper,onMouseleave:w?void 0:this.handleMouseLeaveWrapper}),[this.container?($=b.default)===null||$===void 0?void 0:$.call(b):h$1("div",{role:"none",ref:"containerRef",class:["".concat(A,"-scrollbar-container"),this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h$1(VResizeObserver,{onResize:this.handleContentResize},{default:()=>h$1("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:["".concat(A,"-scrollbar-content"),this.contentClass]},b)})),x?null:E(),this.xScrollable&&h$1("div",{ref:"xRailRef",class:["".concat(A,"-scrollbar-rail"),"".concat(A,"-scrollbar-rail--horizontal")],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h$1(S?Wrapper:Transition,S?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h$1("div",{class:"".concat(A,"-scrollbar-rail__scrollbar"),style:{width:this.xBarSizePx,right:C?this.xBarLeftPx:void 0,left:C?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},B=this.container?P():h$1(VResizeObserver,{onResize:this.handleContainerResize},{default:P});return x?h$1(Fragment,null,B,E()):B}}),NScrollbar$1=Scrollbar$1,XScrollbar=Scrollbar$1,commonVariables$l={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},self$S=d=>{const{borderRadius:b,popoverColor:A,textColor3:w,dividerColor:C,textColor2:x,primaryColorPressed:S,textColorDisabled:E,primaryColor:P,opacityDisabled:B,hoverColor:k,fontSizeSmall:$,fontSizeMedium:I,fontSizeLarge:D,fontSizeHuge:F,heightSmall:z,heightMedium:L,heightLarge:H,heightHuge:Q}=d;return Object.assign(Object.assign({},commonVariables$l),{optionFontSizeSmall:$,optionFontSizeMedium:I,optionFontSizeLarge:D,optionFontSizeHuge:F,optionHeightSmall:z,optionHeightMedium:L,optionHeightLarge:H,optionHeightHuge:Q,borderRadius:b,color:A,groupHeaderTextColor:w,actionDividerColor:C,optionTextColor:x,optionTextColorPressed:S,optionTextColorDisabled:E,optionTextColorActive:P,optionOpacityDisabled:B,optionCheckColor:P,optionColorPending:k,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:k,actionTextColor:x,loadingColor:P})},internalSelectMenuLight={name:"InternalSelectMenu",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Empty:emptyLight$1},self:self$S},internalSelectMenuLight$1=internalSelectMenuLight,internalSelectMenuDark={name:"InternalSelectMenu",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self:self$S},internalSelectMenuDark$1=internalSelectMenuDark;function renderCheckMark(d,b){return h$1(Transition,{name:"fade-in-scale-up-transition"},{default:()=>d?h$1(NBaseIcon,{clsPrefix:b,class:"".concat(b,"-base-select-option__check")},{default:()=>h$1(FinishedIcon)}):null})}const NSelectOption=defineComponent({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(d){const{valueRef:b,pendingTmNodeRef:A,multipleRef:w,valueSetRef:C,renderLabelRef:x,renderOptionRef:S,labelFieldRef:E,valueFieldRef:P,showCheckmarkRef:B,nodePropsRef:k,handleOptionClick:$,handleOptionMouseEnter:I}=inject(internalSelectionMenuInjectionKey),D=useMemo(()=>{const{value:H}=A;return H?d.tmNode.key===H.key:!1});function F(H){const{tmNode:Q}=d;Q.disabled||$(H,Q)}function z(H){const{tmNode:Q}=d;Q.disabled||I(H,Q)}function L(H){const{tmNode:Q}=d,{value:Y}=D;Q.disabled||Y||I(H,Q)}return{multiple:w,isGrouped:useMemo(()=>{const{tmNode:H}=d,{parent:Q}=H;return Q&&Q.rawNode.type==="group"}),showCheckmark:B,nodeProps:k,isPending:D,isSelected:useMemo(()=>{const{value:H}=b,{value:Q}=w;if(H===null)return!1;const Y=d.tmNode.rawNode[P.value];if(Q){const{value:U}=C;return U.has(Y)}else return H===Y}),labelField:E,renderLabel:x,renderOption:S,handleMouseMove:L,handleMouseEnter:z,handleClick:F}},render(){const{clsPrefix:d,tmNode:{rawNode:b},isSelected:A,isPending:w,isGrouped:C,showCheckmark:x,nodeProps:S,renderOption:E,renderLabel:P,handleClick:B,handleMouseEnter:k,handleMouseMove:$}=this,I=renderCheckMark(A,d),D=P?[P(b,A),x&&I]:[render$1(b[this.labelField],b,A),x&&I],F=S==null?void 0:S(b),z=h$1("div",Object.assign({},F,{class:["".concat(d,"-base-select-option"),b.class,F==null?void 0:F.class,{["".concat(d,"-base-select-option--disabled")]:b.disabled,["".concat(d,"-base-select-option--selected")]:A,["".concat(d,"-base-select-option--grouped")]:C,["".concat(d,"-base-select-option--pending")]:w,["".concat(d,"-base-select-option--show-checkmark")]:x}],style:[(F==null?void 0:F.style)||"",b.style||""],onClick:mergeEventHandlers([B,F==null?void 0:F.onClick]),onMouseenter:mergeEventHandlers([k,F==null?void 0:F.onMouseenter]),onMousemove:mergeEventHandlers([$,F==null?void 0:F.onMousemove])}),h$1("div",{class:"".concat(d,"-base-select-option__content")},D));return b.render?b.render({node:z,option:b,selected:A}):E?E({node:z,option:b,selected:A}):z}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:d,renderOptionRef:b,labelFieldRef:A,nodePropsRef:w}=inject(internalSelectionMenuInjectionKey);return{labelField:A,nodeProps:w,renderLabel:d,renderOption:b}},render(){const{clsPrefix:d,renderLabel:b,renderOption:A,nodeProps:w,tmNode:{rawNode:C}}=this,x=w==null?void 0:w(C),S=b?b(C,!1):render$1(C[this.labelField],C,!1),E=h$1("div",Object.assign({},x,{class:["".concat(d,"-base-select-group-header"),x==null?void 0:x.class]}),S);return C.render?C.render({node:E,option:C}):A?A({node:E,option:C,selected:!1}):E}}),{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$m;function fadeInScaleUpTransition({transformOrigin:d="inherit",duration:b=".2s",enterScale:A=".9",originalTransform:w="",originalTransition:C=""}={}){return[c$3("&.fade-in-scale-up-transition-leave-active",{transformOrigin:d,transition:"opacity ".concat(b," ").concat(cubicBezierEaseIn$1,", transform ").concat(b," ").concat(cubicBezierEaseIn$1," ").concat(C&&","+C)}),c$3("&.fade-in-scale-up-transition-enter-active",{transformOrigin:d,transition:"opacity ".concat(b," ").concat(cubicBezierEaseOut$1,", transform ").concat(b," ").concat(cubicBezierEaseOut$1," ").concat(C&&","+C)}),c$3("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:"".concat(w," scale(").concat(A,")")}),c$3("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:"".concat(w," scale(1)")})]}const style$l=cB("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[cB("scrollbar","\n max-height: var(--n-height);\n "),cB("virtual-list","\n max-height: var(--n-height);\n "),cB("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[cE("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),cB("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),cB("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),cE("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),cE("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),cE("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),cB("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),cB("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[cM("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),c$3("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),c$3("&:active","\n color: var(--n-option-text-color-pressed);\n "),cM("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),cM("pending",[c$3("&::before","\n background-color: var(--n-option-color-pending);\n ")]),cM("selected","\n color: var(--n-option-text-color-active);\n ",[c$3("&::before","\n background-color: var(--n-option-color-active);\n "),cM("pending",[c$3("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),cM("disabled","\n cursor: not-allowed;\n ",[cNotM("selected","\n color: var(--n-option-text-color-disabled);\n "),cM("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),cE("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[fadeInScaleUpTransition({enterScale:"0.5"})])])]),NInternalSelectMenu=defineComponent({name:"InternalSelectMenu",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(d){const b=useTheme("InternalSelectMenu","-internal-select-menu",style$l,internalSelectMenuLight$1,d,toRef$1(d,"clsPrefix")),A=ref(null),w=ref(null),C=ref(null),x=computed(()=>d.treeMate.getFlattenedNodes()),S=computed(()=>createIndexGetter(x.value)),E=ref(null);function P(){const{treeMate:ce}=d;let we=null;const{value:Fe}=d;Fe===null?we=ce.getFirstAvailableNode():(d.multiple?we=ce.getNode((Fe||[])[(Fe||[]).length-1]):we=ce.getNode(Fe),(!we||we.disabled)&&(we=ce.getFirstAvailableNode())),he(we||null)}function B(){const{value:ce}=E;ce&&!d.treeMate.getNode(ce.key)&&(E.value=null)}let k;watch(()=>d.show,ce=>{ce?k=watch(()=>d.treeMate,()=>{d.resetMenuOnOptionsChange?(d.autoPending?P():B(),nextTick(J)):B()},{immediate:!0}):k==null||k()},{immediate:!0}),onBeforeUnmount(()=>{k==null||k()});const $=computed(()=>depx(b.value.self[createKey("optionHeight",d.size)])),I=computed(()=>getMargin(b.value.self[createKey("padding",d.size)])),D=computed(()=>d.multiple&&Array.isArray(d.value)?new Set(d.value):new Set),F=computed(()=>{const ce=x.value;return ce&&ce.length===0});function z(ce){const{onToggle:we}=d;we&&we(ce)}function L(ce){const{onScroll:we}=d;we&&we(ce)}function H(ce){var we;(we=C.value)===null||we===void 0||we.sync(),L(ce)}function Q(){var ce;(ce=C.value)===null||ce===void 0||ce.sync()}function Y(){const{value:ce}=E;return ce||null}function U(ce,we){we.disabled||he(we,!1)}function G(ce,we){we.disabled||z(we)}function W(ce){var we;happensIn(ce,"action")||(we=d.onKeyup)===null||we===void 0||we.call(d,ce)}function K(ce){var we;happensIn(ce,"action")||(we=d.onKeydown)===null||we===void 0||we.call(d,ce)}function X(ce){var we;(we=d.onMousedown)===null||we===void 0||we.call(d,ce),!d.focusable&&ce.preventDefault()}function Z(){const{value:ce}=E;ce&&he(ce.getNext({loop:!0}),!0)}function oe(){const{value:ce}=E;ce&&he(ce.getPrev({loop:!0}),!0)}function he(ce,we=!1){E.value=ce,we&&J()}function J(){var ce,we;const Fe=E.value;if(!Fe)return;const Ke=S.value(Fe.key);Ke!==null&&(d.virtualScroll?(ce=w.value)===null||ce===void 0||ce.scrollTo({index:Ke}):(we=C.value)===null||we===void 0||we.scrollTo({index:Ke,elSize:$.value}))}function le(ce){var we,Fe;!((we=A.value)===null||we===void 0)&&we.contains(ce.target)&&((Fe=d.onFocus)===null||Fe===void 0||Fe.call(d,ce))}function de(ce){var we,Fe;!((we=A.value)===null||we===void 0)&&we.contains(ce.relatedTarget)||(Fe=d.onBlur)===null||Fe===void 0||Fe.call(d,ce)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:U,handleOptionClick:G,valueSetRef:D,pendingTmNodeRef:E,nodePropsRef:toRef$1(d,"nodeProps"),showCheckmarkRef:toRef$1(d,"showCheckmark"),multipleRef:toRef$1(d,"multiple"),valueRef:toRef$1(d,"value"),renderLabelRef:toRef$1(d,"renderLabel"),renderOptionRef:toRef$1(d,"renderOption"),labelFieldRef:toRef$1(d,"labelField"),valueFieldRef:toRef$1(d,"valueField")}),provide(internalSelectionMenuBodyInjectionKey,A),onMounted(()=>{const{value:ce}=C;ce&&ce.sync()});const me=computed(()=>{const{size:ce}=d,{common:{cubicBezierEaseInOut:we},self:{height:Fe,borderRadius:Ke,color:tt,groupHeaderTextColor:ut,actionDividerColor:dt,optionTextColorPressed:it,optionTextColor:$e,optionTextColorDisabled:ke,optionTextColorActive:Oe,optionOpacityDisabled:Qe,optionCheckColor:Je,actionTextColor:ve,optionColorPending:ye,optionColorActive:Te,loadingColor:ee,loadingSize:se,optionColorActivePending:ie,[createKey("optionFontSize",ce)]:be,[createKey("optionHeight",ce)]:Ee,[createKey("optionPadding",ce)]:Ce}}=b.value;return{"--n-height":Fe,"--n-action-divider-color":dt,"--n-action-text-color":ve,"--n-bezier":we,"--n-border-radius":Ke,"--n-color":tt,"--n-option-font-size":be,"--n-group-header-text-color":ut,"--n-option-check-color":Je,"--n-option-color-pending":ye,"--n-option-color-active":Te,"--n-option-color-active-pending":ie,"--n-option-height":Ee,"--n-option-opacity-disabled":Qe,"--n-option-text-color":$e,"--n-option-text-color-active":Oe,"--n-option-text-color-disabled":ke,"--n-option-text-color-pressed":it,"--n-option-padding":Ce,"--n-option-padding-left":getMargin(Ce,"left"),"--n-option-padding-right":getMargin(Ce,"right"),"--n-loading-color":ee,"--n-loading-size":se}}),{inlineThemeDisabled:ne}=d,re=ne?useThemeClass("internal-select-menu",computed(()=>d.size[0]),me,d):void 0,fe={selfRef:A,next:Z,prev:oe,getPendingTmNode:Y};return useOnResize(A,d.onResize),Object.assign({mergedTheme:b,virtualListRef:w,scrollbarRef:C,itemSize:$,padding:I,flattenedNodes:x,empty:F,virtualListContainer(){const{value:ce}=w;return ce==null?void 0:ce.listElRef},virtualListContent(){const{value:ce}=w;return ce==null?void 0:ce.itemsElRef},doScroll:L,handleFocusin:le,handleFocusout:de,handleKeyUp:W,handleKeyDown:K,handleMouseDown:X,handleVirtualListResize:Q,handleVirtualListScroll:H,cssVars:ne?void 0:me,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender},fe)},render(){const{$slots:d,virtualScroll:b,clsPrefix:A,mergedTheme:w,themeClass:C,onRender:x}=this;return x==null||x(),h$1("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:["".concat(A,"-base-select-menu"),C,this.multiple&&"".concat(A,"-base-select-menu--multiple")],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?h$1("div",{class:"".concat(A,"-base-select-menu__loading")},h$1(NBaseLoading,{clsPrefix:A,strokeWidth:20})):this.empty?h$1("div",{class:"".concat(A,"-base-select-menu__empty"),"data-empty":!0},resolveSlot(d.empty,()=>[h$1(NEmpty,{theme:w.peers.Empty,themeOverrides:w.peerOverrides.Empty})])):h$1(NScrollbar$1,{ref:"scrollbarRef",theme:w.peers.Scrollbar,themeOverrides:w.peerOverrides.Scrollbar,scrollable:this.scrollable,container:b?this.virtualListContainer:void 0,content:b?this.virtualListContent:void 0,onScroll:b?void 0:this.doScroll},{default:()=>b?h$1(VVirtualList,{ref:"virtualListRef",class:"".concat(A,"-virtual-list"),items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:S})=>S.isGroup?h$1(NSelectGroupHeader,{key:S.key,clsPrefix:A,tmNode:S}):S.ignored?null:h$1(NSelectOption,{clsPrefix:A,key:S.key,tmNode:S})}):h$1("div",{class:"".concat(A,"-base-select-menu-option-wrapper"),style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(S=>S.isGroup?h$1(NSelectGroupHeader,{key:S.key,clsPrefix:A,tmNode:S}):h$1(NSelectOption,{clsPrefix:A,key:S.key,tmNode:S})))}),resolveWrappedSlot(d.action,S=>S&&[h$1("div",{class:"".concat(A,"-base-select-menu__action"),"data-action":!0,key:"action"},S),h$1(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$k=cB("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),NBaseWave=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(d){useStyle("-base-wave",style$k,toRef$1(d,"clsPrefix"));const b=ref(null),A=ref(!1);let w=null;return onBeforeUnmount(()=>{w!==null&&window.clearTimeout(w)}),{active:A,selfRef:b,play(){w!==null&&(window.clearTimeout(w),A.value=!1,w=null),nextTick(()=>{var C;(C=b.value)===null||C===void 0||C.offsetHeight,A.value=!0,w=window.setTimeout(()=>{A.value=!1,w=null},1e3)})}}},render(){const{clsPrefix:d}=this;return h$1("div",{ref:"selfRef","aria-hidden":!0,class:["".concat(d,"-base-wave"),this.active&&"".concat(d,"-base-wave--active")]})}}),commonVariables$k={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self$R=d=>{const{boxShadow2:b,popoverColor:A,textColor2:w,borderRadius:C,fontSize:x,dividerColor:S}=d;return Object.assign(Object.assign({},commonVariables$k),{fontSize:x,borderRadius:C,color:A,dividerColor:S,textColor:w,boxShadow:b})},popoverLight={name:"Popover",common:commonLight,self:self$R},popoverLight$1=popoverLight,popoverDark={name:"Popover",common:commonDark,self:self$R},popoverDark$1=popoverDark,oppositePlacement={top:"bottom",bottom:"top",left:"right",right:"left"},arrowSize="var(--n-arrow-height) * 1.414",style$j=c$3([cB("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[c$3(">",[cB("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),cNotM("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[cNotM("scrollable",[cNotM("show-header-or-footer","padding: var(--n-padding);")])]),cE("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),cE("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),cM("scrollable, show-header-or-footer",[cE("content","\n padding: var(--n-padding);\n ")])]),cB("popover-shared","\n transform-origin: inherit;\n ",[cB("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[cB("popover-arrow","\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(".concat(arrowSize,");\n height: calc(").concat(arrowSize,");\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n "))]),c$3("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),c$3("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),c$3("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),c$3("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),placementStyle("top-start","\n top: calc(".concat(arrowSize," / -2);\n left: calc(").concat(getArrowOffset("top-start")," - var(--v-offset-left));\n ")),placementStyle("top","\n top: calc(".concat(arrowSize," / -2);\n transform: translateX(calc(").concat(arrowSize," / -2)) rotate(45deg);\n left: 50%;\n ")),placementStyle("top-end","\n top: calc(".concat(arrowSize," / -2);\n right: calc(").concat(getArrowOffset("top-end")," + var(--v-offset-left));\n ")),placementStyle("bottom-start","\n bottom: calc(".concat(arrowSize," / -2);\n left: calc(").concat(getArrowOffset("bottom-start")," - var(--v-offset-left));\n ")),placementStyle("bottom","\n bottom: calc(".concat(arrowSize," / -2);\n transform: translateX(calc(").concat(arrowSize," / -2)) rotate(45deg);\n left: 50%;\n ")),placementStyle("bottom-end","\n bottom: calc(".concat(arrowSize," / -2);\n right: calc(").concat(getArrowOffset("bottom-end")," + var(--v-offset-left));\n ")),placementStyle("left-start","\n left: calc(".concat(arrowSize," / -2);\n top: calc(").concat(getArrowOffset("left-start")," - var(--v-offset-top));\n ")),placementStyle("left","\n left: calc(".concat(arrowSize," / -2);\n transform: translateY(calc(").concat(arrowSize," / -2)) rotate(45deg);\n top: 50%;\n ")),placementStyle("left-end","\n left: calc(".concat(arrowSize," / -2);\n bottom: calc(").concat(getArrowOffset("left-end")," + var(--v-offset-top));\n ")),placementStyle("right-start","\n right: calc(".concat(arrowSize," / -2);\n top: calc(").concat(getArrowOffset("right-start")," - var(--v-offset-top));\n ")),placementStyle("right","\n right: calc(".concat(arrowSize," / -2);\n transform: translateY(calc(").concat(arrowSize," / -2)) rotate(45deg);\n top: 50%;\n ")),placementStyle("right-end","\n right: calc(".concat(arrowSize," / -2);\n bottom: calc(").concat(getArrowOffset("right-end")," + var(--v-offset-top));\n ")),...map({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(d,b)=>{const A=["right","left"].includes(b),w=A?"width":"height";return d.map(C=>{const x=C.split("-")[1]==="end",S="var(--v-target-".concat(w,", 0px)"),E="calc((".concat(S," - ").concat(arrowSize,") / 2)"),P=getArrowOffset(C);return c$3('[v-placement="'.concat(C,'"] >'),[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow","".concat(b,": calc(max(").concat(E,", ").concat(P,") ").concat(x?"+":"-"," var(--v-offset-").concat(A?"left":"top","));"))])])])})})]);function getArrowOffset(d){return["top","bottom"].includes(d.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function placementStyle(d,b){const A=d.split("-")[0],w=["top","bottom"].includes(A)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$3('[v-placement="'.concat(d,'"] >'),[cB("popover-shared","\n margin-".concat(oppositePlacement[A],": var(--n-space);\n "),[cM("show-arrow","\n margin-".concat(oppositePlacement[A],": var(--n-space-arrow);\n ")),cM("overlap","\n margin: 0;\n "),cCB("popover-arrow-wrapper","\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ".concat(A,": 100%;\n ").concat(oppositePlacement[A],": auto;\n ").concat(w,"\n "),[cB("popover-arrow",b)])])])}const popoverBodyProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),renderArrow=({arrowStyle:d,clsPrefix:b})=>h$1("div",{key:"__popover-arrow__",class:"".concat(b,"-popover-arrow-wrapper")},h$1("div",{class:"".concat(b,"-popover-arrow"),style:d})),NPopoverBody=defineComponent({name:"PopoverBody",inheritAttrs:!1,props:popoverBodyProps,setup(d,{slots:b,attrs:A}){const{namespaceRef:w,mergedClsPrefixRef:C,inlineThemeDisabled:x}=useConfig(d),S=useTheme("Popover","-popover",style$j,popoverLight$1,d,C),E=ref(null),P=inject("NPopover"),B=ref(null),k=ref(d.show),$=ref(!1);watchEffect(()=>{const{show:K}=d;K&&!isJsdom()&&!d.internalDeactivateImmediately&&($.value=!0)});const I=computed(()=>{const{trigger:K,onClickoutside:X}=d,Z=[],{positionManuallyRef:{value:oe}}=P;return oe||(K==="click"&&!X&&Z.push([clickoutside$1,U,void 0,{capture:!0}]),K==="hover"&&Z.push([mousemoveoutside$1,Y])),X&&Z.push([clickoutside$1,U,void 0,{capture:!0}]),(d.displayDirective==="show"||d.animated&&$.value)&&Z.push([vShow,d.show]),Z}),D=computed(()=>{const K=d.width==="trigger"?void 0:formatLength(d.width),X=[];K&&X.push({width:K});const{maxWidth:Z,minWidth:oe}=d;return Z&&X.push({maxWidth:formatLength(Z)}),oe&&X.push({maxWidth:formatLength(oe)}),x||X.push(F.value),X}),F=computed(()=>{const{common:{cubicBezierEaseInOut:K,cubicBezierEaseIn:X,cubicBezierEaseOut:Z},self:{space:oe,spaceArrow:he,padding:J,fontSize:le,textColor:de,dividerColor:me,color:ne,boxShadow:re,borderRadius:fe,arrowHeight:ce,arrowOffset:we,arrowOffsetVertical:Fe}}=S.value;return{"--n-box-shadow":re,"--n-bezier":K,"--n-bezier-ease-in":X,"--n-bezier-ease-out":Z,"--n-font-size":le,"--n-text-color":de,"--n-color":ne,"--n-divider-color":me,"--n-border-radius":fe,"--n-arrow-height":ce,"--n-arrow-offset":we,"--n-arrow-offset-vertical":Fe,"--n-padding":J,"--n-space":oe,"--n-space-arrow":he}}),z=x?useThemeClass("popover",void 0,F,d):void 0;P.setBodyInstance({syncPosition:L}),onBeforeUnmount(()=>{P.setBodyInstance(null)}),watch(toRef$1(d,"show"),K=>{d.animated||(K?k.value=!0:k.value=!1)});function L(){var K;(K=E.value)===null||K===void 0||K.syncPosition()}function H(K){d.trigger==="hover"&&d.keepAliveOnHover&&d.show&&P.handleMouseEnter(K)}function Q(K){d.trigger==="hover"&&d.keepAliveOnHover&&P.handleMouseLeave(K)}function Y(K){d.trigger==="hover"&&!G().contains(getPreciseEventTarget(K))&&P.handleMouseMoveOutside(K)}function U(K){(d.trigger==="click"&&!G().contains(getPreciseEventTarget(K))||d.onClickoutside)&&P.handleClickOutside(K)}function G(){return P.getTriggerElement()}provide(popoverBodyInjectionKey,B),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function W(){if(z==null||z.onRender(),!(d.displayDirective==="show"||d.show||d.animated&&$.value))return null;let X;const Z=P.internalRenderBodyRef.value,{value:oe}=C;if(Z)X=Z(["".concat(oe,"-popover-shared"),z==null?void 0:z.themeClass.value,d.overlap&&"".concat(oe,"-popover-shared--overlap"),d.showArrow&&"".concat(oe,"-popover-shared--show-arrow"),d.arrowPointToCenter&&"".concat(oe,"-popover-shared--center-arrow")],B,D.value,H,Q);else{const{value:he}=P.extraClassRef,{internalTrapFocus:J}=d,le=!isSlotEmpty(b.header)||!isSlotEmpty(b.footer),de=()=>{var me;const ne=le?h$1(Fragment,null,resolveWrappedSlot(b.header,ce=>ce?h$1("div",{class:"".concat(oe,"-popover__header"),style:d.headerStyle},ce):null),resolveWrappedSlot(b.default,ce=>ce?h$1("div",{class:"".concat(oe,"-popover__content"),style:d.contentStyle},b):null),resolveWrappedSlot(b.footer,ce=>ce?h$1("div",{class:"".concat(oe,"-popover__footer"),style:d.footerStyle},ce):null)):d.scrollable?(me=b.default)===null||me===void 0?void 0:me.call(b):h$1("div",{class:"".concat(oe,"-popover__content"),style:d.contentStyle},b),re=d.scrollable?h$1(XScrollbar,{contentClass:le?void 0:"".concat(oe,"-popover__content"),contentStyle:le?void 0:d.contentStyle},{default:()=>ne}):ne,fe=d.showArrow?renderArrow({arrowStyle:d.arrowStyle,clsPrefix:oe}):null;return[re,fe]};X=h$1("div",mergeProps({class:["".concat(oe,"-popover"),"".concat(oe,"-popover-shared"),z==null?void 0:z.themeClass.value,he.map(me=>"".concat(oe,"-").concat(me)),{["".concat(oe,"-popover--scrollable")]:d.scrollable,["".concat(oe,"-popover--show-header-or-footer")]:le,["".concat(oe,"-popover--raw")]:d.raw,["".concat(oe,"-popover-shared--overlap")]:d.overlap,["".concat(oe,"-popover-shared--show-arrow")]:d.showArrow,["".concat(oe,"-popover-shared--center-arrow")]:d.arrowPointToCenter}],ref:B,style:D.value,onKeydown:P.handleKeydown,onMouseenter:H,onMouseleave:Q},A),J?h$1(FocusTrap,{active:d.show,autoFocus:!0},{default:de}):de())}return withDirectives(X,I.value)}return{displayed:$,namespace:w,isMounted:P.isMountedRef,zIndex:P.zIndexRef,followerRef:E,adjustedTo:useAdjustedTo(d),followerEnabled:k,renderContentNode:W}},render(){return h$1(VFollower,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey},{default:()=>this.animated?h$1(Transition,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var d;(d=this.internalOnAfterLeave)===null||d===void 0||d.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),bodyPropKeys=Object.keys(popoverBodyProps),triggerEventMap={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function appendEvents(d,b,A){triggerEventMap[b].forEach(w=>{d.props?d.props=Object.assign({},d.props):d.props={};const C=d.props[w],x=A[w];C?d.props[w]=(...S)=>{C(...S),x(...S)}:d.props[w]=x})}const popoverBaseProps={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:useAdjustedTo.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},popoverProps=Object.assign(Object.assign(Object.assign({},useTheme.props),popoverBaseProps),{internalOnAfterLeave:Function,internalRenderBody:Function}),NPopover=defineComponent({name:"Popover",inheritAttrs:!1,props:popoverProps,__popover__:!0,setup(d){const b=isMounted(),A=ref(null),w=computed(()=>d.show),C=ref(d.defaultShow),x=useMergedState(w,C),S=useMemo(()=>d.disabled?!1:x.value),E=()=>{if(d.disabled)return!0;const{getDisabled:de}=d;return!!(de!=null&&de())},P=()=>E()?!1:x.value,B=useCompitable(d,["arrow","showArrow"]),k=computed(()=>d.overlap?!1:B.value);let $=null;const I=ref(null),D=ref(null),F=useMemo(()=>d.x!==void 0&&d.y!==void 0);function z(de){const{"onUpdate:show":me,onUpdateShow:ne,onShow:re,onHide:fe}=d;C.value=de,me&&call$1(me,de),ne&&call$1(ne,de),de&&re&&call$1(re,!0),de&&fe&&call$1(fe,!1)}function L(){$&&$.syncPosition()}function H(){const{value:de}=I;de&&(window.clearTimeout(de),I.value=null)}function Q(){const{value:de}=D;de&&(window.clearTimeout(de),D.value=null)}function Y(){const de=E();if(d.trigger==="focus"&&!de){if(P())return;z(!0)}}function U(){const de=E();if(d.trigger==="focus"&&!de){if(!P())return;z(!1)}}function G(){const de=E();if(d.trigger==="hover"&&!de){if(Q(),I.value!==null||P())return;const me=()=>{z(!0),I.value=null},{delay:ne}=d;ne===0?me():I.value=window.setTimeout(me,ne)}}function W(){const de=E();if(d.trigger==="hover"&&!de){if(H(),D.value!==null||!P())return;const me=()=>{z(!1),D.value=null},{duration:ne}=d;ne===0?me():D.value=window.setTimeout(me,ne)}}function K(){W()}function X(de){var me;P()&&(d.trigger==="click"&&(H(),Q(),z(!1)),(me=d.onClickoutside)===null||me===void 0||me.call(d,de))}function Z(){if(d.trigger==="click"&&!E()){H(),Q();const de=!P();z(de)}}function oe(de){d.internalTrapFocus&&de.key==="Escape"&&(H(),Q(),z(!1))}function he(de){C.value=de}function J(){var de;return(de=A.value)===null||de===void 0?void 0:de.targetRef}function le(de){$=de}return provide("NPopover",{getTriggerElement:J,handleKeydown:oe,handleMouseEnter:G,handleMouseLeave:W,handleClickOutside:X,handleMouseMoveOutside:K,setBodyInstance:le,positionManuallyRef:F,isMountedRef:b,zIndexRef:toRef$1(d,"zIndex"),extraClassRef:toRef$1(d,"internalExtraClass"),internalRenderBodyRef:toRef$1(d,"internalRenderBody")}),watchEffect(()=>{x.value&&E()&&z(!1)}),{binderInstRef:A,positionManually:F,mergedShowConsideringDisabledProp:S,uncontrolledShow:C,mergedShowArrow:k,getMergedShow:P,setShow:he,handleClick:Z,handleMouseEnter:G,handleMouseLeave:W,handleFocus:Y,handleBlur:U,syncPosition:L}},render(){var d;const{positionManually:b,$slots:A}=this;let w,C=!1;if(!b&&(A.activator?w=getFirstSlotVNode(A,"activator"):w=getFirstSlotVNode(A,"trigger"),w)){w=cloneVNode(w),w=w.type===Text?h$1("span",[w]):w;const x={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((d=w.type)===null||d===void 0)&&d.__popover__)C=!0,w.props||(w.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),w.props.internalSyncTargetWithParent=!0,w.props.internalInheritedEventHandlers?w.props.internalInheritedEventHandlers=[x,...w.props.internalInheritedEventHandlers]:w.props.internalInheritedEventHandlers=[x];else{const{internalInheritedEventHandlers:S}=this,E=[x,...S],P={onBlur:B=>{E.forEach(k=>{k.onBlur(B)})},onFocus:B=>{E.forEach(k=>{k.onFocus(B)})},onClick:B=>{E.forEach(k=>{k.onClick(B)})},onMouseenter:B=>{E.forEach(k=>{k.onMouseenter(B)})},onMouseleave:B=>{E.forEach(k=>{k.onMouseleave(B)})}};appendEvents(w,S?"nested":b?"manual":this.trigger,P)}}return h$1(VBinder,{ref:"binderInstRef",syncTarget:!C,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const x=this.getMergedShow();return[this.internalTrapFocus&&x?withDirectives(h$1("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:x,zIndex:this.zIndex}]]):null,b?null:h$1(VTarget,null,{default:()=>w}),h$1(NPopoverBody,keep(this.$props,bodyPropKeys,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:x})),{default:()=>{var S,E;return(E=(S=this.$slots).default)===null||E===void 0?void 0:E.call(S)},header:()=>{var S,E;return(E=(S=this.$slots).header)===null||E===void 0?void 0:E.call(S)},footer:()=>{var S,E;return(E=(S=this.$slots).footer)===null||E===void 0?void 0:E.call(S)}})]}})}}),commonVariables$j={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},tagDark={name:"Tag",common:commonDark,self(d){const{textColor2:b,primaryColorHover:A,primaryColorPressed:w,primaryColor:C,infoColor:x,successColor:S,warningColor:E,errorColor:P,baseColor:B,borderColor:k,tagColor:$,opacityDisabled:I,closeIconColor:D,closeIconColorHover:F,closeIconColorPressed:z,closeColorHover:L,closeColorPressed:H,borderRadiusSmall:Q,fontSizeMini:Y,fontSizeTiny:U,fontSizeSmall:G,fontSizeMedium:W,heightMini:K,heightTiny:X,heightSmall:Z,heightMedium:oe,buttonColor2Hover:he,buttonColor2Pressed:J,fontWeightStrong:le}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:Q,heightTiny:K,heightSmall:X,heightMedium:Z,heightLarge:oe,borderRadius:Q,opacityDisabled:I,fontSizeTiny:Y,fontSizeSmall:U,fontSizeMedium:G,fontSizeLarge:W,fontWeightStrong:le,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:he,colorPressedCheckable:J,colorChecked:C,colorCheckedHover:A,colorCheckedPressed:w,border:"1px solid ".concat(k),textColor:b,color:$,colorBordered:"#0000",closeIconColor:D,closeIconColorHover:F,closeIconColorPressed:z,closeColorHover:L,closeColorPressed:H,borderPrimary:"1px solid ".concat(changeColor(C,{alpha:.3})),textColorPrimary:C,colorPrimary:changeColor(C,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:scaleColor(C,{lightness:.7}),closeIconColorHoverPrimary:scaleColor(C,{lightness:.7}),closeIconColorPressedPrimary:scaleColor(C,{lightness:.7}),closeColorHoverPrimary:changeColor(C,{alpha:.16}),closeColorPressedPrimary:changeColor(C,{alpha:.12}),borderInfo:"1px solid ".concat(changeColor(x,{alpha:.3})),textColorInfo:x,colorInfo:changeColor(x,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:scaleColor(x,{alpha:.7}),closeIconColorHoverInfo:scaleColor(x,{alpha:.7}),closeIconColorPressedInfo:scaleColor(x,{alpha:.7}),closeColorHoverInfo:changeColor(x,{alpha:.16}),closeColorPressedInfo:changeColor(x,{alpha:.12}),borderSuccess:"1px solid ".concat(changeColor(S,{alpha:.3})),textColorSuccess:S,colorSuccess:changeColor(S,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:scaleColor(S,{alpha:.7}),closeIconColorHoverSuccess:scaleColor(S,{alpha:.7}),closeIconColorPressedSuccess:scaleColor(S,{alpha:.7}),closeColorHoverSuccess:changeColor(S,{alpha:.16}),closeColorPressedSuccess:changeColor(S,{alpha:.12}),borderWarning:"1px solid ".concat(changeColor(E,{alpha:.3})),textColorWarning:E,colorWarning:changeColor(E,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:scaleColor(E,{alpha:.7}),closeIconColorHoverWarning:scaleColor(E,{alpha:.7}),closeIconColorPressedWarning:scaleColor(E,{alpha:.7}),closeColorHoverWarning:changeColor(E,{alpha:.16}),closeColorPressedWarning:changeColor(E,{alpha:.11}),borderError:"1px solid ".concat(changeColor(P,{alpha:.3})),textColorError:P,colorError:changeColor(P,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:scaleColor(P,{alpha:.7}),closeIconColorHoverError:scaleColor(P,{alpha:.7}),closeIconColorPressedError:scaleColor(P,{alpha:.7}),closeColorHoverError:changeColor(P,{alpha:.16}),closeColorPressedError:changeColor(P,{alpha:.12})})}},tagDark$1=tagDark,self$Q=d=>{const{textColor2:b,primaryColorHover:A,primaryColorPressed:w,primaryColor:C,infoColor:x,successColor:S,warningColor:E,errorColor:P,baseColor:B,borderColor:k,opacityDisabled:$,tagColor:I,closeIconColor:D,closeIconColorHover:F,closeIconColorPressed:z,borderRadiusSmall:L,fontSizeMini:H,fontSizeTiny:Q,fontSizeSmall:Y,fontSizeMedium:U,heightMini:G,heightTiny:W,heightSmall:K,heightMedium:X,closeColorHover:Z,closeColorPressed:oe,buttonColor2Hover:he,buttonColor2Pressed:J,fontWeightStrong:le}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:L,heightTiny:G,heightSmall:W,heightMedium:K,heightLarge:X,borderRadius:L,opacityDisabled:$,fontSizeTiny:H,fontSizeSmall:Q,fontSizeMedium:Y,fontSizeLarge:U,fontWeightStrong:le,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:he,colorPressedCheckable:J,colorChecked:C,colorCheckedHover:A,colorCheckedPressed:w,border:"1px solid ".concat(k),textColor:b,color:I,colorBordered:"rgb(250, 250, 252)",closeIconColor:D,closeIconColorHover:F,closeIconColorPressed:z,closeColorHover:Z,closeColorPressed:oe,borderPrimary:"1px solid ".concat(changeColor(C,{alpha:.3})),textColorPrimary:C,colorPrimary:changeColor(C,{alpha:.12}),colorBorderedPrimary:changeColor(C,{alpha:.1}),closeIconColorPrimary:C,closeIconColorHoverPrimary:C,closeIconColorPressedPrimary:C,closeColorHoverPrimary:changeColor(C,{alpha:.12}),closeColorPressedPrimary:changeColor(C,{alpha:.18}),borderInfo:"1px solid ".concat(changeColor(x,{alpha:.3})),textColorInfo:x,colorInfo:changeColor(x,{alpha:.12}),colorBorderedInfo:changeColor(x,{alpha:.1}),closeIconColorInfo:x,closeIconColorHoverInfo:x,closeIconColorPressedInfo:x,closeColorHoverInfo:changeColor(x,{alpha:.12}),closeColorPressedInfo:changeColor(x,{alpha:.18}),borderSuccess:"1px solid ".concat(changeColor(S,{alpha:.3})),textColorSuccess:S,colorSuccess:changeColor(S,{alpha:.12}),colorBorderedSuccess:changeColor(S,{alpha:.1}),closeIconColorSuccess:S,closeIconColorHoverSuccess:S,closeIconColorPressedSuccess:S,closeColorHoverSuccess:changeColor(S,{alpha:.12}),closeColorPressedSuccess:changeColor(S,{alpha:.18}),borderWarning:"1px solid ".concat(changeColor(E,{alpha:.35})),textColorWarning:E,colorWarning:changeColor(E,{alpha:.15}),colorBorderedWarning:changeColor(E,{alpha:.12}),closeIconColorWarning:E,closeIconColorHoverWarning:E,closeIconColorPressedWarning:E,closeColorHoverWarning:changeColor(E,{alpha:.12}),closeColorPressedWarning:changeColor(E,{alpha:.18}),borderError:"1px solid ".concat(changeColor(P,{alpha:.23})),textColorError:P,colorError:changeColor(P,{alpha:.1}),colorBorderedError:changeColor(P,{alpha:.08}),closeIconColorError:P,closeIconColorHoverError:P,closeIconColorPressedError:P,closeColorHoverError:changeColor(P,{alpha:.12}),closeColorPressedError:changeColor(P,{alpha:.18})})},tagLight={name:"Tag",common:commonLight,self:self$Q},tagLight$1=tagLight,commonProps={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},style$i=cB("tag","\n white-space: nowrap;\n position: relative;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n line-height: 1;\n height: var(--n-height);\n font-size: var(--n-font-size);\n",[cM("strong","\n font-weight: var(--n-font-weight-strong);\n "),cE("border","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-border);\n transition: border-color .3s var(--n-bezier);\n "),cE("icon","\n display: flex;\n margin: 0 4px 0 0;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n font-size: var(--n-avatar-size-override);\n "),cE("avatar","\n display: flex;\n margin: 0 6px 0 0;\n "),cE("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),cM("round","\n padding: 0 calc(var(--n-height) / 3);\n border-radius: calc(var(--n-height) / 2);\n ",[cE("icon","\n margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);\n "),cE("avatar","\n margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);\n "),cM("closable","\n padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);\n ")]),cM("icon, avatar",[cM("round","\n padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);\n ")]),cM("disabled","\n cursor: not-allowed !important;\n opacity: var(--n-opacity-disabled);\n "),cM("checkable","\n cursor: pointer;\n box-shadow: none;\n color: var(--n-text-color-checkable);\n background-color: var(--n-color-checkable);\n ",[cNotM("disabled",[c$3("&:hover","background-color: var(--n-color-hover-checkable);",[cNotM("checked","color: var(--n-text-color-hover-checkable);")]),c$3("&:active","background-color: var(--n-color-pressed-checkable);",[cNotM("checked","color: var(--n-text-color-pressed-checkable);")])]),cM("checked","\n color: var(--n-text-color-checked);\n background-color: var(--n-color-checked);\n ",[cNotM("disabled",[c$3("&:hover","background-color: var(--n-color-checked-hover);"),c$3("&:active","background-color: var(--n-color-checked-pressed);")])])])]),tagProps=Object.assign(Object.assign(Object.assign({},useTheme.props),commonProps),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tagInjectionKey="n-tag",NTag=defineComponent({name:"Tag",props:tagProps,setup(d){const b=ref(null),{mergedBorderedRef:A,mergedClsPrefixRef:w,inlineThemeDisabled:C,mergedRtlRef:x}=useConfig(d),S=useTheme("Tag","-tag",style$i,tagLight$1,d,w);provide(tagInjectionKey,{roundRef:toRef$1(d,"round")});function E(D){if(!d.disabled&&d.checkable){const{checked:F,onCheckedChange:z,onUpdateChecked:L,"onUpdate:checked":H}=d;L&&L(!F),H&&H(!F),z&&z(!F)}}function P(D){if(d.triggerClickOnClose||D.stopPropagation(),!d.disabled){const{onClose:F}=d;F&&call$1(F,D)}}const B={setTextContent(D){const{value:F}=b;F&&(F.textContent=D)}},k=useRtl("Tag",x,w),$=computed(()=>{const{type:D,size:F,color:{color:z,textColor:L}={}}=d,{common:{cubicBezierEaseInOut:H},self:{padding:Q,closeMargin:Y,closeMarginRtl:U,borderRadius:G,opacityDisabled:W,textColorCheckable:K,textColorHoverCheckable:X,textColorPressedCheckable:Z,textColorChecked:oe,colorCheckable:he,colorHoverCheckable:J,colorPressedCheckable:le,colorChecked:de,colorCheckedHover:me,colorCheckedPressed:ne,closeBorderRadius:re,fontWeightStrong:fe,[createKey("colorBordered",D)]:ce,[createKey("closeSize",F)]:we,[createKey("closeIconSize",F)]:Fe,[createKey("fontSize",F)]:Ke,[createKey("height",F)]:tt,[createKey("color",D)]:ut,[createKey("textColor",D)]:dt,[createKey("border",D)]:it,[createKey("closeIconColor",D)]:$e,[createKey("closeIconColorHover",D)]:ke,[createKey("closeIconColorPressed",D)]:Oe,[createKey("closeColorHover",D)]:Qe,[createKey("closeColorPressed",D)]:Je}}=S.value;return{"--n-font-weight-strong":fe,"--n-avatar-size-override":"calc(".concat(tt," - 8px)"),"--n-bezier":H,"--n-border-radius":G,"--n-border":it,"--n-close-icon-size":Fe,"--n-close-color-pressed":Je,"--n-close-color-hover":Qe,"--n-close-border-radius":re,"--n-close-icon-color":$e,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":Oe,"--n-close-icon-color-disabled":$e,"--n-close-margin":Y,"--n-close-margin-rtl":U,"--n-close-size":we,"--n-color":z||(A.value?ce:ut),"--n-color-checkable":he,"--n-color-checked":de,"--n-color-checked-hover":me,"--n-color-checked-pressed":ne,"--n-color-hover-checkable":J,"--n-color-pressed-checkable":le,"--n-font-size":Ke,"--n-height":tt,"--n-opacity-disabled":W,"--n-padding":Q,"--n-text-color":L||dt,"--n-text-color-checkable":K,"--n-text-color-checked":oe,"--n-text-color-hover-checkable":X,"--n-text-color-pressed-checkable":Z}}),I=C?useThemeClass("tag",computed(()=>{let D="";const{type:F,size:z,color:{color:L,textColor:H}={}}=d;return D+=F[0],D+=z[0],L&&(D+="a".concat(color2Class(L))),H&&(D+="b".concat(color2Class(H))),A.value&&(D+="c"),D}),$,d):void 0;return Object.assign(Object.assign({},B),{rtlEnabled:k,mergedClsPrefix:w,contentRef:b,mergedBordered:A,handleClick:E,handleCloseClick:P,cssVars:C?void 0:$,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){var d,b;const{mergedClsPrefix:A,rtlEnabled:w,closable:C,color:{borderColor:x}={},round:S,onRender:E,$slots:P}=this;E==null||E();const B=resolveWrappedSlot(P.avatar,$=>$&&h$1("div",{class:"".concat(A,"-tag__avatar")},$)),k=resolveWrappedSlot(P.icon,$=>$&&h$1("div",{class:"".concat(A,"-tag__icon")},$));return h$1("div",{class:["".concat(A,"-tag"),this.themeClass,{["".concat(A,"-tag--rtl")]:w,["".concat(A,"-tag--strong")]:this.strong,["".concat(A,"-tag--disabled")]:this.disabled,["".concat(A,"-tag--checkable")]:this.checkable,["".concat(A,"-tag--checked")]:this.checkable&&this.checked,["".concat(A,"-tag--round")]:S,["".concat(A,"-tag--avatar")]:B,["".concat(A,"-tag--icon")]:k,["".concat(A,"-tag--closable")]:C}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},k||B,h$1("span",{class:"".concat(A,"-tag__content"),ref:"contentRef"},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)),!this.checkable&&C?h$1(NBaseClose,{clsPrefix:A,class:"".concat(A,"-tag__close"),disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:S,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h$1("div",{class:"".concat(A,"-tag__border"),style:{borderColor:x}}):null)}}),style$h=cB("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[c$3(">",[cE("clear","\n font-size: var(--n-clear-size);\n height: 1em;\n width: 1em;\n cursor: pointer;\n color: var(--n-clear-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n ",[c$3("&:hover","\n color: var(--n-clear-color-hover)!important;\n "),c$3("&:active","\n color: var(--n-clear-color-pressed)!important;\n ")]),cE("placeholder","\n display: flex;\n "),cE("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[iconSwitchTransition({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),NBaseClear=defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(d){return useStyle("-base-clear",style$h,toRef$1(d,"clsPrefix")),{handleMouseDown(b){b.preventDefault()}}},render(){const{clsPrefix:d}=this;return h$1("div",{class:"".concat(d,"-base-clear")},h$1(NIconSwitchTransition,null,{default:()=>{var b,A;return this.show?h$1("div",{key:"dismiss",class:"".concat(d,"-base-clear__clear"),onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},resolveSlot(this.$slots.icon,()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(ClearIcon,null)})])):h$1("div",{key:"icon",class:"".concat(d,"-base-clear__placeholder")},(A=(b=this.$slots).placeholder)===null||A===void 0?void 0:A.call(b))}}))}}),NBaseSuffix=defineComponent({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(d,{slots:b}){return()=>{const{clsPrefix:A}=d;return h$1(NBaseLoading,{clsPrefix:A,class:"".concat(A,"-base-suffix"),strokeWidth:24,scale:.85,show:d.loading},{default:()=>d.showArrow?h$1(NBaseClear,{clsPrefix:A,show:d.showClear,onClear:d.onClear},{placeholder:()=>h$1(NBaseIcon,{clsPrefix:A,class:"".concat(A,"-base-suffix__arrow")},{default:()=>resolveSlot(b.default,()=>[h$1(ChevronDownIcon,null)])})}):null})}}}),commonVars$b={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},self$P=d=>{const{borderRadius:b,textColor2:A,textColorDisabled:w,inputColor:C,inputColorDisabled:x,primaryColor:S,primaryColorHover:E,warningColor:P,warningColorHover:B,errorColor:k,errorColorHover:$,borderColor:I,iconColor:D,iconColorDisabled:F,clearColor:z,clearColorHover:L,clearColorPressed:H,placeholderColor:Q,placeholderColorDisabled:Y,fontSizeTiny:U,fontSizeSmall:G,fontSizeMedium:W,fontSizeLarge:K,heightTiny:X,heightSmall:Z,heightMedium:oe,heightLarge:he}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:U,fontSizeSmall:G,fontSizeMedium:W,fontSizeLarge:K,heightTiny:X,heightSmall:Z,heightMedium:oe,heightLarge:he,borderRadius:b,textColor:A,textColorDisabled:w,placeholderColor:Q,placeholderColorDisabled:Y,color:C,colorDisabled:x,colorActive:C,border:"1px solid ".concat(I),borderHover:"1px solid ".concat(E),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat(E),boxShadowHover:"none",boxShadowActive:"0 0 0 2px ".concat(changeColor(S,{alpha:.2})),boxShadowFocus:"0 0 0 2px ".concat(changeColor(S,{alpha:.2})),caretColor:S,arrowColor:D,arrowColorDisabled:F,loadingColor:S,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),borderActiveWarning:"1px solid ".concat(P),borderFocusWarning:"1px solid ".concat(B),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 0 2px ".concat(changeColor(P,{alpha:.2})),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(P,{alpha:.2})),colorActiveWarning:C,caretColorWarning:P,borderError:"1px solid ".concat(k),borderHoverError:"1px solid ".concat($),borderActiveError:"1px solid ".concat(k),borderFocusError:"1px solid ".concat($),boxShadowHoverError:"none",boxShadowActiveError:"0 0 0 2px ".concat(changeColor(k,{alpha:.2})),boxShadowFocusError:"0 0 0 2px ".concat(changeColor(k,{alpha:.2})),colorActiveError:C,caretColorError:k,clearColor:z,clearColorHover:L,clearColorPressed:H})},internalSelectionLight={name:"InternalSelection",common:commonLight,peers:{Popover:popoverLight$1},self:self$P},internalSelectionLight$1=internalSelectionLight,internalSelectionDark={name:"InternalSelection",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{borderRadius:b,textColor2:A,textColorDisabled:w,inputColor:C,inputColorDisabled:x,primaryColor:S,primaryColorHover:E,warningColor:P,warningColorHover:B,errorColor:k,errorColorHover:$,iconColor:I,iconColorDisabled:D,clearColor:F,clearColorHover:z,clearColorPressed:L,placeholderColor:H,placeholderColorDisabled:Q,fontSizeTiny:Y,fontSizeSmall:U,fontSizeMedium:G,fontSizeLarge:W,heightTiny:K,heightSmall:X,heightMedium:Z,heightLarge:oe}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:Y,fontSizeSmall:U,fontSizeMedium:G,fontSizeLarge:W,heightTiny:K,heightSmall:X,heightMedium:Z,heightLarge:oe,borderRadius:b,textColor:A,textColorDisabled:w,placeholderColor:H,placeholderColorDisabled:Q,color:C,colorDisabled:x,colorActive:changeColor(S,{alpha:.1}),border:"1px solid #0000",borderHover:"1px solid ".concat(E),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat(E),boxShadowHover:"none",boxShadowActive:"0 0 8px 0 ".concat(changeColor(S,{alpha:.4})),boxShadowFocus:"0 0 8px 0 ".concat(changeColor(S,{alpha:.4})),caretColor:S,arrowColor:I,arrowColorDisabled:D,loadingColor:S,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),borderActiveWarning:"1px solid ".concat(P),borderFocusWarning:"1px solid ".concat(B),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.4})),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.4})),colorActiveWarning:changeColor(P,{alpha:.1}),caretColorWarning:P,borderError:"1px solid ".concat(k),borderHoverError:"1px solid ".concat($),borderActiveError:"1px solid ".concat(k),borderFocusError:"1px solid ".concat($),boxShadowHoverError:"none",boxShadowActiveError:"0 0 8px 0 ".concat(changeColor(k,{alpha:.4})),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(k,{alpha:.4})),colorActiveError:changeColor(k,{alpha:.1}),caretColorError:k,clearColor:F,clearColorHover:z,clearColorPressed:L})}},internalSelectionDark$1=internalSelectionDark,style$g=c$3([cB("base-selection","\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[cB("base-loading","\n color: var(--n-loading-color);\n "),cB("base-selection-tags","min-height: var(--n-height);"),cE("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),cE("state-border","\n z-index: 1;\n border-color: #0000;\n "),cB("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[cE("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),cB("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[cE("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),cB("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[cE("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),cB("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),cB("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[cB("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[cE("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),cE("render-label","\n color: var(--n-text-color);\n ")]),cNotM("disabled",[c$3("&:hover",[cE("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),cM("focus",[cE("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),cM("active",[cE("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),cB("base-selection-label","background-color: var(--n-color-active);"),cB("base-selection-tags","background-color: var(--n-color-active);")])]),cM("disabled","cursor: not-allowed;",[cE("arrow","\n color: var(--n-arrow-color-disabled);\n "),cB("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[cB("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),cE("render-label","\n color: var(--n-text-color-disabled);\n ")]),cB("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),cB("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),cB("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[cE("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),cE("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map(d=>cM("".concat(d,"-status"),[cE("state-border","border: var(--n-border-".concat(d,");")),cNotM("disabled",[c$3("&:hover",[cE("state-border","\n box-shadow: var(--n-box-shadow-hover-".concat(d,");\n border: var(--n-border-hover-").concat(d,");\n "))]),cM("active",[cE("state-border","\n box-shadow: var(--n-box-shadow-active-".concat(d,");\n border: var(--n-border-active-").concat(d,");\n ")),cB("base-selection-label","background-color: var(--n-color-active-".concat(d,");")),cB("base-selection-tags","background-color: var(--n-color-active-".concat(d,");"))]),cM("focus",[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))])])]))]),cB("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),cB("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[c$3("&:last-child","padding-right: 0;"),cB("tag","\n font-size: 14px;\n max-width: 100%;\n ",[cE("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),NInternalSelection=defineComponent({name:"InternalSelection",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(d){const b=ref(null),A=ref(null),w=ref(null),C=ref(null),x=ref(null),S=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(null),$=ref(!1),I=ref(!1),D=ref(!1),F=useTheme("InternalSelection","-internal-selection",style$g,internalSelectionLight$1,d,toRef$1(d,"clsPrefix")),z=computed(()=>d.clearable&&!d.disabled&&(D.value||d.active)),L=computed(()=>d.selectedOption?d.renderTag?d.renderTag({option:d.selectedOption,handleClose:()=>{}}):d.renderLabel?d.renderLabel(d.selectedOption,!0):render$1(d.selectedOption[d.labelField],d.selectedOption,!0):d.placeholder),H=computed(()=>{const ge=d.selectedOption;if(ge)return ge[d.labelField]}),Q=computed(()=>d.multiple?!!(Array.isArray(d.selectedOptions)&&d.selectedOptions.length):d.selectedOption!==null);function Y(){var ge;const{value:Ie}=b;if(Ie){const{value:Le}=A;Le&&(Le.style.width="".concat(Ie.offsetWidth,"px"),d.maxTagCount!=="responsive"&&((ge=B.value)===null||ge===void 0||ge.sync()))}}function U(){const{value:ge}=k;ge&&(ge.style.display="none")}function G(){const{value:ge}=k;ge&&(ge.style.display="inline-block")}watch(toRef$1(d,"active"),ge=>{ge||U()}),watch(toRef$1(d,"pattern"),()=>{d.multiple&&nextTick(Y)});function W(ge){const{onFocus:Ie}=d;Ie&&Ie(ge)}function K(ge){const{onBlur:Ie}=d;Ie&&Ie(ge)}function X(ge){const{onDeleteOption:Ie}=d;Ie&&Ie(ge)}function Z(ge){const{onClear:Ie}=d;Ie&&Ie(ge)}function oe(ge){const{onPatternInput:Ie}=d;Ie&&Ie(ge)}function he(ge){var Ie;(!ge.relatedTarget||!(!((Ie=w.value)===null||Ie===void 0)&&Ie.contains(ge.relatedTarget)))&&W(ge)}function J(ge){var Ie;!((Ie=w.value)===null||Ie===void 0)&&Ie.contains(ge.relatedTarget)||K(ge)}function le(ge){Z(ge)}function de(){D.value=!0}function me(){D.value=!1}function ne(ge){!d.active||!d.filterable||ge.target!==A.value&&ge.preventDefault()}function re(ge){X(ge)}function fe(ge){if(ge.key==="Backspace"&&!ce.value&&!d.pattern.length){const{selectedOptions:Ie}=d;Ie!=null&&Ie.length&&re(Ie[Ie.length-1])}}const ce=ref(!1);let we=null;function Fe(ge){const{value:Ie}=b;if(Ie){const Le=ge.target.value;Ie.textContent=Le,Y()}d.ignoreComposition&&ce.value?we=ge:oe(ge)}function Ke(){ce.value=!0}function tt(){ce.value=!1,d.ignoreComposition&&oe(we),we=null}function ut(ge){var Ie;I.value=!0,(Ie=d.onPatternFocus)===null||Ie===void 0||Ie.call(d,ge)}function dt(ge){var Ie;I.value=!1,(Ie=d.onPatternBlur)===null||Ie===void 0||Ie.call(d,ge)}function it(){var ge,Ie;if(d.filterable)I.value=!1,(ge=S.value)===null||ge===void 0||ge.blur(),(Ie=A.value)===null||Ie===void 0||Ie.blur();else if(d.multiple){const{value:Le}=C;Le==null||Le.blur()}else{const{value:Le}=x;Le==null||Le.blur()}}function $e(){var ge,Ie,Le;d.filterable?(I.value=!1,(ge=S.value)===null||ge===void 0||ge.focus()):d.multiple?(Ie=C.value)===null||Ie===void 0||Ie.focus():(Le=x.value)===null||Le===void 0||Le.focus()}function ke(){const{value:ge}=A;ge&&(G(),ge.focus())}function Oe(){const{value:ge}=A;ge&&ge.blur()}function Qe(ge){const{value:Ie}=E;Ie&&Ie.setTextContent("+".concat(ge))}function Je(){const{value:ge}=P;return ge}function ve(){return A.value}let ye=null;function Te(){ye!==null&&window.clearTimeout(ye)}function ee(){d.disabled||d.active||(Te(),ye=window.setTimeout(()=>{Q.value&&($.value=!0)},100))}function se(){Te()}function ie(ge){ge||(Te(),$.value=!1)}watch(Q,ge=>{ge||($.value=!1)}),onMounted(()=>{watchEffect(()=>{const ge=S.value;ge&&(ge.tabIndex=d.disabled||I.value?-1:0)})}),useOnResize(w,d.onResize);const{inlineThemeDisabled:be}=d,Ee=computed(()=>{const{size:ge}=d,{common:{cubicBezierEaseInOut:Ie},self:{borderRadius:Le,color:Ye,placeholderColor:rt,textColor:lt,paddingSingle:pt,paddingMultiple:He,caretColor:at,colorDisabled:nt,textColorDisabled:mt,placeholderColorDisabled:Tt,colorActive:Dt,boxShadowFocus:yt,boxShadowActive:At,boxShadowHover:Ae,border:Re,borderFocus:qe,borderHover:ft,borderActive:vt,arrowColor:bt,arrowColorDisabled:xe,loadingColor:Ne,colorActiveWarning:ze,boxShadowFocusWarning:Ve,boxShadowActiveWarning:We,boxShadowHoverWarning:ht,borderWarning:_t,borderFocusWarning:zt,borderHoverWarning:Ct,borderActiveWarning:Mt,colorActiveError:Pe,boxShadowFocusError:Ue,boxShadowActiveError:ct,boxShadowHoverError:Et,borderError:Vt,borderFocusError:Nt,borderHoverError:tr,borderActiveError:Kt,clearColor:Ot,clearColorHover:fr,clearColorPressed:_r,clearSize:sn,arrowSize:yr,[createKey("height",ge)]:Mn,[createKey("fontSize",ge)]:Nn}}=F.value;return{"--n-bezier":Ie,"--n-border":Re,"--n-border-active":vt,"--n-border-focus":qe,"--n-border-hover":ft,"--n-border-radius":Le,"--n-box-shadow-active":At,"--n-box-shadow-focus":yt,"--n-box-shadow-hover":Ae,"--n-caret-color":at,"--n-color":Ye,"--n-color-active":Dt,"--n-color-disabled":nt,"--n-font-size":Nn,"--n-height":Mn,"--n-padding-single":pt,"--n-padding-multiple":He,"--n-placeholder-color":rt,"--n-placeholder-color-disabled":Tt,"--n-text-color":lt,"--n-text-color-disabled":mt,"--n-arrow-color":bt,"--n-arrow-color-disabled":xe,"--n-loading-color":Ne,"--n-color-active-warning":ze,"--n-box-shadow-focus-warning":Ve,"--n-box-shadow-active-warning":We,"--n-box-shadow-hover-warning":ht,"--n-border-warning":_t,"--n-border-focus-warning":zt,"--n-border-hover-warning":Ct,"--n-border-active-warning":Mt,"--n-color-active-error":Pe,"--n-box-shadow-focus-error":Ue,"--n-box-shadow-active-error":ct,"--n-box-shadow-hover-error":Et,"--n-border-error":Vt,"--n-border-focus-error":Nt,"--n-border-hover-error":tr,"--n-border-active-error":Kt,"--n-clear-size":sn,"--n-clear-color":Ot,"--n-clear-color-hover":fr,"--n-clear-color-pressed":_r,"--n-arrow-size":yr}}),Ce=be?useThemeClass("internal-selection",computed(()=>d.size[0]),Ee,d):void 0;return{mergedTheme:F,mergedClearable:z,patternInputFocused:I,filterablePlaceholder:L,label:H,selected:Q,showTagsPanel:$,isComposing:ce,counterRef:E,counterWrapperRef:P,patternInputMirrorRef:b,patternInputRef:A,selfRef:w,multipleElRef:C,singleElRef:x,patternInputWrapperRef:S,overflowRef:B,inputTagElRef:k,handleMouseDown:ne,handleFocusin:he,handleClear:le,handleMouseEnter:de,handleMouseLeave:me,handleDeleteOption:re,handlePatternKeyDown:fe,handlePatternInputInput:Fe,handlePatternInputBlur:dt,handlePatternInputFocus:ut,handleMouseEnterCounter:ee,handleMouseLeaveCounter:se,handleFocusout:J,handleCompositionEnd:tt,handleCompositionStart:Ke,onPopoverUpdateShow:ie,focus:$e,focusInput:ke,blur:it,blurInput:Oe,updateCounter:Qe,getCounter:Je,getTail:ve,renderLabel:d.renderLabel,cssVars:be?void 0:Ee,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{status:d,multiple:b,size:A,disabled:w,filterable:C,maxTagCount:x,bordered:S,clsPrefix:E,onRender:P,renderTag:B,renderLabel:k}=this;P==null||P();const $=x==="responsive",I=typeof x=="number",D=$||I,F=h$1(Wrapper,null,{default:()=>h$1(NBaseSuffix,{clsPrefix:E,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var L,H;return(H=(L=this.$slots).arrow)===null||H===void 0?void 0:H.call(L)}})});let z;if(b){const{labelField:L}=this,H=J=>h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),key:J.value},B?B({option:J,handleClose:()=>{this.handleDeleteOption(J)}}):h$1(NTag,{size:A,closable:!J.disabled,disabled:w,onClose:()=>{this.handleDeleteOption(J)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>k?k(J,!0):render$1(J[L],J,!0)})),Q=()=>(I?this.selectedOptions.slice(0,x):this.selectedOptions).map(H),Y=C?h$1("div",{class:"".concat(E,"-base-selection-input-tag"),ref:"inputTagElRef",key:"__input-tag__"},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:w,value:this.pattern,autofocus:this.autofocus,class:"".concat(E,"-base-selection-input-tag__input"),onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),h$1("span",{ref:"patternInputMirrorRef",class:"".concat(E,"-base-selection-input-tag__mirror")},this.pattern)):null,U=$?()=>h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),ref:"counterWrapperRef"},h$1(NTag,{size:A,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:w})):void 0;let G;if(I){const J=this.selectedOptions.length-x;J>0&&(G=h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),key:"__counter__"},h$1(NTag,{size:A,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:w},{default:()=>"+".concat(J)})))}const W=$?C?h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:Q,counter:U,tail:()=>Y}):h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:Q,counter:U}):I?Q().concat(G):Q(),K=D?()=>h$1("div",{class:"".concat(E,"-base-selection-popover")},$?Q():this.selectedOptions.map(H)):void 0,X=D?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,oe=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay")},h$1("div",{class:"".concat(E,"-base-selection-placeholder__inner")},this.placeholder)):null,he=C?h$1("div",{ref:"patternInputWrapperRef",class:"".concat(E,"-base-selection-tags")},W,$?null:Y,F):h$1("div",{ref:"multipleElRef",class:"".concat(E,"-base-selection-tags"),tabindex:w?void 0:0},W,F);z=h$1(Fragment,null,D?h$1(NPopover,Object.assign({},X,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>he,default:K}):he,oe)}else if(C){const L=this.pattern||this.isComposing,H=this.active?!L:!this.selected,Q=this.active?!1:this.selected;z=h$1("div",{ref:"patternInputWrapperRef",class:"".concat(E,"-base-selection-label")},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:"".concat(E,"-base-selection-input"),value:this.active?this.pattern:"",placeholder:"",readonly:w,disabled:w,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),Q?h$1("div",{class:"".concat(E,"-base-selection-label__render-label ").concat(E,"-base-selection-overlay"),key:"input"},h$1("div",{class:"".concat(E,"-base-selection-overlay__wrapper")},B?B({option:this.selectedOption,handleClose:()=>{}}):k?k(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):null,H?h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat(E,"-base-selection-overlay__wrapper")},this.filterablePlaceholder)):null,F)}else z=h$1("div",{ref:"singleElRef",class:"".concat(E,"-base-selection-label"),tabindex:this.disabled?void 0:0},this.label!==void 0?h$1("div",{class:"".concat(E,"-base-selection-input"),title:getTitleAttribute(this.label),key:"input"},h$1("div",{class:"".concat(E,"-base-selection-input__content")},B?B({option:this.selectedOption,handleClose:()=>{}}):k?k(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat(E,"-base-selection-placeholder__inner")},this.placeholder)),F);return h$1("div",{ref:"selfRef",class:["".concat(E,"-base-selection"),this.themeClass,d&&"".concat(E,"-base-selection--").concat(d,"-status"),{["".concat(E,"-base-selection--active")]:this.active,["".concat(E,"-base-selection--selected")]:this.selected||this.active&&this.pattern,["".concat(E,"-base-selection--disabled")]:this.disabled,["".concat(E,"-base-selection--multiple")]:this.multiple,["".concat(E,"-base-selection--focus")]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},z,S?h$1("div",{class:"".concat(E,"-base-selection__border")}):null,S?h$1("div",{class:"".concat(E,"-base-selection__state-border")}):null)}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$1}=commonVariables$m;function fadeInWidthExpandTransition({duration:d=".2s",delay:b=".1s"}={}){return[c$3("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),c$3("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),c$3("&.fade-in-width-expand-transition-leave-active","\n overflow: hidden;\n transition:\n opacity ".concat(d," ").concat(cubicBezierEaseInOut$1,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,";\n ")),c$3("&.fade-in-width-expand-transition-enter-active","\n overflow: hidden;\n transition:\n opacity ".concat(d," ").concat(cubicBezierEaseInOut$1," ").concat(b,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$1,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$1,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$1,";\n "))]}const commonVars$a={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},alertDark={name:"Alert",common:commonDark,self(d){const{lineHeight:b,borderRadius:A,fontWeightStrong:w,dividerColor:C,inputColor:x,textColor1:S,textColor2:E,closeColorHover:P,closeColorPressed:B,closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,infoColorSuppl:D,successColorSuppl:F,warningColorSuppl:z,errorColorSuppl:L,fontSize:H}=d;return Object.assign(Object.assign({},commonVars$a),{fontSize:H,lineHeight:b,titleFontWeight:w,borderRadius:A,border:"1px solid ".concat(C),color:x,titleTextColor:S,iconColor:E,contentTextColor:E,closeBorderRadius:A,closeColorHover:P,closeColorPressed:B,closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,borderInfo:"1px solid ".concat(changeColor(D,{alpha:.35})),colorInfo:changeColor(D,{alpha:.25}),titleTextColorInfo:S,iconColorInfo:D,contentTextColorInfo:E,closeColorHoverInfo:P,closeColorPressedInfo:B,closeIconColorInfo:k,closeIconColorHoverInfo:$,closeIconColorPressedInfo:I,borderSuccess:"1px solid ".concat(changeColor(F,{alpha:.35})),colorSuccess:changeColor(F,{alpha:.25}),titleTextColorSuccess:S,iconColorSuccess:F,contentTextColorSuccess:E,closeColorHoverSuccess:P,closeColorPressedSuccess:B,closeIconColorSuccess:k,closeIconColorHoverSuccess:$,closeIconColorPressedSuccess:I,borderWarning:"1px solid ".concat(changeColor(z,{alpha:.35})),colorWarning:changeColor(z,{alpha:.25}),titleTextColorWarning:S,iconColorWarning:z,contentTextColorWarning:E,closeColorHoverWarning:P,closeColorPressedWarning:B,closeIconColorWarning:k,closeIconColorHoverWarning:$,closeIconColorPressedWarning:I,borderError:"1px solid ".concat(changeColor(L,{alpha:.35})),colorError:changeColor(L,{alpha:.25}),titleTextColorError:S,iconColorError:L,contentTextColorError:E,closeColorHoverError:P,closeColorPressedError:B,closeIconColorError:k,closeIconColorHoverError:$,closeIconColorPressedError:I})}},alertDark$1=alertDark,{cubicBezierEaseInOut,cubicBezierEaseOut,cubicBezierEaseIn}=commonVariables$m;function fadeInHeightExpandTransition({overflow:d="hidden",duration:b=".3s",originalTransition:A="",leavingDelay:w="0s",foldPadding:C=!1,enterToProps:x=void 0,leaveToProps:S=void 0,reverse:E=!1}={}){const P=E?"leave":"enter",B=E?"enter":"leave";return[c$3("&.fade-in-height-expand-transition-".concat(B,"-from,\n &.fade-in-height-expand-transition-").concat(P,"-to"),Object.assign(Object.assign({},x),{opacity:1})),c$3("&.fade-in-height-expand-transition-".concat(B,"-to,\n &.fade-in-height-expand-transition-").concat(P,"-from"),Object.assign(Object.assign({},S),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:C?"0 !important":void 0,paddingBottom:C?"0 !important":void 0})),c$3("&.fade-in-height-expand-transition-".concat(B,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(w,",\n opacity ").concat(b," ").concat(cubicBezierEaseOut," ").concat(w,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(w,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(w,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(w,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut," ").concat(w,"\n ").concat(A?","+A:"","\n ")),c$3("&.fade-in-height-expand-transition-".concat(P,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut,",\n opacity ").concat(b," ").concat(cubicBezierEaseIn,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut,"\n ").concat(A?","+A:"","\n "))]}const commonVars$9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},self$O=d=>{const{borderRadius:b,railColor:A,primaryColor:w,primaryColorHover:C,primaryColorPressed:x,textColor2:S}=d;return Object.assign(Object.assign({},commonVars$9),{borderRadius:b,railColor:A,railColorActive:w,linkColor:changeColor(w,{alpha:.15}),linkTextColor:S,linkTextColorHover:C,linkTextColorPressed:x,linkTextColorActive:w})},anchorDark={name:"Anchor",common:commonDark,self:self$O},anchorDark$1=anchorDark;function getIsGroup(d){return d.type==="group"}function getIgnored(d){return d.type==="ignored"}function patternMatched(d,b){try{return!!(1+b.toString().toLowerCase().indexOf(d.trim().toLowerCase()))}catch(A){return!1}}function createTmOptions(d,b){return{getIsGroup,getIgnored,getKey(w){return getIsGroup(w)?w.name||w.key||"key-required":w[d]},getChildren(w){return w[b]}}}function filterOptions(d,b,A,w){if(!b)return d;function C(x){if(!Array.isArray(x))return[];const S=[];for(const E of x)if(getIsGroup(E)){const P=C(E[w]);P.length&&S.push(Object.assign({},E,{[w]:P}))}else{if(getIgnored(E))continue;b(A,E)&&S.push(E)}return S}return C(d)}function createValOptMap(d,b,A){const w=new Map;return d.forEach(C=>{getIsGroup(C)?C[A].forEach(x=>{w.set(x[b],x)}):w.set(C[b],C)}),w}const isChrome=isBrowser$2&&"chrome"in window;isBrowser$2&&navigator.userAgent.includes("Firefox");const isSafari=isBrowser$2&&navigator.userAgent.includes("Safari")&&!isChrome,commonVariables$i={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},inputDark={name:"Input",common:commonDark,self(d){const{textColor2:b,textColor3:A,textColorDisabled:w,primaryColor:C,primaryColorHover:x,inputColor:S,inputColorDisabled:E,warningColor:P,warningColorHover:B,errorColor:k,errorColorHover:$,borderRadius:I,lineHeight:D,fontSizeTiny:F,fontSizeSmall:z,fontSizeMedium:L,fontSizeLarge:H,heightTiny:Q,heightSmall:Y,heightMedium:U,heightLarge:G,clearColor:W,clearColorHover:K,clearColorPressed:X,placeholderColor:Z,placeholderColorDisabled:oe,iconColor:he,iconColorDisabled:J,iconColorHover:le,iconColorPressed:de}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:w,countTextColor:A,heightTiny:Q,heightSmall:Y,heightMedium:U,heightLarge:G,fontSizeTiny:F,fontSizeSmall:z,fontSizeMedium:L,fontSizeLarge:H,lineHeight:D,lineHeightTextarea:D,borderRadius:I,iconSize:"16px",groupLabelColor:S,textColor:b,textColorDisabled:w,textDecorationColor:b,groupLabelTextColor:b,caretColor:C,placeholderColor:Z,placeholderColorDisabled:oe,color:S,colorDisabled:E,colorFocus:changeColor(C,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:"1px solid ".concat(x),borderDisabled:"1px solid #0000",borderFocus:"1px solid ".concat(x),boxShadowFocus:"0 0 8px 0 ".concat(changeColor(C,{alpha:.3})),loadingColor:C,loadingColorWarning:P,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),colorFocusWarning:changeColor(P,{alpha:.1}),borderFocusWarning:"1px solid ".concat(B),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.3})),caretColorWarning:P,loadingColorError:k,borderError:"1px solid ".concat(k),borderHoverError:"1px solid ".concat($),colorFocusError:changeColor(k,{alpha:.1}),borderFocusError:"1px solid ".concat($),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(k,{alpha:.3})),caretColorError:k,clearColor:W,clearColorHover:K,clearColorPressed:X,iconColor:he,iconColorDisabled:J,iconColorHover:le,iconColorPressed:de,suffixTextColor:b})}},inputDark$1=inputDark,self$N=d=>{const{textColor2:b,textColor3:A,textColorDisabled:w,primaryColor:C,primaryColorHover:x,inputColor:S,inputColorDisabled:E,borderColor:P,warningColor:B,warningColorHover:k,errorColor:$,errorColorHover:I,borderRadius:D,lineHeight:F,fontSizeTiny:z,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:Q,heightTiny:Y,heightSmall:U,heightMedium:G,heightLarge:W,actionColor:K,clearColor:X,clearColorHover:Z,clearColorPressed:oe,placeholderColor:he,placeholderColorDisabled:J,iconColor:le,iconColorDisabled:de,iconColorHover:me,iconColorPressed:ne}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:w,countTextColor:A,heightTiny:Y,heightSmall:U,heightMedium:G,heightLarge:W,fontSizeTiny:z,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:Q,lineHeight:F,lineHeightTextarea:F,borderRadius:D,iconSize:"16px",groupLabelColor:K,groupLabelTextColor:b,textColor:b,textColorDisabled:w,textDecorationColor:b,caretColor:C,placeholderColor:he,placeholderColorDisabled:J,color:S,colorDisabled:E,colorFocus:S,groupLabelBorder:"1px solid ".concat(P),border:"1px solid ".concat(P),borderHover:"1px solid ".concat(x),borderDisabled:"1px solid ".concat(P),borderFocus:"1px solid ".concat(x),boxShadowFocus:"0 0 0 2px ".concat(changeColor(C,{alpha:.2})),loadingColor:C,loadingColorWarning:B,borderWarning:"1px solid ".concat(B),borderHoverWarning:"1px solid ".concat(k),colorFocusWarning:S,borderFocusWarning:"1px solid ".concat(k),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(B,{alpha:.2})),caretColorWarning:B,loadingColorError:$,borderError:"1px solid ".concat($),borderHoverError:"1px solid ".concat(I),colorFocusError:S,borderFocusError:"1px solid ".concat(I),boxShadowFocusError:"0 0 0 2px ".concat(changeColor($,{alpha:.2})),caretColorError:$,clearColor:X,clearColorHover:Z,clearColorPressed:oe,iconColor:le,iconColorDisabled:de,iconColorHover:me,iconColorPressed:ne,suffixTextColor:b})},inputLight={name:"Input",common:commonLight,self:self$N},inputLight$1=inputLight,inputInjectionKey="n-input";function len(d){let b=0;for(const A of d)b++;return b}function isEmptyInputValue(d){return d===""||d==null}function useCursor(d){const b=ref(null);function A(){const{value:x}=d;if(!(x!=null&&x.focus)){C();return}const{selectionStart:S,selectionEnd:E,value:P}=x;if(S==null||E==null){C();return}b.value={start:S,end:E,beforeText:P.slice(0,S),afterText:P.slice(E)}}function w(){var x;const{value:S}=b,{value:E}=d;if(!S||!E)return;const{value:P}=E,{start:B,beforeText:k,afterText:$}=S;let I=P.length;if(P.endsWith($))I=P.length-$.length;else if(P.startsWith(k))I=k.length;else{const D=k[B-1],F=P.indexOf(D,B-1);F!==-1&&(I=F+1)}(x=E.setSelectionRange)===null||x===void 0||x.call(E,I,I)}function C(){b.value=null}return watch(d,C),{recordCursor:A,restoreCursor:w}}const WordCount=defineComponent({name:"InputWordCount",setup(d,{slots:b}){const{mergedValueRef:A,maxlengthRef:w,mergedClsPrefixRef:C,countGraphemesRef:x}=inject(inputInjectionKey),S=computed(()=>{const{value:E}=A;return E===null||Array.isArray(E)?0:(x.value||len)(E)});return()=>{const{value:E}=w,{value:P}=A;return h$1("span",{class:"".concat(C.value,"-input-word-count")},resolveSlotWithProps(b.default,{value:P===null||Array.isArray(P)?"":P},()=>[E===void 0?S.value:"".concat(S.value," / ").concat(E)]))}}}),style$f=cB("input","\n max-width: 100%;\n cursor: text;\n line-height: 1.5;\n z-index: auto;\n outline: none;\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);\n",[cE("input, textarea","\n overflow: hidden;\n flex-grow: 1;\n position: relative;\n "),cE("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder","\n box-sizing: border-box;\n font-size: inherit;\n line-height: 1.5;\n font-family: inherit;\n border: none;\n outline: none;\n background-color: #0000;\n text-align: inherit;\n transition:\n -webkit-text-fill-color .3s var(--n-bezier),\n caret-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n text-decoration-color .3s var(--n-bezier);\n "),cE("input-el, textarea-el","\n -webkit-appearance: none;\n scrollbar-width: none;\n width: 100%;\n min-width: 0;\n text-decoration-color: var(--n-text-decoration-color);\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n background-color: transparent;\n ",[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),c$3("&::placeholder","\n color: #0000;\n -webkit-text-fill-color: transparent !important;\n "),c$3("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n color: var(--n-placeholder-color);\n ",[c$3("span","\n width: 100%;\n display: inline-block;\n ")]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el","\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n ")]),cB("input-wrapper","\n overflow: hidden;\n display: inline-flex;\n flex-grow: 1;\n position: relative;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n "),cE("input-mirror","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre;\n pointer-events: none;\n "),cE("input-el","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[c$3("+",[cE("placeholder","\n display: flex;\n align-items: center; \n ")])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye","\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n "),cM("textarea","width: 100%;",[cB("input-word-count","\n position: absolute;\n right: var(--n-padding-right);\n bottom: var(--n-padding-vertical);\n "),cM("resizable",[cB("input-wrapper","\n resize: vertical;\n min-height: var(--n-height);\n ")]),cE("textarea-el, textarea-mirror, placeholder","\n height: 100%;\n padding-left: 0;\n padding-right: 0;\n padding-top: var(--n-padding-vertical);\n padding-bottom: var(--n-padding-vertical);\n word-break: break-word;\n display: inline-block;\n vertical-align: bottom;\n box-sizing: border-box;\n line-height: var(--n-line-height-textarea);\n margin: 0;\n resize: none;\n white-space: pre-wrap;\n "),cE("textarea-mirror","\n width: 100%;\n pointer-events: none;\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n ")]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator","\n display: flex;\n align-items: center;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n white-space: nowrap;\n ",[cB("icon","\n color: var(--n-icon-color);\n "),cB("base-icon","\n color: var(--n-icon-color);\n ")])]),cM("disabled","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n text-decoration-color: var(--n-text-color-disabled);\n "),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon","\n color: var(--n-icon-color-disabled);\n "),cB("base-icon","\n color: var(--n-icon-color-disabled);\n ")]),cB("input-word-count","\n color: var(--n-count-text-color-disabled);\n "),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon","\n color: var(--n-icon-color-disabled);\n "),cB("internal-icon","\n color: var(--n-icon-color-disabled);\n ")])]),cNotM("disabled",[cE("eye","\n color: var(--n-icon-color);\n cursor: pointer;\n ",[c$3("&:hover","\n color: var(--n-icon-color-hover);\n "),c$3("&:active","\n color: var(--n-icon-color-pressed);\n ")]),c$3("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),cE("border, state-border","\n box-sizing: border-box;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: inherit;\n border: var(--n-border);\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),cE("state-border","\n border-color: #0000;\n z-index: 1;\n "),cE("prefix","margin-right: 4px;"),cE("suffix","\n margin-left: 4px;\n "),cE("suffix, prefix","\n transition: color .3s var(--n-bezier);\n flex-wrap: nowrap;\n flex-shrink: 0;\n line-height: var(--n-height);\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--n-suffix-text-color);\n ",[cB("base-loading","\n font-size: var(--n-icon-size);\n margin: 0 2px;\n color: var(--n-loading-color);\n "),cB("base-clear","\n font-size: var(--n-icon-size);\n ",[cE("placeholder",[cB("base-icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")])]),c$3(">",[cB("icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")]),cB("base-icon","\n font-size: var(--n-icon-size);\n ")]),cB("input-word-count","\n pointer-events: none;\n line-height: 1.5;\n font-size: .85em;\n color: var(--n-count-text-color);\n transition: color .3s var(--n-bezier);\n margin-left: 4px;\n font-variant: tabular-nums;\n "),["warning","error"].map(d=>cM("".concat(d,"-status"),[cNotM("disabled",[cB("base-loading","\n color: var(--n-loading-color-".concat(d,")\n ")),cE("input-el, textarea-el","\n caret-color: var(--n-caret-color-".concat(d,");\n ")),cE("state-border","\n border: var(--n-border-".concat(d,");\n ")),c$3("&:hover",[cE("state-border","\n border: var(--n-border-hover-".concat(d,");\n "))]),c$3("&:focus","\n background-color: var(--n-color-focus-".concat(d,");\n "),[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))]),cM("focus","\n background-color: var(--n-color-focus-".concat(d,");\n "),[cE("state-border","\n box-shadow: var(--n-box-shadow-focus-".concat(d,");\n border: var(--n-border-focus-").concat(d,");\n "))])])]))]),safariStyle=cB("input",[cM("disabled",[cE("input-el, textarea-el","\n -webkit-text-fill-color: var(--n-text-color-disabled);\n ")])]),inputProps=Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),NInput=defineComponent({name:"Input",props:inputProps,setup(d){const{mergedClsPrefixRef:b,mergedBorderedRef:A,inlineThemeDisabled:w,mergedRtlRef:C}=useConfig(d),x=useTheme("Input","-input",style$f,inputLight$1,d,b);isSafari&&useStyle("-input-safari",safariStyle,b);const S=ref(null),E=ref(null),P=ref(null),B=ref(null),k=ref(null),$=ref(null),I=ref(null),D=useCursor(I),F=ref(null),{localeRef:z}=useLocale("Input"),L=ref(d.defaultValue),H=toRef$1(d,"value"),Q=useMergedState(H,L),Y=useFormItem(d),{mergedSizeRef:U,mergedDisabledRef:G,mergedStatusRef:W}=Y,K=ref(!1),X=ref(!1),Z=ref(!1),oe=ref(!1);let he=null;const J=computed(()=>{const{placeholder:Pe,pair:Ue}=d;return Ue?Array.isArray(Pe)?Pe:Pe===void 0?["",""]:[Pe,Pe]:Pe===void 0?[z.value.placeholder]:[Pe]}),le=computed(()=>{const{value:Pe}=Z,{value:Ue}=Q,{value:ct}=J;return!Pe&&(isEmptyInputValue(Ue)||Array.isArray(Ue)&&isEmptyInputValue(Ue[0]))&&ct[0]}),de=computed(()=>{const{value:Pe}=Z,{value:Ue}=Q,{value:ct}=J;return!Pe&&ct[1]&&(isEmptyInputValue(Ue)||Array.isArray(Ue)&&isEmptyInputValue(Ue[1]))}),me=useMemo(()=>d.internalForceFocus||K.value),ne=useMemo(()=>{if(G.value||d.readonly||!d.clearable||!me.value&&!X.value)return!1;const{value:Pe}=Q,{value:Ue}=me;return d.pair?!!(Array.isArray(Pe)&&(Pe[0]||Pe[1]))&&(X.value||Ue):!!Pe&&(X.value||Ue)}),re=computed(()=>{const{showPasswordOn:Pe}=d;if(Pe)return Pe;if(d.showPasswordToggle)return"click"}),fe=ref(!1),ce=computed(()=>{const{textDecoration:Pe}=d;return Pe?Array.isArray(Pe)?Pe.map(Ue=>({textDecoration:Ue})):[{textDecoration:Pe}]:["",""]}),we=ref(void 0),Fe=()=>{var Pe,Ue;if(d.type==="textarea"){const{autosize:ct}=d;if(ct&&(we.value=(Ue=(Pe=F.value)===null||Pe===void 0?void 0:Pe.$el)===null||Ue===void 0?void 0:Ue.offsetWidth),!E.value||typeof ct=="boolean")return;const{paddingTop:Et,paddingBottom:Vt,lineHeight:Nt}=window.getComputedStyle(E.value),tr=Number(Et.slice(0,-2)),Kt=Number(Vt.slice(0,-2)),Ot=Number(Nt.slice(0,-2)),{value:fr}=P;if(!fr)return;if(ct.minRows){const _r=Math.max(ct.minRows,1),sn="".concat(tr+Kt+Ot*_r,"px");fr.style.minHeight=sn}if(ct.maxRows){const _r="".concat(tr+Kt+Ot*ct.maxRows,"px");fr.style.maxHeight=_r}}},Ke=computed(()=>{const{maxlength:Pe}=d;return Pe===void 0?void 0:Number(Pe)});onMounted(()=>{const{value:Pe}=Q;Array.isArray(Pe)||xe(Pe)});const tt=getCurrentInstance().proxy;function ut(Pe){const{onUpdateValue:Ue,"onUpdate:value":ct,onInput:Et}=d,{nTriggerFormInput:Vt}=Y;Ue&&call$1(Ue,Pe),ct&&call$1(ct,Pe),Et&&call$1(Et,Pe),L.value=Pe,Vt()}function dt(Pe){const{onChange:Ue}=d,{nTriggerFormChange:ct}=Y;Ue&&call$1(Ue,Pe),L.value=Pe,ct()}function it(Pe){const{onBlur:Ue}=d,{nTriggerFormBlur:ct}=Y;Ue&&call$1(Ue,Pe),ct()}function $e(Pe){const{onFocus:Ue}=d,{nTriggerFormFocus:ct}=Y;Ue&&call$1(Ue,Pe),ct()}function ke(Pe){const{onClear:Ue}=d;Ue&&call$1(Ue,Pe)}function Oe(Pe){const{onInputBlur:Ue}=d;Ue&&call$1(Ue,Pe)}function Qe(Pe){const{onInputFocus:Ue}=d;Ue&&call$1(Ue,Pe)}function Je(){const{onDeactivate:Pe}=d;Pe&&call$1(Pe)}function ve(){const{onActivate:Pe}=d;Pe&&call$1(Pe)}function ye(Pe){const{onClick:Ue}=d;Ue&&call$1(Ue,Pe)}function Te(Pe){const{onWrapperFocus:Ue}=d;Ue&&call$1(Ue,Pe)}function ee(Pe){const{onWrapperBlur:Ue}=d;Ue&&call$1(Ue,Pe)}function se(){Z.value=!0}function ie(Pe){Z.value=!1,Pe.target===$.value?be(Pe,1):be(Pe,0)}function be(Pe,Ue=0,ct="input"){const Et=Pe.target.value;if(xe(Et),Pe instanceof InputEvent&&!Pe.isComposing&&(Z.value=!1),d.type==="textarea"){const{value:Nt}=F;Nt&&Nt.syncUnifiedContainer()}if(he=Et,Z.value)return;D.recordCursor();const Vt=Ee(Et);if(Vt)if(!d.pair)ct==="input"?ut(Et):dt(Et);else{let{value:Nt}=Q;Array.isArray(Nt)?Nt=[Nt[0],Nt[1]]:Nt=["",""],Nt[Ue]=Et,ct==="input"?ut(Nt):dt(Nt)}tt.$forceUpdate(),Vt||nextTick(D.restoreCursor)}function Ee(Pe){const{countGraphemes:Ue,maxlength:ct,minlength:Et}=d;if(Ue){let Nt;if(ct!==void 0&&(Nt===void 0&&(Nt=Ue(Pe)),Nt>Number(ct))||Et!==void 0&&(Nt===void 0&&(Nt=Ue(Pe)),Nt<Number(ct)))return!1}const{allowInput:Vt}=d;return typeof Vt=="function"?Vt(Pe):!0}function Ce(Pe){Oe(Pe),Pe.relatedTarget===S.value&&Je(),Pe.relatedTarget!==null&&(Pe.relatedTarget===k.value||Pe.relatedTarget===$.value||Pe.relatedTarget===E.value)||(oe.value=!1),Ye(Pe,"blur"),I.value=null}function ge(Pe,Ue){Qe(Pe),K.value=!0,oe.value=!0,ve(),Ye(Pe,"focus"),Ue===0?I.value=k.value:Ue===1?I.value=$.value:Ue===2&&(I.value=E.value)}function Ie(Pe){d.passivelyActivated&&(ee(Pe),Ye(Pe,"blur"))}function Le(Pe){d.passivelyActivated&&(K.value=!0,Te(Pe),Ye(Pe,"focus"))}function Ye(Pe,Ue){Pe.relatedTarget!==null&&(Pe.relatedTarget===k.value||Pe.relatedTarget===$.value||Pe.relatedTarget===E.value||Pe.relatedTarget===S.value)||(Ue==="focus"?($e(Pe),K.value=!0):Ue==="blur"&&(it(Pe),K.value=!1))}function rt(Pe,Ue){be(Pe,Ue,"change")}function lt(Pe){ye(Pe)}function pt(Pe){ke(Pe),d.pair?(ut(["",""]),dt(["",""])):(ut(""),dt(""))}function He(Pe){const{onMousedown:Ue}=d;Ue&&Ue(Pe);const{tagName:ct}=Pe.target;if(ct!=="INPUT"&&ct!=="TEXTAREA"){if(d.resizable){const{value:Et}=S;if(Et){const{left:Vt,top:Nt,width:tr,height:Kt}=Et.getBoundingClientRect(),Ot=14;if(Vt+tr-Ot<Pe.clientX&&Pe.clientX<Vt+tr&&Nt+Kt-Ot<Pe.clientY&&Pe.clientY<Nt+Kt)return}}Pe.preventDefault(),K.value||Ae()}}function at(){var Pe;X.value=!0,d.type==="textarea"&&((Pe=F.value)===null||Pe===void 0||Pe.handleMouseEnterWrapper())}function nt(){var Pe;X.value=!1,d.type==="textarea"&&((Pe=F.value)===null||Pe===void 0||Pe.handleMouseLeaveWrapper())}function mt(){G.value||re.value==="click"&&(fe.value=!fe.value)}function Tt(Pe){if(G.value)return;Pe.preventDefault();const Ue=Et=>{Et.preventDefault(),off("mouseup",document,Ue)};if(on("mouseup",document,Ue),re.value!=="mousedown")return;fe.value=!0;const ct=()=>{fe.value=!1,off("mouseup",document,ct)};on("mouseup",document,ct)}function Dt(Pe){var Ue;switch((Ue=d.onKeydown)===null||Ue===void 0||Ue.call(d,Pe),Pe.key){case"Escape":At();break;case"Enter":yt(Pe);break}}function yt(Pe){var Ue,ct;if(d.passivelyActivated){const{value:Et}=oe;if(Et){d.internalDeactivateOnEnter&&At();return}Pe.preventDefault(),d.type==="textarea"?(Ue=E.value)===null||Ue===void 0||Ue.focus():(ct=k.value)===null||ct===void 0||ct.focus()}}function At(){d.passivelyActivated&&(oe.value=!1,nextTick(()=>{var Pe;(Pe=S.value)===null||Pe===void 0||Pe.focus()}))}function Ae(){var Pe,Ue,ct;G.value||(d.passivelyActivated?(Pe=S.value)===null||Pe===void 0||Pe.focus():((Ue=E.value)===null||Ue===void 0||Ue.focus(),(ct=k.value)===null||ct===void 0||ct.focus()))}function Re(){var Pe;!((Pe=S.value)===null||Pe===void 0)&&Pe.contains(document.activeElement)&&document.activeElement.blur()}function qe(){var Pe,Ue;(Pe=E.value)===null||Pe===void 0||Pe.select(),(Ue=k.value)===null||Ue===void 0||Ue.select()}function ft(){G.value||(E.value?E.value.focus():k.value&&k.value.focus())}function vt(){const{value:Pe}=S;Pe!=null&&Pe.contains(document.activeElement)&&Pe!==document.activeElement&&At()}function bt(Pe){if(d.type==="textarea"){const{value:Ue}=E;Ue==null||Ue.scrollTo(Pe)}else{const{value:Ue}=k;Ue==null||Ue.scrollTo(Pe)}}function xe(Pe){const{type:Ue,pair:ct,autosize:Et}=d;if(!ct&&Et)if(Ue==="textarea"){const{value:Vt}=P;Vt&&(Vt.textContent=(Pe!=null?Pe:"")+"\r\n")}else{const{value:Vt}=B;Vt&&(Pe?Vt.textContent=Pe:Vt.innerHTML="&nbsp;")}}function Ne(){Fe()}const ze=ref({top:"0"});function Ve(Pe){var Ue;const{scrollTop:ct}=Pe.target;ze.value.top="".concat(-ct,"px"),(Ue=F.value)===null||Ue===void 0||Ue.syncUnifiedContainer()}let We=null;watchEffect(()=>{const{autosize:Pe,type:Ue}=d;Pe&&Ue==="textarea"?We=watch(Q,ct=>{!Array.isArray(ct)&&ct!==he&&xe(ct)}):We==null||We()});let ht=null;watchEffect(()=>{d.type==="textarea"?ht=watch(Q,Pe=>{var Ue;!Array.isArray(Pe)&&Pe!==he&&((Ue=F.value)===null||Ue===void 0||Ue.syncUnifiedContainer())}):ht==null||ht()}),provide(inputInjectionKey,{mergedValueRef:Q,maxlengthRef:Ke,mergedClsPrefixRef:b,countGraphemesRef:toRef$1(d,"countGraphemes")});const _t={wrapperElRef:S,inputElRef:k,textareaElRef:E,isCompositing:Z,focus:Ae,blur:Re,select:qe,deactivate:vt,activate:ft,scrollTo:bt},zt=useRtl("Input",C,b),Ct=computed(()=>{const{value:Pe}=U,{common:{cubicBezierEaseInOut:Ue},self:{color:ct,borderRadius:Et,textColor:Vt,caretColor:Nt,caretColorError:tr,caretColorWarning:Kt,textDecorationColor:Ot,border:fr,borderDisabled:_r,borderHover:sn,borderFocus:yr,placeholderColor:Mn,placeholderColorDisabled:Nn,lineHeightTextarea:Po,colorDisabled:Bo,colorFocus:wn,textColorDisabled:Dr,boxShadowFocus:Cn,iconSize:$o,colorFocusWarning:ko,boxShadowFocusWarning:Io,borderWarning:Zn,borderFocusWarning:ln,borderHoverWarning:eo,colorFocusError:Mo,boxShadowFocusError:Or,borderError:No,borderFocusError:Do,borderHoverError:to,clearSize:ro,clearColor:no,clearColorHover:Dn,clearColorPressed:xn,iconColor:oo,iconColorDisabled:Sn,suffixTextColor:io,countTextColor:ao,countTextColorDisabled:so,iconColorHover:lo,iconColorPressed:cn,loadingColor:Oo,loadingColorError:co,loadingColorWarning:On,[createKey("padding",Pe)]:Rn,[createKey("fontSize",Pe)]:en,[createKey("height",Pe)]:uo}}=x.value,{left:fo,right:Ro}=getMargin(Rn);return{"--n-bezier":Ue,"--n-count-text-color":ao,"--n-count-text-color-disabled":so,"--n-color":ct,"--n-font-size":en,"--n-border-radius":Et,"--n-height":uo,"--n-padding-left":fo,"--n-padding-right":Ro,"--n-text-color":Vt,"--n-caret-color":Nt,"--n-text-decoration-color":Ot,"--n-border":fr,"--n-border-disabled":_r,"--n-border-hover":sn,"--n-border-focus":yr,"--n-placeholder-color":Mn,"--n-placeholder-color-disabled":Nn,"--n-icon-size":$o,"--n-line-height-textarea":Po,"--n-color-disabled":Bo,"--n-color-focus":wn,"--n-text-color-disabled":Dr,"--n-box-shadow-focus":Cn,"--n-loading-color":Oo,"--n-caret-color-warning":Kt,"--n-color-focus-warning":ko,"--n-box-shadow-focus-warning":Io,"--n-border-warning":Zn,"--n-border-focus-warning":ln,"--n-border-hover-warning":eo,"--n-loading-color-warning":On,"--n-caret-color-error":tr,"--n-color-focus-error":Mo,"--n-box-shadow-focus-error":Or,"--n-border-error":No,"--n-border-focus-error":Do,"--n-border-hover-error":to,"--n-loading-color-error":co,"--n-clear-color":no,"--n-clear-size":ro,"--n-clear-color-hover":Dn,"--n-clear-color-pressed":xn,"--n-icon-color":oo,"--n-icon-color-hover":lo,"--n-icon-color-pressed":cn,"--n-icon-color-disabled":Sn,"--n-suffix-text-color":io}}),Mt=w?useThemeClass("input",computed(()=>{const{value:Pe}=U;return Pe[0]}),Ct,d):void 0;return Object.assign(Object.assign({},_t),{wrapperElRef:S,inputElRef:k,inputMirrorElRef:B,inputEl2Ref:$,textareaElRef:E,textareaMirrorElRef:P,textareaScrollbarInstRef:F,rtlEnabled:zt,uncontrolledValue:L,mergedValue:Q,passwordVisible:fe,mergedPlaceholder:J,showPlaceholder1:le,showPlaceholder2:de,mergedFocus:me,isComposing:Z,activated:oe,showClearButton:ne,mergedSize:U,mergedDisabled:G,textDecorationStyle:ce,mergedClsPrefix:b,mergedBordered:A,mergedShowPasswordOn:re,placeholderStyle:ze,mergedStatus:W,textAreaScrollContainerWidth:we,handleTextAreaScroll:Ve,handleCompositionStart:se,handleCompositionEnd:ie,handleInput:be,handleInputBlur:Ce,handleInputFocus:ge,handleWrapperBlur:Ie,handleWrapperFocus:Le,handleMouseEnter:at,handleMouseLeave:nt,handleMouseDown:He,handleChange:rt,handleClick:lt,handleClear:pt,handlePasswordToggleClick:mt,handlePasswordToggleMousedown:Tt,handleWrapperKeydown:Dt,handleTextAreaMirrorResize:Ne,getTextareaScrollContainer:()=>E.value,mergedTheme:x,cssVars:w?void 0:Ct,themeClass:Mt==null?void 0:Mt.themeClass,onRender:Mt==null?void 0:Mt.onRender})},render(){var d,b;const{mergedClsPrefix:A,mergedStatus:w,themeClass:C,type:x,countGraphemes:S,onRender:E}=this,P=this.$slots;return E==null||E(),h$1("div",{ref:"wrapperElRef",class:["".concat(A,"-input"),C,w&&"".concat(A,"-input--").concat(w,"-status"),{["".concat(A,"-input--rtl")]:this.rtlEnabled,["".concat(A,"-input--disabled")]:this.mergedDisabled,["".concat(A,"-input--textarea")]:x==="textarea",["".concat(A,"-input--resizable")]:this.resizable&&!this.autosize,["".concat(A,"-input--autosize")]:this.autosize,["".concat(A,"-input--round")]:this.round&&x!=="textarea",["".concat(A,"-input--pair")]:this.pair,["".concat(A,"-input--focus")]:this.mergedFocus,["".concat(A,"-input--stateful")]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},h$1("div",{class:"".concat(A,"-input-wrapper")},resolveWrappedSlot(P.prefix,B=>B&&h$1("div",{class:"".concat(A,"-input__prefix")},B)),x==="textarea"?h$1(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:"".concat(A,"-input__textarea"),container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var B,k;const{textAreaScrollContainerWidth:$}=this,I={width:this.autosize&&$&&"".concat($,"px")};return h$1(Fragment,null,h$1("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:["".concat(A,"-input__textarea-el"),(B=this.inputProps)===null||B===void 0?void 0:B.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(k=this.inputProps)===null||k===void 0?void 0:k.style,I],onBlur:this.handleInputBlur,onFocus:D=>{this.handleInputFocus(D,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h$1("div",{class:"".concat(A,"-input__placeholder"),style:[this.placeholderStyle,I],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h$1(VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>h$1("div",{ref:"textareaMirrorElRef",class:"".concat(A,"-input__textarea-mirror"),key:"mirror"})}):null)}}):h$1("div",{class:"".concat(A,"-input__input")},h$1("input",Object.assign({type:x==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":x},this.inputProps,{ref:"inputElRef",class:["".concat(A,"-input__input-el"),(d=this.inputProps)===null||d===void 0?void 0:d.class],style:[this.textDecorationStyle[0],(b=this.inputProps)===null||b===void 0?void 0:b.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:B=>{this.handleInputFocus(B,0)},onInput:B=>{this.handleInput(B,0)},onChange:B=>{this.handleChange(B,0)}})),this.showPlaceholder1?h$1("div",{class:"".concat(A,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[0])):null,this.autosize?h$1("div",{class:"".concat(A,"-input__input-mirror"),key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&resolveWrappedSlot(P.suffix,B=>B||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h$1("div",{class:"".concat(A,"-input__suffix")},[resolveWrappedSlot(P["clear-icon-placeholder"],k=>(this.clearable||k)&&h$1(NBaseClear,{clsPrefix:A,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>k,icon:()=>{var $,I;return(I=($=this.$slots)["clear-icon"])===null||I===void 0?void 0:I.call($)}})),this.internalLoadingBeforeSuffix?null:B,this.loading!==void 0?h$1(NBaseSuffix,{clsPrefix:A,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?B:null,this.showCount&&this.type!=="textarea"?h$1(WordCount,null,{default:k=>{var $;return($=P.count)===null||$===void 0?void 0:$.call(P,k)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h$1("div",{class:"".concat(A,"-input__eye"),onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(P["password-visible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:A},{default:()=>h$1(EyeIcon,null)})]):resolveSlot(P["password-invisible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:A},{default:()=>h$1(EyeOffIcon,null)})])):null]):null)),this.pair?h$1("span",{class:"".concat(A,"-input__separator")},resolveSlot(P.separator,()=>[this.separator])):null,this.pair?h$1("div",{class:"".concat(A,"-input-wrapper")},h$1("div",{class:"".concat(A,"-input__input")},h$1("input",{ref:"inputEl2Ref",type:this.type,class:"".concat(A,"-input__input-el"),tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:S?void 0:this.maxlength,minlength:S?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:B=>{this.handleInputFocus(B,1)},onInput:B=>{this.handleInput(B,1)},onChange:B=>{this.handleChange(B,1)}}),this.showPlaceholder2?h$1("div",{class:"".concat(A,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(P.suffix,B=>(this.clearable||B)&&h$1("div",{class:"".concat(A,"-input__suffix")},[this.clearable&&h$1(NBaseClear,{clsPrefix:A,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var k;return(k=P["clear-icon"])===null||k===void 0?void 0:k.call(P)},placeholder:()=>{var k;return(k=P["clear-icon-placeholder"])===null||k===void 0?void 0:k.call(P)}}),B]))):null,this.mergedBordered?h$1("div",{class:"".concat(A,"-input__border")}):null,this.mergedBordered?h$1("div",{class:"".concat(A,"-input__state-border")}):null,this.showCount&&x==="textarea"?h$1(WordCount,null,{default:B=>{var k;const{renderCount:$}=this;return $?$(B):(k=P.count)===null||k===void 0?void 0:k.call(P,B)}}):null)}});function self$M(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}const autoCompleteDark={name:"AutoComplete",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self:self$M},autoCompleteDark$1=autoCompleteDark,self$L=d=>{const{borderRadius:b,avatarColor:A,cardColor:w,fontSize:C,heightTiny:x,heightSmall:S,heightMedium:E,heightLarge:P,heightHuge:B,modalColor:k,popoverColor:$}=d;return{borderRadius:b,fontSize:C,border:"2px solid ".concat(w),heightTiny:x,heightSmall:S,heightMedium:E,heightLarge:P,heightHuge:B,color:composite(w,A),colorModal:composite(k,A),colorPopover:composite($,A)}},avatarDark={name:"Avatar",common:commonDark,self:self$L},avatarDark$1=avatarDark,self$K=()=>({gap:"-12px"}),avatarGroupDark={name:"AvatarGroup",common:commonDark,peers:{Avatar:avatarDark$1},self:self$K},avatarGroupDark$1=avatarGroupDark,commonVariables$h={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},backTopDark={name:"BackTop",common:commonDark,self(d){const{popoverColor:b,textColor2:A,primaryColorHover:w,primaryColorPressed:C}=d;return Object.assign(Object.assign({},commonVariables$h),{color:b,textColor:A,iconColor:A,iconColorHover:w,iconColorPressed:C,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},backTopDark$1=backTopDark,badgeDark={name:"Badge",common:commonDark,self(d){const{errorColorSuppl:b,infoColorSuppl:A,successColorSuppl:w,warningColorSuppl:C,fontFamily:x}=d;return{color:b,colorInfo:A,colorSuccess:w,colorError:b,colorWarning:C,fontSize:"12px",fontFamily:x}}},badgeDark$1=badgeDark,commonVariables$g={fontWeightActive:"400"},self$J=d=>{const{fontSize:b,textColor3:A,textColor2:w,borderRadius:C,buttonColor2Hover:x,buttonColor2Pressed:S}=d;return Object.assign(Object.assign({},commonVariables$g),{fontSize:b,itemLineHeight:"1.25",itemTextColor:A,itemTextColorHover:w,itemTextColorPressed:w,itemTextColorActive:w,itemBorderRadius:C,itemColorHover:x,itemColorPressed:S,separatorColor:A})},breadcrumbDark={name:"Breadcrumb",common:commonDark,self:self$J},breadcrumbDark$1=breadcrumbDark;function createHoverColor(d){return composite(d,[255,255,255,.16])}function createPressedColor(d){return composite(d,[0,0,0,.12])}const buttonGroupInjectionKey="n-button-group",commonVariables$f={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},self$I=d=>{const{heightTiny:b,heightSmall:A,heightMedium:w,heightLarge:C,borderRadius:x,fontSizeTiny:S,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,opacityDisabled:k,textColor2:$,textColor3:I,primaryColorHover:D,primaryColorPressed:F,borderColor:z,primaryColor:L,baseColor:H,infoColor:Q,infoColorHover:Y,infoColorPressed:U,successColor:G,successColorHover:W,successColorPressed:K,warningColor:X,warningColorHover:Z,warningColorPressed:oe,errorColor:he,errorColorHover:J,errorColorPressed:le,fontWeight:de,buttonColor2:me,buttonColor2Hover:ne,buttonColor2Pressed:re,fontWeightStrong:fe}=d;return Object.assign(Object.assign({},commonVariables$f),{heightTiny:b,heightSmall:A,heightMedium:w,heightLarge:C,borderRadiusTiny:x,borderRadiusSmall:x,borderRadiusMedium:x,borderRadiusLarge:x,fontSizeTiny:S,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,opacityDisabled:k,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:me,colorSecondaryHover:ne,colorSecondaryPressed:re,colorTertiary:me,colorTertiaryHover:ne,colorTertiaryPressed:re,colorQuaternary:"#0000",colorQuaternaryHover:ne,colorQuaternaryPressed:re,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:$,textColorTertiary:I,textColorHover:D,textColorPressed:F,textColorFocus:D,textColorDisabled:$,textColorText:$,textColorTextHover:D,textColorTextPressed:F,textColorTextFocus:D,textColorTextDisabled:$,textColorGhost:$,textColorGhostHover:D,textColorGhostPressed:F,textColorGhostFocus:D,textColorGhostDisabled:$,border:"1px solid ".concat(z),borderHover:"1px solid ".concat(D),borderPressed:"1px solid ".concat(F),borderFocus:"1px solid ".concat(D),borderDisabled:"1px solid ".concat(z),rippleColor:L,colorPrimary:L,colorHoverPrimary:D,colorPressedPrimary:F,colorFocusPrimary:D,colorDisabledPrimary:L,textColorPrimary:H,textColorHoverPrimary:H,textColorPressedPrimary:H,textColorFocusPrimary:H,textColorDisabledPrimary:H,textColorTextPrimary:L,textColorTextHoverPrimary:D,textColorTextPressedPrimary:F,textColorTextFocusPrimary:D,textColorTextDisabledPrimary:$,textColorGhostPrimary:L,textColorGhostHoverPrimary:D,textColorGhostPressedPrimary:F,textColorGhostFocusPrimary:D,textColorGhostDisabledPrimary:L,borderPrimary:"1px solid ".concat(L),borderHoverPrimary:"1px solid ".concat(D),borderPressedPrimary:"1px solid ".concat(F),borderFocusPrimary:"1px solid ".concat(D),borderDisabledPrimary:"1px solid ".concat(L),rippleColorPrimary:L,colorInfo:Q,colorHoverInfo:Y,colorPressedInfo:U,colorFocusInfo:Y,colorDisabledInfo:Q,textColorInfo:H,textColorHoverInfo:H,textColorPressedInfo:H,textColorFocusInfo:H,textColorDisabledInfo:H,textColorTextInfo:Q,textColorTextHoverInfo:Y,textColorTextPressedInfo:U,textColorTextFocusInfo:Y,textColorTextDisabledInfo:$,textColorGhostInfo:Q,textColorGhostHoverInfo:Y,textColorGhostPressedInfo:U,textColorGhostFocusInfo:Y,textColorGhostDisabledInfo:Q,borderInfo:"1px solid ".concat(Q),borderHoverInfo:"1px solid ".concat(Y),borderPressedInfo:"1px solid ".concat(U),borderFocusInfo:"1px solid ".concat(Y),borderDisabledInfo:"1px solid ".concat(Q),rippleColorInfo:Q,colorSuccess:G,colorHoverSuccess:W,colorPressedSuccess:K,colorFocusSuccess:W,colorDisabledSuccess:G,textColorSuccess:H,textColorHoverSuccess:H,textColorPressedSuccess:H,textColorFocusSuccess:H,textColorDisabledSuccess:H,textColorTextSuccess:G,textColorTextHoverSuccess:W,textColorTextPressedSuccess:K,textColorTextFocusSuccess:W,textColorTextDisabledSuccess:$,textColorGhostSuccess:G,textColorGhostHoverSuccess:W,textColorGhostPressedSuccess:K,textColorGhostFocusSuccess:W,textColorGhostDisabledSuccess:G,borderSuccess:"1px solid ".concat(G),borderHoverSuccess:"1px solid ".concat(W),borderPressedSuccess:"1px solid ".concat(K),borderFocusSuccess:"1px solid ".concat(W),borderDisabledSuccess:"1px solid ".concat(G),rippleColorSuccess:G,colorWarning:X,colorHoverWarning:Z,colorPressedWarning:oe,colorFocusWarning:Z,colorDisabledWarning:X,textColorWarning:H,textColorHoverWarning:H,textColorPressedWarning:H,textColorFocusWarning:H,textColorDisabledWarning:H,textColorTextWarning:X,textColorTextHoverWarning:Z,textColorTextPressedWarning:oe,textColorTextFocusWarning:Z,textColorTextDisabledWarning:$,textColorGhostWarning:X,textColorGhostHoverWarning:Z,textColorGhostPressedWarning:oe,textColorGhostFocusWarning:Z,textColorGhostDisabledWarning:X,borderWarning:"1px solid ".concat(X),borderHoverWarning:"1px solid ".concat(Z),borderPressedWarning:"1px solid ".concat(oe),borderFocusWarning:"1px solid ".concat(Z),borderDisabledWarning:"1px solid ".concat(X),rippleColorWarning:X,colorError:he,colorHoverError:J,colorPressedError:le,colorFocusError:J,colorDisabledError:he,textColorError:H,textColorHoverError:H,textColorPressedError:H,textColorFocusError:H,textColorDisabledError:H,textColorTextError:he,textColorTextHoverError:J,textColorTextPressedError:le,textColorTextFocusError:J,textColorTextDisabledError:$,textColorGhostError:he,textColorGhostHoverError:J,textColorGhostPressedError:le,textColorGhostFocusError:J,textColorGhostDisabledError:he,borderError:"1px solid ".concat(he),borderHoverError:"1px solid ".concat(J),borderPressedError:"1px solid ".concat(le),borderFocusError:"1px solid ".concat(J),borderDisabledError:"1px solid ".concat(he),rippleColorError:he,waveOpacity:"0.6",fontWeight:de,fontWeightStrong:fe})},buttonLight={name:"Button",common:commonLight,self:self$I},buttonLight$1=buttonLight,buttonDark={name:"Button",common:commonDark,self(d){const b=self$I(d);return b.waveOpacity="0.8",b.colorOpacitySecondary="0.16",b.colorOpacitySecondaryHover="0.2",b.colorOpacitySecondaryPressed="0.12",b}},buttonDark$1=buttonDark,style$e=c$3([cB("button","\n margin: 0;\n font-weight: var(--n-font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--n-padding);\n height: var(--n-height);\n font-size: var(--n-font-size);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n width: var(--n-width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n -webkit-user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[cM("color",[cE("border",{borderColor:"var(--n-border-color)"}),cM("disabled",[cE("border",{borderColor:"var(--n-border-color-disabled)"})]),cNotM("disabled",[c$3("&:focus",[cE("state-border",{borderColor:"var(--n-border-color-focus)"})]),c$3("&:hover",[cE("state-border",{borderColor:"var(--n-border-color-hover)"})]),c$3("&:active",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})]),cM("pressed",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),cM("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[cE("border",{border:"var(--n-border-disabled)"})]),cNotM("disabled",[c$3("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[cE("state-border",{border:"var(--n-border-focus)"})]),c$3("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[cE("state-border",{border:"var(--n-border-hover)"})]),c$3("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})]),cM("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})])]),cM("loading","cursor: wait;"),cB("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--n-ripple-duration);\n animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);\n ",[cM("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),isBrowser$2&&"MozBoxSizing"in document.createElement("div").style?c$3("&::moz-focus-inner",{border:0}):null,cE("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--n-bezier);\n pointer-events: none;\n "),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("icon","\n margin: var(--n-icon-margin);\n margin-left: 0;\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n max-width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n position: relative;\n flex-shrink: 0;\n ",[cB("icon-slot","\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[iconSwitchTransition({top:"50%",originalTransform:"translateY(-50%)"})]),fadeInWidthExpandTransition()]),cE("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n min-width: 0;\n ",[c$3("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block","\n display: flex;\n width: 100%;\n "),cM("dashed",[cE("border, state-border",{borderStyle:"dashed !important"})]),cM("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),c$3("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),c$3("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),buttonProps=Object.assign(Object.assign({},useTheme.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!isSafari}}),Button=defineComponent({name:"Button",props:buttonProps,setup(d){const b=ref(null),A=ref(null),w=ref(!1),C=useMemo(()=>!d.quaternary&&!d.tertiary&&!d.secondary&&!d.text&&(!d.color||d.ghost||d.dashed)&&d.bordered),x=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:S}=useFormItem({},{defaultSize:"medium",mergedSize:U=>{const{size:G}=d;if(G)return G;const{size:W}=x;if(W)return W;const{mergedSize:K}=U||{};return K?K.value:"medium"}}),E=computed(()=>d.focusable&&!d.disabled),P=U=>{var G;E.value||U.preventDefault(),!d.nativeFocusBehavior&&(U.preventDefault(),!d.disabled&&E.value&&((G=b.value)===null||G===void 0||G.focus({preventScroll:!0})))},B=U=>{var G;if(!d.disabled&&!d.loading){const{onClick:W}=d;W&&call$1(W,U),d.text||(G=A.value)===null||G===void 0||G.play()}},k=U=>{switch(U.key){case"Enter":if(!d.keyboard)return;w.value=!1}},$=U=>{switch(U.key){case"Enter":if(!d.keyboard||d.loading){U.preventDefault();return}w.value=!0}},I=()=>{w.value=!1},{inlineThemeDisabled:D,mergedClsPrefixRef:F,mergedRtlRef:z}=useConfig(d),L=useTheme("Button","-button",style$e,buttonLight$1,d,F),H=useRtl("Button",z,F),Q=computed(()=>{const U=L.value,{common:{cubicBezierEaseInOut:G,cubicBezierEaseOut:W},self:K}=U,{rippleDuration:X,opacityDisabled:Z,fontWeight:oe,fontWeightStrong:he}=K,J=S.value,{dashed:le,type:de,ghost:me,text:ne,color:re,round:fe,circle:ce,textColor:we,secondary:Fe,tertiary:Ke,quaternary:tt,strong:ut}=d,dt={"font-weight":ut?he:oe};let it={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const $e=de==="tertiary",ke=de==="default",Oe=$e?"default":de;if(ne){const Ce=we||re;it={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":Ce||K[createKey("textColorText",Oe)],"--n-text-color-hover":Ce?createHoverColor(Ce):K[createKey("textColorTextHover",Oe)],"--n-text-color-pressed":Ce?createPressedColor(Ce):K[createKey("textColorTextPressed",Oe)],"--n-text-color-focus":Ce?createHoverColor(Ce):K[createKey("textColorTextHover",Oe)],"--n-text-color-disabled":Ce||K[createKey("textColorTextDisabled",Oe)]}}else if(me||le){const Ce=we||re;it={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":re||K[createKey("rippleColor",Oe)],"--n-text-color":Ce||K[createKey("textColorGhost",Oe)],"--n-text-color-hover":Ce?createHoverColor(Ce):K[createKey("textColorGhostHover",Oe)],"--n-text-color-pressed":Ce?createPressedColor(Ce):K[createKey("textColorGhostPressed",Oe)],"--n-text-color-focus":Ce?createHoverColor(Ce):K[createKey("textColorGhostHover",Oe)],"--n-text-color-disabled":Ce||K[createKey("textColorGhostDisabled",Oe)]}}else if(Fe){const Ce=ke?K.textColor:$e?K.textColorTertiary:K[createKey("color",Oe)],ge=re||Ce,Ie=de!=="default"&&de!=="tertiary";it={"--n-color":Ie?changeColor(ge,{alpha:Number(K.colorOpacitySecondary)}):K.colorSecondary,"--n-color-hover":Ie?changeColor(ge,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-pressed":Ie?changeColor(ge,{alpha:Number(K.colorOpacitySecondaryPressed)}):K.colorSecondaryPressed,"--n-color-focus":Ie?changeColor(ge,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-disabled":K.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ge,"--n-text-color-hover":ge,"--n-text-color-pressed":ge,"--n-text-color-focus":ge,"--n-text-color-disabled":ge}}else if(Ke||tt){const Ce=ke?K.textColor:$e?K.textColorTertiary:K[createKey("color",Oe)],ge=re||Ce;Ke?(it["--n-color"]=K.colorTertiary,it["--n-color-hover"]=K.colorTertiaryHover,it["--n-color-pressed"]=K.colorTertiaryPressed,it["--n-color-focus"]=K.colorSecondaryHover,it["--n-color-disabled"]=K.colorTertiary):(it["--n-color"]=K.colorQuaternary,it["--n-color-hover"]=K.colorQuaternaryHover,it["--n-color-pressed"]=K.colorQuaternaryPressed,it["--n-color-focus"]=K.colorQuaternaryHover,it["--n-color-disabled"]=K.colorQuaternary),it["--n-ripple-color"]="#0000",it["--n-text-color"]=ge,it["--n-text-color-hover"]=ge,it["--n-text-color-pressed"]=ge,it["--n-text-color-focus"]=ge,it["--n-text-color-disabled"]=ge}else it={"--n-color":re||K[createKey("color",Oe)],"--n-color-hover":re?createHoverColor(re):K[createKey("colorHover",Oe)],"--n-color-pressed":re?createPressedColor(re):K[createKey("colorPressed",Oe)],"--n-color-focus":re?createHoverColor(re):K[createKey("colorFocus",Oe)],"--n-color-disabled":re||K[createKey("colorDisabled",Oe)],"--n-ripple-color":re||K[createKey("rippleColor",Oe)],"--n-text-color":we||(re?K.textColorPrimary:$e?K.textColorTertiary:K[createKey("textColor",Oe)]),"--n-text-color-hover":we||(re?K.textColorHoverPrimary:K[createKey("textColorHover",Oe)]),"--n-text-color-pressed":we||(re?K.textColorPressedPrimary:K[createKey("textColorPressed",Oe)]),"--n-text-color-focus":we||(re?K.textColorFocusPrimary:K[createKey("textColorFocus",Oe)]),"--n-text-color-disabled":we||(re?K.textColorDisabledPrimary:K[createKey("textColorDisabled",Oe)])};let Qe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ne?Qe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Qe={"--n-border":K[createKey("border",Oe)],"--n-border-hover":K[createKey("borderHover",Oe)],"--n-border-pressed":K[createKey("borderPressed",Oe)],"--n-border-focus":K[createKey("borderFocus",Oe)],"--n-border-disabled":K[createKey("borderDisabled",Oe)]};const{[createKey("height",J)]:Je,[createKey("fontSize",J)]:ve,[createKey("padding",J)]:ye,[createKey("paddingRound",J)]:Te,[createKey("iconSize",J)]:ee,[createKey("borderRadius",J)]:se,[createKey("iconMargin",J)]:ie,waveOpacity:be}=K,Ee={"--n-width":ce&&!ne?Je:"initial","--n-height":ne?"initial":Je,"--n-font-size":ve,"--n-padding":ce||ne?"initial":fe?Te:ye,"--n-icon-size":ee,"--n-icon-margin":ie,"--n-border-radius":ne?"initial":ce||fe?Je:se};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":G,"--n-bezier-ease-out":W,"--n-ripple-duration":X,"--n-opacity-disabled":Z,"--n-wave-opacity":be},dt),it),Qe),Ee)}),Y=D?useThemeClass("button",computed(()=>{let U="";const{dashed:G,type:W,ghost:K,text:X,color:Z,round:oe,circle:he,textColor:J,secondary:le,tertiary:de,quaternary:me,strong:ne}=d;G&&(U+="a"),K&&(U+="b"),X&&(U+="c"),oe&&(U+="d"),he&&(U+="e"),le&&(U+="f"),de&&(U+="g"),me&&(U+="h"),ne&&(U+="i"),Z&&(U+="j"+color2Class(Z)),J&&(U+="k"+color2Class(J));const{value:re}=S;return U+="l"+re[0],U+="m"+W[0],U}),Q,d):void 0;return{selfElRef:b,waveElRef:A,mergedClsPrefix:F,mergedFocusable:E,mergedSize:S,showBorder:C,enterPressed:w,rtlEnabled:H,handleMousedown:P,handleKeydown:$,handleBlur:I,handleKeyup:k,handleClick:B,customColorCssVars:computed(()=>{const{color:U}=d;if(!U)return null;const G=createHoverColor(U);return{"--n-border-color":U,"--n-border-color-hover":G,"--n-border-color-pressed":createPressedColor(U),"--n-border-color-focus":G,"--n-border-color-disabled":U}}),cssVars:D?void 0:Q,themeClass:Y==null?void 0:Y.themeClass,onRender:Y==null?void 0:Y.onRender}},render(){const{mergedClsPrefix:d,tag:b,onRender:A}=this;A==null||A();const w=resolveWrappedSlot(this.$slots.default,C=>C&&h$1("span",{class:"".concat(d,"-button__content")},C));return h$1(b,{ref:"selfElRef",class:[this.themeClass,"".concat(d,"-button"),"".concat(d,"-button--").concat(this.type,"-type"),"".concat(d,"-button--").concat(this.mergedSize,"-type"),this.rtlEnabled&&"".concat(d,"-button--rtl"),this.disabled&&"".concat(d,"-button--disabled"),this.block&&"".concat(d,"-button--block"),this.enterPressed&&"".concat(d,"-button--pressed"),!this.text&&this.dashed&&"".concat(d,"-button--dashed"),this.color&&"".concat(d,"-button--color"),this.secondary&&"".concat(d,"-button--secondary"),this.loading&&"".concat(d,"-button--loading"),this.ghost&&"".concat(d,"-button--ghost")],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&w,h$1(NFadeInExpandTransition,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,C=>(this.loading||this.renderIcon||C)&&h$1("span",{class:"".concat(d,"-button__icon"),style:{margin:isSlotEmpty(this.$slots.default)?"0":""}},h$1(NIconSwitchTransition,null,{default:()=>this.loading?h$1(NBaseLoading,{clsPrefix:d,key:"loading",class:"".concat(d,"-icon-slot"),strokeWidth:20}):h$1("div",{key:"icon",class:"".concat(d,"-icon-slot"),role:"none"},this.renderIcon?this.renderIcon():C)})))}),this.iconPlacement==="left"&&w,this.text?null:h$1(NBaseWave,{ref:"waveElRef",clsPrefix:d}),this.showBorder?h$1("div",{"aria-hidden":!0,class:"".concat(d,"-button__border"),style:this.customColorCssVars}):null,this.showBorder?h$1("div",{"aria-hidden":!0,class:"".concat(d,"-button__state-border"),style:this.customColorCssVars}):null)}}),NButton=Button,XButton=Button,commonVariables$e={titleFontSize:"22px"},self$H=d=>{const{borderRadius:b,fontSize:A,lineHeight:w,textColor2:C,textColor1:x,textColorDisabled:S,dividerColor:E,fontWeightStrong:P,primaryColor:B,baseColor:k,hoverColor:$,cardColor:I,modalColor:D,popoverColor:F}=d;return Object.assign(Object.assign({},commonVariables$e),{borderRadius:b,borderColor:composite(I,E),borderColorModal:composite(D,E),borderColorPopover:composite(F,E),textColor:C,titleFontWeight:P,titleTextColor:x,dayTextColor:S,fontSize:A,lineHeight:w,dateColorCurrent:B,dateTextColorCurrent:k,cellColorHover:composite(I,$),cellColorHoverModal:composite(D,$),cellColorHoverPopover:composite(F,$),cellColor:I,cellColorModal:D,cellColorPopover:F,barColor:B})},calendarDark={name:"Calendar",common:commonDark,peers:{Button:buttonDark$1},self:self$H},calendarDark$1=calendarDark,self$G=d=>{const{fontSize:b,boxShadow2:A,popoverColor:w,textColor2:C,borderRadius:x,borderColor:S,heightSmall:E,heightMedium:P,heightLarge:B,fontSizeSmall:k,fontSizeMedium:$,fontSizeLarge:I,dividerColor:D}=d;return{panelFontSize:b,boxShadow:A,color:w,textColor:C,borderRadius:x,border:"1px solid ".concat(S),heightSmall:E,heightMedium:P,heightLarge:B,fontSizeSmall:k,fontSizeMedium:$,fontSizeLarge:I,dividerColor:D}},colorPickerDark={name:"ColorPicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self:self$G},colorPickerDark$1=colorPickerDark,commonVariables$d={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},self$F=d=>{const{primaryColor:b,borderRadius:A,lineHeight:w,fontSize:C,cardColor:x,textColor2:S,textColor1:E,dividerColor:P,fontWeightStrong:B,closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,closeColorHover:D,closeColorPressed:F,modalColor:z,boxShadow1:L,popoverColor:H,actionColor:Q}=d;return Object.assign(Object.assign({},commonVariables$d),{lineHeight:w,color:x,colorModal:z,colorPopover:H,colorTarget:b,colorEmbedded:Q,colorEmbeddedModal:Q,colorEmbeddedPopover:Q,textColor:S,titleTextColor:E,borderColor:P,actionColor:Q,titleFontWeight:B,closeColorHover:D,closeColorPressed:F,closeBorderRadius:A,closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,fontSizeSmall:C,fontSizeMedium:C,fontSizeLarge:C,fontSizeHuge:C,boxShadow:L,borderRadius:A})},cardLight={name:"Card",common:commonLight,self:self$F},cardLight$1=cardLight,cardDark={name:"Card",common:commonDark,self(d){const b=self$F(d),{cardColor:A,modalColor:w,popoverColor:C}=d;return b.colorEmbedded=A,b.colorEmbeddedModal=w,b.colorEmbeddedPopover=C,b}},cardDark$1=cardDark,style$d=c$3([cB("card","\n font-size: var(--n-font-size);\n line-height: var(--n-line-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n position: relative;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n color: var(--n-text-color);\n word-break: break-word;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[asModal({background:"var(--n-color-modal)"}),cM("hoverable",[c$3("&:hover","box-shadow: var(--n-box-shadow);")]),cM("content-segmented",[c$3(">",[cE("content",{paddingTop:"var(--n-padding-bottom)"})])]),cM("content-soft-segmented",[c$3(">",[cE("content","\n margin: 0 var(--n-padding-left);\n padding: var(--n-padding-bottom) 0;\n ")])]),cM("footer-segmented",[c$3(">",[cE("footer",{paddingTop:"var(--n-padding-bottom)"})])]),cM("footer-soft-segmented",[c$3(">",[cE("footer","\n padding: var(--n-padding-bottom) 0;\n margin: 0 var(--n-padding-left);\n ")])]),c$3(">",[cB("card-header","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n padding:\n var(--n-padding-top)\n var(--n-padding-left)\n var(--n-padding-bottom)\n var(--n-padding-left);\n ",[cE("main","\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n flex: 1;\n min-width: 0;\n color: var(--n-title-text-color);\n "),cE("extra","\n display: flex;\n align-items: center;\n font-size: var(--n-font-size);\n font-weight: 400;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),cE("close","\n margin: 0 0 0 8px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),cE("action","\n box-sizing: border-box;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n background-clip: padding-box;\n background-color: var(--n-action-color);\n "),cE("content","flex: 1; min-width: 0;"),cE("content, footer","\n box-sizing: border-box;\n padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);\n font-size: var(--n-font-size);\n ",[c$3("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),cE("action","\n background-color: var(--n-action-color);\n padding: var(--n-padding-bottom) var(--n-padding-left);\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ")]),cB("card-cover","\n overflow: hidden;\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n ",[c$3("img","\n display: block;\n width: 100%;\n ")]),cM("bordered","\n border: 1px solid var(--n-border-color);\n ",[c$3("&:target","border-color: var(--n-color-target);")]),cM("action-segmented",[c$3(">",[cE("action",[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("content-segmented, content-soft-segmented",[c$3(">",[cE("content",{transition:"border-color 0.3s var(--n-bezier)"},[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("footer-segmented, footer-soft-segmented",[c$3(">",[cE("footer",{transition:"border-color 0.3s var(--n-bezier)"},[c$3("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("embedded","\n background-color: var(--n-color-embedded);\n ")]),insideModal(cB("card","\n background: var(--n-color-modal);\n ",[cM("embedded","\n background-color: var(--n-color-embedded-modal);\n ")])),insidePopover(cB("card","\n background: var(--n-color-popover);\n ",[cM("embedded","\n background-color: var(--n-color-embedded-popover);\n ")]))]),cardBaseProps={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},cardBasePropKeys=keysOf(cardBaseProps),cardProps=Object.assign(Object.assign({},useTheme.props),cardBaseProps),NCard=defineComponent({name:"Card",props:cardProps,setup(d){const b=()=>{const{onClose:B}=d;B&&call$1(B)},{inlineThemeDisabled:A,mergedClsPrefixRef:w,mergedRtlRef:C}=useConfig(d),x=useTheme("Card","-card",style$d,cardLight$1,d,w),S=useRtl("Card",C,w),E=computed(()=>{const{size:B}=d,{self:{color:k,colorModal:$,colorTarget:I,textColor:D,titleTextColor:F,titleFontWeight:z,borderColor:L,actionColor:H,borderRadius:Q,lineHeight:Y,closeIconColor:U,closeIconColorHover:G,closeIconColorPressed:W,closeColorHover:K,closeColorPressed:X,closeBorderRadius:Z,closeIconSize:oe,closeSize:he,boxShadow:J,colorPopover:le,colorEmbedded:de,colorEmbeddedModal:me,colorEmbeddedPopover:ne,[createKey("padding",B)]:re,[createKey("fontSize",B)]:fe,[createKey("titleFontSize",B)]:ce},common:{cubicBezierEaseInOut:we}}=x.value,{top:Fe,left:Ke,bottom:tt}=getMargin(re);return{"--n-bezier":we,"--n-border-radius":Q,"--n-color":k,"--n-color-modal":$,"--n-color-popover":le,"--n-color-embedded":de,"--n-color-embedded-modal":me,"--n-color-embedded-popover":ne,"--n-color-target":I,"--n-text-color":D,"--n-line-height":Y,"--n-action-color":H,"--n-title-text-color":F,"--n-title-font-weight":z,"--n-close-icon-color":U,"--n-close-icon-color-hover":G,"--n-close-icon-color-pressed":W,"--n-close-color-hover":K,"--n-close-color-pressed":X,"--n-border-color":L,"--n-box-shadow":J,"--n-padding-top":Fe,"--n-padding-bottom":tt,"--n-padding-left":Ke,"--n-font-size":fe,"--n-title-font-size":ce,"--n-close-size":he,"--n-close-icon-size":oe,"--n-close-border-radius":Z}}),P=A?useThemeClass("card",computed(()=>d.size[0]),E,d):void 0;return{rtlEnabled:S,mergedClsPrefix:w,mergedTheme:x,handleCloseClick:b,cssVars:A?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){const{segmented:d,bordered:b,hoverable:A,mergedClsPrefix:w,rtlEnabled:C,onRender:x,embedded:S,tag:E,$slots:P}=this;return x==null||x(),h$1(E,{class:["".concat(w,"-card"),this.themeClass,S&&"".concat(w,"-card--embedded"),{["".concat(w,"-card--rtl")]:C,["".concat(w,"-card--content").concat(typeof d!="boolean"&&d.content==="soft"?"-soft":"","-segmented")]:d===!0||d!==!1&&d.content,["".concat(w,"-card--footer").concat(typeof d!="boolean"&&d.footer==="soft"?"-soft":"","-segmented")]:d===!0||d!==!1&&d.footer,["".concat(w,"-card--action-segmented")]:d===!0||d!==!1&&d.action,["".concat(w,"-card--bordered")]:b,["".concat(w,"-card--hoverable")]:A}],style:this.cssVars,role:this.role},resolveWrappedSlot(P.cover,B=>B&&h$1("div",{class:"".concat(w,"-card-cover"),role:"none"},B)),resolveWrappedSlot(P.header,B=>B||this.title||this.closable?h$1("div",{class:"".concat(w,"-card-header"),style:this.headerStyle},h$1("div",{class:"".concat(w,"-card-header__main"),role:"heading"},B||this.title),resolveWrappedSlot(P["header-extra"],k=>k&&h$1("div",{class:"".concat(w,"-card-header__extra"),style:this.headerExtraStyle},k)),this.closable?h$1(NBaseClose,{clsPrefix:w,class:"".concat(w,"-card-header__close"),onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(P.default,B=>B&&h$1("div",{class:"".concat(w,"-card__content"),style:this.contentStyle,role:"none"},B)),resolveWrappedSlot(P.footer,B=>B&&[h$1("div",{class:"".concat(w,"-card__footer"),style:this.footerStyle,role:"none"},B)]),resolveWrappedSlot(P.action,B=>B&&h$1("div",{class:"".concat(w,"-card__action"),role:"none"},B)))}}),self$E=d=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),carouselDark={name:"Carousel",common:commonDark,self:self$E},carouselDark$1=carouselDark,commonVariables$c={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},self$D=d=>{const{baseColor:b,inputColorDisabled:A,cardColor:w,modalColor:C,popoverColor:x,textColorDisabled:S,borderColor:E,primaryColor:P,textColor2:B,fontSizeSmall:k,fontSizeMedium:$,fontSizeLarge:I,borderRadiusSmall:D,lineHeight:F}=d;return Object.assign(Object.assign({},commonVariables$c),{labelLineHeight:F,fontSizeSmall:k,fontSizeMedium:$,fontSizeLarge:I,borderRadius:D,color:b,colorChecked:P,colorDisabled:A,colorDisabledChecked:A,colorTableHeader:w,colorTableHeaderModal:C,colorTableHeaderPopover:x,checkMarkColor:b,checkMarkColorDisabled:S,checkMarkColorDisabledChecked:S,border:"1px solid ".concat(E),borderDisabled:"1px solid ".concat(E),borderDisabledChecked:"1px solid ".concat(E),borderChecked:"1px solid ".concat(P),borderFocus:"1px solid ".concat(P),boxShadowFocus:"0 0 0 2px ".concat(changeColor(P,{alpha:.3})),textColor:B,textColorDisabled:S})},checkboxDark={name:"Checkbox",common:commonDark,self(d){const{cardColor:b}=d,A=self$D(d);return A.color="#0000",A.checkMarkColor=b,A}},checkboxDark$1=checkboxDark,self$C=d=>{const{borderRadius:b,boxShadow2:A,popoverColor:w,textColor2:C,textColor3:x,primaryColor:S,textColorDisabled:E,dividerColor:P,hoverColor:B,fontSizeMedium:k,heightMedium:$}=d;return{menuBorderRadius:b,menuColor:w,menuBoxShadow:A,menuDividerColor:P,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:x,optionHeight:$,optionFontSize:k,optionColorHover:B,optionTextColor:C,optionTextColorActive:S,optionTextColorDisabled:E,optionCheckMarkColor:S,loadingColor:S,columnWidth:"180px"}},cascaderDark={name:"Cascader",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,InternalSelection:internalSelectionDark$1,Scrollbar:scrollbarDark$1,Checkbox:checkboxDark$1,Empty:emptyLight$1},self:self$C},cascaderDark$1=cascaderDark,codeDark={name:"Code",common:commonDark,self(d){const{textColor2:b,fontSize:A,fontWeightStrong:w,textColor3:C}=d;return{textColor:b,fontSize:A,fontWeightStrong:w,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:C}}},codeDark$1=codeDark,self$B=d=>{const{fontWeight:b,textColor1:A,textColor2:w,textColorDisabled:C,dividerColor:x,fontSize:S}=d;return{titleFontSize:S,titleFontWeight:b,dividerColor:x,titleTextColor:A,titleTextColorDisabled:C,fontSize:S,textColor:w,arrowColor:w,arrowColorDisabled:C,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},collapseDark={name:"Collapse",common:commonDark,self:self$B},collapseDark$1=collapseDark,self$A=d=>{const{cubicBezierEaseInOut:b}=d;return{bezier:b}},collapseTransitionDark={name:"CollapseTransition",common:commonDark,self:self$A},collapseTransitionDark$1=collapseTransitionDark,configProviderProps={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(warn$3("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},NConfigProvider=defineComponent({name:"ConfigProvider",alias:["App"],props:configProviderProps,setup(d){const b=inject(configProviderInjectionKey,null),A=computed(()=>{const{theme:F}=d;if(F===null)return;const z=b==null?void 0:b.mergedThemeRef.value;return F===void 0?z:z===void 0?F:Object.assign({},z,F)}),w=computed(()=>{const{themeOverrides:F}=d;if(F!==null){if(F===void 0)return b==null?void 0:b.mergedThemeOverridesRef.value;{const z=b==null?void 0:b.mergedThemeOverridesRef.value;return z===void 0?F:merge$2({},z,F)}}}),C=useMemo(()=>{const{namespace:F}=d;return F===void 0?b==null?void 0:b.mergedNamespaceRef.value:F}),x=useMemo(()=>{const{bordered:F}=d;return F===void 0?b==null?void 0:b.mergedBorderedRef.value:F}),S=computed(()=>{const{icons:F}=d;return F===void 0?b==null?void 0:b.mergedIconsRef.value:F}),E=computed(()=>{const{componentOptions:F}=d;return F!==void 0?F:b==null?void 0:b.mergedComponentPropsRef.value}),P=computed(()=>{const{clsPrefix:F}=d;return F!==void 0?F:b==null?void 0:b.mergedClsPrefixRef.value}),B=computed(()=>{var F;const{rtl:z}=d;if(z===void 0)return b==null?void 0:b.mergedRtlRef.value;const L={};for(const H of z)L[H.name]=markRaw(H),(F=H.peers)===null||F===void 0||F.forEach(Q=>{Q.name in L||(L[Q.name]=markRaw(Q))});return L}),k=computed(()=>d.breakpoints||(b==null?void 0:b.mergedBreakpointsRef.value)),$=d.inlineThemeDisabled||(b==null?void 0:b.inlineThemeDisabled),I=d.preflightStyleDisabled||(b==null?void 0:b.preflightStyleDisabled),D=computed(()=>{const{value:F}=A,{value:z}=w,L=z&&Object.keys(z).length!==0,H=F==null?void 0:F.name;return H?L?"".concat(H,"-").concat(murmur2(JSON.stringify(w.value))):H:L?murmur2(JSON.stringify(w.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:D,mergedBreakpointsRef:k,mergedRtlRef:B,mergedIconsRef:S,mergedComponentPropsRef:E,mergedBorderedRef:x,mergedNamespaceRef:C,mergedClsPrefixRef:P,mergedLocaleRef:computed(()=>{const{locale:F}=d;if(F!==null)return F===void 0?b==null?void 0:b.mergedLocaleRef.value:F}),mergedDateLocaleRef:computed(()=>{const{dateLocale:F}=d;if(F!==null)return F===void 0?b==null?void 0:b.mergedDateLocaleRef.value:F}),mergedHljsRef:computed(()=>{const{hljs:F}=d;return F===void 0?b==null?void 0:b.mergedHljsRef.value:F}),mergedKatexRef:computed(()=>{const{katex:F}=d;return F===void 0?b==null?void 0:b.mergedKatexRef.value:F}),mergedThemeRef:A,mergedThemeOverridesRef:w,inlineThemeDisabled:$||!1,preflightStyleDisabled:I||!1}),{mergedClsPrefix:P,mergedBordered:x,mergedNamespace:C,mergedTheme:A,mergedThemeOverrides:w}},render(){var d,b,A,w;return this.abstract?(w=(A=this.$slots).default)===null||w===void 0?void 0:w.call(A):h$1(this.as||this.tag,{class:"".concat(this.mergedClsPrefix||defaultClsPrefix,"-config-provider")},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d))}}),popselect={name:"Popselect",common:commonDark,peers:{Popover:popoverDark$1,InternalSelectMenu:internalSelectMenuDark$1}},popselectDark=popselect;function self$z(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}const selectLight={name:"Select",common:commonLight,peers:{InternalSelection:internalSelectionLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$z},selectLight$1=selectLight,selectDark={name:"Select",common:commonDark,peers:{InternalSelection:internalSelectionDark$1,InternalSelectMenu:internalSelectMenuDark$1},self:self$z},selectDark$1=selectDark,style$c=c$3([cB("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n "),cB("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[fadeInScaleUpTransition({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),selectProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),NSelect=defineComponent({name:"Select",props:selectProps,setup(d){const{mergedClsPrefixRef:b,mergedBorderedRef:A,namespaceRef:w,inlineThemeDisabled:C}=useConfig(d),x=useTheme("Select","-select",style$c,selectLight$1,d,b),S=ref(d.defaultValue),E=toRef$1(d,"value"),P=useMergedState(E,S),B=ref(!1),k=ref(""),$=computed(()=>{const{valueField:Ae,childrenField:Re}=d,qe=createTmOptions(Ae,Re);return createTreeMate(J.value,qe)}),I=computed(()=>createValOptMap(oe.value,d.valueField,d.childrenField)),D=ref(!1),F=useMergedState(toRef$1(d,"show"),D),z=ref(null),L=ref(null),H=ref(null),{localeRef:Q}=useLocale("Select"),Y=computed(()=>{var Ae;return(Ae=d.placeholder)!==null&&Ae!==void 0?Ae:Q.value.placeholder}),U=useCompitable(d,["items","options"]),G=[],W=ref([]),K=ref([]),X=ref(new Map),Z=computed(()=>{const{fallbackOption:Ae}=d;if(Ae===void 0){const{labelField:Re,valueField:qe}=d;return ft=>({[Re]:String(ft),[qe]:ft})}return Ae===!1?!1:Re=>Object.assign(Ae(Re),{value:Re})}),oe=computed(()=>K.value.concat(W.value).concat(U.value)),he=computed(()=>{const{filter:Ae}=d;if(Ae)return Ae;const{labelField:Re,valueField:qe}=d;return(ft,vt)=>{if(!vt)return!1;const bt=vt[Re];if(typeof bt=="string")return patternMatched(ft,bt);const xe=vt[qe];return typeof xe=="string"?patternMatched(ft,xe):typeof xe=="number"?patternMatched(ft,String(xe)):!1}}),J=computed(()=>{if(d.remote)return U.value;{const{value:Ae}=oe,{value:Re}=k;return!Re.length||!d.filterable?Ae:filterOptions(Ae,he.value,Re,d.childrenField)}});function le(Ae){const Re=d.remote,{value:qe}=X,{value:ft}=I,{value:vt}=Z,bt=[];return Ae.forEach(xe=>{if(ft.has(xe))bt.push(ft.get(xe));else if(Re&&qe.has(xe))bt.push(qe.get(xe));else if(vt){const Ne=vt(xe);Ne&&bt.push(Ne)}}),bt}const de=computed(()=>{if(d.multiple){const{value:Ae}=P;return Array.isArray(Ae)?le(Ae):[]}return null}),me=computed(()=>{const{value:Ae}=P;return!d.multiple&&!Array.isArray(Ae)?Ae===null?null:le([Ae])[0]||null:null}),ne=useFormItem(d),{mergedSizeRef:re,mergedDisabledRef:fe,mergedStatusRef:ce}=ne;function we(Ae,Re){const{onChange:qe,"onUpdate:value":ft,onUpdateValue:vt}=d,{nTriggerFormChange:bt,nTriggerFormInput:xe}=ne;qe&&call$1(qe,Ae,Re),vt&&call$1(vt,Ae,Re),ft&&call$1(ft,Ae,Re),S.value=Ae,bt(),xe()}function Fe(Ae){const{onBlur:Re}=d,{nTriggerFormBlur:qe}=ne;Re&&call$1(Re,Ae),qe()}function Ke(){const{onClear:Ae}=d;Ae&&call$1(Ae)}function tt(Ae){const{onFocus:Re,showOnFocus:qe}=d,{nTriggerFormFocus:ft}=ne;Re&&call$1(Re,Ae),ft(),qe&&ke()}function ut(Ae){const{onSearch:Re}=d;Re&&call$1(Re,Ae)}function dt(Ae){const{onScroll:Re}=d;Re&&call$1(Re,Ae)}function it(){var Ae;const{remote:Re,multiple:qe}=d;if(Re){const{value:ft}=X;if(qe){const{valueField:vt}=d;(Ae=de.value)===null||Ae===void 0||Ae.forEach(bt=>{ft.set(bt[vt],bt)})}else{const vt=me.value;vt&&ft.set(vt[d.valueField],vt)}}}function $e(Ae){const{onUpdateShow:Re,"onUpdate:show":qe}=d;Re&&call$1(Re,Ae),qe&&call$1(qe,Ae),D.value=Ae}function ke(){fe.value||($e(!0),D.value=!0,d.filterable&&mt())}function Oe(){$e(!1)}function Qe(){k.value="",K.value=G}const Je=ref(!1);function ve(){d.filterable&&(Je.value=!0)}function ye(){d.filterable&&(Je.value=!1,F.value||Qe())}function Te(){fe.value||(F.value?d.filterable?mt():Oe():ke())}function ee(Ae){var Re,qe;!((qe=(Re=H.value)===null||Re===void 0?void 0:Re.selfRef)===null||qe===void 0)&&qe.contains(Ae.relatedTarget)||(B.value=!1,Fe(Ae),Oe())}function se(Ae){tt(Ae),B.value=!0}function ie(Ae){B.value=!0}function be(Ae){var Re;!((Re=z.value)===null||Re===void 0)&&Re.$el.contains(Ae.relatedTarget)||(B.value=!1,Fe(Ae),Oe())}function Ee(){var Ae;(Ae=z.value)===null||Ae===void 0||Ae.focus(),Oe()}function Ce(Ae){var Re;F.value&&(!((Re=z.value)===null||Re===void 0)&&Re.$el.contains(getPreciseEventTarget(Ae))||Oe())}function ge(Ae){if(!Array.isArray(Ae))return[];if(Z.value)return Array.from(Ae);{const{remote:Re}=d,{value:qe}=I;if(Re){const{value:ft}=X;return Ae.filter(vt=>qe.has(vt)||ft.has(vt))}else return Ae.filter(ft=>qe.has(ft))}}function Ie(Ae){Le(Ae.rawNode)}function Le(Ae){if(fe.value)return;const{tag:Re,remote:qe,clearFilterAfterSelect:ft,valueField:vt}=d;if(Re&&!qe){const{value:bt}=K,xe=bt[0]||null;if(xe){const Ne=W.value;Ne.length?Ne.push(xe):W.value=[xe],K.value=G}}if(qe&&X.value.set(Ae[vt],Ae),d.multiple){const bt=ge(P.value),xe=bt.findIndex(Ne=>Ne===Ae[vt]);if(~xe){if(bt.splice(xe,1),Re&&!qe){const Ne=Ye(Ae[vt]);~Ne&&(W.value.splice(Ne,1),ft&&(k.value=""))}}else bt.push(Ae[vt]),ft&&(k.value="");we(bt,le(bt))}else{if(Re&&!qe){const bt=Ye(Ae[vt]);~bt?W.value=[W.value[bt]]:W.value=G}nt(),Oe(),we(Ae[vt],Ae)}}function Ye(Ae){return W.value.findIndex(qe=>qe[d.valueField]===Ae)}function rt(Ae){F.value||ke();const{value:Re}=Ae.target;k.value=Re;const{tag:qe,remote:ft}=d;if(ut(Re),qe&&!ft){if(!Re){K.value=G;return}const{onCreate:vt}=d,bt=vt?vt(Re):{[d.labelField]:Re,[d.valueField]:Re},{valueField:xe}=d;U.value.some(Ne=>Ne[xe]===bt[xe])||W.value.some(Ne=>Ne[xe]===bt[xe])?K.value=G:K.value=[bt]}}function lt(Ae){Ae.stopPropagation();const{multiple:Re}=d;!Re&&d.filterable&&Oe(),Ke(),Re?we([],[]):we(null,null)}function pt(Ae){!happensIn(Ae,"action")&&!happensIn(Ae,"empty")&&Ae.preventDefault()}function He(Ae){dt(Ae)}function at(Ae){var Re,qe,ft,vt,bt;if(!d.keyboard){Ae.preventDefault();return}switch(Ae.key){case" ":if(d.filterable)break;Ae.preventDefault();case"Enter":if(!(!((Re=z.value)===null||Re===void 0)&&Re.isComposing)){if(F.value){const xe=(qe=H.value)===null||qe===void 0?void 0:qe.getPendingTmNode();xe?Ie(xe):d.filterable||(Oe(),nt())}else if(ke(),d.tag&&Je.value){const xe=K.value[0];if(xe){const Ne=xe[d.valueField],{value:ze}=P;d.multiple&&Array.isArray(ze)&&ze.some(Ve=>Ve===Ne)||Le(xe)}}}Ae.preventDefault();break;case"ArrowUp":if(Ae.preventDefault(),d.loading)return;F.value&&((ft=H.value)===null||ft===void 0||ft.prev());break;case"ArrowDown":if(Ae.preventDefault(),d.loading)return;F.value?(vt=H.value)===null||vt===void 0||vt.next():ke();break;case"Escape":F.value&&(markEventEffectPerformed(Ae),Oe()),(bt=z.value)===null||bt===void 0||bt.focus();break}}function nt(){var Ae;(Ae=z.value)===null||Ae===void 0||Ae.focus()}function mt(){var Ae;(Ae=z.value)===null||Ae===void 0||Ae.focusInput()}function Tt(){var Ae;F.value&&((Ae=L.value)===null||Ae===void 0||Ae.syncPosition())}it(),watch(toRef$1(d,"options"),it);const Dt={focus:()=>{var Ae;(Ae=z.value)===null||Ae===void 0||Ae.focus()},blur:()=>{var Ae;(Ae=z.value)===null||Ae===void 0||Ae.blur()}},yt=computed(()=>{const{self:{menuBoxShadow:Ae}}=x.value;return{"--n-menu-box-shadow":Ae}}),At=C?useThemeClass("select",void 0,yt,d):void 0;return Object.assign(Object.assign({},Dt),{mergedStatus:ce,mergedClsPrefix:b,mergedBordered:A,namespace:w,treeMate:$,isMounted:isMounted(),triggerRef:z,menuRef:H,pattern:k,uncontrolledShow:D,mergedShow:F,adjustedTo:useAdjustedTo(d),uncontrolledValue:S,mergedValue:P,followerRef:L,localizedPlaceholder:Y,selectedOption:me,selectedOptions:de,mergedSize:re,mergedDisabled:fe,focused:B,activeWithoutMenuOpen:Je,inlineThemeDisabled:C,onTriggerInputFocus:ve,onTriggerInputBlur:ye,handleTriggerOrMenuResize:Tt,handleMenuFocus:ie,handleMenuBlur:be,handleMenuTabOut:Ee,handleTriggerClick:Te,handleToggle:Ie,handleDeleteOption:Le,handlePatternInput:rt,handleClear:lt,handleTriggerBlur:ee,handleTriggerFocus:se,handleKeydown:at,handleMenuAfterLeave:Qe,handleMenuClickOutside:Ce,handleMenuScroll:He,handleMenuKeydown:at,handleMenuMousedown:pt,mergedTheme:x,cssVars:C?void 0:yt,themeClass:At==null?void 0:At.themeClass,onRender:At==null?void 0:At.onRender})},render(){return h$1("div",{class:"".concat(this.mergedClsPrefix,"-select")},h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1(NInternalSelection,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var d,b;return[(b=(d=this.$slots).arrow)===null||b===void 0?void 0:b.call(d)]}})}),h$1(VFollower,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var d,b,A;return this.mergedShow||this.displayDirective==="show"?((d=this.onRender)===null||d===void 0||d.call(this),withDirectives(h$1(NInternalSelectMenu,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:["".concat(this.mergedClsPrefix,"-select-menu"),this.themeClass,(b=this.menuProps)===null||b===void 0?void 0:b.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(A=this.menuProps)===null||A===void 0?void 0:A.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var w,C;return[(C=(w=this.$slots).empty)===null||C===void 0?void 0:C.call(w)]},action:()=>{var w,C;return[(C=(w=this.$slots).action)===null||C===void 0?void 0:C.call(w)]}}),this.displayDirective==="show"?[[vShow,this.mergedShow],[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),commonVariables$b={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},self$y=d=>{const{textColor2:b,primaryColor:A,primaryColorHover:w,primaryColorPressed:C,inputColorDisabled:x,textColorDisabled:S,borderColor:E,borderRadius:P,fontSizeTiny:B,fontSizeSmall:k,fontSizeMedium:$,heightTiny:I,heightSmall:D,heightMedium:F}=d;return Object.assign(Object.assign({},commonVariables$b),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:"1px solid ".concat(E),buttonBorderHover:"1px solid ".concat(E),buttonBorderPressed:"1px solid ".concat(E),buttonIconColor:b,buttonIconColorHover:b,buttonIconColorPressed:b,itemTextColor:b,itemTextColorHover:w,itemTextColorPressed:C,itemTextColorActive:A,itemTextColorDisabled:S,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:x,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:"1px solid ".concat(A),itemBorderDisabled:"1px solid ".concat(E),itemBorderRadius:P,itemSizeSmall:I,itemSizeMedium:D,itemSizeLarge:F,itemFontSizeSmall:B,itemFontSizeMedium:k,itemFontSizeLarge:$,jumperFontSizeSmall:B,jumperFontSizeMedium:k,jumperFontSizeLarge:$,jumperTextColor:b,jumperTextColorDisabled:S})},paginationDark={name:"Pagination",common:commonDark,peers:{Select:selectDark$1,Input:inputDark$1,Popselect:popselectDark},self(d){const{primaryColor:b,opacity3:A}=d,w=changeColor(b,{alpha:Number(A)}),C=self$y(d);return C.itemBorderActive="1px solid ".concat(w),C.itemBorderDisabled="1px solid #0000",C}},paginationDark$1=paginationDark,commonVars$8={padding:"8px 14px"},tooltipDark={name:"Tooltip",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{borderRadius:b,boxShadow2:A,popoverColor:w,textColor2:C}=d;return Object.assign(Object.assign({},commonVars$8),{borderRadius:b,boxShadow:A,color:w,textColor:C})}},tooltipDark$1=tooltipDark,ellipsisDark={name:"Ellipsis",common:commonDark,peers:{Tooltip:tooltipDark$1}},ellipsisDark$1=ellipsisDark,commonVariables$a={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},radioDark={name:"Radio",common:commonDark,self(d){const{borderColor:b,primaryColor:A,baseColor:w,textColorDisabled:C,inputColorDisabled:x,textColor2:S,opacityDisabled:E,borderRadius:P,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:$,heightSmall:I,heightMedium:D,heightLarge:F,lineHeight:z}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:z,buttonHeightSmall:I,buttonHeightMedium:D,buttonHeightLarge:F,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:$,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(A),boxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),boxShadowHover:"inset 0 0 0 1px ".concat(A),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:"#0000",colorDisabled:x,colorActive:"#0000",textColor:S,textColorDisabled:C,dotColorActive:A,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:A,buttonBorderColorHover:A,buttonColor:"#0000",buttonColorActive:A,buttonTextColor:S,buttonTextColorActive:w,buttonTextColorHover:A,opacityDisabled:E,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px ".concat(A),buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:P})}},radioDark$1=radioDark,self$x=d=>{const{borderColor:b,primaryColor:A,baseColor:w,textColorDisabled:C,inputColorDisabled:x,textColor2:S,opacityDisabled:E,borderRadius:P,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:$,heightSmall:I,heightMedium:D,heightLarge:F,lineHeight:z}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:z,buttonHeightSmall:I,buttonHeightMedium:D,buttonHeightLarge:F,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:$,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(A),boxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.2})),boxShadowHover:"inset 0 0 0 1px ".concat(A),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:w,colorDisabled:x,colorActive:"#0000",textColor:S,textColorDisabled:C,dotColorActive:A,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:A,buttonBorderColorHover:b,buttonColor:w,buttonColorActive:w,buttonTextColor:S,buttonTextColorActive:A,buttonTextColorHover:A,opacityDisabled:E,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:P})},radioLight={name:"Radio",common:commonLight,self:self$x},radioLight$1=radioLight,commonVariables$9={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},self$w=d=>{const{primaryColor:b,textColor2:A,dividerColor:w,hoverColor:C,popoverColor:x,invertedColor:S,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,fontSizeHuge:$,heightSmall:I,heightMedium:D,heightLarge:F,heightHuge:z,textColor3:L,opacityDisabled:H}=d;return Object.assign(Object.assign({},commonVariables$9),{optionHeightSmall:I,optionHeightMedium:D,optionHeightLarge:F,optionHeightHuge:z,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:k,fontSizeHuge:$,optionTextColor:A,optionTextColorHover:A,optionTextColorActive:b,optionTextColorChildActive:b,color:x,dividerColor:w,suffixColor:A,prefixColor:A,optionColorHover:C,optionColorActive:changeColor(b,{alpha:.1}),groupHeaderTextColor:L,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:S,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:b,optionColorActiveInverted:b,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:H})},dropdownLight={name:"Dropdown",common:commonLight,peers:{Popover:popoverLight$1},self:self$w},dropdownLight$1=dropdownLight,dropdownDark={name:"Dropdown",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{primaryColorSuppl:b,primaryColor:A,popoverColor:w}=d,C=self$w(d);return C.colorInverted=w,C.optionColorActive=changeColor(A,{alpha:.15}),C.optionColorActiveInverted=b,C.optionColorHoverInverted=b,C}},dropdownDark$1=dropdownDark,commonVariables$8={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},self$v=d=>{const{cardColor:b,modalColor:A,popoverColor:w,textColor2:C,textColor1:x,tableHeaderColor:S,tableColorHover:E,iconColor:P,primaryColor:B,fontWeightStrong:k,borderRadius:$,lineHeight:I,fontSizeSmall:D,fontSizeMedium:F,fontSizeLarge:z,dividerColor:L,heightSmall:H,opacityDisabled:Q,tableColorStriped:Y}=d;return Object.assign(Object.assign({},commonVariables$8),{actionDividerColor:L,lineHeight:I,borderRadius:$,fontSizeSmall:D,fontSizeMedium:F,fontSizeLarge:z,borderColor:composite(b,L),tdColorHover:composite(b,E),tdColorStriped:composite(b,Y),thColor:composite(b,S),thColorHover:composite(composite(b,S),E),tdColor:b,tdTextColor:C,thTextColor:x,thFontWeight:k,thButtonColorHover:E,thIconColor:P,thIconColorActive:B,borderColorModal:composite(A,L),tdColorHoverModal:composite(A,E),tdColorStripedModal:composite(A,Y),thColorModal:composite(A,S),thColorHoverModal:composite(composite(A,S),E),tdColorModal:A,borderColorPopover:composite(w,L),tdColorHoverPopover:composite(w,E),tdColorStripedPopover:composite(w,Y),thColorPopover:composite(w,S),thColorHoverPopover:composite(composite(w,S),E),tdColorPopover:w,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:B,loadingSize:H,opacityLoading:Q})},dataTableDark={name:"DataTable",common:commonDark,peers:{Button:buttonDark$1,Checkbox:checkboxDark$1,Radio:radioDark$1,Pagination:paginationDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1,Popover:popoverDark$1,Ellipsis:ellipsisDark$1,Dropdown:dropdownDark$1},self(d){const b=self$v(d);return b.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",b.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",b}},dataTableDark$1=dataTableDark,radioProps={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},radioGroupInjectionKey="n-radio-group";function setup(d){const b=useFormItem(d,{mergedSize(Q){const{size:Y}=d;if(Y!==void 0)return Y;if(S){const{mergedSizeRef:{value:U}}=S;if(U!==void 0)return U}return Q?Q.mergedSize.value:"medium"},mergedDisabled(Q){return!!(d.disabled||S!=null&&S.disabledRef.value||Q!=null&&Q.disabled.value)}}),{mergedSizeRef:A,mergedDisabledRef:w}=b,C=ref(null),x=ref(null),S=inject(radioGroupInjectionKey,null),E=ref(d.defaultChecked),P=toRef$1(d,"checked"),B=useMergedState(P,E),k=useMemo(()=>S?S.valueRef.value===d.value:B.value),$=useMemo(()=>{const{name:Q}=d;if(Q!==void 0)return Q;if(S)return S.nameRef.value}),I=ref(!1);function D(){if(S){const{doUpdateValue:Q}=S,{value:Y}=d;call$1(Q,Y)}else{const{onUpdateChecked:Q,"onUpdate:checked":Y}=d,{nTriggerFormInput:U,nTriggerFormChange:G}=b;Q&&call$1(Q,!0),Y&&call$1(Y,!0),U(),G(),E.value=!0}}function F(){w.value||k.value||D()}function z(){F()}function L(){I.value=!1}function H(){I.value=!0}return{mergedClsPrefix:S?S.mergedClsPrefixRef:useConfig(d).mergedClsPrefixRef,inputRef:C,labelRef:x,mergedName:$,mergedDisabled:w,uncontrolledChecked:E,renderSafeChecked:k,focus:I,mergedSize:A,handleRadioInputChange:z,handleRadioInputBlur:L,handleRadioInputFocus:H}}const style$b=cB("radio","\n line-height: var(--n-label-line-height);\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-flex;\n align-items: flex-start;\n flex-wrap: nowrap;\n font-size: var(--n-font-size);\n word-break: break-word;\n",[cM("checked",[cE("dot","\n background-color: var(--n-color-active);\n ")]),cE("dot-wrapper","\n position: relative;\n flex-shrink: 0;\n flex-grow: 0;\n width: var(--n-radio-size);\n "),cB("radio-input","\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n cursor: pointer;\n "),cE("dot","\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n height: var(--n-radio-size);\n width: var(--n-radio-size);\n background: var(--n-color);\n box-shadow: var(--n-box-shadow);\n border-radius: 50%;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ",[c$3("&::before",'\n content: "";\n opacity: 0;\n position: absolute;\n left: 4px;\n top: 4px;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n border-radius: 50%;\n transform: scale(.8);\n background: var(--n-dot-color-active);\n transition: \n opacity .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .3s var(--n-bezier);\n '),cM("checked",{boxShadow:"var(--n-box-shadow-active)"},[c$3("&::before","\n opacity: 1;\n transform: scale(1);\n ")])]),cE("label","\n color: var(--n-text-color);\n padding: var(--n-label-padding);\n font-weight: var(--n-label-font-weight);\n display: inline-block;\n transition: color .3s var(--n-bezier);\n "),cNotM("disabled","\n cursor: pointer;\n ",[c$3("&:hover",[cE("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),cM("focus",[c$3("&:not(:active)",[cE("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),cM("disabled","\n cursor: not-allowed;\n ",[cE("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[c$3("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),cM("checked","\n opacity: 1;\n ")]),cE("label",{color:"var(--n-text-color-disabled)"}),cB("radio-input","\n cursor: not-allowed;\n ")])]),NRadio=defineComponent({name:"Radio",props:Object.assign(Object.assign({},useTheme.props),radioProps),setup(d){const b=setup(d),A=useTheme("Radio","-radio",style$b,radioLight$1,d,b.mergedClsPrefix),w=computed(()=>{const{mergedSize:{value:B}}=b,{common:{cubicBezierEaseInOut:k},self:{boxShadow:$,boxShadowActive:I,boxShadowDisabled:D,boxShadowFocus:F,boxShadowHover:z,color:L,colorDisabled:H,colorActive:Q,textColor:Y,textColorDisabled:U,dotColorActive:G,dotColorDisabled:W,labelPadding:K,labelLineHeight:X,labelFontWeight:Z,[createKey("fontSize",B)]:oe,[createKey("radioSize",B)]:he}}=A.value;return{"--n-bezier":k,"--n-label-line-height":X,"--n-label-font-weight":Z,"--n-box-shadow":$,"--n-box-shadow-active":I,"--n-box-shadow-disabled":D,"--n-box-shadow-focus":F,"--n-box-shadow-hover":z,"--n-color":L,"--n-color-active":Q,"--n-color-disabled":H,"--n-dot-color-active":G,"--n-dot-color-disabled":W,"--n-font-size":oe,"--n-radio-size":he,"--n-text-color":Y,"--n-text-color-disabled":U,"--n-label-padding":K}}),{inlineThemeDisabled:C,mergedClsPrefixRef:x,mergedRtlRef:S}=useConfig(d),E=useRtl("Radio",S,x),P=C?useThemeClass("radio",computed(()=>b.mergedSize.value[0]),w,d):void 0;return Object.assign(b,{rtlEnabled:E,cssVars:C?void 0:w,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender})},render(){const{$slots:d,mergedClsPrefix:b,onRender:A,label:w}=this;return A==null||A(),h$1("label",{class:["".concat(b,"-radio"),this.themeClass,{["".concat(b,"-radio--rtl")]:this.rtlEnabled,["".concat(b,"-radio--disabled")]:this.mergedDisabled,["".concat(b,"-radio--checked")]:this.renderSafeChecked,["".concat(b,"-radio--focus")]:this.focus}],style:this.cssVars},h$1("input",{ref:"inputRef",type:"radio",class:"".concat(b,"-radio-input"),value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),h$1("div",{class:"".concat(b,"-radio__dot-wrapper")}," ",h$1("div",{class:["".concat(b,"-radio__dot"),this.renderSafeChecked&&"".concat(b,"-radio__dot--checked")]})),resolveWrappedSlot(d.default,C=>!C&&!w?null:h$1("div",{ref:"labelRef",class:"".concat(b,"-radio__label")},C||w)))}}),style$a=cB("radio-group","\n display: inline-block;\n font-size: var(--n-font-size);\n",[cE("splitor","\n display: inline-block;\n vertical-align: bottom;\n width: 1px;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n background: var(--n-button-border-color);\n ",[cM("checked",{backgroundColor:"var(--n-button-border-color-active)"}),cM("disabled",{opacity:"var(--n-opacity-disabled)"})]),cM("button-group","\n white-space: nowrap;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[cB("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),cE("splitor",{height:"var(--n-height)"})]),cB("radio-button","\n vertical-align: bottom;\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-block;\n box-sizing: border-box;\n padding-left: 14px;\n padding-right: 14px;\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n color: var(--n-button-text-color);\n border-top: 1px solid var(--n-button-border-color);\n border-bottom: 1px solid var(--n-button-border-color);\n ",[cB("radio-input","\n pointer-events: none;\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n "),cE("state-border","\n z-index: 1;\n pointer-events: none;\n position: absolute;\n box-shadow: var(--n-button-box-shadow);\n transition: box-shadow .3s var(--n-bezier);\n left: -1px;\n bottom: -1px;\n right: -1px;\n top: -1px;\n "),c$3("&:first-child","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n border-left: 1px solid var(--n-button-border-color);\n ",[cE("state-border","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n ")]),c$3("&:last-child","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n border-right: 1px solid var(--n-button-border-color);\n ",[cE("state-border","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n ")]),cNotM("disabled","\n cursor: pointer;\n ",[c$3("&:hover",[cE("state-border","\n transition: box-shadow .3s var(--n-bezier);\n box-shadow: var(--n-button-box-shadow-hover);\n "),cNotM("checked",{color:"var(--n-button-text-color-hover)"})]),cM("focus",[c$3("&:not(:active)",[cE("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),cM("checked","\n background: var(--n-button-color-active);\n color: var(--n-button-text-color-active);\n border-color: var(--n-button-border-color-active);\n "),cM("disabled","\n cursor: not-allowed;\n opacity: var(--n-opacity-disabled);\n ")])]);function mapSlot(d,b,A){var w;const C=[];let x=!1;for(let S=0;S<d.length;++S){const E=d[S],P=(w=E.type)===null||w===void 0?void 0:w.name;P==="RadioButton"&&(x=!0);const B=E.props;if(P!=="RadioButton"){C.push(E);continue}if(S===0)C.push(E);else{const k=C[C.length-1].props,$=b===k.value,I=k.disabled,D=b===B.value,F=B.disabled,z=($?2:0)+(I?0:1),L=(D?2:0)+(F?0:1),H={["".concat(A,"-radio-group__splitor--disabled")]:I,["".concat(A,"-radio-group__splitor--checked")]:$},Q={["".concat(A,"-radio-group__splitor--disabled")]:F,["".concat(A,"-radio-group__splitor--checked")]:D},Y=z<L?Q:H;C.push(h$1("div",{class:["".concat(A,"-radio-group__splitor"),Y]}),E)}}return{children:C,isButtonGroup:x}}const radioGroupProps=Object.assign(Object.assign({},useTheme.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),NRadioGroup=defineComponent({name:"RadioGroup",props:radioGroupProps,setup(d){const b=ref(null),{mergedSizeRef:A,mergedDisabledRef:w,nTriggerFormChange:C,nTriggerFormInput:x,nTriggerFormBlur:S,nTriggerFormFocus:E}=useFormItem(d),{mergedClsPrefixRef:P,inlineThemeDisabled:B,mergedRtlRef:k}=useConfig(d),$=useTheme("Radio","-radio-group",style$a,radioLight$1,d,P),I=ref(d.defaultValue),D=toRef$1(d,"value"),F=useMergedState(D,I);function z(G){const{onUpdateValue:W,"onUpdate:value":K}=d;W&&call$1(W,G),K&&call$1(K,G),I.value=G,C(),x()}function L(G){const{value:W}=b;W&&(W.contains(G.relatedTarget)||E())}function H(G){const{value:W}=b;W&&(W.contains(G.relatedTarget)||S())}provide(radioGroupInjectionKey,{mergedClsPrefixRef:P,nameRef:toRef$1(d,"name"),valueRef:F,disabledRef:w,mergedSizeRef:A,doUpdateValue:z});const Q=useRtl("Radio",k,P),Y=computed(()=>{const{value:G}=A,{common:{cubicBezierEaseInOut:W},self:{buttonBorderColor:K,buttonBorderColorActive:X,buttonBorderRadius:Z,buttonBoxShadow:oe,buttonBoxShadowFocus:he,buttonBoxShadowHover:J,buttonColorActive:le,buttonTextColor:de,buttonTextColorActive:me,buttonTextColorHover:ne,opacityDisabled:re,[createKey("buttonHeight",G)]:fe,[createKey("fontSize",G)]:ce}}=$.value;return{"--n-font-size":ce,"--n-bezier":W,"--n-button-border-color":K,"--n-button-border-color-active":X,"--n-button-border-radius":Z,"--n-button-box-shadow":oe,"--n-button-box-shadow-focus":he,"--n-button-box-shadow-hover":J,"--n-button-color-active":le,"--n-button-text-color":de,"--n-button-text-color-hover":ne,"--n-button-text-color-active":me,"--n-height":fe,"--n-opacity-disabled":re}}),U=B?useThemeClass("radio-group",computed(()=>A.value[0]),Y,d):void 0;return{selfElRef:b,rtlEnabled:Q,mergedClsPrefix:P,mergedValue:F,handleFocusout:H,handleFocusin:L,cssVars:B?void 0:Y,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender}},render(){var d;const{mergedValue:b,mergedClsPrefix:A,handleFocusin:w,handleFocusout:C}=this,{children:x,isButtonGroup:S}=mapSlot(flatten$4(getSlot$1(this)),b,A);return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{onFocusin:w,onFocusout:C,ref:"selfElRef",class:["".concat(A,"-radio-group"),this.rtlEnabled&&"".concat(A,"-radio-group--rtl"),this.themeClass,S&&"".concat(A,"-radio-group--button-group")],style:this.cssVars},x)}}),NDropdownDivider=defineComponent({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h$1("div",{class:"".concat(this.clsPrefix,"-dropdown-divider")})}}),self$u=d=>{const{textColorBase:b,opacity1:A,opacity2:w,opacity3:C,opacity4:x,opacity5:S}=d;return{color:b,opacity1Depth:A,opacity2Depth:w,opacity3Depth:C,opacity4Depth:x,opacity5Depth:S}},iconLight={name:"Icon",common:commonLight,self:self$u},iconLight$1=iconLight,iconDark$1={name:"Icon",common:commonDark,self:self$u},iconDark$2=iconDark$1,style$9=cB("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[cM("color-transition",{transition:"color .3s var(--n-bezier)"}),cM("depth",{color:"var(--n-color)"},[c$3("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),c$3("svg",{height:"1em",width:"1em"})]),iconProps=Object.assign(Object.assign({},useTheme.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),NIcon=defineComponent({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:iconProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:A}=useConfig(d),w=useTheme("Icon","-icon",style$9,iconLight$1,d,b),C=computed(()=>{const{depth:S}=d,{common:{cubicBezierEaseInOut:E},self:P}=w.value;if(S!==void 0){const{color:B,["opacity".concat(S,"Depth")]:k}=P;return{"--n-bezier":E,"--n-color":B,"--n-opacity":k}}return{"--n-bezier":E,"--n-color":"","--n-opacity":""}}),x=A?useThemeClass("icon",computed(()=>"".concat(d.depth||"d")),C,d):void 0;return{mergedClsPrefix:b,mergedStyle:computed(()=>{const{size:S,color:E}=d;return{fontSize:formatLength(S),color:E}}),cssVars:A?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var d;const{$parent:b,depth:A,mergedClsPrefix:w,component:C,onRender:x,themeClass:S}=this;return!((d=b==null?void 0:b.$options)===null||d===void 0)&&d._n_icon__&&warn$3("icon","don't wrap `n-icon` inside `n-icon`"),x==null||x(),h$1("i",mergeProps(this.$attrs,{role:"img",class:["".concat(w,"-icon"),S,{["".concat(w,"-icon--depth")]:A,["".concat(w,"-icon--color-transition")]:A!==void 0}],style:[this.cssVars,this.mergedStyle]}),C?h$1(C):this.$slots)}}),dropdownMenuInjectionKey="n-dropdown-menu",dropdownInjectionKey="n-dropdown",dropdownOptionInjectionKey="n-dropdown-option";function isSubmenuNode(d,b){return d.type==="submenu"||d.type===void 0&&d[b]!==void 0}function isGroupNode(d){return d.type==="group"}function isDividerNode(d){return d.type==="divider"}function isRenderNode(d){return d.type==="render"}const NDropdownOption=defineComponent({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(d){const b=inject(dropdownInjectionKey),{hoverKeyRef:A,keyboardKeyRef:w,lastToggledSubmenuKeyRef:C,pendingKeyPathRef:x,activeKeyPathRef:S,animatedRef:E,mergedShowRef:P,renderLabelRef:B,renderIconRef:k,labelFieldRef:$,childrenFieldRef:I,renderOptionRef:D,nodePropsRef:F,menuPropsRef:z}=b,L=inject(dropdownOptionInjectionKey,null),H=inject(dropdownMenuInjectionKey),Q=inject(popoverBodyInjectionKey),Y=computed(()=>d.tmNode.rawNode),U=computed(()=>{const{value:re}=I;return isSubmenuNode(d.tmNode.rawNode,re)}),G=computed(()=>{const{disabled:re}=d.tmNode;return re}),W=computed(()=>{if(!U.value)return!1;const{key:re,disabled:fe}=d.tmNode;if(fe)return!1;const{value:ce}=A,{value:we}=w,{value:Fe}=C,{value:Ke}=x;return ce!==null?Ke.includes(re):we!==null?Ke.includes(re)&&Ke[Ke.length-1]!==re:Fe!==null?Ke.includes(re):!1}),K=computed(()=>w.value===null&&!E.value),X=useDeferredTrue(W,300,K),Z=computed(()=>!!(L!=null&&L.enteringSubmenuRef.value)),oe=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:oe});function he(){oe.value=!0}function J(){oe.value=!1}function le(){const{parentKey:re,tmNode:fe}=d;fe.disabled||P.value&&(C.value=re,w.value=null,A.value=fe.key)}function de(){const{tmNode:re}=d;re.disabled||P.value&&A.value!==re.key&&le()}function me(re){if(d.tmNode.disabled||!P.value)return;const{relatedTarget:fe}=re;fe&&!happensIn({target:fe},"dropdownOption")&&!happensIn({target:fe},"scrollbarRail")&&(A.value=null)}function ne(){const{value:re}=U,{tmNode:fe}=d;P.value&&!re&&!fe.disabled&&(b.doSelect(fe.key,fe.rawNode),b.doUpdateShow(!1))}return{labelField:$,renderLabel:B,renderIcon:k,siblingHasIcon:H.showIconRef,siblingHasSubmenu:H.hasSubmenuRef,menuProps:z,popoverBody:Q,animated:E,mergedShowSubmenu:computed(()=>X.value&&!Z.value),rawNode:Y,hasSubmenu:U,pending:useMemo(()=>{const{value:re}=x,{key:fe}=d.tmNode;return re.includes(fe)}),childActive:useMemo(()=>{const{value:re}=S,{key:fe}=d.tmNode,ce=re.findIndex(we=>fe===we);return ce===-1?!1:ce<re.length-1}),active:useMemo(()=>{const{value:re}=S,{key:fe}=d.tmNode,ce=re.findIndex(we=>fe===we);return ce===-1?!1:ce===re.length-1}),mergedDisabled:G,renderOption:D,nodeProps:F,handleClick:ne,handleMouseMove:de,handleMouseEnter:le,handleMouseLeave:me,handleSubmenuBeforeEnter:he,handleSubmenuAfterEnter:J}},render(){var d,b;const{animated:A,rawNode:w,mergedShowSubmenu:C,clsPrefix:x,siblingHasIcon:S,siblingHasSubmenu:E,renderLabel:P,renderIcon:B,renderOption:k,nodeProps:$,props:I,scrollable:D}=this;let F=null;if(C){const Q=(d=this.menuProps)===null||d===void 0?void 0:d.call(this,w,w.children);F=h$1(NDropdownMenu,Object.assign({},Q,{clsPrefix:x,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const z={class:["".concat(x,"-dropdown-option-body"),this.pending&&"".concat(x,"-dropdown-option-body--pending"),this.active&&"".concat(x,"-dropdown-option-body--active"),this.childActive&&"".concat(x,"-dropdown-option-body--child-active"),this.mergedDisabled&&"".concat(x,"-dropdown-option-body--disabled")],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},L=$==null?void 0:$(w),H=h$1("div",Object.assign({class:["".concat(x,"-dropdown-option"),L==null?void 0:L.class],"data-dropdown-option":!0},L),h$1("div",mergeProps(z,I),[h$1("div",{class:["".concat(x,"-dropdown-option-body__prefix"),S&&"".concat(x,"-dropdown-option-body__prefix--show-icon")]},[B?B(w):render$1(w.icon)]),h$1("div",{"data-dropdown-option":!0,class:"".concat(x,"-dropdown-option-body__label")},P?P(w):render$1((b=w[this.labelField])!==null&&b!==void 0?b:w.title)),h$1("div",{"data-dropdown-option":!0,class:["".concat(x,"-dropdown-option-body__suffix"),E&&"".concat(x,"-dropdown-option-body__suffix--has-submenu")]},this.hasSubmenu?h$1(NIcon,null,{default:()=>h$1(ChevronRightIcon,null)}):null)]),this.hasSubmenu?h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{class:"".concat(x,"-dropdown-offset-container")},h$1(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:D&&this.popoverBody||void 0,teleportDisabled:!D},{default:()=>h$1("div",{class:"".concat(x,"-dropdown-menu-wrapper")},A?h$1(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>F}):F)}))})]}):null);return k?k({node:H,option:w}):H}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:d,hasSubmenuRef:b}=inject(dropdownMenuInjectionKey),{renderLabelRef:A,labelFieldRef:w,nodePropsRef:C,renderOptionRef:x}=inject(dropdownInjectionKey);return{labelField:w,showIcon:d,hasSubmenu:b,renderLabel:A,nodeProps:C,renderOption:x}},render(){var d;const{clsPrefix:b,hasSubmenu:A,showIcon:w,nodeProps:C,renderLabel:x,renderOption:S}=this,{rawNode:E}=this.tmNode,P=h$1("div",Object.assign({class:"".concat(b,"-dropdown-option")},C==null?void 0:C(E)),h$1("div",{class:"".concat(b,"-dropdown-option-body ").concat(b,"-dropdown-option-body--group")},h$1("div",{"data-dropdown-option":!0,class:["".concat(b,"-dropdown-option-body__prefix"),w&&"".concat(b,"-dropdown-option-body__prefix--show-icon")]},render$1(E.icon)),h$1("div",{class:"".concat(b,"-dropdown-option-body__label"),"data-dropdown-option":!0},x?x(E):render$1((d=E.title)!==null&&d!==void 0?d:E[this.labelField])),h$1("div",{class:["".concat(b,"-dropdown-option-body__suffix"),A&&"".concat(b,"-dropdown-option-body__suffix--has-submenu")],"data-dropdown-option":!0})));return S?S({node:P,option:E}):P}}),NDropdownGroup=defineComponent({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:d,parentKey:b,clsPrefix:A}=this,{children:w}=d;return h$1(Fragment,null,h$1(NDropdownGroupHeader,{clsPrefix:A,tmNode:d,key:d.key}),w==null?void 0:w.map(C=>{const{rawNode:x}=C;return x.show===!1?null:isDividerNode(x)?h$1(NDropdownDivider,{clsPrefix:A,key:C.key}):C.isGroup?(warn$3("dropdown","`group` node is not allowed to be put in `group` node."),null):h$1(NDropdownOption,{clsPrefix:A,tmNode:C,parentKey:b,key:C.key})}))}}),NDropdownRenderOption=defineComponent({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:d,props:b}}=this.tmNode;return h$1("div",b,[d==null?void 0:d()])}}),NDropdownMenu=defineComponent({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(d){const{renderIconRef:b,childrenFieldRef:A}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const C=b.value;return d.tmNodes.some(x=>{var S;if(x.isGroup)return(S=x.children)===null||S===void 0?void 0:S.some(({rawNode:P})=>C?C(P):P.icon);const{rawNode:E}=x;return C?C(E):E.icon})}),hasSubmenuRef:computed(()=>{const{value:C}=A;return d.tmNodes.some(x=>{var S;if(x.isGroup)return(S=x.children)===null||S===void 0?void 0:S.some(({rawNode:P})=>isSubmenuNode(P,C));const{rawNode:E}=x;return isSubmenuNode(E,C)})})});const w=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,w),{bodyRef:w}},render(){const{parentKey:d,clsPrefix:b,scrollable:A}=this,w=this.tmNodes.map(C=>{const{rawNode:x}=C;return x.show===!1?null:isRenderNode(x)?h$1(NDropdownRenderOption,{tmNode:C,key:C.key}):isDividerNode(x)?h$1(NDropdownDivider,{clsPrefix:b,key:C.key}):isGroupNode(x)?h$1(NDropdownGroup,{clsPrefix:b,tmNode:C,parentKey:d,key:C.key}):h$1(NDropdownOption,{clsPrefix:b,tmNode:C,parentKey:d,key:C.key,props:x.props,scrollable:A})});return h$1("div",{class:["".concat(b,"-dropdown-menu"),A&&"".concat(b,"-dropdown-menu--scrollable")],ref:"bodyRef"},A?h$1(XScrollbar,{contentClass:"".concat(b,"-dropdown-menu__content")},{default:()=>w}):w,this.showArrow?renderArrow({clsPrefix:b,arrowStyle:this.arrowStyle}):null)}}),style$8=cB("dropdown-menu","\n transform-origin: var(--v-transform-origin);\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n position: relative;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[fadeInScaleUpTransition(),cB("dropdown-option","\n position: relative;\n ",[c$3("a","\n text-decoration: none;\n color: inherit;\n outline: none;\n ",[c$3("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),cB("dropdown-option-body","\n display: flex;\n cursor: pointer;\n position: relative;\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-font-size);\n color: var(--n-option-text-color);\n transition: color .3s var(--n-bezier);\n ",[c$3("&::before",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n left: 4px;\n right: 4px;\n transition: background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n '),cNotM("disabled",[cM("pending","\n color: var(--n-option-text-color-hover);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-hover);\n "),c$3("&::before","background-color: var(--n-option-color-hover);")]),cM("active","\n color: var(--n-option-text-color-active);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-active);\n "),c$3("&::before","background-color: var(--n-option-color-active);")]),cM("child-active","\n color: var(--n-option-text-color-child-active);\n ",[cE("prefix, suffix","\n color: var(--n-option-text-color-child-active);\n ")])]),cM("disabled","\n cursor: not-allowed;\n opacity: var(--n-option-opacity-disabled);\n "),cM("group","\n font-size: calc(var(--n-font-size) - 1px);\n color: var(--n-group-header-text-color);\n ",[cE("prefix","\n width: calc(var(--n-option-prefix-width) / 2);\n ",[cM("show-icon","\n width: calc(var(--n-option-icon-prefix-width) / 2);\n ")])]),cE("prefix","\n width: var(--n-option-prefix-width);\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--n-prefix-color);\n transition: color .3s var(--n-bezier);\n z-index: 1;\n ",[cM("show-icon","\n width: var(--n-option-icon-prefix-width);\n "),cB("icon","\n font-size: var(--n-option-icon-size);\n ")]),cE("label","\n white-space: nowrap;\n flex: 1;\n z-index: 1;\n "),cE("suffix","\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-width: var(--n-option-suffix-width);\n padding: 0 8px;\n transition: color .3s var(--n-bezier);\n color: var(--n-suffix-color);\n z-index: 1;\n ",[cM("has-submenu","\n width: var(--n-option-icon-suffix-width);\n "),cB("icon","\n font-size: var(--n-option-icon-size);\n ")]),cB("dropdown-menu","pointer-events: all;")]),cB("dropdown-offset-container","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: -4px;\n bottom: -4px;\n ")]),cB("dropdown-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 4px 0;\n "),cB("dropdown-menu-wrapper","\n transform-origin: var(--v-transform-origin);\n width: fit-content;\n "),c$3(">",[cB("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),cNotM("scrollable","\n padding: var(--n-padding);\n "),cM("scrollable",[cE("content","\n padding: var(--n-padding);\n ")])]),dropdownBaseProps={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},popoverPropKeys=Object.keys(popoverBaseProps),dropdownProps=Object.assign(Object.assign(Object.assign({},popoverBaseProps),dropdownBaseProps),useTheme.props),NDropdown=defineComponent({name:"Dropdown",inheritAttrs:!1,props:dropdownProps,setup(d){const b=ref(!1),A=useMergedState(toRef$1(d,"show"),b),w=computed(()=>{const{keyField:J,childrenField:le}=d;return createTreeMate(d.options,{getKey(de){return de[J]},getDisabled(de){return de.disabled===!0},getIgnored(de){return de.type==="divider"||de.type==="render"},getChildren(de){return de[le]}})}),C=computed(()=>w.value.treeNodes),x=ref(null),S=ref(null),E=ref(null),P=computed(()=>{var J,le,de;return(de=(le=(J=x.value)!==null&&J!==void 0?J:S.value)!==null&&le!==void 0?le:E.value)!==null&&de!==void 0?de:null}),B=computed(()=>w.value.getPath(P.value).keyPath),k=computed(()=>w.value.getPath(d.value).keyPath),$=useMemo(()=>d.keyboard&&A.value);useKeyboard({keydown:{ArrowUp:{prevent:!0,handler:G},ArrowRight:{prevent:!0,handler:U},ArrowDown:{prevent:!0,handler:W},ArrowLeft:{prevent:!0,handler:Y},Enter:{prevent:!0,handler:K},Escape:Q}},$);const{mergedClsPrefixRef:I,inlineThemeDisabled:D}=useConfig(d),F=useTheme("Dropdown","-dropdown",style$8,dropdownLight$1,d,I);provide(dropdownInjectionKey,{labelFieldRef:toRef$1(d,"labelField"),childrenFieldRef:toRef$1(d,"childrenField"),renderLabelRef:toRef$1(d,"renderLabel"),renderIconRef:toRef$1(d,"renderIcon"),hoverKeyRef:x,keyboardKeyRef:S,lastToggledSubmenuKeyRef:E,pendingKeyPathRef:B,activeKeyPathRef:k,animatedRef:toRef$1(d,"animated"),mergedShowRef:A,nodePropsRef:toRef$1(d,"nodeProps"),renderOptionRef:toRef$1(d,"renderOption"),menuPropsRef:toRef$1(d,"menuProps"),doSelect:z,doUpdateShow:L}),watch(A,J=>{!d.animated&&!J&&H()});function z(J,le){const{onSelect:de}=d;de&&call$1(de,J,le)}function L(J){const{"onUpdate:show":le,onUpdateShow:de}=d;le&&call$1(le,J),de&&call$1(de,J),b.value=J}function H(){x.value=null,S.value=null,E.value=null}function Q(){L(!1)}function Y(){Z("left")}function U(){Z("right")}function G(){Z("up")}function W(){Z("down")}function K(){const J=X();J!=null&&J.isLeaf&&A.value&&(z(J.key,J.rawNode),L(!1))}function X(){var J;const{value:le}=w,{value:de}=P;return!le||de===null?null:(J=le.getNode(de))!==null&&J!==void 0?J:null}function Z(J){const{value:le}=P,{value:{getFirstAvailableNode:de}}=w;let me=null;if(le===null){const ne=de();ne!==null&&(me=ne.key)}else{const ne=X();if(ne){let re;switch(J){case"down":re=ne.getNext();break;case"up":re=ne.getPrev();break;case"right":re=ne.getChild();break;case"left":re=ne.getParent();break}re&&(me=re.key)}}me!==null&&(x.value=null,S.value=me)}const oe=computed(()=>{const{size:J,inverted:le}=d,{common:{cubicBezierEaseInOut:de},self:me}=F.value,{padding:ne,dividerColor:re,borderRadius:fe,optionOpacityDisabled:ce,[createKey("optionIconSuffixWidth",J)]:we,[createKey("optionSuffixWidth",J)]:Fe,[createKey("optionIconPrefixWidth",J)]:Ke,[createKey("optionPrefixWidth",J)]:tt,[createKey("fontSize",J)]:ut,[createKey("optionHeight",J)]:dt,[createKey("optionIconSize",J)]:it}=me,$e={"--n-bezier":de,"--n-font-size":ut,"--n-padding":ne,"--n-border-radius":fe,"--n-option-height":dt,"--n-option-prefix-width":tt,"--n-option-icon-prefix-width":Ke,"--n-option-suffix-width":Fe,"--n-option-icon-suffix-width":we,"--n-option-icon-size":it,"--n-divider-color":re,"--n-option-opacity-disabled":ce};return le?($e["--n-color"]=me.colorInverted,$e["--n-option-color-hover"]=me.optionColorHoverInverted,$e["--n-option-color-active"]=me.optionColorActiveInverted,$e["--n-option-text-color"]=me.optionTextColorInverted,$e["--n-option-text-color-hover"]=me.optionTextColorHoverInverted,$e["--n-option-text-color-active"]=me.optionTextColorActiveInverted,$e["--n-option-text-color-child-active"]=me.optionTextColorChildActiveInverted,$e["--n-prefix-color"]=me.prefixColorInverted,$e["--n-suffix-color"]=me.suffixColorInverted,$e["--n-group-header-text-color"]=me.groupHeaderTextColorInverted):($e["--n-color"]=me.color,$e["--n-option-color-hover"]=me.optionColorHover,$e["--n-option-color-active"]=me.optionColorActive,$e["--n-option-text-color"]=me.optionTextColor,$e["--n-option-text-color-hover"]=me.optionTextColorHover,$e["--n-option-text-color-active"]=me.optionTextColorActive,$e["--n-option-text-color-child-active"]=me.optionTextColorChildActive,$e["--n-prefix-color"]=me.prefixColor,$e["--n-suffix-color"]=me.suffixColor,$e["--n-group-header-text-color"]=me.groupHeaderTextColor),$e}),he=D?useThemeClass("dropdown",computed(()=>"".concat(d.size[0]).concat(d.inverted?"i":"")),oe,d):void 0;return{mergedClsPrefix:I,mergedTheme:F,tmNodes:C,mergedShow:A,handleAfterLeave:()=>{d.animated&&H()},doUpdateShow:L,cssVars:D?void 0:oe,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){const d=(w,C,x,S,E)=>{var P;const{mergedClsPrefix:B,menuProps:k}=this;(P=this.onRender)===null||P===void 0||P.call(this);const $=(k==null?void 0:k(void 0,this.tmNodes.map(D=>D.rawNode)))||{},I={ref:createRefSetter(C),class:[w,"".concat(B,"-dropdown"),this.themeClass],clsPrefix:B,tmNodes:this.tmNodes,style:[x,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:S,onMouseleave:E};return h$1(NDropdownMenu,mergeProps(this.$attrs,I,$))},{mergedTheme:b}=this,A={show:this.mergedShow,theme:b.peers.Popover,themeOverrides:b.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:d,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h$1(NPopover,Object.assign({},keep(this.$props,popoverPropKeys),A),{trigger:()=>{var w,C;return(C=(w=this.$slots).default)===null||C===void 0?void 0:C.call(w)}})}}),commonVars$7={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},self$t=d=>{const{popoverColor:b,textColor2:A,primaryColor:w,hoverColor:C,dividerColor:x,opacityDisabled:S,boxShadow2:E,borderRadius:P,iconColor:B,iconColorDisabled:k}=d;return Object.assign(Object.assign({},commonVars$7),{panelColor:b,panelBoxShadow:E,panelDividerColor:x,itemTextColor:A,itemTextColorActive:w,itemColorHover:C,itemOpacityDisabled:S,itemBorderRadius:P,borderRadius:P,iconColor:B,iconColorDisabled:k})},timePickerDark={name:"TimePicker",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Button:buttonDark$1,Input:inputDark$1},self:self$t},timePickerDark$1=timePickerDark,commonVars$6={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},self$s=d=>{const{hoverColor:b,fontSize:A,textColor2:w,textColorDisabled:C,popoverColor:x,primaryColor:S,borderRadiusSmall:E,iconColor:P,iconColorDisabled:B,textColor1:k,dividerColor:$,boxShadow2:I,borderRadius:D,fontWeightStrong:F}=d;return Object.assign(Object.assign({},commonVars$6),{itemFontSize:A,calendarDaysFontSize:A,calendarTitleFontSize:A,itemTextColor:w,itemTextColorDisabled:C,itemTextColorActive:x,itemTextColorCurrent:S,itemColorIncluded:changeColor(S,{alpha:.1}),itemColorHover:b,itemColorDisabled:b,itemColorActive:S,itemBorderRadius:E,panelColor:x,panelTextColor:w,arrowColor:P,calendarTitleTextColor:k,calendarTitleColorHover:b,calendarDaysTextColor:w,panelHeaderDividerColor:$,calendarDaysDividerColor:$,calendarDividerColor:$,panelActionDividerColor:$,panelBoxShadow:I,panelBorderRadius:D,calendarTitleFontWeight:F,scrollItemBorderRadius:D,iconColor:P,iconColorDisabled:B})},datePickerDark={name:"DatePicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,TimePicker:timePickerDark$1,Scrollbar:scrollbarDark$1},self(d){const{popoverColor:b,hoverColor:A,primaryColor:w}=d,C=self$s(d);return C.itemColorDisabled=composite(b,A),C.itemColorIncluded=changeColor(w,{alpha:.15}),C.itemColorHover=composite(b,A),C}},datePickerDark$1=datePickerDark,commonVariables$7={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},self$r=d=>{const{tableHeaderColor:b,textColor2:A,textColor1:w,cardColor:C,modalColor:x,popoverColor:S,dividerColor:E,borderRadius:P,fontWeightStrong:B,lineHeight:k,fontSizeSmall:$,fontSizeMedium:I,fontSizeLarge:D}=d;return Object.assign(Object.assign({},commonVariables$7),{lineHeight:k,fontSizeSmall:$,fontSizeMedium:I,fontSizeLarge:D,titleTextColor:w,thColor:composite(C,b),thColorModal:composite(x,b),thColorPopover:composite(S,b),thTextColor:w,thFontWeight:B,tdTextColor:A,tdColor:C,tdColorModal:x,tdColorPopover:S,borderColor:composite(C,E),borderColorModal:composite(x,E),borderColorPopover:composite(S,E),borderRadius:P})},descriptionsDark={name:"Descriptions",common:commonDark,self:self$r},descriptionsDark$1=descriptionsDark,commonVars$5={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},self$q=d=>{const{textColor1:b,textColor2:A,modalColor:w,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,infoColor:B,successColor:k,warningColor:$,errorColor:I,primaryColor:D,dividerColor:F,borderRadius:z,fontWeightStrong:L,lineHeight:H,fontSize:Q}=d;return Object.assign(Object.assign({},commonVars$5),{fontSize:Q,lineHeight:H,border:"1px solid ".concat(F),titleTextColor:b,textColor:A,color:w,closeColorHover:E,closeColorPressed:P,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeBorderRadius:z,iconColor:D,iconColorInfo:B,iconColorSuccess:k,iconColorWarning:$,iconColorError:I,borderRadius:z,titleFontWeight:L})},dialogLight={name:"Dialog",common:commonLight,peers:{Button:buttonLight$1},self:self$q},dialogLight$1=dialogLight,dialogDark={name:"Dialog",common:commonDark,peers:{Button:buttonDark$1},self:self$q},dialogDark$1=dialogDark,dialogProps={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},dialogPropKeys=keysOf(dialogProps),style$7=c$3([cB("dialog","\n word-break: break-word;\n line-height: var(--n-line-height);\n position: relative;\n background: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n margin: auto;\n border-radius: var(--n-border-radius);\n padding: var(--n-padding);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ",[cE("icon",{color:"var(--n-icon-color)"}),cM("bordered",{border:"var(--n-border)"}),cM("icon-top",[cE("close",{margin:"var(--n-close-margin)"}),cE("icon",{margin:"var(--n-icon-margin)"}),cE("content",{textAlign:"center"}),cE("title",{justifyContent:"center"}),cE("action",{justifyContent:"center"})]),cM("icon-left",[cE("icon",{margin:"var(--n-icon-margin)"}),cM("closable",[cE("title","\n padding-right: calc(var(--n-close-size) + 6px);\n ")])]),cE("close","\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n z-index: 1;\n "),cE("content","\n font-size: var(--n-font-size);\n margin: var(--n-content-margin);\n position: relative;\n word-break: break-word;\n ",[cM("last","margin-bottom: 0;")]),cE("action","\n display: flex;\n justify-content: flex-end;\n ",[c$3("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),cE("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),cE("title","\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n font-weight: var(--n-title-font-weight);\n color: var(--n-title-text-color);\n "),cB("dialog-icon-container",{display:"flex",justifyContent:"center"})]),insideModal(cB("dialog","\n width: 446px;\n max-width: calc(100vw - 32px);\n ")),cB("dialog",[asModal("\n width: 446px;\n max-width: calc(100vw - 32px);\n ")])]),iconRenderMap$2={default:()=>h$1(InfoIcon,null),info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null)},NDialog=defineComponent({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},useTheme.props),dialogProps),setup(d){const{mergedComponentPropsRef:b,mergedClsPrefixRef:A,inlineThemeDisabled:w}=useConfig(d),C=computed(()=>{var $,I;const{iconPlacement:D}=d;return D||((I=($=b==null?void 0:b.value)===null||$===void 0?void 0:$.Dialog)===null||I===void 0?void 0:I.iconPlacement)||"left"});function x($){const{onPositiveClick:I}=d;I&&I($)}function S($){const{onNegativeClick:I}=d;I&&I($)}function E(){const{onClose:$}=d;$&&$()}const P=useTheme("Dialog","-dialog",style$7,dialogLight$1,d,A),B=computed(()=>{const{type:$}=d,I=C.value,{common:{cubicBezierEaseInOut:D},self:{fontSize:F,lineHeight:z,border:L,titleTextColor:H,textColor:Q,color:Y,closeBorderRadius:U,closeColorHover:G,closeColorPressed:W,closeIconColor:K,closeIconColorHover:X,closeIconColorPressed:Z,closeIconSize:oe,borderRadius:he,titleFontWeight:J,titleFontSize:le,padding:de,iconSize:me,actionSpace:ne,contentMargin:re,closeSize:fe,[I==="top"?"iconMarginIconTop":"iconMargin"]:ce,[I==="top"?"closeMarginIconTop":"closeMargin"]:we,[createKey("iconColor",$)]:Fe}}=P.value;return{"--n-font-size":F,"--n-icon-color":Fe,"--n-bezier":D,"--n-close-margin":we,"--n-icon-margin":ce,"--n-icon-size":me,"--n-close-size":fe,"--n-close-icon-size":oe,"--n-close-border-radius":U,"--n-close-color-hover":G,"--n-close-color-pressed":W,"--n-close-icon-color":K,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":Z,"--n-color":Y,"--n-text-color":Q,"--n-border-radius":he,"--n-padding":de,"--n-line-height":z,"--n-border":L,"--n-content-margin":re,"--n-title-font-size":le,"--n-title-font-weight":J,"--n-title-text-color":H,"--n-action-space":ne}}),k=w?useThemeClass("dialog",computed(()=>"".concat(d.type[0]).concat(C.value[0])),B,d):void 0;return{mergedClsPrefix:A,mergedIconPlacement:C,mergedTheme:P,handlePositiveClick:x,handleNegativeClick:S,handleCloseClick:E,cssVars:w?void 0:B,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){var d;const{bordered:b,mergedIconPlacement:A,cssVars:w,closable:C,showIcon:x,title:S,content:E,action:P,negativeText:B,positiveText:k,positiveButtonProps:$,negativeButtonProps:I,handlePositiveClick:D,handleNegativeClick:F,mergedTheme:z,loading:L,type:H,mergedClsPrefix:Q}=this;(d=this.onRender)===null||d===void 0||d.call(this);const Y=x?h$1(NBaseIcon,{clsPrefix:Q,class:"".concat(Q,"-dialog__icon")},{default:()=>resolveWrappedSlot(this.$slots.icon,G=>G||(this.icon?render$1(this.icon):iconRenderMap$2[this.type]()))}):null,U=resolveWrappedSlot(this.$slots.action,G=>G||k||B||P?h$1("div",{class:"".concat(Q,"-dialog__action")},G||(P?[render$1(P)]:[this.negativeText&&h$1(NButton,Object.assign({theme:z.peers.Button,themeOverrides:z.peerOverrides.Button,ghost:!0,size:"small",onClick:F},I),{default:()=>render$1(this.negativeText)}),this.positiveText&&h$1(NButton,Object.assign({theme:z.peers.Button,themeOverrides:z.peerOverrides.Button,size:"small",type:H==="default"?"primary":H,disabled:L,loading:L,onClick:D},$),{default:()=>render$1(this.positiveText)})])):null);return h$1("div",{class:["".concat(Q,"-dialog"),this.themeClass,this.closable&&"".concat(Q,"-dialog--closable"),"".concat(Q,"-dialog--icon-").concat(A),b&&"".concat(Q,"-dialog--bordered")],style:w,role:"dialog"},C?h$1(NBaseClose,{clsPrefix:Q,class:"".concat(Q,"-dialog__close"),onClick:this.handleCloseClick}):null,x&&A==="top"?h$1("div",{class:"".concat(Q,"-dialog-icon-container")},Y):null,h$1("div",{class:"".concat(Q,"-dialog__title")},x&&A==="left"?Y:null,resolveSlot(this.$slots.header,()=>[render$1(S)])),h$1("div",{class:["".concat(Q,"-dialog__content"),U?"":"".concat(Q,"-dialog__content--last")]},resolveSlot(this.$slots.default,()=>[render$1(E)])),U)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$p=d=>{const{modalColor:b,textColor2:A,boxShadow3:w}=d;return{color:b,textColor:A,boxShadow:w}},modalLight={name:"Modal",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Dialog:dialogLight$1,Card:cardLight$1},self:self$p},modalLight$1=modalLight,modalDark={name:"Modal",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Dialog:dialogDark$1,Card:cardDark$1},self:self$p},modalDark$1=modalDark,presetProps=Object.assign(Object.assign({},cardBaseProps),dialogProps),presetPropsKeys=keysOf(presetProps),NModalBodyWrapper=defineComponent({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},presetProps),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(d){const b=ref(null),A=ref(null),w=ref(d.show),C=ref(null),x=ref(null);watch(toRef$1(d,"show"),L=>{L&&(w.value=!0)}),useLockHtmlScroll(computed(()=>d.blockScroll&&w.value));const S=inject(modalInjectionKey);function E(){if(S.transformOriginRef.value==="center")return"";const{value:L}=C,{value:H}=x;if(L===null||H===null)return"";if(A.value){const Q=A.value.containerScrollTop;return"".concat(L,"px ").concat(H+Q,"px")}return""}function P(L){if(S.transformOriginRef.value==="center")return;const H=S.getMousePosition();if(!H||!A.value)return;const Q=A.value.containerScrollTop,{offsetLeft:Y,offsetTop:U}=L;if(H){const G=H.y,W=H.x;C.value=-(Y-W),x.value=-(U-G-Q)}L.style.transformOrigin=E()}function B(L){nextTick(()=>{P(L)})}function k(L){L.style.transformOrigin=E(),d.onBeforeLeave()}function $(){w.value=!1,C.value=null,x.value=null,d.onAfterLeave()}function I(){const{onClose:L}=d;L&&L()}function D(){d.onNegativeClick()}function F(){d.onPositiveClick()}const z=ref(null);return watch(z,L=>{L&&nextTick(()=>{const H=L.el;H&&b.value!==H&&(b.value=H)})}),provide(modalBodyInjectionKey,b),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:S.mergedThemeRef,appear:S.appearRef,isMounted:S.isMountedRef,mergedClsPrefix:S.mergedClsPrefixRef,bodyRef:b,scrollbarRef:A,displayed:w,childNodeRef:z,handlePositiveClick:F,handleNegativeClick:D,handleCloseClick:I,handleAfterLeave:$,handleBeforeLeave:k,handleEnter:B}},render(){const{$slots:d,$attrs:b,handleEnter:A,handleAfterLeave:w,handleBeforeLeave:C,preset:x,mergedClsPrefix:S}=this;let E=null;if(!x){if(E=getFirstSlotVNode(d),!E){warn$3("modal","default slot is empty");return}E=cloneVNode(E),E.props=mergeProps({class:"".concat(S,"-modal")},b,E.props||{})}return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h$1("div",{role:"none",class:"".concat(S,"-modal-body-wrapper")},h$1(NScrollbar$1,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:"".concat(S,"-modal-scroll-content")},{default:()=>{var P;return[(P=this.renderMask)===null||P===void 0?void 0:P.call(this),h$1(FocusTrap,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var B;return h$1(Transition,{name:"fade-in-scale-up-transition",appear:(B=this.appear)!==null&&B!==void 0?B:this.isMounted,onEnter:A,onAfterEnter:this.onAfterEnter,onAfterLeave:w,onBeforeLeave:C},{default:()=>{const k=[[vShow,this.show]],{onClickoutside:$}=this;return $&&k.push([clickoutside$1,this.onClickoutside,void 0,{capture:!0}]),withDirectives(this.preset==="confirm"||this.preset==="dialog"?h$1(NDialog,Object.assign({},this.$attrs,{class:["".concat(S,"-modal"),this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},keep(this.$props,dialogPropKeys),{"aria-modal":"true"}),d):this.preset==="card"?h$1(NCard,Object.assign({},this.$attrs,{ref:"bodyRef",class:["".concat(S,"-modal"),this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},keep(this.$props,cardBasePropKeys),{"aria-modal":"true",role:"dialog"}),d):this.childNodeRef=E,k)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$6=c$3([cB("modal-container","\n position: fixed;\n left: 0;\n top: 0;\n height: 0;\n width: 0;\n display: flex;\n "),cB("modal-mask","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, .4);\n ",[fadeInTransition({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),cB("modal-body-wrapper","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: visible;\n ",[cB("modal-scroll-content","\n min-height: 100%;\n display: flex;\n position: relative;\n ")]),cB("modal","\n position: relative;\n align-self: center;\n color: var(--n-text-color);\n margin: auto;\n box-shadow: var(--n-box-shadow);\n ",[fadeInScaleUpTransition({duration:".25s",enterScale:".5"})])]),modalProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),presetProps),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NModal=defineComponent({name:"Modal",inheritAttrs:!1,props:modalProps,setup(d){const b=ref(null),{mergedClsPrefixRef:A,namespaceRef:w,inlineThemeDisabled:C}=useConfig(d),x=useTheme("Modal","-modal",style$6,modalLight$1,d,A),S=useClicked(64),E=useClickPosition(),P=isMounted(),B=d.internalDialog?inject(dialogProviderInjectionKey,null):null,k=useIsComposing();function $(G){const{onUpdateShow:W,"onUpdate:show":K,onHide:X}=d;W&&call$1(W,G),K&&call$1(K,G),X&&!G&&X(G)}function I(){const{onClose:G}=d;G?Promise.resolve(G()).then(W=>{W!==!1&&$(!1)}):$(!1)}function D(){const{onPositiveClick:G}=d;G?Promise.resolve(G()).then(W=>{W!==!1&&$(!1)}):$(!1)}function F(){const{onNegativeClick:G}=d;G?Promise.resolve(G()).then(W=>{W!==!1&&$(!1)}):$(!1)}function z(){const{onBeforeLeave:G,onBeforeHide:W}=d;G&&call$1(G),W&&W()}function L(){const{onAfterLeave:G,onAfterHide:W}=d;G&&call$1(G),W&&W()}function H(G){var W;const{onMaskClick:K}=d;K&&K(G),d.maskClosable&&!((W=b.value)===null||W===void 0)&&W.contains(getPreciseEventTarget(G))&&$(!1)}function Q(G){var W;(W=d.onEsc)===null||W===void 0||W.call(d),d.show&&d.closeOnEsc&&eventEffectNotPerformed(G)&&!k.value&&$(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(B){const{clickedRef:G,clickPositionRef:W}=B;if(G.value&&W.value)return W.value}return S.value?E.value:null},mergedClsPrefixRef:A,mergedThemeRef:x,isMountedRef:P,appearRef:toRef$1(d,"internalAppear"),transformOriginRef:toRef$1(d,"transformOrigin")});const Y=computed(()=>{const{common:{cubicBezierEaseOut:G},self:{boxShadow:W,color:K,textColor:X}}=x.value;return{"--n-bezier-ease-out":G,"--n-box-shadow":W,"--n-color":K,"--n-text-color":X}}),U=C?useThemeClass("theme-class",void 0,Y,d):void 0;return{mergedClsPrefix:A,namespace:w,isMounted:P,containerRef:b,presetProps:computed(()=>keep(d,presetPropsKeys)),handleEsc:Q,handleAfterLeave:L,handleClickoutside:H,handleBeforeLeave:z,doUpdateShow:$,handleNegativeClick:F,handlePositiveClick:D,handleCloseClick:I,cssVars:C?void 0:Y,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender}},render(){const{mergedClsPrefix:d}=this;return h$1(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var b;(b=this.onRender)===null||b===void 0||b.call(this);const{unstableShowMask:A}=this;return withDirectives(h$1("div",{role:"none",ref:"containerRef",class:["".concat(d,"-modal-container"),this.themeClass,this.namespace],style:this.cssVars},h$1(NModalBodyWrapper,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:A?void 0:this.handleClickoutside,renderMask:A?()=>{var w;return h$1(Transition,{name:"fade-in-transition",key:"mask",appear:(w=this.internalAppear)!==null&&w!==void 0?w:this.isMounted},{default:()=>this.show?h$1("div",{"aria-hidden":!0,ref:"containerRef",class:"".concat(d,"-modal-mask"),onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}}),exposedDialogEnvProps=Object.assign(Object.assign({},dialogProps),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),NDialogEnvironment=defineComponent({name:"DialogEnvironment",props:Object.assign(Object.assign({},exposedDialogEnvProps),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(d){const b=ref(!0);function A(){const{onInternalAfterLeave:k,internalKey:$,onAfterLeave:I}=d;k&&k($),I&&I()}function w(k){const{onPositiveClick:$}=d;$?Promise.resolve($(k)).then(I=>{I!==!1&&P()}):P()}function C(k){const{onNegativeClick:$}=d;$?Promise.resolve($(k)).then(I=>{I!==!1&&P()}):P()}function x(){const{onClose:k}=d;k?Promise.resolve(k()).then($=>{$!==!1&&P()}):P()}function S(k){const{onMaskClick:$,maskClosable:I}=d;$&&($(k),I&&P())}function E(){const{onEsc:k}=d;k&&k()}function P(){b.value=!1}function B(k){b.value=k}return{show:b,hide:P,handleUpdateShow:B,handleAfterLeave:A,handleCloseClick:x,handleNegativeClick:C,handlePositiveClick:w,handleMaskClick:S,handleEsc:E}},render(){const{handlePositiveClick:d,handleUpdateShow:b,handleNegativeClick:A,handleCloseClick:w,handleAfterLeave:C,handleMaskClick:x,handleEsc:S,to:E,maskClosable:P,show:B}=this;return h$1(NModal,{show:B,onUpdateShow:b,onMaskClick:x,onEsc:S,to:E,maskClosable:P,onAfterEnter:this.onAfterEnter,onAfterLeave:C,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>h$1(NDialog,Object.assign({},keep(this.$props,dialogPropKeys),{style:this.internalStyle,onClose:w,onNegativeClick:A,onPositiveClick:d}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const d=ref([]),b={};function A(E={}){const P=createId(),B=reactive(Object.assign(Object.assign({},E),{key:P,destroy:()=>{b["n-dialog-".concat(P)].hide()}}));return d.value.push(B),B}const w=["info","success","warning","error"].map(E=>P=>A(Object.assign(Object.assign({},P),{type:E})));function C(E){const{value:P}=d;P.splice(P.findIndex(B=>B.key===E),1)}function x(){Object.values(b).forEach(E=>{E.hide()})}const S={create:A,destroyAll:x,info:w[0],success:w[1],warning:w[2],error:w[3]};return provide(dialogApiInjectionKey,S),provide(dialogProviderInjectionKey,{clickedRef:useClicked(64),clickPositionRef:useClickPosition()}),provide(dialogReactiveListInjectionKey,d),Object.assign(Object.assign({},S),{dialogList:d,dialogInstRefs:b,handleAfterLeave:C})},render(){var d,b;return h$1(Fragment,null,[this.dialogList.map(A=>h$1(NDialogEnvironment,omit(A,["destroy","style"],{internalStyle:A.style,to:this.to,ref:w=>{w===null?delete this.dialogInstRefs["n-dialog-".concat(A.key)]:this.dialogInstRefs["n-dialog-".concat(A.key)]=w},internalKey:A.key,onInternalAfterLeave:this.handleAfterLeave}))),(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d)])}});function useDialog(){const d=inject(dialogApiInjectionKey,null);return d===null&&throwError("use-dialog","No outer <n-dialog-provider /> founded."),d}const self$o=d=>{const{textColor1:b,dividerColor:A,fontWeightStrong:w}=d;return{textColor:b,color:A,fontWeight:w}},dividerDark={name:"Divider",common:commonDark,self:self$o},dividerDark$1=dividerDark,self$n=d=>{const{modalColor:b,textColor1:A,textColor2:w,boxShadow3:C,lineHeight:x,fontWeightStrong:S,dividerColor:E,closeColorHover:P,closeColorPressed:B,closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,borderRadius:D,primaryColorHover:F}=d;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:b,textColor:w,titleTextColor:A,titleFontSize:"18px",titleFontWeight:S,boxShadow:C,lineHeight:x,headerBorderBottom:"1px solid ".concat(E),footerBorderTop:"1px solid ".concat(E),closeIconColor:k,closeIconColorHover:$,closeIconColorPressed:I,closeSize:"22px",closeIconSize:"18px",closeColorHover:P,closeColorPressed:B,closeBorderRadius:D,resizableTriggerColorHover:F}},drawerDark={name:"Drawer",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$n},drawerDark$1=drawerDark,commonVariables$6={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},dynamicInputDark={name:"DynamicInput",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self(){return commonVariables$6}},dynamicInputDark$1=dynamicInputDark,commonVars$4={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},spaceDark={name:"Space",self(){return commonVars$4}},spaceDark$1=spaceDark,self$m=()=>commonVars$4,spaceLight={name:"Space",self:self$m},spaceLight$1=spaceLight;let supportFlexGap;const ensureSupportFlexGap=()=>{if(!isBrowser$2)return!0;if(supportFlexGap===void 0){const d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.rowGap="1px",d.appendChild(document.createElement("div")),d.appendChild(document.createElement("div")),document.body.appendChild(d);const b=d.scrollHeight===1;return document.body.removeChild(d),supportFlexGap=b}return supportFlexGap},spaceProps=Object.assign(Object.assign({},useTheme.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),NSpace=defineComponent({name:"Space",props:spaceProps,setup(d){const{mergedClsPrefixRef:b,mergedRtlRef:A}=useConfig(d),w=useTheme("Space","-space",void 0,spaceLight$1,d,b),C=useRtl("Space",A,b);return{useGap:ensureSupportFlexGap(),rtlEnabled:C,mergedClsPrefix:b,margin:computed(()=>{const{size:x}=d;if(Array.isArray(x))return{horizontal:x[0],vertical:x[1]};if(typeof x=="number")return{horizontal:x,vertical:x};const{self:{[createKey("gap",x)]:S}}=w.value,{row:E,col:P}=getGap(S);return{horizontal:depx(P),vertical:depx(E)}})}},render(){const{vertical:d,align:b,inline:A,justify:w,itemStyle:C,margin:x,wrap:S,mergedClsPrefix:E,rtlEnabled:P,useGap:B,wrapItem:k,internalUseGap:$}=this,I=flatten$4(getSlot$1(this));if(!I.length)return null;const D="".concat(x.horizontal,"px"),F="".concat(x.horizontal/2,"px"),z="".concat(x.vertical,"px"),L="".concat(x.vertical/2,"px"),H=I.length-1,Q=w.startsWith("space-");return h$1("div",{role:"none",class:["".concat(E,"-space"),P&&"".concat(E,"-space--rtl")],style:{display:A?"inline-flex":"flex",flexDirection:d?"column":"row",justifyContent:["start","end"].includes(w)?"flex-"+w:w,flexWrap:!S||d?"nowrap":"wrap",marginTop:B||d?"":"-".concat(L),marginBottom:B||d?"":"-".concat(L),alignItems:b,gap:B?"".concat(x.vertical,"px ").concat(x.horizontal,"px"):""}},!k&&(B||$)?I:I.map((Y,U)=>h$1("div",{role:"none",style:[C,{maxWidth:"100%"},B?"":d?{marginBottom:U!==H?z:""}:P?{marginLeft:Q?w==="space-between"&&U===H?"":F:U!==H?D:"",marginRight:Q?w==="space-between"&&U===0?"":F:"",paddingTop:L,paddingBottom:L}:{marginRight:Q?w==="space-between"&&U===H?"":F:U!==H?D:"",marginLeft:Q?w==="space-between"&&U===0?"":F:"",paddingTop:L,paddingBottom:L}]},Y)))}}),dynamicTagsDark={name:"DynamicTags",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,Tag:tagDark$1,Space:spaceDark$1},self(){return{inputWidth:"64px"}}},dynamicTagsDark$1=dynamicTagsDark,elementDark={name:"Element",common:commonDark},elementDark$1=elementDark,commonVariables$5={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},self$l=d=>{const{heightSmall:b,heightMedium:A,heightLarge:w,textColor1:C,errorColor:x,warningColor:S,lineHeight:E,textColor3:P}=d;return Object.assign(Object.assign({},commonVariables$5),{blankHeightSmall:b,blankHeightMedium:A,blankHeightLarge:w,lineHeight:E,labelTextColor:C,asteriskColor:x,feedbackTextColorError:x,feedbackTextColorWarning:S,feedbackTextColor:P})},formItemDark={name:"Form",common:commonDark,self:self$l},formDark=formItemDark,defaultSpan$1=1,gridInjectionKey="n-grid",defaultSpan=1,gridItemProps={span:{type:[Number,String],default:defaultSpan},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},NGi=defineComponent({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:gridItemProps,setup(){const{isSsrRef:d,xGapRef:b,itemStyleRef:A,overflowRef:w,layoutShiftDisabledRef:C}=inject(gridInjectionKey),x=getCurrentInstance();return{overflow:w,itemStyle:A,layoutShiftDisabled:C,mergedXGap:computed(()=>pxfy(b.value||0)),deriveStyle:()=>{d.value;const{privateSpan:S=defaultSpan,privateShow:E=!0,privateColStart:P=void 0,privateOffset:B=0}=x.vnode.props,{value:k}=b,$=pxfy(k||0);return{display:E?"":"none",gridColumn:"".concat(P!=null?P:"span ".concat(S)," / span ").concat(S),marginLeft:B?"calc((100% - (".concat(S," - 1) * ").concat($,") / ").concat(S," * ").concat(B," + ").concat($," * ").concat(B,")"):""}}}},render(){var d,b;if(this.layoutShiftDisabled){const{span:A,offset:w,mergedXGap:C}=this;return h$1("div",{style:{gridColumn:"span ".concat(A," / span ").concat(A),marginLeft:w?"calc((100% - (".concat(A," - 1) * ").concat(C,") / ").concat(A," * ").concat(w," + ").concat(C," * ").concat(w,")"):""}},this.$slots)}return h$1("div",{style:[this.itemStyle,this.deriveStyle()]},(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d,{overflow:this.overflow}))}}),gradientTextDark={name:"GradientText",common:commonDark,self(d){const{primaryColor:b,successColor:A,warningColor:w,errorColor:C,infoColor:x,primaryColorSuppl:S,successColorSuppl:E,warningColorSuppl:P,errorColorSuppl:B,infoColorSuppl:k,fontWeightStrong:$}=d;return{fontWeight:$,rotate:"252deg",colorStartPrimary:b,colorEndPrimary:S,colorStartInfo:x,colorEndInfo:k,colorStartWarning:w,colorEndWarning:P,colorStartError:C,colorEndError:B,colorStartSuccess:A,colorEndSuccess:E}}},gradientTextDark$1=gradientTextDark,defaultBreakpoints={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},defaultCols=24,SSR_ATTR_NAME="__ssr__",gridProps={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:defaultCols},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},NGrid=defineComponent({name:"Grid",inheritAttrs:!1,props:gridProps,setup(d){const{mergedClsPrefixRef:b,mergedBreakpointsRef:A}=useConfig(d),w=/^\d+$/,C=ref(void 0),x=useBreakpoints((A==null?void 0:A.value)||defaultBreakpoints),S=useMemo(()=>!!(d.itemResponsive||!w.test(d.cols.toString())||!w.test(d.xGap.toString())||!w.test(d.yGap.toString()))),E=computed(()=>{if(S.value)return d.responsive==="self"?C.value:x.value}),P=useMemo(()=>{var H;return(H=Number(parseResponsivePropValue(d.cols.toString(),E.value)))!==null&&H!==void 0?H:defaultCols}),B=useMemo(()=>parseResponsivePropValue(d.xGap.toString(),E.value)),k=useMemo(()=>parseResponsivePropValue(d.yGap.toString(),E.value)),$=H=>{C.value=H.contentRect.width},I=H=>{beforeNextFrameOnce($,H)},D=ref(!1),F=computed(()=>{if(d.responsive==="self")return I}),z=ref(!1),L=ref();return onMounted(()=>{const{value:H}=L;H&&H.hasAttribute(SSR_ATTR_NAME)&&(H.removeAttribute(SSR_ATTR_NAME),z.value=!0)}),provide(gridInjectionKey,{layoutShiftDisabledRef:toRef$1(d,"layoutShiftDisabled"),isSsrRef:z,itemStyleRef:toRef$1(d,"itemStyle"),xGapRef:B,overflowRef:D}),{isSsr:!isBrowser$2,contentEl:L,mergedClsPrefix:b,style:computed(()=>d.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(d.cols,", minmax(0, 1fr))"),columnGap:pxfy(d.xGap),rowGap:pxfy(d.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(P.value,", minmax(0, 1fr))"),columnGap:pxfy(B.value),rowGap:pxfy(k.value)}),isResponsive:S,responsiveQuery:E,responsiveCols:P,handleResize:F,overflow:D}},render(){if(this.layoutShiftDisabled)return h$1("div",mergeProps({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style},this.$attrs),this.$slots);const d=()=>{var b,A,w,C,x,S,E;this.overflow=!1;const P=flatten$4(getSlot$1(this)),B=[],{collapsed:k,collapsedRows:$,responsiveCols:I,responsiveQuery:D}=this;P.forEach(Q=>{var Y,U,G,W;if(((Y=Q==null?void 0:Q.type)===null||Y===void 0?void 0:Y.__GRID_ITEM__)!==!0)return;if(isNodeVShowFalse(Q)){const Z=cloneVNode(Q);Z.props?Z.props.privateShow=!1:Z.props={privateShow:!1},B.push({child:Z,rawChildSpan:0});return}Q.dirs=((U=Q.dirs)===null||U===void 0?void 0:U.filter(({dir:Z})=>Z!==vShow))||null;const K=cloneVNode(Q),X=Number((W=parseResponsivePropValue((G=K.props)===null||G===void 0?void 0:G.span,D))!==null&&W!==void 0?W:defaultSpan$1);X!==0&&B.push({child:K,rawChildSpan:X})});let F=0;const z=(b=B[B.length-1])===null||b===void 0?void 0:b.child;if(z!=null&&z.props){const Q=(A=z.props)===null||A===void 0?void 0:A.suffix;Q!==void 0&&Q!==!1&&(F=(C=(w=z.props)===null||w===void 0?void 0:w.span)!==null&&C!==void 0?C:defaultSpan$1,z.props.privateSpan=F,z.props.privateColStart=I+1-F,z.props.privateShow=(x=z.props.privateShow)!==null&&x!==void 0?x:!0)}let L=0,H=!1;for(const{child:Q,rawChildSpan:Y}of B){if(H&&(this.overflow=!0),!H){const U=Number((E=parseResponsivePropValue((S=Q.props)===null||S===void 0?void 0:S.offset,D))!==null&&E!==void 0?E:0),G=Math.min(Y+U,I);if(Q.props?(Q.props.privateSpan=G,Q.props.privateOffset=U):Q.props={privateSpan:G,privateOffset:U},k){const W=L%I;G+W>I&&(L+=I-W),G+L+F>$*I?H=!0:L+=G}}H&&(Q.props?Q.props.privateShow!==!0&&(Q.props.privateShow=!1):Q.props={privateShow:!1})}return h$1("div",mergeProps({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style,[SSR_ATTR_NAME]:this.isSsr||void 0},this.$attrs),B.map(({child:Q})=>Q))};return this.isResponsive&&this.responsive==="self"?h$1(VResizeObserver,{onResize:this.handleResize},{default:d}):d()}}),self$k=d=>{const{primaryColor:b,baseColor:A}=d;return{color:b,iconColor:A}},iconDark={name:"IconWrapper",common:commonDark,self:self$k},iconWrapperDark=iconDark,commonVars$3={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},self$j=d=>{const{textColor2:b,successColor:A,infoColor:w,warningColor:C,errorColor:x,popoverColor:S,closeIconColor:E,closeIconColorHover:P,closeIconColorPressed:B,closeColorHover:k,closeColorPressed:$,textColor1:I,textColor3:D,borderRadius:F,fontWeightStrong:z,boxShadow2:L,lineHeight:H,fontSize:Q}=d;return Object.assign(Object.assign({},commonVars$3),{borderRadius:F,lineHeight:H,fontSize:Q,headerFontWeight:z,iconColor:b,iconColorSuccess:A,iconColorInfo:w,iconColorWarning:C,iconColorError:x,color:S,textColor:b,closeIconColor:E,closeIconColorHover:P,closeIconColorPressed:B,closeBorderRadius:F,closeColorHover:k,closeColorPressed:$,headerTextColor:I,descriptionTextColor:D,actionTextColor:b,boxShadow:L})},notificationLight={name:"Notification",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$j},notificationLight$1=notificationLight,notificationDark={name:"Notification",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$j},notificationDark$1=notificationDark,commonVariables$4={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},self$i=d=>{const{textColor2:b,closeIconColor:A,closeIconColorHover:w,closeIconColorPressed:C,infoColor:x,successColor:S,errorColor:E,warningColor:P,popoverColor:B,boxShadow2:k,primaryColor:$,lineHeight:I,borderRadius:D,closeColorHover:F,closeColorPressed:z}=d;return Object.assign(Object.assign({},commonVariables$4),{closeBorderRadius:D,textColor:b,textColorInfo:b,textColorSuccess:b,textColorError:b,textColorWarning:b,textColorLoading:b,color:B,colorInfo:B,colorSuccess:B,colorError:B,colorWarning:B,colorLoading:B,boxShadow:k,boxShadowInfo:k,boxShadowSuccess:k,boxShadowError:k,boxShadowWarning:k,boxShadowLoading:k,iconColor:b,iconColorInfo:x,iconColorSuccess:S,iconColorWarning:P,iconColorError:E,iconColorLoading:$,closeColorHover:F,closeColorPressed:z,closeIconColor:A,closeIconColorHover:w,closeIconColorPressed:C,closeColorHoverInfo:F,closeColorPressedInfo:z,closeIconColorInfo:A,closeIconColorHoverInfo:w,closeIconColorPressedInfo:C,closeColorHoverSuccess:F,closeColorPressedSuccess:z,closeIconColorSuccess:A,closeIconColorHoverSuccess:w,closeIconColorPressedSuccess:C,closeColorHoverError:F,closeColorPressedError:z,closeIconColorError:A,closeIconColorHoverError:w,closeIconColorPressedError:C,closeColorHoverWarning:F,closeColorPressedWarning:z,closeIconColorWarning:A,closeIconColorHoverWarning:w,closeIconColorPressedWarning:C,closeColorHoverLoading:F,closeColorPressedLoading:z,closeIconColorLoading:A,closeIconColorHoverLoading:w,closeIconColorPressedLoading:C,loadingColor:$,lineHeight:I,borderRadius:D})},messageLight={name:"Message",common:commonLight,self:self$i},messageLight$1=messageLight,messageDark={name:"Message",common:commonDark,self:self$i},messageDark$1=messageDark,buttonGroupDark={name:"ButtonGroup",common:commonDark},buttonGroupDark$1=buttonGroupDark,inputNumberDark={name:"InputNumber",common:commonDark,peers:{Button:buttonDark$1,Input:inputDark$1},self(d){const{textColorDisabled:b}=d;return{iconColorDisabled:b}}},inputNumberDark$1=inputNumberDark,self$h=d=>{const{textColorDisabled:b}=d;return{iconColorDisabled:b}},inputNumberLight={name:"InputNumber",common:commonLight,peers:{Button:buttonLight$1,Input:inputLight$1},self:self$h},inputNumberLight$1=inputNumberLight,layoutDark={name:"Layout",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self(d){const{textColor2:b,bodyColor:A,popoverColor:w,cardColor:C,dividerColor:x,scrollbarColor:S,scrollbarColorHover:E}=d;return{textColor:b,textColorInverted:b,color:A,colorEmbedded:A,headerColor:C,headerColorInverted:C,footerColor:C,footerColorInverted:C,headerBorderColor:x,headerBorderColorInverted:x,footerBorderColor:x,footerBorderColorInverted:x,siderBorderColor:x,siderBorderColorInverted:x,siderColor:C,siderColorInverted:C,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:w,siderToggleButtonIconColor:b,siderToggleButtonIconColorInverted:b,siderToggleBarColor:composite(A,S),siderToggleBarColorHover:composite(A,E),__invertScrollbar:"false"}}},layoutDark$1=layoutDark,self$g=d=>{const{textColor2:b,cardColor:A,modalColor:w,popoverColor:C,dividerColor:x,borderRadius:S,fontSize:E,hoverColor:P}=d;return{textColor:b,color:A,colorHover:P,colorModal:w,colorHoverModal:composite(w,P),colorPopover:C,colorHoverPopover:composite(C,P),borderColor:x,borderColorModal:composite(w,x),borderColorPopover:composite(C,x),borderRadius:S,fontSize:E}},listDark$1={name:"List",common:commonDark,self:self$g},listDark$2=listDark$1,loadingBarDark={name:"LoadingBar",common:commonDark,self(d){const{primaryColor:b}=d;return{colorError:"red",colorLoading:b,height:"2px"}}},loadingBarDark$1=loadingBarDark,logDark={name:"Log",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Code:codeDark$1},self(d){const{textColor2:b,inputColor:A,fontSize:w,primaryColor:C}=d;return{loaderFontSize:w,loaderTextColor:b,loaderColor:A,loaderBorder:"1px solid #0000",loadingColor:C}}},logDark$1=logDark,listDark={name:"Mention",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self(d){const{boxShadow2:b}=d;return{menuBoxShadow:b}}},mentionDark=listDark;function createPartialInvertedVars(d,b,A,w){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:b,itemColorActiveHoverInverted:b,itemColorActiveCollapsedInverted:b,itemTextColorInverted:d,itemTextColorHoverInverted:A,itemTextColorChildActiveInverted:A,itemTextColorChildActiveHoverInverted:A,itemTextColorActiveInverted:A,itemTextColorActiveHoverInverted:A,itemTextColorHorizontalInverted:d,itemTextColorHoverHorizontalInverted:A,itemTextColorChildActiveHorizontalInverted:A,itemTextColorChildActiveHoverHorizontalInverted:A,itemTextColorActiveHorizontalInverted:A,itemTextColorActiveHoverHorizontalInverted:A,itemIconColorInverted:d,itemIconColorHoverInverted:A,itemIconColorActiveInverted:A,itemIconColorActiveHoverInverted:A,itemIconColorChildActiveInverted:A,itemIconColorChildActiveHoverInverted:A,itemIconColorCollapsedInverted:d,itemIconColorHorizontalInverted:d,itemIconColorHoverHorizontalInverted:A,itemIconColorActiveHorizontalInverted:A,itemIconColorActiveHoverHorizontalInverted:A,itemIconColorChildActiveHorizontalInverted:A,itemIconColorChildActiveHoverHorizontalInverted:A,arrowColorInverted:d,arrowColorHoverInverted:A,arrowColorActiveInverted:A,arrowColorActiveHoverInverted:A,arrowColorChildActiveInverted:A,arrowColorChildActiveHoverInverted:A,groupTextColorInverted:w}}const self$f=d=>{const{borderRadius:b,textColor3:A,primaryColor:w,textColor2:C,textColor1:x,fontSize:S,dividerColor:E,hoverColor:P,primaryColorHover:B}=d;return Object.assign({borderRadius:b,color:"#0000",groupTextColor:A,itemColorHover:P,itemColorActive:changeColor(w,{alpha:.1}),itemColorActiveHover:changeColor(w,{alpha:.1}),itemColorActiveCollapsed:changeColor(w,{alpha:.1}),itemTextColor:C,itemTextColorHover:C,itemTextColorActive:w,itemTextColorActiveHover:w,itemTextColorChildActive:w,itemTextColorChildActiveHover:w,itemTextColorHorizontal:C,itemTextColorHoverHorizontal:B,itemTextColorActiveHorizontal:w,itemTextColorActiveHoverHorizontal:w,itemTextColorChildActiveHorizontal:w,itemTextColorChildActiveHoverHorizontal:w,itemIconColor:x,itemIconColorHover:x,itemIconColorActive:w,itemIconColorActiveHover:w,itemIconColorChildActive:w,itemIconColorChildActiveHover:w,itemIconColorCollapsed:x,itemIconColorHorizontal:x,itemIconColorHoverHorizontal:B,itemIconColorActiveHorizontal:w,itemIconColorActiveHoverHorizontal:w,itemIconColorChildActiveHorizontal:w,itemIconColorChildActiveHoverHorizontal:w,itemHeight:"42px",arrowColor:C,arrowColorHover:C,arrowColorActive:w,arrowColorActiveHover:w,arrowColorChildActive:w,arrowColorChildActiveHover:w,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:S,dividerColor:E},createPartialInvertedVars("#BBB",w,"#FFF","#AAA"))},menuDark={name:"Menu",common:commonDark,peers:{Tooltip:tooltipDark$1,Dropdown:dropdownDark$1},self(d){const{primaryColor:b,primaryColorSuppl:A}=d,w=self$f(d);return w.itemColorActive=changeColor(b,{alpha:.15}),w.itemColorActiveHover=changeColor(b,{alpha:.15}),w.itemColorActiveCollapsed=changeColor(b,{alpha:.15}),w.itemColorActiveInverted=A,w.itemColorActiveHoverInverted=A,w.itemColorActiveCollapsedInverted=A,w}},menuDark$1=menuDark,common={titleFontSize:"18px",backSize:"22px"};function self$e(d){const{textColor1:b,textColor2:A,textColor3:w,fontSize:C,fontWeightStrong:x,primaryColorHover:S,primaryColorPressed:E}=d;return Object.assign(Object.assign({},common),{titleFontWeight:x,fontSize:C,titleTextColor:b,backColor:A,backColorHover:S,backColorPressed:E,subtitleTextColor:w})}const pageHeaderDark={name:"PageHeader",common:commonDark,self:self$e},commonVars$2={iconSize:"22px"},self$d=d=>{const{fontSize:b,warningColor:A}=d;return Object.assign(Object.assign({},commonVars$2),{fontSize:b,iconColor:A})},popconfirmDark={name:"Popconfirm",common:commonDark,peers:{Button:buttonDark$1,Popover:popoverDark$1},self:self$d},popconfirmDark$1=popconfirmDark,self$c=d=>{const{infoColor:b,successColor:A,warningColor:w,errorColor:C,textColor2:x,progressRailColor:S,fontSize:E,fontWeight:P}=d;return{fontSize:E,fontSizeCircle:"28px",fontWeightCircle:P,railColor:S,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:b,iconColorInfo:b,iconColorSuccess:A,iconColorWarning:w,iconColorError:C,textColorCircle:x,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:x,fillColor:b,fillColorInfo:b,fillColorSuccess:A,fillColorWarning:w,fillColorError:C,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressDark={name:"Progress",common:commonDark,self(d){const b=self$c(d);return b.textColorLineInner="rgb(0, 0, 0)",b.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",b}},progressDark$1=progressDark,rateDark={name:"Rate",common:commonDark,self(d){const{railColor:b}=d;return{itemColor:b,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},rateDark$1=rateDark,commonVariables$3={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},self$b=d=>{const{textColor2:b,textColor1:A,errorColor:w,successColor:C,infoColor:x,warningColor:S,lineHeight:E,fontWeightStrong:P}=d;return Object.assign(Object.assign({},commonVariables$3),{lineHeight:E,titleFontWeight:P,titleTextColor:A,textColor:b,iconColorError:w,iconColorSuccess:C,iconColorInfo:x,iconColorWarning:S})},resultDark={name:"Result",common:commonDark,self:self$b},resultDark$1=resultDark,sizeVariables$3={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},sliderDark={name:"Slider",common:commonDark,self(d){const b="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:A,modalColor:w,primaryColorSuppl:C,popoverColor:x,textColor2:S,cardColor:E,borderRadius:P,fontSize:B,opacityDisabled:k}=d;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:B,markFontSize:B,railColor:A,railColorHover:A,fillColor:C,fillColorHover:C,opacityDisabled:k,handleColor:"#FFF",dotColor:E,dotColorModal:w,dotColorPopover:x,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:x,indicatorBoxShadow:b,indicatorTextColor:S,indicatorBorderRadius:P,dotBorder:"2px solid ".concat(A),dotBorderActive:"2px solid ".concat(C),dotBoxShadow:""})}},sliderDark$1=sliderDark,self$a=d=>{const{opacityDisabled:b,heightTiny:A,heightSmall:w,heightMedium:C,heightLarge:x,heightHuge:S,primaryColor:E,fontSize:P}=d;return{fontSize:P,textColor:E,sizeTiny:A,sizeSmall:w,sizeMedium:C,sizeLarge:x,sizeHuge:S,color:E,opacitySpinning:b}},spinLight={name:"Spin",common:commonLight,self:self$a},spinLight$1=spinLight,spinDark={name:"Spin",common:commonDark,self:self$a},spinDark$1=spinDark,self$9=d=>{const{textColor2:b,textColor3:A,fontSize:w,fontWeight:C}=d;return{labelFontSize:w,labelFontWeight:C,valueFontWeight:C,valueFontSize:"24px",labelTextColor:A,valuePrefixTextColor:b,valueSuffixTextColor:b,valueTextColor:b}},statisticDark={name:"Statistic",common:commonDark,self:self$9},statisticDark$1=statisticDark,commonVariables$2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},self$8=d=>{const{fontWeightStrong:b,baseColor:A,textColorDisabled:w,primaryColor:C,errorColor:x,textColor1:S,textColor2:E}=d;return Object.assign(Object.assign({},commonVariables$2),{stepHeaderFontWeight:b,indicatorTextColorProcess:A,indicatorTextColorWait:w,indicatorTextColorFinish:C,indicatorTextColorError:x,indicatorBorderColorProcess:C,indicatorBorderColorWait:w,indicatorBorderColorFinish:C,indicatorBorderColorError:x,indicatorColorProcess:C,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:w,splitorColorWait:w,splitorColorFinish:C,splitorColorError:w,headerTextColorProcess:S,headerTextColorWait:w,headerTextColorFinish:w,headerTextColorError:x,descriptionTextColorProcess:E,descriptionTextColorWait:w,descriptionTextColorFinish:w,descriptionTextColorError:x})},stepsDark={name:"Steps",common:commonDark,self:self$8},stepsDark$1=stepsDark,commonVars$1={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},switchDark={name:"Switch",common:commonDark,self(d){const{primaryColorSuppl:b,opacityDisabled:A,borderRadius:w,primaryColor:C,textColor2:x,baseColor:S}=d,E="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},commonVars$1),{iconColor:S,textColor:x,loadingColor:b,opacityDisabled:A,railColor:E,railColorActive:b,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:w,railBorderRadiusMedium:w,railBorderRadiusLarge:w,buttonBorderRadiusSmall:w,buttonBorderRadiusMedium:w,buttonBorderRadiusLarge:w,boxShadowFocus:"0 0 8px 0 ".concat(changeColor(C,{alpha:.3}))})}},switchDark$1=switchDark,sizeVariables$2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},self$7=d=>{const{dividerColor:b,cardColor:A,modalColor:w,popoverColor:C,tableHeaderColor:x,tableColorStriped:S,textColor1:E,textColor2:P,borderRadius:B,fontWeightStrong:k,lineHeight:$,fontSizeSmall:I,fontSizeMedium:D,fontSizeLarge:F}=d;return Object.assign(Object.assign({},sizeVariables$2),{fontSizeSmall:I,fontSizeMedium:D,fontSizeLarge:F,lineHeight:$,borderRadius:B,borderColor:composite(A,b),borderColorModal:composite(w,b),borderColorPopover:composite(C,b),tdColor:A,tdColorModal:w,tdColorPopover:C,tdColorStriped:composite(A,S),tdColorStripedModal:composite(w,S),tdColorStripedPopover:composite(C,S),thColor:composite(A,x),thColorModal:composite(w,x),thColorPopover:composite(C,x),thTextColor:E,tdTextColor:P,thFontWeight:k})},tableLight={name:"Table",common:commonLight,self:self$7},tableLight$1=tableLight,tableDark={name:"Table",common:commonDark,self:self$7},tableDark$1=tableDark,sizeVariables$1={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},self$6=d=>{const{textColor2:b,primaryColor:A,textColorDisabled:w,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,tabColor:B,baseColor:k,dividerColor:$,fontWeight:I,textColor1:D,borderRadius:F,fontSize:z,fontWeightStrong:L}=d;return Object.assign(Object.assign({},sizeVariables$1),{colorSegment:B,tabFontSizeCard:z,tabTextColorLine:D,tabTextColorActiveLine:A,tabTextColorHoverLine:A,tabTextColorDisabledLine:w,tabTextColorSegment:D,tabTextColorActiveSegment:b,tabTextColorHoverSegment:b,tabTextColorDisabledSegment:w,tabTextColorBar:D,tabTextColorActiveBar:A,tabTextColorHoverBar:A,tabTextColorDisabledBar:w,tabTextColorCard:D,tabTextColorHoverCard:D,tabTextColorActiveCard:A,tabTextColorDisabledCard:w,barColor:A,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,closeBorderRadius:F,tabColor:B,tabColorSegment:k,tabBorderColor:$,tabFontWeightActive:I,tabFontWeight:I,tabBorderRadius:F,paneTextColor:b,fontWeightStrong:L})},tabsLight={name:"Tabs",common:commonLight,self:self$6},tabsLight$1=tabsLight,tabsDark={name:"Tabs",common:commonDark,self(d){const b=self$6(d),{inputColor:A}=d;return b.colorSegment=A,b.tabColorSegment=A,b}},tabsDark$1=tabsDark,self$5=d=>{const{textColor1:b,textColor2:A,fontWeightStrong:w,fontSize:C}=d;return{fontSize:C,titleTextColor:b,textColor:A,titleFontWeight:w}},thingDark={name:"Thing",common:commonDark,self:self$5},thingDark$1=thingDark,sizeVariables={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},timelineDark={name:"Timeline",common:commonDark,self(d){const{textColor3:b,infoColorSuppl:A,errorColorSuppl:w,successColorSuppl:C,warningColorSuppl:x,textColor1:S,textColor2:E,railColor:P,fontWeightStrong:B,fontSize:k}=d;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:k,titleFontWeight:B,circleBorder:"2px solid ".concat(b),circleBorderInfo:"2px solid ".concat(A),circleBorderError:"2px solid ".concat(w),circleBorderSuccess:"2px solid ".concat(C),circleBorderWarning:"2px solid ".concat(x),iconColor:b,iconColorInfo:A,iconColorError:w,iconColorSuccess:C,iconColorWarning:x,titleTextColor:S,contentTextColor:E,metaTextColor:b,lineColor:P})}},timelineDark$1=timelineDark,commonVariables$1={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},transferDark$1={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(d){const{fontWeight:b,fontSizeLarge:A,fontSizeMedium:w,fontSizeSmall:C,heightLarge:x,heightMedium:S,borderRadius:E,inputColor:P,tableHeaderColor:B,textColor1:k,textColorDisabled:$,textColor2:I,textColor3:D,hoverColor:F,closeColorHover:z,closeColorPressed:L,closeIconColor:H,closeIconColorHover:Q,closeIconColorPressed:Y,dividerColor:U}=d;return Object.assign(Object.assign({},commonVariables$1),{itemHeightSmall:S,itemHeightMedium:S,itemHeightLarge:x,fontSizeSmall:C,fontSizeMedium:w,fontSizeLarge:A,borderRadius:E,dividerColor:U,borderColor:"#0000",listColor:P,headerColor:B,titleTextColor:k,titleTextColorDisabled:$,extraTextColor:D,extraTextColorDisabled:$,itemTextColor:I,itemTextColorDisabled:$,itemColorPending:F,titleFontWeight:b,closeColorHover:z,closeColorPressed:L,closeIconColor:H,closeIconColorHover:Q,closeIconColorPressed:Y})}},transferDark$2=transferDark$1,self$4=d=>{const{borderRadiusSmall:b,hoverColor:A,pressedColor:w,primaryColor:C,textColor3:x,textColor2:S,textColorDisabled:E,fontSize:P}=d;return{fontSize:P,nodeBorderRadius:b,nodeColorHover:A,nodeColorPressed:w,nodeColorActive:changeColor(C,{alpha:.1}),arrowColor:x,nodeTextColor:S,nodeTextColorDisabled:E,loadingColor:C,dropMarkColor:C}},treeDark={name:"Tree",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self(d){const{primaryColor:b}=d,A=self$4(d);return A.nodeColorActive=changeColor(b,{alpha:.15}),A}},treeDark$1=treeDark,treeSelectDark={name:"TreeSelect",common:commonDark,peers:{Tree:treeDark$1,Empty:emptyDark$1,InternalSelection:internalSelectionDark$1}},treeSelectDark$1=treeSelectDark,commonVars={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},self$3=d=>{const{primaryColor:b,textColor2:A,borderColor:w,lineHeight:C,fontSize:x,borderRadiusSmall:S,dividerColor:E,fontWeightStrong:P,textColor1:B,textColor3:k,infoColor:$,warningColor:I,errorColor:D,successColor:F,codeColor:z}=d;return Object.assign(Object.assign({},commonVars),{aTextColor:b,blockquoteTextColor:A,blockquotePrefixColor:w,blockquoteLineHeight:C,blockquoteFontSize:x,codeBorderRadius:S,liTextColor:A,liLineHeight:C,liFontSize:x,hrColor:E,headerFontWeight:P,headerTextColor:B,pTextColor:A,pTextColor1Depth:B,pTextColor2Depth:A,pTextColor3Depth:k,pLineHeight:C,pFontSize:x,headerBarColor:b,headerBarColorPrimary:b,headerBarColorInfo:$,headerBarColorError:D,headerBarColorWarning:I,headerBarColorSuccess:F,textColor:A,textColor1Depth:B,textColor2Depth:A,textColor3Depth:k,textColorPrimary:b,textColorInfo:$,textColorSuccess:F,textColorWarning:I,textColorError:D,codeTextColor:A,codeColor:z,codeBorder:"1px solid #0000"})},typographyDark={name:"Typography",common:commonDark,self:self$3},typographyDark$1=typographyDark,self$2=d=>{const{iconColor:b,primaryColor:A,errorColor:w,textColor2:C,successColor:x,opacityDisabled:S,actionColor:E,borderColor:P,hoverColor:B,lineHeight:k,borderRadius:$,fontSize:I}=d;return{fontSize:I,lineHeight:k,borderRadius:$,draggerColor:E,draggerBorder:"1px dashed ".concat(P),draggerBorderHover:"1px dashed ".concat(A),itemColorHover:B,itemColorHoverError:changeColor(w,{alpha:.06}),itemTextColor:C,itemTextColorError:w,itemTextColorSuccess:x,itemIconColor:b,itemDisabledOpacity:S,itemBorderImageCardError:"1px solid ".concat(w),itemBorderImageCard:"1px solid ".concat(P)}},uploadDark={name:"Upload",common:commonDark,peers:{Button:buttonDark$1,Progress:progressDark$1},self(d){const{errorColor:b}=d,A=self$2(d);return A.itemColorHoverError=changeColor(b,{alpha:.09}),A}},uploadDark$1=uploadDark,watermarkDark={name:"Watermark",common:commonDark,self(d){const{fontFamily:b}=d;return{fontFamily:b}}},watermarkDark$1=watermarkDark,rowDark={name:"Row",common:commonDark},rowDark$1=rowDark,imageDark={name:"Image",common:commonDark,peers:{Tooltip:tooltipDark$1},self:d=>{const{textColor2:b}=d;return{toolbarIconColor:b,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function parse(d){return d==null||typeof d=="string"&&d.trim()===""?null:Number(d)}function isWipValue(d){return d.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(d)||/^\.\d+$/.test(d))}function validator(d){return d==null?!0:!Number.isNaN(d)}function format(d,b){return d==null?"":b===void 0?String(d):d.toFixed(b)}function parseNumber(d){if(d===null)return null;if(typeof d=="number")return d;{const b=Number(d);return Number.isNaN(b)?null:b}}const style$5=c$3([cB("input-number-suffix","\n display: inline-block;\n margin-right: 10px;\n "),cB("input-number-prefix","\n display: inline-block;\n margin-left: 10px;\n ")]),HOLDING_CHANGE_THRESHOLD=800,HOLDING_CHANGE_INTERVAL=100,inputNumberProps=Object.assign(Object.assign({},useTheme.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),NInputNumber=defineComponent({name:"InputNumber",props:inputNumberProps,setup(d){const{mergedBorderedRef:b,mergedClsPrefixRef:A,mergedRtlRef:w}=useConfig(d),C=useTheme("InputNumber","-input-number",style$5,inputNumberLight$1,d,A),{localeRef:x}=useLocale("InputNumber"),S=useFormItem(d),{mergedSizeRef:E,mergedDisabledRef:P,mergedStatusRef:B}=S,k=ref(null),$=ref(null),I=ref(null),D=ref(d.defaultValue),F=toRef$1(d,"value"),z=useMergedState(F,D),L=ref(""),H=ie=>{const be=String(ie).split(".")[1];return be?be.length:0},Q=ie=>{const be=[d.min,d.max,d.step,ie].map(Ee=>Ee===void 0?0:H(Ee));return Math.max(...be)},Y=useMemo(()=>{const{placeholder:ie}=d;return ie!==void 0?ie:x.value.placeholder}),U=useMemo(()=>{const ie=parseNumber(d.step);return ie!==null?ie===0?1:Math.abs(ie):1}),G=useMemo(()=>{const ie=parseNumber(d.min);return ie!==null?ie:null}),W=useMemo(()=>{const ie=parseNumber(d.max);return ie!==null?ie:null}),K=ie=>{const{value:be}=z;if(ie===be){Z();return}const{"onUpdate:value":Ee,onUpdateValue:Ce,onChange:ge}=d,{nTriggerFormInput:Ie,nTriggerFormChange:Le}=S;ge&&call$1(ge,ie),Ce&&call$1(Ce,ie),Ee&&call$1(Ee,ie),D.value=ie,Ie(),Le()},X=({offset:ie,doUpdateIfValid:be,fixPrecision:Ee,isInputing:Ce})=>{const{value:ge}=L;if(Ce&&isWipValue(ge))return!1;const Ie=(d.parse||parse)(ge);if(Ie===null)return be&&K(null),null;if(validator(Ie)){const Le=H(Ie),{precision:Ye}=d;if(Ye!==void 0&&Ye<Le&&!Ee)return!1;let rt=parseFloat((Ie+ie).toFixed(Ye!=null?Ye:Q(Ie)));if(validator(rt)){const{value:lt}=W,{value:pt}=G;if(lt!==null&&rt>lt){if(!be||Ce)return!1;rt=lt}if(pt!==null&&rt<pt){if(!be||Ce)return!1;rt=pt}return d.validator&&!d.validator(rt)?!1:(be&&K(rt),rt)}}return!1},Z=()=>{const{value:ie}=z;if(validator(ie)){const{format:be,precision:Ee}=d;be?L.value=be(ie):ie===null||Ee===void 0||H(ie)>Ee?L.value=format(ie,void 0):L.value=format(ie,Ee)}else L.value=String(ie)};Z();const oe=useMemo(()=>X({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),he=useMemo(()=>{const{value:ie}=z;if(d.validator&&ie===null)return!1;const{value:be}=U;return X({offset:-be,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),J=useMemo(()=>{const{value:ie}=z;if(d.validator&&ie===null)return!1;const{value:be}=U;return X({offset:+be,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function le(ie){const{onFocus:be}=d,{nTriggerFormFocus:Ee}=S;be&&call$1(be,ie),Ee()}function de(ie){var be,Ee;if(ie.target===((be=k.value)===null||be===void 0?void 0:be.wrapperElRef))return;const Ce=X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(Ce!==!1){const Le=(Ee=k.value)===null||Ee===void 0?void 0:Ee.inputElRef;Le&&(Le.value=String(Ce||"")),z.value===Ce&&Z()}else Z();const{onBlur:ge}=d,{nTriggerFormBlur:Ie}=S;ge&&call$1(ge,ie),Ie(),nextTick(()=>{Z()})}function me(ie){const{onClear:be}=d;be&&call$1(be,ie)}function ne(){const{value:ie}=J;if(!ie){$e();return}const{value:be}=z;if(be===null)d.validator||K(we());else{const{value:Ee}=U;X({offset:Ee,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function re(){const{value:ie}=he;if(!ie){it();return}const{value:be}=z;if(be===null)d.validator||K(we());else{const{value:Ee}=U;X({offset:-Ee,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const fe=le,ce=de;function we(){if(d.validator)return null;const{value:ie}=G,{value:be}=W;return ie!==null?Math.max(0,ie):be!==null?Math.min(0,be):0}function Fe(ie){me(ie),K(null)}function Ke(ie){var be,Ee,Ce;!((be=I.value)===null||be===void 0)&&be.$el.contains(ie.target)&&ie.preventDefault(),!((Ee=$.value)===null||Ee===void 0)&&Ee.$el.contains(ie.target)&&ie.preventDefault(),(Ce=k.value)===null||Ce===void 0||Ce.activate()}let tt=null,ut=null,dt=null;function it(){dt&&(window.clearTimeout(dt),dt=null),tt&&(window.clearInterval(tt),tt=null)}function $e(){Oe&&(window.clearTimeout(Oe),Oe=null),ut&&(window.clearInterval(ut),ut=null)}function ke(){it(),dt=window.setTimeout(()=>{tt=window.setInterval(()=>{re()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,it,{once:!0})}let Oe=null;function Qe(){$e(),Oe=window.setTimeout(()=>{ut=window.setInterval(()=>{ne()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,$e,{once:!0})}const Je=()=>{ut||ne()},ve=()=>{tt||re()};function ye(ie){var be,Ee;if(ie.key==="Enter"){if(ie.target===((be=k.value)===null||be===void 0?void 0:be.wrapperElRef))return;X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((Ee=k.value)===null||Ee===void 0||Ee.deactivate())}else if(ie.key==="ArrowUp"){if(!J.value||d.keyboard.ArrowUp===!1)return;ie.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ne()}else if(ie.key==="ArrowDown"){if(!he.value||d.keyboard.ArrowDown===!1)return;ie.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&re()}}function Te(ie){L.value=ie,d.updateValueOnInput&&!d.format&&!d.parse&&d.precision===void 0&&X({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch(z,()=>{Z()});const ee={focus:()=>{var ie;return(ie=k.value)===null||ie===void 0?void 0:ie.focus()},blur:()=>{var ie;return(ie=k.value)===null||ie===void 0?void 0:ie.blur()}},se=useRtl("InputNumber",w,A);return Object.assign(Object.assign({},ee),{rtlEnabled:se,inputInstRef:k,minusButtonInstRef:$,addButtonInstRef:I,mergedClsPrefix:A,mergedBordered:b,uncontrolledValue:D,mergedValue:z,mergedPlaceholder:Y,displayedValueInvalid:oe,mergedSize:E,mergedDisabled:P,displayedValue:L,addable:J,minusable:he,mergedStatus:B,handleFocus:fe,handleBlur:ce,handleClear:Fe,handleMouseDown:Ke,handleAddClick:Je,handleMinusClick:ve,handleAddMousedown:Qe,handleMinusMousedown:ke,handleKeyDown:ye,handleUpdateDisplayedValue:Te,mergedTheme:C,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:ie}}=C.value,[be,Ee,Ce,ge]=rgba(ie);return{textColorTextDisabled:"rgb(".concat(be,", ").concat(Ee,", ").concat(Ce,")"),opacityDisabled:"".concat(ge)}})})},render(){const{mergedClsPrefix:d,$slots:b}=this,A=()=>h$1(XButton,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>resolveSlot(b["minus-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(RemoveIcon,null)})])}),w=()=>h$1(XButton,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>resolveSlot(b["add-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(AddIcon,null)})])});return h$1("div",{class:["".concat(d,"-input-number"),this.rtlEnabled&&"".concat(d,"-input-number--rtl")]},h$1(NInput,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var C;return this.showButton&&this.buttonPlacement==="both"?[A(),resolveWrappedSlot(b.prefix,x=>x?h$1("span",{class:"".concat(d,"-input-number-prefix")},x):null)]:(C=b.prefix)===null||C===void 0?void 0:C.call(b)},suffix:()=>{var C;return this.showButton?[resolveWrappedSlot(b.suffix,x=>x?h$1("span",{class:"".concat(d,"-input-number-suffix")},x):null),this.buttonPlacement==="right"?A():null,w()]:(C=b.suffix)===null||C===void 0?void 0:C.call(b)}}))}}),commonVariables={extraFontSize:"12px",width:"440px"},transferDark={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(d){const{iconColorDisabled:b,iconColor:A,fontWeight:w,fontSizeLarge:C,fontSizeMedium:x,fontSizeSmall:S,heightLarge:E,heightMedium:P,heightSmall:B,borderRadius:k,inputColor:$,tableHeaderColor:I,textColor1:D,textColorDisabled:F,textColor2:z,hoverColor:L}=d;return Object.assign(Object.assign({},commonVariables),{itemHeightSmall:B,itemHeightMedium:P,itemHeightLarge:E,fontSizeSmall:S,fontSizeMedium:x,fontSizeLarge:C,borderRadius:k,borderColor:"#0000",listColor:$,headerColor:I,titleTextColor:D,titleTextColorDisabled:F,extraTextColor:z,filterDividerColor:"#0000",itemTextColor:z,itemTextColorDisabled:F,itemColorPending:L,titleFontWeight:w,iconColor:A,iconColorDisabled:b})}},legacyTransferDark=transferDark,messageProps={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},messageApiInjectionKey="n-message-api",messageProviderInjectionKey="n-message-provider",style$4=c$3([cB("message-wrapper","\n margin: var(--n-margin);\n z-index: 0;\n transform-origin: top center;\n display: flex;\n ",[fadeInHeightExpandTransition({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),cB("message","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n margin-bottom .3s var(--n-bezier);\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n flex-wrap: nowrap;\n overflow: hidden;\n max-width: var(--n-max-width);\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-shadow: var(--n-box-shadow);\n ",[cE("content","\n display: inline-block;\n line-height: var(--n-line-height);\n font-size: var(--n-font-size);\n "),cE("icon","\n position: relative;\n margin: var(--n-icon-margin);\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n flex-shrink: 0;\n ",[["default","info","success","warning","error","loading"].map(d=>cM("".concat(d,"-type"),[c$3("> *","\n color: var(--n-icon-color-".concat(d,");\n transition: color .3s var(--n-bezier);\n "))])),c$3("> *","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ",[iconSwitchTransition()])]),cE("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n flex-shrink: 0;\n ",[c$3("&:hover","\n color: var(--n-close-icon-color-hover);\n "),c$3("&:active","\n color: var(--n-close-icon-color-pressed);\n ")])]),cB("message-container","\n z-index: 6000;\n position: fixed;\n height: 0;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: center;\n ",[cM("top","\n top: 12px;\n left: 0;\n right: 0;\n "),cM("top-left","\n top: 12px;\n left: 12px;\n right: 0;\n align-items: flex-start;\n "),cM("top-right","\n top: 12px;\n left: 0;\n right: 12px;\n align-items: flex-end;\n "),cM("bottom","\n bottom: 4px;\n left: 0;\n right: 0;\n justify-content: flex-end;\n "),cM("bottom-left","\n bottom: 4px;\n left: 12px;\n right: 0;\n justify-content: flex-end;\n align-items: flex-start;\n "),cM("bottom-right","\n bottom: 4px;\n left: 0;\n right: 12px;\n justify-content: flex-end;\n align-items: flex-end;\n ")])]),iconRenderMap$1={info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null),default:()=>null},NMessage=defineComponent({name:"Message",props:Object.assign(Object.assign({},messageProps),{render:Function}),setup(d){const{inlineThemeDisabled:b,mergedRtlRef:A}=useConfig(d),{props:w,mergedClsPrefixRef:C}=inject(messageProviderInjectionKey),x=useRtl("Message",A,C),S=useTheme("Message","-message",style$4,messageLight$1,w,C),E=computed(()=>{const{type:B}=d,{common:{cubicBezierEaseInOut:k},self:{padding:$,margin:I,maxWidth:D,iconMargin:F,closeMargin:z,closeSize:L,iconSize:H,fontSize:Q,lineHeight:Y,borderRadius:U,iconColorInfo:G,iconColorSuccess:W,iconColorWarning:K,iconColorError:X,iconColorLoading:Z,closeIconSize:oe,closeBorderRadius:he,[createKey("textColor",B)]:J,[createKey("boxShadow",B)]:le,[createKey("color",B)]:de,[createKey("closeColorHover",B)]:me,[createKey("closeColorPressed",B)]:ne,[createKey("closeIconColor",B)]:re,[createKey("closeIconColorPressed",B)]:fe,[createKey("closeIconColorHover",B)]:ce}}=S.value;return{"--n-bezier":k,"--n-margin":I,"--n-padding":$,"--n-max-width":D,"--n-font-size":Q,"--n-icon-margin":F,"--n-icon-size":H,"--n-close-icon-size":oe,"--n-close-border-radius":he,"--n-close-size":L,"--n-close-margin":z,"--n-text-color":J,"--n-color":de,"--n-box-shadow":le,"--n-icon-color-info":G,"--n-icon-color-success":W,"--n-icon-color-warning":K,"--n-icon-color-error":X,"--n-icon-color-loading":Z,"--n-close-color-hover":me,"--n-close-color-pressed":ne,"--n-close-icon-color":re,"--n-close-icon-color-pressed":fe,"--n-close-icon-color-hover":ce,"--n-line-height":Y,"--n-border-radius":U}}),P=b?useThemeClass("message",computed(()=>d.type[0]),E,{}):void 0;return{mergedClsPrefix:C,rtlEnabled:x,messageProviderProps:w,handleClose(){var B;(B=d.onClose)===null||B===void 0||B.call(d)},cssVars:b?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender,placement:w.placement}},render(){const{render:d,type:b,closable:A,content:w,mergedClsPrefix:C,cssVars:x,themeClass:S,onRender:E,icon:P,handleClose:B,showIcon:k}=this;E==null||E();let $;return h$1("div",{class:["".concat(C,"-message-wrapper"),S],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},x]},d?d(this.$props):h$1("div",{class:["".concat(C,"-message ").concat(C,"-message--").concat(b,"-type"),this.rtlEnabled&&"".concat(C,"-message--rtl")]},($=createIconVNode(P,b,C))&&k?h$1("div",{class:"".concat(C,"-message__icon ").concat(C,"-message__icon--").concat(b,"-type")},h$1(NIconSwitchTransition,null,{default:()=>$})):null,h$1("div",{class:"".concat(C,"-message__content")},render$1(w)),A?h$1(NBaseClose,{clsPrefix:C,class:"".concat(C,"-message__close"),onClick:B,absolute:!0}):null))}});function createIconVNode(d,b,A){if(typeof d=="function")return d();{const w=b==="loading"?h$1(NBaseLoading,{clsPrefix:A,strokeWidth:24,scale:.85}):iconRenderMap$1[b]();return w?h$1(NBaseIcon,{clsPrefix:A,key:b},{default:()=>w}):null}}const MessageEnvironment=defineComponent({name:"MessageEnvironment",props:Object.assign(Object.assign({},messageProps),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(d){let b=null;const A=ref(!0);onMounted(()=>{w()});function w(){const{duration:k}=d;k&&(b=window.setTimeout(S,k))}function C(k){k.currentTarget===k.target&&b!==null&&(window.clearTimeout(b),b=null)}function x(k){k.currentTarget===k.target&&w()}function S(){const{onHide:k}=d;A.value=!1,b&&(window.clearTimeout(b),b=null),k&&k()}function E(){const{onClose:k}=d;k&&k(),S()}function P(){const{onAfterLeave:k,onInternalAfterLeave:$,onAfterHide:I,internalKey:D}=d;k&&k(),$&&$(D),I&&I()}function B(){S()}return{show:A,hide:S,handleClose:E,handleAfterLeave:P,handleMouseleave:x,handleMouseenter:C,deactivate:B}},render(){return h$1(NFadeInExpandTransition,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?h$1(NMessage,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),messageProviderProps=Object.assign(Object.assign({},useTheme.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),NMessageProvider=defineComponent({name:"MessageProvider",props:messageProviderProps,setup(d){const{mergedClsPrefixRef:b}=useConfig(d),A=ref([]),w=ref({}),C={create(P,B){return x(P,Object.assign({type:"default"},B))},info(P,B){return x(P,Object.assign(Object.assign({},B),{type:"info"}))},success(P,B){return x(P,Object.assign(Object.assign({},B),{type:"success"}))},warning(P,B){return x(P,Object.assign(Object.assign({},B),{type:"warning"}))},error(P,B){return x(P,Object.assign(Object.assign({},B),{type:"error"}))},loading(P,B){return x(P,Object.assign(Object.assign({},B),{type:"loading"}))},destroyAll:E};provide(messageProviderInjectionKey,{props:d,mergedClsPrefixRef:b}),provide(messageApiInjectionKey,C);function x(P,B){const k=createId(),$=reactive(Object.assign(Object.assign({},B),{content:P,key:k,destroy:()=>{var D;(D=w.value[k])===null||D===void 0||D.hide()}})),{max:I}=d;return I&&A.value.length>=I&&A.value.shift(),A.value.push($),$}function S(P){A.value.splice(A.value.findIndex(B=>B.key===P),1),delete w.value[P]}function E(){Object.values(w.value).forEach(P=>{P.hide()})}return Object.assign({mergedClsPrefix:b,messageRefs:w,messageList:A,handleAfterLeave:S},C)},render(){var d,b,A;return h$1(Fragment,null,(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d),this.messageList.length?h$1(Teleport,{to:(A=this.to)!==null&&A!==void 0?A:"body"},h$1("div",{class:["".concat(this.mergedClsPrefix,"-message-container"),"".concat(this.mergedClsPrefix,"-message-container--").concat(this.placement)],key:"message-container",style:this.containerStyle},this.messageList.map(w=>h$1(MessageEnvironment,Object.assign({ref:C=>{C&&(this.messageRefs[w.key]=C)},internalKey:w.key,onInternalAfterLeave:this.handleAfterLeave},omit(w,["destroy"],void 0),{duration:w.duration===void 0?this.duration:w.duration,keepAliveOnHover:w.keepAliveOnHover===void 0?this.keepAliveOnHover:w.keepAliveOnHover,closable:w.closable===void 0?this.closable:w.closable}))))):null)}});function useMessage(){const d=inject(messageApiInjectionKey,null);return d===null&&throwError("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),d}const notificationProviderInjectionKey="n-notification-provider",NotificationContainer=defineComponent({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:d,mergedClsPrefixRef:b,wipTransitionCountRef:A}=inject(notificationProviderInjectionKey),w=ref(null);return watchEffect(()=>{var C,x;A.value>0?(C=w==null?void 0:w.value)===null||C===void 0||C.classList.add("transitioning"):(x=w==null?void 0:w.value)===null||x===void 0||x.classList.remove("transitioning")}),{selfRef:w,mergedTheme:d,mergedClsPrefix:b,transitioning:A}},render(){const{$slots:d,scrollable:b,mergedClsPrefix:A,mergedTheme:w,placement:C}=this;return h$1("div",{ref:"selfRef",class:["".concat(A,"-notification-container"),b&&"".concat(A,"-notification-container--scrollable"),"".concat(A,"-notification-container--").concat(C)]},b?h$1(NScrollbar$1,{theme:w.peers.Scrollbar,themeOverrides:w.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},d):d)}}),iconRenderMap={info:()=>h$1(InfoIcon,null),success:()=>h$1(SuccessIcon,null),warning:()=>h$1(WarningIcon,null),error:()=>h$1(ErrorIcon,null),default:()=>null},notificationProps={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},notificationPropKeys=keysOf(notificationProps),Notification=defineComponent({name:"Notification",props:notificationProps,setup(d){const{mergedClsPrefixRef:b,mergedThemeRef:A,props:w}=inject(notificationProviderInjectionKey),{inlineThemeDisabled:C,mergedRtlRef:x}=useConfig(),S=useRtl("Notification",x,b),E=computed(()=>{const{type:B}=d,{self:{color:k,textColor:$,closeIconColor:I,closeIconColorHover:D,closeIconColorPressed:F,headerTextColor:z,descriptionTextColor:L,actionTextColor:H,borderRadius:Q,headerFontWeight:Y,boxShadow:U,lineHeight:G,fontSize:W,closeMargin:K,closeSize:X,width:Z,padding:oe,closeIconSize:he,closeBorderRadius:J,closeColorHover:le,closeColorPressed:de,titleFontSize:me,metaFontSize:ne,descriptionFontSize:re,[createKey("iconColor",B)]:fe},common:{cubicBezierEaseOut:ce,cubicBezierEaseIn:we,cubicBezierEaseInOut:Fe}}=A.value,{left:Ke,right:tt,top:ut,bottom:dt}=getMargin(oe);return{"--n-color":k,"--n-font-size":W,"--n-text-color":$,"--n-description-text-color":L,"--n-action-text-color":H,"--n-title-text-color":z,"--n-title-font-weight":Y,"--n-bezier":Fe,"--n-bezier-ease-out":ce,"--n-bezier-ease-in":we,"--n-border-radius":Q,"--n-box-shadow":U,"--n-close-border-radius":J,"--n-close-color-hover":le,"--n-close-color-pressed":de,"--n-close-icon-color":I,"--n-close-icon-color-hover":D,"--n-close-icon-color-pressed":F,"--n-line-height":G,"--n-icon-color":fe,"--n-close-margin":K,"--n-close-size":X,"--n-close-icon-size":he,"--n-width":Z,"--n-padding-left":Ke,"--n-padding-right":tt,"--n-padding-top":ut,"--n-padding-bottom":dt,"--n-title-font-size":me,"--n-meta-font-size":ne,"--n-description-font-size":re}}),P=C?useThemeClass("notification",computed(()=>d.type[0]),E,w):void 0;return{mergedClsPrefix:b,showAvatar:computed(()=>d.avatar||d.type!=="default"),handleCloseClick(){d.onClose()},rtlEnabled:S,cssVars:C?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){var d;const{mergedClsPrefix:b}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{class:["".concat(b,"-notification-wrapper"),this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},h$1("div",{class:["".concat(b,"-notification"),this.rtlEnabled&&"".concat(b,"-notification--rtl"),this.themeClass,{["".concat(b,"-notification--closable")]:this.closable,["".concat(b,"-notification--show-avatar")]:this.showAvatar}],style:this.cssVars},this.showAvatar?h$1("div",{class:"".concat(b,"-notification__avatar")},this.avatar?render$1(this.avatar):this.type!=="default"?h$1(NBaseIcon,{clsPrefix:b},{default:()=>iconRenderMap[this.type]()}):null):null,this.closable?h$1(NBaseClose,{clsPrefix:b,class:"".concat(b,"-notification__close"),onClick:this.handleCloseClick}):null,h$1("div",{ref:"bodyRef",class:"".concat(b,"-notification-main")},this.title?h$1("div",{class:"".concat(b,"-notification-main__header")},render$1(this.title)):null,this.description?h$1("div",{class:"".concat(b,"-notification-main__description")},render$1(this.description)):null,this.content?h$1("pre",{class:"".concat(b,"-notification-main__content")},render$1(this.content)):null,this.meta||this.action?h$1("div",{class:"".concat(b,"-notification-main-footer")},this.meta?h$1("div",{class:"".concat(b,"-notification-main-footer__meta")},render$1(this.meta)):null,this.action?h$1("div",{class:"".concat(b,"-notification-main-footer__action")},render$1(this.action)):null):null)))}}),notificationEnvOptions=Object.assign(Object.assign({},notificationProps),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),NotificationEnvironment=defineComponent({name:"NotificationEnvironment",props:Object.assign(Object.assign({},notificationEnvOptions),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(d){const{wipTransitionCountRef:b}=inject(notificationProviderInjectionKey),A=ref(!0);let w=null;function C(){A.value=!1,w&&window.clearTimeout(w)}function x(F){b.value++,nextTick(()=>{F.style.height="".concat(F.offsetHeight,"px"),F.style.maxHeight="0",F.style.transition="none",F.offsetHeight,F.style.transition="",F.style.maxHeight=F.style.height})}function S(F){b.value--,F.style.height="",F.style.maxHeight="";const{onAfterEnter:z,onAfterShow:L}=d;z&&z(),L&&L()}function E(F){b.value++,F.style.maxHeight="".concat(F.offsetHeight,"px"),F.style.height="".concat(F.offsetHeight,"px"),F.offsetHeight}function P(F){const{onHide:z}=d;z&&z(),F.style.maxHeight="0",F.offsetHeight}function B(){b.value--;const{onAfterLeave:F,onInternalAfterLeave:z,onAfterHide:L,internalKey:H}=d;F&&F(),z(H),L&&L()}function k(){const{duration:F}=d;F&&(w=window.setTimeout(C,F))}function $(F){F.currentTarget===F.target&&w!==null&&(window.clearTimeout(w),w=null)}function I(F){F.currentTarget===F.target&&k()}function D(){const{onClose:F}=d;F?Promise.resolve(F()).then(z=>{z!==!1&&C()}):C()}return onMounted(()=>{d.duration&&(w=window.setTimeout(C,d.duration))}),{show:A,hide:C,handleClose:D,handleAfterLeave:B,handleLeave:P,handleBeforeLeave:E,handleAfterEnter:S,handleBeforeEnter:x,handleMouseenter:$,handleMouseleave:I}},render(){return h$1(Transition,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?h$1(Notification,Object.assign({},keep(this.$props,notificationPropKeys),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),style$3=c$3([cB("notification-container","\n z-index: 4000;\n position: fixed;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n ",[c$3(">",[cB("scrollbar","\n width: initial;\n overflow: visible;\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[c$3(">",[cB("scrollbar-container","\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[cB("scrollbar-content","\n padding-top: 12px;\n padding-bottom: 33px;\n ")])])])]),cM("top, top-right, top-left","\n top: 12px;\n ",[c$3("&.transitioning >",[cB("scrollbar",[c$3(">",[cB("scrollbar-container","\n min-height: 100vh !important;\n ")])])])]),cM("bottom, bottom-right, bottom-left","\n bottom: 12px;\n ",[c$3(">",[cB("scrollbar",[c$3(">",[cB("scrollbar-container",[cB("scrollbar-content","\n padding-bottom: 12px;\n ")])])])]),cB("notification-wrapper","\n display: flex;\n align-items: flex-end;\n margin-bottom: 0;\n margin-top: 12px;\n ")]),cM("top, bottom","\n left: 50%;\n transform: translateX(-50%);\n ",[cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n transform: scale(0.85);\n "),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: scale(1);\n ")])]),cM("top",[cB("notification-wrapper","\n transform-origin: top center;\n ")]),cM("bottom",[cB("notification-wrapper","\n transform-origin: bottom center;\n ")]),cM("top-right, bottom-right",[cB("notification","\n margin-left: 28px;\n margin-right: 16px;\n ")]),cM("top-left, bottom-left",[cB("notification","\n margin-left: 16px;\n margin-right: 28px;\n ")]),cM("top-right","\n right: 0;\n ",[placementTransformStyle("top-right")]),cM("top-left","\n left: 0;\n ",[placementTransformStyle("top-left")]),cM("bottom-right","\n right: 0;\n ",[placementTransformStyle("bottom-right")]),cM("bottom-left","\n left: 0;\n ",[placementTransformStyle("bottom-left")]),cM("scrollable",[cM("top-right","\n top: 0;\n "),cM("top-left","\n top: 0;\n "),cM("bottom-right","\n bottom: 0;\n "),cM("bottom-left","\n bottom: 0;\n ")]),cB("notification-wrapper","\n margin-bottom: 12px;\n ",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n opacity: 0;\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n "),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n opacity: 1;\n "),c$3("&.notification-transition-leave-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-in),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n "),c$3("&.notification-transition-enter-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-out),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n ")]),cB("notification","\n background-color: var(--n-color);\n color: var(--n-text-color);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n font-family: inherit;\n font-size: var(--n-font-size);\n font-weight: 400;\n position: relative;\n display: flex;\n overflow: hidden;\n flex-shrink: 0;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n width: var(--n-width);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n box-sizing: border-box;\n opacity: 1;\n ",[cE("avatar",[cB("icon",{color:"var(--n-icon-color)"}),cB("base-icon",{color:"var(--n-icon-color)"})]),cM("show-avatar",[cB("notification-main","\n margin-left: 40px;\n width: calc(100% - 40px); \n ")]),cM("closable",[cB("notification-main",[c$3("> *:first-child",{paddingRight:"20px"})]),cE("close","\n position: absolute;\n top: 0;\n right: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),cE("avatar","\n position: absolute;\n top: var(--n-padding-top);\n left: var(--n-padding-left);\n width: 28px;\n height: 28px;\n font-size: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cB("icon","transition: color .3s var(--n-bezier);")]),cB("notification-main","\n padding-top: var(--n-padding-top);\n padding-bottom: var(--n-padding-bottom);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n margin-left: 8px;\n width: calc(100% - 8px);\n ",[cB("notification-main-footer","\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 12px;\n ",[cE("meta","\n font-size: var(--n-meta-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),cE("action","\n cursor: pointer;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-action-text-color);\n ")]),cE("header","\n font-weight: var(--n-title-font-weight);\n font-size: var(--n-title-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-title-text-color);\n "),cE("description","\n margin-top: 8px;\n font-size: var(--n-description-font-size);\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),cE("content","\n line-height: var(--n-line-height);\n margin: 12px 0 0 0;\n font-family: inherit;\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-text-color);\n ",[c$3("&:first-child",{margin:0})])])])])]);function placementTransformStyle(d){const A=d.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",w="0";return cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to","\n transform: translate(".concat(A,", 0);\n ")),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: translate(".concat(w,", 0);\n "))])}const notificationApiInjectionKey="n-notification-api",notificationProviderProps=Object.assign(Object.assign({},useTheme.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),NNotificationProvider=defineComponent({name:"NotificationProvider",props:notificationProviderProps,setup(d){const{mergedClsPrefixRef:b}=useConfig(d),A=ref([]),w={},C=new Set;function x(D){const F=createId(),z=()=>{C.add(F),w[F]&&w[F].hide()},L=reactive(Object.assign(Object.assign({},D),{key:F,destroy:z,hide:z,deactivate:z})),{max:H}=d;if(H&&A.value.length-C.size>=H){let Q=!1,Y=0;for(const U of A.value){if(!C.has(U.key)){w[U.key]&&(U.destroy(),Q=!0);break}Y++}Q||A.value.splice(Y,1)}return A.value.push(L),L}const S=["info","success","warning","error"].map(D=>F=>x(Object.assign(Object.assign({},F),{type:D})));function E(D){C.delete(D),A.value.splice(A.value.findIndex(F=>F.key===D),1)}const P=useTheme("Notification","-notification",style$3,notificationLight$1,d,b),B={create:x,info:S[0],success:S[1],warning:S[2],error:S[3],open:$,destroyAll:I},k=ref(0);provide(notificationApiInjectionKey,B),provide(notificationProviderInjectionKey,{props:d,mergedClsPrefixRef:b,mergedThemeRef:P,wipTransitionCountRef:k});function $(D){return x(D)}function I(){Object.values(A.value).forEach(D=>{D.hide()})}return Object.assign({mergedClsPrefix:b,notificationList:A,notificationRefs:w,handleAfterLeave:E},B)},render(){var d,b,A;const{placement:w}=this;return h$1(Fragment,null,(b=(d=this.$slots).default)===null||b===void 0?void 0:b.call(d),this.notificationList.length?h$1(Teleport,{to:(A=this.to)!==null&&A!==void 0?A:"body"},h$1(NotificationContainer,{style:this.containerStyle,scrollable:this.scrollable&&w!=="top"&&w!=="bottom",placement:w},{default:()=>this.notificationList.map(C=>h$1(NotificationEnvironment,Object.assign({ref:x=>{const S=C.key;x===null?delete this.notificationRefs[S]:this.notificationRefs[S]=x}},omit(C,["destroy","hide","deactivate"]),{internalKey:C.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:C.keepAliveOnHover===void 0?this.keepAliveOnHover:C.keepAliveOnHover})))})):null)}}),scrollbarProps=Object.assign(Object.assign({},useTheme.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),Scrollbar=defineComponent({name:"Scrollbar",props:scrollbarProps,setup(){const d=ref(null);return Object.assign(Object.assign({},{scrollTo:(...A)=>{var w;(w=d.value)===null||w===void 0||w.scrollTo(A[0],A[1])},scrollBy:(...A)=>{var w;(w=d.value)===null||w===void 0||w.scrollBy(A[0],A[1])}}),{scrollbarInstRef:d})},render(){return h$1(NScrollbar$1,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),NScrollbar=Scrollbar,skeletonDark={name:"Skeleton",common:commonDark,self(d){const{heightSmall:b,heightMedium:A,heightLarge:w,borderRadius:C}=d;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:C,heightSmall:b,heightMedium:A,heightLarge:w}}},style$2=c$3([c$3("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),cB("spin-container",{position:"relative"},[cB("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[fadeInTransition()])]),cB("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),cB("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[cM("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),cB("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),cB("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[cM("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]),STROKE_WIDTH={small:20,medium:18,large:16},spinProps=Object.assign(Object.assign({},useTheme.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),NSpin=defineComponent({name:"Spin",props:spinProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:A}=useConfig(d),w=useTheme("Spin","-spin",style$2,spinLight$1,d,b),C=computed(()=>{const{size:S}=d,{common:{cubicBezierEaseInOut:E},self:P}=w.value,{opacitySpinning:B,color:k,textColor:$}=P,I=typeof S=="number"?pxfy(S):P[createKey("size",S)];return{"--n-bezier":E,"--n-opacity-spinning":B,"--n-size":I,"--n-color":k,"--n-text-color":$}}),x=A?useThemeClass("spin",computed(()=>{const{size:S}=d;return typeof S=="number"?String(S):S[0]}),C,d):void 0;return{mergedClsPrefix:b,compitableShow:useCompitable(d,["spinning","show"]),mergedStrokeWidth:computed(()=>{const{strokeWidth:S}=d;if(S!==void 0)return S;const{size:E}=d;return STROKE_WIDTH[typeof E=="number"?"medium":E]}),cssVars:A?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var d,b;const{$slots:A,mergedClsPrefix:w,description:C}=this,x=A.icon&&this.rotate,S=(C||A.description)&&h$1("div",{class:"".concat(w,"-spin-description")},C||((d=A.description)===null||d===void 0?void 0:d.call(A))),E=A.icon?h$1("div",{class:["".concat(w,"-spin-body"),this.themeClass]},h$1("div",{class:["".concat(w,"-spin"),x&&"".concat(w,"-spin--rotate")],style:A.default?"":this.cssVars},A.icon()),S):h$1("div",{class:["".concat(w,"-spin-body"),this.themeClass]},h$1(NBaseLoading,{clsPrefix:w,style:A.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:"".concat(w,"-spin")}),S);return(b=this.onRender)===null||b===void 0||b.call(this),A.default?h$1("div",{class:["".concat(w,"-spin-container"),this.themeClass],style:this.cssVars},h$1("div",{class:["".concat(w,"-spin-content"),this.compitableShow&&"".concat(w,"-spin-content--spinning")]},A),h$1(Transition,{name:"fade-in-transition"},{default:()=>this.compitableShow?E:null})):E}}),style$1=c$3([cB("table","\n font-size: var(--n-font-size);\n font-variant-numeric: tabular-nums;\n line-height: var(--n-line-height);\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n text-align: left;\n border-collapse: separate;\n border-spacing: 0;\n overflow: hidden;\n background-color: var(--n-td-color);\n border-color: var(--n-merged-border-color);\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n --n-merged-border-color: var(--n-border-color);\n ",[c$3("th","\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n text-align: inherit;\n padding: var(--n-th-padding);\n vertical-align: inherit;\n text-transform: none;\n border: 0px solid var(--n-merged-border-color);\n font-weight: var(--n-th-font-weight);\n color: var(--n-th-text-color);\n background-color: var(--n-th-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n ",[c$3("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),c$3("td","\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n padding: var(--n-td-padding);\n color: var(--n-td-text-color);\n background-color: var(--n-td-color);\n border: 0px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n ",[c$3("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),cM("bordered","\n border: 1px solid var(--n-merged-border-color);\n border-radius: var(--n-border-radius);\n ",[c$3("tr",[c$3("&:last-child",[c$3("td","\n border-bottom: 0 solid var(--n-merged-border-color);\n ")])])]),cM("single-line",[c$3("th","\n border-right: 0px solid var(--n-merged-border-color);\n "),c$3("td","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),cM("single-column",[c$3("tr",[c$3("&:not(:last-child)",[c$3("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])]),cM("striped",[c$3("tr:nth-of-type(even)",[c$3("td","background-color: var(--n-td-color-striped)")])]),cNotM("bottom-bordered",[c$3("tr",[c$3("&:last-child",[c$3("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])])]),insideModal(cB("table","\n background-color: var(--n-td-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ",[c$3("th","\n background-color: var(--n-th-color-modal);\n "),c$3("td","\n background-color: var(--n-td-color-modal);\n ")])),insidePopover(cB("table","\n background-color: var(--n-td-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n ",[c$3("th","\n background-color: var(--n-th-color-popover);\n "),c$3("td","\n background-color: var(--n-td-color-popover);\n ")]))]),tableProps=Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),NTable=defineComponent({name:"Table",props:tableProps,setup(d){const{mergedClsPrefixRef:b,inlineThemeDisabled:A,mergedRtlRef:w}=useConfig(d),C=useTheme("Table","-table",style$1,tableLight$1,d,b),x=useRtl("Table",w,b),S=computed(()=>{const{size:P}=d,{self:{borderColor:B,tdColor:k,tdColorModal:$,tdColorPopover:I,thColor:D,thColorModal:F,thColorPopover:z,thTextColor:L,tdTextColor:H,borderRadius:Q,thFontWeight:Y,lineHeight:U,borderColorModal:G,borderColorPopover:W,tdColorStriped:K,tdColorStripedModal:X,tdColorStripedPopover:Z,[createKey("fontSize",P)]:oe,[createKey("tdPadding",P)]:he,[createKey("thPadding",P)]:J},common:{cubicBezierEaseInOut:le}}=C.value;return{"--n-bezier":le,"--n-td-color":k,"--n-td-color-modal":$,"--n-td-color-popover":I,"--n-td-text-color":H,"--n-border-color":B,"--n-border-color-modal":G,"--n-border-color-popover":W,"--n-border-radius":Q,"--n-font-size":oe,"--n-th-color":D,"--n-th-color-modal":F,"--n-th-color-popover":z,"--n-th-font-weight":Y,"--n-th-text-color":L,"--n-line-height":U,"--n-td-padding":he,"--n-th-padding":J,"--n-td-color-striped":K,"--n-td-color-striped-modal":X,"--n-td-color-striped-popover":Z}}),E=A?useThemeClass("table",computed(()=>d.size[0]),S,d):void 0;return{rtlEnabled:x,mergedClsPrefix:b,cssVars:A?void 0:S,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){var d;const{mergedClsPrefix:b}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("table",{class:["".concat(b,"-table"),this.themeClass,{["".concat(b,"-table--rtl")]:this.rtlEnabled,["".concat(b,"-table--bottom-bordered")]:this.bottomBordered,["".concat(b,"-table--bordered")]:this.bordered,["".concat(b,"-table--single-line")]:this.singleLine,["".concat(b,"-table--single-column")]:this.singleColumn,["".concat(b,"-table--striped")]:this.striped}],style:this.cssVars},this.$slots)}}),tabsInjectionKey="n-tabs",tabPaneProps={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},NTabPane=defineComponent({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:tabPaneProps,setup(d){const b=inject(tabsInjectionKey,null);return b||throwError("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:b.paneStyleRef,class:b.paneClassRef,mergedClsPrefix:b.mergedClsPrefixRef}},render(){return h$1("div",{class:["".concat(this.mergedClsPrefix,"-tab-pane"),this.class],style:this.style},this.$slots)}}),tabProps=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},omit(tabPaneProps,["displayDirective"])),Tab=defineComponent({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:tabProps,setup(d){const{mergedClsPrefixRef:b,valueRef:A,typeRef:w,closableRef:C,tabStyleRef:x,tabChangeIdRef:S,onBeforeLeaveRef:E,triggerRef:P,handleAdd:B,activateTab:k,handleClose:$}=inject(tabsInjectionKey);return{trigger:P,mergedClosable:computed(()=>{if(d.internalAddable)return!1;const{closable:I}=d;return I===void 0?C.value:I}),style:x,clsPrefix:b,value:A,type:w,handleClose(I){I.stopPropagation(),!d.disabled&&$(d.name)},activateTab(){if(d.disabled)return;if(d.internalAddable){B();return}const{name:I}=d,D=++S.id;if(I!==A.value){const{value:F}=E;F?Promise.resolve(F(d.name,A.value)).then(z=>{z&&S.id===D&&k(I)}):k(I)}}}},render(){const{internalAddable:d,clsPrefix:b,name:A,disabled:w,label:C,tab:x,value:S,mergedClosable:E,style:P,trigger:B,$slots:{default:k}}=this,$=C!=null?C:x;return h$1("div",{class:"".concat(b,"-tabs-tab-wrapper")},this.internalLeftPadded?h$1("div",{class:"".concat(b,"-tabs-tab-pad")}):null,h$1("div",Object.assign({key:A,"data-name":A,"data-disabled":w?!0:void 0},mergeProps({class:["".concat(b,"-tabs-tab"),S===A&&"".concat(b,"-tabs-tab--active"),w&&"".concat(b,"-tabs-tab--disabled"),E&&"".concat(b,"-tabs-tab--closable"),d&&"".concat(b,"-tabs-tab--addable")],onClick:B==="click"?this.activateTab:void 0,onMouseenter:B==="hover"?this.activateTab:void 0,style:d?void 0:P},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h$1("span",{class:"".concat(b,"-tabs-tab__label")},d?h$1(Fragment,null,h$1("div",{class:"".concat(b,"-tabs-tab__height-placeholder")}," "),h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(AddIcon,null)})):k?k():typeof $=="object"?$:render$1($!=null?$:A)),E&&this.type==="card"?h$1(NBaseClose,{clsPrefix:b,class:"".concat(b,"-tabs-tab__close"),onClick:this.handleClose,disabled:w}):null))}}),style=cB("tabs","\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n",[cM("segment-type",[cB("tabs-rail",[c$3("&.transition-disabled","color: red;",[cB("tabs-tab","\n transition: none;\n ")])])]),cM("top",[cB("tab-pane","\n padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);\n ")]),cM("left",[cB("tab-pane","\n padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);\n ")]),cM("left, right","\n flex-direction: row;\n ",[cB("tabs-bar","\n width: 2px;\n right: 0;\n transition:\n top .2s var(--n-bezier),\n max-height .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),cB("tabs-tab","\n padding: var(--n-tab-padding-vertical); \n ")]),cM("right","\n flex-direction: row-reverse;\n ",[cB("tab-pane","\n padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);\n "),cB("tabs-bar","\n left: 0;\n ")]),cM("bottom","\n flex-direction: column-reverse;\n justify-content: flex-end;\n ",[cB("tab-pane","\n padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);\n "),cB("tabs-bar","\n top: 0;\n ")]),cB("tabs-rail","\n padding: 3px;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n background-color: var(--n-color-segment);\n transition: background-color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[cB("tabs-tab-wrapper","\n flex-basis: 0;\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cB("tabs-tab","\n overflow: hidden;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[cM("active","\n font-weight: var(--n-font-weight-strong);\n color: var(--n-tab-text-color-active);\n background-color: var(--n-tab-color-segment);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);\n "),c$3("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])])]),cM("flex",[cB("tabs-nav",{width:"100%"},[cB("tabs-wrapper",{width:"100%"},[cB("tabs-tab",{marginRight:0})])])]),cB("tabs-nav","\n box-sizing: border-box;\n line-height: 1.5;\n display: flex;\n transition: border-color .3s var(--n-bezier);\n ",[cE("prefix, suffix","\n display: flex;\n align-items: center;\n "),cE("prefix","padding-right: 16px;"),cE("suffix","padding-left: 16px;")]),cM("top, bottom",[cB("tabs-nav-scroll-wrapper",[c$3("&::before","\n top: 0;\n bottom: 0;\n left: 0;\n width: 20px;\n "),c$3("&::after","\n top: 0;\n bottom: 0;\n right: 0;\n width: 20px;\n "),cM("shadow-start",[c$3("&::before","\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),cM("shadow-end",[c$3("&::after","\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);\n ")])])]),cM("left, right",[cB("tabs-nav-scroll-wrapper",[c$3("&::before","\n top: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),c$3("&::after","\n bottom: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),cM("shadow-start",[c$3("&::before","\n box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);\n ")]),cM("shadow-end",[c$3("&::after","\n box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);\n ")])])]),cB("tabs-nav-scroll-wrapper","\n flex: 1;\n position: relative;\n overflow: hidden;\n ",[cB("tabs-nav-y-scroll","\n height: 100%;\n width: 100%;\n overflow-y: auto; \n scrollbar-width: none;\n ",[c$3("&::-webkit-scrollbar","\n width: 0;\n height: 0;\n ")]),c$3("&::before, &::after",'\n transition: box-shadow .3s var(--n-bezier);\n pointer-events: none;\n content: "";\n position: absolute;\n z-index: 1;\n ')]),cB("tabs-nav-scroll-content","\n display: flex;\n position: relative;\n min-width: 100%;\n width: fit-content;\n box-sizing: border-box;\n "),cB("tabs-wrapper","\n display: inline-flex;\n flex-wrap: nowrap;\n position: relative;\n "),cB("tabs-tab-wrapper","\n display: flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n flex-grow: 0;\n "),cB("tabs-tab","\n cursor: pointer;\n white-space: nowrap;\n flex-wrap: nowrap;\n display: inline-flex;\n align-items: center;\n color: var(--n-tab-text-color);\n font-size: var(--n-tab-font-size);\n background-clip: padding-box;\n padding: var(--n-tab-padding);\n transition:\n box-shadow .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[cM("disabled",{cursor:"not-allowed"}),cE("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),cE("label","\n display: flex;\n align-items: center;\n ")]),cB("tabs-bar","\n position: absolute;\n bottom: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--n-bar-color);\n transition:\n left .2s var(--n-bezier),\n max-width .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ",[c$3("&.transition-disabled","\n transition: none;\n "),cM("disabled","\n background-color: var(--n-tab-text-color-disabled)\n ")]),cB("tabs-pane-wrapper","\n position: relative;\n overflow: hidden;\n transition: max-height .2s var(--n-bezier);\n "),cB("tab-pane","\n color: var(--n-pane-text-color);\n width: 100%;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .2s var(--n-bezier);\n left: 0;\n right: 0;\n top: 0;\n ",[c$3("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .2s var(--n-bezier),\n opacity .2s var(--n-bezier);\n "),c$3("&.next-transition-leave-active, &.prev-transition-leave-active","\n position: absolute;\n "),c$3("&.next-transition-enter-from, &.prev-transition-leave-to","\n transform: translateX(32px);\n opacity: 0;\n "),c$3("&.next-transition-leave-to, &.prev-transition-enter-from","\n transform: translateX(-32px);\n opacity: 0;\n "),c$3("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to","\n transform: translateX(0);\n opacity: 1;\n ")]),cB("tabs-tab-pad","\n box-sizing: border-box;\n width: var(--n-tab-gap);\n flex-grow: 0;\n flex-shrink: 0;\n "),cM("line-type, bar-type",[cB("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n box-sizing: border-box;\n vertical-align: bottom;\n ",[c$3("&:hover",{color:"var(--n-tab-text-color-hover)"}),cM("active","\n color: var(--n-tab-text-color-active);\n font-weight: var(--n-tab-font-weight-active);\n "),cM("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),cB("tabs-nav",[cM("line-type",[cM("top",[cE("prefix, suffix","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n bottom: -1px;\n ")]),cM("left",[cE("prefix, suffix","\n border-right: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-right: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n right: -1px;\n ")]),cM("right",[cE("prefix, suffix","\n border-left: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-left: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n left: -1px;\n ")]),cM("bottom",[cE("prefix, suffix","\n border-top: 1px solid var(--n-tab-border-color);\n "),cB("tabs-nav-scroll-content","\n border-top: 1px solid var(--n-tab-border-color);\n "),cB("tabs-bar","\n top: -1px;\n ")]),cE("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-nav-scroll-content","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-bar","\n border-radius: 0;\n ")]),cM("card-type",[cE("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-pad","\n flex-grow: 1;\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),cB("tabs-tab-pad","\n transition: border-color .3s var(--n-bezier);\n "),cB("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n border: 1px solid var(--n-tab-border-color);\n background-color: var(--n-tab-color);\n box-sizing: border-box;\n position: relative;\n vertical-align: bottom;\n display: flex;\n justify-content: space-between;\n font-size: var(--n-tab-font-size);\n color: var(--n-tab-text-color);\n ",[cM("addable","\n padding-left: 8px;\n padding-right: 8px;\n font-size: 16px;\n ",[cE("height-placeholder","\n width: 0;\n font-size: var(--n-tab-font-size);\n "),cNotM("disabled",[c$3("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])]),cM("closable","padding-right: 8px;"),cM("active","\n background-color: #0000;\n font-weight: var(--n-tab-font-weight-active);\n color: var(--n-tab-text-color-active);\n "),cM("disabled","color: var(--n-tab-text-color-disabled);")]),cB("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),cM("left, right",[cB("tabs-wrapper","\n flex-direction: column;\n ",[cB("tabs-tab-wrapper","\n flex-direction: column;\n ",[cB("tabs-tab-pad","\n height: var(--n-tab-gap-vertical);\n width: 100%;\n ")])])]),cM("top",[cM("card-type",[cB("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-top-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-bottom: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-bottom: 1px solid var(--n-tab-border-color);\n ")])]),cM("left",[cM("card-type",[cB("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-bottom-left-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-right: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-right: 1px solid var(--n-tab-border-color);\n ")])]),cM("right",[cM("card-type",[cB("tabs-tab","\n border-top-right-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-left: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-left: 1px solid var(--n-tab-border-color);\n ")])]),cM("bottom",[cM("card-type",[cB("tabs-tab","\n border-bottom-left-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[cM("active","\n border-top: 1px solid #0000;\n ")]),cB("tabs-tab-pad","\n border-top: 1px solid var(--n-tab-border-color);\n ")])])])]),tabsProps=Object.assign(Object.assign({},useTheme.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),NTabs=defineComponent({name:"Tabs",props:tabsProps,setup(d,{slots:b}){var A,w,C,x;const{mergedClsPrefixRef:S,inlineThemeDisabled:E}=useConfig(d),P=useTheme("Tabs","-tabs",style,tabsLight$1,d,S),B=ref(null),k=ref(null),$=ref(null),I=ref(null),D=ref(null),F=ref(!0),z=ref(!0),L=useCompitable(d,["labelSize","size"]),H=useCompitable(d,["activeName","value"]),Q=ref((w=(A=H.value)!==null&&A!==void 0?A:d.defaultValue)!==null&&w!==void 0?w:b.default?(x=(C=flatten$4(b.default())[0])===null||C===void 0?void 0:C.props)===null||x===void 0?void 0:x.name:null),Y=useMergedState(H,Q),U={id:0},G=computed(()=>{if(!(!d.justifyContent||d.type==="card"))return{display:"flex",justifyContent:d.justifyContent}});watch(Y,()=>{U.id=0,Z(),oe()});function W(){var se;const{value:ie}=Y;return ie===null?null:(se=B.value)===null||se===void 0?void 0:se.querySelector('[data-name="'.concat(ie,'"]'))}function K(se){if(d.type==="card")return;const{value:ie}=k;if(ie&&se){const be="".concat(S.value,"-tabs-bar--disabled"),{barWidth:Ee,placement:Ce}=d;if(se.dataset.disabled==="true"?ie.classList.add(be):ie.classList.remove(be),["top","bottom"].includes(Ce)){if(X(["top","maxHeight","height"]),typeof Ee=="number"&&se.offsetWidth>=Ee){const ge=Math.floor((se.offsetWidth-Ee)/2)+se.offsetLeft;ie.style.left="".concat(ge,"px"),ie.style.maxWidth="".concat(Ee,"px")}else ie.style.left="".concat(se.offsetLeft,"px"),ie.style.maxWidth="".concat(se.offsetWidth,"px");ie.style.width="8192px",ie.offsetWidth}else{if(X(["left","maxWidth","width"]),typeof Ee=="number"&&se.offsetHeight>=Ee){const ge=Math.floor((se.offsetHeight-Ee)/2)+se.offsetTop;ie.style.top="".concat(ge,"px"),ie.style.maxHeight="".concat(Ee,"px")}else ie.style.top="".concat(se.offsetTop,"px"),ie.style.maxHeight="".concat(se.offsetHeight,"px");ie.style.height="8192px",ie.offsetHeight}}}function X(se){const{value:ie}=k;if(ie)for(const be of se)ie.style[be]=""}function Z(){if(d.type==="card")return;const se=W();se&&K(se)}function oe(se){var ie;const be=(ie=D.value)===null||ie===void 0?void 0:ie.$el;if(!be)return;const Ee=W();if(!Ee)return;const{scrollLeft:Ce,offsetWidth:ge}=be,{offsetLeft:Ie,offsetWidth:Le}=Ee;Ce>Ie?be.scrollTo({top:0,left:Ie,behavior:"smooth"}):Ie+Le>Ce+ge&&be.scrollTo({top:0,left:Ie+Le-ge,behavior:"smooth"})}const he=ref(null);let J=0,le=null;function de(se){const ie=he.value;if(ie){J=se.getBoundingClientRect().height;const be="".concat(J,"px"),Ee=()=>{ie.style.height=be,ie.style.maxHeight=be};le?(Ee(),le(),le=null):le=Ee}}function me(se){const ie=he.value;if(ie){const be=se.getBoundingClientRect().height,Ee=()=>{document.body.offsetHeight,ie.style.maxHeight="".concat(be,"px"),ie.style.height="".concat(Math.max(J,be),"px")};le?(le(),le=null,Ee()):le=Ee}}function ne(){const se=he.value;se&&(se.style.maxHeight="",se.style.height="")}const re={value:[]},fe=ref("next");function ce(se){const ie=Y.value;let be="next";for(const Ee of re.value){if(Ee===ie)break;if(Ee===se){be="prev";break}}fe.value=be,we(se)}function we(se){const{onActiveNameChange:ie,onUpdateValue:be,"onUpdate:value":Ee}=d;ie&&call$1(ie,se),be&&call$1(be,se),Ee&&call$1(Ee,se),Q.value=se}function Fe(se){const{onClose:ie}=d;ie&&call$1(ie,se)}function Ke(){const{value:se}=k;if(!se)return;const ie="transition-disabled";se.classList.add(ie),Z(),se.classList.remove(ie)}let tt=0;function ut(se){var ie;if(se.contentRect.width===0&&se.contentRect.height===0||tt===se.contentRect.width)return;tt=se.contentRect.width;const{type:be}=d;(be==="line"||be==="bar")&&Ke(),be!=="segment"&&Qe((ie=D.value)===null||ie===void 0?void 0:ie.$el)}const dt=throttle(ut,64);watch([()=>d.justifyContent,()=>d.size],()=>{nextTick(()=>{const{type:se}=d;(se==="line"||se==="bar")&&Ke()})});const it=ref(!1);function $e(se){var ie;const{target:be,contentRect:{width:Ee}}=se,Ce=be.parentElement.offsetWidth;if(!it.value)Ce<Ee&&(it.value=!0);else{const{value:ge}=I;if(!ge)return;Ce-Ee>ge.$el.offsetWidth&&(it.value=!1)}Qe((ie=D.value)===null||ie===void 0?void 0:ie.$el)}const ke=throttle($e,64);function Oe(){const{onAdd:se}=d;se&&se(),nextTick(()=>{const ie=W(),{value:be}=D;!ie||!be||be.scrollTo({left:ie.offsetLeft,top:0,behavior:"smooth"})})}function Qe(se){if(!se)return;const{placement:ie}=d;if(ie==="top"||ie==="bottom"){const{scrollLeft:be,scrollWidth:Ee,offsetWidth:Ce}=se;F.value=be<=0,z.value=be+Ce>=Ee}else{const{scrollTop:be,scrollHeight:Ee,offsetHeight:Ce}=se;F.value=be<=0,z.value=be+Ce>=Ee}}const Je=throttle(se=>{Qe(se.target)},64);provide(tabsInjectionKey,{triggerRef:toRef$1(d,"trigger"),tabStyleRef:toRef$1(d,"tabStyle"),paneClassRef:toRef$1(d,"paneClass"),paneStyleRef:toRef$1(d,"paneStyle"),mergedClsPrefixRef:S,typeRef:toRef$1(d,"type"),closableRef:toRef$1(d,"closable"),valueRef:Y,tabChangeIdRef:U,onBeforeLeaveRef:toRef$1(d,"onBeforeLeave"),activateTab:ce,handleClose:Fe,handleAdd:Oe}),onFontsReady(()=>{Z(),oe()}),watchEffect(()=>{const{value:se}=$;if(!se)return;const{value:ie}=S,be="".concat(ie,"-tabs-nav-scroll-wrapper--shadow-start"),Ee="".concat(ie,"-tabs-nav-scroll-wrapper--shadow-end");F.value?se.classList.remove(be):se.classList.add(be),z.value?se.classList.remove(Ee):se.classList.add(Ee)});const ve=ref(null);watch(Y,()=>{if(d.type==="segment"){const se=ve.value;se&&nextTick(()=>{se.classList.add("transition-disabled"),se.offsetWidth,se.classList.remove("transition-disabled")})}});const ye={syncBarPosition:()=>{Z()}},Te=computed(()=>{const{value:se}=L,{type:ie}=d,be={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ie],Ee="".concat(se).concat(be),{self:{barColor:Ce,closeIconColor:ge,closeIconColorHover:Ie,closeIconColorPressed:Le,tabColor:Ye,tabBorderColor:rt,paneTextColor:lt,tabFontWeight:pt,tabBorderRadius:He,tabFontWeightActive:at,colorSegment:nt,fontWeightStrong:mt,tabColorSegment:Tt,closeSize:Dt,closeIconSize:yt,closeColorHover:At,closeColorPressed:Ae,closeBorderRadius:Re,[createKey("panePadding",se)]:qe,[createKey("tabPadding",Ee)]:ft,[createKey("tabPaddingVertical",Ee)]:vt,[createKey("tabGap",Ee)]:bt,[createKey("tabGap","".concat(Ee,"Vertical"))]:xe,[createKey("tabTextColor",ie)]:Ne,[createKey("tabTextColorActive",ie)]:ze,[createKey("tabTextColorHover",ie)]:Ve,[createKey("tabTextColorDisabled",ie)]:We,[createKey("tabFontSize",se)]:ht},common:{cubicBezierEaseInOut:_t}}=P.value;return{"--n-bezier":_t,"--n-color-segment":nt,"--n-bar-color":Ce,"--n-tab-font-size":ht,"--n-tab-text-color":Ne,"--n-tab-text-color-active":ze,"--n-tab-text-color-disabled":We,"--n-tab-text-color-hover":Ve,"--n-pane-text-color":lt,"--n-tab-border-color":rt,"--n-tab-border-radius":He,"--n-close-size":Dt,"--n-close-icon-size":yt,"--n-close-color-hover":At,"--n-close-color-pressed":Ae,"--n-close-border-radius":Re,"--n-close-icon-color":ge,"--n-close-icon-color-hover":Ie,"--n-close-icon-color-pressed":Le,"--n-tab-color":Ye,"--n-tab-font-weight":pt,"--n-tab-font-weight-active":at,"--n-tab-padding":ft,"--n-tab-padding-vertical":vt,"--n-tab-gap":bt,"--n-tab-gap-vertical":xe,"--n-pane-padding-left":getMargin(qe,"left"),"--n-pane-padding-right":getMargin(qe,"right"),"--n-pane-padding-top":getMargin(qe,"top"),"--n-pane-padding-bottom":getMargin(qe,"bottom"),"--n-font-weight-strong":mt,"--n-tab-color-segment":Tt}}),ee=E?useThemeClass("tabs",computed(()=>"".concat(L.value[0]).concat(d.type[0])),Te,d):void 0;return Object.assign({mergedClsPrefix:S,mergedValue:Y,renderedNames:new Set,tabsRailElRef:ve,tabsPaneWrapperRef:he,tabsElRef:B,barElRef:k,addTabInstRef:I,xScrollInstRef:D,scrollWrapperElRef:$,addTabFixed:it,tabWrapperStyle:G,handleNavResize:dt,mergedSize:L,handleScroll:Je,handleTabsResize:ke,cssVars:E?void 0:Te,themeClass:ee==null?void 0:ee.themeClass,animationDirection:fe,renderNameListRef:re,onAnimationBeforeLeave:de,onAnimationEnter:me,onAnimationAfterEnter:ne,onRender:ee==null?void 0:ee.onRender},ye)},render(){const{mergedClsPrefix:d,type:b,placement:A,addTabFixed:w,addable:C,mergedSize:x,renderNameListRef:S,onRender:E,paneWrapperClass:P,paneWrapperStyle:B,$slots:{default:k,prefix:$,suffix:I}}=this;E==null||E();const D=k?flatten$4(k()).filter(G=>G.type.__TAB_PANE__===!0):[],F=k?flatten$4(k()).filter(G=>G.type.__TAB__===!0):[],z=!F.length,L=b==="card",H=b==="segment",Q=!L&&!H&&this.justifyContent;S.value=[];const Y=()=>{const G=h$1("div",{style:this.tabWrapperStyle,class:["".concat(d,"-tabs-wrapper")]},Q?null:h$1("div",{class:"".concat(d,"-tabs-scroll-padding"),style:{width:"".concat(this.tabsPadding,"px")}}),z?D.map((W,K)=>(S.value.push(W.props.name),justifyTabDynamicProps(h$1(Tab,Object.assign({},W.props,{internalCreatedByPane:!0,internalLeftPadded:K!==0&&(!Q||Q==="center"||Q==="start"||Q==="end")}),W.children?{default:W.children.tab}:void 0)))):F.map((W,K)=>(S.value.push(W.props.name),justifyTabDynamicProps(K!==0&&!Q?createLeftPaddedTabVNode(W):W))),!w&&C&&L?createAddTag(C,(z?D.length:F.length)!==0):null,Q?null:h$1("div",{class:"".concat(d,"-tabs-scroll-padding"),style:{width:"".concat(this.tabsPadding,"px")}}));return h$1("div",{ref:"tabsElRef",class:"".concat(d,"-tabs-nav-scroll-content")},L&&C?h$1(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>G}):G,L?h$1("div",{class:"".concat(d,"-tabs-pad")}):null,L?null:h$1("div",{ref:"barElRef",class:"".concat(d,"-tabs-bar")}))},U=H?"top":A;return h$1("div",{class:["".concat(d,"-tabs"),this.themeClass,"".concat(d,"-tabs--").concat(b,"-type"),"".concat(d,"-tabs--").concat(x,"-size"),Q&&"".concat(d,"-tabs--flex"),"".concat(d,"-tabs--").concat(U)],style:this.cssVars},h$1("div",{class:["".concat(d,"-tabs-nav--").concat(b,"-type"),"".concat(d,"-tabs-nav--").concat(U),"".concat(d,"-tabs-nav")]},resolveWrappedSlot($,G=>G&&h$1("div",{class:"".concat(d,"-tabs-nav__prefix")},G)),H?h$1("div",{class:"".concat(d,"-tabs-rail"),ref:"tabsRailElRef"},z?D.map((G,W)=>(S.value.push(G.props.name),h$1(Tab,Object.assign({},G.props,{internalCreatedByPane:!0,internalLeftPadded:W!==0}),G.children?{default:G.children.tab}:void 0))):F.map((G,W)=>(S.value.push(G.props.name),W===0?G:createLeftPaddedTabVNode(G)))):h$1(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h$1("div",{class:"".concat(d,"-tabs-nav-scroll-wrapper"),ref:"scrollWrapperElRef"},["top","bottom"].includes(U)?h$1(VXScroll,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:Y}):h$1("div",{class:"".concat(d,"-tabs-nav-y-scroll"),onScroll:this.handleScroll},Y()))}),w&&C&&L?createAddTag(C,!0):null,resolveWrappedSlot(I,G=>G&&h$1("div",{class:"".concat(d,"-tabs-nav__suffix")},G))),z&&(this.animated&&(U==="top"||U==="bottom")?h$1("div",{ref:"tabsPaneWrapperRef",style:B,class:["".concat(d,"-tabs-pane-wrapper"),P]},filterMapTabPanes(D,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes(D,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(d,b,A,w,C,x,S){const E=[];return d.forEach(P=>{const{name:B,displayDirective:k,"display-directive":$}=P.props,I=F=>k===F||$===F,D=b===B;if(P.key!==void 0&&(P.key=B),D||I("show")||I("show:lazy")&&A.has(B)){A.has(B)||A.add(B);const F=!I("if");E.push(F?withDirectives(P,[[vShow,D]]):P)}}),S?h$1(TransitionGroup,{name:"".concat(S,"-transition"),onBeforeLeave:w,onEnter:C,onAfterEnter:x},{default:()=>E}):E}function createAddTag(d,b){return h$1(Tab,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:b,disabled:typeof d=="object"&&d.disabled})}function createLeftPaddedTabVNode(d){const b=cloneVNode(d);return b.props?b.props.internalLeftPadded=!0:b.props={internalLeftPadded:!0},b}function justifyTabDynamicProps(d){return Array.isArray(d.dynamicProps)?d.dynamicProps.includes("internalLeftPadded")||d.dynamicProps.push("internalLeftPadded"):d.dynamicProps=["internalLeftPadded"],d}const self$1=()=>({}),equationDark={name:"Equation",common:commonDark,self:self$1},equationDark$1=equationDark,darkTheme={name:"dark",common:commonDark,Alert:alertDark$1,Anchor:anchorDark$1,AutoComplete:autoCompleteDark$1,Avatar:avatarDark$1,AvatarGroup:avatarGroupDark$1,BackTop:backTopDark$1,Badge:badgeDark$1,Breadcrumb:breadcrumbDark$1,Button:buttonDark$1,ButtonGroup:buttonGroupDark$1,Calendar:calendarDark$1,Card:cardDark$1,Carousel:carouselDark$1,Cascader:cascaderDark$1,Checkbox:checkboxDark$1,Code:codeDark$1,Collapse:collapseDark$1,CollapseTransition:collapseTransitionDark$1,ColorPicker:colorPickerDark$1,DataTable:dataTableDark$1,DatePicker:datePickerDark$1,Descriptions:descriptionsDark$1,Dialog:dialogDark$1,Divider:dividerDark$1,Drawer:drawerDark$1,Dropdown:dropdownDark$1,DynamicInput:dynamicInputDark$1,DynamicTags:dynamicTagsDark$1,Element:elementDark$1,Empty:emptyDark$1,Ellipsis:ellipsisDark$1,Equation:equationDark$1,Form:formDark,GradientText:gradientTextDark$1,Icon:iconDark$2,IconWrapper:iconWrapperDark,Image:imageDark,Input:inputDark$1,InputNumber:inputNumberDark$1,LegacyTransfer:legacyTransferDark,Layout:layoutDark$1,List:listDark$2,LoadingBar:loadingBarDark$1,Log:logDark$1,Menu:menuDark$1,Mention:mentionDark,Message:messageDark$1,Modal:modalDark$1,Notification:notificationDark$1,PageHeader:pageHeaderDark,Pagination:paginationDark$1,Popconfirm:popconfirmDark$1,Popover:popoverDark$1,Popselect:popselectDark,Progress:progressDark$1,Radio:radioDark$1,Rate:rateDark$1,Result:resultDark$1,Row:rowDark$1,Scrollbar:scrollbarDark$1,Select:selectDark$1,Skeleton:skeletonDark,Slider:sliderDark$1,Space:spaceDark$1,Spin:spinDark$1,Statistic:statisticDark$1,Steps:stepsDark$1,Switch:switchDark$1,Table:tableDark$1,Tabs:tabsDark$1,Tag:tagDark$1,Thing:thingDark$1,TimePicker:timePickerDark$1,Timeline:timelineDark$1,Tooltip:tooltipDark$1,Transfer:transferDark$2,Tree:treeDark$1,TreeSelect:treeSelectDark$1,Typography:typographyDark$1,Upload:uploadDark$1,Watermark:watermarkDark$1},App=defineComponent({name:"App",setup(){const d="#198CFE",b=lighten(d,6),A={common:{primaryColor:d,primaryColorHover:b,primaryColorPressed:b},LoadingBar:{colorLoading:d}},w=getQuery(),C=async()=>storeData.platformType==="TEACHER"?await teacherQueryUserInfo():await studentQueryUserInfo(),x=async()=>{const E=await C();if(E.code===5e3){const B=browser();showToast(E.message),B.isApp?postMessage({api:"login"}):window.location.href="".concat(/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin,"/classroom");return}const P=(E==null?void 0:E.data)||{};setUserInfo(P)};onBeforeMount(()=>{w.Authorization&&setToken(w.Authorization),x()});const S=computed(()=>storeData.status==="login"||w.dev);return()=>createVNode(NConfigProvider,{inlineThemeDisabled:!0,themeOverrides:A,abstract:!0},{default:()=>[createVNode(NDialogProvider,null,{default:()=>[createVNode(NNotificationProvider,null,{default:()=>[createVNode(NMessageProvider,{max:1,theme:darkTheme.Message},{default:()=>[storeData.status==="error"?createVNode(TheError,null,null):S.value?createVNode(RouterView,null,null):null]})]})]})]})}});var version$1="6.2.2",version_1=version$1,TimingCallbacks$2=function(d,b){var A=this;if(b||(b={}),A.qpm=b.qpm?parseInt(b.qpm,10):null,!A.qpm){var w=d.metaText?d.metaText.tempo:null;A.qpm=d.getBpm(w)}A.extraMeasuresAtBeginning=b.extraMeasuresAtBeginning?parseInt(b.extraMeasuresAtBeginning,10):0,A.beatCallback=b.beatCallback,A.eventCallback=b.eventCallback,A.lineEndCallback=b.lineEndCallback,A.lineEndAnticipation=b.lineEndAnticipation?parseInt(b.lineEndAnticipation,10):0,A.beatSubdivisions=b.beatSubdivisions?parseInt(b.beatSubdivisions,10):1,A.joggerTimer=null,A.replaceTarget=function(x){A.noteTimings=x.setTiming(A.qpm,A.extraMeasuresAtBeginning),x.noteTimings.length===0&&(A.noteTimings=x.setTiming(0,0)),A.lineEndCallback&&(A.lineEndTimings=getLineEndTimings(x.noteTimings,A.lineEndAnticipation)),A.startTime=null,A.currentBeat=0,A.currentEvent=0,A.currentLine=0,A.currentTime=0,A.isPaused=!1,A.isRunning=!1,A.pausedPercent=null,A.justUnpaused=!1,A.newSeekPercent=0,A.lastTimestamp=0,A.noteTimings.length!==0&&(A.millisecondsPerBeat=1e3/(A.qpm/60)/A.beatSubdivisions,A.lastMoment=A.noteTimings[A.noteTimings.length-1].milliseconds,A.totalBeats=Math.round(A.lastMoment/A.millisecondsPerBeat))},A.replaceTarget(d),A.doTiming=function(x){if(A.lastTimestamp!==x&&(A.lastTimestamp=x,A.startTime||(A.startTime=x),!A.isPaused&&A.isRunning)){for(A.currentTime=x-A.startTime,A.currentTime+=16;A.noteTimings.length>A.currentEvent&&A.noteTimings[A.currentEvent].milliseconds<A.currentTime;){if(A.eventCallback&&A.noteTimings[A.currentEvent].type==="event"){var S=A.startTime;A.eventCallback(A.noteTimings[A.currentEvent]),S!==A.startTime&&(A.currentTime=x-A.startTime)}A.currentEvent++}if(A.lineEndCallback&&A.lineEndTimings.length>A.currentLine&&A.lineEndTimings[A.currentLine].milliseconds<A.currentTime&&A.currentEvent<A.noteTimings.length){var E=A.noteTimings[A.currentEvent].milliseconds===A.currentTime?A.noteTimings[A.currentEvent]:A.noteTimings[A.currentEvent-1];A.lineEndCallback(A.lineEndTimings[A.currentLine],E,{line:A.currentLine,endTimings:A.lineEndTimings,currentTime:A.currentTime}),A.currentLine++}if(A.currentTime<A.lastMoment){if(requestAnimationFrame(A.doTiming),A.currentBeat*A.millisecondsPerBeat<A.currentTime){var P=A.doBeatCallback(x);P!==null&&(A.currentTime=P)}}else if(A.currentBeat<=A.totalBeats&&A.beatCallback){var B=A.doBeatCallback(x);B!==null&&(A.currentTime=B),requestAnimationFrame(A.doTiming)}if(A.currentTime>=A.lastMoment)if(A.eventCallback){var k=A.eventCallback(null);A.shouldStop(k).then(function($){$&&A.stop()})}else A.stop()}},A.shouldStop=function(x){return new Promise(function(S){if(!x)return S(!0);if(x==="continue")return S(!1);x.then&&x.then(function(E){S(E!=="continue")})})},A.doBeatCallback=function(x){if(A.beatCallback){for(var S=A.currentEvent;S<A.noteTimings.length&&A.noteTimings[S].left===null;)S++;var E,P;if(S<A.noteTimings.length){for(E=A.noteTimings[S].milliseconds,S=Math.max(0,A.currentEvent-1);S>=0&&A.noteTimings[S].left===null;)S--;P=A.noteTimings[S]}var B={},k={};if(P){B.top=P.top,B.height=P.height;var $=Math.max(0,x-A.startTime-P.milliseconds),I=E-P.milliseconds,D=P.endX-P.left,F=I?$*D/I:0;B.left=P.left+F,A.currentEvent===0&&P.milliseconds>x-A.startTime&&(B.left=void 0),k={timestamp:x,startTime:A.startTime,ev:P,endMs:E,offMs:$,offPx:F,gapMs:I,gapPx:D}}else k={timestamp:x,startTime:A.startTime};var z=A.startTime;if(A.beatCallback(A.currentBeat/A.beatSubdivisions,A.totalBeats/A.beatSubdivisions,A.lastMoment,B,k),z!==A.startTime)return x-A.startTime;A.currentBeat++}return null};var C=60;A.animationJogger=function(){A.isRunning&&(A.doTiming(performance.now()),A.joggerTimer=setTimeout(A.animationJogger,C))},A.start=function(x,S){if(A.isRunning=!0,A.isPaused&&(A.isPaused=!1,x===void 0&&(A.justUnpaused=!0)),x)A.setProgress(x,S);else if(x===0)A.reset();else if(A.pausedPercent!==null){var E=performance.now();A.currentTime=A.lastMoment*A.pausedPercent,A.startTime=E-A.currentTime,A.pausedPercent=null,A.reportNext=!0}requestAnimationFrame(A.doTiming),A.joggerTimer=setTimeout(A.animationJogger,C)},A.pause=function(){A.isPaused=!0;var x=performance.now();A.pausedPercent=(x-A.startTime)/A.lastMoment,A.isRunning=!1,A.joggerTimer&&(clearTimeout(A.joggerTimer),A.joggerTimer=null)},A.currentMillisecond=function(){return A.currentTime},A.reset=function(){A.currentBeat=0,A.currentEvent=0,A.currentLine=0,A.startTime=null,A.pausedPercent=null},A.stop=function(){A.pause(),A.reset()},A.setProgress=function(x,S){var E;switch(S){case"seconds":A.currentTime=x*1e3,A.currentTime<0&&(A.currentTime=0),A.currentTime>A.lastMoment&&(A.currentTime=A.lastMoment),E=A.currentTime/A.lastMoment;break;case"beats":A.currentTime=x*A.millisecondsPerBeat*A.beatSubdivisions,A.currentTime<0&&(A.currentTime=0),A.currentTime>A.lastMoment&&(A.currentTime=A.lastMoment),E=A.currentTime/A.lastMoment;break;default:E=x,E<0&&(E=0),E>1&&(E=1),A.currentTime=A.lastMoment*E;break}A.isRunning||(A.pausedPercent=E);var P=performance.now();for(A.startTime=P-A.currentTime,A.currentEvent,A.currentEvent=0;A.noteTimings.length>A.currentEvent&&A.noteTimings[A.currentEvent].milliseconds<A.currentTime;)A.currentEvent++;if(A.lineEndCallback)for(A.currentLine=0;A.lineEndTimings.length>A.currentLine&&A.lineEndTimings[A.currentLine].milliseconds+A.lineEndAnticipation<A.currentTime;)A.currentLine++;var B=A.currentBeat;A.currentBeat=Math.floor(A.currentTime/A.millisecondsPerBeat),A.beatCallback&&B!==A.currentBeat&&A.doBeatCallback(A.startTime+A.currentTime),A.eventCallback&&A.currentEvent>=0&&A.noteTimings[A.currentEvent].type==="event"&&A.eventCallback(A.noteTimings[A.currentEvent]),A.lineEndCallback&&A.lineEndCallback(A.lineEndTimings[A.currentLine],A.noteTimings[A.currentEvent],{line:A.currentLine,endTimings:A.lineEndTimings}),A.joggerTimer=setTimeout(A.animationJogger,C)}};function getLineEndTimings(d,b){for(var A=[],w=null,C=0;C<d.length;C++){var x=d[C];x.type!=="end"&&x.top!==w&&(A.push({measureNumber:x.measureNumber,milliseconds:x.milliseconds-b,top:x.top,bottom:x.top+x.height}),w=x.top)}return A}var abc_timing_callbacks=TimingCallbacks$2,TimingCallbacks$1=abc_timing_callbacks,animation$1={};(function(){var d,b;animation$1.startAnimation=function(A,w,C){d&&(d.stop(),d=void 0),C.showCursor&&(b=A.querySelector(".abcjs-cursor"),b||(b=document.createElement("DIV"),b.className="abcjs-cursor cursor",b.style.position="absolute",A.appendChild(b),A.style.position="relative"));function x(I){for(var D=0;D<I.length;D++){var F=I[D];F.classList.contains("abcjs-bar")||(F.style.display="none")}}var S;function E(I){if(S){var D=A.querySelectorAll(S);x(D)}S=I}function P(I){var D=A.querySelectorAll(I);x(D)}function B(I){C.hideCurrentMeasure?P(I):C.hideFinishedMeasures&&E(I)}function k(I){return".abcjs-l"+I.line+".abcjs-m"+I.measureNumber}function $(I){if(I){if(I.measureStart){var D=k(I);D&&B(D)}b&&(b.style.left=I.left+"px",b.style.top=I.top+"px",b.style.width=I.width+"px",b.style.height=I.height+"px")}else d.stop(),d=void 0}d=new TimingCallbacks$1(w,{qpm:C.bpm,eventCallback:$}),d.start()},animation$1.pauseAnimation=function(A){d&&(A?d.pause():d.start())},animation$1.stopAnimation=function(){d&&(d.stop(),d=void 0)}})();var abc_animation=animation$1,parseCommon$e={};parseCommon$e.clone=function(d){var b={};for(var A in d)d.hasOwnProperty(A)&&(b[A]=d[A]);return b};parseCommon$e.cloneArray=function(d){for(var b=[],A=0;A<d.length;A++)b.push(parseCommon$e.clone(d[A]));return b};parseCommon$e.cloneHashOfHash=function(d){var b={};for(var A in d)d.hasOwnProperty(A)&&(b[A]=parseCommon$e.clone(d[A]));return b};parseCommon$e.cloneHashOfArrayOfHash=function(d){var b={};for(var A in d)d.hasOwnProperty(A)&&(b[A]=parseCommon$e.cloneArray(d[A]));return b};parseCommon$e.strip=function(d){return d.replace(/^\s+/,"").replace(/\s+$/,"")};parseCommon$e.startsWith=function(d,b){return d.indexOf(b)===0};parseCommon$e.endsWith=function(d,b){var A=d.length-b.length;return A>=0&&d.lastIndexOf(b)===A};parseCommon$e.last=function(d){return d.length===0?null:d[d.length-1]};var abc_common=parseCommon$e,parseCommon$d=abc_common,parseDirective$3={};(function(){var d,b,A,w,C;parseDirective$3.initialize=function(ne,re,fe,ce,we){d=ne,b=re,A=fe,w=ce,C=we,x()};function x(){A.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},A.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},A.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},A.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},A.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},A.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},A.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},A.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},A.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},w.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},w.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},w.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},w.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},w.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},w.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},w.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},w.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},w.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},w.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},w.formatting.annotationfont=A.annotationfont,w.formatting.gchordfont=A.gchordfont,w.formatting.historyfont=A.historyfont,w.formatting.infofont=A.infofont,w.formatting.measurefont=A.measurefont,w.formatting.partsfont=A.partsfont,w.formatting.repeatfont=A.repeatfont,w.formatting.textfont=A.textfont,w.formatting.tripletfont=A.tripletfont,w.formatting.vocalfont=A.vocalfont,w.formatting.wordsfont=A.wordsfont}var S={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},E=function(ne){switch(ne){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}},P=function(ne,re,fe,ce,we){function Fe(){var Te=parseInt(ne[0].token);return ne.shift(),re?ne.length===0?{face:re.face,weight:re.weight,style:re.style,decoration:re.decoration,size:Te}:ne.length===1&&ne[0].token==="box"&&S[we]?{face:re.face,weight:re.weight,style:re.style,decoration:re.decoration,size:Te,box:!0}:(b("Extra parameters in font definition.",fe,ce),{face:re.face,weight:re.weight,style:re.style,decoration:re.decoration,size:Te}):(b("Can't set just the size of the font since there is no default value.",fe,ce),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Te})}if(ne[0].token==="*"){if(ne.shift(),ne[0].type==="number")return Fe();b("Expected font size number after *.",fe,ce)}if(ne[0].type==="number")return Fe();for(var Ke=[],tt,ut="normal",dt="normal",it="none",$e=!1,ke="face",Oe=!1;ne.length;){var Qe=ne.shift(),Je=Qe.token.toLowerCase();switch(ke){case"face":Oe||Je!=="utf"&&Qe.type!=="number"&&Je!=="bold"&&Je!=="italic"&&Je!=="underline"&&Je!=="box"?Ke.length>0&&Qe.token==="-"?(Oe=!0,Ke[Ke.length-1]=Ke[Ke.length-1]+Qe.token):Oe?(Oe=!1,Ke[Ke.length-1]=Ke[Ke.length-1]+Qe.token):Ke.push(Qe.token):Qe.type==="number"?(tt?b("Font size specified twice in font definition.",fe,ce):tt=Qe.token,ke="modifier"):Je==="bold"?ut="bold":Je==="italic"?dt="italic":Je==="underline"?it="underline":Je==="box"?(S[we]?$e=!0:b('This font style doesn\'t support "box"',fe,ce),ke="finished"):Je==="utf"?(Qe=ne.shift(),ke="size"):b("Unknown parameter "+Qe.token+" in font definition.",fe,ce);break;case"size":Qe.type==="number"?tt?b("Font size specified twice in font definition.",fe,ce):tt=Qe.token:b("Expected font size in font definition.",fe,ce),ke="modifier";break;case"modifier":Je==="bold"?ut="bold":Je==="italic"?dt="italic":Je==="underline"?it="underline":Je==="box"?(S[we]?$e=!0:b('This font style doesn\'t support "box"',fe,ce),ke="finished"):b("Unknown parameter "+Qe.token+" in font definition.",fe,ce);break;case"finished":b('Extra characters found after "box" in font definition.',fe,ce);break}}tt===void 0?re?tt=re.size:(b("Must specify the size of the font since there is no default value.",fe,ce),tt=12):tt=parseFloat(tt),Ke=Ke.join(" "),Ke===""&&(re?Ke=re.face:(b("Must specify the name of the font since there is no default value.",fe,ce),Ke="sans-serif"));var ve=E(Ke),ye={};return ve?(ye.face=ve.face,ye.weight=ve.weight,ye.style=ve.style,ye.decoration=ve.decoration,ye.size=tt,$e&&(ye.box=!0),ye):(ye.face=Ke,ye.weight=ut,ye.style=dt,ye.decoration=it,ye.size=tt,$e&&(ye.box=!0),ye)},B=function(ne,re,fe){return re.length===0?'Directive "'+ne+'" requires a font as a parameter.':(A[ne]=P(re,A[ne],fe,0,ne),A.is_in_header&&(w.formatting[ne]=A[ne]),null)},k=function(ne,re,fe){return re.length===0?'Directive "'+ne+'" requires a font as a parameter.':(w.formatting[ne]=P(re,w.formatting[ne],fe,0,ne),null)},$=function(ne,re){var fe="";re.forEach(function(we){fe+=we.token});var ce=parseFloat(fe);if(isNaN(ce)||ce===0)return'Directive "'+ne+'" requires a number as a parameter.';w.formatting.scale=ce},I=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],D=function(ne){var re=ne.split(/\s+/);if(re.length!==2&&re.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var fe=re[0],ce=parseInt(re[1],10);if((isNaN(ce)||ce<35||ce>81)&&re[1]&&(ce=I.indexOf(re[1].toLowerCase())+35),isNaN(ce)||ce<35||ce>81)return{error:'Expected drum name, received "'+re[1]+'"'};var we={sound:ce};return re.length===3&&(we.noteHead=re[2]),{key:fe,value:we}},F=function(ne,re){var fe=d.getMeasurement(re);return fe.used===0||re.length!==0?{error:'Directive "'+ne+'" requires a measurement as a parameter.'}:fe.value},z=function(ne,re){var fe=d.getMeasurement(re);return fe.used===0||re.length!==0?'Directive "'+ne+'" requires a measurement as a parameter.':(w.formatting[ne]=fe.value,null)},L=function(ne,re,fe,ce,we){if(fe.length!==1||fe[0].type!=="number")return'Directive "'+re+'" requires a number as a parameter.';var Fe=fe[0].intt;return ce!==void 0&&Fe<ce?'Directive "'+re+'" requires a number greater than or equal to '+ce+" as a parameter.":we!==void 0&&Fe>we?'Directive "'+re+'" requires a number less than or equal to '+we+" as a parameter.":(A[ne]=Fe,null)},H=function(ne,re,fe){if(fe.length===1&&(fe[0].token==="true"||fe[0].token==="false"))return A[ne]=fe[0].token==="true",null;var ce=L(ne,re,fe,0,1);return ce!==null?ce:(A[ne]=A[ne]===1,null)},Q=function(ne,re,fe,ce){if(fe.length!==1)return'Directive "'+re+'" requires one of [ '+ce.join(", ")+" ] as a parameter.";for(var we=fe[0].token,Fe=!1,Ke=0;!Fe&&Ke<ce.length;Ke++)ce[Ke]===we&&(Fe=!0);return Fe?(A[ne]=we,null):'Directive "'+re+'" requires one of [ '+ce.join(", ")+" ] as a parameter."},Y=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],U=["gchord","ptstress","beatstring"],G=["bassvol","chordvol","bassprog","chordprog","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],W=["program"],K=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],X=["beat"],Z=["drone"],oe=["portamento"],he=["expand","grace","trim"],J=["drum","chordname"],le=function(ne,re,fe){var ce=ne.shift().token,we=[];if(Y.indexOf(ce)>=0)ne.length!==0&&b("Unexpected parameter in MIDI "+ce,fe,0);else if(U.indexOf(ce)>=0)ne.length!==1?b("Expected one parameter in MIDI "+ce,fe,0):we.push(ne[0].token);else if(G.indexOf(ce)>=0)ne.length!==1?b("Expected one parameter in MIDI "+ce,fe,0):ne[0].type!=="number"?b("Expected one integer parameter in MIDI "+ce,fe,0):we.push(ne[0].intt);else if(W.indexOf(ce)>=0)ne.length!==1&&ne.length!==2?b("Expected one or two parameters in MIDI "+ce,fe,0):ne[0].type!=="number"||ne.length===2&&ne[1].type!=="number"?b("Expected integer parameter in MIDI "+ce,fe,0):(we.push(ne[0].intt),ne.length===2&&we.push(ne[1].intt));else if(K.indexOf(ce)>=0)ne.length!==2?b("Expected two parameters in MIDI "+ce,fe,0):ne[0].type!=="number"||ne[1].type!=="number"?b("Expected two integer parameters in MIDI "+ce,fe,0):(we.push(ne[0].intt),we.push(ne[1].intt));else if(oe.indexOf(ce)>=0)ne.length!==2?b("Expected two parameters in MIDI "+ce,fe,0):ne[0].type!=="alpha"||ne[1].type!=="number"?b("Expected one string and one integer parameters in MIDI "+ce,fe,0):(we.push(ne[0].token),we.push(ne[1].intt));else if(ce==="drummap")ne.length===2&&ne[0].type==="alpha"&&ne[1].type==="number"?(re.formatting||(re.formatting={}),re.formatting.midi||(re.formatting.midi={}),re.formatting.midi.drummap||(re.formatting.midi.drummap={}),re.formatting.midi.drummap[ne[0].token]=ne[1].intt,we=re.formatting.midi.drummap):ne.length===3&&ne[0].type==="punct"&&ne[1].type==="alpha"&&ne[2].type==="number"?(re.formatting||(re.formatting={}),re.formatting.midi||(re.formatting.midi={}),re.formatting.midi.drummap||(re.formatting.midi.drummap={}),re.formatting.midi.drummap[ne[0].token+ne[1].token]=ne[2].intt,we=re.formatting.midi.drummap):b("Expected one note name and one integer parameter in MIDI "+ce,fe,0);else if(he.indexOf(ce)>=0)ne.length!==3||ne[0].type!=="number"||ne[1].token!=="/"||ne[2].type!=="number"?b("Expected fraction parameter in MIDI "+ce,fe,0):(we.push(ne[0].intt),we.push(ne[2].intt));else if(X.indexOf(ce)>=0)ne.length!==4?b("Expected four parameters in MIDI "+ce,fe,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"?b("Expected four integer parameters in MIDI "+ce,fe,0):(we.push(ne[0].intt),we.push(ne[1].intt),we.push(ne[2].intt),we.push(ne[3].intt));else if(Z.indexOf(ce)>=0)ne.length!==5?b("Expected five parameters in MIDI "+ce,fe,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"||ne[4].type!=="number"?b("Expected five integer parameters in MIDI "+ce,fe,0):(we.push(ne[0].intt),we.push(ne[1].intt),we.push(ne[2].intt),we.push(ne[3].intt),we.push(ne[4].intt));else if(W.indexOf(ce)>=0)ne.length!==1||ne.length!==4?b("Expected one or two parameters in MIDI "+ce,fe,0):ne[0].type!=="number"?b("Expected integer parameter in MIDI "+ce,fe,0):ne.length===4?(ne[1].token!=="octave"&&b("Expected octave parameter in MIDI "+ce,fe,0),ne[2].token!=="="&&b("Expected octave parameter in MIDI "+ce,fe,0),ne[3].type!=="number"&&b("Expected integer parameter for octave in MIDI "+ce,fe,0)):(we.push(ne[0].intt),ne.length===4&&we.push(ne[3].intt));else if(J.indexOf(ce)>=0)if(ne.length<2)b("Expected string parameter and at least one integer parameter in MIDI "+ce,fe,0);else if(ne[0].type!=="alpha")b("Expected string parameter and at least one integer parameter in MIDI "+ce,fe,0);else{var Fe=ne.shift();for(we.push(Fe.token);ne.length>0;)Fe=ne.shift(),Fe.type!=="number"&&b("Expected integer parameter in MIDI "+ce,fe,0),we.push(Fe.intt)}C.hasBeginMusic()?C.appendElement("midi",-1,-1,{cmd:ce,params:we}):(re.formatting.midi===void 0&&(re.formatting.midi={}),re.formatting.midi[ce]=we)};parseDirective$3.parseFontChangeLine=function(ne){var re=ne.split("$");if(re.length>1&&A.setfont){for(var fe=[{text:re[0]}],ce=1;ce<re.length;ce++)re[ce][0]==="0"?fe.push({text:re[ce].substring(1)}):re[ce][0]==="1"&&A.setfont[1]?fe.push({font:A.setfont[1],text:re[ce].substring(1)}):re[ce][0]==="2"&&A.setfont[2]?fe.push({font:A.setfont[2],text:re[ce].substring(1)}):re[ce][0]==="3"&&A.setfont[3]?fe.push({font:A.setfont[3],text:re[ce].substring(1)}):re[ce][0]==="4"&&A.setfont[4]?fe.push({font:A.setfont[4],text:re[ce].substring(1)}):fe[fe.length-1].text+="$"+re[ce];if(fe.length>1)return fe}return ne};var de=["auto","above","below","hidden"];parseDirective$3.addDirective=function(ne){var re=d.tokenize(ne,0,ne.length);if(re.length===0||re[0].type!=="alpha")return null;var fe=ne.substring(ne.indexOf(re[0].token)+re[0].token.length);fe=d.stripComment(fe);var ce=re.shift().token.toLowerCase(),we="",Fe;switch(ce){case"bagpipes":w.formatting.bagpipes=!0;break;case"flatbeams":w.formatting.flatbeams=!0;break;case"jazzchords":w.formatting.jazzchords=!0;break;case"germanAlphabet":w.formatting.germanAlphabet=!0;break;case"landscape":A.landscape=!0;break;case"papersize":A.papersize=fe;break;case"graceslurs":if(re.length!==1)return"Directive graceslurs requires one parameter: 0 or 1";if(re[0].token==="0"||re[0].token==="false")w.formatting.graceSlurs=!1;else if(re[0].token==="1"||re[0].token==="true")w.formatting.graceSlurs=!0;else return"Directive graceslurs requires one parameter: 0 or 1 (received "+re[0].token+")";break;case"lineThickness":var Ke=me(re);if(Ke.value!==void 0&&(w.formatting.lineThickness=Ke.value),Ke.error)return Ke.error;break;case"stretchlast":var tt=me(re);if(tt.value!==void 0&&(w.formatting.stretchlast=tt.value),tt.error)return tt.error;break;case"titlecaps":A.titlecaps=!0;break;case"titleleft":w.formatting.titleleft=!0;break;case"measurebox":w.formatting.measurebox=!0;break;case"vocal":return Q("vocalPosition",ce,re,de);case"dynamic":return Q("dynamicPosition",ce,re,de);case"gchord":return Q("chordPosition",ce,re,de);case"ornament":return Q("ornamentPosition",ce,re,de);case"volume":return Q("volumePosition",ce,re,de);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return z(ce,re);case"voicescale":if(re.length!==1||re[0].type!=="number")return"voicescale requires one float as a parameter";var ut=re.shift();return A.currentVoice&&(A.currentVoice.scale=ut.floatt,C.changeVoiceScale(A.currentVoice.scale)),null;case"voicecolor":if(re.length!==1)return"voicecolor requires one string as a parameter";var dt=re.shift();return A.currentVoice&&(A.currentVoice.color=dt.token,C.changeVoiceColor(A.currentVoice.color)),null;case"vskip":var it=Math.round(F(ce,re));return it.error?it.error:(C.addSpacing(it),null);case"scale":$(ce,re);break;case"sep":if(re.length===0)C.addSeparator(14,14,85,{startChar:A.iChar,endChar:A.iChar+5});else{var $e=d.getMeasurement(re);if($e.used===0)return'Directive "'+ce+'" requires 3 numbers: space above, space below, length of line';var ke=$e.value;if($e=d.getMeasurement(re),$e.used===0)return'Directive "'+ce+'" requires 3 numbers: space above, space below, length of line';var Oe=$e.value;if($e=d.getMeasurement(re),$e.used===0||re.length!==0)return'Directive "'+ce+'" requires 3 numbers: space above, space below, length of line';var Qe=$e.value;C.addSeparator(ke,Oe,Qe,{startChar:A.iChar,endChar:A.iChar+fe.length})}break;case"barsperstaff":if(we=L("barsperstaff",ce,re),we!==null)return we;break;case"staffnonote":if(re.length!==1)return"Directive staffnonote requires one parameter: 0 or 1";if(re[0].token==="0")A.staffnonote=!0;else if(re[0].token==="1")A.staffnonote=!1;else return"Directive staffnonote requires one parameter: 0 or 1 (received "+re[0].token+")";break;case"printtempo":if(we=H("printTempo",ce,re),we!==null)return we;break;case"partsbox":if(we=H("partsBox",ce,re),we!==null)return we;A.partsfont.box=A.partsBox;break;case"freegchord":if(we=H("freegchord",ce,re),we!==null)return we;break;case"measurenb":case"barnumbers":if(we=L("barNumbers",ce,re),we!==null)return we;break;case"setbarnb":if(re.length!==1||re[0].type!=="number")return"Directive setbarnb requires a number as a parameter.";A.currBarNumber=C.setBarNumberImmediate(re[0].intt);break;case"begintext":var Je="";for(Fe=d.nextLine();Fe&&Fe.indexOf("%%endtext")!==0;)parseCommon$d.startsWith(Fe,"%%")?Je+=Fe.substring(2)+"\n":Je+=Fe+"\n",Fe=d.nextLine();C.addText(Je,{startChar:A.iChar,endChar:A.iChar+Je.length+7});break;case"continueall":A.continueall=!0;break;case"beginps":for(Fe=d.nextLine();Fe&&Fe.indexOf("%%endps")!==0;)d.nextLine();b("Postscript ignored",ne,0);break;case"deco":fe.length>0&&A.ignoredDecorations.push(fe.substring(0,fe.indexOf(" "))),b("Decoration redefinition ignored",ne,0);break;case"text":var ve=d.translateString(fe);C.addText(parseDirective$3.parseFontChangeLine(ve),{startChar:A.iChar,endChar:A.iChar+fe.length+7});break;case"center":var ye=d.translateString(fe);C.addCentered(parseDirective$3.parseFontChangeLine(ye));break;case"font":break;case"setfont":var Te=d.tokenize(fe,0,fe.length);if(Te.length>=4&&Te[0].token==="-"&&Te[1].type==="number"){var ee=parseInt(Te[1].token);ee>=1&&ee<=4&&(A.setfont||(A.setfont=[]),Te.shift(),Te.shift(),A.setfont[ee]=P(Te,A.setfont[ee],ne,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return B(ce,re,ne);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return k(ce,re,ne);case"barlabelfont":case"barnumberfont":case"barnumfont":return B("measurefont",re,ne);case"staves":case"score":A.score_is_present=!0;for(var se=function(ft,vt,bt,xe,Ne){(vt||A.staves.length===0)&&A.staves.push({index:A.staves.length,numVoices:0});var ze=parseCommon$d.last(A.staves);bt!==void 0&&ze.bracket===void 0&&(ze.bracket=bt),xe!==void 0&&ze.brace===void 0&&(ze.brace=xe),Ne&&(ze.connectBarLines="end"),A.voices[ft]===void 0&&(A.voices[ft]={staffNum:ze.index,index:ze.numVoices},ze.numVoices++)},ie=!1,be=!1,Ee=!1,Ce=!1,ge=!1,Ie=!1,Le=!1,Ye,rt=function(){if(Le=!0,Ye){var ft="start";Ye.staffNum>0&&(A.staves[Ye.staffNum-1].connectBarLines==="start"||A.staves[Ye.staffNum-1].connectBarLines==="continue")&&(ft="continue"),A.staves[Ye.staffNum].connectBarLines=ft}};re.length;){var lt=re.shift();switch(lt.token){case"(":ie?b("Can't nest parenthesis in %%score",ne,lt.start):(ie=!0,Ce=!0);break;case")":!ie||Ce?b("Unexpected close parenthesis in %%score",ne,lt.start):ie=!1;break;case"[":be?b("Can't nest brackets in %%score",ne,lt.start):(be=!0,ge=!0);break;case"]":!be||ge?b("Unexpected close bracket in %%score",ne,lt.start):(be=!1,A.staves[Ye.staffNum].bracket="end");break;case"{":Ee?b("Can't nest braces in %%score",ne,lt.start):(Ee=!0,Ie=!0);break;case"}":!Ee||Ie?b("Unexpected close brace in %%score",ne,lt.start):(Ee=!1,A.staves[Ye.staffNum].brace="end");break;case"|":rt();break;default:for(var pt="";(lt.type==="alpha"||lt.type==="number")&&(pt+=lt.token,lt.continueId);)lt=re.shift();var He=!ie||Ce,at=ge?"start":be?"continue":void 0,nt=Ie?"start":Ee?"continue":void 0;se(pt,He,at,nt,Le),Ce=!1,ge=!1,Ie=!1,Le=!1,Ye=A.voices[pt],ce==="staves"&&rt();break}}break;case"newpage":var mt=d.getInt(fe);C.addNewPage(mt.digits===0?-1:mt.value);break;case"abc":var Tt=fe.split(" ");switch(Tt[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Dt=Tt.shift();C.addMetaText(ce+Dt,Tt.join(" "),{startChar:A.iChar,endChar:A.iChar+fe.length+5});break;default:return"Unknown directive: "+ce+Tt[0]}break;case"header":case"footer":var yt=d.getMeat(fe,0,fe.length);yt=fe.substring(yt.start,yt.end),yt[0]==='"'&&yt[yt.length-1]==='"'&&(yt=yt.substring(1,yt.length-1));var At=yt.split(" "),Ae={};At.length===1?Ae={left:"",center:At[0],right:""}:At.length===2?Ae={left:At[0],center:At[1],right:""}:Ae={left:At[0],center:At[1],right:At[2]},At.length>3&&b("Too many tabs in "+ce+": "+At.length+" found.",fe,0),C.addMetaTextObj(ce,Ae,{startChar:A.iChar,endChar:A.iChar+ne.length});break;case"midi":var Re=d.tokenize(fe,0,fe.length,!0);Re.length>0&&Re[0].token==="="&&Re.shift(),Re.length===0?b("Expected midi command",fe,0):le(Re,w,fe);break;case"percmap":var qe=D(fe);qe.error?b(qe.error,ne,8):(w.formatting.percmap||(w.formatting.percmap={}),w.formatting.percmap[qe.key]=qe.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":w.formatting[ce]=fe;break;default:return"Unknown directive: "+ce}return null},parseDirective$3.globalFormatting=function(ne){for(var re in ne)if(ne.hasOwnProperty(re)){var fe=""+ne[re],ce=d.tokenize(fe,0,fe.length),we;switch(re){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":B(re,ce,fe);break;case"scale":$(re,ce);break;case"partsbox":we=H("partsBox",re,ce),we!==null&&b(we),A.partsfont.box=A.partsBox;break;case"freegchord":we=H("freegchord",re,ce),we!==null&&b(we);break;case"fontboxpadding":(ce.length!==1||ce[0].type!=="number")&&b('Directive "'+re+'" requires a number as a parameter.'),w.formatting.fontboxpadding=ce[0].floatt;break;case"stretchlast":var Fe=me(ce);if(Fe.value!==void 0&&(w.formatting.stretchlast=Fe.value),Fe.error)return Fe.error;break;default:b("Formatting directive unrecognized: ",re,0)}}};function me(ne){if(ne.length===0)return{value:1};if(ne.length===1)if(ne[0].type==="number"){if(ne[0].floatt>=0||ne[0].floatt<=1)return{value:ne[0].floatt}}else{if(ne[0].token==="false")return{value:0};if(ne[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+ne[0].token+")"}}})();var abc_parse_directive=parseDirective$3,allNotes$1={};const allPitches=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];allNotes$1.pitchIndex=function(d){return allPitches.indexOf(d)};allNotes$1.noteName=function(d){return allPitches[d]};var allNotes_1=allNotes$1,sharpChords=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],flatChords=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],sharpChordsFree=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],flatChordsFree=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function transposeChordName$2(d,b,A,w){if(!b||b%12===0)return d;for(;b<0;)b+=12;b>11&&(b=b%12);var C=d.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!C)return d;var x=C[1],S=C[2],E=C[3],P=C[4],B=sharpChords.indexOf(x);if(B<0&&(B=flatChords.indexOf(x)),B<0&&(B=sharpChordsFree.indexOf(x)),B<0&&(B=flatChordsFree.indexOf(x)),B<0)return d;if(B+=b,B=B%12,A?w?d=flatChordsFree[B]:d=flatChords[B]:w?d=sharpChordsFree[B]:d=sharpChords[B],S&&(d+=S),E){var B=sharpChords.indexOf(E);B<0&&(B=flatChords.indexOf(E)),B<0&&(B=sharpChordsFree.indexOf(E)),B<0&&(B=flatChordsFree.indexOf(E)),d+="/",B>=0?(B+=b,B=B%12,A?w?d+=flatChordsFree[B]:d+=flatChords[B]:w?d+=sharpChordsFree[B]:d+=sharpChords[B]):d+=E}return P&&(d+=P),d}var transposeChord=transposeChordName$2,keys$1={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},keyReverse=null;function createKeyReverse(){keyReverse={};for(var d=Object.keys(keys$1),b=0;b<d.length;b++){var A=keys$1[d[b]];keyReverse[d[b].toLowerCase()]=d[b];for(var w=0;w<A.modes.length;w++){var C=A.modes[w].toLowerCase();keyReverse[C]=d[b]}}}function relativeMajor$2(d){keyReverse||createKeyReverse();var b=d.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);if(!b||!b[2])return d;b=b[1]+b[2];var A=keyReverse[b];return A||d}function relativeMode$1(d,b){var A=keys$1[d];if(!A||b==="")return d;var w=b.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!w)return d;for(var C=w[1],x=0;x<A.modes.length;x++){var S=A.modes[x],E=S.toLowerCase().indexOf(C);if(E!==-1&&E===S.length-C.length)return S.substring(0,S.length-C.length)}return d}function transposeKey$1(d,b){var A=keys$1[d];if(!A)return d;for(;b<0;)b+=12;for(var w=(A.stepsFromC+b)%12,C=0;C<Object.keys(keys$1).length;C++){var x=Object.keys(keys$1)[C];if(keys$1[x].stepsFromC===w)return x}return d}var relativeMajor_1={relativeMajor:relativeMajor$2,relativeMode:relativeMode$1,transposeKey:transposeKey$1},{relativeMajor:relativeMajor$1}=relativeMajor_1,key1sharp={acc:"sharp",note:"f"},key2sharp={acc:"sharp",note:"c"},key3sharp={acc:"sharp",note:"g"},key4sharp={acc:"sharp",note:"d"},key5sharp={acc:"sharp",note:"A"},key6sharp={acc:"sharp",note:"e"},key7sharp={acc:"sharp",note:"B"},key1flat={acc:"flat",note:"B"},key2flat={acc:"flat",note:"e"},key3flat={acc:"flat",note:"A"},key4flat={acc:"flat",note:"d"},key5flat={acc:"flat",note:"G"},key6flat={acc:"flat",note:"c"},key7flat={acc:"flat",note:"F"},keys={"C#":[key1sharp,key2sharp,key3sharp,key4sharp,key5sharp,key6sharp,key7sharp],"F#":[key1sharp,key2sharp,key3sharp,key4sharp,key5sharp,key6sharp],B:[key1sharp,key2sharp,key3sharp,key4sharp,key5sharp],E:[key1sharp,key2sharp,key3sharp,key4sharp],A:[key1sharp,key2sharp,key3sharp],D:[key1sharp,key2sharp],G:[key1sharp],C:[],F:[key1flat],Bb:[key1flat,key2flat],Eb:[key1flat,key2flat,key3flat],Cm:[key1flat,key2flat,key3flat],Ab:[key1flat,key2flat,key3flat,key4flat],Db:[key1flat,key2flat,key3flat,key4flat,key5flat],Gb:[key1flat,key2flat,key3flat,key4flat,key5flat,key6flat],Cb:[key1flat,key2flat,key3flat,key4flat,key5flat,key6flat,key7flat],"A#":[key1flat,key2flat],"B#":[],"D#":[key1flat,key2flat,key3flat],"E#":[key1flat],"G#":[key1flat,key2flat,key3flat,key4flat],none:[]};function keyAccidentals$2(d){var b=keys[relativeMajor$1(d)];return b?JSON.parse(JSON.stringify(b)):null}var keyAccidentals_1=keyAccidentals$2,allNotes=allNotes_1,transposeChordName$1=transposeChord,keyAccidentals$1=keyAccidentals_1,transpose$2={},keyIndex={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},newKey=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],newKeyMinor=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];transpose$2.keySignature=function(d,b,A,w,C){if(d.clef.type==="perc"||d.clef.type==="none")return{accidentals:keyAccidentals$1(b),root:A,acc:w};C||(C=0),d.localTransposeVerticalMovement=0,d.localTransposePreferFlats=!1;var x=keyAccidentals$1(b);if(!x)return d.key;if(d.localTranspose=(d.globalTranspose?d.globalTranspose:0)+C,!d.localTranspose)return{accidentals:x,root:A,acc:w};if(d.globalTransposeOrigKeySig=x,d.localTranspose%12===0)return d.localTransposeVerticalMovement=d.localTranspose/12*7,{accidentals:x,root:A,acc:w};var S=b[0];b[1]==="b"||b[1]==="#"?(S+=b[1],b=b.substr(2)):b=b.substr(1);var E=keyIndex[S],P=E!==void 0;P||(E=0,S="C",b="");for(var B=E+d.localTranspose;B<0;)B+=12;B>11&&(B=B%12);var k=b[0]==="m"?newKeyMinor[B]:newKey[B],$=k+b,I=keyAccidentals$1($);I.length>0&&I[0].acc==="flat"&&(d.localTransposePreferFlats=!0);var D=$.charCodeAt(0)-S.charCodeAt(0);return d.localTranspose>0?(D<0||D===0&&(S[1]==="#"||$[1]==="b"))&&(D+=7):d.localTranspose<0&&(D>0||D===0&&(S[1]==="b"||$[1]==="#"))&&(D-=7),d.localTranspose>0?d.localTransposeVerticalMovement=D+Math.floor(d.localTranspose/12)*7:d.localTransposeVerticalMovement=D+Math.ceil(d.localTranspose/12)*7,P?{accidentals:I,root:k[0],acc:k.length>1?k[1]:""}:{accidentals:[],root:A,acc:w}};transpose$2.chordName=function(d,b){return transposeChordName$1(b,d.localTranspose,d.localTransposePreferFlats,d.freegchord)};var pitchToLetter=["c","d","e","f","g","a","b"];function accidentalChange(d,b,A,w,C){for(var x=pitchToLetter[(d+49)%7],S=0,E=0;E<w.length;E++)w[E].note.toLowerCase()===x&&(S=accidentals$1[w[E].acc]);for(var P=accidentals$1[A],B=P-S,k=pitchToLetter[(b+49)%7],$=0,I=0;I<C.accidentals.length;I++)C.accidentals[I].note.toLowerCase()===k&&($=accidentals$1[C.accidentals[I].acc]);var D=B+$;return D<-2&&(b--,D+=k==="c"||k==="f"?1:2),D>2&&(b++,D-=k==="b"||k==="e"?1:2),[b,D]}var accidentals$1={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},accidentals2={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},accidentals3={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};transpose$2.note=function(d,b){if(!(!d.localTranspose||d.clef.type==="perc")){var A=b.pitch;if(d.localTransposeVerticalMovement&&(b.pitch=b.pitch+d.localTransposeVerticalMovement,b.name)){var w=b.accidental?b.name.substring(1):b.name,C=b.accidental?b.name[0]:"",x=allNotes.pitchIndex(w);b.name=C+allNotes.noteName(x+d.localTransposeVerticalMovement)}if(b.accidental){var S=accidentalChange(A,b.pitch,b.accidental,d.globalTransposeOrigKeySig,d.targetKey);b.pitch=S[0],b.accidental=accidentals2[S[1]],b.name&&(b.name=accidentals3[S[1]]+b.name.replace(/[_^=]/g,""))}}};var abc_transpose=transpose$2,parseCommon$c=abc_common,parseDirective$2=abc_parse_directive,transpose$1=abc_transpose,parseKeyVoice$3={};(function(){var d,b,A,w;parseKeyVoice$3.initialize=function(k,$,I,D,F){d=k,b=$,A=I,w=F},parseKeyVoice$3.standardKey=function(k,$,I,D){return transpose$1.keySignature(A,k,$,I,D)};var C={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},x=function(k,$){var I=C[k],D=I?I.mid:0;return D+$};parseKeyVoice$3.fixClef=function(k){var $=C[k.type];$&&(k.clefPos=$.pitch,k.type=$.clef)},parseKeyVoice$3.deepCopyKey=function(k){var $={accidentals:[],root:k.root,acc:k.acc,mode:k.mode};return k.accidentals.forEach(function(I){$.accidentals.push(parseCommon$c.clone(I))}),$};var S={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};parseKeyVoice$3.addPosToKey=function(k,$){var I=k.verticalPos;$.accidentals.forEach(function(D){var F=S[D.note];F=F-I,D.verticalPos=F}),$.impliedNaturals&&$.impliedNaturals.forEach(function(D){var F=S[D.note];F=F-I,D.verticalPos=F}),I<-10?($.accidentals.forEach(function(D){D.verticalPos-=7,(D.verticalPos>=11||D.verticalPos===10&&D.acc==="flat")&&(D.verticalPos-=7),D.note==="A"&&D.acc==="sharp"&&(D.verticalPos-=7),(D.note==="G"||D.note==="F")&&D.acc==="flat"&&(D.verticalPos-=7)}),$.impliedNaturals&&$.impliedNaturals.forEach(function(D){D.verticalPos-=7,(D.verticalPos>=11||D.verticalPos===10&&D.acc==="flat")&&(D.verticalPos-=7),D.note==="A"&&D.acc==="sharp"&&(D.verticalPos-=7),(D.note==="G"||D.note==="F")&&D.acc==="flat"&&(D.verticalPos-=7)})):I<-4?($.accidentals.forEach(function(D){D.verticalPos-=7,I===-8&&(D.note==="f"||D.note==="g")&&D.acc==="sharp"&&(D.verticalPos-=7)}),$.impliedNaturals&&$.impliedNaturals.forEach(function(D){D.verticalPos-=7,I===-8&&(D.note==="f"||D.note==="g")&&D.acc==="sharp"&&(D.verticalPos-=7)})):I>=7&&($.accidentals.forEach(function(D){D.verticalPos+=7}),$.impliedNaturals&&$.impliedNaturals.forEach(function(D){D.verticalPos+=7}))},parseKeyVoice$3.fixKey=function(k,$){var I=parseCommon$c.clone($);return parseKeyVoice$3.addPosToKey(k,I),I};var E=function(k){var $=0,I=k[$++];(I==="^"||I==="_")&&(I=k[$++]);var D=S[I];for(D===void 0&&(D=6);$<k.length;$++)if(k[$]===",")D-=7;else if(k[$]==="'")D+=7;else break;return{mid:D-6,str:k.substring($)}},P=function(k){for(var $=0;$<k.length;$++)k[$].note==="b"?k[$].note="B":k[$].note==="a"?k[$].note="A":k[$].note==="F"?k[$].note="f":k[$].note==="E"?k[$].note="e":k[$].note==="D"?k[$].note="d":k[$].note==="C"?k[$].note="c":k[$].note==="G"&&k[$].acc==="sharp"?k[$].note="g":k[$].note==="g"&&k[$].acc==="flat"&&(k[$].note="G")};parseKeyVoice$3.parseKey=function(k,$){k.length===0&&(k="none");var I=d.tokenize(k,0,k.length),D={};if(I.length===0)return b("Must pass in key signature.",k,0),D;switch(I[0].token){case"HP":parseDirective$2.addDirective("bagpipes"),A.key={root:"HP",accidentals:[],acc:"",mode:""},D.foundKey=!0,I.shift();break;case"Hp":parseDirective$2.addDirective("bagpipes"),A.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},D.foundKey=!0,I.shift();break;case"none":A.key={root:"none",accidentals:[],acc:"",mode:""},D.foundKey=!0,I.shift();break;default:var F=d.getKeyPitch(I[0].token);if(F.len>0){D.foundKey=!0;var z="",L="";I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift();var H=F.token;if(I.length>0){var Q=d.getSharpFlat(I[0].token);if(Q.len>0&&(I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift(),H+=Q.token,z=Q.token),I.length>0){var Y=d.getMode(I[0].token);Y.len>0&&(I.shift(),H+=Y.token,L=Y.token)}if(parseKeyVoice$3.standardKey(H,F.token,z,0)===void 0)return b("Unsupported key signature: "+H,k,0),D}var U=parseKeyVoice$3.deepCopyKey(A.key),G=!$&&A.globalTranspose?-A.globalTranspose:0,W;if($&&(W=A.globalTransposeOrigKeySig),A.key=parseKeyVoice$3.deepCopyKey(parseKeyVoice$3.standardKey(H,F.token,z,G)),$&&(A.globalTransposeOrigKeySig=W),A.key.mode=L,U){for(var K,X=0;X<A.key.accidentals.length;X++)for(K=0;K<U.accidentals.length;K++)U.accidentals[K].note&&A.key.accidentals[X].note.toLowerCase()===U.accidentals[K].note.toLowerCase()&&(U.accidentals[K].note=null);for(K=0;K<U.accidentals.length;K++)U.accidentals[K].note&&(A.key.impliedNaturals||(A.key.impliedNaturals=[]),A.key.impliedNaturals.push({acc:"natural",note:U.accidentals[K].note}))}}break}if(I.length===0||(I[0].token==="exp"&&I.shift(),I.length===0)||(I[0].token==="oct"&&I.shift(),I.length===0))return D;var Z=d.getKeyAccidentals2(I);if(Z.warn&&b(Z.warn,k,0),Z.accs){D.foundKey||(D.foundKey=!0,A.key={root:"none",acc:"",mode:"",accidentals:[]}),P(Z.accs);for(var oe=0;oe<Z.accs.length;oe++){for(var he=!1,J=0;J<A.key.accidentals.length&&!he;J++)A.key.accidentals[J].note===Z.accs[oe].note&&(he=!0,A.key.accidentals[J].acc!==Z.accs[oe].acc&&(A.key.accidentals[J].acc=Z.accs[oe].acc,A.key.explicitAccidentals||(A.key.explicitAccidentals=[]),A.key.explicitAccidentals.push(Z.accs[oe])));if(!he&&(A.key.explicitAccidentals||(A.key.explicitAccidentals=[]),A.key.explicitAccidentals.push(Z.accs[oe]),A.key.accidentals.push(Z.accs[oe]),A.key.impliedNaturals))for(var le=0;le<A.key.impliedNaturals.length;le++)A.key.impliedNaturals[le].note===Z.accs[oe].note&&A.key.impliedNaturals.splice(le,1)}}for(var de;I.length>0;)switch(I[0].token){case"m":case"middle":if(I.shift(),I.length===0)return b("Expected = after middle",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after middle",k,de.start);break}if(I.length===0)return b("Expected parameter after middle=",k,0),D;var me=d.getPitchFromTokens(I);me.warn&&b(me.warn,k,0),me.position&&(A.clef.verticalPos=me.position-6);break;case"transpose":if(I.shift(),I.length===0)return b("Expected = after transpose",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after transpose",k,de.start);break}if(I.length===0)return b("Expected parameter after transpose=",k,0),D;if(I[0].type!=="number"){b("Expected number after transpose",k,I[0].start);break}A.clef.transpose=I[0].intt,I.shift();break;case"stafflines":if(I.shift(),I.length===0)return b("Expected = after stafflines",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after stafflines",k,de.start);break}if(I.length===0)return b("Expected parameter after stafflines=",k,0),D;if(I[0].type!=="number"){b("Expected number after stafflines",k,I[0].start);break}A.clef.stafflines=I[0].intt,I.shift();break;case"staffscale":if(I.shift(),I.length===0)return b("Expected = after staffscale",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after staffscale",k,de.start);break}if(I.length===0)return b("Expected parameter after staffscale=",k,0),D;if(I[0].type!=="number"){b("Expected number after staffscale",k,I[0].start);break}A.clef.staffscale=I[0].floatt,I.shift();break;case"octave":if(I.shift(),I.length===0)return b("Expected = after octave",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after octave",k,de.start);break}if(I.length===0)return b("Expected parameter after octave=",k,0),D;if(I[0].type!=="number"){b("Expected number after octave",k,I[0].start);break}A.octave=I[0].intt,I.shift();break;case"style":if(I.shift(),I.length===0)return b("Expected = after style",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after style",k,de.start);break}if(I.length===0)return b("Expected parameter after style=",k,0),D;switch(I[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":A.style=I[0].token,I.shift();break;default:b("error parsing style element: "+I[0].token,k,I[0].start);break}break;case"clef":if(I.shift(),I.length===0)return b("Expected = after clef",k,0),D;if(de=I.shift(),de.token!=="="){b("Expected = after clef",k,de.start);break}if(I.length===0)return b("Expected parameter after clef=",k,0),D;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var ne=I.shift();switch(ne.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":ne.token="alto";break;case"F":ne.token="bass";break;case"G":ne.token="treble";break;case"c":ne.token="alto";break;case"f":ne.token="bass";break;case"g":ne.token="treble";break;default:b("Expected clef name. Found "+ne.token,k,ne.start);break}I.length>0&&I[0].type==="number"&&(ne.token+=I[0].token,I.shift()),I.length>1&&(I[0].token==="-"||I[0].token==="+"||I[0].token==="^"||I[0].token==="_")&&I[1].token==="8"&&(ne.token+=I[0].token+I[1].token,I.shift(),I.shift()),A.clef={type:ne.token,verticalPos:x(ne.token,0)},A.currentVoice&&A.currentVoice.transpose!==void 0&&(A.clef.transpose=A.currentVoice.transpose),D.foundClef=!0;break;default:b("Unknown parameter: "+I[0].token,k,I[0].start),I.shift()}return D};var B=function(k){A.currentVoice=A.voices[k],w.setCurrentVoice(A.currentVoice.staffNum,A.currentVoice.index)};parseKeyVoice$3.parseVoice=function(k,$,I){var D=d.getMeat(k,$,I),F=D.start,z=D.end,L=d.getToken(k,F,z);if(L.length===0){b("Expected a voice id",k,F);return}var H=!1;A.voices[L]===void 0&&(A.voices[L]={},H=!0,A.score_is_present&&b("Can't have an unknown V: id when the %score directive is present",k,F)),F+=L.length,F+=d.eatWhiteSpace(k,F);for(var Q={startStaff:H},Y=function(me){var ne=d.getVoiceToken(k,F,z);ne.warn!==void 0?b("Expected value for "+me+" in voice: "+ne.warn,k,F):ne.err!==void 0?b("Expected value for "+me+" in voice: "+ne.err,k,F):ne.token.length===0&&k[F]!=='"'?b("Expected value for "+me+" in voice",k,F):Q[me]=ne.token,F+=ne.len},U=function(me,ne,re){var fe=d.getVoiceToken(k,F,z);fe.warn!==void 0?b("Expected value for "+ne+" in voice: "+fe.warn,k,F):fe.err!==void 0?b("Expected value for "+ne+" in voice: "+fe.err,k,F):fe.token.length===0&&k[F]!=='"'?b("Expected value for "+ne+" in voice",k,F):(re==="number"&&(fe.token=parseFloat(fe.token)),A.voices[me][ne]=fe.token),F+=fe.len},G=function(me,ne){var re=d.getVoiceToken(k,F,z);if(re.warn!==void 0)b("Expected value for "+me+" in voice: "+re.warn,k,F);else if(re.err!==void 0)b("Expected value for "+me+" in voice: "+re.err,k,F);else if(re.token.length===0&&k[F]!=='"')b("Expected value for "+me+" in voice",k,F);else return ne==="number"&&(re.token=parseFloat(re.token)),re.token;F+=re.len},W=function(me,ne){var re={_B:2,_E:9,_b:-10,_e:-3},fe=d.getVoiceToken(k,F,z);if(fe.warn!==void 0)b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice: "+fe.warn,k,F);else if(fe.token.length===0&&k[F]!=='"')b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",k,F);else{var ce=re[fe.token];ce?A.voices[me][ne]=ce:b("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",k,F)}F+=fe.len};F<z;){var K=d.getVoiceToken(k,F,z);if(F+=K.len,K.warn)b("Error parsing voice: "+K.warn,k,F);else{var X=null;switch(K.token){case"clef":case"cl":Y("clef");var Z=0;Q.clef!==void 0&&(Q.clef=Q.clef.replace(/[',]/g,""),Q.clef.indexOf("+16")!==-1&&(Z+=14,Q.clef=Q.clef.replace("+16","")),Q.verticalPos=x(Q.clef,Z));break;case"treble":case"bass":case"tenor":case"alto":case"perc":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":var oe=0;Q.clef=K.token.replace(/[',]/g,""),Q.verticalPos=x(Q.clef,oe),A.voices[L].clef=K.token;break;case"staves":case"stave":case"stv":Y("staves");break;case"brace":case"brc":Y("brace");break;case"bracket":case"brk":Y("bracket");break;case"name":case"nm":Y("name");break;case"subname":case"sname":case"snm":Y("subname");break;case"merge":Q.startStaff=!1;break;case"stem":case"stems":X=d.getVoiceToken(k,F,z),X.warn!==void 0?b("Expected value for stems in voice: "+X.warn,k,F):X.err!==void 0?b("Expected value for stems in voice: "+X.err,k,F):X.token==="up"||X.token==="down"?A.voices[L].stem=X.token:b("Expected up or down for voice stem",k,F),F+=X.len;break;case"up":case"down":A.voices[L].stem=K.token;break;case"middle":case"m":Y("verticalPos"),Q.verticalPos=E(Q.verticalPos).mid;break;case"gchords":case"gch":A.voices[L].suppressChords=!0,X=d.getVoiceToken(k,F,z),X.token==="0"&&(F=F+X.len);break;case"space":case"spc":Y("spacing");break;case"scale":U(L,"scale","number");break;case"score":W(L,"scoreTranspose");break;case"transpose":U(L,"transpose","number");break;case"stafflines":U(L,"stafflines","number");break;case"staffscale":U(L,"staffscale","number");break;case"octave":U(L,"octave","number");break;case"volume":U(L,"volume","number");break;case"cue":var he=G("cue","string");he==="on"?A.voices[L].scale=.6:A.voices[L].scale=1;break;case"style":X=d.getVoiceToken(k,F,z),X.warn!==void 0?b("Expected value for style in voice: "+X.warn,k,F):X.err!==void 0?b("Expected value for style in voice: "+X.err,k,F):X.token==="normal"||X.token==="harmonic"||X.token==="rhythm"||X.token==="x"||X.token==="triangle"?A.voices[L].style=X.token:b("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",k,F),F+=X.len;break}}F+=d.eatWhiteSpace(k,F)}if((Q.startStaff||A.staves.length===0)&&(A.staves.push({index:A.staves.length,meter:A.origMeter}),A.score_is_present||(A.staves[A.staves.length-1].numVoices=0)),A.voices[L].staffNum===void 0){A.voices[L].staffNum=A.staves.length-1;var J=0;for(var le in A.voices)A.voices.hasOwnProperty(le)&&A.voices[le].staffNum===A.voices[L].staffNum&&J++;A.voices[L].index=J-1}var de=A.staves[A.voices[L].staffNum];A.score_is_present||de.numVoices++,Q.clef&&(de.clef={type:Q.clef,verticalPos:Q.verticalPos}),Q.spacing&&(de.spacing_below_offset=Q.spacing),Q.verticalPos&&(de.verticalPos=Q.verticalPos),Q.name&&(de.name?de.name.push(Q.name):de.name=[Q.name]),Q.subname&&(de.subname?de.subname.push(Q.subname):de.subname=[Q.subname]),B(L)}})();var abc_parse_key_voice=parseKeyVoice$3,parseCommon$b=abc_common,parseDirective$1=abc_parse_directive,parseKeyVoice$2=abc_parse_key_voice,ParseHeader$1=function(d,b,A,w,C){this.reset=function(E,P,B,k){parseKeyVoice$2.initialize(E,P,B,k,C),parseDirective$1.initialize(E,P,B,k,C)},this.reset(d,b,A,w),this.setTitle=function(E){if(A.hasMainTitle)C.addSubtitle(d.translateString(d.stripComment(E)),{startChar:A.iChar,endChar:A.iChar+E.length+2});else{var P=d.translateString(d.theReverser(d.stripComment(E)));A.titlecaps&&(P=P.toUpperCase()),C.addMetaText("title",P,{startChar:A.iChar,endChar:A.iChar+E.length+2}),A.hasMainTitle=!0}},this.setMeter=function(E){if(E=d.stripComment(E),E==="C")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"common_time"};if(E==="C|")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"cut_time"};if(E==="o")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"tempus_perfectum"};if(E==="c")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"tempus_imperfectum"};if(E==="o.")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if(E==="c.")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(E.length===0||E.toLowerCase()==="none")return A.havent_set_length===!0&&(A.default_length=.125,A.havent_set_length=!1),null;var P=d.tokenize(E,0,E.length);try{var B=function(){var z={value:0,num:""},L=P.shift();for(L.token==="("&&(L=P.shift());;){if(L.type!=="number")throw"Expected top number of meter";if(z.value+=parseInt(L.token),z.num+=L.token,P.length===0||P[0].token==="/")return z;if(L=P.shift(),L.token===")"){if(P.length===0||P[0].token==="/")return z;throw"Unexpected paren in meter"}if(L.token!=="."&&L.token!=="+"||(z.num+=L.token,P.length===0))throw"Expected top number of meter";L=P.shift()}return z},k=function(){var z=B();if(P.length===0)return z;var L=P.shift();if(L.token!=="/")throw"Expected slash in meter";if(L=P.shift(),L.type!=="number")throw"Expected bottom number of meter";return z.den=L.token,z.value=z.value/parseInt(z.den),z};if(P.length===0)throw"Expected meter definition in M: line";for(var $={type:"specified",value:[]},I=0;;){var D=k();I+=D.value;var F={num:D.num};if(D.den!==void 0&&(F.den=D.den),$.value.push(F),P.length===0)break}return A.havent_set_length===!0&&(A.default_length=I<.75?.0625:.125,A.havent_set_length=!1),$}catch(z){b(z,E,0)}return null},this.calcTempo=function(E){var P=.25;A.meter&&A.meter.type==="specified"?P=1/parseInt(A.meter.value[0].den):A.origMeter&&A.origMeter.type==="specified"&&(P=1/parseInt(A.origMeter.value[0].den));for(var B=0;B<E.duration;B++)E.duration[B]=P*E.duration[B];return E},this.resolveTempo=function(){A.tempo&&(this.calcTempo(A.tempo),w.metaText.tempo=A.tempo,delete A.tempo)},this.addUserDefinition=function(E,P,B){var k=E.indexOf("=",P);if(k===-1){b("Need an = in a macro definition",E,P);return}var $=parseCommon$b.strip(E.substring(P,k)),I=parseCommon$b.strip(E.substring(k+1));if($.length!==1){b("Macro definitions can only be one character",E,P);return}var D="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~";if(D.indexOf($)===-1){b("Macro definitions must be H-Y, h-w, or tilde",E,P);return}if(I.length===0){b("Missing macro definition",E,P);return}A.macros===void 0&&(A.macros={}),A.macros[$]=I},this.setDefaultLength=function(E,P,B){var k=E.substring(P,B).replace(/ /g,""),$=k.split("/");if($.length===2){var I=parseInt($[0]),D=parseInt($[1]);D>0&&(A.default_length=I/D,A.havent_set_length=!1)}else $.length===1&&$[0]==="1"&&(A.default_length=1,A.havent_set_length=!1)};var x={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(E,P,B,k){try{var $=d.tokenize(E,P,B);if($.length===0)throw"Missing parameter in Q: field";var I={startChar:k+P-2,endChar:k+B},D=!0,F=$.shift();if(F.type==="quote"&&(I.preString=F.token,F=$.shift(),$.length===0))return x[I.preString.toLowerCase()]&&(I.bpm=x[I.preString.toLowerCase()],I.suppressBpm=!0),{type:"immediate",tempo:I};if(F.type==="alpha"&&F.token==="C"){if($.length===0)throw"Missing tempo after C in Q: field";if(F=$.shift(),F.type==="punct"&&F.token==="="){if($.length===0)throw"Missing tempo after = in Q: field";if(F=$.shift(),F.type!=="number")throw"Expected number after = in Q: field";I.duration=[1],I.bpm=parseInt(F.token)}else if(F.type==="number"){if(I.duration=[parseInt(F.token)],$.length===0)throw"Missing = after duration in Q: field";if(F=$.shift(),F.type!=="punct"||F.token!=="=")throw"Expected = after duration in Q: field";if($.length===0)throw"Missing tempo after = in Q: field";if(F=$.shift(),F.type!=="number")throw"Expected number after = in Q: field";I.bpm=parseInt(F.token)}else throw"Expected number or equal after C in Q: field"}else if(F.type==="number"){var z=parseInt(F.token);if($.length===0||$[0].type==="quote")I.duration=[1],I.bpm=z;else{if(D=!1,F=$.shift(),F.type!=="punct"&&F.token!=="/"||(F=$.shift(),F.type!=="number"))throw"Expected fraction in Q: field";var L=parseInt(F.token);for(I.duration=[z/L];$.length>0&&$[0].token!=="="&&$[0].type!=="quote";){if(F=$.shift(),F.type!=="number"||(z=parseInt(F.token),F=$.shift(),F.type!=="punct"&&F.token!=="/")||(F=$.shift(),F.type!=="number"))throw"Expected fraction in Q: field";L=parseInt(F.token),I.duration.push(z/L)}if(F=$.shift(),F.type!=="punct"&&F.token!=="=")throw"Expected = in Q: field";if(F=$.shift(),F.type!=="number")throw"Expected tempo in Q: field";I.bpm=parseInt(F.token)}}else throw"Unknown value in Q: field";if($.length!==0&&(F=$.shift(),F.type==="quote"&&(I.postString=F.token,F=$.shift()),$.length!==0))throw"Unexpected string at end of Q: field";return A.printTempo===!1&&(I.suppress=!0),{type:D?"delaySet":"immediate",tempo:I}}catch(H){return b(H,E,P),{type:"none"}}},this.letter_to_inline_header=function(E,P,B){var k=d.eatWhiteSpace(E,P);if(P+=k,E.length>=P+5&&E[P]==="["&&E[P+2]===":"){var $=E.indexOf("]",P),I=A.iChar+P,D=A.iChar+$+1;switch(E.substring(P,P+3)){case"[I:":var F=parseDirective$1.addDirective(E.substring(P+3,$));return F&&b(F,E,P),[$-P+1+k];case"[M:":var z=this.setMeter(E.substring(P+3,$));return C.hasBeginMusic()&&z?C.appendStartingElement("meter",I,D,z):A.meter=z,[$-P+1+k];case"[K:":var L=parseKeyVoice$2.parseKey(E.substring(P+3,$),!0);return L.foundClef&&C.hasBeginMusic()&&C.appendStartingElement("clef",I,D,A.clef),L.foundKey&&C.hasBeginMusic()&&C.appendStartingElement("key",I,D,parseKeyVoice$2.fixKey(A.clef,A.key)),[$-P+1+k];case"[P:":return B||w.lines.length<=w.lineNum?A.partForNextLine={title:E.substring(P+3,$),startChar:I,endChar:D}:C.appendElement("part",I,D,{title:E.substring(P+3,$)}),[$-P+1+k];case"[L:":return this.setDefaultLength(E,P+3,$),[$-P+1+k];case"[Q:":if($>0){var H=this.setTempo(E,P+3,$,A.iChar);return H.type==="delaySet"?C.hasBeginMusic()?C.appendElement("tempo",I,D,this.calcTempo(H.tempo)):A.tempoForNextLine=["tempo",I,D,this.calcTempo(H.tempo)]:H.type==="immediate"&&(!B&&C.hasBeginMusic()?C.appendElement("tempo",I,D,H.tempo):A.tempoForNextLine=["tempo",I,D,H.tempo]),[$-P+1+k,E[P+1],E.substring(P+3,$)]}break;case"[V:":if($>0)return parseKeyVoice$2.parseVoice(E,P+3,$),[$-P+1+k,E[P+1],E.substring(P+3,$)];break;case"[r:":return[$-P+1+k]}}return[0]},this.letter_to_body_header=function(E,P){if(E.length>=P+3)switch(E.substring(P,P+2)){case"I:":var B=parseDirective$1.addDirective(E.substring(P+2));return B&&b(B,E,P),[E.length];case"M:":var k=this.setMeter(E.substring(P+2));return C.hasBeginMusic()&&k&&C.appendStartingElement("meter",A.iChar+P,A.iChar+E.length,k),[E.length];case"K:":var $=parseKeyVoice$2.parseKey(E.substring(P+2),C.hasBeginMusic());return $.foundClef&&C.hasBeginMusic()&&C.appendStartingElement("clef",A.iChar+P,A.iChar+E.length,A.clef),$.foundKey&&C.hasBeginMusic()&&C.appendStartingElement("key",A.iChar+P,A.iChar+E.length,parseKeyVoice$2.fixKey(A.clef,A.key)),[E.length];case"P:":return C.hasBeginMusic()&&C.appendElement("part",A.iChar+P,A.iChar+E.length,{title:E.substring(P+2)}),[E.length];case"L:":return this.setDefaultLength(E,P+2,E.length),[E.length];case"Q:":var I=E.indexOf("",P+2);I===-1&&(I=E.length);var D=this.setTempo(E,P+2,I,A.iChar);return D.type==="delaySet"?C.appendElement("tempo",A.iChar+P,A.iChar+E.length,this.calcTempo(D.tempo)):D.type==="immediate"&&C.appendElement("tempo",A.iChar+P,A.iChar+E.length,D.tempo),[I,E[P],parseCommon$b.strip(E.substring(P+2))];case"V:":return parseKeyVoice$2.parseVoice(E,P+2,E.length),[E.length,E[P],parseCommon$b.strip(E.substring(P+2))]}return[0]};var S={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(E){var P=S[E[0]];if(P!==void 0)return P==="unalignedWords"?C.addMetaTextArray(P,parseDirective$1.parseFontChangeLine(d.translateString(d.stripComment(E.substring(2)))),{startChar:A.iChar,endChar:A.iChar+E.length}):C.addMetaText(P,d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}),{};var B=A.iChar,k=B+E.length;switch(E[0]){case"H":for(C.addMetaText("history",d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}),E=d.peekLine();E&&E[1]!==":";)d.nextLine(),C.addMetaText("history",d.translateString(d.stripComment(E)),{startChar:A.iChar,endChar:A.iChar+E.length}),E=d.peekLine();break;case"K":this.resolveTempo();var $=parseKeyVoice$2.parseKey(E.substring(2),!1);!A.is_in_header&&C.hasBeginMusic()&&($.foundClef&&C.appendStartingElement("clef",B,k,A.clef),$.foundKey&&C.appendStartingElement("key",B,k,parseKeyVoice$2.fixKey(A.clef,A.key))),A.is_in_header=!1;break;case"L":this.setDefaultLength(E,2,E.length);break;case"M":A.origMeter=A.meter=this.setMeter(E.substring(2));break;case"P":A.is_in_header?C.addMetaText("partOrder",d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}):A.partForNextLine={title:d.translateString(d.stripComment(E.substring(2))),startChar:B,endChar:k};break;case"Q":var I=this.setTempo(E,2,E.length,A.iChar);I.type==="delaySet"?A.tempo=I.tempo:I.type==="immediate"&&(w.metaText.tempo?A.tempoForNextLine=["tempo",B,k,I.tempo]:w.metaText.tempo=I.tempo);break;case"T":this.setTitle(E.substring(2));break;case"U":this.addUserDefinition(E,2,E.length);break;case"V":if(parseKeyVoice$2.parseVoice(E,2,E.length),!A.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":b("Ignored header",E,0);break;default:return{regular:!0}}return{}}},abc_parse_header=ParseHeader$1,parseCommon$a=abc_common,parseKeyVoice$1=abc_parse_key_voice,transpose=abc_transpose,tokenizer,warn,multilineVars,tune,tuneBuilder$1,header,MusicParser=function(d,b,A,w,C,x){tokenizer=d,warn=b,multilineVars=A,tune=w,tuneBuilder$1=C,header=x,this.lineContinuation=!1},nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",isInTie=function(d,b,A){if(d.inTie[b]===void 0)return!1;var w=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;return!!(d.inTie[b][w]&&(A.pitches!==void 0||A.rest.type!=="spacer"))},el={};MusicParser.prototype.parseMusic=function(d){header.resolveTempo(),multilineVars.is_in_header=!1;for(var b=0,A=multilineVars.iChar;tokenizer.isWhiteSpace(d[b])&&b<d.length;)b++;if(!(b===d.length||d[b]==="%")){var w=multilineVars.start_new_line;multilineVars.continueall===void 0?multilineVars.start_new_line=!0:multilineVars.start_new_line=!1;var C=0,x=header.letter_to_body_header(d,b);x[0]>0&&(b+=x[0],x[1]==="V"&&this.startNewLine());for(var S=0;b<d.length;){var E=b;if(d[b]==="%")break;var P=header.letter_to_inline_header(d,b,w);if(P[0]>0)b+=P[0],P[1]==="V"&&(w=!0);else{(!tuneBuilder$1.hasBeginMusic()||w&&!this.lineContinuation)&&(this.startNewLine(),w=!1);for(var B;;)if(B=tokenizer.eatWhiteSpace(d,b),B>0&&(b+=B),b>0&&d[b-1]===""&&(B=header.letter_to_body_header(d,b),B[0]>0&&(B[1]==="V"&&this.startNewLine(),b=B[0],multilineVars.start_new_line=!1)),B=letter_to_spacer(d,b),B[0]>0&&(b+=B[0]),B=letter_to_chord(d,b),B[0]>0){el.chord||(el.chord=[]);var k=tokenizer.translateString(B[1]);k=k.replace(/;/g,"\n");for(var $=!1,I=0;I<el.chord.length;I++)el.chord[I].position===B[2]&&($=!0,el.chord[I].name+="\n"+k);$===!1&&(B[2]===null&&B[3]?el.chord.push({name:k,rel_position:B[3]}):el.chord.push({name:k,position:B[2]})),b+=B[0];var D=tokenizer.skipWhiteSpace(d.substring(b));D>0&&(el.force_end_beam_last=!0),b+=D}else if(nonDecorations.indexOf(d[b])===-1?B=letter_to_accent(d,b):B=[0],B[0]>0)B[1]===null?b+1<d.length&&this.startNewLine():B[1].length>0&&(B[1].indexOf("style=")===0?el.style=B[1].substr(6):(el.decoration===void 0&&(el.decoration=[]),B[1]==="beambr1"?el.beambr=1:B[1]==="beambr2"?el.beambr=2:el.decoration.push(B[1]))),b+=B[0];else if(B=letter_to_grace(d,b),B[0]>0)el.gracenotes=B[1],b+=B[0];else break;if(B=letter_to_bar(d,b),B[0]>0){S=0,el.gracenotes!==void 0&&(el.rest={type:"spacer"},el.duration=.125,multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",A+b,A+b+B[0],el),multilineVars.measureNotEmpty=!0,el={});var F={type:B[1]};if(F.type.length===0)warn("Unknown bar type",d,b);else{if(multilineVars.inEnding&&F.type!=="bar_thin"&&(F.endEnding=!0,multilineVars.inEnding=!1),B[2]&&(F.startEnding=B[2],multilineVars.inEnding&&(F.endEnding=!0),multilineVars.inEnding=!0,B[1]==="bar_right_repeat"?multilineVars.restoreStartEndingHoldOvers():multilineVars.duplicateStartEndingHoldOvers()),el.decoration!==void 0&&(F.decoration=el.decoration),el.chord!==void 0&&(F.chord=el.chord),F.startEnding&&multilineVars.barFirstEndingNum===void 0?multilineVars.barFirstEndingNum=multilineVars.currBarNumber:F.startEnding&&F.endEnding&&multilineVars.barFirstEndingNum?multilineVars.currBarNumber=multilineVars.barFirstEndingNum:F.endEnding&&(multilineVars.barFirstEndingNum=void 0),F.type!=="bar_invisible"&&multilineVars.measureNotEmpty){var z=multilineVars.currentVoice===void 0||multilineVars.currentVoice.staffNum===0&&multilineVars.currentVoice.index===0;z&&(multilineVars.currBarNumber++,multilineVars.barNumbers&&multilineVars.currBarNumber%multilineVars.barNumbers===0&&(F.barNumber=multilineVars.currBarNumber))}multilineVars.addFormattingOptions(el,tune.formatting,"bar"),tuneBuilder$1.appendElement("bar",A+E,A+b+B[0],F),multilineVars.measureNotEmpty=!1,el={}}b+=B[0]}else if(d[b]==="&")B=letter_to_overlay(d,b),B[0]>0&&(tuneBuilder$1.appendElement("overlay",A,A+1,{}),b+=1,S++);else{if(B=letter_to_open_slurs_and_triplets(d,b),B.consumed>0&&(B.startSlur!==void 0&&(el.startSlur=B.startSlur),B.dottedSlur&&(el.dottedSlur=!0),B.triplet!==void 0&&(C>0?warn("Can't nest triplets",d,b):(el.startTriplet=B.triplet,el.tripletMultiplier=B.tripletQ/B.triplet,el.tripletR=B.num_notes,C=B.num_notes===void 0?B.triplet:B.num_notes)),b+=B.consumed),d[b]==="["){b++;for(var L=null,H=!1,Q=!1;!Q;){var Y=letter_to_accent(d,b);Y[0]>0&&(b+=Y[0]);var U=getCoreNote(d,b,{},!1);if(U!==null&&U.pitch!==void 0)Y[0]>0&&Y[1].indexOf("style=")!==0&&(el.decoration===void 0&&(el.decoration=[]),el.decoration.push(Y[1])),U.end_beam&&(el.end_beam=!0,delete U.end_beam),el.pitches===void 0?(el.duration=U.duration,el.pitches=[U]):el.pitches.push(U),delete U.duration,Y[0]>0&&Y[1].indexOf("style=")===0&&(el.pitches[el.pitches.length-1].style=Y[1].substr(6)),multilineVars.inTieChord[el.pitches.length]&&(U.endTie=!0,multilineVars.inTieChord[el.pitches.length]=void 0),U.startTie&&(multilineVars.inTieChord[el.pitches.length]=!0),b=U.endChar,delete U.endChar;else if(d[b]===" ")warn("Spaces are not allowed in chords",d,b),b++;else{if(b<d.length&&d[b]==="]"){b++,multilineVars.next_note_duration!==0&&(el.duration=el.duration*multilineVars.next_note_duration,multilineVars.next_note_duration=0),isInTie(multilineVars,S,el)&&(el.pitches.forEach(function(J){J.endTie=!0}),setIsInTie(multilineVars,S,!1)),C>0&&!(el.rest&&el.rest.type==="spacer")&&(C--,C===0&&(el.endTriplet=!0));for(var G=!1;b<d.length&&!G;){switch(d[b]){case" ":case" ":addEndBeam(el);break;case")":el.endSlur===void 0?el.endSlur=1:el.endSlur++;break;case"-":el.pitches.forEach(function(J){J.startTie={}}),setIsInTie(multilineVars,S,!0);break;case">":case"<":var W=getBrokenRhythm(d,b);b+=W[0]-1,multilineVars.next_note_duration=W[2],L?L=L*W[1]:L=W[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var K=tokenizer.getFraction(d,b);L=K.value,b=K.index;var X=d[b];X===" "&&(H=!0),X==="-"||X===")"||X===" "||X==="<"||X===">"?b--:G=!0;break;default:G=!0;break}G||b++}}else warn("Expected ']' to end the chords",d,b);el.pitches!==void 0&&(L!==null&&(el.duration=el.duration*L,H&&addEndBeam(el)),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",A+E,A+b,el),multilineVars.measureNotEmpty=!0,el={}),Q=!0}}}else{var Z={},oe=getCoreNote(d,b,Z,!0);if(Z.endTie!==void 0&&setIsInTie(multilineVars,S,!0),oe!==null){oe.pitch!==void 0?(el.pitches=[{}],oe.accidental!==void 0&&(el.pitches[0].accidental=oe.accidental),el.pitches[0].pitch=oe.pitch,el.pitches[0].name=oe.name,(oe.midipitch||oe.midipitch===0)&&(el.pitches[0].midipitch=oe.midipitch),oe.endSlur!==void 0&&(el.pitches[0].endSlur=oe.endSlur),oe.endTie!==void 0&&(el.pitches[0].endTie=oe.endTie),oe.startSlur!==void 0&&(el.pitches[0].startSlur=oe.startSlur),el.startSlur!==void 0&&(el.pitches[0].startSlur=el.startSlur),el.dottedSlur!==void 0&&(el.pitches[0].dottedSlur=!0),oe.startTie!==void 0&&(el.pitches[0].startTie=oe.startTie),el.startTie!==void 0&&(el.pitches[0].startTie=el.startTie)):(el.rest=oe.rest,oe.endSlur!==void 0&&(el.endSlur=oe.endSlur),oe.endTie!==void 0&&(el.rest.endTie=oe.endTie),oe.startSlur!==void 0&&(el.startSlur=oe.startSlur),oe.startTie!==void 0&&(el.rest.startTie=oe.startTie),el.startTie!==void 0&&(el.rest.startTie=el.startTie)),oe.chord!==void 0&&(el.chord=oe.chord),oe.duration!==void 0&&(el.duration=oe.duration),oe.decoration!==void 0&&(el.decoration=oe.decoration),oe.graceNotes!==void 0&&(el.graceNotes=oe.graceNotes),delete el.startSlur,delete el.dottedSlur,isInTie(multilineVars,S,el)&&(el.pitches!==void 0?el.pitches[0].endTie=!0:el.rest.type!=="spacer"&&(el.rest.endTie=!0),setIsInTie(multilineVars,S,!1)),(oe.startTie||el.startTie)&&setIsInTie(multilineVars,S,!0),b=oe.endChar,C>0&&!(oe.rest&&oe.rest.type==="spacer")&&(C--,C===0&&(el.endTriplet=!0)),oe.end_beam&&addEndBeam(el),el.rest&&el.rest.type==="rest"&&el.duration===1&&durationOfMeasure(multilineVars)<=1&&(el.rest.type="whole",el.duration=durationOfMeasure(multilineVars));var he=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];el.duration<1&&he.indexOf(el.duration)===-1&&el.duration!==0&&(!el.rest||el.rest.type!=="spacer")&&warn("Duration not representable: "+d.substring(E,b),d,b),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",A+E,A+b,el),multilineVars.measureNotEmpty=!0,el={}}}b===E&&(d[b]!==" "&&d[b]!=="`"&&warn("Unknown character ignored",d,b),b++)}}}this.lineContinuation=d.indexOf("")>=0||x[0]>0,this.lineContinuation||(el={})}};var setIsInTie=function(d,b,A){var w=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;d.inTie[b]===void 0&&(d.inTie[b]=[]),d.inTie[b][w]=A},letter_to_chord=function(d,b){if(d[b]==='"'){var A=tokenizer.getBrackettedSubstring(d,b,5);if(A[2]||warn("Missing the closing quote while parsing the chord symbol",d,b),A[0]>0&&A[1].length>0&&A[1][0]==="^")A[1]=A[1].substring(1),A[2]="above";else if(A[0]>0&&A[1].length>0&&A[1][0]==="_")A[1]=A[1].substring(1),A[2]="below";else if(A[0]>0&&A[1].length>0&&A[1][0]==="<")A[1]=A[1].substring(1),A[2]="left";else if(A[0]>0&&A[1].length>0&&A[1][0]===">")A[1]=A[1].substring(1),A[2]="right";else if(A[0]>0&&A[1].length>0&&A[1][0]==="@"){A[1]=A[1].substring(1);var w=tokenizer.getFloat(A[1]);w.digits===0&&warn("Missing first position in absolutely positioned annotation.",d,b),A[1]=A[1].substring(w.digits),A[1][0]!==","&&warn("Missing comma absolutely positioned annotation.",d,b),A[1]=A[1].substring(1);var C=tokenizer.getFloat(A[1]);C.digits===0&&warn("Missing second position in absolutely positioned annotation.",d,b),A[1]=A[1].substring(C.digits);var x=tokenizer.skipWhiteSpace(A[1]);A[1]=A[1].substring(x),A[2]=null,A[3]={x:w.value,y:C.value}}else multilineVars.freegchord!==!0&&(A[1]=A[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),A[1]=A[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),A[2]="default",A[1]=transpose.chordName(multilineVars,A[1]);return A}return[0,""]},letter_to_grace=function(d,b){if(d[b]==="{"){var A=tokenizer.getBrackettedSubstring(d,b,1,"}");A[2]||warn("Missing the closing '}' while parsing grace note",d,b),d[b+A[0]]===")"&&(A[0]++,A[1]+=")");for(var w=[],C=0,x=!1;C<A[1].length;){var S=!1;A[1][C]==="/"&&(S=!0,C++);var E=getCoreNote(A[1],C,{},!1);E!==null?(E.duration=E.duration/(multilineVars.default_length*8),S&&(E.acciaccatura=!0),w.push(E),x&&(E.endTie=!0,x=!1),E.startTie&&(x=!0),C=E.endChar,delete E.endChar,E.end_beam&&(E.endBeam=!0,delete E.end_beam)):(A[1][C]===" "?w.length>0&&(w[w.length-1].endBeam=!0):warn("Unknown character '"+A[1][C]+"' while parsing grace note",d,b),C++)}if(w.length)return[A[0],w]}return[0]};function letter_to_overlay(d,b){if(d[b]==="&"){for(var A=b;d[b]&&d[b]!==":"&&d[b]!=="|";)b++;return[b-A,d.substring(A+1,b)]}return[0]}function durationOfMeasure(d){var b=d.origMeter;return!b||b.type!=="specified"||!b.value||b.value.length===0?1:parseInt(b.value[0].num,10)/parseInt(b.value[0].den,10)}var legalAccents=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)"],accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],letter_to_accent=function(d,b){var A=multilineVars.macros[d[b]];if(A!==void 0)return(A[0]==="!"||A[0]==="+")&&(A=A.substring(1)),(A[A.length-1]==="!"||A[A.length-1]==="+")&&(A=A.substring(0,A.length-1)),legalAccents.includes(A)?[1,A]:volumeDecorations.includes(A)?(multilineVars.volumePosition==="hidden"&&(A=""),[1,A]):dynamicDecorations.includes(A)?(multilineVars.dynamicPosition==="hidden"&&(A=""),[1,A]):(multilineVars.ignoredDecorations.includes(A)||warn("Unknown macro: "+A,d,b),[1,""]);switch(d[b]){case".":if(d[b+1]==="("||d[b+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var w=tokenizer.getBrackettedSubstring(d,b,5);if(w[1].length>1&&(w[1][0]==="^"||w[1][0]==="_")&&(w[1]=w[1].substring(1)),legalAccents.includes(w[1]))return w;if(volumeDecorations.includes(w[1]))return multilineVars.volumePosition==="hidden"&&(w[1]=""),w;if(dynamicDecorations.includes(w[1]))return multilineVars.dynamicPosition==="hidden"&&(w[1]=""),w;var C=accentPseudonyms.findIndex(function(x){return w[1]===x[0]});return C>=0?(w[1]=accentPseudonyms[C][1],w):(C=accentDynamicPseudonyms.findIndex(function(x){return w[1]===x[0]}),C>=0?(w[1]=accentDynamicPseudonyms[C][1],multilineVars.dynamicPosition==="hidden"&&(w[1]=""),w):d[b]==="!"&&(w[0]===1||d[b+w[0]-1]!=="!")?[1,null]:(warn("Unknown decoration: "+w[1],d,b),w[1]="",w));case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},letter_to_spacer=function(d,b){for(var A=b;tokenizer.isWhiteSpace(d[b]);)b++;return[b-A]},letter_to_bar=function(d,b){var A=tokenizer.getBarLine(d,b);if(A.len===0)return[0,""];if(A.warn)return warn(A.warn,d,b),[A.len,""];for(var w=0;w<d.length&&d[b+A.len+w]===" ";w++);var C=A.len;if(d[b+A.len+w]==="["&&(A.len+=w+1),d[b+A.len]==='"'&&d[b+A.len-1]==="["){var x=tokenizer.getBrackettedSubstring(d,b+A.len,5);return[A.len+x[0],A.token,x[1]]}var S=tokenizer.getTokenOf(d.substring(b+A.len),"1234567890-,");return S.len===0||S.token[0]==="-"?[C,A.token]:[A.len+S.len,A.token,S.token]},tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},letter_to_open_slurs_and_triplets=function(d,b){var A={},w=b;for(d[b]==="."&&d[b+1]==="("&&(A.dottedSlur=!0,b++);d[b]==="("||tokenizer.isWhiteSpace(d[b]);)d[b]==="("&&(b+1<d.length&&d[b+1]>="2"&&d[b+1]<="9"?(A.triplet!==void 0?warn("Can't nest triplets",d,b):(A.triplet=d[b+1]-"0",A.tripletQ=tripletQ[A.triplet],A.num_notes=A.triplet,b+2<d.length&&d[b+2]===":"&&(b+3<d.length&&d[b+3]===":"?b+4<d.length&&d[b+4]>="1"&&d[b+4]<="9"?(A.num_notes=d[b+4]-"0",b+=3):warn("expected number after the two colons after the triplet to mark the duration",d,b):b+3<d.length&&d[b+3]>="1"&&d[b+3]<="9"?(A.tripletQ=d[b+3]-"0",b+4<d.length&&d[b+4]===":"?b+5<d.length&&d[b+5]>="1"&&d[b+5]<="9"&&(A.num_notes=d[b+5]-"0",b+=4):b+=2):warn("expected number after the triplet to mark the duration",d,b))),b++):A.startSlur===void 0?A.startSlur=1:A.startSlur++),b++;return A.consumed=b-w,A};MusicParser.prototype.startNewLine=function(){var d={startChar:-1,endChar:-1};multilineVars.partForNextLine.title&&(d.part=multilineVars.partForNextLine),d.clef=multilineVars.currentVoice&&multilineVars.staves[multilineVars.currentVoice.staffNum].clef!==void 0?parseCommon$a.clone(multilineVars.staves[multilineVars.currentVoice.staffNum].clef):parseCommon$a.clone(multilineVars.clef);var b=multilineVars.currentVoice?multilineVars.currentVoice.scoreTranspose:0;if(d.key=parseKeyVoice$1.standardKey(multilineVars.key.root+multilineVars.key.acc+multilineVars.key.mode,multilineVars.key.root,multilineVars.key.acc,b),d.key.mode=multilineVars.key.mode,multilineVars.key.impliedNaturals&&(d.key.impliedNaturals=multilineVars.key.impliedNaturals),multilineVars.key.explicitAccidentals)for(var A=0;A<multilineVars.key.explicitAccidentals.length;A++){for(var w=!1,C=0;C<d.key.accidentals.length;C++)d.key.accidentals[C].note===multilineVars.key.explicitAccidentals[A].note&&(d.key.accidentals[C].acc=multilineVars.key.explicitAccidentals[A].acc,w=!0);w||d.key.accidentals.push(multilineVars.key.explicitAccidentals[A])}if(multilineVars.targetKey=d.key,d.key.explicitAccidentals&&delete d.key.explicitAccidentals,parseKeyVoice$1.addPosToKey(d.clef,d.key),multilineVars.meter!==null?(multilineVars.currentVoice?(multilineVars.staves.forEach(function(E){E.meter=multilineVars.meter}),d.meter=multilineVars.staves[multilineVars.currentVoice.staffNum].meter,multilineVars.staves[multilineVars.currentVoice.staffNum].meter=null):d.meter=multilineVars.meter,multilineVars.meter=null):multilineVars.currentVoice&&multilineVars.staves[multilineVars.currentVoice.staffNum].meter&&(d.meter=multilineVars.staves[multilineVars.currentVoice.staffNum].meter,multilineVars.staves[multilineVars.currentVoice.staffNum].meter=null),multilineVars.currentVoice&&multilineVars.currentVoice.name&&(d.name=multilineVars.currentVoice.name),multilineVars.vocalfont&&(d.vocalfont=multilineVars.vocalfont),multilineVars.tripletfont&&(d.tripletfont=multilineVars.tripletfont),multilineVars.gchordfont&&(d.gchordfont=multilineVars.gchordfont),multilineVars.style&&(d.style=multilineVars.style),multilineVars.currentVoice){var x=multilineVars.staves[multilineVars.currentVoice.staffNum];x.brace&&(d.brace=x.brace),x.bracket&&(d.bracket=x.bracket),x.connectBarLines&&(d.connectBarLines=x.connectBarLines),x.name&&(d.name=x.name[multilineVars.currentVoice.index]),x.subname&&(d.subname=x.subname[multilineVars.currentVoice.index]),multilineVars.currentVoice.stem&&(d.stem=multilineVars.currentVoice.stem),multilineVars.currentVoice.stafflines&&(d.stafflines=multilineVars.currentVoice.stafflines),multilineVars.currentVoice.staffscale&&(d.staffscale=multilineVars.currentVoice.staffscale),multilineVars.currentVoice.scale&&(d.scale=multilineVars.currentVoice.scale),multilineVars.currentVoice.color&&(d.color=multilineVars.currentVoice.color),multilineVars.currentVoice.style&&(d.style=multilineVars.currentVoice.style),multilineVars.currentVoice.transpose&&(d.clef.transpose=multilineVars.currentVoice.transpose)}var S=multilineVars.currentVoice===void 0||multilineVars.currentVoice.staffNum===0&&multilineVars.currentVoice.index===0;multilineVars.barNumbers===0&&S&&multilineVars.currBarNumber!==1&&(d.barNumber=multilineVars.currBarNumber),tuneBuilder$1.startNewLine(d),multilineVars.key.impliedNaturals&&delete multilineVars.key.impliedNaturals,multilineVars.partForNextLine={},multilineVars.tempoForNextLine.length===4&&tuneBuilder$1.appendElement(multilineVars.tempoForNextLine[0],multilineVars.tempoForNextLine[1],multilineVars.tempoForNextLine[2],multilineVars.tempoForNextLine[3]),multilineVars.tempoForNextLine=[]};var addEndBeam=function(d){return d.duration!==void 0&&d.duration<.25&&(d.end_beam=!0),d},pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},getCoreNote=function(d,b,A,w){var C=function(I){return I==="octave"||I==="duration"||I==="Zduration"||I==="broken_rhythm"||I==="end_slur"},x;d[b]==="."&&d[b+1]==="-"&&(x=!0,b++);for(var S="startSlur",E=!1;;){switch(d[b]){case"(":if(S==="startSlur")A.startSlur===void 0?A.startSlur=1:A.startSlur++;else return C(S)?(A.endChar=b,A):null;break;case")":if(C(S))A.endSlur===void 0?A.endSlur=1:A.endSlur++;else return null;break;case"^":if(S==="startSlur")A.accidental="sharp",S="sharp2";else if(S==="sharp2")A.accidental="dblsharp",S="pitch";else return C(S)?(A.endChar=b,A):null;break;case"_":if(S==="startSlur")A.accidental="flat",S="flat2";else if(S==="flat2")A.accidental="dblflat",S="pitch";else return C(S)?(A.endChar=b,A):null;break;case"=":if(S==="startSlur")A.accidental="natural",S="pitch";else return C(S)?(A.endChar=b,A):null;break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if(S==="startSlur"||S==="sharp2"||S==="flat2"||S==="pitch"){if(A.pitch=pitches[d[b]],A.pitch+=7*(multilineVars.currentVoice&&multilineVars.currentVoice.octave!==void 0?multilineVars.currentVoice.octave:multilineVars.octave),A.name=d[b],A.accidental&&(A.name=accMap[A.accidental]+A.name),transpose.note(multilineVars,A),S="octave",w&&multilineVars.next_note_duration!==0?(A.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,E=!0):A.duration=multilineVars.default_length,multilineVars.clef&&multilineVars.clef.type==="perc"||multilineVars.currentVoice&&multilineVars.currentVoice.clef==="perc"){var P=d[b];A.accidental&&(P=accMap[A.accidental]+P),tune.formatting&&tune.formatting.midi&&tune.formatting.midi.drummap&&(A.midipitch=tune.formatting.midi.drummap[P])}}else return C(S)?(A.endChar=b,A):null;break;case",":if(S==="octave")A.pitch-=7,A.name+=",";else return C(S)?(A.endChar=b,A):null;break;case"'":if(S==="octave")A.pitch+=7,A.name+="'";else return C(S)?(A.endChar=b,A):null;break;case"x":case"X":case"y":case"z":case"Z":if(S==="startSlur")A.rest={type:rests[d[b]]},delete A.accidental,delete A.startSlur,delete A.startTie,delete A.endSlur,delete A.endTie,delete A.end_beam,delete A.grace_notes,A.rest.type.indexOf("multimeasure")>=0?(A.duration=tune.getBarLength(),A.rest.text=1,S="Zduration"):(w&&multilineVars.next_note_duration!==0?(A.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,E=!0):A.duration=multilineVars.default_length,S="duration");else return C(S)?(A.endChar=b,A):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(S==="octave"||S==="duration"){var B=tokenizer.getFraction(d,b);for(A.duration=A.duration*B.value,A.endChar=B.index;B.index<d.length&&(tokenizer.isWhiteSpace(d[B.index])||d[B.index]==="-");)d[B.index]==="-"?A.startTie={}:A=addEndBeam(A),B.index++;b=B.index-1,S="broken_rhythm"}else if(S==="sharp2")A.accidental="quartersharp",S="pitch";else if(S==="flat2")A.accidental="quarterflat",S="pitch";else if(S==="Zduration"){var k=tokenizer.getNumber(d,b);return A.duration=k.num*tune.getBarLength(),A.rest.text=k.num,A.endChar=k.index,A}else return null;break;case"-":if(S==="startSlur")tuneBuilder$1.addTieToLastNote(x),A.endTie=!0;else if(S==="octave"||S==="duration"||S==="end_slur")if(A.startTie={},!E&&w)S="broken_rhythm";else return tokenizer.isWhiteSpace(d[b+1])&&addEndBeam(A),A.endChar=b+1,A;else return S==="broken_rhythm"?(A.endChar=b,A):null;break;case" ":case" ":if(C(S)){A.end_beam=!0,x=!1;do d[b]==="."&&d[b+1]==="-"&&(x=!0,b++),d[b]==="-"&&(A.startTie={},x&&(A.startTie.style="dotted")),b++;while(b<d.length&&(tokenizer.isWhiteSpace(d[b])||d[b]==="-")||d[b]==="."&&d[b+1]==="-");if(A.endChar=b,!E&&w&&(d[b]==="<"||d[b]===">"))b--,S="broken_rhythm";else return A}else return null;break;case">":case"<":if(C(S))if(w){var $=getBrokenRhythm(d,b);b+=$[0]-1,multilineVars.next_note_duration=$[2],A.duration=$[1]*A.duration,S="end_slur"}else return A.endChar=b,A;else return null;break;default:return C(S)?(A.endChar=b,A):null}if(b++,b===d.length)return C(S)?(A.endChar=b,A):null}return null},getBrokenRhythm=function(d,b){switch(d[b]){case">":return b<d.length-2&&d[b+1]===">"&&d[b+2]===">"?[3,1.875,.125]:b<d.length-1&&d[b+1]===">"?[2,1.75,.25]:[1,1.5,.5];case"<":return b<d.length-2&&d[b+1]==="<"&&d[b+2]==="<"?[3,.125,1.875]:b<d.length-1&&d[b+1]==="<"?[2,.25,1.75]:[1,.5,1.5]}return null},abc_parse_music=MusicParser,parseCommon$9=abc_common,Tokenizer$1=function(d,b){this.lineIndex=0,this.lines=d,this.multilineVars=b,this.skipWhiteSpace=function(B){for(var k=0;k<B.length;k++)if(!this.isWhiteSpace(B[k]))return k;return B.length};var A=function(B,k){return k>=B.length};this.eatWhiteSpace=function(B,k){for(var $=k;$<B.length;$++)if(!this.isWhiteSpace(B[$]))return $-k;return $-k},this.getKeyPitch=function(B){var k=this.skipWhiteSpace(B);if(A(B,k))return{len:0};switch(B[k]){case"A":return{len:k+1,token:"A"};case"B":return{len:k+1,token:"B"};case"C":return{len:k+1,token:"C"};case"D":return{len:k+1,token:"D"};case"E":return{len:k+1,token:"E"};case"F":return{len:k+1,token:"F"};case"G":return{len:k+1,token:"G"}}return{len:0}},this.getSharpFlat=function(B){if(B==="bass")return{len:0};switch(B[0]){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(B){var k=function(D,F){for(;F<D.length&&(D[F]>="a"&&D[F]<="z"||D[F]>="A"&&D[F]<="Z");)F++;return F},$=this.skipWhiteSpace(B);if(A(B,$))return{len:0};var I=B.substring($,$+3).toLowerCase();switch((I.length>1&&I[1]===" "||I[1]==="^"||I[1]==="_"||I[1]==="=")&&(I=I[0]),I){case"mix":return{len:k(B,$),token:"Mix"};case"dor":return{len:k(B,$),token:"Dor"};case"phr":return{len:k(B,$),token:"Phr"};case"lyd":return{len:k(B,$),token:"Lyd"};case"loc":return{len:k(B,$),token:"Loc"};case"aeo":return{len:k(B,$),token:"m"};case"maj":return{len:k(B,$),token:""};case"ion":return{len:k(B,$),token:""};case"min":return{len:k(B,$),token:"m"};case"m":return{len:k(B,$),token:"m"}}return{len:0}},this.getClef=function(B,k){var $=B,I=this.skipWhiteSpace(B);if(A(B,I))return{len:0};var D=!1,F=B.substring(I);if(parseCommon$9.startsWith(F,"clef=")&&(D=!0,F=F.substring(5),I+=5),F.length===0&&D)return{len:I+5,warn:"No clef specified: "+$};var z=this.skipWhiteSpace(F);if(A(F,z))return{len:0};z>0&&(I+=z,F=F.substring(z));var L=null;if(parseCommon$9.startsWith(F,"treble"))L="treble";else if(parseCommon$9.startsWith(F,"bass3"))L="bass3";else if(parseCommon$9.startsWith(F,"bass"))L="bass";else if(parseCommon$9.startsWith(F,"tenor"))L="tenor";else if(parseCommon$9.startsWith(F,"alto2"))L="alto2";else if(parseCommon$9.startsWith(F,"alto1"))L="alto1";else if(parseCommon$9.startsWith(F,"alto"))L="alto";else if(!k&&D&&parseCommon$9.startsWith(F,"none"))L="none";else if(parseCommon$9.startsWith(F,"perc"))L="perc";else if(!k&&D&&parseCommon$9.startsWith(F,"C"))L="tenor";else if(!k&&D&&parseCommon$9.startsWith(F,"F"))L="bass";else if(!k&&D&&parseCommon$9.startsWith(F,"G"))L="treble";else return{len:I+5,warn:"Unknown clef specified: "+$};return F=F.substring(L.length),z=this.isMatch(F,"+8"),z>0?L+="+8":(z=this.isMatch(F,"-8"),z>0&&(L+="-8")),{len:I+L.length,token:L,explicit:D}},this.getBarLine=function(B,k){switch(B[k]){case"]":switch(++k,B[k]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++k,B[k]>="1"&&B[k]<="9"||B[k]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++k,B[k]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++k,B[k]){case"]":switch(++k,B[k]){case"|":return++k,B[k]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++k,B[k]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}default:return{len:1,warn:"Unknown bar symbol"}}case"[":if(++k,B[k]==="|")switch(++k,B[k]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return B[k]>="1"&&B[k]<="9"||B[k]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++k,B[k]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++k,B[k]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var $=0;B[k+$]===":";)$++;return{len:1+$,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(B,k){for(var $=0;$<B.length;$++)if(k.indexOf(B[$])<0)return{len:$,token:B.substring(0,$)};return{len:$,token:B}},this.getToken=function(B,k,$){for(var I=k;I<$&&!this.isWhiteSpace(B[I]);)I++;return B.substring(k,I)},this.isMatch=function(B,k){var $=this.skipWhiteSpace(B);return A(B,$)?0:parseCommon$9.startsWith(B.substring($),k)?$+k.length:0},this.getPitchFromTokens=function(B){var k={},$={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};if(k.position=$[B[0].token],k.position===void 0)return{warn:"Pitch expected. Found: "+B[0].token};for(B.shift();B.length;)switch(B[0].token){case",":k.position-=7,B.shift();break;case"'":k.position+=7,B.shift();break;default:return k}return k},this.getKeyAccidentals2=function(B){for(var k;B.length>0;){var $;if(B[0].token==="^"){if($="sharp",B.shift(),B.length===0)return{accs:k,warn:"Expected note name after "+$};switch(B[0].token){case"^":$="dblsharp",B.shift();break;case"/":$="quartersharp",B.shift();break}}else if(B[0].token==="=")$="natural",B.shift();else if(B[0].token==="_"){if($="flat",B.shift(),B.length===0)return{accs:k,warn:"Expected note name after "+$};switch(B[0].token){case"_":$="dblflat",B.shift();break;case"/":$="quarterflat",B.shift();break}}else return{accs:k};if(B.length===0)return{accs:k,warn:"Expected note name after "+$};switch(B[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":k===void 0&&(k=[]),k.push({acc:$,note:B[0].token[0]}),B[0].token.length===1?B.shift():B[0].token=B[0].token.substring(1);break;default:return{accs:k,warn:"Expected note name after "+$+" Found: "+B[0].token}}}return{accs:k}},this.getKeyAccidental=function(B){var k={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},$=this.skipWhiteSpace(B);if(A(B,$))return{len:0};var I=null;switch(B[$]){case"^":case"_":case"=":I=B[$];break;default:return{len:0}}if($++,A(B,$))return{len:1,warn:"Expected note name after accidental"};switch(B[$]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:$+1,token:{acc:k[I],note:B[$]}};case"^":case"_":case"/":if(I+=B[$],$++,A(B,$))return{len:2,warn:"Expected note name after accidental"};switch(B[$]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:$+1,token:{acc:k[I],note:B[$]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(B){return B===" "||B===" "||B===""},this.getMeat=function(B,k,$){var I=B.indexOf("%",k);for(I>=0&&I<$&&($=I);k<$&&(B[k]===" "||B[k]===" "||B[k]==="");)k++;for(;k<$&&(B[$-1]===" "||B[$-1]===" "||B[$-1]==="");)$--;return{start:k,end:$}};var w=function(B){return B>="A"&&B<="Z"||B>="a"&&B<="z"},C=function(B){return B>="0"&&B<="9"};this.tokenize=function(B,k,$,I){var D=this.getMeat(B,k,$);k=D.start,$=D.end;for(var F=[],z;k<$;){if(B[k]==='"'){for(z=k+1;z<$&&B[z]!=='"';)z++;F.push({type:"quote",token:B.substring(k+1,z),start:k+1,end:z}),z++}else if(w(B[k])){if(z=k+1,I)for(;z<$&&!this.isWhiteSpace(B[z]);)z++;else for(;z<$&&w(B[z]);)z++;F.push({type:"alpha",token:B.substring(k,z),continueId:C(B[z]),start:k,end:z}),k=z+1}else if(B[k]==="."&&C(B[z+1])){z=k+1;for(var L=null,H=null;z<$&&C(B[z]);)z++;H=parseFloat(B.substring(k,z)),F.push({type:"number",token:B.substring(k,z),intt:L,floatt:H,continueId:w(B[z]),start:k,end:z}),k=z+1}else if(C(B[k])||B[k]==="-"&&C(B[z+1])){z=k+1;for(var Q=null,Y=null;z<$&&C(B[z]);)z++;if(B[z]==="."&&C(B[z+1]))for(z++;z<$&&C(B[z]);)z++;else Q=parseInt(B.substring(k,z));Y=parseFloat(B.substring(k,z)),F.push({type:"number",token:B.substring(k,z),intt:Q,floatt:Y,continueId:w(B[z]),start:k,end:z}),k=z+1}else B[k]===" "||B[k]===" "||F.push({type:"punct",token:B[k],start:k,end:k+1}),z=k+1;k=z}return F},this.getVoiceToken=function(B,k,$){for(var I=k;I<$&&this.isWhiteSpace(B[I])||B[I]==="=";)I++;if(B[I]==='"'){var D=B.indexOf('"',I+1);return D===-1||D>=$?{len:1,err:"Missing close quote"}:{len:D-k+1,token:this.translateString(B.substring(I+1,D))}}else{for(var F=I;F<$&&!this.isWhiteSpace(B[F])&&B[F]!=="=";)F++;return{len:F-k+1,token:B.substring(I,F)}}};var x={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},S={"#":"♯",b:"♭","=":"♮"},E={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(B){var k=B.split("\\");if(k.length===1)return B;var $=null;return k.forEach(function(I){if($===null)$=I;else{var D=x[I.substring(0,2)];D!==void 0?$+=D+I.substring(2):(D=E[I.substring(0,3)],D!==void 0?$+=D+I.substring(3):(D=S[I.substring(0,1)],D!==void 0?$+=D+I.substring(1):$+="\\"+I))}}),$},this.getNumber=function(B,k){for(var $=0;k<B.length;)switch(B[k]){case"0":$=$*10,k++;break;case"1":$=$*10+1,k++;break;case"2":$=$*10+2,k++;break;case"3":$=$*10+3,k++;break;case"4":$=$*10+4,k++;break;case"5":$=$*10+5,k++;break;case"6":$=$*10+6,k++;break;case"7":$=$*10+7,k++;break;case"8":$=$*10+8,k++;break;case"9":$=$*10+9,k++;break;default:return{num:$,index:k}}return{num:$,index:k}},this.getFraction=function(B,k){var $=1,I=1;if(B[k]!=="/"){var D=this.getNumber(B,k);$=D.num,k=D.index}if(B[k]==="/")if(k++,B[k]==="/"){for(var F=.5;B[k++]==="/";)F=F/2;return{value:$*F,index:k-1}}else{var z=k,L=this.getNumber(B,k);L.num===0&&z===k&&(L.num=2),L.num!==0&&(I=L.num),k=L.index}return{value:$/I,index:k}},this.theReverser=function(B){return parseCommon$9.endsWith(B,", The")?"The "+B.substring(0,B.length-5):parseCommon$9.endsWith(B,", A")?"A "+B.substring(0,B.length-3):B},this.stripComment=function(B){var k=B.indexOf("%");return k>=0?parseCommon$9.strip(B.substring(0,k)):parseCommon$9.strip(B)},this.getInt=function(B){var k=parseInt(B);if(isNaN(k))return{digits:0};var $=""+k,I=B.indexOf($);return{value:k,digits:I+$.length}},this.getFloat=function(B){var k=parseFloat(B);if(isNaN(k))return{digits:0};var $=""+k,I=B.indexOf($);return{value:k,digits:I+$.length}},this.getMeasurement=function(B){if(B.length===0)return{used:0};var k=1,$="";if(B[0].token==="-")B.shift(),$="-",k++;else if(B[0].type!=="number")return{used:0};if($+=B.shift().token,B.length===0)return{used:1,value:parseInt($)};var I=B.shift();if(I.token==="."){if(k++,B.length===0)return{used:k,value:parseInt($)};if(B[0].type==="number"&&(I=B.shift(),$=$+"."+I.token,k++,B.length===0))return{used:k,value:parseFloat($)};I=B.shift()}switch(I.token){case"pt":return{used:k+1,value:parseFloat($)};case"px":return{used:k+1,value:parseFloat($)};case"cm":return{used:k+1,value:parseFloat($)/2.54*72};case"in":return{used:k+1,value:parseFloat($)*72};default:return B.unshift(I),{used:k,value:parseFloat($)}}};var P=function(B){return B=B.replace(/\\n/g,"\n"),B=B.replace(/\\"/g,'"'),B};this.getBrackettedSubstring=function(B,k,$,I){for(var D=I||B[k],F=k+1,z=!1;F<B.length&&(z||B[F]!==D);)z=B[F]==="\\",++F;return B[F]===D?[F-k+1,P(B.substring(k+1,F)),!0]:(F=k+$,F>B.length-1&&(F=B.length-1),[F-k+1,P(B.substring(k+1,F)),!1])}};Tokenizer$1.prototype.peekLine=function(){return this.lines[this.lineIndex]};Tokenizer$1.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex<this.lines.length){var d=this.lines[this.lineIndex];return this.lineIndex++,d}return null};var abc_tokenizer=Tokenizer$1;function wrapLines(d,b,A){if(!(!b||d.lines.length===0)){var w=d.deline({lineBreaks:!1}),C=findLineBreaks(w,b);d.lines=addLineBreaks(w,C,A),d.lineBreaks=C}}function addLineBreaks(d,b,A){for(var w=[],C=[],x=[],S=1,E=0;E<b.length;E++){var P=b[E];if(d[P.ogLine].staff){var B=d[P.ogLine].staff[P.staff];if(w[P.line]||(w[P.line]={staff:[]}),!w[P.line].staff[P.staff]){w[P.line].staff[P.staff]={voices:[]},A!==void 0&&P.staff===0&&P.line>0&&(w[P.line].staff[P.staff].barNumber=S);for(var k=Object.keys(B),$=0;$<k.length;$++){var I=k[$]==="voices";k[$]==="meter"&&P.line!==0&&(I=!0),I||(w[P.line].staff[P.staff][k[$]]=B[k[$]])}C[P.staff]&&(w[P.line].staff[P.staff].key=C[P.staff])}w[P.line].staff[P.staff].voices[P.voice]||(w[P.line].staff[P.staff].voices[P.voice]=[]),w[P.line].staff[P.staff].voices[P.voice]=d[P.ogLine].staff[P.staff].voices[P.voice].slice(P.start,P.end+1),x[P.staff*10+P.voice]&&w[P.line].staff[P.staff].voices[P.voice].unshift({el_type:"stem",direction:x[P.staff*10+P.voice].direction});for(var D=w[P.line].staff[P.staff].voices[P.voice],F=D.length-1;F>=0;F--)if(D[F].el_type==="key"){C[P.staff]={root:D[F].root,acc:D[F].acc,mode:D[F].mode,accidentals:D[F].accidentals.filter(function(L){return L.acc!=="natural"})};break}for(F=D.length-1;F>=0;F--)if(D[F].el_type==="stem"){x[P.staff*10+P.voice]={direction:D[F].direction};break}if(A!==void 0&&P.staff===0&&P.voice===0)for(F=0;F<D.length;F++)D[F].el_type==="bar"&&(S++,F===D.length-1?delete D[F].barNumber:D[F].barNumber=S)}else w[P.line]=d[P.ogLine]}for(var z=0;z<w.length;z++)w[z].staff&&(w[z].staff=w[z].staff.filter(function(L){return L!=null}));return w}function findLineBreaks(d,b){for(var A=[],w=0,C=0,x=0,S=0;S<d.length;S++){var E=d[S];if(E.staff){var P=C,B=b[w];w++;for(var k=0;k<E.staff.length;k++)for(var $=E.staff[k],I=0;I<$.voices.length;I++){x=P;for(var D=0,F=0,z=$.voices[I],L=0,H=0;H<z.length;H++){var Q=z[H];Q.el_type==="bar"&&(B[F]===D&&(A.push({ogLine:S,line:x,staff:k,voice:I,start:L,end:H}),L=H+1,x++,C=Math.max(C,x),F++),D++)}A.push({ogLine:S,line:x,staff:k,voice:I,start:L,end:z.length}),x++,C=Math.max(C,x)}}else A.push({ogLine:S,line:x}),x++,C=Math.max(C,x)}return A}function freeFormLineBreaks(d,b){for(var A=[],w=[],C=0,x=0;x<d.length;x++){var S=d[x],E=C+S;if(E<b)C=E;else{var P=b-C,B=E-b;P<B&&C>0?(A.push(x-1),w.push(Math.round(C-S)),C=S):x<d.length-1&&(A.push(x),w.push(Math.round(C)),C=0)}}return w.push(Math.round(C)),{lineBreaks:A,totals:w}}function clone(d){for(var b=[],A=0;A<d.length;A++)b.push(d[A]);return b}function oneTry(d,b,A,w,C,x,S,E,P,B,k){for(var $=B;$<d.length;$++){var I=d[$];A+=I,w+=I;var D=Math.abs(A-b[E]),F=Math.abs(D-x)<b[0]/10;if(F)if(D<x){var z=clone(C),L=clone(P);L.push($-1),z.push(w-I),k.push({accumulator:A,lineAccumulator:I,lineWidths:z,lastVariance:Math.abs(A-b[E+1]),highestVariance:Math.max(S,x),currLine:E+1,lineBreaks:L,startIndex:$+1})}else D>x&&$<d.length-1&&(z=clone(C),L=clone(P),k.push({accumulator:A,lineAccumulator:w,lineWidths:z,lastVariance:D,highestVariance:Math.max(S,D),currLine:E,lineBreaks:L,startIndex:$+1}));D>x?(P.push($-1),E++,S=Math.max(S,x),x=Math.abs(A-b[E]),C.push(w-I),w=I):x=D}C.push(w)}function optimizeLineWidths(d,b,A,w){for(var C=Math.ceil(d.total/b),x=Math.floor(d.total/C),S=[],E=0;E<C;E++)S.push(x*(E+1));var P=[];P.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var B=0;B<P.length;)oneTry(d.measureWidths,S,P[B].accumulator,P[B].lineAccumulator,P[B].lineWidths,P[B].lastVariance,P[B].highestVariance,P[B].currLine,P[B].lineBreaks,P[B].startIndex,P),B++;for(E=0;E<P.length;E++){var k=P[E];k.variances=[],k.aveVariance=0;for(var $=0;$<k.lineWidths.length;$++){var I=k.lineWidths[$];k.variances.push(I-S[0]),k.aveVariance+=Math.abs(I-S[0])}k.aveVariance=k.aveVariance/k.lineWidths.length,w.attempts.push({type:"optimizeLineWidths",lineBreaks:k.lineBreaks,variances:k.variances,aveVariance:k.aveVariance,widths:d.measureWidths})}var D=9999999,F=-1;for(E=0;E<P.length;E++)k=P[E],k.aveVariance<D&&(D=k.aveVariance,F=E);return{failed:!1,lineBreaks:P[F].lineBreaks,variance:P[F].highestVariance}}function fixedMeasureLineBreaks(d,b,A){for(var w=[],C=[],x=0,S=!1,E=0;E<d.length;E++)x+=d[E],x>b&&(S=!0),E%A===A-1&&(E!==d.length-1&&w.push(E),C.push(Math.round(x)),x=0);return{failed:S,totals:C,lineBreaks:w}}function getRevisedTuneParams(d,b,A){var w={lineBreaks:d,staffwidth:b};for(var C in A)A.hasOwnProperty(C)&&C!=="wrap"&&C!=="staffwidth"&&(w[C]=A[C]);return{revisedParams:w}}function calcLineWraps(d,b,A){if(b.length===0||A.staffwidth<b[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:A};var w=A.scale?Math.max(A.scale,.1):1,C=A.wrap.minSpacing?Math.max(parseFloat(A.wrap.minSpacing),1):1,x=A.wrap.minSpacingLimit?Math.max(parseFloat(A.wrap.minSpacingLimit),1):C-.1,S=A.wrap.maxSpacing?Math.max(parseFloat(A.wrap.maxSpacing),1):void 0;A.wrap.lastLineLimit&&!S&&(S=Math.max(parseFloat(A.wrap.lastLineLimit),1));for(var E=A.wrap.preferredMeasuresPerLine?Math.max(parseInt(A.wrap.preferredMeasuresPerLine,10),0):void 0,P=[],B=[],k=0;k<b.length;k++){var $=b[k],I=A.staffwidth-$.left,D=I/C/w,F=I/S/w,z=I/x/w,L={widths:$,lineBreakPoint:D,minLineSize:F,attempts:[],staffWidth:A.staffwidth,minWidth:Math.round(z)},H=null;if(E){var Q=fixedMeasureLineBreaks($.measureWidths,D,E);L.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:E,lineBreaks:Q.lineBreaks,failed:Q.failed,totals:Q.totals}),Q.failed||(H=Q.lineBreaks)}if(!H){var Y=freeFormLineBreaks($.measureWidths,D);L.attempts.push({type:"Free Form",lineBreaks:Y.lineBreaks,totals:Y.totals}),H=Y.lineBreaks,H.length>0&&$.measureWidths.length<25&&(Y=optimizeLineWidths($,D,H,L),L.attempts.push({type:"Optimize",failed:Y.failed,reason:Y.reason,lineBreaks:Y.lineBreaks,totals:Y.totals}),Y.failed||(H=Y.lineBreaks))}P.push(H),B.push(L)}var U=A.staffwidth,G=getRevisedTuneParams(P,U,A);return G.explanation=B,G.reParse=!0,G}var wrap_lines={wrapLines,calcLineWraps},spacing$e={};spacing$e.FONTEM=360;spacing$e.FONTSIZE=30;spacing$e.STEP=spacing$e.FONTSIZE*93/720;spacing$e.SPACE=10;spacing$e.TOPNOTE=15;spacing$e.STAVEHEIGHT=100;spacing$e.INDENT=50;var spacing_1=spacing$e,sequence$2,parseCommon$8=abc_common;(function(){var d=1,b=128;sequence$2=function(D,F){F=F||{};var z,L=F.program||0,H=F.midiTranspose||0;D.visualTranspose&&(H-=D.visualTranspose);var Q=F.channel||0,Y=!1,U=F.drum||"",G=F.drumBars||1,W=F.drumIntro||0,K=U!=="",X=[],Z=50;L=parseInt(L,10),H=parseInt(H,10),Q=parseInt(Q,10),Q===10&&(L=b),U=U.split(" "),G=parseInt(G,10),W=parseInt(W,10);var oe=D.formatting.bagpipes;oe&&(L=71);var he=[];if(D.formatting.midi){var J=D.formatting.midi;J.program&&J.program.length>0&&(L=J.program[0],J.program.length>1&&(L=J.program[1],Q=J.program[0]),Y=!0),J.transpose&&(H=J.transpose[0]),J.channel&&(Q=J.channel[0],Y=!0),J.drum&&(U=J.drum),J.drumbars&&(G=J.drumbars[0]),J.drumon&&(K=!0),Q===10&&(L=b),J.beat&&he.push({el_type:"beat",beats:J.beat}),J.nobeataccents&&he.push({el_type:"beataccents",value:!1})}F.qpm?z=parseInt(F.qpm,10):D.metaText.tempo?z=E(D.metaText.tempo,D.getBeatLength()):F.defaultQpm?z=F.defaultQpm:z=180;var le=[];oe&&le.push({el_type:"bagpipes"}),le.push({el_type:"instrument",program:L}),Q&&le.push({el_type:"channel",channel:Q}),H&&le.push({el_type:"transpose",transpose:H}),le.push({el_type:"tempo",qpm:z});for(var de=0;de<he.length;de++)le.push(he[de]);var me=[],ne=[],re=[],fe=[0],ce={};ce[0]={el_type:"tempo",qpm:z,timing:0};for(var we,Fe=[],Ke=[],tt=!1,ut=D.lines,dt=0;dt<ut.length;dt++){var it=ut[dt];if(it.staff){let At=function(Ae){var Re={pppp:[15,10,5,1],ppp:[30,20,10,1],pp:[45,35,20,1],p:[60,50,35,1],mp:[75,65,50,1],mf:[90,80,65,1],f:[105,95,80,1],ff:[120,110,95,1],fff:[127,125,110,1],ffff:[127,125,110,1]},qe;if(Ae.decoration)if(Ae.decoration.indexOf("pppp")>=0?qe="pppp":Ae.decoration.indexOf("ppp")>=0?qe="ppp":Ae.decoration.indexOf("pp")>=0?qe="pp":Ae.decoration.indexOf("p")>=0?qe="p":Ae.decoration.indexOf("mp")>=0?qe="mp":Ae.decoration.indexOf("mf")>=0?qe="mf":Ae.decoration.indexOf("f")>=0?qe="f":Ae.decoration.indexOf("ff")>=0?qe="ff":Ae.decoration.indexOf("fff")>=0?qe="fff":Ae.decoration.indexOf("ffff")>=0&&(qe="ffff"),qe&&(we=Re[qe].slice(0),me[ke].push({el_type:"beat",beats:we.slice(0)}),ne[Je]=!1,re[Je]=!1),Ae.decoration.indexOf("crescendo(")>=0){var ft=A(ve,Ee,"crescendo)"),vt=Math.min(127,we[0]+Z),bt=w(ve,Ee+ft+1,Object.keys(Re));bt&&(vt=Re[bt][0]),ft>0?ne[Je]=Math.floor((vt-we[0])/ft):ne[Je]=!1,re[Je]=!1}else if(Ae.decoration.indexOf("crescendo)")>=0)ne[Je]=!1;else if(Ae.decoration.indexOf("diminuendo(")>=0){var xe=A(ve,Ee,"diminuendo)"),Ne=Math.max(15,we[0]-Z),ze=w(ve,Ee+xe+1,Object.keys(Re));ze&&(Ne=Re[ze][0]),ne[Je]=!1,xe>0?re[Je]=Math.floor((Ne-we[0])/xe):re[Je]=!1}else Ae.decoration.indexOf("diminuendo)")>=0&&(re[Je]=!1)};for(var $e=it.staff,ke=0,Oe=0;Oe<$e.length;Oe++){var Qe=$e[Oe];if(!(Qe.clef&&Qe.clef.type==="TAB"))for(var Je=0;Je<Qe.voices.length;Je++){var ve=Qe.voices[Je];if(!me[ke]){me[ke]=[].concat(JSON.parse(JSON.stringify(le)));var ye=S(it.staff,ke);ye&&me[ke].unshift({el_type:"name",trackName:ye})}if(H&&Qe.clef.type==="perc"&&me[ke].push({el_type:"transpose",transpose:0}),Qe.clef&&Qe.clef.type==="perc"&&!Y)for(var Te=0;Te<me[ke].length;Te++)me[ke][Te].el_type==="instrument"&&(me[ke][Te].program=b);else Qe.key&&k(me[ke],Qe.key);Qe.meter&&$(me[ke],Qe.meter),!tt&&K&&(me[ke].push({el_type:"drum",params:{pattern:U,bars:G,on:K,intro:W}}),tt=!0),Qe.clef&&Qe.clef.type!=="perc"&&Qe.clef.transpose&&(Qe.clef.el_type="clef",me[ke].push({el_type:"transpose",transpose:Qe.clef.transpose})),Qe.clef&&Qe.clef.type&&(Qe.clef.type.indexOf("-8")>=0?me[ke].push({el_type:"transpose",transpose:-12}):Qe.clef.type.indexOf("+8")>=0&&me[ke].push({el_type:"transpose",transpose:12})),D.formatting.midi&&D.formatting.midi.drumoff&&(me[ke].push({el_type:"bar"}),me[ke].push({el_type:"drum",params:{pattern:"",on:!1}}));var ee=0,se=0,ie=0,be=0;we=[105,95,85,1];for(var Ee=0;Ee<ve.length;Ee++){var Ce=ve[Ee];switch(Ce.el_type){case"note":if(ne[Je]&&(we[0]+=ne[Je],we[1]+=ne[Je],we[2]+=ne[Je],me[ke].push({el_type:"beat",beats:we.slice(0)})),re[Je]&&(we[0]+=re[Je],we[1]+=re[Je],we[2]+=re[Je],me[ke].push({el_type:"beat",beats:we.slice(0)})),At(Ce),!Ce.rest||Ce.rest.type!=="spacer"){var ge={elem:Ce,el_type:"note",timing:fe[ke]};if(Ce.style?ge.style=Ce.style:X[ke]&&(ge.style=X[ke]),ge.duration=Ce.duration===0?.25:Ce.duration,Ce.startTriplet){if(se=Ce.tripletMultiplier,ie=Ce.startTriplet*se*Ce.duration,Ce.startTriplet!==Ce.tripletR&&Ee+Ce.tripletR<=ve.length){for(var Ie=0,Le=Ee;Le<Ee+Ce.tripletR;Le++)Ie+=ve[Le].duration;ie=se*Ie}ge.duration=ge.duration*se,ge.duration=Math.round(ge.duration*1e6)/1e6,be=ge.duration}else se&&(Ce.endTriplet?(se=0,ge.duration=Math.round((ie-be)*1e6)/1e6):(ge.duration=ge.duration*se,ge.duration=Math.round(ge.duration*1e6)/1e6,be+=ge.duration));Ce.rest&&(ge.rest=Ce.rest),Ce.decoration&&(ge.decoration=Ce.decoration.slice(0)),Ce.pitches&&(ge.pitches=parseCommon$8.cloneArray(Ce.pitches)),Ce.gracenotes&&(ge.gracenotes=parseCommon$8.cloneArray(Ce.gracenotes)),Ce.chord&&(ge.chord=parseCommon$8.cloneArray(Ce.chord)),me[ke].push(ge),Ce.style==="rhythm"&&x(me),ee++,fe[ke]+=ge.duration}break;case"key":case"keySignature":k(me[ke],Ce);break;case"meter":$(me[ke],Ce);break;case"clef":Ce.transpose&&me[ke].push({el_type:"transpose",transpose:Ce.transpose}),Ce.type&&(Ce.type.indexOf("-8")>=0?me[ke].push({el_type:"transpose",transpose:-12}):Ce.type.indexOf("+8")>=0&&me[ke].push({el_type:"transpose",transpose:12}));break;case"tempo":z=E(Ce,D.getBeatLength()),me[ke].push({el_type:"tempo",qpm:z,timing:fe[ke]}),ce[""+fe[ke]]={el_type:"tempo",qpm:z,timing:fe[ke]};break;case"bar":ee>0&&me[ke].push({el_type:"bar"}),At(Ce),ee=0;var Ye=Ce.type==="bar_right_repeat"||Ce.type==="bar_dbl_repeat",rt=Ce.startEnding==="1",lt=Ce.type==="bar_left_repeat"||Ce.type==="bar_dbl_repeat"||Ce.type==="bar_right_repeat";if(Ye){var pt=Fe[ke];pt||(pt=0);var He=Ke[ke];He||(He=me[ke].length);for(var at=pt;at<He;at++){var nt=parseCommon$8.clone(me[ke][at]);nt.pitches&&(nt.pitches=parseCommon$8.cloneArray(nt.pitches)),me[ke].push(nt)}Ke[ke]=void 0,Fe[ke]=void 0}rt&&(Ke[ke]=me[ke].length),lt&&(Fe[ke]=me[ke].length);break;case"style":X[ke]=Ce.head;break;case"timeSignature":me[ke].push(P(Ce));break;case"part":break;case"stem":case"scale":case"break":case"font":break;case"midi":var mt=!1;switch(Ce.cmd){case"drumon":K=!0,mt=!0;break;case"drumoff":K=!1,mt=!0;break;case"drum":U=Ce.params,mt=!0;break;case"drumbars":G=Ce.params[0],mt=!0;break;case"drummap":break;case"channel":Ce.params[0]===10&&me[ke].push({el_type:"instrument",program:b});break;case"program":I(me[ke],{el_type:"instrument",program:Ce.params[0]}),Y=!0;break;case"transpose":me[ke].push({el_type:"transpose",transpose:Ce.params[0]});break;case"gchordoff":me[ke].push({el_type:"gchord",tacet:!0});break;case"gchordon":me[ke].push({el_type:"gchord",tacet:!1});break;case"beat":me[ke].push({el_type:"beat",beats:Ce.params});break;case"nobeataccents":me[ke].push({el_type:"beataccents",value:!1});break;case"beataccents":me[ke].push({el_type:"beataccents",value:!0});break;case"vol":me[ke].push({el_type:"vol",volume:Ce.params[0]});break;case"volinc":me[ke].push({el_type:"volinc",volume:Ce.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",Ce.cmd,Ce)}mt&&(me[0].push({el_type:"drum",params:{pattern:U,bars:G,intro:W,on:K}}),tt=!0);break;default:console.log("MIDI: element type "+Ce.el_type+" not handled.")}}ke++,fe[ke]||(fe[ke]=0)}}}}if(C(me,ce),W)for(var Tt=D.getPickupLength(),Dt=0;Dt<me.length;Dt++){for(var yt=0;me[Dt][yt].el_type!=="note"&&me[Dt].length>yt;)yt++;if(me[Dt].length>yt)for(var Le=0;Le<W;Le++)Tt===0||Le<W-1?me[Dt].splice(yt,0,{el_type:"note",rest:{type:"rest"},duration:d},{el_type:"bar"}):me[Dt].splice(yt,0,{el_type:"note",rest:{type:"rest"},duration:d-Tt})}return me.length>0&&me[0].length>0&&(me[0][0].pickupLength=D.getPickupLength()),me};function A(D,F,z){for(var L=0,H=F+1;H<D.length;H++)if(D[H].el_type==="note"&&L++,D[H].decoration&&D[H].decoration.indexOf(z)>=0)return L;return L}function w(D,F,z){for(var L=Math.min(D.length,F+3),H=F;H<L;H++)if(D[H].el_type==="note"&&D[H].decoration){for(var Q=0;Q<D[H].decoration.length;Q++)if(z.indexOf(D[H].decoration[Q])>=0)return D[H].decoration[Q]}return null}function C(D,F){if(!(!F||F.length===0))for(var z=Object.keys(F),L=0;L<D.length;L++)for(var H=D[L],Q=F[0]?F[0].qpm:0,Y=0;Y<H.length;Y++){var U=H[Y];U.el_type==="tempo"&&(Q=U.qpm),z.indexOf(""+U.timing)>=0&&Q!==F[""+U.timing].qpm&&(Q=F[""+U.timing].qpm,U.el_type==="tempo"?(U.qpm=F[""+U.timing].qpm,Y++):(D[L].splice(Y,0,{el_type:"tempo",qpm:F[""+U.timing].qpm,timing:U.timing}),Y+=2))}}function x(D){for(var F=0;F<D.length;F++)for(var z=D[F],L=z.length-1;L>=0&&z[L].el_type!=="bar";)z[L].noChordVoice=!0,L--}function S(D,F){if(!(!D||D.length<=F||!D[F].title))return D[F].title.join(" ")}function E(D,F){var z=.25;D.duration&&(z=D.duration[0]);var L=60;return D.bpm&&(L=D.bpm),z*L/F}function P(D){var F;switch(D.type){case"common_time":F={el_type:"meter",num:4,den:4};break;case"cut_time":F={el_type:"meter",num:2,den:2};break;case"specified":F={el_type:"meter",num:D.value[0].num,den:D.value[0].den};break;default:F={el_type:"meter"}}return d=F.num/F.den,F}function B(D){for(var F=[],z=0;z<D.length;z++)D[z].acc!=="natural"&&F.push(D[z]);return F}function k(D,F){var z;F.root==="HP"?z={el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:z={el_type:"key",accidentals:B(F.accidentals)},I(D,z)}function $(D,F){var z=P(F);I(D,z)}function I(D,F){for(var z=D.length-1;z>=0;z--)if(D[z].el_type===F.el_type){JSON.stringify(D[z])!==JSON.stringify(F)&&D.push(F);return}D.push(F)}})();var abc_midi_sequencer=sequence$2,pitchMap={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};function pitchesToPerc$2(d){var b=(d.accidental?d.accidental[0]:"x")+d.verticalPos;return pitchMap[b]}var pitchesToPerc_1=pitchesToPerc$2,flatten$1,parseCommon$7=abc_common,pitchesToPerc$1=pitchesToPerc_1;(function(){var d,b,A,w,C,x=1,S,E,P,B,k,$={num:4,den:4},I,D,F,z,L=0,H=0,Q=128,Y=64,U=48,G,W,K,X,Z=!1,oe=!1,he=!0,J=105,le=95,de=85,me=.25,ne,re,fe=0,ce,we={},Fe,Ke=0,tt,ut=0,dt=-.001,it=.4;flatten$1=function(xe,Ne,ze,Ve){Ne||(Ne={}),Ve||(Ve={}),d=[],b=[0,0,0,0,0,0,0],w=[],C=Ne.qpm,x=1,S=void 0,E=void 0,P=void 0,B=void 0,k=0,tt=ze,$={num:4,den:4},I=[],D=!1,z=xe.length,F=!1,G=[],L=Ve.bassprog&&Ve.bassprog.length===1?Ve.bassprog[0]:0,H=Ve.chordprog&&Ve.chordprog.length===1?Ve.chordprog[0]:0,Y=Ve.bassvol&&Ve.bassvol.length===1?Ve.bassvol[0]:64,U=Ve.chordvol&&Ve.chordvol.length===1?Ve.chordvol[0]:48,W=void 0,K=void 0,Z=!!Ne.chordsOff,oe=!1,he=!0,J=105,le=95,de=85,me=.25,ne=void 0,re=void 0,fe=0,ce=[],we={},Fe=1,xe.length>0&&xe[0].length>0&&(Ke=xe[0][0].pickupLength),Je(xe,Ne);for(var We=0;We<xe.length;We++){A=0;var ht=xe[We];P=[{cmd:"program",channel:We,instrument:S}],B=void 0,X=0;var _t=!1;(Ne.voicesOff===!0||Ne.voicesOff&&Ne.voicesOff.length&&Ne.voicesOff.indexOf(We)>=0)&&(_t=!0);for(var zt=0;zt<ht.length;zt++){var Ct=ht[zt];switch(Ct.el_type){case"name":B={cmd:"text",type:"name",text:Ct.trackName};break;case"note":var Mt=Ce(Ct,_t);Mt&&(D=We);break;case"key":b=Ye(Ct);break;case"meter":$=Ct,me=ve($),ft();break;case"tempo":C?x=Ct.qpm?C/Ct.qpm:1:C=Ct.qpm;break;case"transpose":A=Ct.transpose;break;case"bar":I.length>0&&(D===!1||We===D)&&(Re(X,Oe(Ct.time)),G=[]),d=[],We===0&&vt(xe.length+1),oe=!1,K=W,X=Oe(Ct.time);break;case"bagpipes":break;case"instrument":if(S===void 0&&(S=Ct.program),E=Ct.program,P.length>0&&P[P.length-1].cmd==="program")P[P.length-1].instrument=Ct.program;else{var Pe;for(Pe=P.length-1;Pe>=0&&P[Pe].cmd!=="program";Pe--);(Pe<0||P[Pe].instrument!==Ct.program)&&P.push({cmd:"program",channel:0,instrument:Ct.program})}break;case"channel":$e(Ct.channel);break;case"drum":we=qe(Ct.params),ft();break;case"gchord":Ne.chordsOff||(Z=Ct.tacet);break;case"beat":J=Ct.beats[0],le=Ct.beats[1],de=Ct.beats[2];break;case"vol":ne=Ct.volume;break;case"volinc":re=Ct.volume;break;case"beataccents":he=Ct.value;break;default:console.log("MIDI creation. Unknown el_type: "+Ct.el_type+"\n");break}}P[0].instrument===void 0&&(P[0].instrument=S||0),B&&P.unshift(B),w.push(P),ke()||(F=!0),ce.length>0}return Ne.detuneOctave&&bt(w,parseInt(Ne.detuneOctave,10)),ke()||w.push(I),ce.length>0&&w.push(ce),{tempo:C,instrument:S,tracks:w,totalDuration:k}};function $e(xe){for(var Ne=P.length-1;Ne>=0;Ne--)if(P[Ne].cmd==="program"){P[Ne].channel=xe;return}}function ke(){for(var xe=!0,Ne=0;Ne<I.length&&xe;Ne++)I[Ne].cmd==="note"&&(xe=!1);return xe}function Oe(xe){return xe/1e6}function Qe(xe){return Math.round(xe*x*1e6)/1e6}function Je(xe,Ne){for(var ze=0;ze<xe.length;ze++){for(var Ve=xe[ze],We={},ht=Ne.qpm,_t=0,zt=1,Ct=0;Ct<Ve.length;Ct++){var Mt=Ve[Ct];if(Mt.el_type==="tempo"){ht?zt=Mt.qpm?ht/Mt.qpm:1:ht=Mt.qpm;continue}Mt.time=_t;var Pe=Mt.duration?Mt.duration:0;if(_t+=Math.round(Pe*zt*1e6),Mt.pitches){for(var Ue=0;Ue<Mt.pitches.length;Ue++){var ct=Mt.pitches[Ue];if(ct){if(ct.duration=Mt.duration,ct.startTie)We[ct.pitch]===void 0?We[ct.pitch]={el:Ct,pitch:Ue}:(Ve[We[ct.pitch].el].pitches[We[ct.pitch].pitch].duration+=ct.duration,Mt.pitches[Ue]=null);else if(ct.endTie){var Et=We[ct.pitch];if(Et){var Vt=ct.duration;delete Ve[Et.el].pitches[Et.pitch].startTie,Ve[Et.el].pitches[Et.pitch].duration+=Vt,Mt.pitches[Ue]=null,delete We[ct.pitch]}else delete ct.endTie}}}delete Mt.duration}}for(var Nt in We)if(We.hasOwnProperty(Nt)){var tr=We[Nt];delete Ve[tr.el].pitches[tr.pitch].startTie}}}function ve(xe){switch(parseInt(xe.den,10)){case 2:return .5;case 4:return .25;case 8:return xe.num%3===0?.375:.125;case 16:return .125}return .25}var ye=["break","(break)","no chord","n.c.","tacet"];function Te(xe){if(Z)return"break";if(F||!xe.chord||xe.chord.length===0)return null;for(var Ne=0;Ne<xe.chord.length;Ne++){var ze=xe.chord[Ne];if(ze.position==="default")return ze.name;if(ye.indexOf(ze.name.toLowerCase())>=0)return"break"}return null}function ee(xe,Ne,ze){var Ve=ze-xe;return Ve/Ne}function se(xe,Ne){if(Ne)return 0;var ze;if(ne)ze=ne,ne=void 0;else if(!he)ze=le;else if(Ke>xe)ze=de;else{$.num/$.den;var Ve=ee(X,ve($),xe);Ve===0?ze=J:parseInt(Ve,10)===Ve?ze=le:ze=de}return re&&(ze+=re,re=void 0),ze<0&&(ze=0),ze>127&&(ze=127),Ne?0:ze}function ie(xe){var Ne=!1,ze=Te(xe);if(ze){var Ve=mt(ze);if(Ve){I.length===0&&(Ne=!0,I.push({cmd:"program",channel:z,instrument:H})),W=Ve;var We=ee(X,ve($),Oe(xe.time));G.push({chord:W,beat:We,start:Oe(xe.time)})}}return Ne}function be(xe,Ne){var ze={};if(xe.decoration)for(var Ve=0;Ve<xe.decoration.length;Ve++)xe.decoration[Ve]==="staccato"?ze.thisBreakBetweenNotes="staccato":xe.decoration[Ve]==="tenuto"?ze.thisBreakBetweenNotes="tenuto":xe.decoration[Ve]==="accent"?ze.velocity=Math.min(127,Ne*1.5):xe.decoration[Ve]==="trill"?ze.noteModification="trill":xe.decoration[Ve]==="lowermordent"?ze.noteModification="lowermordent":xe.decoration[Ve]==="uppermordent"||xe.decoration[Ve]==="mordent"?ze.noteModification="mordent":xe.decoration[Ve]==="turn"?ze.noteModification="turn":xe.decoration[Ve]==="roll"&&(ze.noteModification="roll");return ze}function Ee(xe,Ne){var ze=Ne.start,Ve=Ne.duration,We=Qe(1/32);switch(xe){case"trill":for(var ht=1;Ve>0;)P.push({cmd:"note",pitch:Ne.pitch+ht,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),ht=ht===1?0:1,Ve-=We,ze+=We;break;case"mordent":P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),Ve-=We,ze+=We,P.push({cmd:"note",pitch:Ne.pitch+1,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),Ve-=We,ze+=We,P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:Ve,gap:0,instrument:E});break;case"lowermordent":P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),Ve-=We,ze+=We,P.push({cmd:"note",pitch:Ne.pitch-1,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),Ve-=We,ze+=We,P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:Ve,gap:0,instrument:E});break;case"turn":We=Ne.duration/5,P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:Ne.pitch+1,volume:Ne.volume,start:ze+We,duration:We,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze+We*2,duration:We,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:Ne.pitch+1,volume:Ne.volume,start:ze+We*3,duration:We,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze+We*4,duration:We,gap:0,instrument:E});break;case"roll":for(;Ve>0;)P.push({cmd:"note",pitch:Ne.pitch,volume:Ne.volume,start:ze,duration:We,gap:0,instrument:E,style:"decoration"}),Ve-=We*2,ze+=We*2;break}}function Ce(xe,Ne){P.length;var ze=se(Oe(xe.time),Ne),Ve=ie(xe),We;if(xe.gracenotes&&xe.pitches&&xe.pitches.length>0&&xe.pitches[0]&&(We=rt(xe.gracenotes,xe.pitches[0].duration),xe.elem&&(xe.elem.midiGraceNotePitches=lt(We,Oe(xe.time),ze*2/3,E))),xe.elem){var ht=Oe(xe.time),_t=ht/me/C*60*1e3;if(xe.elem.currentTrackMilliseconds===void 0)xe.elem.currentTrackMilliseconds=_t,xe.elem.currentTrackWholeNotes=ht;else if(xe.elem.currentTrackMilliseconds.length===void 0)xe.elem.currentTrackMilliseconds!==_t&&(xe.elem.currentTrackMilliseconds=[xe.elem.currentTrackMilliseconds,_t],xe.elem.currentTrackWholeNotes=[xe.elem.currentTrackWholeNotes,ht]);else{for(var zt=!1,Ct=0;Ct<xe.elem.currentTrackMilliseconds.length;Ct++)xe.elem.currentTrackMilliseconds[Ct]===_t&&(zt=!0);zt||(xe.elem.currentTrackMilliseconds.push(_t),xe.elem.currentTrackWholeNotes.push(ht))}}if(xe.pitches){var Mt="",Pe=be(xe,ze);Pe.thisBreakBetweenNotes&&(Mt=Pe.thisBreakBetweenNotes),Pe.velocity&&(ze=Pe.velocity);var Ue=xe.pitches;if(xe.style==="rhythm"&&(oe=!0,W&&W.chick)){Ue=[];for(var ct=0;ct<W.chick.length;ct++){var Et=parseCommon$7.clone(xe.pitches[0]);Et.actualPitch=W.chick[ct],Ue.push(Et)}}xe.elem&&(xe.elem.midiPitches=[]);for(var Vt=0;Vt<Ue.length;Vt++){var Nt=Ue[Vt];if(Nt){Nt.startSlur&&(fe+=Nt.startSlur.length),Nt.endSlur&&(fe-=Nt.endSlur.length);var tr=Nt.actualPitch?Nt.actualPitch:Le(Nt);if(E===Q&&tt){var Kt=pitchesToPerc$1(Nt);Kt&&tt[Kt]&&(tr=tt[Kt].sound)}var Ot={cmd:"note",pitch:tr,volume:ze,start:Oe(xe.time),duration:Qe(Nt.duration),instrument:E,startChar:xe.elem.startChar,endChar:xe.elem.endChar};if(Ot=pt(Ot),xe.gracenotes&&(Ot.duration=Ot.duration/2,Ot.start=Ot.start+Ot.duration),xe.elem&&xe.elem.midiPitches.push(Ot),Pe.noteModification)Ee(Pe.noteModification,Ot);else{switch(fe>0?Ot.endType="tenuto":Mt&&(Ot.endType=Mt),Ot.endType){case"tenuto":Ot.gap=dt;break;case"staccato":var fr=Ot.duration*it;Ot.gap=C/60*fr;break;default:Ot.gap=ut;break}P.push(Ot)}}}P.length-1}var _r=ge(xe);return k=Math.max(k,Oe(xe.time)+Qe(_r)),Ve}function ge(xe){return xe.pitches&&xe.pitches.length>0&&xe.pitches[0]?xe.pitches[0].duration:xe.elem?xe.elem.duration:xe.duration}var Ie=[0,2,4,5,7,9,11];function Le(xe){if(xe.midipitch!==void 0)return xe.midipitch;var Ne=xe.pitch;if(xe.accidental)switch(xe.accidental){case"sharp":d[Ne]=1;break;case"flat":d[Ne]=-1;break;case"natural":d[Ne]=0;break;case"dblsharp":d[Ne]=2;break;case"dblflat":d[Ne]=-2;break;case"quartersharp":d[Ne]=.25;break;case"quarterflat":d[Ne]=-.25;break}var ze=He(Ne)*12+Ie[at(Ne)]+60;return d[Ne]!==void 0?ze+=d[Ne]:ze+=b[at(Ne)],ze+=A,ze}function Ye(xe){var Ne=[0,0,0,0,0,0,0];if(!xe.accidentals)return Ne;for(var ze=0;ze<xe.accidentals.length;ze++){var Ve=xe.accidentals[ze],We;switch(Ve.acc){case"flat":We=-1;break;case"quarterflat":We=-.25;break;case"sharp":We=1;break;case"quartersharp":We=.25;break;default:We=0;break}var ht=Ve.note.toLowerCase(),_t=at(ht.charCodeAt(0)-"c".charCodeAt(0));Ne[_t]+=We}return Ne}function rt(xe,Ne){for(var ze=0,Ve=[],We,ht=0;ht<xe.length;ht++)We=xe[ht],ze+=We.duration;var _t=Ne/2/ze;for(ht=0;ht<xe.length;ht++){We=xe[ht];var zt=Le(We);if(E===Q&&tt){var Ct=pitchesToPerc$1(We);Ct&&tt[Ct]&&(zt=tt[Ct].sound)}var Mt={pitch:zt,duration:We.duration*_t};Mt=pt(Mt),Ve.push(Mt)}return Ve}function lt(xe,Ne,ze,Ve){var We=[];ze=Math.round(ze);for(var ht=0;ht<xe.length;ht++){var _t=xe[ht];P.push({cmd:"note",pitch:_t.pitch,volume:ze,start:Ne,duration:_t.duration,gap:0,instrument:Ve,style:"grace"}),We.push({pitch:_t.pitch,durationInMeasures:_t.duration,volume:ze,instrument:Ve}),Ne+=_t.duration}return We}function pt(xe){var Ne=""+xe.pitch;return Ne.indexOf(".75")>=0?(xe.pitch=Math.round(xe.pitch),xe.cents=-50):Ne.indexOf(".25")>=0&&(xe.pitch=Math.round(xe.pitch),xe.cents=50),xe}function He(xe){return Math.floor(xe/7)}function at(xe){return xe=xe%7,xe<0&&(xe+=7),xe}var nt={A:33,B:35,C:36,D:38,E:40,F:41,G:43};function mt(xe){if(xe.length!==0){if(xe==="break")return{chick:[]};var Ne=xe.substring(0,1);if(Ne==="("){if(xe=xe.substring(1,xe.length-2),xe.length===0)return;Ne=xe.substring(0,1)}var ze=nt[Ne];if(ze){for(var Ve=A;Ve<-8;)Ve+=12;for(;Ve>8;)Ve-=12;ze+=Ve;var We=ze-5,ht;xe.length===1&&(ht=Dt(ze,""));var _t=xe.substring(1),zt=_t.substring(0,1);zt==="b"||zt==="♭"?(ze--,We--,_t=_t.substring(1)):(zt==="#"||zt==="♯")&&(ze++,We++,_t=_t.substring(1));var Ct=_t.split("/");if(ht=Dt(ze,Ct[0]),ht.length>=3){var Mt=ht[2]-ht[0];We=We+Mt-7}if(Ct.length===2){var Pe=nt[Ct[1].substring(0,1)];if(Pe){var Ue=Ct[1].substring(1),ct={"#":1,"♯":1,b:-1,"♭":-1}[Ue]||0;ze=nt[Ct[1].substring(0,1)]+ct+Ve,We=ze}}return{boom:ze,boom2:We,chick:ht}}}}var Tt={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],ø7:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7♭5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-∆9":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"∆7":[0,4,7,11],Δ7:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21]};function Dt(xe,Ne){var ze=Tt[Ne];ze||(Ne.slice(0,2).toLowerCase()==="ma"||Ne[0]==="M"?ze=Tt.M:Ne[0]==="m"||Ne[0]==="-"?ze=Tt.m:ze=Tt.M),xe+=12;for(var Ve=[],We=0;We<ze.length;We++)Ve.push(xe+ze[We]);return Ve}function yt(xe,Ne,ze,Ve,We){xe!==void 0&&I.push({cmd:"note",pitch:xe,volume:ze,start:X+Ve*Qe(Ne),duration:Qe(We),gap:0,instrument:L})}function At(xe,Ne,ze,Ve,We){for(var ht=0;ht<xe.length;ht++)I.push({cmd:"note",pitch:xe[ht],volume:ze,start:X+Ve*Qe(Ne),duration:Qe(We),gap:0,instrument:H})}var Ae={"2/2":["boom","chick"],"2/4":["boom","chick"],"3/4":["boom","chick","chick"],"4/4":["boom","chick","boom2","chick"],"5/4":["boom","chick","chick","boom2","chick"],"6/8":["boom","","chick","boom2","","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"12/8":["boom","","chick","boom2","","chick","boom","","chick","boom2","","chick"]};function Re(xe,Ne){var ze=$.num,Ve=$.den,We=1/Ve,ht=We/2,_t=Ae[ze+"/"+Ve],zt=parseInt(ze,10)/parseInt(Ve,10),Ct=zt-(Ne-xe)/x;if(Math.abs(Ct)<1e-5&&(Ct=!1),!_t||Ct){_t=[];for(var Mt=(Ne-xe)/x/We,Pe=0;Pe<Mt;Pe++)_t.push("chick")}if(G.length===0&&G.push({beat:0,chord:W}),G[0].beat!==0&&W&&K&&G.unshift({beat:0,chord:K}),G.length===1){for(var Ue=G[0].beat;Ue<_t.length;Ue++)if(!oe)switch(_t[Ue]){case"boom":yt(G[0].chord.boom,We,Y,Ue,ht);break;case"boom2":yt(G[0].chord.boom2,We,Y,Ue,ht);break;case"chick":At(G[0].chord.chick,We,U,Ue,ht);break}return}for(var ct=We===.125?3:1,Et={},Vt=0;Vt<G.length;Vt++){var Nt=G[Vt],tr=Math.round(Nt.beat*ct);Et[""+tr]=Nt}for(var Kt=0;Kt<_t.length;Kt++){var Ot;Et[""+Kt]&&(Ot=Et[""+Kt]);var fr;if(!oe&&Ot)switch(_t[Kt]){case"boom":Et[""+(Kt+1)]?At(Ot.chord.chick,We,U,Kt,ht):(yt(Ot.chord.boom,We,Y,Kt,ht),fr=Ot.chord.boom);break;case"boom2":Et[""+(Kt+1)]?At(Ot.chord.chick,We,U,Kt,ht):fr===Ot.chord.boom?(yt(Ot.chord.boom2,We,Y,Kt,ht),fr=void 0):(yt(Ot.chord.boom,We,Y,Kt,ht),fr=Ot.chord.boom);break;case"chick":At(Ot.chord.chick,We,U,Kt,ht);break;case"":Et[""+Kt]&&At(Ot.chord.chick,We,U,Kt,ht);break}}}function qe(xe){if(xe.pattern.length===0||xe.on===!1)return{on:!1};for(var Ne=xe.pattern[0],ze=[],Ve="",We=0,ht=0;ht<Ne.length;ht++)if(Ne[ht]==="d"&&We++,Ne[ht]==="d"||Ne[ht]==="z")Ve.length!==0?(ze.push(Ve),Ve=Ne[ht]):Ve=Ve+Ne[ht];else{if(Ve.length===0)return{on:!1};Ve=Ve+Ne[ht]}if(Ve.length!==0&&ze.push(Ve),xe.pattern.length!==We*2+1)return{on:!1};for(var _t={on:!0,bars:xe.bars,pattern:[]},zt=ve($),Ct=0,Mt=0;Mt<ze.length;Mt++){Ve=ze[Mt];for(var Pe=1,Ue=!1,ct=0,Et=1;Et<Ve.length;Et++)switch(Ve[Et]){case"/":ct!==0&&(Pe*=ct),ct=0,Ue=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ct=ct*10+Ve[Et];break;default:return{on:!1}}Ue?(ct===0&&(ct=2),Pe/=ct):ct&&(Pe*=ct),Ve[0]==="d"?(_t.pattern.push({len:Pe*zt,pitch:xe.pattern[1+Ct],velocity:xe.pattern[1+Ct+We]}),Ct++):_t.pattern.push({len:Pe*zt,pitch:null})}return Fe=xe.bars?xe.bars:1,_t}function ft(){if(!(!we||!we.pattern)){for(var xe=we,Ne=0,ze=$.num/$.den,Ve=0;Ve<xe.pattern.length;Ve++)Ne+=xe.pattern[Ve].len;var We=Ne/Fe/ze;for(Ve=0;Ve<xe.pattern.length;Ve++)xe.pattern[Ve].len=xe.pattern[Ve].len/We;we=xe}}function vt(xe){if(!(ce.length===0&&!we.on)){var Ne=$.num/$.den;if(ce.length===0){if(k<Ne)return;ce.push({cmd:"program",channel:xe,instrument:Q})}if(we.on)for(var ze=X,Ve=0;Ve<we.pattern.length;Ve++){var We=Qe(we.pattern[Ve].len);we.pattern[Ve].pitch&&ce.push({cmd:"note",pitch:we.pattern[Ve].pitch,volume:we.pattern[Ve].velocity,start:ze,duration:We,gap:0,instrument:Q}),ze+=We}}}function bt(xe,Ne){for(var ze={},Ve=0;Ve<xe.length;Ve++)for(var We=0;We<xe[Ve].length;We++){var ht=xe[Ve][We];ht.cmd==="note"&&(ze[ht.start]===void 0&&(ze[ht.start]=[]),ze[ht.start].push({track:Ve,event:We,pitch:ht.pitch}))}var _t=Object.keys(ze);for(Ve=0;Ve<_t.length;Ve++){var zt=ze[_t[Ve]];if(zt.length>1){zt=zt.sort(function(ct,Et){return ct.pitch-Et.pitch});var Ct=zt[zt.length-1],Mt=Ct.pitch%12,Pe=!1;for(We=0;!Pe&&We<zt.length-1;We++)zt[We].pitch%12===Mt&&(Pe=!0);if(Pe){var Ue=xe[Ct.track][Ct.event];Ue.cents||(Ue.cents=0),Ue.cents+=Ne}}}}})();var abc_midi_flattener=flatten$1;function delineTune$1(d,b){b||(b={});for(var A=!!b.lineBreaks,w=[],C=!1,x=[],S=[],E=[],P=[],B=[],k=[],$=[],I=0;I<d.length;I++){var D=d[I];if(D.staff){if(C&&!D.vskip)for(var F=w[w.length-1],z=0;z<F.staff.length;z++){var L=D.staff[z],H=F.staff[z];if(L&&(objEqual(L.meter,x[z])||(addMeterToVoices(L.meter,L.voices),x[z]=L.meter,delete L.meter),objEqual(L.key,S[z])||(addKeyToVoices(L.key,L.voices),S[z]=L.key,delete L.key),L.title&&(H.abbrevTitle=L.title),objEqual(L.clef,E[z])||(addClefToVoices(L.clef,L.voices),E[z]=L.clef,delete L.clef),objEqual(L.vocalfont,P[z])||(addFontToVoices(L.vocalfont,L.voices,"vocalfont"),P[z]=L.vocalfont,delete L.vocalfont),objEqual(L.gchordfont,B[z])||(addFontToVoices(L.gchordfont,L.voices,"gchordfont"),B[z]=L.gchordfont,delete L.gchordfont),objEqual(L.tripletfont,k[z])||(addFontToVoices(L.tripletfont,L.voices,"tripletfont"),k[z]=L.tripletfont,delete L.tripletfont),objEqual(L.annotationfont,$[z])||(addFontToVoices(L.annotationfont,L.voices,"annotationfont"),$[z]=L.annotationfont,delete L.annotationfont)),L)for(var Q=0;Q<H.voices.length;Q++){var Y=H.voices[Q],U=L.voices[Q];A&&Y.push({el_type:"break"}),U&&(H.voices[Q]=Y.concat(U))}}else{for(var G=0;G<D.staff.length;G++)S[G]=D.staff[G].key,x[G]=D.staff[G].meter,E[G]=D.staff[G].clef;w.push(cloneLine(D))}C=!0}else C=!1,w.push(D)}return w}function replacer(d,b){return d==="abselem"?"abselem":b}function addMeterToVoices(d,b){d.el_type="meter",d.startChar=-1,d.endChar=-1;for(var A=0;A<b.length;A++)b[A].unshift(d)}function addKeyToVoices(d,b){d.el_type="key",d.startChar=-1,d.endChar=-1;for(var A=0;A<b.length;A++)b[A].unshift(d)}function addClefToVoices(d,b){d.el_type="clef",d.startChar=-1,d.endChar=-1;for(var A=0;A<b.length;A++)b[A].unshift(d)}function addFontToVoices(d,b,A){d.el_type="font",d.type=A,d.startChar=-1,d.endChar=-1;for(var w=0;w<b.length;w++)b[w].unshift(d)}function objEqual(d,b){if(!d)return!0;var A=JSON.stringify(d,replacer),w=JSON.stringify(b,replacer);return A===w}function cloneLine(d){for(var b={},A=Object.keys(d),w=0;w<A.length;w++)if(A[w]!=="staff")b[A[w]]=d[A[w]];else{b.staff=[];for(var C=0;C<d.staff.length;C++){for(var x={},S=Object.keys(d.staff[C]),E=0;E<S.length;E++)if(S[E]!=="voices")x[S[E]]=d.staff[C][S[E]];else{x.voices=[];for(var P=0;P<d.staff[C].voices.length;P++)x.voices.push([].concat(d.staff[C].voices[P]))}b.staff.push(x)}}return b}var delineTune_1=delineTune$1,parseCommon$6=abc_common,spacing$d=spacing_1,sequence$1=abc_midi_sequencer,flatten=abc_midi_flattener,delineTune=delineTune_1,Tune$1=function(){this.reset=function(){this.version="1.1.0",this.media="screen",this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset();function d(S,E,P,B){for(var k=0;k<B.length;k++)S[P][B[k]]=E[P][B[k]]}this.copyTopInfo=function(S){var E=["tempo","title","header","rhythm","origin","composer","author","partOrder"];d(this,S,"metaText",E),d(this,S,"metaTextInfo",E)},this.copyBottomInfo=function(S){var E=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];d(this,S,"metaText",E),d(this,S,"metaTextInfo",E)},this.getBeatLength=function(){var S=this.getMeterFraction(),E=1;return(S.num===6||S.num===9||S.num===12||S.num===3&&S.den===8)&&(E=3),E/S.den};function b(S,E){for(var P=0,B=0;B<S.length;B++)if(S[B].staff)for(var k=0;k<S[B].staff.length;k++)for(var $=0;$<S[B].staff[k].voices.length;$++)for(var I=S[B].staff[k].voices[$],D=1,F=0;F<I.length;F++){var z=I[F].rest&&I[F].rest.type==="spacer";if(I[F].startTriplet&&(D=I[F].tripletMultiplier),I[F].duration&&!z&&I[F].el_type!=="tempo"&&(P+=I[F].duration*D),I[F].endTriplet&&(D=1),P>=E&&(P-=E),I[F].el_type==="bar")return P}return P}this.getPickupLength=function(){var S=this.getBarLength(),E=b(this.lines,S);return E<1e-8||S-E<1e-8?0:E},this.getBarLength=function(){var S=this.getMeterFraction();return S.num/S.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(S){var E;if(S)E=S;else{var P=this.metaText?this.metaText.tempo:null;E=this.getBpm(P)}E<=0&&(E=1);var B=this.getBeatsPerMeasure(),k=B/E;return k*6e4},this.getBeatsPerMeasure=function(){var S=this.getBeatLength(),E=this.getBarLength();return E/S},this.getMeter=function(){for(var S=0;S<this.lines.length;S++){var E=this.lines[S];if(E.staff)for(var P=0;P<E.staff.length;P++){var B=E.staff[P].meter;if(B)return B}}return{type:"common_time"}},this.getMeterFraction=function(){var S=this.getMeter(),E=4,P=4;return S&&(S.type==="specified"?(E=parseInt(S.value[0].num,10),P=parseInt(S.value[0].den,10)):S.type==="cut_time"?(E=2,P=2):S.type==="common_time"&&(E=4,P=4)),this.meter={num:E,den:P},this.meter},this.getKeySignature=function(){for(var S=0;S<this.lines.length;S++){var E=this.lines[S];if(E.staff){for(var P=0;P<E.staff.length;P++)if(E.staff[P].key)return E.staff[P].key}}return{}},this.getElementFromChar=function(S){for(var E=0;E<this.lines.length;E++){var P=this.lines[E];if(P.staff)for(var B=0;B<P.staff.length;B++)for(var k=P.staff[B],$=0;$<k.voices.length;$++)for(var I=k.voices[$],D=0;D<I.length;D++){var F=I[D];if(F.startChar&&F.endChar&&F.startChar<=S&&F.endChar>S)return F}}return null};function A(S){for(var E,P,B,k,$=S.length-1;$>=0;$--){var I=S[$];I.type==="bar"?(I.top=B,I.nextTop=E,E=B,I.bottom=k,I.nextBottom=P,P=k):I.type==="event"&&(B=I.top,k=I.top+I.height)}}function w(S){var E=[];for(var P in S)S.hasOwnProperty(P)&&E.push(S[P]);return E=E.sort(function(B,k){var $=B.milliseconds-k.milliseconds;return $!==0?$:B.type==="bar"?-1:1}),E}this.addElementToEvents=function(S,E,P,B,k,$,I,D,F,z){if(E.hint)return{isTiedState:void 0,duration:0};var L=E.durationClass?E.durationClass:E.duration;if(E.abcelem.rest&&E.abcelem.rest.type==="spacer"&&(L=0),L>0){for(var H=[],Q=0;Q<E.elemset.length;Q++)E.elemset[Q]!==null&&H.push(E.elemset[Q]);var Y=E.startTie;if(F!==void 0)S["event"+F].elements.push(H),z&&(S["event"+P]||(S["event"+P]={type:"event",milliseconds:P,line:$,measureNumber:I,top:B,height:k,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),S["event"+P].measureStart=!0,z=!1),Y||(F=void 0);else{if(!S["event"+P])S["event"+P]={type:"event",milliseconds:P,line:$,measureNumber:I,top:B,height:k,left:E.x,width:E.w,elements:[H],startChar:E.abcelem.startChar,endChar:E.abcelem.endChar,startCharArray:[E.abcelem.startChar],endCharArray:[E.abcelem.endChar],midiPitches:E.abcelem.midiPitches?parseCommon$6.cloneArray(E.abcelem.midiPitches):[]},E.abcelem.midiGraceNotePitches&&(S["event"+P].midiGraceNotePitches=parseCommon$6.cloneArray(E.abcelem.midiGraceNotePitches));else{if(S["event"+P].left?S["event"+P].left=Math.min(S["event"+P].left,E.x):S["event"+P].left=E.x,S["event"+P].elements.push(H),S["event"+P].startCharArray.push(E.abcelem.startChar),S["event"+P].endCharArray.push(E.abcelem.endChar),S["event"+P].startChar===null&&(S["event"+P].startChar=E.abcelem.startChar),S["event"+P].endChar===null&&(S["event"+P].endChar=E.abcelem.endChar),E.abcelem.midiPitches&&E.abcelem.midiPitches.length){S["event"+P].midiPitches||(S["event"+P].midiPitches=[]);for(var Q=0;Q<E.abcelem.midiPitches.length;Q++)S["event"+P].midiPitches.push(E.abcelem.midiPitches[Q])}if(E.abcelem.midiGraceNotePitches&&E.abcelem.midiGraceNotePitches.length){S["event"+P].midiGraceNotePitches||(S["event"+P].midiGraceNotePitches=[]);for(var U=0;U<E.abcelem.midiGraceNotePitches.length;U++)S["event"+P].midiGraceNotePitches.push(E.abcelem.midiGraceNotePitches[U])}}z&&(S["event"+P].measureStart=!0,z=!1),Y&&(F=P)}}return{isTiedState:F,duration:L/D,nextIsBar:z||E.type==="bar"}},this.makeVoicesArray=function(){for(var S=[],E=[],P={},B=0;B<this.engraver.staffgroups.length;B++){var k=this.engraver.staffgroups[B];if(k&&k.staffs&&k.staffs.length>0){var $=k.staffs[0],I=$.absoluteY,D=I-$.top*spacing$d.STEP,F=k.staffs[k.staffs.length-1];I=F.absoluteY;for(var z=I-F.bottom*spacing$d.STEP,L=z-D,H=k.voices,Q=0;Q<H.length;Q++)if(!(H[Q].staff&&H[Q].staff.isTabStaff)){var Y=!1;S[Q]||(S[Q]=[]),E[Q]===void 0&&(E[Q]=0);for(var U=H[Q].children,G=0;G<U.length;G++)U[G].type==="tempo"&&(P[E[Q]]=this.getBpm(U[G].abcelem)),S[Q].push({top:D,height:L,line:k.line,measureNumber:E[Q],elem:U[G]}),U[G].type==="bar"&&Y&&E[Q]++,(U[G].type==="note"||U[G].type==="rest")&&(Y=!0)}}}return this.tempoLocations=P,S},this.setupEvents=function(S,E,P,B){B||(B=1);for(var k=[],$={},I=S,D,F=!0,z=this.makeVoicesArray(),L=0,H=0;H<z.length;H++){var Q=I,Y=Math.round(Q*1e3),U=0,G=-1,W=z[H],K=P;E=this.getBeatLength()*K/60;for(var X=-1,Z=0;Z<W.length;Z++){var oe=W[Z].measureNumber;X!==oe&&this.tempoLocations[oe]&&(K=this.tempoLocations[oe],E=B*this.getBeatLength()*K/60,X=oe);var he=W[Z].elem,J=this.addElementToEvents($,he,Y,W[Z].top,W[Z].height,W[Z].line,W[Z].measureNumber,E,D,F);D=J.isTiedState,F=J.nextIsBar,Q+=J.duration;var le;if(he.duration>0&&$["event"+Y]&&(le="event"+Y),Y=Math.round(Q*1e3),he.type==="bar"){var de=he.abcelem.type,me=de==="bar_right_repeat"||de==="bar_dbl_repeat",ne=he.abcelem.startEnding==="1",re=de==="bar_left_repeat"||de==="bar_dbl_repeat"||de==="bar_right_repeat";if(me){Z>0&&($[le].endX=he.x),G===-1&&(G=Z);var fe=0;X=-1;for(var ce=U;ce<G;ce++){oe=W[ce].measureNumber,X!==oe&&this.tempoLocations[oe]&&(K=this.tempoLocations[oe],E=B*this.getBeatLength()*K/60,X=oe);var we=W[ce].elem;J=this.addElementToEvents($,we,Y,W[ce].top,W[ce].height,W[ce].line,W[ce].measureNumber,E,D,F),D=J.isTiedState,F=J.nextIsBar,Q+=J.duration,fe=Y,Y=Math.round(Q*1e3)}$["event"+fe]&&($["event"+fe].endX=W[G].elem.x),F=!0,G=-1}ne&&(G=Z),re&&(U=Z)}}L=Math.max(L,Y)}return k=w($),A(k),x(this.lines,k),k.push({type:"end",milliseconds:L}),this.addUsefulCallbackInfo(k,K*B),k},this.addUsefulCallbackInfo=function(S,E){for(var P=this.millisecondsPerMeasure(E),B=0;B<S.length;B++){var k=S[B];k.millisecondsPerMeasure=P}};function C(S,E){for(;E<S.length&&S[E].left===null;)E++;return S[E]}function x(S,E){if(!(E.length<1)){for(var P=0;P<E.length-1;P++){var B=E[P],k=C(E,P+1);if(B.left!==null){var $=k&&B.top===k.top?k.left:S[B.line].staffGroup.w;B.endX!==void 0?$>B.left&&(B.endX=Math.min(B.endX,$)):B.endX=$}}var I=E[E.length-1];I.endX=S[I.line].staffGroup.w}}this.getBpm=function(S){var E;if(S){E=S.bpm;var P=this.getBeatLength(),B=S.duration&&S.duration.length>0?S.duration[0]:P;E=E*B/P}if(!E){E=180;var k=this.getMeterFraction();k&&k.num!==3&&k.num%3===0&&(E=120)}return E},this.setTiming=function(S,E){if(E=E||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var P=this.metaText?this.metaText.tempo:null,B=this.getBpm(P),k=1;S?P&&(k=S/B):S=B;var $=this.getBeatLength(),I=S/60,D=this.getBarLength(),F=D/$*E/I;F&&(F-=this.getPickupLength()/$/I);var z=$*I;return this.noteTimings=this.setupEvents(F,z,S,k),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*I):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(S){S||(S={});var E=sequence$1(this,S);return flatten(E,S,this.formatting.percmap,this.formatting.midi)},this.deline=function(S){return delineTune(this.lines,S)}},abc_tune=Tune$1,parseKeyVoice=abc_parse_key_voice,parseCommon$5=abc_common,TuneBuilder$1=function(d){var b=this;this.setVisualTranspose=function(C){C&&(d.visualTranspose=C)},this.resolveOverlays=function(){for(var C=!1,x=[],S=0;S<d.lines.length;S++){var E=d.lines[S];if(E.staff)for(var P=0;P<E.staff.length;P++){for(var B=E.staff[P],k=[],$=0;$<B.voices.length;$++){var I=B.voices[$];k.push({hasOverlay:!1,voice:[],snip:[]}),x[S]=0;for(var D=0,F=!1,z=-1,L=0;L<I.length;L++){var H=I[L];if(H.el_type==="overlay"&&!F){C=!0,F=!0,z=L,k[$].hasOverlay=!0;for(var Q=0;Q<S;Q++)x[Q]&&d.lines[Q].staff&&B.voices.length>=d.lines[Q].staff[0].voices.length&&d.lines[Q].staff[0].voices.push([{el_type:"note",duration:x[Q],rest:{type:"invisible"},startChar:H.startChar,endChar:H.endChar}])}else H.el_type==="bar"?(F?(F=!1,k[$].snip.push({start:z,len:L-z}),k[$].voice.push(H)):(D>0&&k[$].voice.push({el_type:"note",duration:D,rest:{type:"invisible"},startChar:H.startChar,endChar:H.endChar}),k[$].voice.push(H)),D=0):H.el_type==="note"?F?k[$].voice.push(H):(D+=H.duration,x[S]+=H.duration):(H.el_type==="scale"||H.el_type==="stem"||H.el_type==="overlay"||H.el_type==="style"||H.el_type==="transpose"||H.el_type==="color")&&k[$].voice.push(H)}k[$].hasOverlay&&k[$].snip.length===0&&k[$].snip.push({start:z,len:I.length-z})}for($=0;$<k.length;$++){var Y=k[$];if(Y.hasOverlay){Y.voice.splice(0,0,{el_type:"stem",direction:"down"}),B.voices.push(Y.voice);for(var U=Y.snip.length-1;U>=0;U--){var G=Y.snip[U];B.voices[$].splice(G.start,G.len),B.voices[$].splice(G.start+1,0,{el_type:"stem",direction:"auto"});var W=A(B.voices[$],G.start);B.voices[$].splice(W,0,{el_type:"stem",direction:"up"})}for(U=0;U<B.voices[B.voices.length-1].length;U++){B.voices[B.voices.length-1][U]=parseCommon$5.clone(B.voices[B.voices.length-1][U]);var K=B.voices[B.voices.length-1][U];K.el_type==="bar"&&K.startEnding&&delete K.startEnding,K.el_type==="bar"&&K.endEnding&&delete K.endEnding}}}}}return C};function A(C,x){for(var S=x-1;S>0&&C[S].el_type!=="bar";S--);return S}function w(C){for(var x=!0,S=0;S<C.length;S++){var E=C[S];if(E.staff){for(var P=0;P<E.staff.length;P++){var B=E.staff[P];if(B.title){for(var k=!1,$=0;$<B.title.length;$++)B.title[$]?(B.title[$]=x?B.title[$].name:B.title[$].subname,B.title[$]?k=!0:B.title[$]=""):B.title[$]="";k||delete B.title}}x=!1}}}this.cleanUp=function(C,x,S){this.closeLine(),delete d.runningFonts,d.metaText.tempo&&d.metaText.tempo.bpm&&!d.metaText.tempo.duration&&(d.metaText.tempo.duration=[d.getBeatLength()]);var E=!1,P,B,k;for(P=0;P<d.lines.length;P++)if(d.lines[P].staff!==void 0){var $=!1;for(B=0;B<d.lines[P].staff.length;B++)if(d.lines[P].staff[B]===void 0)E=!0,d.lines[P].staff[B]=null;else for(k=0;k<d.lines[P].staff[B].voices.length;k++)d.lines[P].staff[B].voices[k]===void 0?d.lines[P].staff[B].voices[k]=[]:this.containsNotes(d.lines[P].staff[B].voices[k])&&($=!0);$||(d.lines[P]=null,E=!0)}if(E&&(d.lines=d.lines.filter(function(G){return!!G}),d.lines.forEach(function(G){G.staff&&(G.staff=G.staff.filter(function(W){return!!W}))})),C)for(;z(d.lines,C););if(x){for(E=!1,P=0;P<d.lines.length;P++)if(d.lines[P].staff!==void 0)for(B=0;B<d.lines[P].staff.length;B++){var I=!1;for(k=0;k<d.lines[P].staff[B].voices.length;k++)this.containsNotesStrict(d.lines[P].staff[B].voices[k])&&(I=!0);I||(E=!0,d.lines[P].staff[B]=null)}E&&d.lines.forEach(function(G){G.staff&&(G.staff=G.staff.filter(function(W){return!!W}))})}for(w(d.lines),P=0;P<d.lines.length;P++)if(d.lines[P].staff)for(B=0;B<d.lines[P].staff.length;B++)delete d.lines[P].staff[B].workingClef;for(;this.resolveOverlays(););function D(G,W,K){S[W]||(S[W]=[]),S[W][K]||(S[W][K]=[]);for(var X,Z=function(Fe,Ke,tt){if(S[W][K][tt]===void 0){for(X=0;X<S[W][K].length;X++)if(S[W][K][X]!==void 0){tt=X;break}if(S[W][K][tt]===void 0){var ut=tt*100+1;Fe.endSlur.forEach(function($e){ut===$e&&--ut}),S[W][K][tt]=[ut]}}for(var dt,it=0;it<Ke;it++)dt=S[W][K][tt].pop(),Fe.endSlur.push(dt);return S[W][K][tt].length===0&&delete S[W][K][tt],dt},oe=function(Fe,Ke,tt,ut){Fe.startSlur=[],S[W][K][tt]===void 0&&(S[W][K][tt]=[]);for(var dt=tt*100+1,it=0;it<Ke;it++)ut&&(ut.forEach(function($e){dt===$e&&++dt}),ut.forEach(function($e){dt===$e&&++dt}),ut.forEach(function($e){dt===$e&&++dt})),S[W][K][tt].forEach(function($e){dt===$e&&++dt}),S[W][K][tt].forEach(function($e){dt===$e&&++dt}),S[W][K][tt].push(dt),Fe.startSlur.push({label:dt}),Fe.dottedSlur&&(Fe.startSlur[Fe.startSlur.length-1].style="dotted",delete Fe.dottedSlur),dt++},he=0;he<G.length;he++){var J=G[he];if(J.el_type==="note"){if(J.gracenotes)for(var le=0;le<J.gracenotes.length;le++){if(J.gracenotes[le].endSlur){var de=J.gracenotes[le].endSlur;J.gracenotes[le].endSlur=[];for(var me=0;me<de;me++)Z(J.gracenotes[le],1,20)}J.gracenotes[le].startSlur&&(X=J.gracenotes[le].startSlur,oe(J.gracenotes[le],X,20))}if(J.endSlur&&(X=J.endSlur,J.endSlur=[],Z(J,X,0)),J.startSlur&&(X=J.startSlur,oe(J,X,0)),J.pitches){for(var ne=[],re=0;re<J.pitches.length;re++)if(J.pitches[re].endSlur){var fe=J.pitches[re].endSlur;J.pitches[re].endSlur=[];for(var ce=0;ce<fe;ce++){var we=Z(J.pitches[re],1,re+1);ne.push(we)}}for(re=0;re<J.pitches.length;re++)J.pitches[re].startSlur&&(X=J.pitches[re].startSlur,oe(J.pitches[re],X,re+1,ne));J.gracenotes&&J.pitches[0].endSlur&&J.pitches[0].endSlur[0]===100&&J.pitches[0].startSlur&&(J.gracenotes[0].endSlur?J.gracenotes[0].endSlur.push(J.pitches[0].startSlur[0].label):J.gracenotes[0].endSlur=[J.pitches[0].startSlur[0].label],J.pitches[0].endSlur.length===1?delete J.pitches[0].endSlur:J.pitches[0].endSlur[0]===100?J.pitches[0].endSlur.shift():J.pitches[0].endSlur[J.pitches[0].endSlur.length-1]===100&&J.pitches[0].endSlur.pop(),S[W][K][1].length===1?delete S[W][K][1]:S[W][K][1].pop())}}}}function F(G){parseKeyVoice.fixClef(G)}function z(G,W){for(P=0;P<G.length;P++)if(G[P].staff!==void 0)for(B=0;B<G[P].staff.length;B++){var K=[];for(k=0;k<G[P].staff[B].voices.length;k++)for(var X=G[P].staff[B].voices[k],Z=0,oe=0;oe<X.length;oe++)if(X[oe].el_type==="bar"){if(Z++,Z>=W&&oe<X.length-1){var he=L(G,P);if(!he){var J=JSON.parse(JSON.stringify(G[P]));G.push(parseCommon$5.clone(J)),he=G[G.length-1];for(var le=0;le<he.staff.length;le++)for(var de=0;de<he.staff[le].voices.length;de++)he.staff[le].voices[de]=[]}var me=oe+1,ne=G[P].staff[B].voices[k].slice(me);return G[P].staff[B].voices[k]=G[P].staff[B].voices[k].slice(0,me),he.staff[B].voices[k]=K.concat(ne.concat(he.staff[B].voices[k])),!0}}else X[oe].duration||K.push(X[oe])}return!1}function L(G,W){for(W++;G.length>W;){if(G[W].staff)return G[W];W++}return null}for(d.lineNum=0;d.lineNum<d.lines.length;d.lineNum++){var H=d.lines[d.lineNum].staff;if(H)for(d.staffNum=0;d.staffNum<H.length;d.staffNum++)for(H[d.staffNum].clef&&F(H[d.staffNum].clef),d.voiceNum=0;d.voiceNum<H[d.staffNum].voices.length;d.voiceNum++){var Q=H[d.staffNum].voices[d.voiceNum];D(Q,d.staffNum,d.voiceNum);for(var Y=0;Y<Q.length;Y++)Q[Y].el_type==="clef"&&F(Q[Y]);if(Q.length>0&&Q[Q.length-1].barNumber){var U=L(d.lines,d.lineNum);U&&(U.staff[0].barNumber=Q[Q.length-1].barNumber),delete Q[Q.length-1].barNumber}}}return delete d.staffNum,delete d.voiceNum,delete d.lineNum,delete d.potentialStartBeam,delete d.potentialEndBeam,delete d.vskipPending,S},d.reset(),this.getLastNote=function(){if(d.lines[d.lineNum]&&d.lines[d.lineNum].staff&&d.lines[d.lineNum].staff[d.staffNum]&&d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum])for(var C=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum].length-1;C>=0;C--){var x=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum][C];if(x.el_type==="note")return x}return null},this.addTieToLastNote=function(C){var x=this.getLastNote();return x&&x.pitches&&x.pitches.length>0?(x.pitches[0].startTie={},C&&(x.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(C){return C.duration?C.duration:0},this.closeLine=function(){d.potentialStartBeam&&d.potentialEndBeam&&(d.potentialStartBeam.startBeam=!0,d.potentialEndBeam.endBeam=!0),delete d.potentialStartBeam,delete d.potentialEndBeam},this.appendElement=function(C,x,S,E){var P=d,B=function(D){var F=P.lines[P.lineNum].staff[P.staffNum];if(F){if(D.pitches!==void 0){var z=F.workingClef.verticalPos;D.pitches.forEach(function(H){H.verticalPos=H.pitch-z})}if(D.gracenotes!==void 0){var L=F.workingClef.verticalPos;D.gracenotes.forEach(function(H){H.verticalPos=H.pitch-L})}F.voices[P.voiceNum].push(D)}};E.el_type=C,x!==null&&(E.startChar=x),S!==null&&(E.endChar=S);var k=function(){P.potentialStartBeam.startBeam=!0,E.endBeam=!0,delete P.potentialStartBeam,delete P.potentialEndBeam},$=function(){P.potentialStartBeam!==void 0&&P.potentialEndBeam!==void 0&&(P.potentialStartBeam.startBeam=!0,P.potentialEndBeam.endBeam=!0),delete P.potentialStartBeam,delete P.potentialEndBeam};if(C==="note"){var I=b.getDuration(E);I>=.25||E.force_end_beam_last&&P.potentialStartBeam!==void 0?$():E.end_beam&&P.potentialStartBeam!==void 0?E.rest===void 0?k():$():E.rest===void 0&&(P.potentialStartBeam===void 0?E.end_beam||(P.potentialStartBeam=E,delete P.potentialEndBeam):P.potentialEndBeam=E)}else $();delete E.end_beam,delete E.force_end_beam_last,B(E)},this.appendStartingElement=function(C,x,S,E){this.closeLine();var P;C==="key"&&(P=E.impliedNaturals,delete E.impliedNaturals,delete E.explicitAccidentals);var B=parseCommon$5.clone(E);if(d.lines[d.lineNum]&&d.lines[d.lineNum].staff){d.lines[d.lineNum].staff.length<=d.staffNum&&(d.lines[d.lineNum].staff[d.staffNum]={},d.lines[d.lineNum].staff[d.staffNum].clef=parseCommon$5.clone(d.lines[d.lineNum].staff[0].clef),d.lines[d.lineNum].staff[d.staffNum].key=parseCommon$5.clone(d.lines[d.lineNum].staff[0].key),d.lines[d.lineNum].staff[0].meter&&(d.lines[d.lineNum].staff[d.staffNum].meter=parseCommon$5.clone(d.lines[d.lineNum].staff[0].meter)),d.lines[d.lineNum].staff[d.staffNum].workingClef=parseCommon$5.clone(d.lines[d.lineNum].staff[0].workingClef),d.lines[d.lineNum].staff[d.staffNum].voices=[[]]),C==="clef"&&(d.lines[d.lineNum].staff[d.staffNum].workingClef=B);for(var k=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum],$=0;$<k.length;$++){if(k[$].el_type==="note"||k[$].el_type==="bar"){B.el_type=C,B.startChar=x,B.endChar=S,P&&(B.accidentals=P.concat(B.accidentals)),k.push(B);return}if(k[$].el_type===C){B.el_type=C,B.startChar=x,B.endChar=S,P&&(B.accidentals=P.concat(B.accidentals)),k[$]=B;return}}d.lines[d.lineNum].staff[d.staffNum][C]=E}},this.pushLine=function(C){d.vskipPending&&(C.vskip=d.vskipPending,delete d.vskipPending),d.lines.push(C)},this.addSubtitle=function(C,x){this.pushLine({subtitle:{text:C,startChar:x.startChar,endChar:x.endChar}})},this.addSpacing=function(C){d.vskipPending=C},this.addNewPage=function(C){this.pushLine({newpage:C})},this.addSeparator=function(C,x,S,E){this.pushLine({separator:{spaceAbove:Math.round(C),spaceBelow:Math.round(x),lineLength:Math.round(S),startChar:E.startChar,endChar:E.endChar}})},this.addText=function(C,x){this.pushLine({text:{text:C,startChar:x.startChar,endChar:x.endChar}})},this.addCentered=function(C){this.pushLine({text:[{text:C,center:!0}]})},this.containsNotes=function(C){for(var x=0;x<C.length;x++)if(C[x].el_type==="note"||C[x].el_type==="bar")return!0;return!1},this.containsNotesStrict=function(C){for(var x=0;x<C.length;x++)if(C[x].el_type==="note"&&(C[x].rest===void 0||C[x].chord!==void 0))return!0;return!1},this.changeVoiceScale=function(C){b.appendElement("scale",null,null,{size:C})},this.changeVoiceColor=function(C){b.appendElement("color",null,null,{color:C})},this.startNewLine=function(C){var x=d;this.closeLine();var S=function(B){var k=x.lines[x.lineNum].staff[x.staffNum];if(k.voices[x.voiceNum]=[],k.title||(k.title=[]),k.title[x.voiceNum]={name:B.name,subname:B.subname},B.style&&b.appendElement("style",null,null,{head:B.style}),B.stem)b.appendElement("stem",null,null,{direction:B.stem});else if(x.voiceNum>0){if(k.voices[0]!==void 0){for(var $=!1,I=0;I<k.voices[0].length;I++)k.voices[0].el_type==="stem"&&($=!0);if(!$){var D={el_type:"stem",direction:"up"};k.voices[0].splice(0,0,D)}}b.appendElement("stem",null,null,{direction:"down"})}B.scale&&b.appendElement("scale",null,null,{size:B.scale}),B.color&&b.appendElement("color",null,null,{color:B.color})},E=function(B){B.key&&B.key.impliedNaturals&&(B.key.accidentals=B.key.accidentals.concat(B.key.impliedNaturals),delete B.key.impliedNaturals),x.lines[x.lineNum].staff[x.staffNum]={voices:[],clef:B.clef,key:B.key,workingClef:B.clef},B.stafflines!==void 0&&(x.lines[x.lineNum].staff[x.staffNum].clef.stafflines=B.stafflines,x.lines[x.lineNum].staff[x.staffNum].workingClef.stafflines=B.stafflines),B.staffscale&&(x.lines[x.lineNum].staff[x.staffNum].staffscale=B.staffscale),B.annotationfont&&b.setLineFont("annotationfont",B.annotationfont),B.gchordfont&&b.setLineFont("gchordfont",B.gchordfont),B.tripletfont&&b.setLineFont("tripletfont",B.tripletfont),B.vocalfont&&b.setLineFont("vocalfont",B.vocalfont),B.bracket&&(x.lines[x.lineNum].staff[x.staffNum].bracket=B.bracket),B.brace&&(x.lines[x.lineNum].staff[x.staffNum].brace=B.brace),B.connectBarLines&&(x.lines[x.lineNum].staff[x.staffNum].connectBarLines=B.connectBarLines),B.barNumber&&(x.lines[x.lineNum].staff[x.staffNum].barNumber=B.barNumber),S(B),B.part&&b.appendElement("part",B.part.startChar,B.part.endChar,{title:B.part.title}),B.meter!==void 0&&(x.lines[x.lineNum].staff[x.staffNum].meter=B.meter),x.vskipPending&&(x.lines[x.lineNum].vskip=x.vskipPending,delete x.vskipPending)},P=function(B){x.lines[x.lineNum]={staff:[]},E(B)};d.lines[d.lineNum]===void 0?P(C):d.lines[d.lineNum].staff===void 0?(d.lineNum++,this.startNewLine(C)):d.lines[d.lineNum].staff[d.staffNum]===void 0?E(C):d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum]===void 0?S(C):this.containsNotes(d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum])?(d.lineNum++,this.startNewLine(C)):C.part&&b.appendElement("part",C.part.startChar,C.part.endChar,{title:C.part.title})},this.setRunningFont=function(C,x){d.runningFonts[C]=x},this.setLineFont=function(C,x){if(d.runningFonts[C]){for(var S=!1,E=Object.keys(x),P=0;P<E.length;P++)d.runningFonts[C][E[P]]!==x[E[P]]&&(S=!0);S&&(d.lines[d.lineNum].staff[d.staffNum][C]=x)}d.runningFonts[C]=x},this.setBarNumberImmediate=function(C){var x=this.getCurrentVoice();if(x&&x.length>0){var S=x[x.length-1];if(S.el_type==="bar")S.barNumber!==void 0&&(S.barNumber=C);else return C-1}return C},this.hasBeginMusic=function(){for(var C=0;C<d.lines.length;C++)if(d.lines[C].staff)return!0;return!1},this.isFirstLine=function(C){for(var x=C-1;x>=0;x--)if(d.lines[x].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var C=d.lines[d.lineNum];if(!C)return null;var x=C.staff[d.staffNum];return x&&x.voices[d.voiceNum]!==void 0?x.voices[d.voiceNum]:null},this.setCurrentVoice=function(C,x){d.staffNum=C,d.voiceNum=x;for(var S=0;S<d.lines.length;S++)if(d.lines[S].staff&&(d.lines[S].staff[C]===void 0||d.lines[S].staff[C].voices[x]===void 0||!this.containsNotes(d.lines[S].staff[C].voices[x]))){d.lineNum=S;return}d.lineNum=S},this.addMetaText=function(C,x,S){d.metaText[C]===void 0?(d.metaText[C]=x,d.metaTextInfo[C]=S):(d.metaText[C]+="\n"+x,d.metaTextInfo[C].endChar=S.endChar)},this.addMetaTextArray=function(C,x,S){d.metaText[C]===void 0?(d.metaText[C]=[x],d.metaTextInfo[C]=S):(d.metaText[C].push(x),d.metaTextInfo[C].endChar=S.endChar)},this.addMetaTextObj=function(C,x,S){d.metaText[C]=x,d.metaTextInfo[C]=S}},tuneBuilder=TuneBuilder$1,parseCommon$4=abc_common,parseDirective=abc_parse_directive,ParseHeader=abc_parse_header,ParseMusic=abc_parse_music,Tokenizer=abc_tokenizer,wrap$2=wrap_lines,Tune=abc_tune,TuneBuilder=tuneBuilder,Parse$2=function(){var d=new Tune,b=new TuneBuilder(d),A,w="",C="";this.getTune=function(){var U={formatting:d.formatting,lines:d.lines,media:d.media,metaText:d.metaText,metaTextInfo:d.metaTextInfo,version:d.version,addElementToEvents:d.addElementToEvents,addUsefulCallbackInfo:d.addUsefulCallbackInfo,getTotalTime:d.getTotalTime,getTotalBeats:d.getTotalBeats,getBarLength:d.getBarLength,getBeatLength:d.getBeatLength,getBeatsPerMeasure:d.getBeatsPerMeasure,getBpm:d.getBpm,getMeter:d.getMeter,getMeterFraction:d.getMeterFraction,getPickupLength:d.getPickupLength,getKeySignature:d.getKeySignature,getElementFromChar:d.getElementFromChar,makeVoicesArray:d.makeVoicesArray,millisecondsPerMeasure:d.millisecondsPerMeasure,setupEvents:d.setupEvents,setTiming:d.setTiming,setUpAudio:d.setUpAudio,deline:d.deline};return d.lineBreaks&&(U.lineBreaks=d.lineBreaks),d.visualTranspose&&(U.visualTranspose=d.visualTranspose),U};function x(U,G,W){U.positioning||(U.positioning={}),U.positioning[G]=W}function S(U,G,W){U.fonts||(U.fonts={}),U.fonts[G]=W}var E={reset:function(){for(var U in this)this.hasOwnProperty(U)&&typeof this[U]!="function"&&delete this[U];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(U,G){return this[U].decoration!==G[U].decoration||this[U].face!==G[U].face||this[U].size!==G[U].size||this[U].style!==G[U].style||this[U].weight!==G[U].weight},addFormattingOptions:function(U,G,W){W==="note"?(this.vocalPosition!=="auto"&&x(U,"vocalPosition",this.vocalPosition),this.dynamicPosition!=="auto"&&x(U,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&x(U,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&x(U,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&x(U,"volumePosition",this.volumePosition),this.differentFont("annotationfont",G)&&S(U,"annotationfont",this.annotationfont),this.differentFont("gchordfont",G)&&S(U,"gchordfont",this.gchordfont),this.differentFont("vocalfont",G)&&S(U,"vocalfont",this.vocalfont),this.differentFont("tripletfont",G)&&S(U,"tripletfont",this.tripletfont)):W==="bar"&&(this.dynamicPosition!=="auto"&&x(U,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&x(U,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&x(U,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&x(U,"volumePosition",this.volumePosition),this.differentFont("measurefont",G)&&S(U,"measurefont",this.measurefont),this.differentFont("repeatfont",G)&&S(U,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var U=0;U<this.inTie.length;U++)if(this.endingHoldOver.inTie.push([]),this.inTie[U])for(var G=0;G<this.inTie[U].length;G++)this.endingHoldOver.inTie[U].push(this.inTie[U][G]);for(var W in this.inTieChord)this.inTieChord.hasOwnProperty(W)&&(this.endingHoldOver.inTieChord[W]=this.inTieChord[W])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var U=0;U<this.endingHoldOver.inTie.length;U++){this.inTie.push([]);for(var G=0;G<this.endingHoldOver.inTie[U].length;G++)this.inTie[U].push(this.endingHoldOver.inTie[U][G])}for(var W in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(W)&&(this.inTieChord[W]=this.endingHoldOver.inTieChord[W])}}},P=function(U){E.warnings||(E.warnings=[]),E.warnings.push(U)},B=function(U){E.warningObjects||(E.warningObjects=[]),E.warningObjects.push(U)},k=function(U){var G=U.replace(/\x12/g," ");return G=G.replace(/&/g,"&amp;"),G=G.replace(/</g,"&lt;"),G.replace(/>/g,"&gt;")},$=function(U,G,W){G||(G=" ");var K=G[W];(K===" "||!K)&&(K="SPACE");var X=k(G.substring(W-64,W))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+K+"</span>"+k(G.substring(W+1).substring(0,64));P("Music Line:"+A.lineIndex+":"+(W+1)+": "+U+": "+X),B({message:U,line:G,startChar:E.iChar+W,column:W})},I,D;this.getWarnings=function(){return E.warnings},this.getWarningObjects=function(){return E.warningObjects};var F=function(U,G){if(G.indexOf("")>=0){w+=G;return}if(G=w+G,w="",!U){$("Can't add words before the first line of music",U,0);return}G=parseCommon$4.strip(G),G[G.length-1]!=="-"&&(G=G+" ");for(var W=[],K=0,X=!1,Z=function(le){var de=parseCommon$4.strip(G.substring(K,le));if(de=de.replace(/\\([-_*|~])/g,"$1"),K=le+1,de.length>0){X&&(de=de.replace(/~/g," "));var me=G[le];return me!=="_"&&me!=="-"&&(me=" "),W.push({syllable:A.translateString(de),divider:me}),X=!1,!0}return!1},oe=!1,he=0;he<G.length;he++){switch(G[he]){case" ":case"":Z(he);break;case"-":!oe&&!Z(he)&&W.length>0&&(parseCommon$4.last(W).divider="-",W.push({skip:!0,to:"next"}));break;case"_":oe||(Z(he),W.push({skip:!0,to:"slur"}));break;case"*":oe||(Z(he),W.push({skip:!0,to:"next"}));break;case"|":oe||(Z(he),W.push({skip:!0,to:"bar"}));break;case"~":oe||(X=!0);break}oe=G[he]==="\\"}var J=!1;U.forEach(function(le){if(W.length!==0){if(W[0].skip){switch(W[0].to){case"next":le.el_type==="note"&&le.pitches!==null&&!J&&W.shift();break;case"slur":le.el_type==="note"&&le.pitches!==null&&W.shift();break;case"bar":le.el_type==="bar"&&W.shift();break}le.el_type!=="bar"&&(le.lyric===void 0?le.lyric=[{syllable:"",divider:" "}]:le.lyric.push({syllable:"",divider:" "}))}else if(le.el_type==="note"&&le.rest===void 0&&!J){var de=W.shift();de.syllable&&(de.syllable=de.syllable.replace(/ +/g," ")),le.lyric===void 0?le.lyric=[de]:le.lyric.push(de)}}})},z=function(U,G){if(G.indexOf("")>=0){C+=G;return}if(G=C+G,C="",!U){$("Can't add symbols before the first line of music",U,0);return}G=parseCommon$4.strip(G),G[G.length-1]!=="-"&&(G=G+" ");for(var W=[],K=0,X=!1,Z=function(J){var le=parseCommon$4.strip(G.substring(K,J));if(K=J+1,le.length>0){X&&(le=le.replace(/~/g," "));var de=G[J];return de!=="_"&&de!=="-"&&(de=" "),W.push({syllable:A.translateString(le),divider:de}),X=!1,!0}return!1},oe=0;oe<G.length;oe++)switch(G[oe]){case" ":case"":Z(oe);break;case"-":!Z(oe)&&W.length>0&&(parseCommon$4.last(W).divider="-",W.push({skip:!0,to:"next"}));break;case"_":Z(oe),W.push({skip:!0,to:"slur"});break;case"*":Z(oe),W.push({skip:!0,to:"next"});break;case"|":Z(oe),W.push({skip:!0,to:"bar"});break;case"~":X=!0;break}var he=!1;U.forEach(function(J){if(W.length!==0){if(W[0].skip)switch(W[0].to){case"next":J.el_type==="note"&&J.pitches!==null&&!he&&W.shift();break;case"slur":J.el_type==="note"&&J.pitches!==null&&W.shift();break;case"bar":J.el_type==="bar"&&W.shift();break}else if(J.el_type==="note"&&J.rest===void 0&&!he){var le=W.shift();J.lyric===void 0?J.lyric=[le]:J.lyric.push(le)}}})},L=function(U){if(parseCommon$4.startsWith(U,"%%")){var G=parseDirective.addDirective(U.substring(2));G&&$(G,U,2);return}var W=U.indexOf("%");if(W>=0&&(U=U.substring(0,W)),U=U.replace(/\s+$/,""),U.length!==0){if(w){F(b.getCurrentVoice(),U.substring(2));return}if(C){z(b.getCurrentVoice(),U.substring(2));return}if(U.length<2||U[1]!==":"||D.lineContinuation){D.parseMusic(U);return}var K=I.parseHeader(U);K.regular&&D.parseMusic(U),K.newline&&D.startNewLine(),K.words&&F(b.getCurrentVoice(),U.substring(2)),K.symbols&&z(b.getCurrentVoice(),U.substring(2))}};function H(U,G){U.push({el_type:"hint"});for(var W=0;W<G.length;W++){var K=G[W],X=parseCommon$4.clone(K);if(U.push(X),K.el_type==="bar")return}}function Q(U,G){for(var W=0;W<U.length;W++){var K=U[W],X=G[W];if(X)for(var Z=0;Z<X.voices.length;Z++){var oe=X.voices[Z],he=K.voices[Z];he&&H(he,oe)}}}function Y(){for(var U=0;U<d.lines.length;U++){var G=d.lines[U].staff;if(G){for(var W=U+1;W<d.lines.length&&d.lines[W].staff===void 0;)W++;if(W<d.lines.length){var K=d.lines[W].staff;Q(G,K)}}}}this.parse=function(U,G,W){G||(G={}),W||(W=0),d.reset(),U=U.replace(/\r\n?/g,"\n")+"\n";var K=U.split("\n\\");if(K.length>1){for(var X=1;X<K.length;X++)for(;K[X].length>0&&K[X][0]!=="\n";)K[X]=K[X].substr(1),K[X-1]+=" ";U=K.join(" ")}U=U.replace(/\\([ \t]*)(%.*)*\n/g,function(me,ne,re){var fe=re?Array(re.length+1).join(" "):"";return ne+""+fe+"\n"});var Z=U.split("\n");parseCommon$4.last(Z).length===0&&Z.pop(),A=new Tokenizer(Z,E),I=new ParseHeader(A,$,E,d,b),D=new ParseMusic(A,$,E,d,b,I),G.print&&(d.media="print"),E.reset(),E.iChar=W,G.visualTranspose?(E.globalTranspose=parseInt(G.visualTranspose),E.globalTranspose===0?E.globalTranspose=void 0:b.setVisualTranspose(G.visualTranspose)):E.globalTranspose=void 0,G.lineBreaks&&(E.lineBreaks=G.lineBreaks),I.reset(A,$,E,d);try{G.format&&parseDirective.globalFormatting(G.format);for(var oe=A.nextLine();oe;){if(G.header_only&&E.is_in_header===!1||G.stop_on_warning&&E.warnings)throw"normal_abort";var he=E.is_in_header;L(oe),he&&!E.is_in_header&&(b.setRunningFont("annotationfont",E.annotationfont),b.setRunningFont("gchordfont",E.gchordfont),b.setRunningFont("tripletfont",E.tripletfont),b.setRunningFont("vocalfont",E.vocalfont)),oe=A.nextLine()}w&&F(b.getCurrentVoice(),""),C&&z(b.getCurrentVoice(),""),E.openSlurs=b.cleanUp(E.barsperstaff,E.staffnonote,E.openSlurs)}catch(me){if(me!=="normal_abort")throw me}var J=11*72,le=8.5*72;switch(E.papersize){case"legal":J=14*72,le=8.5*72;break;case"A4":J=11.7*72,le=8.3*72;break}if(E.landscape){var de=J;J=le,le=de}d.formatting.pagewidth||(d.formatting.pagewidth=le),d.formatting.pageheight||(d.formatting.pageheight=J),G.hint_measures&&Y(),wrap$2.wrapLines(d,E.lineBreaks,E.barNumbers)}},abc_parse=Parse$2,parseCommon$3=abc_common,bookParser$1=function(d){var b="",A=d.match(/(\s*)/);d=parseCommon$3.strip(d);for(var w=d.split("\nX:"),C=1;C<w.length;C++)w[C]="X:"+w[C];var x=A?A[0].length:0,S=[];if(w.forEach(function(k){S.push({abc:k,startPos:x}),x+=k.length+1}),S.length>1&&!parseCommon$3.startsWith(S[0].abc,"X:")){var E=S.shift(),P=E.abc.split("\n");P.forEach(function(k){parseCommon$3.startsWith(k,"%%")&&(b+=k+"\n")})}var B=b;return S.forEach(function(k){var $=k.abc.indexOf("\n\n");$>0&&(k.abc=k.abc.substring(0,$)),k.pure=k.abc,k.abc=b+k.abc,k.title="";var I=k.pure.split("T:");I.length>1&&(I=I[1].split("\n"),k.title=parseCommon$3.strip(I[0]));var D=k.pure.substring(2,k.pure.indexOf("\n"));k.id=parseCommon$3.strip(D)}),{header:B,tunes:S}},abc_parse_book=bookParser$1;function StringTablature$2(d,b){this.numLines=d,this.lineSpace=b,this.verticalSize=this.numLines*this.lineSpace;var A=3;this.bar={pitch:A,pitch2:b*d,height:5}}StringTablature$2.prototype.bypass=function(d){var b=d.staffGroup.voices;return!!(b.length>0&&b[0].isPercussion)};StringTablature$2.prototype.setRelative=function(d,b,A){switch(d.type){case"bar":b.pitch=this.bar.pitch,b.pitch2=this.bar.pitch2,b.height=this.height;break;case"symbol":var w=this.bar.pitch2/2;if(d.name=="dots.dot")return A?(b.pitch=w,!1):(b.pitch=w+this.lineSpace,!0);break}return A};var stringTablature=StringTablature$2;function TabCommon$2(d,b,A){this.tune=d,this.params=A,this.tuneNumber=b,this.inError=!1}TabCommon$2.prototype.setError=function(d){var b=this.tune;d&&(this.error=d,this.inError=!0,b.warnings?b.warnings.push(d):b.warnings=[d])};var tabCommon=TabCommon$2,VoiceElement$3=function d(b,A){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=b,this.voicetotal=A,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};VoiceElement$3.prototype.addChild=function(d){if(d.type==="bar"){for(var b=!0,A=0;b&&A<this.children.length;A++)this.children[A].type.indexOf("staff-extra")<0&&this.children[A].type!=="tempo"&&(b=!1);b||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=d,this.setRange(d)};VoiceElement$3.prototype.setLimit=function(d,b){var A=b.specialY;A||(A=b),A[d]&&(this.specialY[d]?this.specialY[d]=Math.max(this.specialY[d],A[d]):this.specialY[d]=A[d])};VoiceElement$3.prototype.adjustRange=function(d){d.bottom!==void 0&&(this.bottom=Math.min(this.bottom,d.bottom)),d.top!==void 0&&(this.top=Math.max(this.top,d.top))};VoiceElement$3.prototype.setRange=function(d){this.adjustRange(d),this.setLimit("tempoHeightAbove",d),this.setLimit("partHeightAbove",d),this.setLimit("volumeHeightAbove",d),this.setLimit("dynamicHeightAbove",d),this.setLimit("endingHeightAbove",d),this.setLimit("chordHeightAbove",d),this.setLimit("lyricHeightAbove",d),this.setLimit("lyricHeightBelow",d),this.setLimit("chordHeightBelow",d),this.setLimit("volumeHeightBelow",d),this.setLimit("dynamicHeightBelow",d)};VoiceElement$3.prototype.addOther=function(d){this.otherchildren.push(d),this.setRange(d)};VoiceElement$3.prototype.addBeam=function(d){this.beams.push(d)};VoiceElement$3.prototype.setWidth=function(d){this.w=d};var voiceElement=VoiceElement$3,setClass$3=function(d,b,A,w){if(d)for(var C=0;C<d.length;C++){var x=d[C],S=x.getAttribute("highlight");S||(S="fill"),x.setAttribute(S,w);var E=x.getAttribute("class");E||(E=""),E=E.replace(A,""),E=E.replace(b,""),b.length>0&&(E.length>0&&E[E.length-1]!==" "&&(E+=" "),E+=b),x.setAttribute("class",E)}},setClass_1=setClass$3,setClass$2=setClass_1,highlight$2=function(d,b){d===void 0&&(d="abcjs-note_selected"),b===void 0&&(b="#ff0000"),setClass$2(this.elemset,d,"",b)},highlight_1=highlight$2,setClass$1=setClass_1,unhighlight$2=function(d,b){d===void 0&&(d="abcjs-note_selected"),b===void 0&&(b="#000000"),setClass$1(this.elemset,"",d,b)},unhighlight_1=unhighlight$2,highlight$1=highlight_1,unhighlight$1=unhighlight_1,AbsoluteElement$6=function d(b,A,w,C,x,S){S||(S={}),this.tuneNumber=x,this.abcelem=b,this.duration=A,this.durationClass=S.durationClassOveride?S.durationClassOveride:this.duration,this.minspacing=w||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=C,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};AbsoluteElement$6.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}};AbsoluteElement$6.prototype.addExtra=function(d){this.fixed.w=Math.max(this.fixed.w,d.dx+d.w),this.fixed.t===void 0?this.fixed.t=d.top:this.fixed.t=Math.max(this.fixed.t,d.top),this.fixed.b===void 0?this.fixed.b=d.bottom:this.fixed.b=Math.min(this.fixed.b,d.bottom),d.dx<this.extraw&&(this.extraw=d.dx),this.extra[this.extra.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.addHead=function(d){d.dx<this.extraw&&(this.extraw=d.dx),this.heads[this.heads.length]=d,this.addRight(d)};AbsoluteElement$6.prototype.addRight=function(d){this.fixed.w=Math.max(this.fixed.w,d.dx+d.w),d.top!==void 0&&(this.fixed.t===void 0?this.fixed.t=d.top:this.fixed.t=Math.max(this.fixed.t,d.top)),d.bottom!==void 0&&(this.fixed.b===void 0?this.fixed.b=d.bottom:this.fixed.b=Math.min(this.fixed.b,d.bottom)),d.dx+d.w>this.w&&(this.w=d.dx+d.w),this.right[this.right.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.addFixed=function(d){this._addChild(d)};AbsoluteElement$6.prototype.addFixedX=function(d){this._addChild(d)};AbsoluteElement$6.prototype.addCentered=function(d){var b=d.w/2;-b<this.extraw&&(this.extraw=-b),this.extra[this.extra.length]=d,d.dx+b>this.w&&(this.w=d.dx+b),this.right[this.right.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.setLimit=function(d,b){b[d]&&(this.specialY[d]?this.specialY[d]=Math.max(this.specialY[d],b[d]):this.specialY[d]=b[d])};AbsoluteElement$6.prototype._addChild=function(d){d.parent=this,this.children[this.children.length]=d,this.pushTop(d.top),this.pushBottom(d.bottom),this.setLimit("tempoHeightAbove",d),this.setLimit("partHeightAbove",d),this.setLimit("volumeHeightAbove",d),this.setLimit("dynamicHeightAbove",d),this.setLimit("endingHeightAbove",d),this.setLimit("chordHeightAbove",d),this.setLimit("lyricHeightAbove",d),this.setLimit("lyricHeightBelow",d),this.setLimit("chordHeightBelow",d),this.setLimit("volumeHeightBelow",d),this.setLimit("dynamicHeightBelow",d)};AbsoluteElement$6.prototype.pushTop=function(d){d!==void 0&&(this.top===void 0?this.top=d:this.top=Math.max(d,this.top))};AbsoluteElement$6.prototype.pushBottom=function(d){d!==void 0&&(this.bottom===void 0?this.bottom=d:this.bottom=Math.min(d,this.bottom))};AbsoluteElement$6.prototype.setX=function(d){this.x=d;for(var b=0;b<this.children.length;b++)this.children[b].setX(d)};AbsoluteElement$6.prototype.center=function(d,b){var A=(b.x-d.x)/2+d.x;this.x=A-this.w/2;for(var w=0;w<this.children.length;w++)this.children[w].setX(this.x)};AbsoluteElement$6.prototype.setHint=function(){this.hint=!0};AbsoluteElement$6.prototype.highlight=function(d,b){highlight$1.bind(this)(d,b)};AbsoluteElement$6.prototype.unhighlight=function(d,b){unhighlight$1.bind(this)(d,b)};var absoluteElement=AbsoluteElement$6,RelativeElement$a=function d(b,A,w,C,x){switch(x=x||{},this.x=0,this.c=b,this.dx=A,this.w=w,this.pitch=C,this.scalex=x.scalex||1,this.scaley=x.scaley||1,this.type=x.type||"symbol",this.pitch2=x.pitch2,this.linewidth=x.linewidth,this.klass=x.klass,this.anchor=x.anchor?x.anchor:"middle",this.top=C,this.pitch2!==void 0&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=C,this.pitch2!==void 0&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),x.thickness&&(this.top+=x.thickness/2,this.bottom-=x.thickness/2),x.stemHeight&&(x.stemHeight>0?this.top+=x.stemHeight:this.bottom+=x.stemHeight),x.dim&&(this.dim=x.dim),x.position&&(this.position=x.position),this.height=x.height?x.height:4,x.top&&(this.top=x.top),x.bottom&&(this.bottom=x.bottom),x.name?this.name=x.name:this.c?this.name=this.c:this.name=this.type,x.realWidth?this.realWidth=x.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":x.position&&x.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":x.position&&x.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?x.position&&x.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height;break}};RelativeElement$a.prototype.getChordDim=function(){if(this.type==="debug"||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var d=0,b=this.type==="chord"?this.realWidth/2:0,A=this.x-b-d,w=A+this.realWidth+d;return{left:A,right:w}};RelativeElement$a.prototype.invertLane=function(d){this.lane===void 0&&(this.lane=0),this.lane=d-this.lane-1};RelativeElement$a.prototype.putChordInLane=function(d){this.lane=d,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane};RelativeElement$a.prototype.getLane=function(){return this.lane===void 0?0:this.lane};RelativeElement$a.prototype.setX=function(d){this.x=d+this.dx};var relativeElement=RelativeElement$a,AbsoluteElement$5=absoluteElement,RelativeElement$9=relativeElement;function isObject(d){return d!=null&&d.constructor===Object}function cloneObject(d,b){for(var A in b)b.hasOwnProperty(A)&&(Array.isArray(b[A])||isObject(b[A])||(d[A]=b[A]))}function cloneAbsolute(d){var b=new AbsoluteElement$5("",0,0,"",0);return cloneObject(b,d),b.top=0,b.bottom=-1,d.abcelem&&(b.abcelem={},cloneObject(b.abcelem,d.abcelem),b.abcelem.el_type==="note"&&(b.abcelem.el_type="tabNumber")),d.cloned=b,b}function cloneAbsoluteAndRelatives(d,b){var A=cloneAbsolute(d);if(b)for(var w=d.children,C=!0,x=0;x<w.length;x++){var S=w[x],E=new RelativeElement$9("",0,0,0,"");cloneObject(E,S),C=b.tablature.setRelative(S,E,C),A.children.push(E)}return A}function buildTabAbsolute(d,b,A){var w="tab.tiny",C=7.5;d.isTabBig&&(w="tab.big",C=10);var x={el_type:"tab",icon:w,Ypos:C},S=new AbsoluteElement$5(x,0,0,"symbol",0);S.x=b;var E=new RelativeElement$9(w,0,0,7.5,"tab");return E.x=A,S.children.push(E),S.abcelem.el_type=="tab"&&(E.pitch=C),S}function lyricsDim(d){if(d.extra)for(var b=0;b<d.extra.length;b++){var A=d.extra[b];if(A.type=="lyric")return{bottom:A.bottom,height:A.height}}return null}function TabAbsoluteElements$1(){this.accidentals=null}function getInitialStaffSize(d){for(var b=0,A=0;A<d.length;A++)d[A].tabNameInfos||b++;return b}function buildRelativeTabNote(d,b,A,w,C){var x=w.num;w.note.quarter!=null&&(x=x.toString(),x+=w.note.quarter);var S=d.semantics.stringToPitch(w.str);A.notes.push({num:x,str:w.str,pitch:w.note.emit()});var E={type:"tabNumber"},P=new RelativeElement$9(x,0,0,S+.3,E);return P.x=b,P.isGrace=C,P.isAltered=w.note.isAltered,P}function getXGrace(d,b){var A=0;if(d.extra){for(var w=0;w<d.extra.length;w++)if(d.extra[w].c.indexOf("noteheads")>=0){if(A===b)return d.extra[w].x+d.extra[w].w/2;A++}}return-1}function graceInRest(d){if(d.abcelem){var b=d.abcelem;if(b.rest)return b.gracenotes}return null}function convertToNumber(d,b,A){var w=d.semantics.notesToNumber(b,A);if(w.error)return d._super.setError(w.error),w;if(w.graces&&w.notes){var C=w.notes.length-1;w.notes[C].graces=w.graces}return w}function buildGraceRelativesForRest(d,b,A,w,C){for(var x=0;x<w.length;x++){var S={el_type:"note",startChar:A.abcelem.startChar,endChar:A.abcelem.endChar,notes:[],grace:!0},E=getXGrace(A,x),P=w[x],B=buildRelativeTabNote(d,E,S,P,!0);b.children.push(B),C.push(S)}}TabAbsoluteElements$1.prototype.build=function(d,b,A,w,C,x){var S=getInitialStaffSize(b),E=b[C+w],P=b[S+C+w],B=null,k=null;E.children[0].abcelem.el_type!="clef"&&x!="none"&&E.children.splice(0,0,x);for(var $=0;$<E.children.length;$++){var I=E.children[$],D=I.x,F=D;switch(I.isClef&&(P.children.push(buildTabAbsolute(d,D,F)),I.abcelem.type.indexOf("-8")>=0&&(d.semantics.strings.clefTranspose=-12),I.abcelem.type.indexOf("+8")>=0&&(d.semantics.strings.clefTranspose=12)),I.type){case"staff-extra key-signature":this.accidentals=I.abcelem.accidentals,d.semantics.strings.accidentals=this.accidentals;break;case"bar":d.semantics.strings.measureAccidentals={};var z=!1;$===E.children.length-1&&(z=!0);var L=cloneAbsoluteAndRelatives(I,d);if(L.abcelem.barNumber){delete L.abcelem.barNumber;for(var H=0;H<L.children.length;H++)if(L.children[H].type==="barNumber"){L.children.splice(H,1);break}}L.abcelem.lastBar=z,P.children.push(L),A.push({el_type:I.abcelem.el_type,type:I.abcelem.type,endChar:I.abcelem.endChar,startChar:I.abcelem.startChar,abselem:L});break;case"rest":var Q=graceInRest(I);if(Q){if(B=convertToNumber(d,null,Q),B.error)return;oe={el_type:"note",startChar:I.abcelem.startChar,endChar:I.abcelem.endChar,notes:[],grace:!0},buildGraceRelativesForRest(d,Y,I,B.graces,A)}break;case"note":var Y=cloneAbsolute(I);Y.x=I.heads[0].x+I.heads[0].w/2,Y.lyricDim=lyricsDim(I);var U=I.abcelem.pitches,G=I.abcelem.gracenotes;if(Y.type="tabNumber",B=convertToNumber(d,U,G),B.error)return;if(B.graces){var W=B.notes.length-1;B.notes[W].graces=B.graces}k={el_type:"note",startChar:I.abcelem.startChar,endChar:I.abcelem.endChar,notes:[]};for(var K=0;K<B.notes.length;K++){var X=B.notes[K];if(X.graces)for(var Z=0;Z<X.graces.length;Z++){var oe={el_type:"note",startChar:I.abcelem.startChar,endChar:I.abcelem.endChar,notes:[],grace:!0},he=getXGrace(I,Z),J=X.graces[Z],le=buildRelativeTabNote(d,he,oe,J,!0);Y.children.push(le),A.push(oe)}var de=buildRelativeTabNote(d,Y.x+I.heads[K].dx,k,X,!1);Y.children.push(de)}k.notes.length>0&&(k.abselem=Y,A.push(k),P.children.push(Y));break}}};var tabAbsoluteElements=TabAbsoluteElements$1,VoiceElement$2=voiceElement,TabAbsoluteElements=tabAbsoluteElements,spacing$c=spacing_1;function initSpecialY(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function getLyricHeight(d){for(var b=0,A=0;A<d.children.length;A++){var w=d.children[A];w.specialY&&w.specialY.lyricHeightBelow>b&&(b=w.specialY.lyricHeightBelow)}return b}function buildTabName(d,b){var A=d.plugin.semantics.strings,w=d.renderer.controller,C=w.getTextSize,x=A.tabInfos(d.plugin),S=C.calc(x,"tablabelfont","text instrumentname");return b.tabNameInfos={textSize:S,name:x},S.height}function TabRenderer$2(d,b,A,w){this.renderer=b,this.plugin=d,this.line=A,this.absolutes=new TabAbsoluteElements,this.staffIndex=w,this.tabStaff={clef:{type:"TAB"}},this.tabSize=d.linePitch*d.nbLines}function islastTabInStaff(d,b){return b[d].isTabStaff?d===b.length-1?!0:!b[d+1].isTabStaff:!1}function getStaffNumbers(d){for(var b=0,A=0;A<d.length;A++)d[A].isTabStaff||b++;return b}function getParentStaffIndex(d,b){for(var A=b;A>=0;A--)if(!d[A].isTabStaff)return A;return-1}function linkStaffAndTabs(d){for(var b=0;b<d.length;b++)if(d[b].isTabStaff){var A=getParentStaffIndex(d,b);d[b].hasStaff=d[A],d[A].hasTab||(d[A].hasTab=[]),d[A].hasTab.push(d[b])}}function isMultiVoiceSingleStaff(d,b){return getStaffNumbers(d)===1&&b.voices.length>1}function getNextTabPos(d,b){for(var A=d.staffIndex,w=0,C=0,x=!0,S=0;x;){if(!b[w])return-1;if(b[w].isTabStaff||(S=b[w].voices.length),b[w].isTabStaff){if(C++,islastTabInStaff(w,b)&&C<S)return w+1}else if(C=0,w>=A&&(w+1==b.length||!b[w+1].isTabStaff))return w+1;if(w++,w>b.length)return-1}}function getLastStaff(d,b){for(var A=b;A>=0;A--)if(!d[A].isTabStaff)return d[A];return null}function checkVoiceKeySig(d,b){var A=d[b],w=A.children[0].abcelem;return w.el_type==="clef"?null:b==0?"none":d[b-1].children[0]}TabRenderer$2.prototype.doLayout=function(){var d=this.line.staff;if(d){var b=d[0];if(b&&b.clef&&b.clef.stafflines==0){this.plugin._super.setError("No tablatures when stafflines=0");return}d.splice(d.length,0,this.tabStaff)}var A=this.line.staffGroup,w=A.voices,C=w[0],x=getLyricHeight(C),S=3,E=this.staffIndex,P=A.staffs[E],B=this.tabSize+S-P.bottom-x;P.isTabStaff&&(B=P.top);var k={bottom:-1,isTabStaff:!0,specialY:initSpecialY(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:B},$=getNextTabPos(this,A.staffs);if($!==-1){k.parentIndex=$-1,A.staffs.splice($,0,k),A.height+=this.tabSize+S;var I=getLastStaff(A.staffs,$),D=1;isMultiVoiceSingleStaff(A.staffs,I)&&(D=I.voices.length),this.tabStaff.voices=[];for(var F=0;F<D;F++){var z=new VoiceElement$2(0,0);F>0&&(z.duplicate=!0);var L=buildTabName(this,z)/spacing$c.STEP;L=Math.max(L,1),A.staffs[this.staffIndex].top+=L,A.height+=L*spacing$c.STEP,z.staff=k,w.splice(w.length,0,z);var H=checkVoiceKeySig(w,F+this.staffIndex);this.tabStaff.voices[F]=[],this.absolutes.build(this.plugin,w,this.tabStaff.voices[F],F,this.staffIndex,H)}linkStaffAndTabs(A.staffs)}};var tabRenderer=TabRenderer$2,accidentals={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},notesInOrder=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];function noteToMidi$2(d){var b=d.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(b&&b.length===5){var A=accidentals[b[1]],w=notesInOrder.indexOf(b[2]),C=b[4].length-b[3].length;return 48+w+A+C*12}return 0}function midiToNote$1(d){d=parseInt(d,10);var b=Math.floor(d/12),A=d%12,w=notesInOrder[A];if(w==="-"&&(w="^"+notesInOrder[A-1]),b>4)for(w=w.toLowerCase(),b-=5;b>0;)w+="'",b--;else for(;b<4;)w+=",",b++;return w}var noteToMidi_1={noteToMidi:noteToMidi$2,midiToNote:midiToNote$1},{noteToMidi:noteToMidi$1,midiToNote}=noteToMidi_1,notes$1=["A","B","C","D","E","F","G"];function TabNote$2(d,b){var A=noteToMidi$1(d);b&&(A+=b);var w=midiToNote(A),C=!1,x=!1,S=!1,E=null,P=null,B=!1,k=0;d.startsWith("_")?(C=!0,k=-1,d[1]=="/"?(C=!1,P="v",k=0):d[1]=="_"&&(B=!0,k-=1)):d.startsWith("^")?(x=!0,k=1,d[1]=="/"?(x=!1,P="^",k=0):d[1]=="^"&&(B=!0,k+=1)):d.startsWith("=")&&(E=!0,k=0),S=C||x||P!=null,(S||E)&&(P!=null||B?w=d.slice(2):w=d.slice(1));var $=(w.match(/,/g)||[]).length,I=(w.match(/'/g)||[]).length;this.pitch=A,this.pitchAltered=0,this.name=w,this.acc=k,this.isSharp=x,this.isKeySharp=!1,this.isDouble=B,this.isAltered=S,this.isFlat=C,this.isKeyFlat=!1,this.natural=E,this.quarter=P,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=$,this.isQuoted=I}function cloneNote(d){var b=d.name,A=new TabNote$2(b);return A.pitch=d.pitch,A.hasComma=d.hasComma,A.isLower=d.isLower,A.isQuoted=d.isQuoted,A.isSharp=d.isSharp,A.isKeySharp=d.isKeySharp,A.isFlat=d.isFlat,A.isKeyFlat=d.isKeyFlat,A}TabNote$2.prototype.sameNoteAs=function(d){return d.pitch===this.pitch};TabNote$2.prototype.isLowerThan=function(d){return d.pitch>this.pitch};TabNote$2.prototype.checkKeyAccidentals=function(d,b){if(!(this.isAltered||this.natural)){if(b[this.name.toUpperCase()])switch(b[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(d)for(var A=this.name,w=0;w<d.length;w++){var C=d[w];A==C.note.toUpperCase()&&(C.acc=="flat"&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),C.acc=="sharp"&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}}};TabNote$2.prototype.getAccidentalEquiv=function(){var d=cloneNote(this);return d.isSharp||d.isKeySharp?(d=d.nextNote(),d.isFlat=!0,d.isSharp=!1,d.isKeySharp=!1):(d.isFlat||d.isKeyFlat)&&(d=d.prevNote(),d.isSharp=!0,d.isFlat=!1,d.isKeyFlat=!1),d};TabNote$2.prototype.nextNote=function(){var d=midiToNote(this.pitch+1+this.pitchAltered);return new TabNote$2(d)};TabNote$2.prototype.prevNote=function(){var d=midiToNote(this.pitch-1+this.pitchAltered);return new TabNote$2(d)};TabNote$2.prototype.emitNoAccidentals=function(){var d=this.name;this.isLower&&(d=d.toLowerCase());for(var b=0;b<this.isQuoted;b++)d+="'";for(var A=0;A<this.hasComma;A++)d+=",";return d};TabNote$2.prototype.emit=function(){var d=this.name;(this.isSharp||this.isKeySharp)&&(d="^"+d,this.isDouble&&(d="^"+d)),(this.isFlat||this.isKeyFlat)&&(d="_"+d,this.isDouble&&(d="_"+d)),this.quarter&&(this.quarter=="^"?d="^/"+d:d="_/"+d),this.natural&&(d="="+d);for(var b=1;b<=this.hasComma;b++)d+=",";if(this.isLower){d=d.toLowerCase();for(var A=1;A<=this.isQuoted;A++)d+="'"}return d};var tabNote={TabNote:TabNote$2,notes:notes$1},TabNote$1=tabNote,notes=TabNote$1.notes;function TabNotes$1(d,b){this.fromN=new TabNote$1.TabNote(d),this.toN=new TabNote$1.TabNote(b)}TabNotes$1.prototype.build=function(){var d=this.fromN,b=this.toN;if(b.isLowerThan(d)){var A=d.emit(),w=b.emit();return{error:"Invalid string Instrument tuning : "+w+" string lower than "+A+" string"}}var C=[],x=notes.indexOf(d.name),S=notes.indexOf(b.name);if(x==-1||S==-1)return C;for(var E=!1;!E;)C.push(d.emit()),d=d.nextNote(),d.sameNoteAs(b)&&(E=!0);return C};var tabNotes=TabNotes$1;const{noteToMidi}=noteToMidi_1;var TabNote=tabNote,TabNotes=tabNotes;function buildCapo(d){var b=null,A=d.tuning;if(d.capo>0){b=[];for(var w=0;w<A.length;w++){for(var C=new TabNote.TabNote(A[w]),x=0;x<d.capo;x++)C=C.nextNote();b[w]=C.emit()}}return b}function buildPatterns(d){var b=[],A=d.tuning;d.capo>0&&(A=d.capoTuning);for(var w=A.length-1,C=0;C<A.length;C++){var x=d.highestNote;C!=A.length-1&&(x=A[C+1]);var S=new TabNotes(A[C],x),E=S.build();if(E.error)return E;b[w--]=E}return b}function buildSecond(d){var b=[];b[0]=[];for(var A=d.strings,w=1;w<A.length;w++)b[w]=A[w-1];return b}function sameString(d,b){for(var A=0;A<b.length-1;A++){var w=b[A],C=b[A+1];if(w.str==C.str){if(w.str==d.strings.length-1){w.num="?",C.num="?";return}C.num<w.num?(C.str++,C=noteToNumber(d,C.note,C.str,d.secondPos,d.strings[C.str].length)):(w.str++,w=noteToNumber(d,w.note,w.str,d.secondPos,d.strings[w.str].length)),b[A]=w,b[A+1]=C}}return null}function handleChordNotes(d,b){for(var A=[],w=0;w<b.length;w++)if(!b[w].endTie){var C=new TabNote.TabNote(b[w].name,d.clefTranspose);C.checkKeyAccidentals(d.accidentals,d.measureAccidentals);var x=toNumber$1(d,C);A.push(x)}return sameString(d,A),A}function noteToNumber(d,b,A,w,C){var x=d.strings;b.checkKeyAccidentals(d.accidentals,d.measureAccidentals),w&&(x=w);var S=b.emitNoAccidentals(),E=x[A].indexOf(S),P=b.acc;if(E!=-1){if(w&&(E+=C),(b.isFlat||b.acc==-1)&&E==0){var B=b.getAccidentalEquiv();A++,E=x[A].indexOf(B.emit()),P=0}return{num:E+P,str:A,note:b}}return null}function toNumber$1(d,b){if(b.isAltered||b.natural){var A;b.isFlat?b.isDouble?A="__":A="_":b.isSharp?b.isDouble?A="^^":A="^":b.natural&&(A="="),d.measureAccidentals[b.name.toUpperCase()]=A}for(var w=d.stringPitches.length-1;w>=0;w--)if(b.pitch+b.pitchAltered>=d.stringPitches[w]){var C=b.pitch+b.pitchAltered-d.stringPitches[w];return b.quarter==="^"?C-=.5:b.quarter==="v"&&(C+=.5),{num:Math.round(C),str:d.stringPitches.length-1-w,note:b}}return{num:"?",str:d.stringPitches.length-1,note:b}}StringPatterns$2.prototype.stringToPitch=function(d){var b=5.3,A=this.strings.length-1;return b+(A-d)*this.linePitch};function invalidNumber(d,b){var A={num:"?",str:0,note:b};d.push(A),d.error=b.emit()+": unexpected note for instrument"}StringPatterns$2.prototype.notesToNumber=function(d,b){var A,w,C=null,x=null;if(d&&(x=[],d.length>1?(x=handleChordNotes(this,d),x.error&&(C=x.error)):d[0].endTie||(A=new TabNote.TabNote(d[0].name,this.clefTranspose),A.checkKeyAccidentals(this.accidentals,this.measureAccidentals),w=toNumber$1(this,A),w?x.push(w):(invalidNumber(x,A),C=x.error))),C)return x;var S=null;if(b){S=[];for(var E=0;E<b.length;E++)A=new TabNote.TabNote(b[E].name,this.clefTranspose),A.checkKeyAccidentals(this.accidentals,this.measureAccidentals),w=toNumber$1(this,A),w?S.push(w):(invalidNumber(S,A),C=x.error)}return{notes:x,graces:S,error:C}};StringPatterns$2.prototype.toString=function(){for(var d=[],b=0;b<this.tuning.length;b++){var A=this.tuning[b].replaceAll(",","").replaceAll("'","").toUpperCase();A[0]==="_"?A=A[1]+"b ":A[0]==="^"&&(A=A[1]+"# "),d.push(A)}return d.join("")};StringPatterns$2.prototype.tabInfos=function(d){var b=d._super,A=b.params.label;if(A){var w=A.indexOf("%T"),C="";return w!=-1&&(C=this.toString(),d.capo>0&&(C+=" capo:"+d.capo),A=A.replace("%T",C)),A}return""};function StringPatterns$2(d){var b=d.tuning,A=d.capo,w=d._super.params.highestNote;this.linePitch=d.linePitch,this.highestNote="a'",w&&(this.highestNote=w),this.measureAccidentals={},this.capo=0,A&&(this.capo=parseInt(A,10)),this.transpose=d.transpose?d.transpose:0,this.tuning=b,this.stringPitches=[];for(var C=0;C<this.tuning.length;C++){var x=noteToMidi(this.tuning[C])+this.capo;this.stringPitches.push(x)}if(this.capo>0&&(this.capoTuning=buildCapo(this)),this.strings=buildPatterns(this),this.strings.error){d._super.setError(this.strings.error),d.inError=!0;return}this.secondPos=buildSecond(this)}var stringPatterns=StringPatterns$2,StringPatterns$1=stringPatterns;function ViolinPatterns$1(d){this.tuning=d._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),d.tuning=this.tuning,this.strings=new StringPatterns$1(d)}ViolinPatterns$1.prototype.notesToNumber=function(d,b){var A=this.strings;return A.notesToNumber(d,b)};ViolinPatterns$1.prototype.stringToPitch=function(d){var b=this.strings;return b.stringToPitch(d)};var violinPatterns=ViolinPatterns$1,StringTablature$1=stringTablature,TabCommon$1=tabCommon,TabRenderer$1=tabRenderer,ViolinPatterns=violinPatterns;Plugin$1.prototype.init=function(d,b,A){var w=new TabCommon$1(d,b,A);this.abcTune=d,this._super=w,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=A.capo,this.transpose=A.visualTranspose,this.tablature=new StringTablature$1(this.nbLines,this.linePitch);var C=new ViolinPatterns(this);this.semantics=C};Plugin$1.prototype.render=function(d,b,A){if(!this._super.inError&&!this.tablature.bypass(b)){var w=new TabRenderer$1(this,d,b,A);w.doLayout()}};function Plugin$1(){}var AbcViolinTab=function(){return{name:"ViolinTab",tablature:Plugin$1}},tabViolin=AbcViolinTab,StringPatterns=stringPatterns;function GuitarPatterns$1(d){this.tuning=d._super.params.tuning,this.tuning||(this.tuning=["E,","A,","D","G","B","e"]),d.tuning=this.tuning,this.strings=new StringPatterns(d)}GuitarPatterns$1.prototype.notesToNumber=function(d,b){var A=this.strings;return A.notesToNumber(d,b)};GuitarPatterns$1.prototype.stringToPitch=function(d){var b=this.strings;return b.stringToPitch(d)};var guitarPatterns=GuitarPatterns$1,StringTablature=stringTablature,TabCommon=tabCommon,TabRenderer=tabRenderer,GuitarPatterns=guitarPatterns;Plugin.prototype.init=function(d,b,A){var w=new TabCommon(d,b,A);this._super=w,this.abcTune=d,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=A.capo,this.transpose=A.visualTranspose,this.tablature=new StringTablature(this.nbLines,this.linePitch);var C=new GuitarPatterns(this);this.semantics=C};Plugin.prototype.render=function(d,b,A){if(!this._super.inError&&!this.tablature.bypass(b)){var w=new TabRenderer(this,d,b,A);w.doLayout()}};function Plugin(){}var AbcGuitarTab=function(){return{name:"GuitarTab",tablature:Plugin}},tabGuitar=AbcGuitarTab,ViolinTablature=tabViolin,GuitarTablature=tabGuitar,pluginTab={violin:"ViolinTab",fiddle:"ViolinTab",mandolin:"ViolinTab",guitar:"GuitarTab"},abcTablatures={inited:!1,plugins:{},register:function(d){var b=d.name,A=d.tablature;this.plugins[b]=A},setError:function(d,b){d.warnings?d.warning.push(b):d.warnings=[b]},preparePlugins:function(d,b,A){var w=null;if(A.tablature){var C=A.tablature;w=[];for(var x=0;x<C.length;x++){var S=C[x],E=S.instrument;if(E==null)return this.setError(d,"tablature 'instrument' is missing"),w;var P=pluginTab[E],B=null;if(P&&(B=this.plugins[P]),B){A.visualTranspose!=0&&(S.visualTranspose=A.visualTranspose),S.abcSrc=A.tablature.abcSrc;var k={classz:B,tuneNumber:b,params:S,instance:null};w.push(k)}else return this.setError(d,"Undefined tablature plugin: "+E),w}}return w},layoutTablatures:function(d,b){for(var A=b.tablatures,w=0;w<b.lines.length;w++){var C=b.lines[w],x=C.staff;if(x){for(var S=0;S<x.length;S++)if(A[S]){var E=A[S];E.instance==null&&(E.instance=new E.classz,E.instance.init(b,E.tuneNumber,E.params,S)),E.instance.render(d,C,S)}}}},init:function(){this.inited||(this.register(new ViolinTablature),this.register(new GuitarTablature),this.inited=!0)}},abc_tablatures=abcTablatures,Parse$1=abc_parse,bookParser=abc_parse_book,tablatures$1=abc_tablatures,tunebook$2={};(function(){tunebook$2.numberOfTunes=function(b){var A=b.split("\nX:"),w=A.length;return w===0&&(w=1),w};var d=tunebook$2.TuneBook=function(b){var A=bookParser(b);this.header=A.header,this.tunes=A.tunes};d.prototype.getTuneById=function(b){for(var A=0;A<this.tunes.length;A++)if(this.tunes[A].id===""+b)return this.tunes[A];return null},d.prototype.getTuneByTitle=function(b){for(var A=0;A<this.tunes.length;A++)if(this.tunes[A].title===b)return this.tunes[A];return null},tunebook$2.parseOnly=function(b,A){for(var w=tunebook$2.numberOfTunes(b),C=[],x=0;x<w;x++)C.push(1);function S(){}return tunebook$2.renderEngine(S,C,b,A)},tunebook$2.renderEngine=function(b,A,w,C){var x=[],S=function(z){return z&&!z.propertyIsEnumerable("length")&&typeof z=="object"&&typeof z.length=="number"};if(!(A===void 0||w===void 0)){S(A)||(A=[A]),C===void 0&&(C={});for(var E=C.startingTune?parseInt(C.startingTune,10):0,P=new d(w),B=new Parse$1,k=0;k<A.length;k++){var $=A[k];if($==="*"||typeof $=="string"&&($=document.getElementById($)),$)if(E>=0&&E<P.tunes.length){B.parse(P.tunes[E].abc,C,P.tunes[E].startPos-P.header.length);var I=B.getTune();C.tablature&&(tablatures$1.init(),I.tablatures=tablatures$1.preparePlugins(I,E,C));var D=B.getWarnings();D&&(I.warnings=D);var F=b($,I,k,P.tunes[E].abc);x.push(F||I)}else $.innerHTML&&($.innerHTML="");E++}return x}},tunebook$2.extractMeasures=function(b){for(var A=[],w=new d(b),C=0;C<w.tunes.length;C++){for(var x=w.tunes[C],S=x.abc.split("K:"),E=S[1].split("\n"),P=S[0]+"K:"+E[0]+"\n",B=null,k=null,$=null,I=[],D=!1,F=tunebook$2.parseOnly(x.abc)[0],z=F.getPickupLength()>0,L=0;L<F.lines.length;L++){var H=F.lines[L];if(H.staff)for(var Q=0;Q<1;Q++)for(var Y=H.staff[Q],U=0;U<1;U++)for(var G=Y.voices[U],W=0;W<G.length;W++){var K=G[W];if($===null&&K.startChar>=0&&($=K.startChar,K.chord===void 0?k=B:k=null),K.chord&&(B=K),K.el_type==="bar"){if(D){var X=x.abc.substring($,K.endChar),Z={abc:X};B=k&&k.chord&&k.chord.length>0?k.chord[0].name:null,B&&(Z.lastChord=B),K.startEnding&&(Z.startEnding=K.startEnding),K.endEnding&&(Z.endEnding=K.endEnding),I.push(Z),$=null,D=!1}}else K.el_type==="note"&&(D=!0)}}A.push({header:P,measures:I,hasPickup:z})}return A}})();var abc_tunebook=tunebook$2,keyAccidentals=keyAccidentals_1,{relativeMajor,transposeKey,relativeMode}=relativeMajor_1,transposeChordName=transposeChord,strTranspose$1;(function(){strTranspose$1=function(Y,U,G){if(U==="TEST")return{keyAccidentals,relativeMajor,transposeKey,relativeMode,transposeChordName};G=parseInt(G,10);var W=[],K;for(K=0;K<U.length;K++)W=W.concat(d(Y,U[K],G));W=W.sort(function(oe,he){return he.start-oe.start});var X=Y.split("");for(K=0;K<W.length;K++){var Z=W[K];X.splice(Z.start,Z.end-Z.start,Z.note)}return X.join("")};function d(Y,U,G){var W=[],K=U.getKeySignature();if(K.root==="Hp"||K.root==="HP")return W;W=W.concat(b(Y,G));for(var X=0;X<U.lines.length;X++){var Z=U.lines[X].staff;if(Z)for(var oe=0;oe<Z.length;oe++){var he=Z[oe];he.clef.type!=="perc"&&(W=W.concat(A(Y,he.voices,he.key,G)))}}return W}function b(Y,U){for(var G=[],W=Y.split("K:"),K=W[0].length,X=1;X<W.length;X++){var Z=W[X],oe=Z.match(/^( *)([A-G])([#b]?)(\w*)/);if(oe){var he=K+2+oe[1].length,J=oe[2]+oe[3]+oe[4],le=P({root:oe[2],acc:oe[3],mode:oe[4]},U),de=le.root+le.acc+le.mode;G.push({start:he,end:he+J.length,note:de})}K+=Z.length+2}return G}function A(Y,U,G,W){for(var K=[],X=P(G,W),Z=0;Z<U.length;Z++)K=K.concat(x(Y,U[Z],G.root,w(G),X,W));return K}function w(Y){for(var U={},G=0;G<Y.accidentals.length;G++){var W=Y.accidentals[G];W.acc==="flat"?U[W.note.toUpperCase()]="_":W.acc==="sharp"&&(U[W.note.toUpperCase()]="^")}return U}function C(Y,U,G){var W=S.indexOf(Y.root)-S.indexOf(U);return U==="none"&&(W=S.indexOf(Y.root)),W===0?G>2?W+=7:G===-12&&(W-=7):G>0&&W<0?W+=7:G<0&&W>0&&(W-=7),G>12?W+=7:G<-12&&(W-=7),W}function x(Y,U,G,W,K,X){for(var Z=[],oe=C(K,G,X),he={},J={},le=0;le<U.length;le++){var de=U[le];if(de.chord)for(var me=0;me<de.chord.length;me++){var ne=de.chord[me];if(ne.position==="default"){var re=K.accidentals.length&&K.accidentals[0].acc==="flat",fe=transposeChordName(ne.name,X,re,!0);fe=fe.replace(/♭/g,"b").replace(/♯/g,"#"),fe!==ne.name&&Z.push(H(Y,de.startChar,de.endChar,fe))}}if(de.el_type==="note"&&de.pitches){for(var ce=0;ce<de.pitches.length;ce++){var we=F(de.pitches[ce].name,G,W,he);we.acc&&(he[we.name.toUpperCase()]=we.acc);var Fe=B(we,K,oe,J);Fe.acc&&(J[Fe.upper]=Fe.acc),Z.push(z(Y,de.startChar,de.endChar,Fe.acc+Fe.name,ce))}if(de.gracenotes)for(var Ke=0;Ke<de.gracenotes.length;Ke++){var tt=F(de.gracenotes[Ke].name,G,W,he);tt.acc&&(he[tt.name.toUpperCase()]=tt.acc);var ut=B(tt,K,oe,he);ut.acc&&(J[ut.upper]=ut.acc),Z.push(L(Y,de.startChar,de.endChar,ut.acc+ut.name,Ke))}}else de.el_type==="bar"?(he={},J={}):de.el_type==="keySignature"&&(G=de.root,W=w(de),K=P(de,X),oe=C(K,G,X))}return Z}var S="CDEFGAB",E=[",,,,",",,,",",,",",","","'","''","'''","''''"];function P(Y,U){if(Y.root==="none")return{root:transposeKey("C",U),mode:"",acc:"",accidentals:[]};var G=relativeMajor(Y.root+Y.acc+Y.mode),W=transposeKey(G,U),K=relativeMode(W,Y.mode),X=keyAccidentals(W);return{root:K[0],mode:Y.mode,acc:K.length>1?K[1]:"",accidentals:X}}function B(Y,U,G,W){for(var K=Y.pitch,X=S.indexOf(Y.name),Z=S.indexOf(U.root),oe=(Z+K)%7,he=X+G,J=Y.oct;he>6;)J++,he-=7;for(;he<0;)J--,he+=7;for(var le=S[oe],de="",me=Y.adj,ne="=",re=0;re<U.accidentals.length;re++)if(U.accidentals[re].note.toLowerCase()===le.toLowerCase()){me=me+(U.accidentals[re].acc==="flat"?-1:1),ne=U.accidentals[re].acc==="flat"?"_":"^";break}switch(me){case-2:de="__";break;case-1:de="_";break;case 0:de="=";break;case 1:de="^";break;case 2:de="^^";break;case-3:var fe={};return fe.pitch=Y.pitch-1,fe.oct=Y.oct,fe.name=S[S.indexOf(Y.name)-1],fe.name||(fe.name="B",fe.oct--),fe.name==="B"||fe.name==="E"?fe.adj=Y.adj+1:fe.adj=Y.adj+2,B(fe,U,G+1,W);case 3:var fe={};return fe.pitch=Y.pitch+1,fe.oct=Y.oct,fe.name=S[S.indexOf(Y.name)+1],fe.name||(fe.name="C",fe.oct++),fe.name==="C"||fe.name==="F"?fe.adj=Y.adj-1:fe.adj=Y.adj-2,B(fe,U,G+1,W)}switch((W[le]===de||!W[le]&&de===ne)&&!Y.courtesy&&(de=""),J){case 0:le=le+",,,";break;case 1:le=le+",,";break;case 2:le=le+",";break;case 4:le=le.toLowerCase();break;case 5:le=le.toLowerCase()+"'";break;case 6:le=le.toLowerCase()+"''";break;case 7:le=le.toLowerCase()+"'''";break;case 8:le=le.toLowerCase()+"''''";break}return J>4&&(le=le.toLowerCase()),{acc:de,name:le,upper:le.toUpperCase()}}var k=/([_^=]*)([A-Ga-g])([,']*)/,$=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,I=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,D=/(\s*)$/;function F(Y,U,G,W){var K=U==="none"?0:S.indexOf(U),X=Y.match(k),Z=X[2].toUpperCase(),oe=S.indexOf(Z)-K;oe<0&&(oe+=7);var he=E.indexOf(X[3]);Z===X[2]&&he--;var J=W[Z]||G[Z]||"=";return{acc:X[1],name:Z,pitch:oe,oct:he,adj:Q(X[1],G[Z],W[Z]),courtesy:X[1]===J}}function z(Y,U,G,W,K){var X=Y.substring(U,G),Z=X.match(new RegExp($.source+D.source),"");if(Z){var oe=Z[1].length,he=Z[2].length+Z[3].length+Z[4].length,J=G-U-oe-he;U+=J,G-=he}else{var le=/([^\[]*)/,de=/\[/,me=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(Z=X.match(new RegExp(le.source+de.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+me.source+D.source)),Z){for(var ne=1+Z[1].length,re=0;re<K;re++)Z[re*3+2]&&(ne+=Z[re*3+2].length),Z[re*3+3]&&(ne+=Z[re*3+3].length),Z[re*3+4]&&(ne+=Z[re*3+4].length);U+=ne;var fe=Z[K*3+2]?Z[K*3+2].length:0;G=U+fe}}return{start:U,end:G,note:W}}function L(Y,U,G,W,K){var X=Y.substring(U,G),Z=/\{/,oe=/\}/,he=/([^\{]*)/,J=/(\/*)/,le=X.match(new RegExp(he.source+Z.source+J.source+I.source+J.source+I.source+J.source+I.source+J.source+I.source+J.source+I.source+J.source+I.source+J.source+I.source+J.source+I.source+oe.source));if(le){for(var de=1+le[1].length,me=0;me<K;me++)le[me*3+2]&&(de+=le[me*3+2].length),le[me*3+3]&&(de+=le[me*3+3].length),le[me*3+4]&&(de+=le[me*3+4].length),le[me*3+5]&&(de+=le[me*3+5].length);le[K*3+2]&&(de+=le[me*3+2].length),U+=de;var ne=le[K*3+3]?le[K*3+3].length:0;ne+=le[K*3+4]?le[K*3+4].length:0,ne+=le[K*3+5]?le[K*3+5].length:0,G=U+ne}return{start:U,end:G,note:W}}function H(Y,U,G,W){var K=Y.substring(U,G).match(/([^"]+)?(".+")+/);return K[1]&&(U+=K[1].length),G=U+K[2].length,{start:U+1,end:G-1,note:W}}function Q(Y,U,G){if(!Y&&G&&(Y=G),!Y)return 0;switch(U){case void 0:switch(Y){case"__":return-2;case"_":return-1;case"=":return 0;case"^":return 1;case"^^":return 2;default:return 0}case"_":switch(Y){case"__":return-1;case"_":return 0;case"=":return 1;case"^":return 2;case"^^":return 3;default:return 0}case"^":switch(Y){case"__":return-3;case"_":return-2;case"=":return-1;case"^":return 0;case"^^":return 1;default:return 0}}return 0}})();var output=strTranspose$1,BeamElem$1=function d(b,A,w,C){this.type="BeamElem",this.isflat=!!w,this.isgrace=!!(A&&A==="grace"),this.forceup=!!(this.isgrace||A&&A==="up"),this.forcedown=!!(A&&A==="down"),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=b,this.beams=[],C&&C.duration?(this.duration=C.duration,C.startTriplet&&(this.duration*=C.tripletMultiplier),this.duration=Math.round(this.duration*1e3)/1e3):this.duration=0};BeamElem$1.prototype.setHint=function(){this.hint=!0};BeamElem$1.prototype.runningDirection=function(d){var b=d.averagepitch;b!==void 0&&(this.total=Math.round(this.total+b),this.count||(this.count=0),this.count++)};BeamElem$1.prototype.add=function(d){var b=d.abcelem.averagepitch;b!==void 0&&(d.abcelem.rest||(this.allrests=!1),d.beam=this,this.elems.push(d),this.total=Math.round(this.total+b),(this.min===void 0||d.abcelem.minpitch<this.min)&&(this.min=d.abcelem.minpitch),(this.max===void 0||d.abcelem.maxpitch>this.max)&&(this.max=d.abcelem.maxpitch))};BeamElem$1.prototype.addBeam=function(d){this.beams.push(d)};BeamElem$1.prototype.setStemDirection=function(){if(this.average=calcAverage(this.total,this.count),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var d=6;this.stemsUp=this.average<d}delete this.count,this.total=0};BeamElem$1.prototype.calcDir=function(){if(this.average=calcAverage(this.total,this.elems.length),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var d=6;this.stemsUp=this.average<d}for(var b=this.stemsUp?"up":"down",A=0;A<this.elems.length;A++)for(var w=0;w<this.elems[A].heads.length;w++)this.elems[A].heads[w].stemDir=b};function calcAverage(d,b){return b?d/b:0}var beamElement=BeamElem$1,BraceElem$1=function d(b,A){this.startVoice=b,this.type=A};BraceElem$1.prototype.setBottomStaff=function(d){this.endVoice=d,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)};BraceElem$1.prototype.continuing=function(d){this.lastContinuedVoice=d};BraceElem$1.prototype.getWidth=function(){return 10};BraceElem$1.prototype.isStartVoice=function(d){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===d)};var braceElement=BraceElem$1,spacing$b=spacing_1,glyphs$8={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84}};glyphs$8["noteheads.slash.whole"]={d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63};glyphs$8["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9};glyphs$8["noteheads.harmonic.quarter"]={d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165};glyphs$8["noteheads.triangle.quarter"]={d:[["M",0,0],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9};var pathClone=function(d){for(var b=[],A=0,w=d.length;A<w;A++){b[A]=[];for(var C=0,x=d[A].length;C<x;C++)b[A][C]=d[A][C]}return b},pathScale=function(d,b,A){for(var w=0,C=d.length;w<C;w++){var x=d[w],S,E;for(S=1,E=x.length;S<E;S++)x[S]*=S%2?b:A}},Glyphs={printSymbol:function(d,b,A,w,C){if(!glyphs$8[A])return null;var x=pathClone(glyphs$8[A].d);x[0][1]+=d,x[0][2]+=b;for(var S="",E=0;E<x.length;E++)S+=x[E].join(" ");return C.path=S,w.path(C)},getPathForSymbol:function(d,b,A,w,C){if(w=w||1,C=C||1,!glyphs$8[A])return null;var x=pathClone(glyphs$8[A].d);return(w!==1||C!==1)&&pathScale(x,w,C),x[0][1]+=d,x[0][2]+=b,x},getSymbolWidth:function(d){return glyphs$8[d]?glyphs$8[d].w:0},symbolHeightInPitches:function(d){var b=glyphs$8[d]?glyphs$8[d].h:0;return b/spacing$b.STEP},getSymbolAlign:function(d){return d.substring(0,7)==="scripts"&&d!=="scripts.roll"?"center":"left"},getYCorr:function(d){switch(d){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":return-1;case"rests.8th":return-1;case"rests.quarter":return-1;case"rests.16th":return-1;case"rests.32nd":return-1;case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}},setSymbol:function(d,b){glyphs$8[d]=b}},glyphs_1=Glyphs,AbsoluteElement$4=absoluteElement,glyphs$7=glyphs_1,RelativeElement$8=relativeElement,createClef$1=function(d,b){var A,w=0;d.el_type="clef";var C=new AbsoluteElement$4(d,0,10,"staff-extra clef",b);switch(C.isClef=!0,d.type){case"treble":A="clefs.G";break;case"tenor":A="clefs.C";break;case"alto":A="clefs.C";break;case"bass":A="clefs.F";break;case"treble+8":A="clefs.G",w=1;break;case"tenor+8":A="clefs.C",w=1;break;case"bass+8":A="clefs.F",w=1;break;case"alto+8":A="clefs.C",w=1;break;case"treble-8":A="clefs.G",w=-1;break;case"tenor-8":A="clefs.C",w=-1;break;case"bass-8":A="clefs.F",w=-1;break;case"alto-8":A="clefs.C",w=-1;break;case"none":return null;case"perc":A="clefs.perc";break;default:C.addFixed(new RelativeElement$8("clef="+d.type,0,0,void 0,{type:"debug"}))}var x=5;if(A){var S=glyphs$7.symbolHeightInPitches(A),E=clefOffsets(A);if(C.addRight(new RelativeElement$8(A,x,glyphs$7.getSymbolWidth(A),d.clefPos,{top:S+d.clefPos+E,bottom:d.clefPos+E})),w!==0){var P=.6666666666666666,B=(glyphs$7.getSymbolWidth(A)-glyphs$7.getSymbolWidth("8")*P)/2,k=w>0?C.top+3:C.bottom-1,$=w>0?C.top+3:C.bottom-3,I=$-2;d.type==="bass-8"&&(k=3,B=0),C.addRight(new RelativeElement$8("8",x+B,glyphs$7.getSymbolWidth("8")*P,k,{scalex:P,scaley:P,top:$,bottom:I}))}}return C};function clefOffsets(d){switch(d){case"clefs.G":return-5;case"clefs.C":return-4;case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}var createClef_1=createClef$1,AbsoluteElement$3=absoluteElement,glyphs$6=glyphs_1,RelativeElement$7=relativeElement,createKeySignature$1=function(d,b){if(d.el_type="keySignature",!d.accidentals||d.accidentals.length===0)return null;var A=new AbsoluteElement$3(d,0,10,"staff-extra key-signature",b);A.isKeySig=!0;var w=0;return d.accidentals.forEach(function(C){var x,S=0;switch(C.acc){case"sharp":x="accidentals.sharp",S=-3;break;case"natural":x="accidentals.nat";break;case"flat":x="accidentals.flat",S=-1.2;break;case"quartersharp":x="accidentals.halfsharp",S=-2.5;break;case"quarterflat":x="accidentals.halfflat",S=-1.2;break;default:x="accidentals.flat"}A.addRight(new RelativeElement$7(x,w,glyphs$6.getSymbolWidth(x),C.verticalPos,{thickness:glyphs$6.symbolHeightInPitches(x),top:C.verticalPos+glyphs$6.symbolHeightInPitches(x)+S,bottom:C.verticalPos+S})),w+=glyphs$6.getSymbolWidth(x)+2},this),A},createKeySignature_1=createKeySignature$1,glyphs$5=glyphs_1,RelativeElement$6=relativeElement,createNoteHead$1=function(d,b,A,w){w||(w={});var C=w.dir!==void 0?w.dir:null,x=w.headx!==void 0?w.headx:0,S=w.extrax!==void 0?w.extrax:0,E=w.flag!==void 0?w.flag:null,P=w.dot!==void 0?w.dot:0,B=w.dotshiftx!==void 0?w.dotshiftx:0,k=w.scale!==void 0?w.scale:1,$=w.accidentalSlot!==void 0?w.accidentalSlot:[],I=w.shouldExtendStem!==void 0?w.shouldExtendStem:!1,D=w.printAccidentals!==void 0?w.printAccidentals:!0,F=A.verticalPos,z,L=0,H=0,Q=0;if(b===void 0)d.addFixed(new RelativeElement$6("pitch is undefined",0,0,0,{type:"debug"}));else if(b==="")z=new RelativeElement$6(null,0,0,F);else{var Y=x;if(A.printer_shift){var U=A.printer_shift==="same"?1:0;Y=C==="down"?-glyphs$5.getSymbolWidth(b)*k+U:glyphs$5.getSymbolWidth(b)*k-U}var G={scalex:k,scaley:k,thickness:glyphs$5.symbolHeightInPitches(b)*k,name:A.name};if(z=new RelativeElement$6(b,Y,glyphs$5.getSymbolWidth(b)*k,F,G),z.stemDir=C,E){var W=F+(C==="down"?-7:7)*k;I&&(C==="down"&&W>6&&(W=6),C==="up"&&W<6&&(W=6));var K=C==="down"?x:x+z.w-.6;d.addRight(new RelativeElement$6(E,K,glyphs$5.getSymbolWidth(E)*k,W,{scalex:k,scaley:k}))}for(H=z.w+B-2+5*P;P>0;P--){var X=1-Math.abs(F)%2;d.addRight(new RelativeElement$6("dots.dot",z.w+B-2+5*P,glyphs$5.getSymbolWidth("dots.dot"),F+X))}}if(z&&(z.highestVert=A.highestVert),D&&A.accidental){var Z;switch(A.accidental){case"quartersharp":Z="accidentals.halfsharp";break;case"dblsharp":Z="accidentals.dblsharp";break;case"sharp":Z="accidentals.sharp";break;case"quarterflat":Z="accidentals.halfflat";break;case"flat":Z="accidentals.flat";break;case"dblflat":Z="accidentals.dblflat";break;case"natural":Z="accidentals.nat"}for(var oe=!1,he=S,J=0;J<$.length;J++)if(F-$[J][0]>=6){$[J][0]=F,he=$[J][1],oe=!0;break}oe===!1&&(he-=glyphs$5.getSymbolWidth(Z)*k+2,$.push([F,he]),L=glyphs$5.getSymbolWidth(Z)*k+2);var le=glyphs$5.symbolHeightInPitches(Z);d.addExtra(new RelativeElement$6(Z,he,glyphs$5.getSymbolWidth(Z),F,{scalex:k,scaley:k,top:F+le/2,bottom:F-le/2})),Q=glyphs$5.getSymbolWidth(Z)/2}return{notehead:z,accidentalshiftx:L,dotshiftx:H,extraLeft:Q}},createNoteHead_1=createNoteHead$1,AbsoluteElement$2=absoluteElement,glyphs$4=glyphs_1,RelativeElement$5=relativeElement,createTimeSignature$1=function(d,b){d.el_type="timeSignature";var A=new AbsoluteElement$2(d,0,10,"staff-extra time-signature",b);if(d.type==="specified")for(var w=0,C=0;C<d.value.length;C++)if(C!==0&&(A.addRight(new RelativeElement$5("+",w+1,glyphs$4.getSymbolWidth("+"),6,{thickness:glyphs$4.symbolHeightInPitches("+")})),w+=glyphs$4.getSymbolWidth("+")+2),d.value[C].den){for(var x=0,S=0;S<d.value[C].num.length;S++)x+=glyphs$4.getSymbolWidth(d.value[C].num[S]);var E=0;for(S=0;S<d.value[C].num.length;S++)E+=glyphs$4.getSymbolWidth(d.value[C].den[S]);var P=Math.max(x,E);A.addRight(new RelativeElement$5(d.value[C].num,w+(P-x)/2,x,8,{thickness:glyphs$4.symbolHeightInPitches(d.value[C].num[0])})),A.addRight(new RelativeElement$5(d.value[C].den,w+(P-E)/2,E,4,{thickness:glyphs$4.symbolHeightInPitches(d.value[C].den[0])})),w+=P}else{for(var B=0,k=0;k<d.value[C].num.length;k++)B+=glyphs$4.getSymbolWidth(d.value[C].num[k]);A.addRight(new RelativeElement$5(d.value[C].num,w,B,6,{thickness:glyphs$4.symbolHeightInPitches(d.value[C].num[0])})),w+=B}else d.type==="common_time"?A.addRight(new RelativeElement$5("timesig.common",0,glyphs$4.getSymbolWidth("timesig.common"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.common")})):d.type==="cut_time"?A.addRight(new RelativeElement$5("timesig.cut",0,glyphs$4.getSymbolWidth("timesig.cut"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.cut")})):d.type==="tempus_imperfectum"?A.addRight(new RelativeElement$5("timesig.imperfectum",0,glyphs$4.getSymbolWidth("timesig.imperfectum"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.imperfectum")})):d.type==="tempus_imperfectum_prolatio"?A.addRight(new RelativeElement$5("timesig.imperfectum2",0,glyphs$4.getSymbolWidth("timesig.imperfectum2"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.imperfectum2")})):d.type==="tempus_perfectum"?A.addRight(new RelativeElement$5("timesig.perfectum",0,glyphs$4.getSymbolWidth("timesig.perfectum"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.perfectum")})):d.type==="tempus_perfectum_prolatio"?A.addRight(new RelativeElement$5("timesig.perfectum2",0,glyphs$4.getSymbolWidth("timesig.perfectum2"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",d);return A},createTimeSignature_1=createTimeSignature$1,DynamicDecoration$1=function d(b,A,w){this.type="DynamicDecoration",this.anchor=b,this.dec=A,w==="below"?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0},dynamicDecoration=DynamicDecoration$1,CrescendoElem$1=function d(b,A,w,C){this.type="CrescendoElem",this.anchor1=b,this.anchor2=A,this.dir=w,C==="above"?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0},crescendoElement=CrescendoElem$1,GlissandoElem$1=function d(b,A){this.type="GlissandoElem",this.anchor1=b,this.anchor2=A},glissandoElement=GlissandoElem$1,TieElem$2=function d(b){this.type="TieElem",this.anchor1=b.anchor1,this.anchor2=b.anchor2,b.isGrace&&(this.isGrace=!0),b.fixedY&&(this.fixedY=!0),b.stemDir&&(this.stemDir=b.stemDir),b.voiceNumber!==void 0&&(this.voiceNumber=b.voiceNumber),b.style!==void 0&&(this.dotted=!0),this.internalNotes=[]};TieElem$2.prototype.addInternalNote=function(d){this.internalNotes.push(d)};TieElem$2.prototype.setEndAnchor=function(d){this.anchor2=d,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)};TieElem$2.prototype.setStartX=function(d){this.startLimitX=d};TieElem$2.prototype.setEndX=function(d){this.endLimitX=d};TieElem$2.prototype.setHint=function(){this.hint=!0};TieElem$2.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var d;this.anchor1?d=this.anchor1.pitch:this.anchor2?d=this.anchor2.pitch:d=14,this.anchor1&&this.anchor1.stemDir==="down"&&this.anchor2&&this.anchor2.stemDir==="down"?this.above=!0:this.anchor1&&this.anchor1.stemDir==="up"&&this.anchor2&&this.anchor2.stemDir==="up"?this.above=!1:this.anchor1&&this.anchor2?this.above=d>=6:this.anchor1?this.above=this.anchor1.stemDir==="down":this.anchor2?this.above=this.anchor2.stemDir==="down":this.above=d>=6}};TieElem$2.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var d=!1;this.anchor1&&this.anchor1.stemDir==="down"&&(d=!0),this.anchor2&&this.anchor2.stemDir==="down"&&(d=!0);for(var b=0;b<this.internalNotes.length;b++){var A=this.internalNotes[b];A.stemDir==="down"&&(d=!0)}this.above=d}};TieElem$2.prototype.calcX=function(d,b){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.anchor2?this.startX=this.anchor2.x-20:this.startX=d,!this.anchor1&&this.dotted&&(this.startX-=3),this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=b};TieElem$2.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0};TieElem$2.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&this.anchor1.stemDir==="up"&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var d=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,b=(this.anchor2.highestVert+this.anchor2.pitch)/2;this.above&&this.anchor2.stemDir==="up"&&!this.fixedY&&!d&&b<this.startY?(this.endY=b,this.endX+=Math.round(this.anchor2.w/2)):this.endY=this.above&&d?this.anchor2.highestVert:this.anchor2.pitch}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)};TieElem$2.prototype.avoidCollisionAbove=function(){if(this.above){for(var d=-50,b=0;b<this.internalNotes.length;b++)this.internalNotes[b].highestVert>d&&(d=this.internalNotes[b].highestVert);d>this.startY&&d>this.endY&&(this.startY=this.endY=d-1)}};var tieElement=TieElem$2,DynamicDecoration=dynamicDecoration,CrescendoElem=crescendoElement,GlissandoElem=glissandoElement,glyphs$3=glyphs_1,RelativeElement$4=relativeElement,TieElem$1=tieElement,Decoration$1=function d(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},closeDecoration=function(d,b,A,w,C,x,S,E){for(var P,B=0;B<b.length;B++){if(b[B]==="staccato"||b[B]==="tenuto"||b[B]==="accent"){var k="scripts."+b[B];if(b[B]==="accent"&&(k="scripts.sforzato"),P===void 0?P=S==="down"?A+2:E-2:P=S==="down"?P+2:P-2,b[B]==="accent")S==="up"?P--:P++;else switch(P){case 2:case 4:case 6:case 8:case 10:S==="up"?P--:P++;break}A>9&&P++;var $=w/2;glyphs$3.getSymbolAlign(k)!=="center"&&($-=glyphs$3.getSymbolWidth(k)/2),C.addFixedX(new RelativeElement$4(k,$,glyphs$3.getSymbolWidth(k),P))}if(b[B]==="slide"&&C.heads[0]){var I=C.heads[0].pitch;I-=2;var D=new RelativeElement$4("",-x-15,0,I-1),F=new RelativeElement$4("",-x-5,0,I+1);C.addFixedX(D),C.addFixedX(F),d.addOther(new TieElem$1({anchor1:D,anchor2:F,fixedY:!0}))}}return P===void 0&&(P=A),{above:P,below:C.bottom}},volumeDecoration=function(d,b,A,w){for(var C=0;C<b.length;C++)switch(b[C]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var x=new DynamicDecoration(A,b[C],w);d.addOther(x)}},compoundDecoration=function(d,b,A,w,C){function x(){if(w.heads.length===0)return 10;for(var B=w.heads[0].pitch,k=1;k<w.heads.length;k++)B=Math.max(B,w.heads[k].pitch);return B}function S(){if(w.heads.length===0)return 2;for(var B=w.heads[0].pitch,k=1;k<w.heads.length;k++)B=Math.min(B,w.heads[k].pitch);return B}function E(B,k){var $=C==="down"?S()+1:x()+9;C!=="down"&&k===1&&$--;var I=A/2;I+=C==="down"?-5:3;for(var D=0;D<k;D++)$-=1,w.addFixedX(new RelativeElement$4(B,I,glyphs$3.getSymbolWidth(B),$))}for(var P=0;P<d.length;P++)switch(d[P]){case"/":E("flags.ugrace",1);break;case"//":E("flags.ugrace",2);break;case"///":E("flags.ugrace",3);break;case"////":E("flags.ugrace",4);break}},stackedDecoration=function(d,b,A,w,C,x,S){function E(F,z){F==="above"?w.above+=z:w.below-=z}function P(F){var z;return F==="above"?(z=w.above,z<x&&(z=x)):(z=w.below,z>S&&(z=S)),z}function B(F,z,L){var H=P(z),Q=2,Y=5;A.addFixedX(new RelativeElement$4(F,b/2,0,H+Q,{type:"decoration",klass:"ornament",thickness:3,anchor:L})),E(z,Y)}function k(F,z){var L=b/2;glyphs$3.getSymbolAlign(F)!=="center"&&(L-=glyphs$3.getSymbolWidth(F)/2);var H=glyphs$3.symbolHeightInPitches(F)+1,Q=P(z);Q=z==="above"?Q+H/2:Q-H/2,A.addFixedX(new RelativeElement$4(F,L,glyphs$3.getSymbolWidth(F),Q,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches(F)})),E(z,H)}for(var $={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},I=!1,D=0;D<d.length;D++)switch(d[D]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":B(d[D],C,"middle"),I=!0;break;case"D.C.alcoda":B("D.C. al coda",C,"end"),I=!0;break;case"D.C.alfine":B("D.C. al fine",C,"end"),I=!0;break;case"D.S.alcoda":B("D.S. al coda",C,"end"),I=!0;break;case"D.S.alfine":B("D.S. al fine",C,"end"),I=!0;break;case"fine":B("FINE",C,"middle"),I=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":k($[d[D]],C),I=!0;break;case"invertedfermata":k($[d[D]],"below"),I=!0;break;case"mark":A.klass="mark";break}return I};function leftDecoration(d,b,A){for(var w=0;w<d.length;w++)switch(d[w]){case"arpeggio":for(var C=b.abcelem.minpitch-1;C<=b.abcelem.maxpitch;C+=2)b.addExtra(new RelativeElement$4("scripts.arpeggio",-glyphs$3.getSymbolWidth("scripts.arpeggio")*2-A,0,C+2,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches("scripts.arpeggio")}));break}}Decoration$1.prototype.dynamicDecoration=function(d,b,A,w){for(var C,x,S,E=0;E<b.length;E++)switch(b[E]){case"diminuendo(":this.startDiminuendoX=A,C=void 0;break;case"diminuendo)":C={start:this.startDiminuendoX,stop:A},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=A,x=void 0;break;case"crescendo)":x={start:this.startCrescendoX,stop:A},this.startCrescendoX=void 0;break;case"glissando(":this.startGlissandoX=A,S=void 0;break;case"glissando)":S={start:this.startGlissandoX,stop:A},this.startGlissandoX=void 0;break}C&&d.addOther(new CrescendoElem(C.start,C.stop,">",w)),x&&d.addOther(new CrescendoElem(x.start,x.stop,"<",w)),S&&d.addOther(new GlissandoElem(S.start,S.stop))};Decoration$1.prototype.createDecoration=function(d,b,A,w,C,x,S,E,P,B){P||(P={ornamentPosition:"above",volumePosition:B?"above":"below",dynamicPosition:B?"above":"below"}),volumeDecoration(d,b,C,P.volumePosition),this.dynamicDecoration(d,b,C,P.dynamicPosition),compoundDecoration(b,A,w,C,S);var k=closeDecoration(d,b,A,w,C,x,S,E);k.above=Math.max(k.above,this.minTop),stackedDecoration(b,w,C,k,P.ornamentPosition,this.minTop,this.minBottom),leftDecoration(b,C,x)};var decoration=Decoration$1,EndingElem$1=function d(b,A,w){this.type="EndingElem",this.text=b,this.anchor1=A,this.anchor2=w,this.endingHeightAbove=5,this.pitch=void 0},endingElement=EndingElem$1,calcHeight$1=function(d){for(var b=0,A=0;A<d.voices.length;A++){var w=d.voices[A].staff;d.voices[A].duplicate||(b+=w.top,b+=-w.bottom)}return b},calcHeight_1=calcHeight$1,calcHeight=calcHeight_1,StaffGroupElement$1=function(d){this.getTextSize=d,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};StaffGroupElement$1.prototype.setLimit=function(d,b){b.specialY[d]&&(b.staff.specialY[d]?b.staff.specialY[d]=Math.max(b.staff.specialY[d],b.specialY[d]):b.staff.specialY[d]=b.specialY[d])};StaffGroupElement$1.prototype.addVoice=function(d,b,A){var w=this.voices.length;this.voices[w]=d,this.staffs[b]?this.staffs[b].voices.push(w):this.staffs[this.staffs.length]={top:10,bottom:2,lines:A,voices:[w],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},d.staff=this.staffs[b]};StaffGroupElement$1.prototype.setHeight=function(){this.height=calcHeight(this)};StaffGroupElement$1.prototype.setWidth=function(d){this.w=d;for(var b=0;b<this.voices.length;b++)this.voices[b].setWidth(d)};StaffGroupElement$1.prototype.setStaffLimits=function(d){d.staff.top=Math.max(d.staff.top,d.top),d.staff.bottom=Math.min(d.staff.bottom,d.bottom),this.setLimit("tempoHeightAbove",d),this.setLimit("partHeightAbove",d),this.setLimit("volumeHeightAbove",d),this.setLimit("dynamicHeightAbove",d),this.setLimit("endingHeightAbove",d),this.setLimit("chordHeightAbove",d),this.setLimit("lyricHeightAbove",d),this.setLimit("lyricHeightBelow",d),this.setLimit("chordHeightBelow",d),this.setLimit("volumeHeightBelow",d),this.setLimit("dynamicHeightBelow",d)};var staffGroupElement=StaffGroupElement$1,AbsoluteElement$1=absoluteElement,RelativeElement$3=relativeElement,TempoElement$1=function d(b,A,w){this.type="TempoElement",this.tempo=b,this.tempo.type="tempo",this.tuneNumber=A,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(w,b,A))};TempoElement$1.prototype.setX=function(d){this.x=d};TempoElement$1.prototype.createNote=function(d,b,A){var w=.75,C=b.duration[0],x=new AbsoluteElement$1(b,C,1,"tempo",A),S,E,P;C<=1/32?(P="noteheads.quarter",E="flags.u32nd",S=0):C<=1/16?(P="noteheads.quarter",E="flags.u16th",S=0):C<=3/32?(P="noteheads.quarter",E="flags.u16nd",S=1):C<=1/8?(P="noteheads.quarter",E="flags.u8th",S=0):C<=3/16?(P="noteheads.quarter",E="flags.u8th",S=1):C<=1/4?(P="noteheads.quarter",S=0):C<=3/8?(P="noteheads.quarter",S=1):C<=1/2?(P="noteheads.half",S=0):C<=3/4?(P="noteheads.half",S=1):C<=1?(P="noteheads.whole",S=0):C<=1.5?(P="noteheads.whole",S=1):C<=2?(P="noteheads.dbl",S=0):(P="noteheads.dbl",S=1);var B=d(x,P,{verticalPos:0},{dir:"up",flag:E,dot:S,scale:w}),k=B.notehead;x.addHead(k);var $;if(P!=="noteheads.whole"&&P!=="noteheads.dbl"){var I=.3333333333333333*w,D=5*w,F=k.dx+k.w,z=-.6;$=new RelativeElement$3(null,F,0,I,{type:"stem",pitch2:D,linewidth:z}),x.addRight($)}return x};var tempoElement=TempoElement$1,TripletElem$1=function d(b,A,w){this.type="TripletElem",this.anchor1=A,this.number=b,this.durationClass=("d"+Math.round(A.parent.durationClass*1e3)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=w.flatBeams};TripletElem$1.prototype.isClosed=function(){return!!this.anchor2};TripletElem$1.prototype.middleNote=function(d){this.middleElems.push(d)};TripletElem$1.prototype.setCloseAnchor=function(d){this.anchor2=d,(!this.anchor1.parent.beam||this.anchor1.stemDir==="up")&&(this.endingHeightAbove=4)};var tripletElement=TripletElem$1;function germanNote(d){switch(d){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":return"B";case"B♭":return"B"}return d}function translateChord$1(d,b,A){var w=d.split("\n");for(let C=0;C<w.length;C++){let S=w[C].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(!S)continue;let E=S[1]||"",P=S[2]||"",B=S[4]||"";A&&(E=germanNote(E),B=germanNote(B));const k=b?"":"",$=B?"/"+B:"";w[C]=[E,P,$].join(k)}return w.join("\n")}var translateChord_1=translateChord$1,RelativeElement$2=relativeElement,spacing$a=spacing_1;const translateChord=translateChord_1;var addChord$1=function(d,b,A,w,C,x,S,E){for(var P=0;P<A.chord.length;P++)for(var B=A.chord[P].position,k=A.chord[P].rel_position,$=A.chord[P].name.split("\n"),I=$.length-1;I>=0;I--){var D=$[I],F=0,z,L,H;B==="left"||B==="right"||B==="below"||B==="above"||k?(L="annotationfont",H="annotation"):(L="gchordfont",H="chord",D=translateChord(D,S,E));var Q=d.attr(L,H),Y=d.calc(D,L,H),U=Y.width,G=Y.height/spacing$a.STEP;switch(B){case"left":w+=U+7,F=-w,z=A.averagepitch,b.addExtra(new RelativeElement$2(D,F,U+4,z,{type:"text",height:G,dim:Q,position:"left"}));break;case"right":C+=4,F=C,z=A.averagepitch,b.addRight(new RelativeElement$2(D,F,U+4,z,{type:"text",height:G,dim:Q,position:"right"}));break;case"below":b.addRight(new RelativeElement$2(D,0,0,void 0,{type:"text",position:"below",height:G,dim:Q,realWidth:U}));break;case"above":b.addRight(new RelativeElement$2(D,0,0,void 0,{type:"text",position:"above",height:G,dim:Q,realWidth:U}));break;default:if(k){var W=k.y+3*spacing$a.STEP;b.addRight(new RelativeElement$2(D,F+k.x,0,A.minpitch+W/spacing$a.STEP,{position:"relative",type:"text",height:G,dim:Q}))}else{var K="above";A.positioning&&A.positioning.chordPosition&&(K=A.positioning.chordPosition),K!=="hidden"&&b.addCentered(new RelativeElement$2(D,x/2,U,void 0,{type:"chord",position:K,height:G,dim:Q,realWidth:U}))}}}return{roomTaken:w,roomTakenRight:C}},addChord_1=addChord$1,AbsoluteElement=absoluteElement,BeamElem=beamElement,BraceElem=braceElement,createClef=createClef_1,createKeySignature=createKeySignature_1,createNoteHead=createNoteHead_1,createTimeSignature=createTimeSignature_1,Decoration=decoration,EndingElem=endingElement,glyphs$2=glyphs_1,RelativeElement$1=relativeElement,spacing$9=spacing_1,StaffGroupElement=staffGroupElement,TempoElement=tempoElement,TieElem=tieElement,TripletElem=tripletElement,VoiceElement$1=voiceElement,addChord=addChord_1,pitchesToPerc=pitchesToPerc_1,parseCommon$2=abc_common,getDuration=function(d){var b=0;return d.duration&&(b=d.duration),b},hint=!1,chartable={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}},AbstractEngraver$1=function(d,b,A){this.decoration=new Decoration,this.getTextSize=d,this.tuneNumber=b,this.isBagpipes=A.bagpipes,this.flatBeams=A.flatbeams,this.graceSlurs=A.graceSlurs,this.percmap=A.percmap,this.initialClef=A.initialClef,this.jazzchords=!!A.jazzchords,this.germanAlphabet=!!A.germanAlphabet,this.reset()};AbstractEngraver$1.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0};AbstractEngraver$1.prototype.setStemHeight=function(d){this.stemHeight=Math.round(d*10/spacing$9.STEP)/10};AbstractEngraver$1.prototype.getCurrentVoiceId=function(d,b){return"s"+d+"v"+b};AbstractEngraver$1.prototype.pushCrossLineElems=function(d,b){this.slursbyvoice[this.getCurrentVoiceId(d,b)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(d,b)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(d,b)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(d,b)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(d,b)]=this.voiceColor)};AbstractEngraver$1.prototype.popCrossLineElems=function(d,b){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(d,b)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(d,b)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(d,b)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(d,b)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(d,b)]};AbstractEngraver$1.prototype.containsLyrics=function(d){for(var b=0;b<d.length;b++)for(var A=0;A<d[b].voices.length;A++)for(var w=0;w<d[b].voices[A].length;w++){var C=d[b].voices[A][w];if(C.lyric){(!C.positioning||C.positioning.vocalPosition==="below")&&(this.hasVocals=!0);return}}};AbstractEngraver$1.prototype.createABCLine=function(d,b,A){this.minY=2,this.containsLyrics(d);var w=new StaffGroupElement(this.getTextSize);this.tempoSet=!1;for(var C=0;C<d.length;C++)hint&&this.restoreState(),hint=!1,this.createABCStaff(w,d[C],b,C,A);return w};AbstractEngraver$1.prototype.createABCStaff=function(d,b,A,w,C){d.getTextSize.updateFonts(b);for(var x=0;x<b.voices.length;x++){var S=new VoiceElement$1(x,b.voices.length);x===0?(S.barfrom=b.connectBarLines==="start"||b.connectBarLines==="continue",S.barto=b.connectBarLines==="continue"||b.connectBarLines==="end"):S.duplicate=!0,b.title&&b.title[x]&&(S.header=b.title[x].replace(/\\n/g,"\n"),S.headerPosition=6+d.getTextSize.baselineToCenter(S.header,"voicefont","staff-extra voice-name",x,b.voices.length)/spacing$9.STEP),b.clef&&b.clef.type==="perc"&&(S.isPercussion=!0);var E=(!this.initialClef||C===0)&&createClef(b.clef,this.tuneNumber);E&&(x===0&&b.barNumber&&this.addMeasureNumber(b.barNumber,E),S.addChild(E),this.startlimitelem=E);var P=createKeySignature(b.key,this.tuneNumber);if(P&&(S.addChild(P),this.startlimitelem=P),b.meter){b.meter.type==="specified"?this.measureLength=b.meter.value[0].num/b.meter.value[0].den:this.measureLength=1;var B=createTimeSignature(b.meter,this.tuneNumber);S.addChild(B),this.startlimitelem=B}S.duplicate&&(S.children=[]);var k=b.clef.stafflines||b.clef.stafflines===0?b.clef.stafflines:5;d.addVoice(S,w,k);var $=k===1;this.createABCVoice(b.voices[x],A,w,x,$,S),d.setStaffLimits(S),x===0&&(b.brace==="start"||!d.brace&&b.brace?(d.brace||(d.brace=[]),d.brace.push(new BraceElem(S,"brace"))):b.brace==="end"&&d.brace?d.brace[d.brace.length-1].setBottomStaff(S):b.brace==="continue"&&d.brace&&d.brace[d.brace.length-1].continuing(S),b.bracket==="start"||!d.bracket&&b.bracket?(d.bracket||(d.bracket=[]),d.bracket.push(new BraceElem(S,"bracket"))):b.bracket==="end"&&d.bracket?d.bracket[d.bracket.length-1].setBottomStaff(S):b.bracket==="continue"&&d.bracket&&d.bracket[d.bracket.length-1].continuing(S))}};function getBeamGroup(d,b){var A=d[b];if(A.el_type!=="note"||!A.startBeam||A.endBeam)return{count:1,elem:A};for(var w=[];b<d.length&&d[b].el_type==="note"&&(w.push(d[b]),!d[b].endBeam);)b++;return{count:w.length,elem:w}}AbstractEngraver$1.prototype.createABCVoice=function(d,b,A,w,C,x){this.popCrossLineElems(A,w),this.stemdir=this.isBagpipes?"down":null,this.abcline=d,this.partstartelem&&(this.partstartelem=new EndingElem("",null,null),x.addOther(this.partstartelem));var S=x.voicetotal<2?-1:x.voicenumber;for(var E in this.slurs)this.slurs.hasOwnProperty(E)&&(this.slurs[E]=new TieElem({force:this.slurs[E].force,voiceNumber:S,stemDir:this.slurs[E].stemDir,style:this.slurs[E].dotted}),hint&&this.slurs[E].setHint(),x.addOther(this.slurs[E]));for(var P=0;P<this.ties.length;P++)this.ties[P]=new TieElem({force:this.ties[P].force,stemDir:this.ties[P].stemDir,voiceNumber:S,style:this.ties[P].dotted}),hint&&this.ties[P].setHint(),x.addOther(this.ties[P]);for(var B=0;B<this.abcline.length;B++)setAveragePitch(this.abcline[B]),this.minY=Math.min(this.abcline[B].minpitch,this.minY);for(var k=A===0,$=0;$<this.abcline.length;){var I=getBeamGroup(this.abcline,$),D=this.createABCElement(k,C,x,I.elem);if(D)for(P=0;P<D.length;P++){if(!this.tempoSet&&b&&!b.suppress){this.tempoSet=!0;var F=new AbsoluteElement(b,0,0,"tempo",this.tuneNumber,{});F.addFixedX(new TempoElement(b,this.tuneNumber,createNoteHead)),x.addChild(F)}x.addChild(D[P])}$+=I.count}this.pushCrossLineElems(A,w)};AbstractEngraver$1.prototype.saveState=function(){this.tiesSave=parseCommon$2.cloneArray(this.ties),this.slursSave=parseCommon$2.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=parseCommon$2.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=parseCommon$2.cloneHashOfArrayOfHash(this.tiesbyvoice)};AbstractEngraver$1.prototype.restoreState=function(){this.ties=parseCommon$2.cloneArray(this.tiesSave),this.slurs=parseCommon$2.cloneHashOfHash(this.slursSave),this.slursbyvoice=parseCommon$2.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=parseCommon$2.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)};AbstractEngraver$1.prototype.createABCElement=function(d,b,A,w){var C=[];switch(w.el_type){case void 0:C=this.createBeam(b,A,w);break;case"note":C[0]=this.createNote(w,!1,b,A),this.triplet&&this.triplet.isClosed()&&(A.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":C[0]=this.createBarLine(A,w,d),A.duplicate&&C.length>0&&(C[0].invisible=!0);break;case"meter":C[0]=createTimeSignature(w,this.tuneNumber),this.startlimitelem=C[0],A.duplicate&&C.length>0&&(C[0].invisible=!0);break;case"clef":if(C[0]=createClef(w,this.tuneNumber),!C[0])return null;A.duplicate&&C.length>0&&(C[0].invisible=!0);break;case"key":var x=createKeySignature(w,this.tuneNumber);x&&(C[0]=x,this.startlimitelem=C[0]),A.duplicate&&C.length>0&&(C[0].invisible=!0);break;case"stem":this.stemdir=w.direction==="auto"?void 0:w.direction;break;case"part":var S=new AbsoluteElement(w,0,0,"part",this.tuneNumber),E=this.getTextSize.calc(w.title,"partsfont","part");S.addFixedX(new RelativeElement$1(w.title,0,0,void 0,{type:"part",height:E.height/spacing$9.STEP})),C[0]=S;break;case"tempo":var P=new AbsoluteElement(w,0,0,"tempo",this.tuneNumber);P.addFixedX(new TempoElement(w,this.tuneNumber,createNoteHead)),C[0]=P;break;case"style":w.head==="normal"?delete this.style:this.style=w.head;break;case"hint":hint=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=w.size;break;case"color":this.voiceColor=w.color,A.color=this.voiceColor;break;default:var B=new AbsoluteElement(w,0,0,"unsupported",this.tuneNumber);B.addFixed(new RelativeElement$1("element type "+w.el_type,0,0,void 0,{type:"debug"})),C[0]=B}return C};function setAveragePitch(d){if(d.pitches){sortPitch(d);for(var b=0,A=0;A<d.pitches.length;A++)b+=d.pitches[A].verticalPos;d.averagepitch=b/d.pitches.length,d.minpitch=d.pitches[0].verticalPos,d.maxpitch=d.pitches[d.pitches.length-1].verticalPos}}AbstractEngraver$1.prototype.createBeam=function(d,b,A){var w=[],C=new BeamElem(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,A[0]);hint&&C.setHint();for(var x=0;x<A.length;x++)C.runningDirection(A[x]);C.setStemDirection();var S=this.stemdir;for(this.stemdir=C.stemsUp?"up":"down",x=0;x<A.length;x++){var E=A[x],P=this.createNote(E,!0,d,b);w.push(P),C.add(P),this.triplet&&this.triplet.isClosed()&&(b.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return C.calcDir(),b.addBeam(C),this.stemdir=S,w};var sortPitch=function(d){var b;do{b=!0;for(var A=0;A<d.pitches.length-1;A++)if(d.pitches[A].pitch>d.pitches[A+1].pitch){b=!1;var w=d.pitches[A];d.pitches[A]=d.pitches[A+1],d.pitches[A+1]=w}}while(!b)},ledgerLines=function(d,b,A,w,C,x,S,E,P){for(var B=A;B>11;B--)B%2===0&&!w&&d.addFixed(new RelativeElement$1(null,E,(C+4)*P,B,{type:"ledger"}));for(B=b;B<1;B++)B%2===0&&!w&&d.addFixed(new RelativeElement$1(null,E,(C+4)*P,B,{type:"ledger"}));for(B=0;B<x.length;B++){var k=C;S==="down"&&(k=-k),d.addFixed(new RelativeElement$1(null,k+E,(C+4)*P,x[B],{type:"ledger"}))}};AbstractEngraver$1.prototype.addGraceNotes=function(d,b,A,w,C,x,S){var E=.6,P=3.5/5;C=Math.round(C*P);var B=null,k;d.gracenotes.length>1&&(B=new BeamElem(C,"grace",x),hint&&B.setHint(),B.mainNote=A);var $,I=[];for($=d.gracenotes.length-1;$>=0;$--)S+=10,I[$]=S,d.gracenotes[$].accidental&&(S+=7);for($=0;$<d.gracenotes.length;$++){var D=d.gracenotes[$].verticalPos;k=B?null:chartable.uflags[x?5:3];var F=[],z=createNoteHead(A,"noteheads.quarter",d.gracenotes[$],{dir:"up",headx:-I[$],extrax:-I[$],flag:k,scale:E*this.voiceScale,accidentalSlot:F});z.notehead.highestVert=z.notehead.pitch+C;var L=z.notehead;if(this.addSlursAndTies(A,d.gracenotes[$],L,b,"up",!0),A.addExtra(L),d.gracenotes[$].acciaccatura){var H=d.gracenotes[$].verticalPos+7*E,Q=B?5:6;A.addRight(new RelativeElement$1("flags.ugrace",-I[$]+Q,0,H,{scalex:E,scaley:E}))}if(B){var Y=d.gracenotes[$].duration/2;x&&(Y/=2);var U={heads:[L],abcelem:{averagepitch:D,minpitch:D,maxpitch:D,duration:Y}};B.add(U)}else{var G=D+.3333333333333333*E,W=D+7*E,K=L.dx+L.w,X=-.6;A.addExtra(new RelativeElement$1(null,K,0,G,{type:"stem",pitch2:W,linewidth:X}))}ledgerLines(A,D,D,!1,glyphs$2.getSymbolWidth("noteheads.quarter"),[],!0,L.dx-1,.6);var Z=d.rest&&(d.rest.type==="spacer"||d.rest.type==="invisible");$===0&&!x&&this.graceSlurs&&!Z&&b.addOther(new TieElem({anchor1:L,anchor2:w,isGrace:!0}))}return B&&(B.calcDir(),b.addBeam(B)),S};function addRestToAbsElement(d,b,A,w,C,x,S,E,P){var B,k=7,$,I,D;switch(C&&(x==="down"&&(k=3),x==="up"&&(k=11)),S&&(A<.5||A<1?k=7:k=5),b.rest.type){case"whole":B=chartable.rest[0],b.averagepitch=k,b.minpitch=k,b.maxpitch=k,w=0;break;case"rest":b.style==="rhythm"?B=chartable.rhythm[-E]:B=chartable.rest[-E],b.averagepitch=k,b.minpitch=k,b.maxpitch=k;break;case"invisible":case"invisible-multimeasure":case"spacer":B="",b.averagepitch=k,b.minpitch=k,b.maxpitch=k;break;case"multimeasure":B=chartable.rest.multi,b.averagepitch=k,b.minpitch=k,b.maxpitch=k,w=0;var F=glyphs$2.getSymbolWidth(B);d.addHead(new RelativeElement$1(B,F,F*2,7));var z=new RelativeElement$1(""+b.rest.text,F,F,16,{type:"multimeasure-text"});d.addExtra(z)}if(b.rest.type.indexOf("multimeasure")<0&&b.rest.type!=="invisible"){var L=createNoteHead(d,B,{verticalPos:k},{dot:w,scale:P});$=L.notehead,$&&(d.addHead($),I=L.accidentalshiftx,D=L.dotshiftx)}return{noteHead:$,roomTaken:I,roomTakenRight:D}}function addIfNotExist(d,b){for(var A=0;A<d.length;A++)if(JSON.stringify(d[A])===JSON.stringify(b))return;d.push(b)}AbstractEngraver$1.prototype.addNoteToAbcElement=function(d,b,A,w,C,x,S,E,P){var B=0,k,$=0,I=0,D,F,z=[],L=[],H=0,Q=b.averagepitch>=6?"down":"up";w&&(Q=w),C=b.style?b.style:C,(!C||C==="normal")&&(C="note");var Y;x?Y=chartable[C].nostem:Y=chartable[C][-S],Y||console.log("noteSymbol:",C,S,x);var U;for(U=Q==="down"?b.pitches.length-2:1;Q==="down"?U>=0:U<b.pitches.length;U=Q==="down"?U-1:U+1){var G=b.pitches[Q==="down"?U+1:U-1],W=b.pitches[U],K=Q==="down"?G.pitch-W.pitch:W.pitch-G.pitch;K<=1&&!G.printer_shift&&(W.printer_shift=K?"different":"same",(W.verticalPos>11||W.verticalPos<1)&&z.push(W.verticalPos-W.verticalPos%2),Q==="down"?$=glyphs$2.getSymbolWidth(Y)+2:B=glyphs$2.getSymbolWidth(Y)+2)}var X=b.pitches.length;for(U=0;U<b.pitches.length;U++){if(!E){var Z;Q==="down"&&U!==0||Q==="up"&&U!==X-1?Z=null:Z=chartable[Q==="down"?"dflags":"uflags"][-S]}var oe;if(b.pitches[U].style)oe=chartable[b.pitches[U].style][-S];else if(P.isPercussion&&this.percmap){oe=Y;var he=this.percmap[pitchesToPerc(b.pitches[U])];he&&he.noteHead&&chartable[he.noteHead]&&(oe=chartable[he.noteHead][-S])}else oe=Y;b.pitches[U].highestVert=b.pitches[U].verticalPos;var J=(w==="up"||Q==="up")&&U===0,le=(w==="down"||Q==="down")&&U===X-1;if(J||le){if((b.startSlur||X===1)&&(b.pitches[U].highestVert=b.pitches[X-1].verticalPos,getDuration(b)<1&&(w==="up"||Q==="up")&&(b.pitches[U].highestVert+=6)),b.startSlur)for(b.pitches[U].startSlur||(b.pitches[U].startSlur=[]),F=0;F<b.startSlur.length;F++)addIfNotExist(b.pitches[U].startSlur,b.startSlur[F]);if(b.endSlur)for(b.pitches[U].highestVert=b.pitches[X-1].verticalPos,getDuration(b)<1&&(w==="up"||Q==="up")&&(b.pitches[U].highestVert+=6),b.pitches[U].endSlur||(b.pitches[U].endSlur=[]),F=0;F<b.endSlur.length;F++)addIfNotExist(b.pitches[U].endSlur,b.endSlur[F])}var de=!E&&S<=-1,me=createNoteHead(d,oe,b.pitches[U],{dir:Q,extrax:-$,flag:Z,dot:A,dotshiftx:B,scale:this.voiceScale,accidentalSlot:L,shouldExtendStem:!w,printAccidentals:!P.isPercussion});H=Math.max(glyphs$2.getSymbolWidth(oe),H),d.extraw-=me.extraLeft,k=me.notehead,k&&(this.addSlursAndTies(d,b.pitches[U],k,P,de?Q:null,!1),b.gracenotes&&b.gracenotes.length>0&&(k.bottom=k.bottom-1),d.addHead(k)),$+=me.accidentalshiftx,I=Math.max(I,me.dotshiftx)}if(de){var ne=Math.round(70*this.voiceScale)/10,re=Q==="down"?b.minpitch-ne:b.minpitch+1/3;re>6&&!w&&(re=6);var fe=Q==="down"?b.maxpitch-1/3:b.maxpitch+ne;fe<6&&!w&&(fe=6);var ce=Q==="down"||d.heads.length===0?0:d.heads[0].w,we=Q==="down"?1:-1;k&&k.c==="noteheads.slash.quarter"&&(Q==="down"?fe-=1:re+=1),d.addRight(new RelativeElement$1(null,ce,0,re,{type:"stem",pitch2:fe,linewidth:we,bottom:re-1})),D=Math.min(re,fe)}return{noteHead:k,roomTaken:$,roomTakenRight:I,min:D,additionalLedgers:z,dir:Q,symbolWidth:H}};AbstractEngraver$1.prototype.addLyric=function(d,b){var A="";b.lyric.forEach(function(x){var S=x.divider===" "?"":x.divider;A+=x.syllable+S+"\n"});var w=this.getTextSize.calc(A,"vocalfont","lyric"),C=b.positioning?b.positioning.vocalPosition:"below";d.addCentered(new RelativeElement$1(A,0,w.width,void 0,{type:"lyric",position:C,height:w.height/spacing$9.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))};AbstractEngraver$1.prototype.createNote=function(d,b,A,w){var C=null,x=0,S=0,E=0,P=[],B,k=getDuration(d),$=!1;k===0&&($=!0,k=.25,b=!0);for(var I=Math.floor(Math.log(k)/Math.log(2)),D=0,F=Math.pow(2,I),z=F/2;F<k;D++,F+=z,z/=2);d.startTriplet&&(this.tripletmultiplier=d.tripletMultiplier);var L=k*this.tripletmultiplier;d.rest&&d.rest.type==="multimeasure"&&(L=1),d.rest&&d.rest.type==="invisible-multimeasure"&&(L=this.measureLength*d.rest.text);var H=d.rest?"rest":"note",Q=new AbsoluteElement(d,L,1,H,this.tuneNumber,{durationClassOveride:d.duration*this.tripletmultiplier});if(hint&&Q.setHint(),d.rest){this.measureLength===k&&d.rest.type!=="invisible"&&d.rest.type!=="spacer"&&d.rest.type.indexOf("multimeasure")<0&&(d.rest.type="whole");var Y=addRestToAbsElement(Q,d,k,D,w.voicetotal>1,this.stemdir,A,I,this.voiceScale);C=Y.noteHead,x=Y.roomTaken,S=Y.roomTakenRight}else{var U=this.addNoteToAbcElement(Q,d,D,this.stemdir,this.style,$,I,b,w);U.min!==void 0&&(this.minY=Math.min(U.min,this.minY)),C=U.noteHead,x=U.roomTaken,S=U.roomTakenRight,P=U.additionalLedgers,B=U.dir,E=U.symbolWidth}if(d.lyric!==void 0&&this.addLyric(Q,d),d.gracenotes!==void 0&&(x+=this.addGraceNotes(d,w,Q,C,this.stemHeight*this.voiceScale,this.isBagpipes,x)),d.decoration&&this.decoration.createDecoration(w,d.decoration,Q.top,C?C.w:0,Q,x,B,Q.bottom,d.positioning,this.hasVocals),d.barNumber&&Q.addFixed(new RelativeElement$1(d.barNumber,-10,0,0,{type:"barNumber"})),ledgerLines(Q,d.minpitch,d.maxpitch,d.rest,E,P,B,-2,1),d.chord!==void 0){var G=addChord(this.getTextSize,Q,d,x,S,E,this.jazzchords,this.germanAlphabet);x=G.roomTaken,S=G.roomTakenRight}return d.startTriplet&&(this.triplet=new TripletElem(d.startTriplet,C,{flatBeams:this.flatBeams})),d.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(C),this.triplet&&!d.startTriplet&&!d.endTriplet&&!(d.rest&&d.rest.type==="spacer")&&this.triplet.middleNote(C),Q};AbstractEngraver$1.prototype.addSlursAndTies=function(d,b,A,w,C,x){if(b.endTie&&this.ties.length>0){for(var S=!1,E=0;E<this.ties.length;E++)if(this.ties[E].anchor1&&this.ties[E].anchor1.pitch===A.pitch){this.ties[E].setEndAnchor(A),w.setRange(this.ties[E]),this.ties.splice(E,1),S=!0;break}S||(this.ties[0].setEndAnchor(A),w.setRange(this.ties[0]),this.ties.splice(0,1))}var P=w.voicetotal<2?-1:w.voicenumber;if(b.startTie){var B=new TieElem({anchor1:A,force:this.stemdir==="down"||this.stemdir==="up",stemDir:this.stemdir,isGrace:x,voiceNumber:P,style:b.startTie.style});hint&&B.setHint(),this.ties[this.ties.length]=B,w.addOther(B),d.startTie=!0}var k,$;if(b.endSlur)for(var I=0;I<b.endSlur.length;I++)$=b.endSlur[I],this.slurs[$]?(k=this.slurs[$],k.setEndAnchor(A),w.setRange(k),delete this.slurs[$]):(k=new TieElem({anchor2:A,stemDir:this.stemdir,voiceNumber:P}),hint&&k.setHint(),w.addOther(k)),this.startlimitelem&&k.setStartX(this.startlimitelem);else if(!x)for(var D in this.slurs)this.slurs.hasOwnProperty(D)&&this.slurs[D].addInternalNote(A);if(b.startSlur)for(I=0;I<b.startSlur.length;I++)$=b.startSlur[I].label,k=new TieElem({anchor1:A,stemDir:this.stemdir,voiceNumber:P,style:b.startSlur[I].style}),hint&&k.setHint(),this.slurs[$]=k,w.addOther(k)};AbstractEngraver$1.prototype.addMeasureNumber=function(d,b){var A=this.getTextSize.calc(d,"measurefont","bar-number"),w=0;b.isClef&&(w+=A.width/2);var C=A.width>10&&b.abcelem.type==="treble"?13:11;b.addFixed(new RelativeElement$1(d,w,A.width,C+A.height/spacing$9.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};AbstractEngraver$1.prototype.createBarLine=function(d,b,A){var w=new AbsoluteElement(b,0,10,"bar",this.tuneNumber),C=null,x=0;b.barNumber&&this.addMeasureNumber(b.barNumber,w);var S=b.type==="bar_right_repeat"||b.type==="bar_dbl_repeat",E=b.type!=="bar_left_repeat"&&b.type!=="bar_thick_thin"&&b.type!=="bar_invisible",P=b.type==="bar_right_repeat"||b.type==="bar_dbl_repeat"||b.type==="bar_left_repeat"||b.type==="bar_thin_thick"||b.type==="bar_thick_thin",B=b.type==="bar_left_repeat"||b.type==="bar_thick_thin"||b.type==="bar_thin_thin"||b.type==="bar_dbl_repeat",k=b.type==="bar_left_repeat"||b.type==="bar_dbl_repeat";if(S||k){for(var $ in this.slurs)this.slurs.hasOwnProperty($)&&this.slurs[$].setEndX(w);this.startlimitelem=w}if(S&&(w.addRight(new RelativeElement$1("dots.dot",x,1,7)),w.addRight(new RelativeElement$1("dots.dot",x,1,5)),x+=6),E&&(C=new RelativeElement$1(null,x,1,2,{type:"bar",pitch2:10,linewidth:.6}),w.addRight(C)),b.type==="bar_invisible"&&(C=new RelativeElement$1(null,x,1,2,{type:"none",pitch2:10,linewidth:.6}),w.addRight(C)),b.decoration&&this.decoration.createDecoration(d,b.decoration,12,P?3:1,w,0,"down",2,b.positioning,this.hasVocals),P&&(x+=4,C=new RelativeElement$1(null,x,4,2,{type:"bar",pitch2:10,linewidth:4}),w.addRight(C),x+=5),this.partstartelem&&b.endEnding&&(this.partstartelem.anchor2=C,this.partstartelem=null),B&&(x+=3,C=new RelativeElement$1(null,x,1,2,{type:"bar",pitch2:10,linewidth:.6}),w.addRight(C)),k&&(x+=3,w.addRight(new RelativeElement$1("dots.dot",x,1,7)),w.addRight(new RelativeElement$1("dots.dot",x,1,5))),b.startEnding&&A){var I=this.getTextSize.calc(b.startEnding,"repeatfont","").width;w.minspacing+=I+10,this.partstartelem=new EndingElem(b.startEnding,C,null),d.addOther(this.partstartelem)}return w.extraw-=5,b.chord!==void 0&&addChord(this.getTextSize,w,b,0,0,0,!1,this.germanAlphabet),w};var abstractEngraver=AbstractEngraver$1,svgNS="http://www.w3.org/2000/svg";function Svg$1(d){this.svg=createSvg(),this.currentGroup=[],d.appendChild(this.svg)}Svg$1.prototype.clear=function(){if(this.svg){var d=this.svg.parentNode;this.svg=createSvg(),this.currentGroup=[],d&&(d.innerHTML="",d.appendChild(this.svg))}};Svg$1.prototype.setTitle=function(d){var b=document.createElement("title"),A=document.createTextNode(d);b.appendChild(A),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.setResponsiveWidth=function(d,b){if(this.svg.setAttribute("viewBox","0 0 "+d+" "+b),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var A=this.svg.parentNode.getAttribute("class");A?A.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",A+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var w=b/d*100;this.svg.parentNode.style["padding-bottom"]=w+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}};Svg$1.prototype.setSize=function(d,b){this.svg.setAttribute("width",d),this.svg.setAttribute("height",b)};Svg$1.prototype.setAttribute=function(d,b){this.svg.setAttribute(d,b)};Svg$1.prototype.setScale=function(d){d!==1?(this.svg.style.transform="scale("+d+","+d+")",this.svg.style["-ms-transform"]="scale("+d+","+d+")",this.svg.style["-webkit-transform"]="scale("+d+","+d+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")};Svg$1.prototype.insertStyles=function(d){var b=document.createElementNS(svgNS,"style");b.textContent=d,this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.setParentStyles=function(d){for(var b in d)d.hasOwnProperty(b)&&this.svg.parentNode&&(this.svg.parentNode.style[b]=d[b]);if(this.dummySvg){var A=document.querySelector("body");A.removeChild(this.dummySvg),this.dummySvg=null}};function constructHLine(d,b,A){var w=A-d;return"M "+d+" "+b+" l "+w+" 0 l 0 1 l "+-w+" 0 z "}function constructVLine(d,b,A){var w=A-b;return"M "+d+" "+b+" l 0 "+w+" l 1 0 l 0 "+-w+" z "}Svg$1.prototype.rect=function(d){var b=[],A=d.x,w=d.y,C=d.x+d.width,x=d.y+d.height;return b.push(constructHLine(A,w,C)),b.push(constructHLine(A,x,C)),b.push(constructVLine(C,w,x)),b.push(constructVLine(A,x,w)),this.path({path:b.join(" "),stroke:"none","data-name":d["data-name"]})};Svg$1.prototype.dottedLine=function(d){var b=document.createElementNS(svgNS,"line");b.setAttribute("x1",d.x1),b.setAttribute("x2",d.x2),b.setAttribute("y1",d.y1),b.setAttribute("y2",d.y2),b.setAttribute("stroke",d.stroke),b.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.rectBeneath=function(d){var b=document.createElementNS(svgNS,"rect");b.setAttribute("x",d.x),b.setAttribute("width",d.width),b.setAttribute("y",d.y),b.setAttribute("height",d.height),d.stroke&&b.setAttribute("stroke",d.stroke),d["stroke-opacity"]&&b.setAttribute("stroke-opacity",d["stroke-opacity"]),d.fill&&b.setAttribute("fill",d.fill),d["fill-opacity"]&&b.setAttribute("fill-opacity",d["fill-opacity"]),this.svg.insertBefore(b,this.svg.firstChild)};Svg$1.prototype.text=function(d,b,A){var w=document.createElementNS(svgNS,"text");w.setAttribute("stroke","none");for(var C in b)b.hasOwnProperty(C)&&w.setAttribute(C,b[C]);for(var x=(""+d).split("\n"),S=0;S<x.length;S++){var E=document.createElementNS(svgNS,"tspan");if(E.setAttribute("x",b.x?b.x:0),S!==0&&E.setAttribute("dy","1.2em"),x[S].indexOf("")!==-1){var P=x[S].split("");if(E.textContent=P[0],P[1]){var B=document.createElementNS(svgNS,"tspan");B.setAttribute("dy","-0.3em"),B.setAttribute("style","font-size:0.7em"),B.textContent=P[1],E.appendChild(B)}if(P[2]){var k=P[1]?"0.4em":"0.1em",$=document.createElementNS(svgNS,"tspan");$.setAttribute("dy",k),$.setAttribute("style","font-size:0.7em"),$.textContent=P[2],E.appendChild($)}}else E.textContent=x[S];w.appendChild(E)}return A?A.appendChild(w):this.append(w),w};Svg$1.prototype.guessWidth=function(d,b){var A=this.createDummySvg(),w=this.text(d,b,A),C;try{C=w.getBBox(),isNaN(C.height)||!C.height?C={width:b["font-size"]/2,height:b["font-size"]+2}:C={width:C.width,height:C.height}}catch(x){C={width:b["font-size"]/2,height:b["font-size"]+2}}return A.removeChild(w),C};Svg$1.prototype.createDummySvg=function(){if(!this.dummySvg){this.dummySvg=createSvg();var d=["display: block !important;","height: 1px;","width: 1px;","position: absolute;"];this.dummySvg.setAttribute("style",d.join(""));var b=document.querySelector("body");b.appendChild(this.dummySvg)}return this.dummySvg};var sizeCache={};Svg$1.prototype.getTextSize=function(d,b,A){if(typeof d=="number"&&(d=""+d),!d||d.match(/^\s+$/))return{width:0,height:0};var w;if(d.length<20&&(w=d+JSON.stringify(b),sizeCache[w]))return sizeCache[w];var C=!A;A||(A=this.text(d,b));var x;try{x=A.getBBox(),isNaN(x.height)||!x.height?x=this.guessWidth(d,b):x={width:x.width,height:x.height}}catch(S){x=this.guessWidth(d,b)}return C&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(A):this.svg.removeChild(A)),w&&(sizeCache[w]=x),x};Svg$1.prototype.openGroup=function(d){d=d||{};var b=document.createElementNS(svgNS,"g");return d.klass&&b.setAttribute("class",d.klass),d.fill&&b.setAttribute("fill",d.fill),d.stroke&&b.setAttribute("stroke",d.stroke),d["data-name"]&&b.setAttribute("data-name",d["data-name"]),d.prepend?this.prepend(b):this.append(b),this.currentGroup.unshift(b),b};Svg$1.prototype.closeGroup=function(){var d=this.currentGroup.shift();return d&&d.children.length===0?(d.parentElement.removeChild(d),null):d};Svg$1.prototype.path=function(d){var b=document.createElementNS(svgNS,"path");for(var A in d)d.hasOwnProperty(A)&&(A==="path"?b.setAttributeNS(null,"d",d.path):A==="klass"?b.setAttributeNS(null,"class",d[A]):d[A]!==void 0&&b.setAttributeNS(null,A,d[A]));return this.append(b),b};Svg$1.prototype.pathToBack=function(d){var b=document.createElementNS(svgNS,"path");for(var A in d)d.hasOwnProperty(A)&&(A==="path"?b.setAttributeNS(null,"d",d.path):A==="klass"?b.setAttributeNS(null,"class",d[A]):b.setAttributeNS(null,A,d[A]));return this.prepend(b),b};Svg$1.prototype.lineToBack=function(d){for(var b=document.createElementNS(svgNS,"line"),A=Object.keys(d),w=0;w<A.length;w++)b.setAttribute(A[w],d[A[w]]);return this.prepend(b),b};Svg$1.prototype.append=function(d){this.currentGroup.length>0?this.currentGroup[0].appendChild(d):this.svg.appendChild(d)};Svg$1.prototype.prepend=function(d){this.currentGroup.length>0?this.currentGroup[0].appendChild(d):this.svg.insertBefore(d,this.svg.firstChild)};Svg$1.prototype.setAttributeOnElement=function(d,b){for(var A in b)b.hasOwnProperty(A)&&d.setAttributeNS(null,A,b[A])};Svg$1.prototype.moveElementToChild=function(d,b){d.appendChild(b)};function createSvg(){var d=document.createElementNS(svgNS,"svg");return d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("role","img"),d.setAttribute("fill","currentColor"),d.setAttribute("stroke","currentColor"),d}var svg$5=Svg$1,spacing$8=spacing_1,Svg=svg$5,Renderer$1=function(d){this.paper=new Svg(d),this.controller=null,this.space=3*spacing$8.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};Renderer$1.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()};Renderer$1.prototype.newTune=function(d){this.abctune=d,this.setVerticalSpace(d.formatting),this.isPrint=d.media==="print",this.setPadding(d)};Renderer$1.prototype.setLineThickness=function(d){this.lineThickness=d};Renderer$1.prototype.setPaddingOverride=function(d){this.paddingOverride={top:d.paddingtop,bottom:d.paddingbottom,right:d.paddingright,left:d.paddingleft}};Renderer$1.prototype.setPadding=function(d){function b(A,w,C,x,S){d.formatting[C]!==void 0?A.padding[w]=d.formatting[C]:A.paddingOverride[w]!==void 0?A.padding[w]=A.paddingOverride[w]:A.isPrint?A.padding[w]=x:A.padding[w]=S}b(this,"top","topmargin",38,15),b(this,"bottom","botmargin",38,15),b(this,"left","leftmargin",68,15),b(this,"right","rightmargin",68,15)};Renderer$1.prototype.adjustNonScaledItems=function(d){this.padding.top/=d,this.padding.bottom/=d,this.padding.left/=d,this.padding.right/=d,this.abctune.formatting.headerfont.size/=d,this.abctune.formatting.footerfont.size/=d};Renderer$1.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:26.67+10,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}};Renderer$1.prototype.setVerticalSpace=function(d){d.staffsep!==void 0&&(this.spacing.staffSeparation=d.staffsep*4/3),d.composerspace!==void 0&&(this.spacing.composer=d.composerspace*4/3),d.partsspace!==void 0&&(this.spacing.parts=d.partsspace*4/3),d.textspace!==void 0&&(this.spacing.text=d.textspace*4/3),d.musicspace!==void 0&&(this.spacing.music=d.musicspace*4/3),d.titlespace!==void 0&&(this.spacing.title=d.titlespace*4/3),d.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=d.sysstaffsep*4/3),d.subtitlespace!==void 0&&(this.spacing.subtitle=d.subtitlespace*4/3),d.topspace!==void 0&&(this.spacing.top=d.topspace*4/3),d.vocalspace!==void 0&&(this.spacing.vocal=d.vocalspace*4/3),d.wordsspace!==void 0&&(this.spacing.words=d.wordsspace*4/3)};Renderer$1.prototype.calcY=function(d){return this.y-d*spacing$8.STEP};Renderer$1.prototype.moveY=function(d,b){b===void 0&&(b=1),this.y+=d*b};Renderer$1.prototype.absolutemoveY=function(d){this.y=d};var renderer=Renderer$1;function FreeText$1(d,b,A,w,C,x){var S=d.text;this.rows=[];var E;b&&this.rows.push({move:b});var P=A.calc("textfont","defined-text");if(S==="")this.rows.push({move:P.attr["font-size"]*2});else if(typeof S=="string")this.rows.push({move:P.attr["font-size"]/2}),this.rows.push({left:w,text:S,font:"textfont",klass:"defined-text",anchor:"start",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),E=x.calc(S,"textfont","defined-text"),this.rows.push({move:E.height});else if(S){for(var B=0,k=w,$="textfont",I=0;I<S.length;I++)S[I].font?$=S[I].font:$="textfont",this.rows.push({left:k,text:S[I].text,font:$,klass:"defined-text",anchor:"start",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),E=x.calc(S[I].text,A.calc($,"defined-text").font,"defined-text"),k+=E.width+E.height/2,B=Math.max(B,E.height);this.rows.push({move:B})}else if(d.length===1){var D=C/2;this.rows.push({left:D,text:d[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),E=x.calc(d[0].text,"textfont","defined-text"),this.rows.push({move:E.height})}}var freeText=FreeText$1;function Separator$1(d,b,A){this.rows=[],d&&this.rows.push({move:d}),this.rows.push({separator:b,absElemType:"separator"}),A&&this.rows.push({move:A})}var separator$1=Separator$1;function Subtitle$1(d,b,A,w,C,x){this.rows=[],d&&this.rows.push({move:d});var S=b.titleleft?"start":"middle",E=b.titleleft?C:w;this.rows.push({left:E,text:A.text,font:"subtitlefont",klass:"text subtitle",anchor:S,startChar:A.startChar,endChar:A.endChar,absElemType:"subtitle",name:"subtitle"});var P=x.calc(A.text,"subtitlefont","text subtitle");this.rows.push({move:P.height})}var subtitle=Subtitle$1;function addTextIf$2(d,b,A){if(b.text){b.marginLeft||(b.marginLeft=0),b.klass||(b.klass=""),b.anchor||(b.anchor="start"),b.info||(b.info={startChar:-2,endChar:-2}),b.marginTop&&d.push({move:b.marginTop});var w={left:b.marginLeft,text:b.text,font:b.font,anchor:b.anchor,startChar:b.info.startChar,endChar:b.info.endChar};b.absElemType&&(w.absElemType=b.absElemType),b.inGroup||(w.klass=b.klass),b.name&&(w.name=b.name),d.push(w);var C=A.calc("A",b.font,b.klass),x=b.text.split("\n").length;if(b.text[b.text.length-1]==="\n"&&x--,!b.noMove){var S=C.height*1.1*x;d.push({move:Math.round(S)}),b.marginBottom&&d.push({move:b.marginBottom})}}}var addTextIf_1=addTextIf$2;const addTextIf$1=addTextIf_1;function TopText$1(d,b,A,w,C,x,S,E,P){if(this.rows=[],d.header&&x){var B=P.calc("X","headerfont","abcjs-header abcjs-meta-top").height;addTextIf$1(this.rows,{marginLeft:S,text:d.header.left,font:"headerfont",klass:"header meta-top",marginTop:-B,info:b.header,name:"header"},P),addTextIf$1(this.rows,{marginLeft:S+C/2,text:d.header.center,font:"headerfont",klass:"header meta-top",marginTop:-B,anchor:"middle",info:b.header,name:"header"},P),addTextIf$1(this.rows,{marginLeft:S+C,text:d.header.right,font:"headerfont",klass:"header meta-top",marginTop:-B,anchor:"end",info:b.header,name:"header"},P)}x&&this.rows.push({move:E.top});var k=A.titleleft?"start":"middle",$=A.titleleft?S:S+C/2;if(d.title&&addTextIf$1(this.rows,{marginLeft:$,text:d.title,font:"titlefont",klass:"title meta-top",marginTop:E.title,anchor:k,absElemType:"title",info:b.title,name:"title"},P),w.length)for(var I=0;I<w.length&&w[I].subtitle;)addTextIf$1(this.rows,{marginLeft:$,text:w[I].subtitle.text,font:"subtitlefont",klass:"text meta-top subtitle",marginTop:E.subtitle,anchor:k,absElemType:"subtitle",info:w[I].subtitle,name:"subtitle"},P),I++;if(d.rhythm||d.origin||d.composer){if(this.rows.push({move:E.composer}),d.rhythm&&d.rhythm.length>0){var D=!!(d.composer||d.origin);addTextIf$1(this.rows,{marginLeft:S,text:d.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:D,info:b.rhythm,name:"rhythm"},P)}var F="";d.composer&&(F+=d.composer),d.origin&&(F+=" ("+d.origin+")"),F.length>0&&addTextIf$1(this.rows,{marginLeft:S+C,text:F,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:b.composer,name:"composer"},P)}d.author&&d.author.length>0&&addTextIf$1(this.rows,{marginLeft:S+C,text:d.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:b.author,name:"author"},P),d.partOrder&&d.partOrder.length>0&&addTextIf$1(this.rows,{marginLeft:S,text:d.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:b.partOrder,name:"part-order"},P)}var topText=TopText$1;const addTextIf=addTextIf_1;function BottomText$1(d,b,A,w,C,x){this.rows=[],d.unalignedWords&&d.unalignedWords.length>0&&this.unalignedWords(d.unalignedWords,w,C,x),this.extraText(d,w,C,x),d.footer&&A&&this.footer(d.footer,b,w,x)}BottomText$1.prototype.unalignedWords=function(d,b,A,w){var C="meta-bottom unaligned-words",x="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var S=w.calc("i",x,C);this.rows.push({move:A.words});for(var E=0;E<d.length;E++)if(d[E]==="")this.rows.push({move:S.height});else if(typeof d[E]=="string")addTextIf(this.rows,{marginLeft:b,text:d[E],font:x,klass:C,inGroup:!0,name:"words"},w);else{for(var P=0,B=0,k=0;k<d[E].length;k++){var $=d[E][k],I=$.font?$.font:x;this.rows.push({left:b+B,text:$.text,font:I,anchor:"start"});var D=w.calc($.text,x,C);P=Math.max(P,D.height),B+=D.width,$.text[$.text.length-1]===" "&&(B+=S.width)}this.rows.push({move:P})}this.rows.push({move:S.height*2}),this.rows.push({endGroup:"unalignedWords",absElemType:"unalignedWords",startChar:-1,endChar:-1,name:"unalignedWords"})};BottomText$1.prototype.extraText=function(d,b,A,w){var C="";d.book&&(C+="Book: "+d.book+"\n"),d.source&&(C+="Source: "+d.source+"\n"),d.discography&&(C+="Discography: "+d.discography+"\n"),d.notes&&(C+="Notes: "+d.notes+"\n"),d.transcription&&(C+="Transcription: "+d.transcription+"\n"),d.history&&(C+="History: "+d.history+"\n"),d["abc-copyright"]&&(C+="Copyright: "+d["abc-copyright"]+"\n"),d["abc-creator"]&&(C+="Creator: "+d["abc-creator"]+"\n"),d["abc-edited-by"]&&(C+="Edited By: "+d["abc-edited-by"]+"\n"),C.length>0&&addTextIf(this.rows,{marginLeft:b,text:C,font:"historyfont",klass:"meta-bottom extra-text",marginTop:A.info,absElemType:"extraText",name:"description"},w)};BottomText$1.prototype.footer=function(d,b,A,w){var C="header meta-bottom",x="footerfont";this.rows.push({startGroup:"footer",klass:C}),addTextIf(this.rows,{marginLeft:A,text:d.left,font:x,klass:C,name:"footer"},w),addTextIf(this.rows,{marginLeft:A+b/2,text:d.center,font:x,klass:C,anchor:"middle",name:"footer"},w),addTextIf(this.rows,{marginLeft:A+b,text:d.right,font:x,klass:C,anchor:"end",name:"footer"},w)};var bottomText=BottomText$1,spacing$7=spacing_1;function setupSelection$1(d,b){if(d.rangeHighlight=rangeHighlight,d.dragging)for(var A=0;A<d.selectables.length;A++){var w=d.selectables[A];w.svgEl.getAttribute("selectable")==="true"&&(w.svgEl.setAttribute("tabindex",0),w.svgEl.setAttribute("data-index",A),w.svgEl.addEventListener("keydown",keyboardDown.bind(d)),w.svgEl.addEventListener("keyup",keyboardSelection.bind(d)),w.svgEl.addEventListener("focus",elementFocused.bind(d)))}for(var C=0;C<b.length;C++)b[C].addEventListener("touchstart",mouseDown.bind(d),{passive:!0}),b[C].addEventListener("touchmove",mouseMove.bind(d),{passive:!0}),b[C].addEventListener("touchend",mouseUp.bind(d),{passive:!0}),b[C].addEventListener("mousedown",mouseDown.bind(d)),b[C].addEventListener("mousemove",mouseMove.bind(d)),b[C].addEventListener("mouseup",mouseUp.bind(d))}function getCoord(d){var b=1,A=1,w=d.target.closest("svg"),C=0;w&&w.viewBox&&w.viewBox.baseVal&&(w.viewBox.baseVal.width!==0&&(b=w.viewBox.baseVal.width/w.clientWidth),w.viewBox.baseVal.height!==0&&(A=w.viewBox.baseVal.height/w.clientHeight),C=w.viewBox.baseVal.y);var x=d.target&&d.target.tagName==="svg",S,E;return x?(S=d.offsetX,E=d.offsetY):(S=d.layerX,E=d.layerY),S=S*b,E=E*A,[S,E+C]}function elementFocused(d){this.dragMechanism==="keyboard"&&this.dragYStep!==0&&this.dragTarget&&notifySelect.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,d),this.dragYStep=0}function keyboardDown(d){switch(d.keyCode){case 38:case 40:d.preventDefault()}}function keyboardSelection(d){var b=!1,A=d.target.dataset.index;switch(d.keyCode){case 13:case 32:b=!0,this.dragTarget=this.selectables[A],this.dragIndex=A,this.dragMechanism="keyboard",mouseUp.bind(this)(d);break;case 38:b=!0,this.dragTarget=this.selectables[A],this.dragIndex=A,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*spacing$7.STEP+")"));break;case 40:b=!0,this.dragTarget=this.selectables[A],this.dragIndex=A,this.dragMechanism="keyboard",this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*spacing$7.STEP+")"));break;case 9:this.dragYStep!==0&&mouseUp.bind(this)(d);break}b&&d.preventDefault()}function findElementInHistory(d,b){for(var A=0;A<d.length;A++)if(b.dataset.index===d[A].svgEl.dataset.index)return A;return-1}function findElementByCoord(d,b,A){for(var w=9999999,C=-1,x=0;x<d.selectables.length&&w>0;x++){var S=d.selectables[x];if(d.getDim(S),S.dim.left<b&&S.dim.right>b&&S.dim.top<A&&S.dim.bottom>A)C=x,w=0;else if(S.dim.top<A&&S.dim.bottom>A){var E=Math.min(Math.abs(S.dim.left-b),Math.abs(S.dim.right-b));E<w&&(w=E,C=x)}else if(S.dim.left<b&&S.dim.right>b){var P=Math.min(Math.abs(S.dim.top-A),Math.abs(S.dim.bottom-A));P<w&&(w=P,C=x)}else{var B=Math.abs(b-S.dim.left)>Math.abs(b-S.dim.right)?Math.abs(b-S.dim.right):Math.abs(b-S.dim.left),k=Math.abs(A-S.dim.top)>Math.abs(A-S.dim.bottom)?Math.abs(A-S.dim.bottom):Math.abs(A-S.dim.top),$=Math.sqrt(B*B+k*k);$<w&&(w=$,C=x)}}return C>=0&&w<=12?C:-1}function getBestMatchCoordinates(d,b,A){if(d.x<=b.offsetX&&d.x+d.width>=b.offsetX&&d.y<=b.offsetY&&d.y+d.height>=b.offsetY)return[b.offsetX,b.offsetY];var w=Math.abs(b.layerY/A-b.offsetY);return w<3?[b.offsetX,b.offsetY]:[b.layerX,b.layerY]}function getTarget(d){if(d.tagName==="svg")return d;for(var b=d.getAttribute("selectable");!b;)d.parentElement?(d=d.parentElement,d.tagName==="svg"?b=!0:b=d.getAttribute("selectable")):b=!0;return d}function getMousePosition(d,b){var A,w,C,x=findElementInHistory(d.selectables,getTarget(b.target));return x>=0?(C=getBestMatchCoordinates(d.selectables[x].svgEl.getBBox(),b,d.scale),A=C[0],w=C[1]):(C=getCoord(b),A=C[0],w=C[1],x=findElementByCoord(d,A,w)),{x:A,y:w,clickedOn:x}}function attachMissingTouchEventAttributes(d){if(!(!d||!d.target||!d.touches||d.touches.length<1)){var b=d.target.getBoundingClientRect(),A=d.touches[0].pageX-b.left,w=d.touches[0].pageY-b.top;d.touches[0].offsetX=A,d.touches[0].offsetY=w,d.touches[0].layerX=d.touches[0].pageX,d.touches[0].layerY=d.touches[0].pageY}}function mouseDown(d){var b=d;d.type==="touchstart"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(b=d.touches[0]));var A=getMousePosition(this,b);A.clickedOn>=0&&(d.type==="touchstart"||d.button===0)&&this.selectables[A.clickedOn]&&(this.dragTarget=this.selectables[A.clickedOn],this.dragIndex=A.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:A.x,y:A.y},this.dragging&&this.dragTarget.isDraggable&&(addGlobalClass(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function mouseMove(d){var b=d;if(d.type==="touchmove"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(b=d.touches[0])),this.lastTouchMove=d,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var A=getMousePosition(this,b),w=Math.round((A.y-this.dragMouseStart.y)/spacing$7.STEP);w!==this.dragYStep&&(this.dragYStep=w,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+w*spacing$7.STEP+")"))}}function mouseUp(d){var b=d;d.type==="touchend"&&this.lastTouchMove&&(attachMissingTouchEventAttributes(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(b=this.lastTouchMove.touches[0])),this.dragTarget&&(clearSelection.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),notifySelect.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,b),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),removeGlobalClass(this.renderer.svg,"abcjs-dragging-in-progress"))}function setSelection(d){d>=0&&d<this.selectables.length&&(this.dragTarget=this.selectables[d],this.dragIndex=d,this.dragMechanism="keyboard",mouseUp.bind(this)({target:this.dragTarget.svgEl}))}function notifySelect(d,b,A,w,C){var x=[];if(d.absEl.elemset){for(var S={},E=0;E<d.absEl.elemset.length;E++){var P=d.absEl.elemset[E];if(P)for(var B=P.getAttribute("class").split(" "),k=0;k<B.length;k++)S[B[k]]=!0}for(var $=0;$<Object.keys(S).length;$++)x.push(Object.keys(S)[$])}for(var I={},D=0;D<x.length;D++)findNumber(x[D],"abcjs-v",I,"voice"),findNumber(x[D],"abcjs-l",I,"line"),findNumber(x[D],"abcjs-m",I,"measure");d.staffPos&&(I.staffPos=d.staffPos);for(var F=C.target;F&&F.dataset&&!F.dataset.name&&F.tagName.toLowerCase()!=="svg";)F=F.parentNode;for(var z=C.target;z&&z.dataset&&!z.dataset.index&&z.tagName.toLowerCase()!=="svg";)z=z.parentNode;z&&z.dataset&&(I.name=z.dataset.name,I.clickedName=F.dataset.name,I.parentClasses=z.classList),F&&F.classList&&(I.clickedClasses=F.classList),I.selectableElement=d.svgEl;for(var L=0;L<this.listeners.length;L++)this.listeners[L](d.absEl.abcelem,d.absEl.tuneNumber,x.join(" "),I,{step:b,max:A,index:w,setSelection:setSelection.bind(this)},C)}function findNumber(d,b,A,w){if(d.indexOf(b)===0){var C=d.replace(b,""),x=parseInt(C,10);""+x===C&&(A[w]=x)}}function clearSelection(){for(var d=0;d<this.selected.length;d++)this.selected[d].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function rangeHighlight(d,b){clearSelection.bind(this)();for(var A=0;A<this.staffgroups.length;A++)for(var w=this.staffgroups[A].voices,C=0;C<w.length;C++)for(var x=w[C].children,S=0;S<x.length;S++){var E=x[S].abcelem.startChar,P=x[S].abcelem.endChar;(b>E&&d<P||b===d&&b===P)&&(this.selected[this.selected.length]=x[S],x[S].highlight(void 0,this.selectionColor))}}function getClassSet(d){var b=d.getAttribute("class");b||(b="");for(var A=b.split(" "),w={},C=0;C<A.length;C++)w[A[C]]=!0;return w}function setClassSet(d,b){var A=[];for(var w in b)b.hasOwnProperty(w)&&A.push(w);d.setAttribute("class",A.join(" "))}function addGlobalClass(d,b){if(d){var A=getClassSet(d.svg);A[b]=!0,setClassSet(d.svg,A)}}function removeGlobalClass(d,b){if(d){var A=getClassSet(d.svg);delete A[b],setClassSet(d.svg,A)}}var selection=setupSelection$1;function getBarYAt$3(d,b,A,w,C){return b+(w-b)/(A-d)*(C-d)}var getBarYAt_1=getBarYAt$3,RelativeElement=relativeElement,spacing$6=spacing_1,getBarYAt$2=getBarYAt_1,layoutBeam$1=function(d){if(!(d.elems.length===0||d.allrests)){var b=calcDy(d.stemsUp,d.isgrace),A=d.elems[0],w=d.elems[d.elems.length-1],C=0,x=d.stemsUp?A.abcelem.maxpitch:A.abcelem.minpitch;C=minStem(A,d.stemsUp,x,C),C=minStem(w,d.stemsUp,x,C),C=Math.max(d.stemHeight,C+3);var S=calcYPos(d.average,d.elems.length,C,d.stemsUp,A.abcelem.averagepitch,w.abcelem.averagepitch,d.isflat,d.min,d.max,d.isgrace),E=calcXPos(d.stemsUp,A,w);d.addBeam({startX:E[0],endX:E[1],startY:S[0],endY:S[1],dy:b});for(var P=createAdditionalBeams(d.elems,d.stemsUp,d.beams[0],d.isgrace,b),B=0;B<P.length;B++)d.addBeam(P[B]);createStems(d.elems,d.stemsUp,d.beams[0],b,d.mainNote)}},getDurlog=function(d){return d===void 0?0:Math.floor(Math.log(d)/Math.log(2))};function minStem(d,b,A,w){if(!d.children)return w;for(var C=0;C<d.children.length;C++){var x=d.children[C];b&&x.top!==void 0&&x.c==="flags.ugrace"?w=Math.max(w,x.top-A):!b&&x.bottom!==void 0&&x.c==="flags.ugrace"&&(w=Math.max(w,A-x.bottom+7))}return w}function calcSlant(d,b,A,w){if(w)return 0;var C=d-b,x=A/2;return C>x&&(C=x),C<-x&&(C=-x),C}function calcDy(d,b){var A=d?spacing$6.STEP:-spacing$6.STEP;return b&&(A=A*.4),A}function calcXPos(d,b,A){var w=b.heads[d?0:b.heads.length-1],C=A.heads[d?0:A.heads.length-1],x=w.x;d&&(x+=w.w-.6);var S=C.x;return S+=d?C.w:.6,[x,S]}function calcYPos(d,b,A,w,C,x,S,E,P,B){var k=A-2,$=A-2,I=Math.round(w?Math.max(d+k,P+$):Math.min(d-k,E-$)),D=calcSlant(C,x,b,S),F=I+Math.floor(D/2),z=I+Math.floor(-D/2);return B||(w&&I<6||!w&&I>6)&&(F=6,z=6),[F,z]}function createStems(d,b,A,w,C){for(var x=0;x<d.length;x++){var S=d[x];if(!S.abcelem.rest){var E=!S.addExtra,P=E?C:S,B=S.heads[b?0:S.heads.length-1],k=1/5,$=B.pitch+(b?k:-k),I=b?B.w:0;E||(I+=B.dx);var D=B.x+I,F=getBarYAt$2(A.startX,A.startY,A.endX,A.endY,D),z=b?-.6:.6;b||(F-=w/2/spacing$6.STEP),E&&(I+=S.heads[0].dx),B.c==="noteheads.slash.quarter"&&(b?$+=1:$-=1);var L=new RelativeElement(null,I,0,$,{type:"stem",pitch2:F,linewidth:z});L.setX(P.x),P.addRight(L)}}}function createAdditionalBeams(d,b,A,w,C){for(var x=[],S=[],E=0;E<d.length;E++){var P=d[E];if(!P.abcelem.rest){var B=P.heads[b?0:P.heads.length-1],k=B.x+(b?B.w:0),$=getBarYAt$2(A.startX,A.startY,A.endX,A.endY,k),I=b?-1.5:1.5;w&&(I=I*2/3);var D=P.abcelem.duration;D===0&&(D=.25);for(var F=getDurlog(D);F<-3;F++){var z=-4-F;if(S[z]?S[z].single=!1:S[z]={x:k+(b?-.6:0),y:$+I*(z+1),durlog:F,single:!0},E>0&&P.abcelem.beambr&&P.abcelem.beambr<=z+1){S[z].split||(S[z].split=[S[z].x]);var L=calcXPos(b,d[E-1],P);S[z].split[S[z].split.length-1]>=L[0]&&(L[0]+=P.w),S[z].split.push(L[0]),S[z].split.push(L[1])}}for(var H=S.length-1;H>=0;H--)if(E===d.length-1||getDurlog(d[E+1].abcelem.duration)>-H-4){var Q=k,Y=$+I*(H+1);S[H].single&&(Q=E===0?k+5:k-5,Y=getBarYAt$2(A.startX,A.startY,A.endX,A.endY,Q)+I*(H+1));var U={startX:S[H].x,endX:Q,startY:S[H].y,endY:Y,dy:C};if(S[H].split!==void 0){var G=S[H].split;U.endX<=G[G.length-1]&&(G[G.length-1]-=P.w),G.push(U.endX),U.split=S[H].split}x.push(U),S=S.slice(0,H)}}}return x}var beam$1=layoutBeam$1,getBarYAt$1=getBarYAt_1;function layoutTriplet$1(d){if(d.anchor1&&d.anchor2){d.hasBeam=!!d.anchor1.parent.beam&&d.anchor1.parent.beam===d.anchor2.parent.beam;var b=d.anchor1.parent.beam;if(d.hasBeam&&(b.elems[0]!==d.anchor1.parent||b.elems[b.elems.length-1]!==d.anchor2.parent)&&(d.hasBeam=!1),d.hasBeam){var A=isAbove(b)?d.anchor1.x+d.anchor1.w:d.anchor1.x;d.yTextPos=heightAtMidpoint(A,d.anchor2.x,b),d.yTextPos+=isAbove(b)?3:-2,d.xTextPos=xAtMidpoint(A,d.anchor2.x),d.top=d.yTextPos+1,d.bottom=d.yTextPos-2,isAbove(b)&&(d.endingHeightAbove=4)}else{d.startNote=Math.max(d.anchor1.parent.top,9)+4,d.endNote=Math.max(d.anchor2.parent.top,9)+4,d.anchor1.parent.type==="rest"&&d.anchor2.parent.type!=="rest"?d.startNote=d.endNote:d.anchor2.parent.type==="rest"&&d.anchor1.parent.type!=="rest"&&(d.endNote=d.startNote);for(var w=0,C=0;C<d.middleElems.length;C++)w=Math.max(w,d.middleElems[C].top);w+=4,(w>d.startNote||w>d.endNote)&&(d.startNote=w,d.endNote=w),d.flatBeams&&(d.startNote=Math.max(d.startNote,d.endNote),d.endNote=Math.max(d.startNote,d.endNote)),d.yTextPos=d.startNote+(d.endNote-d.startNote)/2,d.xTextPos=d.anchor1.x+(d.anchor2.x+d.anchor2.w-d.anchor1.x)/2,d.top=d.yTextPos+1}}delete d.middleElems,delete d.flatBeams}function isAbove(d){return d.stemsUp}function heightAtMidpoint(d,b,A){if(A.beams.length===0)return 0;A=A.beams[0];var w=d+(b-d)/2;return getBarYAt$1(A.startX,A.startY,A.endX,A.endY,w)}function xAtMidpoint(d,b){return d+(b-d)/2}var triplet$1=layoutTriplet$1,layoutBeam=beam$1,getBarYAt=getBarYAt_1,layoutTriplet=triplet$1,layoutVoice$1=function(d){for(var b=0;b<d.beams.length;b++)if(d.beams[b].type==="BeamElem"){layoutBeam(d.beams[b]),moveDecorations(d.beams[b]);for(var A=0;A<d.beams[b].elems.length;A++)d.adjustRange(d.beams[b].elems[A])}for(d.staff.specialY.chordLines=setLaneForChord(d.children),b=0;b<d.otherchildren.length;b++){var w=d.otherchildren[b];w.type==="TripletElem"&&(layoutTriplet(w),d.adjustRange(w))}d.staff.top=Math.max(d.staff.top,d.top),d.staff.bottom=Math.min(d.staff.bottom,d.bottom)};function moveDecorations(d){for(var b=1.5,A=0;A<d.elems.length;A++){var w=d.elems[A];if(w.top)for(var C=yAtNote(w,d),x=0;x<w.children.length;x++){var S=w.children[x];if(S.klass==="ornament"&&S.bottom-b<C){var E=C-S.bottom+b;S.bottom+=E,S.top+=E,S.pitch+=E,C=w.top=S.top}}}}function placeInLane(d,b){var A=b.getChordDim();if(A){for(var w=0;w<d.length;w++){var C=d[w]<A.left;if(C){w>0&&b.putChordInLane(w),d[w]=A.right;return}}d.push(A.right),b.putChordInLane(d.length-1)}}function setLaneForChord(d){var b=[0],A=[0],w,C,x;for(w=0;w<d.length;w++){for(C=0;C<d[w].children.length;C++)x=d[w].children[C],x.chordHeightAbove&&placeInLane(b,x);for(C=d[w].children.length-1;C>=0;C--)x=d[w].children[C],x.chordHeightBelow&&placeInLane(A,x)}return(b.length>1||A.length>1)&&setLane(d,b.length),{above:b.length,below:A.length}}function numAnnotationsBelow(d){for(var b=0,A=0;A<d.children.length;A++){var w=d.children[A];w.chordHeightBelow&&b++}return b}function setLane(d,b,A){for(var w=0;w<d.length;w++){numAnnotationsBelow(d[w]);for(var C=0;C<d[w].children.length;C++){var x=d[w].children[C];x.chordHeightAbove&&x.invertLane(b)}}}function yAtNote(d,b){return b=b.beams[0],getBarYAt(b.startX,b.startY,b.endX,b.endY,d.x)}var voice$1=layoutVoice$1,spacing$5=spacing_1,setUpperAndLowerElements$1=function(d,b){for(var A,w=0;w<b.staffs.length;w++){var C=b.staffs[w],x={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};if(d.showDebug&&d.showDebug.indexOf("box")>=0&&(C.originalTop=C.top,C.originalBottom=C.bottom),incTop(C,x,"lyricHeightAbove"),incTop(C,x,"chordHeightAbove",C.specialY.chordLines.above),C.specialY.endingHeightAbove&&(C.specialY.chordHeightAbove?C.top+=2:C.top+=C.specialY.endingHeightAbove+margin,x.endingHeightAbove=C.top),C.specialY.dynamicHeightAbove&&C.specialY.volumeHeightAbove?(C.top+=Math.max(C.specialY.dynamicHeightAbove,C.specialY.volumeHeightAbove)+margin,x.dynamicHeightAbove=C.top,x.volumeHeightAbove=C.top):(incTop(C,x,"dynamicHeightAbove"),incTop(C,x,"volumeHeightAbove")),incTop(C,x,"partHeightAbove"),incTop(C,x,"tempoHeightAbove"),C.specialY.lyricHeightBelow&&(C.specialY.lyricHeightBelow+=d.spacing.vocal/spacing$5.STEP,x.lyricHeightBelow=C.bottom,C.bottom-=C.specialY.lyricHeightBelow+margin),C.specialY.chordHeightBelow){x.chordHeightBelow=C.bottom;var S=C.specialY.chordHeightBelow;C.specialY.chordLines.below&&(S*=C.specialY.chordLines.below),C.bottom-=S+margin}C.specialY.volumeHeightBelow&&C.specialY.dynamicHeightBelow?(x.volumeHeightBelow=C.bottom,x.dynamicHeightBelow=C.bottom,C.bottom-=Math.max(C.specialY.volumeHeightBelow,C.specialY.dynamicHeightBelow)+margin):C.specialY.volumeHeightBelow?(x.volumeHeightBelow=C.bottom,C.bottom-=C.specialY.volumeHeightBelow+margin):C.specialY.dynamicHeightBelow&&(x.dynamicHeightBelow=C.bottom,C.bottom-=C.specialY.dynamicHeightBelow+margin),d.showDebug&&d.showDebug.indexOf("box")>=0&&(C.positionY=x);for(var E=0;E<C.voices.length;E++){var P=b.voices[C.voices[E]];setUpperAndLowerVoiceElements(x,P,d.spacing)}if(A!==void 0){var B=C.top-10,k=A+B,$=d.spacing.systemStaffSeparation/spacing$5.STEP,I=$-k;I>0&&(C.top+=I)}A=2-C.bottom}},margin=1;function incTop(d,b,A,w){if(d.specialY[A]){var C=d.specialY[A];w&&(C*=w),d.top+=C+margin,b[A]=d.top}}function setUpperAndLowerVoiceElements(d,b,A){var w,C;for(w=0;w<b.children.length;w++)C=b.children[w],setUpperAndLowerAbsoluteElements(d,C,A);for(w=0;w<b.otherchildren.length;w++)switch(C=b.otherchildren[w],C.type){case"CrescendoElem":setUpperAndLowerCrescendoElements(d,C);break;case"DynamicDecoration":setUpperAndLowerDynamicElements(d,C);break;case"EndingElem":setUpperAndLowerEndingElements(d,C);break}}function setUpperAndLowerAbsoluteElements(d,b,A){for(var w=0;w<b.children.length;w++){var C=b.children[w];for(var x in b.specialY)b.specialY.hasOwnProperty(x)&&C[x]&&(C.pitch=d[x],C.top===void 0&&(C.type==="TempoElement"?setUpperAndLowerTempoElement(d,C):setUpperAndLowerRelativeElements(d,C,A),b.pushTop(C.top),b.pushBottom(C.bottom)))}}function setUpperAndLowerCrescendoElements(d,b){b.dynamicHeightAbove?b.pitch=d.dynamicHeightAbove:b.pitch=d.dynamicHeightBelow}function setUpperAndLowerDynamicElements(d,b){b.volumeHeightAbove?b.pitch=d.volumeHeightAbove:b.pitch=d.volumeHeightBelow}function setUpperAndLowerEndingElements(d,b){b.pitch=d.endingHeightAbove-2}function setUpperAndLowerTempoElement(d,b){if(b.pitch=d.tempoHeightAbove,b.top=d.tempoHeightAbove,b.bottom=d.tempoHeightAbove,b.note){var A=b.pitch-b.totalHeightInPitches+1;b.note.top=A,b.note.bottom=A;for(var w=0;w<b.note.children.length;w++){var C=b.note.children[w];C.top+=A,C.bottom+=A,C.pitch+=A,C.pitch2!==void 0&&(C.pitch2+=A)}}}function setUpperAndLowerRelativeElements(d,b,A){switch(b.type){case"part":b.top=d.partHeightAbove+b.height,b.bottom=d.partHeightAbove;break;case"text":case"chord":b.chordHeightAbove?(b.top=d.chordHeightAbove,b.bottom=d.chordHeightAbove):(b.top=d.chordHeightBelow,b.bottom=d.chordHeightBelow);break;case"lyric":b.lyricHeightAbove?(b.top=d.lyricHeightAbove,b.bottom=d.lyricHeightAbove):(b.top=d.lyricHeightBelow+A.vocal/spacing$5.STEP,b.bottom=d.lyricHeightBelow+A.vocal/spacing$5.STEP,b.pitch-=A.vocal/spacing$5.STEP);break;case"debug":b.top=d.chordHeightAbove,b.bottom=d.chordHeightAbove;break}(b.pitch===void 0||b.top===void 0)&&console.error("RelativeElement position not set.",b.type,b.pitch,b.top,d)}var setUpperAndLowerElements_1=setUpperAndLowerElements$1,VoiceElement=function d(){};VoiceElement.beginLayout=function(d,b){b.i=0,b.durationindex=0,b.startx=d,b.minx=d,b.nextx=d,b.spacingduration=0};VoiceElement.layoutEnded=function(d){return d.i>=d.children.length};VoiceElement.getNextX=function(d){return Math.max(d.minx,d.nextx)};VoiceElement.getSpacingUnits=function(d){return Math.sqrt(d.spacingduration*8)};VoiceElement.layoutOneItem=function(d,b,A,w,C){var x=A.children[A.i];if(!x)return 0;var S=d-A.minx,E=A.durationindex+x.duration>0?w:0;if(x.abcelem.el_type==="note"&&!x.abcelem.rest&&A.voicenumber!==0&&C){var P=C.children[C.i],B=P&&(x.abcelem.maxpitch<=P.abcelem.maxpitch+1&&x.abcelem.maxpitch>=P.abcelem.minpitch-1||x.abcelem.minpitch<=P.abcelem.maxpitch+1&&x.abcelem.minpitch>=P.abcelem.minpitch-1);if(B&&x.abcelem.minpitch===P.abcelem.minpitch&&x.abcelem.maxpitch===P.abcelem.maxpitch&&P.heads&&P.heads.length>0&&x.heads&&x.heads.length>0&&P.heads[0].c===x.heads[0].c&&(B=!1),B){var k=P.heads&&P.heads.length>0?P.heads[0].realWidth:P.fixed.w;x.adjustedWidth||(x.adjustedWidth=k+x.w),x.w=x.adjustedWidth;for(var $=0;$<x.children.length;$++){var I=x.children[$];I.name.indexOf("accidental")<0&&(I.adjustedWidth||(I.adjustedWidth=I.dx+k),I.dx=I.adjustedWidth)}}}var D=getExtraWidth(x,E);return S<D&&(A.i===0||x.type!=="bar"||A.children[A.i-1].type!=="part"&&A.children[A.i-1].type!=="tempo")&&(d+=D-S),x.setX(d),A.spacingduration=x.duration,A.minx=d+getMinWidth(x),A.i!==A.children.length-1&&(A.minx+=x.minspacing),this.updateNextX(d,b,A),d};VoiceElement.shiftRight=function(d,b){var A=b.children[b.i];A&&(A.setX(A.x+d),b.minx+=d,b.nextx+=d)};VoiceElement.updateNextX=function(d,b,A){A.nextx=d+b*Math.sqrt(A.spacingduration*8)};VoiceElement.updateIndices=function(d){this.layoutEnded(d)||(d.durationindex+=d.children[d.i].duration,d.children[d.i].type==="bar"&&(d.durationindex=Math.round(d.durationindex*64)/64),d.i++)};function getExtraWidth(d,b){var A=0;return(d.type==="note"||d.type==="bar")&&(A=b),-d.extraw+A}function getMinWidth(d){return d.w}var voiceElements=VoiceElement,layoutVoiceElements=voiceElements;function checkLastBarX(d){for(var b=0,A=0;A<d.length;A++){var w=d[A];if(w.children.length>0){var C=w.children.length-1,x=w.children[C];if(x.abcelem.el_type==="bar"){var S=x.children[0].x;S>b?b=S:x.children[0].x=b}}}}var layoutStaffGroup$1=function(d,b,A,w,C){var x=1e-7,S=0,E=1e3,P=C;w.startx=P;var B,k=0;for(A&&console.log("init layout",d),B=0;B<w.voices.length;B++)layoutVoiceElements.beginLayout(P,w.voices[B]);for(var $=0;!finished(w.voices);){for(k=null,B=0;B<w.voices.length;B++)!layoutVoiceElements.layoutEnded(w.voices[B])&&(!k||getDurationIndex(w.voices[B])<k)&&(k=getDurationIndex(w.voices[B]));var I=[],D=[];for(B=0;B<w.voices.length;B++){var F=getDurationIndex(w.voices[B]);F-k>x?D.push(w.voices[B]):I.push(w.voices[B])}$=0;var z=0;for(B=0;B<I.length;B++)layoutVoiceElements.getNextX(I[B])>P&&(P=layoutVoiceElements.getNextX(I[B]),$=layoutVoiceElements.getSpacingUnits(I[B]),z=I[B].spacingduration);S+=$,E=Math.min(E,$),A&&console.log("currentduration: ",k,S,E);var L=void 0;for(B=0;B<I.length;B++){var H=I[B];H.voicenumber===0&&(L=B);var Q=L!==void 0&&I[L].voicenumber!==H.voicenumber?I[L]:void 0;isSameStaff(H,Q)||(Q=void 0);var Y=layoutVoiceElements.layoutOneItem(P,d,H,b.minPadding,Q),U=Y-P;if(U>0){P=Y;for(var G=0;G<B;G++)layoutVoiceElements.shiftRight(U,I[G])}}for(B=0;B<D.length;B++)D[B].spacingduration-=z,layoutVoiceElements.updateNextX(P,d,D[B]);for(B=0;B<I.length;B++){var W=I[B];layoutVoiceElements.updateIndices(W)}}for(B=0;B<w.voices.length;B++)layoutVoiceElements.getNextX(w.voices[B])>P&&(P=layoutVoiceElements.getNextX(w.voices[B]),$=layoutVoiceElements.getSpacingUnits(w.voices[B]));return checkLastBarX(w.voices),S+=$,w.setWidth(P),{spacingUnits:S,minSpace:E}};function finished(d){for(var b=0;b<d.length;b++)if(!layoutVoiceElements.layoutEnded(d[b]))return!1;return!0}function getDurationIndex(d){return d.durationindex-(d.children[d.i]&&d.children[d.i].duration>0?0:5e-7)}function isSameStaff(d,b){return!d||!d.staff||!d.staff.voices||d.staff.voices.length===0||!b||!b.staff||!b.staff.voices||b.staff.voices.length===0?!1:d.staff.voices[0]===b.staff.voices[0]}var staffGroup$1=layoutStaffGroup$1;function getLeftEdgeOfStaff$1(d,b,A,w,C){var x=d.padding.left,S=0,E,P;for(E=0;E<A.length;E++)A[E].header&&(P=b.calc(A[E].header,"voicefont",""),S=Math.max(S,P.width));if(S=addBraceSize(S,w,b),S=addBraceSize(S,C,b),S){var B=b.calc("A","voicefont","");S+=B.width}x+=S;var k=0;return k=setBraceLocation(w,x,k),k=setBraceLocation(C,x,k),x+k}function addBraceSize(d,b,A){if(b){for(var w=0;w<b.length;w++)if(b[w].header){var C=A.calc(b[w].header,"voicefont","");d=Math.max(d,C.width)}}return d}function setBraceLocation(d,b,A){if(d)for(var w=0;w<d.length;w++)setLocation(b,d[w]),A=Math.max(A,d[w].getWidth());return A}function setLocation(d,b){b.x=d}var getLeftEdgeOfStaff_1=getLeftEdgeOfStaff$1,layoutVoice=voice$1,setUpperAndLowerElements=setUpperAndLowerElements_1,layoutStaffGroup=staffGroup$1,getLeftEdgeOfStaff=getLeftEdgeOfStaff_1,layout$2=function(d,b,A,w){var C,x,S=A;for(C=0;C<b.lines.length;C++)x=b.lines[C],x.staff&&(setXSpacing(d,A,w,x.staffGroup,b.formatting,C===b.lines.length-1,!1),x.staffGroup.w>S&&(S=x.staffGroup.w));for(C=0;C<b.lines.length;C++)if(x=b.lines[C],x.staffGroup&&x.staffGroup.voices){for(var E=0;E<x.staffGroup.voices.length;E++)layoutVoice(x.staffGroup.voices[E]);setUpperAndLowerElements(d,x.staffGroup)}for(C=0;C<b.lines.length;C++)x=b.lines[C],x.staffGroup&&x.staffGroup.setHeight();return S},setXSpacing=function(d,b,A,w,C,x,S){for(var E=getLeftEdgeOfStaff(d,w.getTextSize,w.voices,w.brace,w.bracket),P=A,B=0;B<8;B++){var k=layoutStaffGroup(P,d,S,w,E);if(P=calcHorizontalSpacing(x,C.stretchlast,b+d.padding.left,w.w,P,k.spacingUnits,k.minSpace,d.padding.left+d.padding.right),S&&console.log("setXSpace",B,w.w,P,w.minspace),P===null)break}centerWholeRests(w.voices)};function calcHorizontalSpacing(d,b,A,w,C,x,S,E){if(d)if(b===void 0){if(w/A<.66)return null}else{var P=1-(w+E)/A,B=P<b;if(!B)return null}if(Math.abs(A-w)<2)return null;var k=x*C,$=w-k;return x>0?(C=(A-$)/x,C*S>50&&(C=50/S),C):null}function centerWholeRests(d){for(var b=0;b<d.length;b++)for(var A=d[b],w=1;w<A.children.length-1;w++){var C=A.children[w];if(C.abcelem.rest&&(C.abcelem.rest.type==="whole"||C.abcelem.rest.type==="multimeasure")){var x=A.children[w-1],S=A.children[w+1];C.center(x,S)}}}var layout_1=layout$2,Classes$1=function d(b){this.shouldAddClasses=b.shouldAddClasses,this.reset()};Classes$1.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null};Classes$1.prototype.incrLine=function(){this.lineNumber===null?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null};Classes$1.prototype.incrVoice=function(){this.voiceNumber===null?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null};Classes$1.prototype.isInMeasure=function(){return this.measureNumber!==null};Classes$1.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null};Classes$1.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0};Classes$1.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0};Classes$1.prototype.incrNote=function(){this.noteNumber++};Classes$1.prototype.measureTotal=function(){for(var d=0,b=0;b<this.lineNumber;b++)d+=this.measureTotalPerLine[b]?this.measureTotalPerLine[b]:0;return this.measureNumber&&(d+=this.measureNumber),d};Classes$1.prototype.getCurrent=function(d){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}};Classes$1.prototype.generate=function(d){if(!this.shouldAddClasses)return"";var b=[];if(d&&d.length>0&&b.push(d),d==="tab-number")return b.join(" ");if(d==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&b.push("l"+this.lineNumber),this.measureNumber!==null&&b.push("m"+this.measureNumber),this.measureNumber!==null&&b.push("mm"+this.measureTotal()),this.voiceNumber!==null&&b.push("v"+this.voiceNumber),d&&(d.indexOf("note")>=0||d.indexOf("rest")>=0||d.indexOf("lyric")>=0)&&this.noteNumber!==null&&b.push("n"+this.noteNumber),b.length>0){b=b.join(" "),b=b.split(" ");for(var A=0;A<b.length;A++)b[A].indexOf("abcjs-")!==0&&b[A].length>0&&(b[A]="abcjs-"+b[A])}return b.join(" ")};var classes$2=Classes$1,GetFontAndAttr$1=function d(b,A){this.formatting=b,this.classes=A};GetFontAndAttr$1.prototype.updateFonts=function(d){d.gchordfont&&(this.formatting.gchordfont=d.gchordfont),d.tripletfont&&(this.formatting.tripletfont=d.tripletfont),d.annotationfont&&(this.formatting.annotationfont=d.annotationfont),d.vocalfont&&(this.formatting.vocalfont=d.vocalfont)};GetFontAndAttr$1.prototype.calc=function(d,b){var A;typeof d=="string"?(A=this.formatting[d],A?A={face:A.face,size:Math.round(A.size*4/3),decoration:A.decoration,style:A.style,weight:A.weight,box:A.box}:A={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):A={face:d.face,size:Math.round(d.size*4/3),decoration:d.decoration,style:d.style,weight:d.weight,box:d.box};var w=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;A.padding=A.size*w;var C={"font-size":A.size,"font-style":A.style,"font-family":A.face,"font-weight":A.weight,"text-decoration":A.decoration,class:this.classes.generate(b)};return{font:A,attr:C}};var getFontAndAttr=GetFontAndAttr$1,GetTextSize$1=function d(b,A){this.getFontAndAttr=b,this.svg=A};GetTextSize$1.prototype.updateFonts=function(d){this.getFontAndAttr.updateFonts(d)};GetTextSize$1.prototype.attr=function(d,b){return this.getFontAndAttr.calc(d,b)};GetTextSize$1.prototype.calc=function(d,b,A,w){var C;typeof b=="string"?C=this.attr(b,A):C={font:{face:b.face,size:b.size,decoration:b.decoration,style:b.style,weight:b.weight},attr:{"font-size":b.size,"font-style":b.style,"font-family":b.face,"font-weight":b.weight,"text-decoration":b.decoration,class:this.getFontAndAttr.classes.generate(A)}};var x=this.svg.getTextSize(d,C.attr,w);return C.font.box?{height:x.height+C.font.padding*4,width:x.width+C.font.padding*4}:x};GetTextSize$1.prototype.baselineToCenter=function(d,b,A,w,C){var x=this.calc(d,b,A).height,S=this.attr(b,A).font.size;return x*.5+(C-w-2)*S};var getTextSize=GetTextSize$1,sprintf$7=function(){for(var d=0,b,A=arguments[d++],w=[],C,x,S,E;A;){if(C=/^[^\x25]+/.exec(A))w.push(C[0]);else if(C=/^\x25{2}/.exec(A))w.push("%");else if(C=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(A)){if((b=arguments[C[1]||d++])==null||b==null)throw"Too few arguments.";if(/[^s]/.test(C[7])&&typeof b!="number")throw"Expecting number but found "+typeof b;switch(C[7]){case"b":b=b.toString(2);break;case"c":b=String.fromCharCode(b);break;case"d":b=parseInt(b);break;case"e":b=C[6]?b.toExponential(C[6]):b.toExponential();break;case"f":b=C[6]?parseFloat(b).toFixed(C[6]):parseFloat(b);break;case"o":b=b.toString(8);break;case"s":b=(b=String(b))&&C[6]?b.substring(0,C[6]):b;break;case"u":b=Math.abs(b);break;case"x":b=b.toString(16);break;case"X":b=b.toString(16).toUpperCase();break}b=/[def]/.test(C[7])&&C[2]&&b>0?"+"+b:b,S=C[3]?C[3]=="0"?"0":C[3][1]:" ",E=C[5]-String(b).length,x=C[5]?str_repeat(S,E):"",w.push(C[4]?b+x:x+b)}else throw"Huh ?!";A=A.substring(C[0].length)}return w.join("")},sprintf_1=sprintf$7;function roundNumber$a(d){return parseFloat(d.toFixed(2))}var roundNumber_1=roundNumber$a,roundNumber$9=roundNumber_1;function renderText$8(d,b,A){var w=b.y;if(b.lane){var C=b.dim.font.size*.25;w+=(b.dim.font.size+C)*b.lane}var x;b.dim?(x=b.dim,x.attr.class=b.klass):x=d.controller.getFontAndAttr.calc(b.type,b.klass),b.anchor&&(x.attr["text-anchor"]=b.anchor),x.attr.x=b.x,x.attr.y=w,b.centerVertically||(x.attr.y+=x.font.size),b.type==="debugfont"&&(console.log("Debug msg: "+b.text),x.attr.stroke="#ff0000"),b.cursor&&(x.attr.cursor=b.cursor);var S=b.text.replace(/\n\n/g,"\n \n");S=S.replace(/^\n/," \n"),x.font.box&&(A||d.paper.openGroup({klass:x.attr.class,fill:d.foregroundColor,"data-name":b.name}),x.attr["text-anchor"]==="end"?x.attr.x-=x.font.padding:x.attr["text-anchor"]==="start"&&(x.attr.x+=x.font.padding),x.attr.y+=x.font.padding,delete x.attr.class),b.noClass&&delete x.attr.class,x.attr.x=roundNumber$9(x.attr.x),x.attr.y=roundNumber$9(x.attr.y),b.name&&(x.attr["data-name"]=b.name);var E=d.paper.text(S,x.attr);if(x.font.box){var P=E.getBBox(),B=0;x.attr["text-anchor"]==="middle"?B=P.width/2+x.font.padding:x.attr["text-anchor"]==="end"&&(B=P.width+x.font.padding*2);var k=0;b.centerVertically&&(k=P.height-x.font.padding),d.paper.rect({"data-name":"box",x:Math.round(b.x-B),y:Math.round(w-k),width:Math.round(P.width+x.font.padding*2),height:Math.round(P.height+x.font.padding*2)}),A||(E=d.paper.closeGroup())}return E}var text=renderText$8,sprintf$6=sprintf_1,spacing$4=spacing_1,renderText$7=text;function drawBrace$1(d,b,A){var w=b.startVoice.staff.absoluteY-spacing$4.STEP*10;return b.endVoice&&b.endVoice.staff?b.endY=b.endVoice.staff.absoluteY-spacing$4.STEP*2:b.lastContinuedVoice&&b.lastContinuedVoice.staff?b.endY=b.lastContinuedVoice.staff.absoluteY-spacing$4.STEP*2:b.endY=b.startVoice.staff.absoluteY-spacing$4.STEP*2,draw$3(d,b.x,w,b.endY,b.type,b.header,A)}function straightPath(d,b,A,w,C){b+=spacing$4.STEP;var x=spacing$4.STEP*.75,S=spacing$4.STEP*.75,E=w-A,P=sprintf$6("M %f %f l %f %f l %f %f l %f %f z",b,A-S,0,E+S*2,x,0,0,-(E+S*2)),B=spacing$4.STEP*2,k=spacing$4.STEP;return P+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+x,A-S,B*.6,k*.2,B,-k,-B*.1,k*.3,-B,k+spacing$4.STEP),P+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+x,A+S+E,B*.6,-k*.2,B,k,-B*.1,-k*.3,-B,-k-spacing$4.STEP),d.paper.path({path:P,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(C),"data-name":C})}function curvyPath(d,b,A,w,C){var x=w-A,S=curve(b,A,[7.5,-8,21,0,18.5,-10.5,7.5],[0,x/5.5,x/3.14,x/2,x/2.93,x/4.88,0]);return S+=curve(b,A,[0,17.5,-7.5,6.6,-5,20,0],[x/2,x/1.46,x/1.22,x,x/1.19,x/1.42,x/2]),d.paper.path({path:S,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(C),"data-name":C})}function curve(d,b,A,w){return sprintf$6("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",d+A[0],b+w[0],d+A[1],b+w[1],d+A[2],b+w[2],d+A[3],b+w[3],d+A[4],b+w[4],d+A[5],b+w[5],d+A[6],b+w[6])}var draw$3=function(d,b,A,w,C,x,S){var E;if(x){d.paper.openGroup({klass:d.controller.classes.generate("staff-extra voice-name"),"data-name":C});var P=A+(w-A)/2;P=P-d.controller.getTextSize.baselineToCenter(x,"voicefont","staff-extra voice-name",0,1),renderText$7(d,{x:d.padding.left,y:P,text:x,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return C==="brace"?E=curvyPath(d,b,A,w,C):C==="bracket"&&(E=straightPath(d,b,A,w,C)),x&&(E=d.paper.closeGroup()),S.wrapSvgEl({el_type:C,startChar:-1,endChar:-1},E),E},brace=drawBrace$1;function printPath$5(d,b,A){var w=d.paper.path(b);return w}var printPath_1=printPath$5,sprintf$5=sprintf_1,printPath$4=printPath_1,roundNumber$8=roundNumber_1;function drawGlissando$1(d,b,A){(!b.anchor1||!b.anchor2||!b.anchor1.heads||!b.anchor2.heads||b.anchor1.heads.length===0||b.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var w=4,C=d.calcY(b.anchor1.heads[0].pitch),x=d.calcY(b.anchor2.heads[0].pitch),S=b.anchor1.x+b.anchor1.w/2,E=b.anchor2.x+b.anchor2.w/2,P=lineLength(S,C,E,x),B=b.anchor1.w/2+w,k=b.anchor2.w/2+w,$=slope(S,C,E,x),I=getY$1(C,$,B);getY$1(x,$,-k);var D=numSquigglies(P-B-k),F=drawSquiggly(d,S+B,I,D,$);return A.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},F),[F]}function lineLength(d,b,A,w){var C=A-d,x=w-b;return Math.sqrt(C*C+x*x)}function slope(d,b,A,w){return(w-b)/(A-d)}function getY$1(d,b,A){return roundNumber$8(d+A*b)}function numSquigglies(d){var b=5;return Math.max(2,Math.floor((d-b*2)/6))}var leftStart=[[3.5,-4.8]],right=[[1.5,-1],[.3,-.3],[-3.5,3.8]],leftEnd=[[-1.5,2]],top=[[3,4],[3,-4]],bottom=[[-3,4],[-3,-4]];function segment(d,b){for(var A="",w=0;w<d.length;w++)A+="l"+d[w][0]+" "+getY$1(d[w][1],b,d[w][0]);return A}var drawSquiggly=function(d,b,A,w,C){var x=sprintf$5("M %f %f",b,A);x+=segment(leftStart,C);var S;for(S=0;S<w;S++)x+=segment(top,C);for(x+=segment(right,C),S=0;S<w;S++)x+=segment(bottom,C);return x+=segment(leftEnd,C)+"z",printPath$4(d,{path:x,highlight:"stroke",stroke:d.foregroundColor,class:d.controller.classes.generate("decoration"),"data-name":"glissando"})},glissando=drawGlissando$1,sprintf$4=sprintf_1,printPath$3=printPath_1,roundNumber$7=roundNumber_1;function drawCrescendo$1(d,b,A){b.pitch===void 0&&window.console.error("Crescendo Element y-coordinate not set.");var w=d.calcY(b.pitch)+4,C=8,x=b.anchor1?b.anchor1.x:0,S=b.anchor2?b.anchor2.x:800,E;return b.dir==="<"?E=drawLine$1(d,w+C/2,w,w+C/2,w+C,x,S):E=drawLine$1(d,w,w+C/2,w+C,w+C/2,x,S),A.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},E),[E]}var drawLine$1=function(d,b,A,w,C,x,S){b=roundNumber$7(b),A=roundNumber$7(A),w=roundNumber$7(w),C=roundNumber$7(C),x=roundNumber$7(x),S=roundNumber$7(S);var E=sprintf$4("M %f %f L %f %f M %f %f L %f %f",x,b,S,A,x,w,S,C);return printPath$3(d,{path:E,highlight:"stroke",stroke:d.foregroundColor,class:d.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})},crescendo=drawCrescendo$1,roundNumber$6=roundNumber_1;function Group(){this.ingroup=!1}Group.prototype.beginGroup=function(d,b){this.paper=d,this.controller=b,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()};Group.prototype.isInGroup=function(){return this.ingroup};Group.prototype.addPath=function(d){if(d=d||[],d.length!==0){d[0][0]="m",d[0][1]=roundNumber$6(d[0][1]-this.lastM[0]),d[0][2]=roundNumber$6(d[0][2]-this.lastM[1]),this.lastM[0]+=d[0][1],this.lastM[1]+=d[0][2],this.path.push(d[0]);for(var b=1,A=d.length;b<A;b++)d[b][0]==="m"&&(this.lastM[0]+=d[b][1],this.lastM[1]+=d[b][2]),this.path.push(d[b])}};Group.prototype.endGroup=function(d,b){this.ingroup=!1;for(var A="",w=0;w<this.path.length;w++)A+=this.path[w].join(" ");this.path=[];var C=this.paper.closeGroup();return C&&(C.setAttribute("class",this.controller.classes.generate(d)),C.setAttribute("fill",this.controller.renderer.foregroundColor),C.setAttribute("stroke","none"),C.setAttribute("data-name",b)),C};var elementGroup$3=new Group,groupElements=elementGroup$3,renderText$6=text,glyphs$1=glyphs_1,elementGroup$2=groupElements;function printSymbol$2(d,b,A,w,C){var x,S;if(!w)return null;if(w.length>1&&w.indexOf(".")<0){var E=elementGroup$2.isInGroup()?"":C.klass;d.paper.openGroup({"data-name":C.name,klass:E});for(var P=0,B=0;B<w.length;B++){var k=w[B];S=glyphs$1.getYCorr(k),x=glyphs$1.printSymbol(b+P,d.calcY(A+S),k,d.paper,{stroke:C.stroke,fill:C.fill}),x?B<w.length-1&&(P+=kernSymbols(k,w[B+1],glyphs$1.getSymbolWidth(k))):renderText$6(d,{x:b,y:d.y,text:"no symbol:"+w,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}var $=d.paper.closeGroup();return $}else return S=glyphs$1.getYCorr(w),elementGroup$2.isInGroup()?x=glyphs$1.printSymbol(b,d.calcY(A+S),w,d.paper,{"data-name":C.name}):x=glyphs$1.printSymbol(b,d.calcY(A+S),w,d.paper,{klass:C.klass,stroke:C.stroke,fill:C.fill,"data-name":C.name}),x||(renderText$6(d,{x:b,y:d.y,text:"no symbol:"+w,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}function kernSymbols(d,b,A){var w=A;return d==="f"&&b==="f"&&(w=w*2/3),d==="p"&&b==="p"&&(w=w*5/6),d==="f"&&b==="z"&&(w=w*5/8),w}var printSymbol_1=printSymbol$2,printSymbol$1=printSymbol_1;function drawDynamics$1(d,b,A){b.pitch===void 0&&window.console.error("Dynamic Element y-coordinate not set.");var w=1,C=1,x=printSymbol$1(d,b.anchor.x,b.pitch,b.dec,{scalex:w,scaley:C,klass:d.controller.classes.generate("decoration dynamics"),fill:d.foregroundColor,stroke:"none",name:"dynamics"});return A.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:b.dec},x),[x]}var dynamics=drawDynamics$1,sprintf$3=sprintf_1,renderText$5=text,printPath$2=printPath_1,roundNumber$5=roundNumber_1;function drawTriplet$1(d,b,A){d.paper.openGroup({klass:d.controller.classes.generate("triplet "+b.durationClass),"data-name":"triplet"}),b.hasBeam||drawBracket(d,b.anchor1.x,b.startNote,b.anchor2.x+b.anchor2.w,b.endNote),renderText$5(d,{x:b.xTextPos,y:d.calcY(b.yTextPos-1),text:""+b.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+b.number},!0);var w=d.paper.closeGroup();return A.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},w),w}function drawLine(d,b,A,w){return sprintf$3("M %f %f L %f %f",roundNumber$5(d),roundNumber$5(b),roundNumber$5(A),roundNumber$5(w))}function drawBracket(d,b,A,w,C){A=d.calcY(A),C=d.calcY(C);var x=5,S="";S+=drawLine(b,A,b,A+x),S+=drawLine(w,C,w,C+x);var E=b+(w-b)/2,P=8,B=(C-A)/(w-b),k=E-P,$=A+(k-b)*B;S+=drawLine(b,A,k,$);var I=E+P,D=A+(I-b)*B;S+=drawLine(I,D,w,C),printPath$2(d,{path:S,stroke:d.foregroundColor,"data-name":"triplet-bracket"})}var triplet=drawTriplet$1,sprintf$2=sprintf_1,renderText$4=text,printPath$1=printPath_1,roundNumber$4=roundNumber_1;function drawEnding$1(d,b,A,w,C){b.pitch===void 0&&window.console.error("Ending Element y-coordinate not set.");var x=roundNumber$4(d.calcY(b.pitch)),S=20,E="";b.anchor1&&(A=roundNumber$4(b.anchor1.x+b.anchor1.w),E+=sprintf$2("M %f %f L %f %f ",A,x,A,roundNumber$4(x+S))),b.anchor2&&(w=roundNumber$4(b.anchor2.x),E+=sprintf$2("M %f %f L %f %f ",w,x,w,roundNumber$4(x+S))),E+=sprintf$2("M %f %f L %f %f ",A,x,w,x),d.paper.openGroup({klass:d.controller.classes.generate("ending"),"data-name":"ending"}),printPath$1(d,{path:E,stroke:d.foregroundColor,fill:d.foregroundColor,"data-name":"line"}),b.anchor1&&renderText$4(d,{x:roundNumber$4(A+5),y:roundNumber$4(d.calcY(b.pitch-.5)),text:b.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:b.text});var P=d.paper.closeGroup();return C.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},P),[P]}var ending=drawEnding$1,sprintf$1=sprintf_1,roundNumber$3=roundNumber_1;function drawTie$1(d,b,A,w,C){layout$1(b,A,w);var x="";b.anchor1?x+="abcjs-start-m"+b.anchor1.parent.counters.measure+"-n"+b.anchor1.parent.counters.note:x+="abcjs-start-edge",b.anchor2?x+=" abcjs-end-m"+b.anchor2.parent.counters.measure+"-n"+b.anchor2.parent.counters.note:x+=" abcjs-end-edge",b.hint&&(x="abcjs-hint");var S=b.fixedY?1.5:0,E=drawArc(d,b.startX,b.endX,b.startY+S,b.endY+S,b.above,x,b.isTie,b.dotted);return C.wrapSvgEl({el_type:"slur",startChar:-1,endChar:-1},E),[E]}var layout$1=function(d,b,A){!d.anchor1||!d.anchor2||d.anchor1.pitch===d.anchor2.pitch&&d.internalNotes.length===0?d.isTie=!0:d.isTie=!1,d.isTie?(d.calcTieDirection(),d.calcX(b,A),d.calcTieY()):(d.calcSlurDirection(),d.calcX(b,A),d.calcSlurY()),d.avoidCollisionAbove()},drawArc=function(d,b,A,w,C,x,S,E,P){var B=E?1.2:1.5;b=roundNumber$3(b+6),A=roundNumber$3(A+4),w=w+(x?B:-B),C=C+(x?B:-B);var k=roundNumber$3(d.calcY(w)),$=roundNumber$3(d.calcY(C)),I=A-b,D=$-k,F=Math.sqrt(I*I+D*D),z=I/F,L=D/F,H=F/3.5,Q=E?10:25,Y=(x?-1:1)*Math.min(Q,Math.max(4,H)),U=roundNumber$3(b+H*z-Y*L),G=roundNumber$3(k+H*L+Y*z),W=roundNumber$3(A-H*z-Y*L),K=roundNumber$3($-H*L+Y*z),X=2;S?S+=" slur":S="slur",S+=E?" tie":" legato";var Z;if(P){S+=" dotted";var oe=sprintf$1("M %f %f C %f %f %f %f %f %f",b,k,U,G,W,K,A,$);Z=d.paper.path({path:oe,stroke:d.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:d.controller.classes.generate(S),"data-name":E?"tie":"slur"})}else{var he=sprintf$1("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",b,k,U,G,W,K,A,$,roundNumber$3(W-X*L),roundNumber$3(K+X*z),roundNumber$3(U-X*L),roundNumber$3(G+X*z),b,k);Z=d.paper.path({path:he,stroke:"none",fill:d.foregroundColor,class:d.controller.classes.generate(S),"data-name":E?"tie":"slur"})}return Z},tie=drawTie$1,printPath=printPath_1,roundNumber$2=roundNumber_1;function drawBeam$1(d,b){if(b.beams.length!==0){for(var A="",w=0;w<b.beams.length;w++){var C=b.beams[w];if(C.split){for(var x=getSlope(d,C.startX,C.startY,C.endX,C.endY),S=[],E=0;E<C.split.length;E+=2)S.push([C.split[E],C.split[E+1]]);for(E=0;E<S.length;E++){var P=getY(C.startX,C.startY,x,S[E][0]),B=getY(C.startX,C.startY,x,S[E][1]);A+=draw$2(d,S[E][0],P,S[E][1],B,C.dy)}}else A+=draw$2(d,C.startX,C.startY,C.endX,C.endY,C.dy)}var k=("abcjs-d"+b.duration).replace(/\./g,"-"),$=d.controller.classes.generate("beam-elem "+k),I=printPath(d,{path:A,stroke:"none",fill:d.foregroundColor,class:$});return[I]}}function draw$2(d,b,A,w,C,x){A=roundNumber$2(d.calcY(A)),C=roundNumber$2(d.calcY(C)),b=roundNumber$2(b),w=roundNumber$2(w);var S=roundNumber$2(A+x),E=roundNumber$2(C+x);return"M"+b+" "+A+" L"+w+" "+C+"L"+w+" "+E+" L"+b+" "+S+"z"}function getSlope(d,b,A,w,C){return(C-A)/(w-b)}function getY(d,b,A,w){var C=w-d;return b+C*A}var beam=drawBeam$1,elementGroup$1=groupElements,roundNumber$1=roundNumber_1;function printStem$2(d,b,A,w,C,x,S){if(A<0||w<C){var E=roundNumber$1(C);C=roundNumber$1(w),w=E}else w=roundNumber$1(w),C=roundNumber$1(C);b=roundNumber$1(b);var P=roundNumber$1(b+A);if(d.firefox112){b+=A/2;var k={x1:b,x2:b,y1:w,y2:C,stroke:d.foregroundColor,"stroke-width":Math.abs(A)};return x&&(k.class=x),S&&(k["data-name"]=S),d.paper.lineToBack(k)}for(var B=[["M",b,w],["L",b,C],["L",P,C],["L",P,w],["z"]],k={path:""},$=0;$<B.length;$++)k.path+=B[$].join(" ");return x&&(k.class=x),S&&(k["data-name"]=S),elementGroup$1.isInGroup()||(k.stroke="none",k.fill=d.foregroundColor),d.paper.pathToBack(k)}var printStem_1=printStem$2,sprintf=sprintf_1,roundNumber=roundNumber_1;function printLine$1(d,b,A,w,C,x,S){var E=d.foregroundColor;b=roundNumber(b),A=roundNumber(A);var P=roundNumber(w-S),B=roundNumber(w+S);if(d.firefox112){w+=S/2;var k={x1:b,x2:A,y1:w,y2:w,stroke:d.foregroundColor,"stroke-width":Math.abs(S*2)};return C&&(k.class=C),x&&(k["data-name"]=x),d.paper.lineToBack(k)}var $=sprintf("M %f %f L %f %f L %f %f L %f %f z",b,P,A,P,A,B,b,B),I={path:$,stroke:"none",fill:E};x&&(I["data-name"]=x),C&&(I.class=C);var D=d.paper.pathToBack(I);return D}var printLine_1=printLine$1,printLine=printLine_1;function printStaffLine$2(d,b,A,w,C,x,S){var E=d.calcY(w);return printLine(d,b,A,E,C,x,S)}var staffLine=printStaffLine$2,renderText$3=text,printStem$1=printStem_1,printStaffLine$1=staffLine,printSymbol=printSymbol_1;function drawRelativeElement$2(d,b,A){b.pitch===void 0&&window.console.error(b.type+" Relative Element y-coordinate not set.");var w=d.calcY(b.pitch);switch(b.type){case"symbol":if(b.c===null)return null;var C="symbol";b.klass&&(C+=" "+b.klass),b.graphelem=printSymbol(d,b.x,b.pitch,b.c,{scalex:b.scalex,scaley:b.scaley,klass:d.controller.classes.generate(C),name:b.name});break;case"debug":b.graphelem=renderText$3(d,{x:b.x,y:d.calcY(15),text:""+b.c,type:"debugfont",klass:d.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:b.dim},!1);break;case"tabNumber":var x="middle",S="tabnumberfont",E="tab-number";b.isGrace&&(S="tabgracefont",w+=2.5,E="tab-grace"),b.graphelem=renderText$3(d,{x:b.x,y:w,text:""+b.c,type:S,klass:d.controller.classes.generate(E),anchor:x,centerVertically:!1,dim:b.dim,cursor:"default"},!1);break;case"barNumber":b.graphelem=renderText$3(d,{x:b.x,y:w,text:""+b.c,type:"measurefont",klass:d.controller.classes.generate("bar-number"),anchor:"middle",dim:b.dim,name:"bar-number"},!0);break;case"lyric":b.graphelem=renderText$3(d,{x:b.x,y:w,text:b.c,type:"vocalfont",klass:d.controller.classes.generate("lyric"),anchor:"middle",dim:b.dim,name:"lyric"},!1);break;case"chord":b.graphelem=renderText$3(d,{x:b.x,y:w,text:b.c,type:"gchordfont",klass:d.controller.classes.generate("chord"),anchor:"middle",dim:b.dim,lane:b.getLane(),name:"chord"},!1);break;case"decoration":b.graphelem=renderText$3(d,{x:b.x,y:w+6,text:b.c,type:"annotationfont",klass:d.controller.classes.generate("annotation"),anchor:b.anchor,centerVertically:!0,dim:b.dim},!1);break;case"text":b.graphelem=renderText$3(d,{x:b.x,y:w,text:b.c,type:"annotationfont",klass:d.controller.classes.generate("annotation"),anchor:"start",centerVertically:b.centerVertically,dim:b.dim,lane:b.getLane(),name:"annotation"},!1);break;case"multimeasure-text":b.graphelem=renderText$3(d,{x:b.x+b.w/2,y:w,text:b.c,type:"tempofont",klass:d.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:b.dim},!1);break;case"part":b.graphelem=renderText$3(d,{x:b.x,y:w,text:b.c,type:"partsfont",klass:d.controller.classes.generate("part"),anchor:"start",dim:b.dim,name:b.c},!0);break;case"bar":b.graphelem=printStem$1(d,b.x,b.linewidth+d.lineThickness,w,A||d.calcY(b.pitch2),null,"bar");break;case"stem":var P=b.linewidth>0?b.linewidth+d.lineThickness:b.linewidth-d.lineThickness;b.graphelem=printStem$1(d,b.x,P,w,d.calcY(b.pitch2),"abcjs-stem","stem");break;case"ledger":b.graphelem=printStaffLine$1(d,b.x,b.x+b.w,b.pitch,"abcjs-ledger","ledger",.35+d.lineThickness);break}return b.scalex!==1&&b.graphelem&&scaleExistingElem(d.paper,b.graphelem,b.scalex,b.scaley,b.x,w),b.graphelem}function scaleExistingElem(d,b,A,w,C,x){d.setAttributeOnElement(b,{style:"transform:scale("+A+","+w+");transform-origin:"+C+"px "+x+"px;"})}var relative=drawRelativeElement$2,drawRelativeElement$1=relative,renderText$2=text;function drawTempo$1(d,b){var A=b.x;b.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),b.tempo.el_type="tempo";var w=d.calcY(b.pitch)+2,C,x;if(b.tempo.preString){C=renderText$2(d,{x:A,y:w,text:b.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0),x=d.controller.getTextSize.calc(b.tempo.preString,"tempofont","tempo",C);var S=x.width,E=S/b.tempo.preString.length;A+=S+E}if(b.note){b.note.setX(A);for(var P=0;P<b.note.children.length;P++)drawRelativeElement$1(d,b.note.children[P],A);A+=b.note.w+5;var B="= "+b.tempo.bpm;C=renderText$2(d,{x:A,y:w,text:B,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"}),x=d.controller.getTextSize.calc(B,"tempofont","tempo",C);var k=x.width,$=k/B.length;A+=k+$}b.tempo.postString&&renderText$2(d,{x:A,y:w,text:b.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}var tempo=drawTempo$1,drawTempo=tempo,drawRelativeElement=relative,spacing$3=spacing_1,setClass=setClass_1,elementGroup=groupElements;function drawAbsolute$1(d,b,A,w,C){if(!b.invisible){var x=b.children.length>0&&b.children[0].type==="TempoElement";b.elemset=[],elementGroup.beginGroup(d.paper,d.controller);for(var S=0;S<b.children.length;S++){var E=b.children[S];switch(E.type){case"TempoElement":drawTempo(d,E);break;default:drawRelativeElement(d,E,A)}}var P=b.type;if((b.type==="note"||b.type==="rest")&&(b.counters=d.controller.classes.getCurrent(),P+=" d"+Math.round(b.durationClass*1e3)/1e3,P=P.replace(/\./g,"-"),b.abcelem.pitches))for(var B=0;B<b.abcelem.pitches.length;B++)P+=" p"+b.abcelem.pitches[B].pitch;var k=elementGroup.endGroup(P,b.type);if(k){if(b.cloned&&(b.cloned.overrideClasses=k.className.baseVal),b.overrideClasses){var $=k.classList&&k.classList.length>0?k.classList[0]+" ":"";k.setAttribute("class",$+b.overrideClasses)}if(x)b.startChar=b.abcelem.startChar,b.endChar=b.abcelem.endChar,w.add(b,k,!1,C);else{b.elemset.push(k);var I=!1;(b.type==="note"||b.type==="tabNumber")&&(I=!0),w.add(b,k,I,C)}}else b.elemset.length>0&&w.add(b,b.elemset[0],b.type==="note",C);if(b.klass&&setClass(b.elemset,"mark","","#00ff00"),b.hint&&setClass(b.elemset,"abcjs-hint","",null),b.abcelem.abselem=b,b.heads&&b.heads.length>0){b.notePositions=[];for(var D=0;D<b.heads.length;D++)b.notePositions.push({x:b.heads[D].x+b.heads[D].w/2,y:C.zero-b.heads[D].pitch*spacing$3.STEP})}}}var absolute=drawAbsolute$1,drawGlissando=glissando,drawCrescendo=crescendo,drawDynamics=dynamics,drawTriplet=triplet,drawEnding=ending,drawTie=tie,drawBeam=beam,renderText$1=text,drawAbsolute=absolute;function drawVoice$1(d,b,A,w,C){var x=b.w-1;d.staffbottom=b.staff.bottom;var S=d.foregroundColor;if(b.color&&(d.foregroundColor=b.color),b.header){var E=renderText$1(d,{x:d.padding.left,y:d.calcY(b.headerPosition),text:b.header,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0,name:"voice-name"},!0);w.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:b.header},E)}var P,B,k=!1;for(P=0;P<b.children.length;P++){B=b.children[P],(B.type==="note"||B.type==="rest")&&(k=!0);var $=!1;B.type!=="staff-extra"&&!d.controller.classes.isInMeasure()&&(d.controller.classes.startMeasure(),$=!0),b.staff.isTabStaff&&(B.invisible=!1,B.type=="bar"&&B.abcelem.lastBar&&(A=b.topLine)),drawAbsolute(d,B,b.barto||P===b.children.length-1?A:0,w,C),(B.type==="note"||isNonSpacerRest(B))&&d.controller.classes.incrNote(),B.type==="bar"&&!$&&k&&d.controller.classes.incrMeasure()}for(d.controller.classes.startMeasure(),P=0;P<b.beams.length;P++){var I=b.beams[P];I==="bar"?d.controller.classes.incrMeasure():drawBeam(d,I)}for(d.controller.classes.startMeasure(),P=0;P<b.otherchildren.length;P++)if(B=b.otherchildren[P],B==="bar")d.controller.classes.incrMeasure();else switch(B.type){case"GlissandoElem":B.elemset=drawGlissando(d,B,w);break;case"CrescendoElem":B.elemset=drawCrescendo(d,B,w);break;case"DynamicDecoration":B.elemset=drawDynamics(d,B,w);break;case"TripletElem":drawTriplet(d,B,w);break;case"EndingElem":B.elemset=drawEnding(d,B,b.startx+10,x,w);break;case"TieElem":B.elemset=drawTie(d,B,b.startx+10,x,w);break;default:console.log(B),drawAbsolute(d,B,b.startx+10,x,w)}d.foregroundColor=S}function isNonSpacerRest(d){return d.type!=="rest"?!1:!!(d.abcelem&&d.abcelem.rest&&d.abcelem.rest.type!=="spacer")}var voice=drawVoice$1,printStaffLine=staffLine;function printStaff$1(d,b,A,w,C,x){var S="abcjs-top-line",E=2;C&&(E=C),d.paper.openGroup({prepend:!0,klass:d.controller.classes.generate("abcjs-staff")});var P=0,B=0;if(w===1)printStaffLine(d,b,A,6,S,null,x+d.lineThickness),P=d.calcY(10),B=d.calcY(2);else for(var k=w-1;k>=0;k--){var $=(k+1)*E;B=d.calcY($),P===0&&(P=B),printStaffLine(d,b,A,$,S,null,x+d.lineThickness),S=void 0}return d.paper.closeGroup(),[P,B]}var staff=printStaff$1;function printDebugBox$1(d,b,A){var w=d.paper.rectBeneath(b);return A&&d.paper.text(A,{x:0,y:b.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),w}var debugBox=printDebugBox$1;function drawSeparator$1(d,b){var A="rgba(0,0,0,255)",w="rgba(0,0,0,0)",C=Math.round(d.y),x=d.controller.width,S=(x-b)/2,E=S+b,P="M "+S+" "+C+" L "+E+" "+C+" L "+E+" "+(C+1)+" L "+S+" "+(C+1)+" L "+S+" "+C+" z";d.paper.pathToBack({path:P,stroke:w,fill:A,class:d.controller.classes.generate("defined-text")})}var separator=drawSeparator$1,drawSeparator=separator,renderText=text;function nonMusic$2(d,b,A){for(var w=0;w<b.rows.length;w++){var C=b.rows[w];if(C.absmove)d.absolutemoveY(C.absmove);else if(C.move)d.moveY(C.move);else if(C.text){var x=C.left?C.left:0,S=renderText(d,{x,y:d.y,text:C.text,type:C.font,klass:C.klass,name:C.name,anchor:C.anchor});C.absElemType&&A.wrapSvgEl({el_type:C.absElemType,name:C.name,startChar:C.startChar,endChar:C.endChar,text:C.text},S)}else if(C.separator)drawSeparator(d,C.separator);else if(C.startGroup)d.paper.openGroup({klass:C.klass,"data-name":C.name});else if(C.endGroup){var E=d.paper.closeGroup();C.absElemType&&A.wrapSvgEl({el_type:C.absElemType,name:C.name,startChar:C.startChar,endChar:C.endChar,text:""},E)}}}var nonMusic_1=nonMusic$2,spacing$2=spacing_1,drawBrace=brace,drawVoice=voice,printStaff=staff,printDebugBox=debugBox,printStem=printStem_1,nonMusic$1=nonMusic_1;function drawStaffGroup$1(d,b,A,w){for(var C,x=d.y,S=0;S<b.staffs.length;S++){var E=b.staffs[S];d.moveY(spacing$2.STEP,E.top),E.absoluteY=d.y,d.showDebug&&(d.showDebug.indexOf("box")>=0&&E.voices&&boxAllElements(d,b.voices,E.voices),d.showDebug.indexOf("grid")>=0&&(d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:x,y2:x,stroke:"#0000ff"}),printDebugBox(d,{x:d.padding.left,y:d.calcY(E.originalTop),width:d.controller.width,height:d.calcY(E.originalBottom)-d.calcY(E.originalTop),fill:d.foregroundColor,stroke:d.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),C=0,U(E,"chordHeightAbove"),U(E,"chordHeightBelow"),U(E,"dynamicHeightAbove"),U(E,"dynamicHeightBelow"),U(E,"endingHeightAbove"),U(E,"lyricHeightAbove"),U(E,"lyricHeightBelow"),U(E,"partHeightAbove"),U(E,"tempoHeightAbove"),U(E,"volumeHeightAbove"),U(E,"volumeHeightBelow"))),d.moveY(spacing$2.STEP,-E.bottom),d.showDebug&&d.showDebug.indexOf("grid")>=0&&d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:d.y,y2:d.y,stroke:"#0000aa"})}for(var P,B,k=2,$=0,I=0;I<b.voices.length;I++){var D=b.voices[I].staff,F=b.voices[I].tabNameInfos;if(d.y=D.absoluteY,d.controller.classes.incrVoice(),!b.voices[I].duplicate){if(P||(P=d.calcY(10)),B=d.calcY(k),D.lines!==0){D.linePitch&&(k=D.linePitch),d.controller.classes.newMeasure();var z=printStaff(d,b.startx,b.w,D.lines,D.linePitch,.35);B=z[1],D.bottomLine=B,D.topLine=z[0],D.hasTab&&($=D.topLine),D.hasStaff&&($=D.hasStaff.topLine,b.voices[I].barto=!0,b.voices[I].topLine=P)}printBrace(d,D.absoluteY,b.brace,I,A),printBrace(d,D.absoluteY,b.bracket,I,A)}drawVoice(d,b.voices[I],$,A,{top:x,zero:d.y,height:b.height*spacing$2.STEP});var L=0;if(F){var H={rows:[]};H.rows.push({absmove:B+2});var Q=8;H.rows.push({left:b.startx+Q,text:F.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),H.rows.push({move:F.textSize.height}),nonMusic$1(d,H),L=F.textSize.height}d.controller.classes.newMeasure(),b.voices[I].duplicate||($=d.calcY(2+L))}d.controller.classes.newMeasure();var Y=b.staffs.length;Y>1&&(P=b.staffs[0].topLine,B=b.staffs[Y-1].bottomLine,printStem(d,b.startx,.6,P,B,null)),d.y=x;function U(G,W){var K=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(G.positionY&&G.positionY[W]){var X=G.specialY[W]*spacing$2.STEP;W==="chordHeightAbove"&&G.specialY.chordLines&&G.specialY.chordLines.above&&(X*=G.specialY.chordLines.above),W==="chordHeightBelow"&&G.specialY.chordLines&&G.specialY.chordLines.below&&(X*=G.specialY.chordLines.below),printDebugBox(d,{x:d.padding.left,y:d.calcY(G.positionY[W]),width:d.controller.width,height:X,fill:K[C],stroke:K[C],"fill-opacity":.4,"stroke-opacity":.4},W.substr(0,4)),C+=1,C>6&&(C=0)}}}function printBrace(d,b,A,w,C){if(A)for(var x=0;x<A.length;x++)A[x].isStartVoice(w)&&(A[x].startY=b-spacing$2.STEP*10,A[x].elemset=drawBrace(d,A[x],C))}function boxAllElements(d,b,A){for(var w=0;w<A.length;w++)for(var C=b[A[w]].children,x=0;x<C.length;x++){var S=C[x],E=S.getFixedCoords();if(!(S.invisible||E.t===void 0||E.b===void 0)){var P=(E.t-E.b)*spacing$2.STEP;printDebugBox(d,{x:E.x,y:d.calcY(E.t),width:E.w,height:P,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var B=0;B<S.children.length;B++){var k=S.children[B],$=k.getChordDim();if($){var I=d.calcY(k.pitch);I+=k.dim.font.size*k.getLane(),printDebugBox(d,{x:$.left,y:I,width:$.right-$.left,height:k.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}var staffGroup=drawStaffGroup$1;function setPaperSize$1(d,b,A,w){var C=(b+d.padding.right)*A,x=(d.y+d.padding.bottom)*A;if(d.isPrint&&(x=Math.max(x,1056)),d.ariaLabel!==""){var S="Sheet Music";d.abctune&&d.abctune.metaText&&d.abctune.metaText.title&&(S+=' for "'+d.abctune.metaText.title+'"'),d.paper.setTitle(S);var E=d.ariaLabel?d.ariaLabel:S;d.paper.setAttribute("aria-label",E)}var P=["-webkit-touch-callout: none;","-webkit-user-select: none;","-khtml-user-select: none;","-moz-user-select: none;","-ms-user-select: none;","user-select: none;"];d.paper.insertStyles(".abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {"+P.join(" ")+"}");var B={overflow:"hidden"};w==="resize"?d.paper.setResponsiveWidth(C,x):(B.width="",B.height=x+"px",A<1?(B.width=C+"px",d.paper.setSize(C/A,x/A)):d.paper.setSize(C,x)),d.paper.setScale(A),d.paper.setParentStyles(B)}var setPaperSize_1=setPaperSize$1,highlight=highlight_1,unhighlight=unhighlight_1;function Selectables$1(d,b,A){this.elements=[],this.paper=d,this.tuneNumber=A,this.selectTypes=b}Selectables$1.prototype.getElements=function(){return this.elements};Selectables$1.prototype.add=function(d,b,A,w){if(this.canSelect(d)){var C;this.selectTypes===void 0?C={selectable:!1,"data-index":this.elements.length}:C={selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(b,C);var x={absEl:d,svgEl:b,isDraggable:A};w!==void 0&&(x.staffPos=w),this.elements.push(x)}};Selectables$1.prototype.canSelect=function(d){return this.selectTypes===!1||!d||!d.abcelem?!1:this.selectTypes===!0?!0:this.selectTypes===void 0?d.abcelem.el_type==="note"||d.abcelem.el_type==="tabNumber":this.selectTypes.indexOf(d.abcelem.el_type)>=0};Selectables$1.prototype.wrapSvgEl=function(d,b){var A={tuneNumber:this.tuneNumber,abcelem:d,elemset:[b],highlight,unhighlight};this.add(A,b,!1)};var selectables=Selectables$1,drawStaffGroup=staffGroup,setPaperSize=setPaperSize_1,nonMusic=nonMusic_1,spacing$1=spacing_1,Selectables=selectables;function draw$1(d,b,A,w,C,x,S,E,P,B){var k=new Selectables(d.paper,E,P);d.paper.openGroup(),d.moveY(d.padding.top),nonMusic(d,A.topText,k),d.paper.closeGroup(),d.moveY(d.spacing.music);for(var $=[],I=0;I<A.lines.length;I++){b.incrLine();var D=A.lines[I];if(D.staff){d.paper.openGroup(),D.vskip&&d.moveY(D.vskip),$.length>=1&&addStaffPadding(d,d.spacing.staffSeparation,$[$.length-1],D.staffGroup);var F=engraveStaffLine(d,D.staffGroup,k);F.line=B+I,$.push(F),d.paper.closeGroup()}else D.nonMusic&&(d.paper.openGroup(),nonMusic(d,D.nonMusic,k),d.paper.closeGroup())}return b.reset(),A.bottomText&&A.bottomText.rows&&A.bottomText.rows.length>0&&(d.paper.openGroup(),d.moveY(24),nonMusic(d,A.bottomText,k),d.paper.closeGroup()),setPaperSize(d,C,S,x),{staffgroups:$,selectables:k.getElements()}}function engraveStaffLine(d,b,A,w){drawStaffGroup(d,b,A);var C=b.height*spacing$1.STEP;return d.y+=C,b}function addStaffPadding(d,b,A,w){var C=A.staffs[A.staffs.length-1],x=-(C.bottom-2),S=w.staffs[0].top-10,E=S+x,P=E*spacing$1.STEP;P<b&&d.moveY(b-P)}var draw_1=draw$1,spacing=spacing_1,AbstractEngraver=abstractEngraver,Renderer=renderer,FreeText=freeText,Separator=separator$1,Subtitle=subtitle,TopText=topText,BottomText=bottomText,setupSelection=selection,layout=layout_1,Classes=classes$2,GetFontAndAttr=getFontAndAttr,GetTextSize=getTextSize,draw=draw_1,tablatures=abc_tablatures,EngraverController$1=function(d,b){b=b||{},this.oneSvgPerLine=b.oneSvgPerLine,this.selectionColor=b.selectionColor,this.dragColor=b.dragColor?b.dragColor:b.selectionColor,this.dragging=!!b.dragging,this.selectTypes=b.selectTypes,this.responsive=b.responsive,this.space=3*spacing.SPACE,this.initialClef=b.initialClef,this.scale=b.scale?parseFloat(b.scale):0,this.classes=new Classes({shouldAddClasses:b.add_classes}),this.scale>.1||(this.scale=void 0),b.staffwidth?(this.staffwidthScreen=b.staffwidth,this.staffwidthPrint=b.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],b.clickListener&&this.addSelectListener(b.clickListener),this.renderer=new Renderer(d),this.renderer.setPaddingOverride(b),b.showDebug&&(this.renderer.showDebug=b.showDebug),b.jazzchords&&(this.jazzchords=b.jazzchords),b.germanAlphabet&&(this.germanAlphabet=b.germanAlphabet),b.lineThickness&&(this.lineThickness=b.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=b.foregroundColor?b.foregroundColor:"currentColor",b.ariaLabel!==void 0&&(this.renderer.ariaLabel=b.ariaLabel),this.renderer.minPadding=b.minPadding?b.minPadding:0,this.reset()};EngraverController$1.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)};EngraverController$1.prototype.engraveABC=function(d,b,A){d[0]===void 0&&(d=[d]),this.reset();for(var w=0;w<d.length;w++)b===void 0&&(b=w),this.getFontAndAttr=new GetFontAndAttr(d[w].formatting,this.classes),this.getTextSize=new GetTextSize(this.getFontAndAttr,this.renderer.paper),this.engraveTune(d[w],b,A)};EngraverController$1.prototype.adjustNonScaledItems=function(d){this.width/=d,this.renderer.adjustNonScaledItems(d)};EngraverController$1.prototype.getMeasureWidths=function(d){this.reset(),this.getFontAndAttr=new GetFontAndAttr(d.formatting,this.classes),this.getTextSize=new GetTextSize(this.getFontAndAttr,this.renderer.paper),this.setupTune(d,0),this.constructTuneElements(d),layout(this.renderer,d,0,this.space);for(var b=[],A,w=!0,C=0;C<d.lines.length;C++){var x=d.lines[C];if(x.staff){if(w&&(A={left:0,measureWidths:[],total:0},b.push(A),w=!1),x.staffGroup.voices.length>0)for(var S=x.staffGroup.voices[0],E=!1,P=0,B=0;B<S.children.length;B++){var k=S.children[B];!E&&!k.isClef&&!k.isKeySig&&(E=!0,A.left=k.x,P=k.x),k.type==="bar"&&(A.measureWidths.push(k.x-P),A.total+=k.x-P,P=k.x)}}else w=!0}return b};EngraverController$1.prototype.setupTune=function(d,b){this.classes.reset(),d.formatting.jazzchords!==void 0&&(this.jazzchords=d.formatting.jazzchords),this.renderer.newTune(d),this.engraver=new AbstractEngraver(this.getTextSize,b,{bagpipes:d.formatting.bagpipes,flatbeams:d.formatting.flatbeams,graceSlurs:d.formatting.graceSlurs!==!1,percmap:d.formatting.percmap,initialClef:this.initialClef,jazzchords:this.jazzchords,germanAlphabet:this.germanAlphabet}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=d.getMeterFraction().num/d.getMeterFraction().den,d.formatting.staffwidth?this.width=d.formatting.staffwidth*1.33:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var A=d.formatting.scale?d.formatting.scale:this.scale;return this.responsive==="resize"&&(A=void 0),A===void 0&&(A=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(A),A};EngraverController$1.prototype.constructTuneElements=function(d){d.topText=new TopText(d.metaText,d.metaTextInfo,d.formatting,d.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize);var b,A,w=!1,C=!1;for(b=0;b<d.lines.length;b++)if(A=d.lines[b],A.staff)C=!0,A.staffGroup=this.engraver.createABCLine(A.staff,w?null:d.metaText.tempo,b),w=!0;else if(A.subtitle){if(C){var x=this.width/2+this.renderer.padding.left;A.nonMusic=new Subtitle(this.renderer.spacing.subtitle,d.formatting,A.subtitle,x,this.renderer.padding.left,this.getTextSize)}}else A.text!==void 0?(C=!0,A.nonMusic=new FreeText(A.text,A.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):A.separator!==void 0&&A.separator.lineLength&&(C=!0,A.nonMusic=new Separator(A.separator.spaceAbove,A.separator.lineLength,A.separator.spaceBelow));d.bottomText=new BottomText(d.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize)};EngraverController$1.prototype.engraveTune=function(d,b,A){var w=this.setupTune(d,b);this.constructTuneElements(d);var C=layout(this.renderer,d,this.width,this.space);d.tablatures&&tablatures.layoutTablatures(this.renderer,d);var x=draw(this.renderer,this.classes,d,this.width,C,this.responsive,w,this.selectTypes,b,A);if(this.staffgroups=x.staffgroups,this.selectables=x.selectables,this.oneSvgPerLine){var S=this.renderer.paper.svg.parentNode;this.svgs=splitSvgIntoLines(this.renderer,S,d.metaText.title,this.responsive)}else this.svgs=[this.renderer.paper.svg];setupSelection(this,this.svgs)};function splitSvgIntoLines(d,b,A,w){A||(A="Untitled");var C=b.querySelector("svg");w==="resize"&&(b.style.paddingBottom="");for(var x=C.querySelector("style"),S=w==="resize"?C.viewBox.baseVal.width:C.getAttribute("width"),E=b.querySelectorAll("svg > g"),P=0,B=[],k=0;k<E.length;k++){var $=E[k],I=$.getBBox(),D=I.y-P,F=I.height+D,z=document.createElement("div"),L="overflow: hidden;";w!=="resize"&&(L+="height:"+F+"px;"),z.setAttribute("style",L);var H=duplicateSvg(C),Q='Sheet Music for "'+A+'" section '+(k+1);H.setAttribute("aria-label",Q),w!=="resize"&&H.setAttribute("height",F),w==="resize"&&(H.style.position="");var Y=d.firefox112?F+1:F;H.setAttribute("viewBox","0 "+P+" "+S+" "+Y),H.appendChild(x.cloneNode(!0));var U=document.createElement("title");U.innerText=Q,H.appendChild(U),H.appendChild($),z.appendChild(H),B.push(H),b.appendChild(z),P=I.y+I.height}return b.removeChild(C),B}function duplicateSvg(d){for(var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"svg"),w=0;w<d.attributes.length;w++){var C=d.attributes[w];C.name!=="height"&&C.name!="aria-label"&&A.setAttribute(C.name,C.value)}return A}EngraverController$1.prototype.getDim=function(d){if(!d.dim){var b=d.svgEl.getBBox();d.dim={left:Math.round(b.x),top:Math.round(b.y),right:Math.round(b.x+b.width),bottom:Math.round(b.y+b.height)}}return d.dim};EngraverController$1.prototype.addSelectListener=function(d){this.listeners[this.listeners.length]=d};var engraverController=EngraverController$1,tunebook$1=abc_tunebook,EngraverController=engraverController,Parse=abc_parse,wrap$1=wrap_lines,resizeDivs={};function resizeOuter(){var d=window.innerWidth;for(var b in resizeDivs)if(resizeDivs.hasOwnProperty(b)){var A=resizeDivs[b],w=A.offsetLeft;d-=w*2,A.style.width=d+"px"}}try{window.addEventListener("resize",resizeOuter),window.addEventListener("orientationChange",resizeOuter)}catch(d){}function renderOne(d,b,A,w,C){A.viewportHorizontal?(d.innerHTML='<div class="abcjs-inner"></div>',A.scrollHorizontal?(d.style.overflowX="auto",d.style.overflowY="hidden"):d.style.overflow="hidden",resizeDivs[d.id]=d,d=d.children[0]):A.viewportVertical?(d.innerHTML='<div class="abcjs-inner scroll-amount"></div>',d.style.overflowX="hidden",d.style.overflowY="auto",d=d.children[0]):d.innerHTML="";var x=new EngraverController(d,A);if(x.engraveABC(b,w,C),b.engraver=x,A.viewportVertical||A.viewportHorizontal){var S=d.parentNode;S.style.width=d.style.width}}var renderAbc$1=function(d,b,A,w,C){var x={},S;if(A){for(S in A)A.hasOwnProperty(S)&&(x[S]=A[S]);x.warnings_id&&x.tablature&&(x.tablature.warning_id=x.warnings_id)}if(w)for(S in w)w.hasOwnProperty(S)&&(S==="listener"?w[S].highlight&&(x.clickListener=w[S].highlight):x[S]=w[S]);if(C)for(S in C)C.hasOwnProperty(S)&&(x[S]=C[S]);function E(P,B,k,$){var I=!1;return P==="*"&&(I=!0,P=document.createElement("div"),P.setAttribute("style","visibility: hidden;"),document.body.appendChild(P)),x.afterParsing&&x.afterParsing(B,k,$),!I&&x.wrap&&x.staffwidth?(B=doLineWrapping(P,B,k,$,x),B):(renderOne(P,B,x,k,0),I&&P.parentNode.removeChild(P),null)}return tunebook$1.renderEngine(E,d,b,x)};function doLineWrapping(d,b,A,w,C){var x=new EngraverController(d,C),S=x.getMeasureWidths(b),E=wrap$1.calcLineWraps(b,S,C);if(E.reParse){var P=new Parse;P.parse(w,E.revisedParams),b=P.getTune();var B=P.getWarnings();B&&(b.warnings=B)}return renderOne(d,b,E.revisedParams,A,0),b.explanation=E.explanation,b}var abc_tunebook_svg=renderAbc$1,soundsCache$3={},soundsCache_1=soundsCache$3,soundsCache$2=soundsCache_1,getNote$1=function(d,b,A,w){soundsCache$2[b]||(soundsCache$2[b]={});var C=soundsCache$2[b];return C[A]||(C[A]=new Promise(function(x,S){var E=new XMLHttpRequest;let P=d+b+"-mp3/"+A+".mp3";E.open("GET",P,!0),E.responseType="arraybuffer",E.onload=function(){if(E.status!==200){S(Error("Can't load sound at "+P+" status="+E.status));return}var B=function($){x({instrument:b,name:A,status:"loaded",audioBuffer:$})},k=w.decodeAudioData(E.response,B,function(){S(Error("Can't decode sound at "+P))});k&&typeof k.catch=="function"&&k.catch(S)},E.onerror=function(){S(Error("Can't load sound at "+P))},E.send()}).catch(x=>{throw console.error("Didn't load note",b,A,":",x.message),x})),C[A]},loadNote=getNote$1,instrumentIndexToName$3=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"],instrumentIndexToName_1=instrumentIndexToName$3,instrumentIndexToName$2=instrumentIndexToName_1,createNoteMap$1=function(d){for(var b=[],A=0;A<d.tracks.length;A++)b.push([]);var w=instrumentIndexToName$2[0];return d.tracks.forEach(function(C,x){C.forEach(function(S){switch(S.cmd){case"note":if(S.duration>0){var E=S.gap?S.gap:0,P=S.duration;E=Math.min(E,P*2/3);var B={pitch:S.pitch,instrument:w,start:Math.round(S.start*1e6)/1e6,end:Math.round((S.start+P-E)*1e6)/1e6,volume:S.volume};S.startChar&&(B.startChar=S.startChar),S.endChar&&(B.endChar=S.endChar),S.style&&(B.style=S.style),S.cents&&(B.cents=S.cents),b[x].push(B)}break;case"program":w=instrumentIndexToName$2[S.instrument];break;case"text":break;default:console.log("Unhandled midi event",S)}})}),b},createNoteMap_1=createNoteMap$1;function registerAudioContext$4(d){if(d)window.abcjsAudioContext=d;else if(!window.abcjsAudioContext){var b=window.AudioContext||window.webkitAudioContext;if(b)window.abcjsAudioContext=new b;else return!1}return window.abcjsAudioContext.state!=="suspended"}var registerAudioContext_1=registerAudioContext$4,registerAudioContext$3=registerAudioContext_1;function activeAudioContext$6(){return window.abcjsAudioContext||registerAudioContext$3(),window.abcjsAudioContext}var activeAudioContext_1=activeAudioContext$6,activeAudioContext$5=activeAudioContext_1;function supportsAudio$4(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var d=activeAudioContext$5();if(d)return d.resume!==void 0}var supportsAudio_1=supportsAudio$4,pitchToNoteName$3={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"},pitchToNoteName_1=pitchToNoteName$3,downloadBuffer$1=function(d){return window.URL.createObjectURL(bufferToWave(d.audioBuffers))};function bufferToWave(d){var b=d[0],A=b.numberOfChannels,w=b.length*A*2+44,C=new ArrayBuffer(w),x=new DataView(C),S=[],E,P,B=0,k=0;for(I(1179011410),I(w-8),I(1163280727),I(544501094),I(16),$(1),$(A),I(b.sampleRate),I(b.sampleRate*2*A),$(A*2),$(16),I(1635017060),I(w-k-4),E=0;E<A;E++)S.push(b.getChannelData(E));for(;k<w;){for(E=0;E<S.length;E++)P=Math.max(-1,Math.min(1,S[E][B])),P=(.5+P<0?P*32768:P*32767)|0,x.setInt16(k,P,!0),k+=2;B++}return new Blob([C],{type:"audio/wav"});function $(D){x.setUint16(k,D,!0),k+=2}function I(D){x.setUint32(k,D,!0),k+=4}}var downloadBuffer_1=downloadBuffer$1;function centsToFactor$2(d){return Math.pow(2,d/1200)}var centsToFactor_1=centsToFactor$2,soundsCache$1=soundsCache_1,pitchToNoteName$2=pitchToNoteName_1,centsToFactor$1=centsToFactor_1;function placeNote$1(d,b,A,w,C,x,S,E,P){var B=window.OfflineAudioContext||window.webkitOfflineAudioContext,k=A.len*A.tempoMultiplier;x&&(k+=x/1e3),k-=E,k<0&&(k=.005);var $=new B(2,Math.floor((k+S)*b),b),I=pitchToNoteName$2[A.pitch],D=soundsCache$1[A.instrument][I];return D?D.then(function(F){var z=$.createBufferSource();z.buffer=F.audioBuffer;var L=A.volume/96*C;z.gainNode=$.createGain(),A.pan&&$.createStereoPanner&&(z.panNode=$.createStereoPanner(),z.panNode.pan.setValueAtTime(A.pan,0)),z.gainNode.gain.value=L,z.gainNode.gain.linearRampToValueAtTime(z.gainNode.gain.value,k),z.gainNode.gain.linearRampToValueAtTime(0,k+S),A.cents&&(z.playbackRate.value=centsToFactor$1(A.cents)),z.panNode?(z.panNode.connect($.destination),z.gainNode.connect(z.panNode)):z.gainNode.connect($.destination),z.connect(z.gainNode),z.start(0),z.noteOff?z.noteOff(k+S):z.stop(k+S);var H;return $.oncomplete=function(Q){if(Q.renderedBuffer&&Q.renderedBuffer.getChannelData)for(var Y=0;Y<w.length;Y++){var U=w[Y]*A.tempoMultiplier;x&&(U-=x/1e3),U<0&&(U=0),U=Math.floor(U*b),copyToChannel(d,Q.renderedBuffer,U)}P&&P("placeNote: "+A.instrument+":"+I),H()},$.startRendering(),new Promise(function(Q){H=Q})}).catch(function(F){return P&&P("placeNote catch: "+F.message),Promise.resolve()}):(P&&P("placeNote skipped: "+A.instrument+":"+I),Promise.resolve())}var copyToChannel=function(d,b,A){for(var w=0;w<2;w++)for(var C=b.getChannelData(w),x=d.getChannelData(w),S=0;S<C.length;S++)x[S+A]+=C[S]},placeNote_1=placeNote$1,getNote=loadNote,createNoteMap=createNoteMap_1,registerAudioContext$2=registerAudioContext_1,activeAudioContext$4=activeAudioContext_1,supportsAudio$3=supportsAudio_1,pitchToNoteName$1=pitchToNoteName_1,instrumentIndexToName$1=instrumentIndexToName_1,downloadBuffer=downloadBuffer_1,placeNote=placeNote_1,soundsCache=soundsCache_1,notSupportedMessage="MIDI is not supported in this browser.",originalSoundFontUrl="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",defaultSoundFontUrl="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/",alternateSoundFontUrl="https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/";function CreateSynth$3(){var d=this;d.audioBufferPossible=void 0,d.directSource=[],d.startTimeSec=void 0,d.pausedTimeSec=void 0,d.audioBuffers=[],d.duration=void 0,d.isRunning=!1,d.init=function(A){A||(A={}),registerAudioContext$2(A.audioContext);var w=activeAudioContext$4().currentTime;if(d.debugCallback=A.debugCallback,d.debugCallback&&d.debugCallback("init called"),d.audioBufferPossible=d._deviceCapable(),!d.audioBufferPossible)return Promise.reject({status:"NotSupported",message:notSupportedMessage});var C=A.options?A.options:{};d.soundFontUrl=C.soundFontUrl?C.soundFontUrl:defaultSoundFontUrl,d.soundFontUrl[d.soundFontUrl.length-1]!=="/"&&(d.soundFontUrl+="/"),C.soundFontVolumeMultiplier||C.soundFontVolumeMultiplier===0?d.soundFontVolumeMultiplier=C.soundFontVolumeMultiplier:d.soundFontUrl===defaultSoundFontUrl||d.soundFontUrl===alternateSoundFontUrl?d.soundFontVolumeMultiplier=3:d.soundFontUrl===originalSoundFontUrl?d.soundFontVolumeMultiplier=.4:d.soundFontVolumeMultiplier=1,C.programOffsets?d.programOffsets=C.programOffsets:d.soundFontUrl===originalSoundFontUrl?d.programOffsets={bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20}:d.programOffsets={};var x=C.fadeLength!==void 0?parseInt(C.fadeLength,10):NaN;if(d.fadeLength=isNaN(x)?200:x,x=C.noteEnd!==void 0?parseInt(C.noteEnd,10):NaN,d.noteEnd=isNaN(x)?0:x,d.pan=C.pan,d.meterSize=1,A.visualObj){d.flattened=A.visualObj.setUpAudio(C);var S=A.visualObj.getMeterFraction();S.den&&(d.meterSize=A.visualObj.getMeterFraction().num/A.visualObj.getMeterFraction().den)}else if(A.sequence)d.flattened=A.sequence;else return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));d.millisecondsPerMeasure=A.millisecondsPerMeasure?A.millisecondsPerMeasure:A.visualObj?A.visualObj.millisecondsPerMeasure(d.flattened.tempo):1e3,d.beatsPerMeasure=A.visualObj?A.visualObj.getBeatsPerMeasure():4,d.sequenceCallback=C.sequenceCallback,d.callbackContext=C.callbackContext,d.onEnded=C.onEnded;var E={},P=[],B=[],k=instrumentIndexToName$1[0];d.flattened.tracks.forEach(function(z){z.forEach(function(L){if(L.cmd==="program"&&instrumentIndexToName$1[L.instrument]&&(k=instrumentIndexToName$1[L.instrument]),L.pitch!==void 0){var H=L.pitch,Q=pitchToNoteName$1[H];if(Q)if(E[k]||(E[k]={}),!soundsCache[k]||!soundsCache[k][Q])E[k][Q]=!0;else{var Y=k+":"+Q;P.indexOf(Y)<0&&P.push(Y)}else{var U=k+":"+Q;console.log("Can't find note: ",H,U),B.indexOf(U)<0&&B.push(U)}}})}),d.debugCallback&&d.debugCallback("note gathering time = "+Math.floor((activeAudioContext$4().currentTime-w)*1e3)+"ms"),w=activeAudioContext$4().currentTime;var $=[];Object.keys(E).forEach(function(z){Object.keys(E[z]).forEach(function(L){$.push({instrument:z,note:L})})}),d.debugCallback&&d.debugCallback("notes "+JSON.stringify($));for(var I=[],D=256,F=0;F<$.length;F+=D)I.push($.slice(F,F+D));return new Promise(function(z,L){var H={cached:P,error:B,loaded:[]},Q=0,Y=function(){d.debugCallback&&d.debugCallback("loadBatch idx="+Q+" len="+I.length),Q<I.length?d._loadBatch(I[Q],d.soundFontUrl,w).then(function(U){d.debugCallback&&d.debugCallback("loadBatch then"),w=activeAudioContext$4().currentTime,U&&(U.error&&(H.error=H.error.concat(U.error)),U.loaded&&(H.loaded=H.loaded.concat(U.loaded))),Q++,Y()},L):(d.debugCallback&&d.debugCallback("resolve init"),z(H))};Y()})},d._loadBatch=function(A,w,C,x){var S=[];return A.forEach(function(E){d.debugCallback&&d.debugCallback("getNote "+E.instrument+":"+E.note),S.push(getNote(w,E.instrument,E.note,activeAudioContext$4()))}),Promise.all(S).then(function(E){d.debugCallback&&d.debugCallback("mp3 load time = "+Math.floor((activeAudioContext$4().currentTime-C)*1e3)+"ms");for(var P=[],B=[],k=[],$=[],I=0;I<E.length;I++){var D=E[I],F=D.instrument+":"+D.name;D.status==="loaded"?P.push(F):D.status==="pending"?k.push(F):D.status==="cached"?B.push(F):$.push(F+" "+D.message)}if(k.length>0){if(d.debugCallback&&d.debugCallback("pending "+JSON.stringify(k)),x?x=x*2:x=50,x<9e4)return new Promise(function(H,Q){setTimeout(function(){var Y=[];for(I=0;I<k.length;I++)F=k[I].split(":"),Y.push({instrument:F[0],note:F[1]});d.debugCallback&&d.debugCallback("retry "+JSON.stringify(Y)),d._loadBatch(Y,w,C,x).then(function(U){H(U)}).catch(function(U){Q(U)})},x)});for(var z=[],L=0;L<A.length;L++)z.push(A[L].instrument+"/"+A[L].note);return d.debugCallback&&d.debugCallback("loadBatch timeout"),Promise.reject(new Error("timeout attempting to load: "+z.join(", ")))}else return d.debugCallback&&d.debugCallback("loadBatch resolve"),Promise.resolve({loaded:P,cached:B,error:$})}).catch(function(E){d.debugCallback&&d.debugCallback("loadBatch catch "+E.message)})},d.prime=function(){var A=d.fadeLength/1e3;return d.isRunning=!1,d.audioBufferPossible?(d.debugCallback&&d.debugCallback("prime called"),new Promise(function(w){var C=activeAudioContext$4().currentTime,x=d.millisecondsPerMeasure/1e3/d.meterSize;if(d.duration=d.flattened.totalDuration*x,d.duration<=0)return d.audioBuffers=[],w({status:"empty",seconds:0});d.duration+=A;var S=Math.floor(activeAudioContext$4().sampleRate*d.duration);d.stop();var E=createNoteMap(d.flattened);d.sequenceCallback&&d.sequenceCallback(E,d.callbackContext);var P=b(E.length,d.pan),B={};E.forEach(function(H,Q){var Y=P&&P.length>Q?P[Q]:0;H.forEach(function(U){var G=U.instrument+":"+U.pitch+":"+U.volume+":"+Math.round((U.end-U.start)*1e3)/1e3+":"+Y+":"+x+":"+(U.cents?U.cents:0);d.debugCallback&&d.debugCallback("noteMapTrack "+G),B[G]||(B[G]=[]),B[G].push(U.start)})});for(var k=[],$=activeAudioContext$4().createBuffer(2,S,activeAudioContext$4().sampleRate),I=0;I<Object.keys(B).length;I++){var D=Object.keys(B)[I],F=D.split(":"),z=F[6]!==void 0?parseFloat(F[6]):0;F={instrument:F[0],pitch:parseInt(F[1],10),volume:parseInt(F[2],10),len:parseFloat(F[3]),pan:parseFloat(F[4]),tempoMultiplier:parseFloat(F[5]),cents:z},k.push(placeNote($,activeAudioContext$4().sampleRate,F,B[D],d.soundFontVolumeMultiplier,d.programOffsets[F.instrument],A,d.noteEnd/1e3,d.debugCallback))}d.audioBuffers=[$],d.debugCallback&&(d.debugCallback("sampleRate = "+activeAudioContext$4().sampleRate),d.debugCallback("totalSamples = "+S),d.debugCallback("creationTime = "+Math.floor((activeAudioContext$4().currentTime-C)*1e3)+"ms"));function L(H){var Q=H&&H.audioBuffers&&H.audioBuffers.length>0?H.audioBuffers[0].duration:0;return{status:activeAudioContext$4().state,duration:Q}}Promise.all(k).then(function(){activeAudioContext$4().state==="suspended"?activeAudioContext$4().resume().then(function(){w(L(d))}):activeAudioContext$4().state==="interrupted"?activeAudioContext$4().suspend().then(function(){activeAudioContext$4().resume().then(function(){w(L(d))})}):w(L(d))})})):Promise.reject(new Error(notSupportedMessage))};function b(A,w){if(w==null)return null;var C=[];if(w.length){for(var x=0;x<A;x++)if(x<w.length){var S=parseFloat(w[x]);S<-1?S=-1:S>1&&(S=1),C.push(S)}else C.push(0);return C}else{var E=parseFloat(w);if(E*(A-1)>2)return null;for(var P=A%2===0,B=P?0-E/2:0,k=B+E,$=0;$<A;$++)P=$%2===0,P?(C.push(B),B-=E):(C.push(k),k+=E);return C}}d.start=function(){if(!d.audioBufferPossible)throw new Error(notSupportedMessage);d.debugCallback&&d.debugCallback("start called");var A=d.pausedTimeSec?d.pausedTimeSec:0;d._kickOffSound(A),d.startTimeSec=activeAudioContext$4().currentTime-A,d.pausedTimeSec=void 0,d.debugCallback&&d.debugCallback("MIDI STARTED",d.startTimeSec)},d.pause=function(){if(!d.audioBufferPossible)throw new Error(notSupportedMessage);return d.debugCallback&&d.debugCallback("pause called"),d.pausedTimeSec=d.stop(),d.pausedTimeSec},d.resume=function(){d.start()},d.seek=function(A,w){var C;switch(w){case"seconds":C=A;break;case"beats":C=A*d.millisecondsPerMeasure/d.beatsPerMeasure/1e3;break;default:C=(d.duration-d.fadeLength/1e3)*A;break}if(!d.audioBufferPossible)throw new Error(notSupportedMessage);d.debugCallback&&d.debugCallback("seek called sec="+C),d.isRunning?(d.stop(),d._kickOffSound(C)):d.pausedTimeSec=C,d.pausedTimeSec=C},d.stop=function(){d.isRunning=!1,d.pausedTimeSec=void 0,d.directSource.forEach(function(w){try{w.stop()}catch(C){console.log("direct source didn't stop:",C)}}),d.directSource=[];var A=activeAudioContext$4().currentTime-d.startTimeSec;return A},d.finished=function(){d.startTimeSec=void 0,d.pausedTimeSec=void 0,d.isRunning=!1},d.download=function(){return downloadBuffer(d)},d.getAudioBuffer=function(){return d.audioBuffers[0]},d._deviceCapable=function(){return supportsAudio$3()?!0:(console.warn(notSupportedMessage),d.debugCallback&&d.debugCallback(notSupportedMessage),!1)},d._kickOffSound=function(A){d.isRunning=!0,d.directSource=[],d.audioBuffers.forEach(function(w,C){d.directSource[C]=activeAudioContext$4().createBufferSource(),d.directSource[C].buffer=w,d.directSource[C].connect(activeAudioContext$4().destination)}),d.directSource.forEach(function(w){w.start(0,A)}),d.onEnded&&(d.directSource[0].onended=function(){d.onEnded(d.callbackContext)})}}var createSynth=CreateSynth$3,SynthSequence$2=function(){var d=this;d.tracks=[],d.totalDuration=0,d.currentInstrument=[],d.starts=[],d.addTrack=function(){return d.tracks.push([]),d.currentInstrument.push(0),d.starts.push(0),d.tracks.length-1},d.setInstrument=function(b,A){d.tracks[b].push({channel:0,cmd:"program",instrument:A}),d.currentInstrument[b]=A},d.appendNote=function(b,A,w,C,x){var S={cmd:"note",duration:w,gap:0,instrument:d.currentInstrument[b],pitch:A,start:d.starts[b],volume:C};x&&(S.cents=x),d.tracks[b].push(S),d.starts[b]+=w,d.totalDuration=Math.max(d.totalDuration,d.starts[b])}},synthSequence=SynthSequence$2,svg$4='\n<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(0,700) scale(0.1,-0.1)" >\n <path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55\n -42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128\n -60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79\n -50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60\n -25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507\n -15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21\n -23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12\n -47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33\n -53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0\n -90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51\n 153 78 6 12 22 47 37 77 14 30 38 77 54 103 15 27 34 73 40 103 7 30 28 78 48\n 107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57\n 74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52\n 100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45\n 143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29\n 165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34\n 115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33\n -21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90\n -277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138\n 115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191\n 50 231 76 11 7 33 34 50 60 22 34 42 51 65 58 l32 9 0 1101 0 1102 -32 9 c-21\n 7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17\n -134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10\n -41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66\n 50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73\n 39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53\n -30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43\n -131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339\n -19z"></path>\n <path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0\n -18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72\n l69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279\n 268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74\n -61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19\n -16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31\n 93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59\n 62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89\n 89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146\n 67 29 7 76 28 105 48 29 20 77 48 107 63 30 15 66 39 80 54 14 15 50 40 81 56\n 31 15 78 46 104 69 26 22 61 46 79 54 17 7 43 26 56 42 14 16 41 41 60 56 64\n 48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22\n 25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14\n 18 34 62 46 98 12 36 32 77 45 92 31 38 60 97 80 167 9 33 26 76 37 95 29 50\n 47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138\n -61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10\n -22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20\n -32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19\n -29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25\n -15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18\n -59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11\n -99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168\n 16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71\n 37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108\n 63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65\n 61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86\n 12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030\n 0 -1086 -11z"></path>\n </g>\n</svg>\n',loop_svg=svg$4,svg$3='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">\n <g>\n <polygon points="4 0 23 12.5 4 25"/>\n </g>\n</svg>\n',play_svg=svg$3,svg$2='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">\n <g>\n <rect width="8.23" height="25"/>\n <rect width="8.23" height="25" x="17"/>\n </g>\n</svg>\n',pause_svg=svg$2,svg$1='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">\n <circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>\n</svg>\n',loading_svg=svg$1,svg='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">\n <g>\n <polygon points="5 12.5 24 0 24 25"/>\n <rect width="3" height="25" x="0" y="0"/>\n </g>\n</svg>\n',reset_svg=svg,supportsAudio$2=supportsAudio_1,registerAudioContext$1=registerAudioContext_1,activeAudioContext$3=activeAudioContext_1,parseCommon$1=abc_common,loopImage=loop_svg,playImage=play_svg,pauseImage=pause_svg,loadingImage=loading_svg,resetImage=reset_svg;function CreateSynthControl$2(d,b){var A=this;if(typeof d=="string"){var w=d;if(d=document.querySelector(w),!d)throw new Error('Cannot find element "'+w+'" in the DOM.')}else if(!(d instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(A.parent=d,A.options={},b&&(A.options=parseCommon$1.clone(b)),A.options.ac&&registerAudioContext$1(A.options.ac),buildDom(A.parent,A.options),attachListeners(A),A.disable=function(x){var S=A.parent.querySelector(".abcjs-inline-audio");x?S.classList.add("abcjs-disabled"):S.classList.remove("abcjs-disabled")},A.setWarp=function(x,S){var E=A.parent.querySelector(".abcjs-midi-tempo");E.value=Math.round(S),A.setTempo(x)},A.setTempo=function(x){var S=A.parent.querySelector(".abcjs-midi-current-tempo");S&&(S.innerHTML=Math.round(x))},A.resetAll=function(){for(var x=A.parent.querySelectorAll(".abcjs-pushed"),S=0;S<x.length;S++){var E=x[S];E.classList.remove("abcjs-pushed")}},A.pushPlay=function(x){var S=A.parent.querySelector(".abcjs-midi-start");S&&(x?S.classList.add("abcjs-pushed"):S.classList.remove("abcjs-pushed"))},A.pushLoop=function(x){var S=A.parent.querySelector(".abcjs-midi-loop");S&&(x?S.classList.add("abcjs-pushed"):S.classList.remove("abcjs-pushed"))},A.setProgress=function(x,S){var E=A.parent.querySelector(".abcjs-midi-progress-background"),P=A.parent.querySelector(".abcjs-midi-progress-indicator");if(!(!E||!P)){var B=E.clientWidth,k=B*x;P.style.left=k+"px";var $=A.parent.querySelector(".abcjs-midi-clock");if($){var I=S*x/1e3,D=Math.floor(I/60),F=Math.floor(I%60),z=F<10?"0"+F:F;$.innerHTML=D+":"+z}}},A.options.afterResume){var C=!1;A.options.ac?C=A.options.ac.state!=="suspended":activeAudioContext$3()&&(C=activeAudioContext$3().state!=="suspended"),C&&A.options.afterResume()}}function buildDom(d,b){var A=!!b.loopHandler,w=!!b.restartHandler,C=!!b.playHandler||!!b.playPromiseHandler,x=!!b.progressHandler,S=!!b.warpHandler,E=b.hasClock!==!1,P='<div class="abcjs-inline-audio">\n';if(A){var B=b.repeatTitle?b.repeatTitle:"Click to toggle play once/repeat.",k=b.repeatAria?b.repeatAria:B;P+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+B+'" aria-label="'+k+'">'+loopImage+"</button>\n"}if(w){var $=b.restartTitle?b.restartTitle:"Click to go to beginning.",I=b.restartAria?b.restartAria:$;P+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+$+'" aria-label="'+I+'">'+resetImage+"</button>\n"}if(C){var D=b.playTitle?b.playTitle:"Click to play/pause.",F=b.playAria?b.playAria:D;P+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+D+'" aria-label="'+F+'">'+playImage+pauseImage+loadingImage+"</button>\n"}if(x){var z=b.randomTitle?b.randomTitle:"Click to change the playback position.",L=b.randomAria?b.randomAria:z;P+='<button type="button" class="abcjs-midi-progress-background" title="'+z+'" aria-label="'+L+'"><span class="abcjs-midi-progress-indicator"></span></button>\n'}if(E&&(P+='<span class="abcjs-midi-clock"></span>\n'),S){var H=b.warpTitle?b.warpTitle:"Change the playback speed.",Q=b.warpAria?b.warpAria:H,Y=b.bpm?b.bpm:"BPM";P+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+H+'" aria-label="'+Q+'">%</label><span>&nbsp;(<span class="abcjs-midi-current-tempo"></span> '+Y+")</span></span>\n"}P+='<div class="abcjs-css-warning" style="font-size: 12px;color:red;border: 1px solid red;text-align: center;width: 300px;margin-top: 4px;font-weight: bold;border-radius: 4px;">CSS required: load abcjs-audio.css</div>',P+="</div>\n",d.innerHTML=P}function acResumerMiddleWare(d,b,A,w,C){var x=!0;if(activeAudioContext$3()?x=activeAudioContext$3().state==="suspended":registerAudioContext$1(),!supportsAudio$2())throw{status:"NotSupported",message:"This browser does not support audio."};(x||C)&&A&&A.classList.add("abcjs-loading"),x?activeAudioContext$3().resume().then(function(){w?w().then(function(S){doNext(d,b,A,C)}):doNext(d,b,A,C)}):doNext(d,b,A,C)}function doNext(d,b,A,w){w?d(b).then(function(){A&&A.classList.remove("abcjs-loading")}):(d(b),A&&A.classList.remove("abcjs-loading"))}function attachListeners(d){var b=!!d.options.loopHandler,A=!!d.options.restartHandler,w=!!d.options.playHandler||!!d.options.playPromiseHandler,C=!!d.options.progressHandler,x=!!d.options.warpHandler,S=d.parent.querySelector(".abcjs-midi-start");b&&d.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(E){acResumerMiddleWare(d.options.loopHandler,E,S,d.options.afterResume)}),A&&d.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(E){acResumerMiddleWare(d.options.restartHandler,E,S,d.options.afterResume)}),w&&S.addEventListener("click",function(E){acResumerMiddleWare(d.options.playPromiseHandler||d.options.playHandler,E,S,d.options.afterResume,!!d.options.playPromiseHandler)}),C&&d.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(E){acResumerMiddleWare(d.options.progressHandler,E,S,d.options.afterResume)}),x&&d.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(E){acResumerMiddleWare(d.options.warpHandler,E,S,d.options.afterResume)})}var createSynthControl=CreateSynthControl$2,SynthSequence$1=synthSequence,CreateSynth$2=createSynth,activeAudioContext$2=activeAudioContext_1;function playEvent$1(d,b,A){for(var w=new SynthSequence$1,C=0;C<d.length;C++){var x=d[C],S=w.addTrack();if(w.setInstrument(S,x.instrument),C===0&&b)for(var E=0;E<b.length;E++){var P=b[E];w.appendNote(S,P.pitch,1/64,P.volume,P.cents)}w.appendNote(S,x.pitch,x.duration,x.volume,x.cents)}var B=activeAudioContext$2();return B.state==="suspended"?B.resume().then(function(){return doPlay(w,A)}):doPlay(w,A)}function doPlay(d,b){var A=new CreateSynth$2;return A.init({sequence:d,millisecondsPerMeasure:b}).then(function(){return A.prime()}).then(function(){return A.start(),Promise.resolve()})}var playEvent_1=playEvent$1,CreateSynthControl$1=createSynthControl,CreateSynth$1=createSynth,TimingCallbacks=abc_timing_callbacks,activeAudioContext$1=activeAudioContext_1;function SynthController$2(){var d=this;d.warp=100,d.cursorControl=null,d.visualObj=null,d.timer=null,d.midiBuffer=null,d.options=null,d.currentTempo=null,d.control=null,d.isLooping=!1,d.isStarted=!1,d.isLoaded=!1,d.isLoading=!1,d.load=function(A,w,C){C||(C={}),d.control=new CreateSynthControl$1(A,{loopHandler:C.displayLoop?d.toggleLoop:void 0,restartHandler:C.displayRestart?d.restart:void 0,playPromiseHandler:C.displayPlay?d.play:void 0,progressHandler:C.displayProgress?d.randomAccess:void 0,warpHandler:C.displayWarp?d.onWarp:void 0,afterResume:d.init}),d.cursorControl=w,d.disable(!0)},d.disable=function(A){d.control&&d.control.disable(A)},d.setTune=function(A,w,C){return d.visualObj=A,d.disable(!1),d.options=C,d.control&&(d.pause(),d.setProgress(0,1),d.control.resetAll(),d.restart(),d.isStarted=!1),d.isLooping=!1,w?d.go():Promise.resolve({status:"no-audio-context"})},d.go=function(){d.isLoading=!0;var A=d.visualObj.millisecondsPerMeasure()*100/d.warp;d.currentTempo=Math.round(d.visualObj.getBeatsPerMeasure()/A*6e4),d.control&&d.control.setTempo(d.currentTempo),d.percent=0;var w;return d.midiBuffer||(d.midiBuffer=new CreateSynth$1),activeAudioContext$1().resume().then(function(C){return d.midiBuffer.init({visualObj:d.visualObj,options:d.options,millisecondsPerMeasure:A})}).then(function(C){return w=C,d.midiBuffer.prime()}).then(function(){var C=16;return d.cursorControl&&d.cursorControl.beatSubdivisions!==void 0&&parseInt(d.cursorControl.beatSubdivisions,10)>=1&&parseInt(d.cursorControl.beatSubdivisions,10)<=64&&(C=parseInt(d.cursorControl.beatSubdivisions,10)),d.timer=new TimingCallbacks(d.visualObj,{beatCallback:d.beatCallback,eventCallback:d.eventCallback,lineEndCallback:d.lineEndCallback,qpm:d.currentTempo,extraMeasuresAtBeginning:d.cursorControl?d.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:d.cursorControl?d.cursorControl.lineEndAnticipation:0,beatSubdivisions:C}),d.cursorControl&&d.cursorControl.onReady&&typeof d.cursorControl.onReady=="function"&&d.cursorControl.onReady(d),d.isLoaded=!0,d.isLoading=!1,Promise.resolve({status:"created",notesStatus:w})})},d.destroy=function(){d.timer&&(d.timer.reset(),d.timer.stop(),d.timer=null),d.midiBuffer&&(d.midiBuffer.stop(),d.midiBuffer=null),d.setProgress(0,1),d.control&&d.control.resetAll()},d.play=function(){return d.runWhenReady(d._play,void 0)};function b(A){return new Promise(function(w){setTimeout(w,A)})}d.runWhenReady=function(A,w){return d.visualObj?d.isLoading?b(500).then(function(){return d.isLoading?d.runWhenReady(A,w):A(w)}):d.isLoaded?A(w):d.go().then(function(){return A(w)}):Promise.resolve({status:"loading"})},d._play=function(){return activeAudioContext$1().resume().then(function(){return d.isStarted=!d.isStarted,d.isStarted?(d.cursorControl&&d.cursorControl.onStart&&typeof d.cursorControl.onStart=="function"&&d.cursorControl.onStart(),d.midiBuffer.start(),d.timer.start(d.percent),d.control&&d.control.pushPlay(!0)):d.pause(),Promise.resolve({status:"ok"})})},d.pause=function(){d.timer&&(d.timer.pause(),d.midiBuffer.pause(),d.control&&d.control.pushPlay(!1))},d.toggleLoop=function(){d.isLooping=!d.isLooping,d.control&&d.control.pushLoop(d.isLooping)},d.restart=function(){d.timer&&(d.timer.setProgress(0),d.midiBuffer.seek(0))},d.randomAccess=function(A){return d.runWhenReady(d._randomAccess,A)},d._randomAccess=function(A){var w=A.target.classList.contains("abcjs-midi-progress-indicator")?A.target.parentNode:A.target,C=(A.x-w.offsetLeft)/w.offsetWidth;return C<0&&(C=0),C>1&&(C=1),d.seek(C),Promise.resolve({status:"ok"})},d.seek=function(A,w){d.timer&&d.midiBuffer&&(d.timer.setProgress(A,w),d.midiBuffer.seek(A,w))},d.setWarp=function(A){if(parseInt(A,10)>0){d.warp=parseInt(A,10);var w=d.isStarted,C=d.percent;return d.destroy(),d.isStarted=!1,d.go().then(function(){return d.setProgress(C,d.midiBuffer.duration*1e3),d.control&&d.control.setWarp(d.currentTempo,d.warp),w?d.play().then(function(){return d.seek(C),Promise.resolve()}):(d.seek(C),Promise.resolve())})}return Promise.resolve()},d.onWarp=function(A){var w=A.target.value;return d.setWarp(w)},d.setProgress=function(A,w){d.percent=A,d.control&&d.control.setProgress(A,w)},d.finished=function(){if(d.timer.reset(),d.isLooping)return d.timer.start(0),d.midiBuffer.finished(),d.midiBuffer.start(),"continue";d.timer.stop(),d.isStarted&&(d.control&&d.control.pushPlay(!1),d.isStarted=!1,d.midiBuffer.finished(),d.cursorControl&&d.cursorControl.onFinished&&typeof d.cursorControl.onFinished=="function"&&d.cursorControl.onFinished(),d.setProgress(0,1))},d.beatCallback=function(A,w,C,x){var S=A/w;d.setProgress(S,C),d.cursorControl&&d.cursorControl.onBeat&&typeof d.cursorControl.onBeat=="function"&&d.cursorControl.onBeat(A,w,C,x)},d.eventCallback=function(A){if(A)d.cursorControl&&d.cursorControl.onEvent&&typeof d.cursorControl.onEvent=="function"&&d.cursorControl.onEvent(A);else return d.finished()},d.lineEndCallback=function(A,w){d.cursorControl&&d.cursorControl.onLineEnd&&typeof d.cursorControl.onLineEnd=="function"&&d.cursorControl.onLineEnd(A,w)},d.getUrl=function(){return d.midiBuffer.download()},d.download=function(A){var w=d.getUrl(),C=document.createElement("a");document.body.appendChild(C),C.setAttribute("style","display: none;"),C.href=w,C.download=A||"output.wav",C.click(),window.URL.revokeObjectURL(w),document.body.removeChild(C)}}var synthController=SynthController$2,centsToFactor=centsToFactor_1,rendererFactory$1;(function(){function d(k,$){for(var I in $)$.hasOwnProperty(I)&&k.setAttribute(I,$[I]);return k}function b(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}b.prototype.setTempo=function(k){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+E(Math.round(6e7/k),6),this.endTrack())},b.prototype.setGlobalInfo=function(k,$,I,D){if(this.trackcount===0){this.startTrack();var F=Math.round(6e7/k);this.track+="%00%FF%51%03"+E(F,6),I&&(this.track+=C(I)),D&&(this.track+=x(D)),$&&(this.track+=w($,"%01")),this.endTrack()}},b.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},b.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var k=E(this.track.length/3+4,8);this.track="MTrk"+k+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},b.prototype.setText=function(k,$){switch(k){case"name":this.trackName=w($,"%03");break}},b.prototype.setInstrument=function(k){this.trackInstrument="%00%C0"+E(k,2),this.instrument=k},b.prototype.setChannel=function(k,$){this.channel=k;var I="%00%B"+this.channel.toString(16);this.track+=I+"%79%00",this.track+=I+"%40%00",this.track+=I+"%5B%30",$||($=0),$=Math.round(($+1)*64),this.track+=I+"%0A"+E($,2),this.track+=I+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var A=4096;b.prototype.startNote=function(k,$,I){if(this.track+=B(this.silencelength),this.silencelength=0,I){this.track+="%e"+this.channel.toString(16);var D=Math.round(centsToFactor(I)*A);this.track+=P(8192+D),this.track+=B(0),this.noteWarped[k]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+k.toString(16)+E($,2)},b.prototype.endNote=function(k){this.track+=B(this.silencelength),this.silencelength=0,this.noteWarped[k]&&(this.track+="%e"+this.channel.toString(16),this.track+=P(8192),this.track+=B(0),this.noteWarped[k]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+k.toString(16)+"%00"},b.prototype.addRest=function(k){this.silencelength+=k,this.silencelength<0&&(this.silencelength=0)},b.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+E(this.trackcount,4)+"%01%e0"+this.trackstrings},b.prototype.embed=function(k,$){var I=this.getData(),D=d(document.createElement("a"),{href:I});if(D.innerHTML="download midi",k.insertBefore(D,k.firstChild),!$){var F=d(document.createElement("embed"),{src:I,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});k.insertBefore(F,k.firstChild)}};function w(k,$){for(var I="",D=0;D<k.length;D++)I+=E(k.charCodeAt(D),2);return"%00%FF"+$+E(I.length/3,2)+I}function C(k){if(!k||!k.accidentals)return"";for(var $="%00%FF%59%02",I=0,D=256,F=0;F<k.accidentals.length;F++)k.accidentals[F].acc==="sharp"?I++:k.accidentals[F].acc==="flat"&&D--;var z=E(D!==256?D:I,2),L=k.mode==="m"?"%01":"%00";return $+z+L}function x(k){var $="%00%FF%58%04"+E(k.num,2),I={1:0,2:1,4:2,8:3,16:4,32:5},D=I[k.den];if(!D)return"";$+=E(D,2);var F;switch(k.num+"/"+k.den){case"2/4":case"3/4":case"4/4":case"5/4":F=24;break;case"6/4":F=72;break;case"2/2":case"3/2":case"4/2":F=48;break;case"3/8":case"6/8":case"9/8":case"12/8":F=36;break}return F?($+=E(F,2),$+"%08"):""}function S(k){for(var $="",I=0;I<k.length;I+=2)$+="%",$+=k.substr(I,2);return $}function E(k,$){var I=k.toString(16);for(I=I.split(".")[0];I.length<$;)I="0"+I;return I.length>$&&(I=I.substring(0,$)),S(I)}function P(k){k=Math.round(k);var $=k%128,I=k-$;return E(I*2+$,4)}function B(k){var $=0,I=[];for(k=Math.round(k);k!==0;)I.push(k&127),k=k>>7;for(var D=I.length-1;D>=0;D--){$=$<<8;var F=I[D];D!==0&&(F=F|128),$=$|F}var z=$.toString(16).length;return z+=z%2,E($,z)}rendererFactory$1=function(){return new b}})();var abc_midi_renderer=rendererFactory$1,rendererFactory=abc_midi_renderer,create;(function(){var d=1920;create=function(A,w){w===void 0&&(w={});var C=A.setUpAudio(w),x=rendererFactory(),S=A.metaText?A.metaText.title:void 0;S&&S.length>128&&(S=S.substring(0,124)+"...");var E=A.getKeySignature(),P=A.getMeterFraction(),B=C.tempo/60;x.setGlobalInfo(C.tempo,S,E,P);for(var k=0;k<C.tracks.length;k++){x.startTrack();for(var $={},I=0;I<C.tracks[k].length;I++){var D=C.tracks[k][I];switch(D.cmd){case"text":x.setText(D.type,D.text);break;case"program":var F=0;w.pan&&w.pan.length>k&&(F=w.pan[k]),D.instrument===128?(x.setChannel(9,F),x.setInstrument(0)):(x.setChannel(D.channel,F),x.setInstrument(D.instrument));break;case"note":var z=D.gap*B,L=D.start,H=L+D.duration-z;$[L]||($[L]=[]),$[L].push({pitch:D.pitch,volume:D.volume,cents:D.cents}),$[H]||($[H]=[]),$[H].push({pitch:D.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+D.cmd)}}b(x,$,d),x.endTrack()}return x.getData()};function b(A,w,C){for(var x=Object.keys(w),S=0;S<x.length;S++)x[S]=parseFloat(x[S]);x.sort(function(D,F){return D-F});for(var E=0,P=0;P<x.length;P++){var B=w[x[P]];if(x[P]>E){var k=(x[P]-E)*C;A.addRest(k),E=x[P]}for(var $=0;$<B.length;$++){var I=B[$];I.volume?A.startNote(I.pitch,I.volume,I.cents):A.endNote(I.pitch)}}}})();var abc_midi_create=create,tunebook=abc_tunebook,midiCreate=abc_midi_create,getMidiFile$1=function(d,b){var A={};if(b)for(var w in b)b.hasOwnProperty(w)&&(A[w]=b[w]);A.generateInline=!1;function C(x,S,E){var P=midiCreate(S,A);switch(A.midiOutputType){case"encoded":return P;case"binary":var B=P.replace("data:audio/midi,","");B=B.replace(/MThd/g,"%4d%54%68%64"),B=B.replace(/MTrk/g,"%4d%54%72%6b");for(var k=new ArrayBuffer(B.length/3),$=new Uint8Array(k),I=0;I<B.length/3;I++){var D=I*3+1,F=parseInt(B.substring(D,D+2),16);$[I]=F}return $;case"link":default:return generateMidiDownloadLink(S,A,P,E)}}return typeof d=="string"?tunebook.renderEngine(C,"*",d,A):C(null,d,0)};function isFunction(d){var b={};return d&&b.toString.call(d)==="[object Function]"}var generateMidiDownloadLink=function(d,b,A,w){var C=["abcjs-download-midi","abcjs-midi-"+w];b.downloadClass&&C.push(b.downloadClass);var x='<div class="'+C.join(" ")+'">';b.preTextDownload&&(x+=b.preTextDownload);var S=d.metaText&&d.metaText.title?d.metaText.title:"Untitled",E;b.downloadLabel&&isFunction(b.downloadLabel)?E=b.downloadLabel(d,w):b.downloadLabel?E=b.downloadLabel.replace(/%T/,S):E='Download MIDI for "'+S+'"',S=S.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var P=b.fileName?b.fileName:S+".midi";return x+='<a download="'+P+'" href="'+A+'">'+E+"</a>",b.postTextDownload&&(x+=b.postTextDownload),x+"</div>"},getMidiFile_1=getMidiFile$1;try{if(typeof window.CustomEvent!="function"){var CustomEvent$1=function(d,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(d,b.bubbles,b.cancelable,b.detail),A};CustomEvent$1.prototype=window.Event.prototype,window.CustomEvent=CustomEvent$1}}catch(d){}var EditArea$1=function(d){this.textarea=document.getElementById(d),this.initialText=this.textarea.value,this.isDragging=!1};EditArea$1.prototype.addSelectionListener=function(d){this.textarea.onmousemove=function(b){this.isDragging&&d.fireSelectionChanged()}};EditArea$1.prototype.addChangeListener=function(d){this.changelistener=d,this.textarea.onkeyup=function(){d.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,d.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,d.fireChanged()},this.textarea.onchange=function(){d.fireChanged()}};EditArea$1.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}};EditArea$1.prototype.setSelection=function(d,b){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(d,b);else if(this.textarea.createTextRange){var A=this.textarea.createTextRange();A.collapse(!0),A.moveEnd("character",b),A.moveStart("character",d),A.select()}this.textarea.focus()};EditArea$1.prototype.getString=function(){return this.textarea.value};EditArea$1.prototype.setString=function(d){this.textarea.value=d,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()};EditArea$1.prototype.getElem=function(){return this.textarea};var abc_editarea=EditArea$1,parseCommon=abc_common,SynthController$1=synthController,supportsAudio$1=supportsAudio_1,renderAbc=abc_tunebook_svg,EditArea=abc_editarea;function gatherAbcParams(d){var b={},A;if(d.abcjsParams)for(A in d.abcjsParams)d.abcjsParams.hasOwnProperty(A)&&(b[A]=d.abcjsParams[A]);if(d.midi_options)for(A in d.midi_options)d.midi_options.hasOwnProperty(A)&&(b[A]=d.midi_options[A]);if(d.parser_options)for(A in d.parser_options)d.parser_options.hasOwnProperty(A)&&(b[A]=d.parser_options[A]);if(d.render_options)for(A in d.render_options)d.render_options.hasOwnProperty(A)&&(b[A]=d.render_options[A]);return b.tablature&&d.warnings_id&&(b.tablature.warnings_id=d.warnings_id),b}var Editor=function(d,b){this.abcjsParams=gatherAbcParams(b),b.indicate_changed&&(this.indicate_changed=!0),typeof d=="string"?this.editarea=new EditArea(d):this.editarea=d,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),b.canvas_id?this.div=b.canvas_id:b.paper_id?this.div=b.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),b.selectionChangeCallback&&(this.selectionChangeCallback=b.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),b.synth&&supportsAudio$1()&&(this.synth={el:b.synth.el,cursorControl:b.synth.cursorControl,options:b.synth.options}),b.generate_midi&&(this.generate_midi=b.generate_midi,this.abcjsParams.generateDownload&&(typeof b.midi_download_id=="string"?this.downloadMidi=document.getElementById(b.midi_download_id):b.midi_download_id&&(this.downloadMidi=b.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof b.midi_id=="string"?this.inlineMidi=document.getElementById(b.midi_id):b.midi_id&&(this.inlineMidi=b.midi_id))),b.warnings_id?typeof b.warnings_id=="string"?this.warningsdiv=document.getElementById(b.warnings_id):this.warningsdiv=b.warnings_id:b.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=b.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(A,w){var C=function(x,S){var E=x.className;return E.length>0&&(E===S||new RegExp("(^|\\s)"+S+"(\\s|$)").test(E))};return C(A,w)||(A.className+=(A.className?" ":"")+w),A},this.removeClassName=function(A,w){return A.className=parseCommon.strip(A.className.replace(new RegExp("(^|\\s+)"+w+"(\\s+|$)")," ")),A},this.setReadOnly=function(A){var w="abc_textarea_readonly",C=this.editarea.getElem();A?(C.setAttribute("readonly","yes"),this.addClassName(C,w)):(C.removeAttribute("readonly"),this.removeClassName(C,w))}};Editor.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var d=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(d)}if(this.synth){var b=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new SynthController$1,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],b,this.synth.options)}};Editor.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=renderAbc(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(d){console.error("ABCJS error: ",d),this.warnings||(this.warnings=[]),this.warnings.push(d.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.updateSelection(),this.bReentry=!1}};Editor.prototype.paramChanged=function(d){if(d)for(var b in d)d.hasOwnProperty(b)&&(this.abcjsParams[b]=d[b]);this.currentAbc="",this.fireChanged()};Editor.prototype.synthParamChanged=function(d){if(this.synth){if(this.synth.options={},d)for(var b in d)d.hasOwnProperty(b)&&(this.synth.options[b]=d[b]);this.currentAbc="",this.fireChanged()}};Editor.prototype.parseABC=function(){var d=this.editarea.getString();return d===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=d,!0)};Editor.prototype.updateSelection=function(){var d=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(d.start,d.end)}catch(b){}this.selectionChangeCallback&&this.selectionChangeCallback(d.start,d.end)};Editor.prototype.fireSelectionChanged=function(){this.updateSelection()};Editor.prototype.setDirtyStyle=function(d){if(this.indicate_changed!==void 0){var b=function(x,S){var E=function(P,B){var k=P.className;return k.length>0&&(k===B||new RegExp("(^|\\s)"+B+"(\\s|$)").test(k))};return E(x,S)||(x.className+=(x.className?" ":"")+S),x},A=function(x,S){return x.className=parseCommon.strip(x.className.replace(new RegExp("(^|\\s+)"+S+"(\\s+|$)")," ")),x},w="abc_textarea_dirty",C=this.editarea.getElem();d?b(C,w):A(C,w)}};Editor.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var d=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){d.modelChanged()},300);var b=this.isDirty();this.wasDirty!==b&&(this.wasDirty=b,this.setDirtyStyle(b)),this.onchangeCallback&&this.onchangeCallback(this)}};Editor.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)};Editor.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()};Editor.prototype.highlight=function(d,b,A,w,C,x){this.editarea.setSelection(d.startChar,d.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(d.startChar,d.endChar),this.clientClickListener&&this.clientClickListener(d,b,A,w,C,x)};Editor.prototype.pause=function(d){this.bIsPaused=d,d||this.fireChanged()};Editor.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()};Editor.prototype.pauseMidi=function(d){this.midiPause=d,d||this.redrawMidi()};var abc_editor=Editor,version=version_1,animation=abc_animation,tuneBook=abc_tunebook,sequence=abc_midi_sequencer,strTranspose=output,abcjs={};abcjs.signature="abcjs-basic v"+version;Object.keys(animation).forEach(function(d){abcjs[d]=animation[d]});Object.keys(tuneBook).forEach(function(d){abcjs[d]=tuneBook[d]});abcjs.renderAbc=abc_tunebook_svg;abcjs.TimingCallbacks=abc_timing_callbacks;var glyphs=glyphs_1;abcjs.setGlyph=glyphs.setSymbol;abcjs.strTranspose=strTranspose;var CreateSynth=createSynth,instrumentIndexToName=instrumentIndexToName_1,pitchToNoteName=pitchToNoteName_1,SynthSequence=synthSequence,CreateSynthControl=createSynthControl,registerAudioContext=registerAudioContext_1,activeAudioContext=activeAudioContext_1,supportsAudio=supportsAudio_1,playEvent=playEvent_1,SynthController=synthController,getMidiFile=getMidiFile_1;abcjs.synth={CreateSynth,instrumentIndexToName,pitchToNoteName,SynthController,SynthSequence,CreateSynthControl,registerAudioContext,activeAudioContext,supportsAudio,playEvent,getMidiFile,sequence};abcjs.Editor=abc_editor;abcjs.EditArea=abc_editarea;var abcjs_1=abcjs;const ABCJS=getDefaultExportFromCjs(abcjs_1),abcjsAudio="",container="_container_114po_1",containerTop="_containerTop_114po_11",topWrap="_topWrap_114po_18",topBtn="_topBtn_114po_25",btnImg$1="_btnImg_114po_25",btnImgActive="_btnImgActive_114po_51",topBtnIcon$1="_topBtnIcon_114po_54",btnDisabled="_btnDisabled_114po_58",topDownArrow="_topDownArrow_114po_63",topLine="_topLine_114po_75",btnPlayMore="_btnPlayMore_114po_81",wrapBox="_wrapBox_114po_84",longTopBtn="_longTopBtn_114po_94",dropDownWrap="_dropDownWrap_114po_100",content$2="_content_114po_108",slide$1="_slide_114po_113",box$1="_box_114po_126",value="_value_114po_134",instruments$1="_instruments_114po_154",instrumentTitle="_instrumentTitle_114po_162",titleBox="_titleBox_114po_170",popupWrap="_popupWrap_114po_176",btnLineTitle="_btnLineTitle_114po_184",btnItem$1="_btnItem_114po_191",btnItemIcon$1="_btnItemIcon_114po_197",btnItemName$1="_btnItemName_114po_210",btnItemActive="_btnItemActive_114po_213",titleName="_titleName_114po_216",selectMearesBox="_selectMearesBox_114po_222",mearesInput="_mearesInput_114po_232",selectMearesHidden="_selectMearesHidden_114po_243",loading="_loading_114po_246",exportPng="_exportPng_114po_258",styles$6={container,containerTop,topWrap,topBtn,btnImg:btnImg$1,btnImgActive,topBtnIcon:topBtnIcon$1,btnDisabled,topDownArrow,topLine,btnPlayMore,wrapBox,longTopBtn,dropDownWrap,content:content$2,slide:slide$1,box:box$1,value,instruments:instruments$1,instrumentTitle,titleBox,popupWrap,btnLineTitle,btnItem:btnItem$1,btnItemIcon:btnItemIcon$1,btnItemName:btnItemName$1,btnItemActive,titleName,selectMearesBox,mearesInput,selectMearesHidden,loading,exportPng},piano="_piano_1vew4_1",show="_show_1vew4_12",pianoItemWrap="_pianoItemWrap_1vew4_15",itemWrap="_itemWrap_1vew4_23",item$2="_item_1vew4_23",keyDown="_keyDown_1vew4_48",keytip="_keytip_1vew4_71",singname="_singname_1vew4_82",bkey="_bkey_1vew4_91",styles$5={piano,show,pianoItemWrap,itemWrap,item:item$2,keyDown,keytip,singname,bkey},_hoisted_1$3={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},_hoisted_2$3=createBaseVNode("path",{d:"M289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34z",fill:"currentColor"},null,-1),_hoisted_3$3=[_hoisted_2$3],Close=defineComponent({name:"Close",render:function d(b,A){return openBlock(),createElementBlock("svg",_hoisted_1$3,_hoisted_3$3)}}),setbox$1="_setbox_dl4mj_4",head$1="_head_dl4mj_13",close$1="_close_dl4mj_27",content$1="_content_dl4mj_33",lineTitle="_lineTitle_dl4mj_38",item$1="_item_dl4mj_46",itemImg="_itemImg_dl4mj_54",icon="_icon_dl4mj_62",itemActive="_itemActive_dl4mj_66",itemIcon="_itemIcon_dl4mj_73",beatItem="_beatItem_dl4mj_84",beatIcon="_beatIcon_dl4mj_95",speedIcon$1="_speedIcon_dl4mj_110",btnItem="_btnItem_dl4mj_113",btnItemIcon="_btnItemIcon_dl4mj_122",btnItemName="_btnItemName_dl4mj_131",active="_active_dl4mj_134",btns="_btns_dl4mj_137",styles$4={setbox:setbox$1,head:head$1,close:close$1,content:content$1,lineTitle,item:item$1,itemImg,icon,itemActive,itemIcon,beatItem,beatIcon,speedIcon:speedIcon$1,btnItem,btnItemIcon,btnItemName,active,btns},icon_1$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAuxJREFUeF7t27tPFFEcxfEvaqIhGC2wUv8COvwXrIy9iYWh8W0jSmOQiFr5oMH3q7GxsvGfsMDWwoQKYwyVWthglPwIJJvJwN5hzyXjnbPVFnfPzHz2zOzdeQzhl1RgSJrmMAwqLoFBDSoWEMe5oQYVC4jj3FCDigXEcW6oQcUC4jg31KBiAXGcG2pQsYA4zg01qFhAHOeGGlQsII5zQ/9T0PjiRoG9ovX/A3wXZUljcjf0GHALOA7sk645LAIngC/i3IHicoHuAW4CN4B4n+v1FjiTK3w7ublAZ4GZ7axQw890AjR284+ZmxnundnlPwAne5q2AtwG3gO/GjZws+Gd+VGKQ8jvyg9QHEvviiBbH6M+hh4ClitbPQZ8br2EaAXVoEeApcq6HQW+ita39TEGFX9FJYLuBv4Bf8VWSXGlgU4A8+uYk8DrJAXhoJJA4zzBj8oM4wrwWOjVN6ok0GHgZ80fisvAk74SogElgQbJNHCnYhPH00B9KjLbMqY00NjYe8BUDepF4Hlu1BJBw+w+cL0G9QLwIidqqaBh9gC4VoN6HniZC7Vk0DB7CMT0qfcVx9RzwKscqG0EPQiMCDc2mnqqBvVsjnlq20BjehO75C4h6GZR0dTTwDvlstoEGiemF5Qbl5D1DTicMC55SJtAx4FPyWuuGVg0aBA9Ai7BjjyQVvwuv9G5/cABTQHXUjr9oyR0XIuaA652fdqkQvXEXiXpv55CSZ8c0WLGJeu4B6D6VzNmDs+0i6pPa9M8dNDt9QnmQQUrn/clEDFoxPVepIvp0psMy9gysqRdfmNDfRl5p1uUc3klNjSnV99sNahvFutL3myAb2ds5pU02jfcJjGlD/It4elWySP90EIyVdpAP1aT5tR4lB/8akyW9gE/mpjm5FFVAfXEvvPCBhVXwKAGFQuI49xQg4oFxHFuqEHFAuI4N9SgYgFxnBtqULGAOM4NNahYQBznhhpULCCOc0MNKhYQx7mhYtBVqPOkVTfYfusAAAAASUVORK5CYII=",__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:icon_1$1},Symbol.toStringTag,{value:"Module"})),icon_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABIhJREFUeF7tm0uoVlUUx3/X8jFoYiKIghINRBMDxUHgA8XKaCTRAx9J+EKEFATBmQNBMEgjkSjFSO1hCEKQj4G9LAfqoKBEBKVQalIQhmT24o/nXA6He+93ztlr73O/7649Eu/e/73W76x19rfX3qcPb6YE+kzVXAwHahwEDtSBGhMwlvMIdaDGBIzlPEIdqDEBYzmPUAdqTMBYziPUgRoTMJbzCHWgxgSM5TxCHagxAWM5j1AHakzAWM4jtEuBPgasA54CpgIPdfDjDnAN+Bh4A/jD2O9ocrEjdAzwOrAJGNXQi5+AZ4AfGo5POiwmUME8BSwx8OgXYB5w00ArqkRMoPuBzYbWXwAWAfcMNc2lYgGdBXxbSnNF13bgc+DnDp5MBHYBG0r93gReNadgKBgL6D5gS8FOwXwc+K2G7bLtE+DZ0pjVwNEaOkm7xgL6PTCz4MkK4IMGno0HLgOPFMb+CxwHrlbQuw1oUTsH/Fqhf3CXWEDlSPGn0eQKaT6YM3OAr4FxAd7+A5wAdgDXA3Q6Do0F9L/SzKHzvAC8DzzQ0aOhO+hBvwR8Gqgz6PBQRwcTtgaqeZYCbwGPBsL4C1gMfBOoM+DwbgIqB7Q5WADMBh6uAESvGvWfUeqrtNf/Ca5p6zagTZzXQ9gG7CkN1lb4UBPBocaMBKC5/weBtQUYp7MtrSnTkQR0LnCpQE+bC70STNtIAqrawt0CPf2UetCUJkS7cBtjlbfwPbpdbUfo2Gy/vixbdacFlPmaAFeU3gLOAjuzfzfR6R/TJtDnsuLxlCAP7Ab/ntVtm2yRWwf6MnA4cTRWQa+IfQK4WKXzQH3aiND5wBfDEGbO5wqg8qOKMLVbG0C/zHYvubF/AruBI8CPTR2p7fn9AXqHPw+8W6oT6KGrIFO7pQaqPbRKaXnTqqsFSYtCm+0jQAWYvG0E3m5iUGqg5d2KHFH1p+2mgvXKghFrgPeaGJUSqH5E67BtQsHQp4dBdA5klw4Ei7uqymxTAtWZ/JmCZaqgTwL+rmxtnI6mdqUE+k522SHHovRfH4dRLVVTu1IBHd1F6R70GkoFVEb2fLorL1IBVXqroNvT6Z4SqBagbljdg9I9JdDiKtGTq3vuYKqULwLtydW9TaDBaVXrR9HAnaNtMlJHaE+nexvv0J5O9zaA9nS6xwRaviymuXo+3WMCLV9n1FzHgFUGC0qoxIfAi7E2GbEWpb3A1pLnJ4HloTQCx6uypBsjRb/1DcBngbr9w2MB1Wc035XOjVSdPwC8lh11WPnQSUd3m3Q8rZvPuh9avGf6FbCwk0Cdv8cCKhusP1qo41eVvjqE00cQ56t0rtonJlBdfZGxqn4PtyaYrzQ95hjKmZhANa+g6sODJyNWtuo+LN0U0QcVuiJu3mIDzQ3Wi1+fGE7PLmilmjef/wag83YtSDrNLF4aM4Wa2jFT44ejmAM1fioO1IEaEzCW8wh1oMYEjOU8Qh2oMQFjOY9QB2pMwFjOI9SBGhMwlvMIdaDGBIzlPEIdqDEBYzmPUAdqTMBYziPUgRoTMJb7H2t6zFVTEKTfAAAAAElFTkSuQmCC",__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:icon_0},Symbol.toStringTag,{value:"Module"})),icon_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAvlJREFUeF7t3M2rTVEcxvHvNVCIKDHAQIgJE29FKCkGKJGJUCSMTYwN+AeEiZCBDCghpQyIkoGBlJeBpJSUkLeI6Hdat67b2d2193nWsXWfPf6t5679uc85Z59d+wzgQyowIE1zGAYVl8CgBhULiOPcUIOKBcRxbqhBxQLiODd0lIMuBjYBF4EnYgtJ3P/W0P3AKWAbcEkiIA4xqEHdUGUH/JJXagIGNahYQBznhhpULCCOc0MNKhYQx7mhBhULiOPcUIOKBcRxbqhBxQLiODfUoGIBcZwbalCxgDjODTWoWEAc54YaVCwgjnNDDSoWEMe5oQYVC4jj3FCDigXEcW6oQcUC4jg31KBiAXGcG2pQsYA4zg01qFhAHOeGGlQsII5zQw0qFhDHuaEGFQs0iJsATAO+Au+An0My3NAM0AXpCeP1wDJg4pA134EHwAXgHLDTD89Wi64DDgEbMtBj5CVwC9jrp5H/FpsBnAA2Z0J2G/Pj3UllC3AWmNQDZiw1KHAQOA6M6RHToMDu1EyBZSdiVDd0EXAfGKfSBNYAdzLzxgNr09vMbeB15rpGY/34iYx7wIpGu6teNB14m5E5G7gJzE2zX4BdwOWMtY1GSoOuBO422ln1osfAwszMq8DGYbMfgVnAp8yMWmOlQU8CB2rtaOThPcCZkcc6E4HX7YpiVYF/dOcPlgaN96zVmSefM/YIWAr8yBkGngLzu8zOAV5kZtQaKw36HJhXa0fVw5+BJcCzGnnR5tPD5uP3nuIqochRGvRKj9+IBk/6G7AVuNFAYXv68Zd46V8HjgFxj6DIURr0cDqBXjb/IX2wxNVC64/SoJPT+1hc5jQ54pJnH/CqyeJ/saY0aJzTcuAaMLXGCcaHyVHgfI01rRjtB2ic6EzgCLADGFtx5u/T7blAjOvH360QqrmJfoEObivuxse3prhsmQLEJ/ebdK/zIfCr5v5bN95v0NYBqDdkULGoQQ0qFhDHuaEGFQuI49xQg4oFxHFuqEHFAuK4P8RMplUmMtfOAAAAAElFTkSuQmCC",__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:icon_1},Symbol.toStringTag,{value:"Module"})),icon_10="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA2xJREFUeF7tmcurTlEYxn9HIRnIBKWYuRdKMTAQEbkUCiNl4E8wMzDhv5CBGDBA7rfIZYpcMiFJSQkj92tPLbXjdM7+1n7W/vZ3elet2Xqfvd7ffvZa71p7iGhWAkNWtRAjgJpNEEADqJmAWS4cGkDNBMxy4dAAaiZglguHBlAzAbNcODSAmgmY5cKhAdRMwCwXDg2gZgJmuXBoADUTMMuFQwOomYBZLhwaQM0EzHLh0ABqJmCWC4cGUDMBs1w4NICaCZjlSjt0FbAcuArcM8+9k3Klgd4ABFXtFXAGOAXcAn50kkjDSZUGKlcuHWaOH4BzCe4V4GPDPDoTXhroY2DhKNl+AQT1dIL8tjN0MiZSGugjYFEP8/oF3ElwBfhFD7GdGFoa6AZgP7ACGJeR8cMEV+vug4z41kNKA/2b0Axga+rapMZnZPqy4tzbwM8MjeIhbQGtJjIV2AxsA9YBkzKyfFfZ1FSSfcrQKBLSD6DVRCYD6xPcjcCUjCw/A5crm5pg9631G2g18QnAmgR3CzAtg4qWAS0H2tDUtUy02roEtJq4NrCVCa7W3lmZVO5X4GqDK966CvTfxJdV4M7LpKISTK49Cgh0kTYoQKvJzwf2AXsyieggobX6W2b8iGGDBnQxsBPYDczMAPIdOAAcyoitFTIIQHV03ZFAzq2V1f+D5MbjwEHgWaZGrbCuAp2TAMqNo90FjJToc+AwcAR4U4tIw0FdAqrPWQX/dmBJg7xUh54EjgF3gd8NtHoO7SfQicBqYFPquaWRkhZE3bWeAK738661baDTAZ2I5MS1gE5Kua2TZ/s2gOqsvgvYm26dcp+pT1c3TmdTPVmslsx9w4rLTa7uM2cDFwHVjjlNN/nXgPOpv84RaTOmNNAnwIIeE1JZcyH1m8DXHuP7OrwkUF3Tva+RnW6L9DPvUnJz0TqxxnwaDSkJVBPTxjHc7v00ARRE/QHVcXBMtNJAVVPqhKIjn8oZrafqrV+rtfW2SgNVHiqNBLTIZURboOo+pw2gdecyJsYFUPNrDKAB1EzALBcODaBmAma5cGgANRMwy4VDA6iZgFkuHBpAzQTMcuHQAGomYJYLhwZQMwGzXDg0gJoJmOXCoQHUTMAsFw4NoGYCZrlwaAA1EzDLhUMDqJmAWS4cGkDNBMxy4VAz0D+03XNV5puEGQAAAABJRU5ErkJggg==",__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:icon_10},Symbol.toStringTag,{value:"Module"})),icon_11="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAYVJREFUeF7t1bFNHFEARdFHRkodDk1ERBEUYLkxywXYLbgAaISIDhAix7IGnR05uBv/ufpz5kl7tX5U4IrWii1QPIJAA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCONdCA8UCOHfWQq+33eC7H8m9bns+8sBnz54F+mfb/WcviZ572PYLtf6aOQv0advXS7/MP/rft/249B0CxcJngT5uu8V3P5r7tu3n0YeOnj8L9G7bl6OXg+ff/5R+b3uBzQ9TZ4Fe+j3+m36g+FMEGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWGigWwLkWikHfAEOtDVUlJKfhAAAAAElFTkSuQmCC",__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:icon_11},Symbol.toStringTag,{value:"Module"})),icon_12="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAVKADAAQAAAABAAAAVAAAAAC3aM1AAAADrUlEQVR4Ae2aS4sTQRDH8yIvTNwEcktEZNmLngQ9KR5cvKn4HTwInvwosuoX0JMXX+hFPbi4eog3xYPCItmgQrKJZtdI2Dz8V5iWIW52kp6eSYP/hqG6uqtqun5Uz2xPNhJhIwESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAESIAES+D8JRMNKO5fLvY5Go8dxv01cn0ej0RfoW5C1eDxeGw6HW51Op6WzniU0xKoMBoOKSMSsIM5RXCu4lqF/3NnZOYN+4C0R+B2cGyDRn0hsCepJ54pAH88CxFjm8/lfGGvDtgv52y3HBpFIBjKLuSzmMo5cgv8hZ/5vTKWLlHu79SD7oVVosVjM9/v954BwOsiEJmMDZjWRSKy2Wq3O5FwQemhAZfGowCKAvkL3RBDJ7BPzA4Ce032U7BPPcyjmaWHQQBJLpVIXELJuMOy0UHW5V5gwZSGhVqjKHJV6CpW6Dj2txgzLHirzLGBWDcf1DBf3tAjAoNfrfc1kMg1AvRhA+EgsFrsOmE+CiO0VcyEVqhaFSn0EqJeUbkKiMh8D5mUTsXRihPoMnVxgNpu9irHm5LgPvenE9BHCn+tCtrxa8u7ubjedTn+HfkWN+ZGozmvb29tv/cTw67vQLa8Wj63/Alv/vNJ1JGC+xFZf1fE16bPQLa8SwdHzBvpDpWvIoRNDw9WsixVA2+32e1TYXd3UxFdi6Pqb9LNiy0tChULhCI6mn9BNzZlgD0fLFQCtzekXiLkVFSqZCRD8/Xhr3ixRnbdtgSlrt6ZCZTFy1ofYxAvqsOheDTDlK9IxvIy0Pvt5xdeZt6ZCZfEOmLU5ElmzCaas2yqgsqBkMnkHYk/6Hm3PsfUwC3faOqDNZvMbtvJ9LwxiI7ZedmHPWwfUAXBzBhCz2MwQxqyJlUDxXKyiAqceIWVObMyiMBPNSqCSGqBNrcCD5sxg0Y9iLdByufwA4NqTqWHsh8xNjtuiL/Rr00EQGo3GAG/xZdjIr6Tudq9erz90D9jUt7ZCBRJOTv+87fcbI9AZCZRKpXVs8a4yl76MKZ1SgwCOo0/xXycjudB/phEiVBert7yQQFW+UUTQ31B9W6X1QPGh5J2C5+6rMduk9UBRlfKNdNzcfTVmm7QeKJ6d8iPeuLn7aoxSgwBeRhtyabjShQRIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARIgARCIvAH1T0D5hxAQ9EAAAAASUVORK5CYII=",__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:icon_12},Symbol.toStringTag,{value:"Module"})),icon_13="data:image/png;base64,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",__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:icon_13},Symbol.toStringTag,{value:"Module"})),icon_14="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABPZJREFUeF7tnG2olUUQx39WYBnql6QIyjKpSKOw0BIMxMKyREyo0NIiCCMqragwIggxRdDEsA/ai2FWvhEVGKZSUVGBEiYURKllpimhqSVZIn/YQ9sh4Z5nZ/Z4n7MD98O9PDPPmd+ZfZnZ2duDIqYEephaK8YoQI2DoAAtQI0JGJsrEVqAGhMwNlcitAA1JmBsrkRoAWpMwNhcidAC1JiAsbkSoQWoMQFjcyVCawr0TOAsoA+wH/gF+NvY1yzm2hmhVwP3ANcBlwGnRB4L5ifAW8CS7gS3HUAF8gVgWBdD5ltgDLCti8+39bHcQGcCTwKntuj198Bg4EiLetkfzwVU71kETE3w8E7g9QT9LKq5gD4BzE70aBbwVKINd/UcQAcCW4AzEr2ZATyXaMNdPQfQ14C7DDy5HNhqYMfVhDfQ04Ffgd6JXnwOXJtoI4u6N9BbgHcTPfkL0Fbr60Q7WdS9gU4D5id68jgwN9FGNnVvoHMAAakqi4H7qiq3Q88b6Mshvazim/atDwLHWlRW0jAK2NiOlNUb6KvAlBaBHAAeBV5qUU+Pa2u2AtDc/TwwvYKNJJWTCehBYCmg9HRPRa9uB96MdMcC71W0VUktF9DdgKL1AuB8QNspicp03wEfAeuBQ5W8+FepJ/ApcFX40z7gCmBXot0uq+cCKlg3dPlTpT04ANgM9A1mPgxzaqtzcaVPUUegAjEeWBMRuRfQAukudQUqcC9G1a0dwMWAkgRXqTPQfoDqqI20V1swFbZdpc5ABe5p4NlAUAvjRcAfnkTrDlSHf4rSswNE9yJ13YGKo+oAjwWg2vRrr+omnQB0eNibCuLvgOZWt8WpE4DKR23szwlhORpY5xWinQBU7JYBkwJEnbqqCuYi3kBfAe4OaWWuTOn/QMVlRNVnH3GhCe4Xv04WoKo6zQsQl0fRas61UyJUw13DXrIBuN6cZDDYKUAfAhYEn1XOU1nPRToFqIrNDweCCwEBdpFOAfpOFJVakFIPDk/4ZXgDbTQ55KyHNjurM6afo/RTpb23XcIzwyqv5q6Jbd423QisDQCPhg3+b90VqBpmb2sz0MaXKoauC5Je4D3kVwO3thGo8vbtQK8QkRotb3hFZw6gmqvGOQK9MhwZ/xhAaUjHEvcF6ABQ+fzh7gxUQ+xmR6CKtjsCoJuA9yNY1wCfRaPwmajY7MbUe8hrMdCi4LXKN6YUARJYzdkSrexfAkPC7z8BlwB/upEMhr2BfhDSvBxA4/lRZ0cPRPDc587Gu7yBqr9oZKYIVVOv8vX7Qz9/w0ddzxnhHZm5gH4cnMkRoSoT7gzz6GnBQTX7qotEf88i3hGqRUGdxzmA6l26eqPbeBJdHlMXnr7UbOIN9AtgaCagzdCynMM3v9Qb6Kaw0uaI0Ni3lSFDyxaZuebQr0L3W26g/wDqvFPO3vjRDRJdzXEV7wiVE4Mch/wqYEILhNRKqT2pm3gD/Qa41BHoZEDnVvFN5hPB2gv0997cewNVM61u0nkNecE7NzQvaFXXUG/8NP+ue/jNub55pHoD/QG40BmoOZQUg95AVQU6rwBN+Yr+q6t/GqC+ehVJ9E8Eai/eEarSnZq1dD1R9zVrL95Aaw8wd6ZUgHYcAWOHy5AvQI0JGJsrEVqAGhMwNlcitAA1JmBsrkRoAWpMwNhcidAC1JiAsbkSoQWoMQFjc8cBYGvqVZKYHuIAAAAASUVORK5CYII=",__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:icon_14},Symbol.toStringTag,{value:"Module"})),icon_15="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA5pJREFUeF7t27ur1EAUx/HvBR8gKD46UUFs7fwHLCwsBBW0EEWwsdJGUDsrG7VT/wRfoDY2CjbCBRsRSxtBULQQRFAQH4VyZIIhTDYzs2eyZ/eeLe+dnE0++SUzmcwu4R9VgSXVal4MB1UOgYM6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84Q6qLKAcjlPqIMqCyiX84SuUNAr4bgvKh+/erl5SKhgXghHfhUwjWodtI3ZpMk0qmXQGKZ5VKugkzBNo1oETcE0i2oNtIv5EdgCrA2CP4HPwNZW92zqnmoJtIv5G9gLPAHWB8BvwH7gGbDaIqoV0E3AS2BnC+kscBP42gHdAJwBbrTavgX2AF/UB5aZBa2Aym7vCMkT1NvAiXAsMVD51y3gOCCYkuR3mcdepbkl0AZVkncM+D4Aug64C0iSTWDK/loDjaWmL6FVEjZtUQedVrCz/SxApQPK6TymSWjud03NOzaojBmPZHYipaBNJ3d/zAmVMUEF83yIQE7PXALaHjHIV442+B8LtI3ZXFaPgIMJ11gJ6FNgX6f2KKhjgMYwZZx5ujU0muRaArotjGl3jY1aG7SLKY+T58ITUEI4/zUpAZXtZoJaE7SLKRMdR4HnqZIDA/uUMqOj1gKNXeYyU/QrRaHTppkYaf4sEyQ5nzWt2ar2dlXuqTVAc+Yzc2BqtFVHXemg11ovAFVOWA1Q2bFYSq1d8uqYcuC1QGOo78O481VmFEp7+Uk9fRXM2qAxVJmSOwk8zEAtBe3r4athjgEaQ/0DXAIuJ6KWgM4EcyzQvnvqPeAU8GMAtgR0oR89G6/Y2PQFcAD4NAG1BHThJ0f6UOWN5iFARgB9nxJQqbXw03dd1MfA4QFM2aYUVLZd+AnmBlXunXcSMKcFTez39JrVHIdq7eU0CdXah+Q61kBXAZs7nVQfqL9GHjjNsiLkQVg9IgsXPoT2vtAh+fr433AjsAzsDn96E17kCWoMVBY3XG99jy/FiaB3x6kN6uuExWJVHydzAmLtHhpD3T6wnNEM5piPnjknOfZE1be9KUyroLJfKajmMC2DDqGaxLQO2odqFnMeQGUf/YdfOT1QYlv/aWIi1MI1szYOnXtgB1U+hQ7qoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhPqoMoCyuU8oQ6qLKBczhOqDPoXmrbIVfzbB5kAAAAASUVORK5CYII=",__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:icon_15},Symbol.toStringTag,{value:"Module"})),icon_16="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA49JREFUeF7tm0uoTVEYx3/XqzwyQMnA+5HEDGFACQMpioGUkSIDkYmRke6UKMVAipE8ihjIuxh4FUkKiRTyTnmN6KutTsdeZ59z93+tvR3frjs5Z63fWt/vfGvvtdZetwe/pAZ6pDSH4ULFSeBCXajYgBjnGepCxQbEOM9QFyo2IMZ5hrpQsQExzjPUhYoNiHGeoS5UbECM8wx1oWIDYpxnqAsVGxDjPENdqNiAGFdVho4GdgOLgaHAA2AHcF0cX3JcVULPAcubov0MTAPeJbcgbLAKoYOAb0D/nDjWACeF8SVHVSF0HPAiEOlWYF9yC8IGYwkdAqwARuT01T7rDcRwHLgsjC+E+giczUaKtLlYQi8AS6Q91cMuAkvV2FhC7R45WN1ZMe87YCNJesUSeguYI+2pHnYbmKvGxhI6BlgfuIcOBzYHArkE3FEHmcOze+hR4LW6rVhCW/VzPPA8UGAbsFcdZEpeFULt3voVcg+qrQWOpRSgbqsKoRbDDWBBUzA/spXSS3WQKXlVCbUl5mFgfpaprwCb1J9IGXyMtqoS+icWG/72Zw+JrriqFqqS2A9YDczK7s9XAJu6Jb+6Reh5YFmDvV/AFmB/aqPdIHQhcC1H3KfAPDiq424QuhE4GLBkG9lvoxpsgneDUFsM7AlIm9hiERHFcyyhG4BdiYacbVQPCNj5GfjcZhU7gUNqq7GEvgdGqjsr5n0ARomZ0f5PyYWKfykf8mKhKXH/xUMppVCfNolt+8ReLNRwvvQUS23cHLEXhPYq2jdHciQPA0zWF/EPEA0Xa2JftsP2NtJWMTMz0GNgE3C1LDh2/ToKHQiYwAlNwdsmx6RsvzO2lz7z6yh0OvAoENE84Gafo01QsY5CF7UY2quA0wm89LmJWEJbHXQo6uxYYF2g0CngSRGgje9tt+kI8KaNsh0ViSXUj+J09DMUF/bDYsWOOirhxxk70lVcuNWB26LaU4HtgUIHgPtFgDa+/+cO3LYRU7BIaLPDKqwEzpSBx64b66FUpt+TgacBwGzgbhl47Lp1FGpr93vZKZDG+J8BM4DQi7fYrtri11GodXxK9mrYDpOZYDttbPfVh21FVWGhugqtUEm5pl1oOX9/1XahLlRsQIzzDHWhYgNinGeoCxUbEOM8Q12o2IAY5xnqQsUGxDjPUBcqNiDGeYa6ULEBMc4z1IWKDYhxnqEuVGxAjPMMFQv9DSJxblXYNyrLAAAAAElFTkSuQmCC",__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:icon_16},Symbol.toStringTag,{value:"Module"})),icon_17="data:image/png;base64,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",__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:icon_17},Symbol.toStringTag,{value:"Module"})),icon_18="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAqZJREFUeF7tm7FOVFEQhj8spMGGDkN4AEj0FYgFCY8gNQ3BQg2xoaYxBC00NNT6CCYWhleABB/AGOlsoIECyUl25XID7CznH+G6/2137r9zvvvP7JzsuWP4khIYk6pZDAMVm8BADVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDOwh0DlgGFoAZYEK8hkFyx8AP4CuwAxwMuqHm80yHPgS2gBXgQU2SwnvPgG3gNXAq1P0rlQW0wPwCPMtIWqD5DVjMgJoF9AOwKlh4psRH4IX6CzKAlp653yrzn8AbYBc4VC9igN4UMA+8BaYbsaX8n6h7agbQd8DLRuIF5lPg9z8G2f66SWCvBfU98EqZVwbQ8is620hyCfisTLpC6znwqXH/d6BUlOzKAHrUGo0e30GZXweolP+vxodlpHokowkpJ0f+tBLMeGg1DFLzy1hsasI1JHv3pubXBaAbwFoPxiawXgl15IGeAGWjUK6yuxk30DoCakep9S6trgslrwag1jPQzCnEDhWPjgZqoNWbEfdQcc8zUAO9TOC6Pt3fAfWH9rpp9eLuMvzftKP6bx3a3AGpYPZ1btpRGegtaI8kUJd80Cnqkrrvet56iqcGAzXQ2BgW7EioW4gdaofaodIqUJeoWk+62Kv6ljrh+67XOaD+k07c9P03shhodByKxqlbSOdKPgoqGtc5oD4sFn20wTgfZwyCiob5wG2UVDDOR8KDoIYJ80sLw9AKxPq1mgCkYUP84tewxILxfjUxCMphVxDIOCw20qANVPz4DdRAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDDVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O1QM9BzclZ5Vih6RcAAAAABJRU5ErkJggg==",__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:icon_18},Symbol.toStringTag,{value:"Module"})),icon_19="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABB1JREFUeF7tm1vITlkYx3+fQ4QiiWkaV6hJDoUph6spdyZCCRdOceGUiNTkkOGOKDO4IIcUSojGnXLlUCghipkQ5ZBEIWUY/bNf3/L2vt+7vnc/a2/0PJfvu9b/Wc9vP3utvdZ+dgtupgRaTNVcDAdqnAQO1IEaEzCW8wx1oMYEjOU8Qx2oMQFjOc9QB2pMwFjOM9SBGhMwlvMMdaDGBIzlPEMdqDEBYznPUAdqTMBYzjP0OwQ6HVgEDAN6NhnfS+AasBM40qSGSbcyM7QXsBeYbBJJq8gJYB7wwlg3Sq5MoIcBZWcKU5bOSCHcSLMsoBOBk40Gl/P/ScCpnBrt7l4WUMEU1IqdB2YD/7Q7gk8dBgIHgLFBf8EU1EKtLKB3MgiVYH8BLueMfBRwKdDQxRmUU7Pd3csC+hjoF4z2B+BJu0f/ZQfpSbdi0pNuoeZAjXE70G8AqBaG7cBPbYy1D9Ax+P8D8H/O2JQcHQKN98CzNjQfAMsALYhmliJDqxccs8EmEDJfuFIA1WLQN0HwKSSfVi2OuX2kADoT2A10yz26tAJvgAXAIUs3KYBqfJ2B3g0GqvmuUZtmY30OaF5uy9TmXbMO6vVLBbSWvyHAOOAM8K91IHX0BgDjgXPAjSJ8FgVUOyGtpp0A3Wo6qksNVTB1pKep579sWxrupJLwLQroRmBNEMFS4K8kEbWKLgH+DHxsAtYm9llYSfhmYGUQzCpgS+Lg5E9+KyZ/8pvUispQB2p8GR1oSUB/zV6LdAEWA3qdUct06/4O3M1O/W/XaOS3PHAL+DmDo+dE7fmr9/j9gfvwef4/CkxzoLUXpVdA9wBOD+B1FazRwIXgt4vAGAfqQHPNqrGLkmdoJGYHGgkqtpkDjSUV2c6BRoKKbeZAY0lFtnOgkaBimznQWFKR7RxoJKjYZg40llRku1igV4HhmeYj4Mca+iqv0Tt1nf7LDgKzfOtZe+s5EtgB6LRpBXC2zgWbA6wG7mVvLh86UD+xj7y5azdbB2wI/tqWZWAu0QadtwLLgzbrgT9SOpR2Ua9AdIvuC4K5AqieM6XJx4jAwVxgf0qHRQJV4ZgWktB0Iq+vNlKYvirRXByaDqZrzbWm/ovKUA36b2BCMHqdxO8C9mRFCHmrOFStomKK+cDCqrvvNPCbKbk6YkUCHZyVbBdd86TCChVa3PzegCqeqdmHWZVnyNQxqmJEn+4cS+2ool9khlZ86s2mvtjQnJbSNGfry5J6z7JJfJcBVIF0BbTyTwGGZvWkYfVxM8Gq2k71nteB49mK/rYZoTx9ygKaZ8xfdV8Hanx5HKgDNSZgLOcZ6kCNCRjLeYY6UGMCxnKeoQ7UmICxnGeoAzUmYCznGepAjQkYy3mGOlBjAsZynqEO1JiAsZxnqAM1JmAs9xH6qe1VA6ychgAAAABJRU5ErkJggg==",__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:icon_19},Symbol.toStringTag,{value:"Module"})),icon_2="data:image/png;base64,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",__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:icon_2},Symbol.toStringTag,{value:"Module"})),icon_20="data:image/png;base64,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",__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:icon_20},Symbol.toStringTag,{value:"Module"})),icon_21="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA6BJREFUeF7t2r9LG2EYB/Dne0lUOpSCiQGnDC6aoUunDrVu/hMd/BEKRSillFZoRXRRKLVQbB1K54LQpaMOqbaDLnVpFocqBJK794a2RCwh5i2JkWqxkjf35GIuT+Z7v8fzue/dhbsDyY9VAKxpEkYCylwCARVQZgHmOGmogDILMMdJQwWUWYA5ThoqoMwCzHHSUAFlFmCOk4YKKLMAc5w0VECZBZjjpKECyizAHCcNFVBmAeY4aaiAMgswx0lDgwQ6NDTUZSuVgsZNDSrCwgfXtj8yz+hrXMsaOjAwcPXHz18bWuvrZyfGelckNJnL5fZ9lWDaWctAe2PxV6TLU+fNAaCgST9xHec1AM00qy8xLQTt+05aJy6aEqANUPekUtldXzQYdtI60GisruYBOCRNT6em7r2cnZ0tM8zc1IhLD/p3emxFwtZ4Pp/PNFXEY3gbgVYmRdEC5pLJwcV0Ol3yOHtTlrcZ6LEBQF9BNK6U2mmKiofQtgStzVsi0EI8FpvPZDJFDwasS9sZtAaBb7Vr6zarTINhAQCtTn4EwlJPT9dMNps9bNCCZVlQQE+urbug8IRSuU0WnQZCAgVam18TrGWLytNKqUIDJp6WBBH05K/AXthCyrbtdU9ChouDC3pyywK9BdEDv9oaeNDj/634AtKjfqB2BGgV1cIj13GeG57Bxpt3DihR2nXViLGQ4YLOAQV9cpW6behjvHnngBIeuq7zwljIcEFHgAL4HLIwatv2gaGP8ebBBwW9s4ju+3GHr978jA8B04LeOp/YN7477IcsSjmOs9Z4hvnKIIJqC3hDpB/71crT7IECBajycGRSqdyGebd4VgQFtFx7fPdMHt95LgYy4RDGbdve8hzFENDODa28AlmMx2Jz8gqEiLzc5QHsgPSYvKQ7dUo1Blp9jTyfTA4uyGvkf65P5qDYjoStMfnQ4T8X+npBq5/igGZGhoeXVldXjxjuG02NaNlNKRrry2ut4xdNB9AmqHtCPharowPRaN+KJn33vE0rnzOC9LTjOMvyOWMdmJVNEonEtULhYE0T3Ti7BOuRsJXK5/N7dUZdqs1adspXFPr7+68US6U7VKZbGvp3CHjv98MM7qPRUlDuYS5DnoAyHwUBFVBmAeY4aaiAMgswx0lDBZRZgDlOGiqgzALMcdJQAWUWYI6ThgooswBznDRUQJkFmOOkoQLKLMAcJw0VUGYB5jhpqIAyCzDHSUMFlFmAOe4PSI0GZCNbkkIAAAAASUVORK5CYII=",__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:icon_21},Symbol.toStringTag,{value:"Module"})),icon_21_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAkpJREFUeF7t2jFuE2EQxfGZVUo6765dQgMdR+Ae5AYhRW5AEm4QCXIEuAdHoIOGlM7uuqOMdhBdIBajSZ6yEvzdznzP/n5+5efGRyrg0jTCDFBxCQAFVCwgjqOhgIoFxHE0FFCxgDiOhgIqFhDH0VBAxQLiOBoKqFhAHEdDARULiONoKKBiAXEcDQVULCCOo6GAigXEcTQUULGAOG6RhkaEt+v1kUecRFjv5p8PDpqT7XZ7dZ/7bTabpzc380VYvHK3IdwvdsNweZ+sh55ZBHTVdccW9v72j3f3727xchzHH5VLdV33JMy/RMSz3841frwE6iKgbdd9jbDnf8K5NYfTdP2pAtq269dh88c7WW7fpnF8UclS7C4Cumq72ezuqxU3P52m4V3lYm3bvw2L8z1nYjeNTSVLsbsUaOz78d74+TQMZ5WLtX1/FnOc7juzm8ZHv9+jf+Gvi6/aDtBKa7JdQDOh4hzQIli2DmgmVJwDWgTL1gHNhIpzQItg2TqgmVBxDmgRLFsHNBMqzgEtgmXrgGZCxTmgRbBsHdBMqDgHtAiWrQOaCRXngBbBsnVAM6HiHNAiWLYOaCZUnANaBMvWAc2EinNAi2DZOqCZUHEOaBEsW+cpTiZUnPNYrAiWra/6/o3N8eH2Hs8ZM7W/zHlw+wC8/+3oIq/v/mVkQMX/LqCAigXEcTQUULGAOI6GAioWEMfRUEDFAuI4GgqoWEAcR0MBFQuI42gooGIBcRwNBVQsII6joYCKBcRxNBRQsYA4joYCKhYQx/0EirXBZAhm84EAAAAASUVORK5CYII=",__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:icon_21_1},Symbol.toStringTag,{value:"Module"})),icon_22="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAk5JREFUeF7t2DFqVUEYhuE3YBOIhVjFIqRWsNE1GCy0cQOuwM5KS63s3IA7sNBCkjXERtBaLEwVLAzYWMjAvXA5xObO+4dzmO/082Xmud+cE/4d8qgCO2pawgioXIKABlQWkOPS0IDKAnJcGhpQWUCOS0MDKgvIcWloQGUBOS4NDagsIMeloQGVBeS4NDSgsoAcl4YuFHQPOAB2O/f/EzjrzChdXt3QQ+At8BC4Jp3kNfBSytJjKkGfAO+A6/qu4dZcm1oF2pr5pQiz/T7DgX4AHhU0s0UOd+XbB+jX5J3Z2vocOO9EHvKjdBv4OoE7Ak46MRexvOIdeg84nZz+PvB5ESKdmwxoJ+B0eUADKgvIcWloQGUBOS4NDagsIMeloQGVBeS4NDSg3QL7q4SSyf9oDX0FvFiBlowBRwJtzWzjv81HH1SPBHolU7CAymPFCtAruVpbfJoW29B21vKX/2ig7byl/56MCLrFmUuXLPrKl8psGR7QLeH+tyygAZUF5Lg0NKCygByXhgZUFpDj0tCAygJyXBoqgz4AjieZd4Bv5t+pGN+Z+1sPWdpkvee5CbwB7m6E/AVuABc9wdO1cwfdHAOa525ZH4HHduicQS8bVFvn/71q63crcJ0zImjDfAq8tzFb3pxB2/7MK9/emZ+AZ4DezCU0dL3HdvV7P0p/gB/2B+iyhs+9oRW3sjQzoDJvQAMqC8hxaWhAZQE5Lg0NqCwgx6WhAZUF5Lg0NKCygByXhgZUFpDj0tCAygJyXBoaUFlAjktDAyoLyHH/AKQCb1VT5OY1AAAAAElFTkSuQmCC",__vite_glob_0_17=Object.freeze(Object.defineProperty({__proto__:null,default:icon_22},Symbol.toStringTag,{value:"Module"})),icon_23="data:image/png;base64,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",__vite_glob_0_18=Object.freeze(Object.defineProperty({__proto__:null,default:icon_23},Symbol.toStringTag,{value:"Module"})),icon_24="data:image/png;base64,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",__vite_glob_0_19=Object.freeze(Object.defineProperty({__proto__:null,default:icon_24},Symbol.toStringTag,{value:"Module"})),icon_25="data:image/png;base64,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",__vite_glob_0_20=Object.freeze(Object.defineProperty({__proto__:null,default:icon_25},Symbol.toStringTag,{value:"Module"})),icon_26_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAAydJREFUaEPtmU9oE0EUxr83SoqFFqF4EUTIwR5EsMwkCr3E9qgnoSCIoEJFwYN6UfxzqUr1Ih4ExYJ6EBEKnvRom0tB3RkqiAc9BETwIqKU0tLYzJOtG1ljdpNsdqPB3duSeW/eb743s5P3CF3+UJfHjxTgbyv4fyiQy+W2AzhgrR0iok3W2h4hxBZm7olDASJasdZ+FEKsMPNnIcQ8gMeO47xt5D9UASllLxHdYubDQMf3CxPRA2Y+aYxZCgIJBPCCLzJzrtEqJPk7ETnMXAiCCARQSt1j5iM1wS0R0XtmzgLo936zAJYjQmwAIDzbBSIqMfM2AL1+f0R0X2t9tN4cdQHcnLfWvqmmDREtM/OZbDY7NT09XZFSzgDY4zp0gbTWg1EAlFLvvIBd81ljzMjY2Ni6Uqk0TkQ3mNkFdB8WQuyotyeCAC5bay/6gjphjLlTfY8CUCgUNi4uLk4w87e+vr6JYrG4Wg/AN8dxALer70KIK47jXKpdqLoAUsqnAPZ6g5ey2Wy/u/LtACilrjLzec/HQWPMozAAT4kFXzo9M8bsawpAKfWSmfNeirzWWg/5DaMoIKW8C2Dc83laa30zDMAdp5SaZ+adns0rrfWuZgHcna88Q621/u0k6iBAaBxr8dXbfEqpJAAmAZxz5xNCHHIc52ETCvw7APl8fqBSqVwjoq/MfMEY872rAAKU/uMY9Y9rlAntpNBzACPeZB8A7I/yHQDwBMBWz3bGGDPaKYBfJ0rEwOuZTRljjnUKwP0KuyrEdR1nAKPGmNmOAHhn9Clmvg4g06YKZSI6634Xav0ktgeqEw0PD28ul8u7AQxEhPiSyWRezM3NfYpynEfexBGDbdkscQVajqhFgxQg6C7U4kJGHp4qkCoQOXl+GqYplKZQmkLh/wzTq0SbGdLQPD2FuvkUCi1sNdQ+pgGRC1uNSosxxRfqpq3SYi6XCy3udgJAShm9uNuovJ4kQCzlde8iFdjgALCaEMR6AIO+vsDaNC03OFyjrm8x+SC6s8nnT5HaNquvrxV3JtlY26xxR5eEv7hKg0nE1pTPFKCpZUpwUNcr8ANOPD5gE7l+ggAAAABJRU5ErkJggg==",__vite_glob_0_21=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_0},Symbol.toStringTag,{value:"Module"})),icon_26_1="data:image/png;base64,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",__vite_glob_0_22=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_1},Symbol.toStringTag,{value:"Module"})),icon_26_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAABLhJREFUaEPtmV1oHFUUx8+Z3USh2daCxeKLWVCrImqdO7PSZDWoTavEalus9EF8EUlpCylWBV8Mgi9+tGqLVkR88KW62kaltLRFthbT7N57LWKRgCgqvvgVsYlJ0+zcIzfshsm4uzM7mckS2Ps4c+45/9+5596ZOYOwxAcucf3QAmj2CrZWoLUCC8yAbwn19PRcOTExkUXEWwCgLUg8pdRlADgppRwNYr8Qm7oAjLFbiSgHADc1GgQRLxHR2moQjLH1iHi7UuojKeUvjfp229cE0JkfHx8/H0Z8JQAi9gsh3nEHZIxtJaKPy9f+QcTtQojjYSFqAugsEdHJsI4BYDKZTN5RKBS+9wAcJKKdLkiHiJ6VUu4LE6sewAAR7fc4HULEMwBQ8gl2GRFPc85/9NpZlnW/UkonZl5sRHw/nU7353I5vX8Cj5oAlmXtVUq94vI0JKXcHNhzHUPbtjc7jvMBACybV8+IX7W3t28ZHh7+PWicwACIuEcI8XpQx352mUzmtlKp9BkAXOex/TmRSDxcLBa/8fOh7zcCsFsIcTCI06A22Wx21eTk5BEA6PbM+TeRSDxeLBaP+vlqCoBlWasB4AGl1DpEzBLRmipCyTCMXZzzt+pBLCqAbdv3KqX0CbSJiJK+2UWcIqIVUsqZWraLAtDV1XXt9PT0ASLa4ifac/8PIcQ1iEhNA7As6z4iOkJEy+uI/xsArvLsSULER4UQnzSthEzTfAQADgPAFR4RuiSGDMP4VCn1BSI+VuWZ86KU8gW/FYuthEzTvBMAzgFAu+esf4+ItLjZdyDbtjcopY4RUcJld1QIsbVe6VRsYwHo7e1dNjY29jUR3TgXCPEiET0hpRyqXGOMrSGiAgCscIn/NpVKrcvn8xN+2Y/tOcAYe4mInncJmEbEjUKIfOVad3f3yqmpKS3+Bpfdn21tbdbIyMhPQcTHApDJZJaXSiVdHnNZNQzjKc75u25RjLHjRLTRdW3GMIz1nHP9rhV4RF5Cpmk+DQCvukrnfF9fHxscHFSe0vF+7OyQUh4KrLxsGAfAWfergWEYmzjnn7uFmaapV+dXAOiYLQPEQ0KIHY2Kj7yEdPk4jvNX5SmLiBfT6fSqaq/ImUzmrlKp1G8YxoXOzs79uVzOaToAY+xBIjrmKp/DQojtYYQFnRNpCZmmuRsA3nQBPCeEeDmoGE+ZPYmIDxHRCSnl27V8RA2gN6/exJWxTUqpmwINDdu2s47jfFmZVD6dTldzEjXAhwCwzRXY5pzzhtQDAGNsJxG5vz32SilfWwyAEwCwwRXoeinlDyEAdhHRAVcinuGczx3Nbn+RrgBj7AwR3V0JkEwmVxcKhd+WEsA+ItpTFjwqpby5UfHanjHWnBUoN8MGAOBqfRqF7bo1DSBMtqvNiQsg0rZKPVjG2LymmmEYC9/E+gsqqsaW30qZpqnbKfprbnaEAvBmoewraGvRT2Ot+0kiusctvgwwwDl/o6HnQATN3bAQ/5uHiL1CiFMNAUTRXo+IYDSVSq3N5/OXGgIon8ehf3BEJb7cWrlQy18sv5giED9DRN91dHScrZX5SgxfgAjExOqiBRBregM4b61AgCTFatJagVjTG8D5f3u3vFHywOF4AAAAAElFTkSuQmCC",__vite_glob_0_23=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_2},Symbol.toStringTag,{value:"Module"})),icon_26_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAA0NJREFUaEPtWUuLHFUYPaeGNA4EGUUwILgJwYUmSO7tcRGi40JDNsZZtGaRCP6D7CK6EBdKcOc/kDwgMUhMghCNi1Fwhpn+7iSoBAJhFiKigiSgMHHEPlLS09T09NSjUzVNY9Wy6nyP8z3q3u9eYswfjrn/qAmMOoP/rww45/YC+BTAnioiT/K2pFYI4fu8+gtlwHt/XtLreZUPgyN5wcyO5pUtSuBLSS/lVT4MjuR1M3s5r+zQBEjeB3Axr6EMXEvSQzFmOwn8ama7yiDgvf9F0uM1gaxoeu97PUCyzsB6wOoSyiqdRKTqEhoUrLqE0krIOfcYyWcA7JB0CsD+Lv4eydfyll8aTtInAKa6mGWSbwH4u9Fo3Jqfn/8tTXbLldh7f1jSR1Vt3AoQvwPgRAjh80EyAwl479+W9H4BI5VDSb5jZh/0G9pEoNlsNiUtSJqo3KsCBkj+A+AFM/s2KbaJQP+WmeQVAJfjmixgrwzoDgBHJL2SUHYuhHAslYBzLq653V3Qd2b2LEmV4VFRHZLovb8JYF9X9ucQwhNZBHrOkjxrZseLGi4T770/I6kX9RDChqrZVELOuSSBM2b2RpkOFdXlvT8tqRfEmsDMzMzU6urqk0UjmQc/OTn549zc3L0kttQSmp6ePtTpdC5JmszjUFEMydUoimaXlpa+WJctlYBz7hKAV4s6VhD/WQhhthICyYmsoFO54f1DfalN3EfgzyiK3svtWQqw0+m8C2BnDBlAoLzf6Chm4mEy8BeARjcal82sV/OjIJDsO5J/mNnDWSvxNwAOdgncJ3mo3W7H77DdBJrN5vOSrq3/9Uh+bWYzWQROAogHl+Rzl+SapEcS2ankWAXAGsm73QHq0Q3OkifN7MNUAq1Wq7GysrKQmLwGtl9V50Jb9TrJG5KeCyFs2BUPHGicc/FK+zGAF1MUVpWBTSZJfjUxMfHm4uLiT/0fUw93vfdHABwA8HScUgBO0n9prSoDJH8HsCxpLYqiHyTNt9vtq1tt6R/kdLqSDNSn02kr63b/RvOs8g9SQuN9wZEnOsNgqu6B8b7ki69ZSV6U9NQw0c2SqfyaNcuBUXwv1MSjcDDLZk0gK0JVfx/7DPwL/HmBUZS4HZIAAAAASUVORK5CYII=",__vite_glob_0_24=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_3},Symbol.toStringTag,{value:"Module"})),icon_26_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAAA+ZJREFUaEPtWUFoVEcY/v9nCGgSUTHSQwllDxVaCo0zLxuwhdx6MDlYu9qDh1goNKBILfYgraQoKAXrRVSQ1hx60IbaQ1si6GFLpUmcmSqIoIJJDi0UpFUMpFST+cqsb8v64r739sXdzdKd6/zzz/fN971/5s0wNXjjBsdPTQL1VvD/o4Dv+68S0bvW2m5m7iQiL+XqzxHRDDNfamtrO5fP5+dT5ikMi1VACLGKmU8AGEwSXyGYW57nfaiUuljhuP/CIwkE4PMA/LQTJBx3sqOjY28aNSIJSCm/ArArBGKOme8QUSrpAWwgoq4wMWep9vb27fl8/kFC0tEWcp631t4o2oaZ/wawL5PJnBkdHV2oZJJwrBCii5k/B7Aj1HeLiPqNMXeT5i+rgO/7h6y1n5QkGjLGnE6aOEmcEGIPMx8HsKIYz8x/MvM2pdRPSXKUJSCE+IGItgRJ5jKZzOqlrvyzAPX09Lxlrf0GwOqS/sfMPKS1/jKORFkCUspJAD2FUsV8XWvdHZcsbX82m31lYWHhewCZUI5jAwMDHw8PD9tyuaMIKAAyIKC11lWtREKI9UR0gYjeDIF1TthhjHH7x6K2bAg4ZLlcrnV6evp0uPIx8+XOzs7+sbGxfxZVr3LSSCmfiwK+77/g5lBK/ZHUYlLK/QCOhnb7I8aYAzUl4Pv+TgAjgQ0HlVJfV0DiHQDnS0g8am1tzYyPj/9emqOqFhJC/ExEbwQTXjHGhP0dyUcI8RkRHSwpsfu01sdrSUATkQgmNMaYQlFI2vr6+tbMzs7+VXIGGzXGbG8YAg6olPI2gJcDG/6itd7caAQii0m1v4ElWShQoEnAHSXK7sS+7w9aa11lWJP04wzFPQh+agrlNtzi9qMlW0gI4arE2pTgi8PuG2PW1YuAIaJNSyTwqzGmWG6fSlV1BbLZ7IvW2t0AFqkAYCsRuQsA1+4x83dhosx83/O8E5OTk7/VRYGolRdCNKtQ1S3UVCDm628qEByiUv1SSim/BfB2kOOC1npbpeW2rgr09va+ND8/f8yBbmlp+WhiYmKmoQhUCnbZ7QNNAk9+aFIfp2t2sRWllJTyGoDXg0JwVWudLY2v+9ViFPhcLrdiamrqIRGtCuJ+NMb0JyJQi8vduG9ECPEBEZ0qxnmed1gp9WlSAlW7Xo8DHqz8+8z8BYCVQTw8z3tNKXUzEQEXVI0Hjjjwbssgoo0lwAtDmPms1vq9RcfxmMOYex+rxRNTJC9mdpWo71kXvPV+5IsTBMw8AmB3xbfT4czP8Zk1DrQFcM/zvGtEdC7s+YosFDfTcuiPtdByABmFoUmg3go1vAL/Ar5O6VHdnJyGAAAAAElFTkSuQmCC",__vite_glob_0_25=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_4},Symbol.toStringTag,{value:"Module"})),icon_26_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAADAklEQVRoBe1ZvYsTQRTPh0swJFooHBwWfoAc+AX5RKNHKi0SxEoLC5srtbGwlPwLihYnggj3H9xZ5KpVCSlCUlyTRisLJTbCGU3AJP4Gdo5lvZnZeXOXucNdWGZ33se833tv3szsxmLRFXng//ZAXAa/WCxem06nd+Px+FEZn4oG+QF4XnY6nW8qXl36EZFAqVQ6P5lMXNCd2WwmYgvV78nfBvOVUAIaTAkRLzx/HTRHRCf0X87n82mCnFRECABhF0ZHqlFAhL71brf7S0Amd+sY+TGRSKxRRkI0B5lMZoMiq5IJDQAe7GMSvlIpnDddmELzNoQ63qEHEDqFqB5SyaFcnwHPBcdx3rdarW0Vf5BuNQIw/gbWmj7u9dFotIUyey5ooOrdKgBUp/swMOUZeRqFwtUFYRUADO75PYwV+5QuCKsAarXaaxj8xgSEVQCNRmNar9dXTEBYBcA8bwrCOgBTEHuyDlQqlSwqyjF/Lus+N5vNWDKZfIqSmsZkvsfl2cTG8wdUp2VsBj/zft4aAygUCs9Rwx9CofRwxAcktouQ6+dyuUKv19vy6zBKIXbogYceQeF+Gs/tdRChF/yFt0YAEO5tVJA/XNl+t3DWj+AYRimEnPyK3FyB0ie4jweVE99ZNE/g5is0VzMYj8cP+AtvjQAwJQDxFg27jS9WDGBkE55mOb9zIcrtVCp1C2P9s9kzSqGdEfbgwWf8Vb86brxop3ogAFCNZ0CtAzAx3joAFIC0l/NaaeNPMdsReIwJSzbeegQwQRf83lRNWD8vf7YaAZyDn8HoL54xm6xUiqoNNzjYGq8DQYU67+12+1O1Wj07HA5PUj/8WgXAwLquy7Yi5K/WVlNIJ1oi3kMPIHQKodwtY++/KvKErB8Tdf4/OHYxaAkglnbpV3ZBLgYQd8B4ScmsySBMIQz6W1OXlB36LqLiZKRMBKIQAE4/m9D3naBTJPIOFeeniEjtlx4Fy+XyAk5dNxF+o5987AdHNpvd8Eom1dZILvJA5IHIAwfQA38BZn0jbysutR8AAAAASUVORK5CYII=",__vite_glob_0_26=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_5},Symbol.toStringTag,{value:"Module"})),icon_27_0=""+new URL("icon_27_0-1f5f1516.png",import.meta.url).href,__vite_glob_0_27=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_0},Symbol.toStringTag,{value:"Module"})),icon_27_1=""+new URL("icon_27_1-a2758876.png",import.meta.url).href,__vite_glob_0_28=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_1},Symbol.toStringTag,{value:"Module"})),icon_27_2=""+new URL("icon_27_2-7d27294e.png",import.meta.url).href,__vite_glob_0_29=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_2},Symbol.toStringTag,{value:"Module"})),icon_27_3=""+new URL("icon_27_3-1445a39a.png",import.meta.url).href,__vite_glob_0_30=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_3},Symbol.toStringTag,{value:"Module"})),icon_27_4=""+new URL("icon_27_4-c754c0ce.png",import.meta.url).href,__vite_glob_0_31=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_4},Symbol.toStringTag,{value:"Module"})),icon_28_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAABXlJREFUaEPVmX9sU1UUx8+5ry3lR4lh772OOueUuBkjLpGEPzSRzZgQQ4IKWUJcJCL+hZK44R/+IFAR5R8DJCrhDxWCwZgQQDHELDFsQvQPk5kgaLIlwCxbWd97FcPmYF3fPeb25+tb2/datpL2n2W9937vZ2fnnnPuPQh19sE644W7Bg4Ggys5h/VE9BgAhQBgOQCIn+ITBYAbABhFxL8YgzOxWOzS3RipKuBgMPi4SbQFCF4koocrAUDEq4DwnYR4JBaLXa5krZhbEXAoFHpgeia5B4g2AwCrdDPbfA6IxxZ4Pbui0eh1t1qugFetWuUdiYx+gEA9ROR3K+5mHiLeIcADLc1NuwcHB2ec1jgCh0IhOTEzc5IInikmhohTBNDHAM+ShFcgKUURE1FatgwhPrkcPGYITVrBgdYhwFoiWlRcB877vN6N0WjUKAddFlj4apLTD0DUYhdBxIsMYY/P5/txdHT0tpNlxHhTU9PCRCLxPCfYRUTtRTSvSQzXl/PtksDi9Jsm/4UAAoXCGAEGO7dv23Y8HA5zN6D2OeFwmH166FA3cNgLQM3WcQSYkCT2VCnoosBpN0j+RkQPFWyG2BdYvGjTyMjIv9WA2te0tLTcN/Hf1LdAtLYAGvGaz+tZXcw9ZgGLA/Z3JPKT3WcR4WBnR8fbJ06cMOcCNqvR1dUl9Q8MfEIEbxVCw/kHm5ufsx/EWcANSvBjIP6ubfFBQ9d75hLUriUrygE7NCDbF9dj79lcJv+riLOJmeRwQehC7Hu2Y826ubasHVhY+tzAz2et7iFCns/rabXG6QILNyjqESB6NS+GkcCSRe1ufZaIEBGp2v9Eyqcnpy4WHETEo3Fd25LVzAGnQpjJLxZkMIab45r2tROAojQ9wmn6nMicEsPtmqaddlpTarxBVV8BTscs49wjsfZs1MgBy6q6nzjl/FTE2Tff2Pakm9DVoCjvAMG+vBXwsN/v63Ubn63wIuR99vmh361xGhkeMDStV8zLAyvqFWshIzHcqGnaKTeWklU1TJx220LgZa/ENo2Pj//pRsM6R1XVDSankzkDIF41dG1FDlgkiaTJ/7BMmPIv8MluLVQUWFgD8TYg9BqadrgSaJER70wnDGsa90jsCVGapiysKMH3OfG9OVHE03Fd2+B2k1LAVr3FC/1bI5HITbeaDYp6Coheys5nyHbqeuyjFLAsq8cJ6GXL4Ou6HvvSrbgjcFroOkNPt67fuOBGV1GCWznxLyzn4hvD0LozwEo/AXTkBj1SpzE+PuBGOPUHF/Ph4otNZLi3c82aD53iutzY2EFJsz8PDAOGoXemgRVliAha84O+NsMYG54H4JQkIlzweb3d5Qp3Wb6/lSAxlD9XMGzoelsGWJ0goiV5l4CAruuT8wWcoY57GK6OxWJXi+2jKMoSTjBhCQSThq4Fsi5xy1pGYsOypcbQUG6yE3gFLlEgxZCVPCtyW1uA4v/csrjEhGHoS++JS2QsfMnv83aOjY3FixlklksADBmG/mitD12aFZwzYflDV5uwJlhvSgy3uqk1yoa1eU8cLiOD1TXKJo75Ss0ZANexNwvsmJrTsXiOi5/07hVltyywY/GTyVZVl5clqrXTldYPgqNEebnf0LQd6QOb+dxNAS/LwR4Cvj+dxaqr0LIcrgt4saDaK1JjY6OSNM2jBCh5JbajmhpY7F/RFUksqLtLaNrKdXTNF8B195CScY36eaqyRg3T5L/W+jEQAG55JPZ0RY+BFuiVSU5n6uK5NQtd7YO2WE/kC9X0QTsLXVctA2sFVTdNGfuNINP2eg0IXqiy7fW9hPjVvLe9il1lZjUWUTQVMdNYpCiQaC7e48ZiMfBafefY9qoViNt9/gdqw6RcQqK2VQAAAABJRU5ErkJggg==",__vite_glob_0_32=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_1},Symbol.toStringTag,{value:"Module"})),icon_28_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABUtJREFUWEftmGtsVEUUx//n3lLALS/3zt3tgxBLi7YkKlEJiuHhF1Fj0MRiglF8JAZZAx8MwWBilhANGr4gtmqMYgDRpH5ANPpNiI8o0RhBKaRtCoG17d6ZhRZC7OPuPeYu3e7tPtvChiVhPu3OnDPzm/887plDuMEK3WC8uAlc7BUrmsJCBNcwnK0AbgfQA8Je0zDebmtrG7qaSV1zYCFEhQN6H8zr0sEItE8p67mSAQ4Gg4vtuHOAmefngtI1WmdZ1t7JQl8ThcPhsNbc/MHrDjvbAJSNgSGKgdmfrCPQQaWsJ68bcFVV1dyh4eH9zFiWDqERtQC8xWH0AdAT7US/xaR1v9e2urq6ZtC2l5Xr+k/d3d3n8k3mqhQWQjQ5jI8AzMlQVaOXYtHo12693xDDKeXpaExZS5L2xty5VRgYPMbMBhENgrBj5fLl21tbW+PZwMcNvGLFirK/29vrdNtuYKYGZmcJA49nHiwcnjZt6rORSOTfZFte4EBgLcedz739EPBNRYVvzZkzZway9J85D3eZbdte7DhYCOJGBi0EYwHA5XmWy9YIb4ZCoXfC4bDjtcsHXFlZOW9o2D4GYNYYaI2+UJa1Ni+waZp3OsyfMWPRRA4FEXXpGq2NRqNHs/nlA3bta2pqqgcGhpoZvHqs0trLSkU/TlP/yt9AIHBb3OHjzFwxAVgbRPvnzJq5qbOz82Iuv0LArh8zkxCBFgavT/VD56dPK6+PRCLnU7fMyC9DiC+Z8XTWjU70H8CnwNTG4Gc8zkeUkisLTXA8wG4fdXV1U/v6+v9i4I5knxppm6SMvpcNuJsZlW6De1oJtJ01HNeY2zZs2HA6uS/9huBiAbv9mqa5NO7wz54x/lBK3pcBPAaE0K6kdGOAjFJsYHdAwxC/M3Dv6ODlUxpi3d2nEmImK0sK2DQ3s8PvplSlsFKW+xUtTWAhRJ3D6PAAH1LKStwgJalwU1OT/sPhI4PJzzkROpSUC0oW2AXzGyICoHpE5QsxJW8taeC0g2fHlJxS6sAnk/cxESklLVHSwH5DuCFpIr4gomNKWneXLHDimcW4NHpLEL5TUj5WssD+QGA14s5Bz7X2oVLWK6ULLMw9YH5+9Euna08kHwMldw/X1tbO6r946XTyFUPApYoKn5kM5nMBj17U6cFEsWMJvxC7wNjo2Q4HlLK8EeKVJkOYPcwcHDG0CfQJNHSAqGOKpnX4fL6uzs7OwWICm6b5QNzhH0cfrADrGi21LOvXzGhNmK1gfipbhDZS5wB0DuB5HufDSsmH8vgkmsYTDwshVjHoK2b2ZTtsGcBuwMEg9/V6SyGA1HVDAwzeWaZpO6LR6OVcfoWATdN8OO7wt96cBhF6Zs6Y0dDV1dXv7XfMq1mIqkUMew8z3zVe6BG7COnaFhWNHsjmVwjYMMQh7wuciC4TeJWUcjSQz1DYO1DiUTg8fA+Y6+GgDkA9A/UA1wDQck2GiH4B6xuV6vnTa1MI2C/EW2C4iUO3RHSN1nj3bU6FC6nq5ib+aW+fz7bdQA6/mC0vAcAhwqdlur61t7dXjmcPj6S6XgDgmz596r6zZ89eyClKIch87UIEH2HEdzG76meUfoK2bfbsGS0X+vrd/Z1IVbmroKT14GTHHXfmJ9cAjY2N5VLK1xj0hveEp+zpPMCJWNYtGlGzlNar1w04OXAioTc0tDNXqiAFrD8qZe/31x04CWAEgyvZdnYDvDAdikA7lbI2TxY2saWuxjmXr3s4T5w4GWJ21oNoHsDnCNgdCoVa0vNuEx2/KMAThZiI/U3giag1GdsbTuH/AcVTBFpmykTBAAAAAElFTkSuQmCC",__vite_glob_0_33=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_2},Symbol.toStringTag,{value:"Module"})),icon_28_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAYAAABTTPsKAAAAAXNSR0IArs4c6QAAAnlJREFUaEPtWDtvE0EQnjkHJxFRhHV7ezaWrBQOMg4looHCDWUaUvEHgIY2LaFNjQTiB9CFBjoaF9AgSmKM0kSWjJ29PRnxUB7EN+gCe7EPx/bFj/jIuRvN7Mznb2a/3VuEkP0wZHghAjzqjkUMRwz7GAjnSBQKhanNzfIdIuc6Ic6Ouq1B8iPRLqL2YWkp97JYLB5iNpudb3z99gaAbgRJNP5YfJ+4NH8bGeNPCejB+AEEr4iAz5Axo0oAl4MvH/8KBPiCOjPIK43aE9vaeTh+KCdXZIbxmQiuqIj/A3AymVw4BFhQ/+paLvfW3aGu7SrKx3L5lvJNAWzX6/VtZXPObzqadsG1Ncf5JYR4p3zd8pqmyZuIeX/evhhmnK+RQ4/U4pnpOKtWq7Zrp9NpfW//QHot0vCxFGJN2brBJRDpRzaibVuCKV+3vIyZdwmcF/68EWCcBIZTqdTVZrPpzRNj7FWpVDpw25XP5+NSymXVulgsVqrVap+8tpvmskYUd23HwX0pd14rX7e8A43EWcja+QKsc74KBKudmEaAhrTEoqcKvtiLszOLlUql4fozmUzi5+7e1vHBBOu2EOve+Bh8iwASR4ICME1Ec0NRiTbgAaQqkAT62FGb+VSyNvGAOecrDsBKx83nwHcpxf2Wk60tFonuWZb1w/UbhjFHiM9VrAawIYTY6DQS/9TCP+PTF8NnoRIn1TwfgFnLYTAq9v2HzPHYnOJ62XahGRVin/pEgIdO9DAZbr2UDx3o34T+y/5AIzEqkP3kDb+she4zP3QPKaF7qnIHP1SPgf3s1EmKCef78CQx2AtLxHAvhgb1RwwPymCv9aFj+DfynlZB98CwpwAAAABJRU5ErkJggg==",__vite_glob_0_34=Object.freeze(Object.defineProperty({__proto__:null,default:icon_28_3},Symbol.toStringTag,{value:"Module"})),icon_29$1="data:image/png;base64,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",__vite_glob_0_35=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29$1},Symbol.toStringTag,{value:"Module"})),icon_29_1="data:image/png;base64,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",__vite_glob_0_36=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_1},Symbol.toStringTag,{value:"Module"})),icon_29_2="data:image/png;base64,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",__vite_glob_0_37=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_2},Symbol.toStringTag,{value:"Module"})),icon_29_3="data:image/png;base64,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",__vite_glob_0_38=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_3},Symbol.toStringTag,{value:"Module"})),icon_29_4="data:image/png;base64,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",__vite_glob_0_39=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_4},Symbol.toStringTag,{value:"Module"})),icon_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAABO9JREFUeF7tm3vo32MUx1+jtbRyTzO0uc1saZLcYm3YEGIjtjUjl8m2InIJfwnlErWL5BpaSIRMLqOYtZBL7mRaMTaaSyS5bOtd58mnT9/fj3zPPp/z0Tn//b7P53Oe57x+53me85znfIaQ4kpgiKu2VEYCdXaCBJpAnQk4q0sPTaDOBJzVpYcmUGcCzurSQxOoMwFndemhCdSZgLO69NAE6kzAWV166P8Y6EhgZ+B9YJOznY2pi+KhhwOvAVsBDwDnNEbAuaMoQC8A7jLb3gIOdrazMXVRgJ4H3GNWvwEc2hgB546iANUUv99sWwUc4WxnY+qiAJ1ja6cM11p6VGMEnDuKAnQ28JDZ9gowydnOxtRFAToLWGpWvwwc0xgB546iAJ0BPGy2vQhMdbazMXVRgJ4BPGpWPwec0BgB546iAD0deMxsewY42dnOxtRFATodeNysfgo4tTECzh1FAXoK8KTZ9gRwmrOdjamLAlRT/GmzWlNfa2onJQrQEwGtnZJHgJmdpAlhisW0qz9rEBWPKtDvpETx0OMAhUuSB4GzO0kzkIdOAV4wiEqSnJtA+yOgo+ZyU3E3MLc/de29HWXKTwZ0hpfcCVzUHpL+eo4CdCKgLJNkCbCgP7PaezsK0COBFYZhIXBxe0j66zkKUGXoV5optwOX9mdWe29HAXoYoKsPya3A5e0h6a/nKEAPAV43U24CrqqZpXHuAewEfA2s78/sLfd2FKC6Nn7TzLwBuBYYCpwJzAcmANtUMHwI3Abct+XQ/DfNUYAeBOg+XnKdJUp0pt/nH8zSMfWsSJUmUYAeCLxj8F61e/lh/9JHtIFpIwshUYAeALzXg8gfwMfAz4C8uDrty+NrgT0BPdu6RAE6HvigQkMAr7bynN/t9xEWWu3Vg5ru9cs1dKtQowDdH/jISMjTjraChzqc6omq2nYvcH6rJK3zKED3Az6xMWnnVq1TL9ka2ABsV2t8CTg2gf5NYF/gM/vzGuDGQeAoZBpXa/8ckI7WJYqH7g0IiuRK4OZByLxrcWn1kU+Bsa3TDJRg1i79hQG5zIL2gfisBuobU075Gq1RwBr7TZkmZZwGku+sdLzaHqbqOcqU3x340gjpqHnHADR3AL7v0XZhpQK61ZkfBag+WFCALhkMTq+waSOwK/BtqySt8yhAFbR/Y2NSyDRQ0uN6QFFAVULVk0YBukslJafycK2JvUS7+Zhag+70yxV0604aBai+T9JmI1GRQym+rQKaBqjuKax3amBRgO5oJyCNScW3pVa0wFPm6e1aQP8noEx/Sfu17p2RgG4P/GBEVCtaShsLJKXnLqkRuwK4JQTFyiCieOi2wE82LtWGqka0SPUbpvLbMivKDfcJYxSgw4FfjNZJgIBJdAWi9VRJkSK6zFMNfnk+lJNGAarE8a9G5njgeWAesMi+/yzQtF6qbKd4cyiYkdZQbTq/VYAqFKoXO+jrEBXi/hiOYsA1VDecJTOvM/3oGrTFtin9FRlmJA/VGqkwqC46t+tsrxvQTkiUNVTj0Jm8Kqq517l+XSdI2iCjANVwvgJ2s9tPleKUAtwu8QxzUhI0XWEo666Qqe6tnYEayUM7A22wgSZQ539jAk2gzgSc1aWHJlBnAs7q0kMTqDMBZ3XpoQnUmYCzuvTQBOpMwFldemgCdSbgrC49NIE6E3BWtxnf06ZVfEeSgQAAAABJRU5ErkJggg==",__vite_glob_0_40=Object.freeze(Object.defineProperty({__proto__:null,default:icon_3},Symbol.toStringTag,{value:"Module"})),icon_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAm1JREFUeF7t27FqFFEchfEvRgUhgp2SF7BTJJWkS6EWWgsWvoRlep8ldQSNGrAJCBYiWPkCgjbaCFoE5Q+zECOzc2dyCGP4FtKEO2eZ3569s3vv7Ao+ogIr0TTDEDRcAkEFDQuE42yooGGBcJwNFTQsEI6zoYKGBcJxNlTQsEA4zoYKGhYIx9nQMw56F9gBvgLXw+d6KnFza+h94BnwBbh2KgLhJxFU0LBAOM6GChoWCMfZUEHDAuE4GypoWCAcZ0PPOOgDYLfhm9I6cAe4B1wAHgG/wjaT4v6Xhl4ENjvAQrxx7GxvAR8mCYQPmjPo7SOAW8DaknPfAN6HbSbFzRV07MkI2iO2WG0SdKyAoCGxgRgbGnYeAj0E3gLPgRfAG+AK4Bw64i1fq/d7HeIr4PuRY78JurzSi4b+BJ52iPVx6HfPYYI2zqGte0qCChq+6ggq6CiBuX71dA4d9TL2Dx57o4MXJefQUPUaY2xoI1TrMEFbpRrHCdoI1TqsBfQqULc91t9DYNXFkXFX+dqEq/2kAqz9pJvwz6+oXW0aWG2qFaXtDnFoP6miBB2xfNcyXQgqaEtPTj5maMW+7xlsaKChP4BLwDnn0OGrfN+Ij912SG2JHHS37LintGRmqI9GhbV41OLHa+Bl9//Px451cWRgmq238BPgfIf4Dqidzr6HoCe/bv2VIKigYYFwnA0VNCwQjrOhgoYFwnE2VNCwQDjOhgoaFgjH7QOXgcfAp3D2pLi53Yoz6STmdJCg4VdDUEHDAuE4GypoWCAcZ0MFDQuE42yooGGBcJwNFTQsEI6zoYKGBcJxNlTQsEA47g9MKqNV5KiOuwAAAABJRU5ErkJggg==",__vite_glob_0_41=Object.freeze(Object.defineProperty({__proto__:null,default:icon_4},Symbol.toStringTag,{value:"Module"})),icon_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAypJREFUeF7t28vLTVEYx/HvK4oSMZFSIrkO3E0YSkYm5lJKMlRMGMiljBgYGPoHZKQwMDSRW26RW6SUTMmdnlqyHc5519r7dzrr1G/Xqbe3Zz3nXZ/3OWfvtZ69J/AhFZiQZnMyDCouAoMaVCwgTucKNahYQJzOFWpQsYA4nSvUoGIBcTpXqEHFAuJ0rlCDigXE6ca1QncAx4G3wHaxSad04wq6GzgPvAYWdhIQD64RdCMwE3gKvOkzX4MWFMJdYDVwADhj0AK5PqEG7W74VwaDGvSPQI0nJVeoK9QVKq4Bgxq0R6B5Yb8MWAcsB64Br4amlZF43E5KU4EVwH5gH/Ad+AnE7+MI0K0Z8x5aSM2gh4ArwPr02pBWUDMGaDwCVg1NKyNxTaBLgEA7DczP+Nv/F2JQYC9wCpjTErE5zKDAQ2ClADNSGBR4AiwVgV4HtohytUpTw3doV9CPwAMglqxn08+tMBSDxg30E3AP+ApsThvQsWP/Q4GhyFEz6OeEdxO4lV5Rid8A79gP+O+fA/YAz4Abqek2zzv23T4vUxofW2/fdbP8Z7RBDertO3ENGNSgPQK+bCooCZ+UCrByQg2ao1QQY9ACrJzQNqCzgOgt3QdivT+yo4a1fO/kJwOdBhwETia8l6lBF3O5COwcmSZU+TRyL2i0RjY1XmuB6X3QvMHcgIn1fLSCLwGLgKi82cDcgoozKLANOAJE5cWNtl0OgwJ3gDVdFBtjDSruKd1OPXzR/6c8TQ1n+a49pZj1h3TJdAy4XM6gGzGOoIH3Pj398S51OZ/X0leqHTTw4jIqekq/e0uPgV1+rKb/p+pqOtNH8y1WOovT5dIJ4Gi6Iax3tHebBnxLxZ1zcaPDi7TymWylFKkMWvC1b9ACrJxQg+YoFcQYtAArJ9SgOUoFMQYtwMoJNWiOUkGMQQuwckINmqNUEJMDGpvR0QqJR2q+FOQeemgNa/neSeaADh2m7RvUCHoYWABcSA9ytZ3bSMbVCDoSCNWbGlQlmfIY1KBiAXE6V6hBxQLidK5Qg4oFxOlcoQYVC4jTuUINKhYQp3OFGlQsIE7nChWD/gIiUd9VSi7pUQAAAABJRU5ErkJggg==",__vite_glob_0_42=Object.freeze(Object.defineProperty({__proto__:null,default:icon_5},Symbol.toStringTag,{value:"Module"})),icon_6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAyFJREFUeF7tmkvITlEUhp8fhZFkqBgZmJiYGbpkRChFoZD7RIlyLdcwMXTJrTCRMjGQkqEZQzJUylRE5Naq8+fzdb59dnn/s7e/dw+/b/WetZ797n3W2eeM4SElMCZVsxgGKjaBgRqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOXsUAMVExDL2aEGKiYglrNDDVRMQCxnhxqomIBYzg41UDEBsZwdaqBiAmI5O9RAxQTEcnaogYoJiOVKOXQWsA+Y31LPZ+Aa8Cqz1pXAGmBKS/zLRutnptY/h5UCegQ4m8j+KbA8o7qYmPfAjERsAH+SoSUJKQX0KrAzUcFrYGFGhQuANx1xO4DrGVqSEAOVYPwjYqAG+hcBL/kGh/dQ8cq4BOxPaEabsx24nYiJNukusLEjt03APXH+I+VK7aGLgDvAvKHMIp9ohWKkoAbMW8CWJvYH8HFEH7oW+DDZgabqOwRcSEAN6NEGbWtivjaN/eO+oKWuU8qhXbWPghr5XgZ21QgzcqoVaOQ2DHUPEFtFPLLGqMqZ4w6pGWjkeBC42GLnKmHW7tBxjseBUwNQvwOrgCr2zOHJrt2hU5vWaMNA4r+aG1Kqperaoyfs/5qBRmsU0Da3VJ/Tp04YtP/xLh8TfQPY2iQfyzwa/bgpHUi0VEUgDl60RodGTlcGjve+AbHkHzaJnwMO1wq1JNBpwMwWS50H9ja/fwHWtdyATgInBqDG2er9Fq1PQOy5vY1SQJcCD4DZiUoDxmrg2YiYY8DpDlJvgSXAu76IlgIaTzu7E0XGe6V4BfK8A8RR4ExHTOy9Nyc7UB/fiWfYQA00j0CpPdQOzZuf7CgDzUaVFxjnmdG8jxrRUq3PkJretERzErGLgRcZWpKQUks+rrus5RVIFBUt0yMg+tCcMRdYkfgUJz7H6W2UAtpbgX1fyEDFxA3UQMUExHJ2qIGKCYjl7FADFRMQy9mhBiomIJazQw1UTEAsZ4caqJiAWM4ONVAxAbGcHWqgYgJiOTvUQMUExHJ2qIGKCYjl7FADFRMQy9mhBiomIJazQ8VAfwNusINV6IQKSQAAAABJRU5ErkJggg==",__vite_glob_0_43=Object.freeze(Object.defineProperty({__proto__:null,default:icon_6},Symbol.toStringTag,{value:"Module"})),icon_7="data:image/png;base64,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",__vite_glob_0_44=Object.freeze(Object.defineProperty({__proto__:null,default:icon_7},Symbol.toStringTag,{value:"Module"})),icon_8="data:image/png;base64,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",__vite_glob_0_45=Object.freeze(Object.defineProperty({__proto__:null,default:icon_8},Symbol.toStringTag,{value:"Module"})),icon_9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA/9JREFUeF7t22/IT2ccx/E3w2oZigkPxgMxNERKS0upjbYS7YFQIimtkD8pkoglNTzSltSKkgdsUfIv5c8IUVtk/k62Vh6glH+J6VvXXb8HP+d8zn1/z/md+F51P7o/v++5vq/76vyucx06EcNVoJNrtShGgDovggANUGcB53KxQgPUWcC5XKzQAHUWcC4XKzRAnQWcy8UKDVBnAedysUID1FnAuVys0AB1FnAuFys0QJ0FnMvFCg1QZwHncrFCA9RZwLlcrNAAdRZwLhcrNECdBZzLxQp9D0H7AN8AJ4B/nPt3L1f3FdoFuAiMBv4FRgCP3RUcC9YddDGwraHfrcBSx/7dS9UZ9BPgBtCroeuXwEjgL3cJp4J1Bt0BzG/S51Hga6f+3cvUFXQscAHo/JaOpwG/uWs4FKwjqM3pDPBFRn9/A8OB5w4GriXqCDob2CV0uQbYIOQqjdQNtDtwHRggKDwFhqbtlBCvJlI30E3AygKt7wVmFMiXHq0T6GDgKtANsO3ROmAR0DdHYSJwsnQp8QJ1Aj0IfJvmvRZYn1bfnpxe/gTGAK/EnkuN1QV0CnAodXoXGJa+wW1+9uhp26is8T2wvVQpsXgdQLsCV4Ahac7TgV8b5j8JOJ7Tz8P0+Qdi36XF6gC6AticOjwGfNWk28PC09FPwMLSpMTCrQbtl57XP05fRKOAa03mbqdNlyHzP6rZPdRuDX+IvZcSazXoL8Cc1NkWYFlGl7uBWTkKp4EvS5ESi7YSdDxwNq26++kemHXWOSht+m1blTVmAnk7A5GneKxVoHbd88C4NOW5gK3WvGHnoUtyQnYQ/RnwJK9YGb9vFeg8YGdq6FKC/V9o0F6H3AZ65GR/AFYL9dwjrQA1jJsNT0ATgN8LdLYK2JiTf5FOo+4UqOsSbQXojw2vMdrzLP4RcAvonyNwAJjqolSgSNWgdm+zR0XbzD9L97p7BebbFl0A/Cx8bjJwRMi5RaoGtebaNu52lmlnmu0ZH6SDFDu+yxp2FPh52uO25zqFP1MlqG2TzqUZ/pe2SR35JrbXIPuFjpcDdpupZFQJ2hM4ld5afgfsc+jQ/kD2h8oaj4DegLKL6PCUqgS1yX4ItG3QOzz59Khp/6IkaxtlOwjbSVQyqgYtoyl7bWL30k+BgWk12ubeXuTZtsl+Xpdx4WY13wXQqqyk6wSoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoQDVraRkgEpMeihAdSspGaASkx4KUN1KSgaoxKSHAlS3kpIBKjHpoTevLW1V8CzwHgAAAABJRU5ErkJggg==",__vite_glob_0_46=Object.freeze(Object.defineProperty({__proto__:null,default:icon_9},Symbol.toStringTag,{value:"Module"})),icon_arrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAAAXNSR0IArs4c6QAAAcRJREFUOE+d0s9rE0EUB/Dvd6In7w67JoZQFNGDh/wB5iZ6UdEURdBDwVNREATBS06CICqCtFJBVFBQQQUR8WLb+D+0giJIMzP7D5jmh/Nkwm5ca9JY9zaP9z773rwhAERRdIEiB1vWzpKUEPvXL47j3d77R0qp88aY74y1nvHAAgCCvOecm90CVvLeL0GkAvKbUuoQoyh6IN7PZAiVumutvTQJLRaLu/q93hKAqZBLsi3AETYaDXV/fv6hiJwbosBtmySXx6GlUinud7uLAuxJsXUqdcwY84EhMEDn5h4LcDZDFHnTOHdlI1oul6Nup7MoIntTrAPyuLX2/eCcFdTr9cKn5eUnApwZIuQN59zV7FypVPR6ux2wfSnWFeCEc+5dbrrfPQS02Ww+hch0LuG6TZJrU1rv/EF+FJH9GaZETraS5G1+imGHWbBWq237vLr6TERO5Tq9BeAwRA6ksZ4qFOrGmDcbr+QvMCQM0JWV52GcEYvpU6lpa+2rUUsbCYbEarW6vbW29hrA0VzhT5CnnXMvx72AsWAo0FrvIPkVIhqAELiz2XP6Y8vj/piiXwC8cM5dnPTgN+1wUvGW7vB/sFDzCzQzsAEDKeLUAAAAAElFTkSuQmCC",__vite_glob_0_47=Object.freeze(Object.defineProperty({__proto__:null,default:icon_arrow},Symbol.toStringTag,{value:"Module"})),icon_check="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABT1JREFUaEPVmmlsVFUUx39nplRaSpBFk+kCisUAMUaChkU+gAVFjJSC1A1BRcFoglgI8YMmJGg02BZcE1wisgRpUSghgOBCDLIEPhiCoqFEhJaKYdNCWcq8Y+5MtzfrezNDcebb5J7l/z/33nPOvfcJKfjlV2qWpYwTGGPBQIFClJ5A9xbzjQhnFWo98JvCDx5he12ZXEzWvSRqoO9H2tN/kWKFYuB+Vc12Y0tEmoBtAjXeLGqOvShn3ei3yromkLtMs+UCZZbFAtDWCCfiu4OONHo8LNZuVJ6YHSDm+OeYwNQq9e48xkwRFqqqz7EHF4Ii0qDKwlF9+ay6VPxOVB0RyK/UPL+yAdW7nRhNWkZkv1eYVFcm9fFsxSWQv1SHWX7WX6uoRwNoZsPjpaRuruyNRSImgfwKnWYpnyjaNV4krsW4IJc8wvN182RVVKLRBgx4v+rKawHMrU2vyFPRSEScgcCyucqO6xX5UIKBmchgdKTlFEbAbFhL2dfZaz7erAT2hHBP6Ma2EQikyuPs6bRsEw912FTI/lEFDO+YYm0EfOU6C3SZW7udKy+zG+bLx2GV2FRYzlP7f1s64ZMgDeRQ2Fqx22Ygr1Jfsyxd1LnRDHorGQijb4GuGe3evzoE245ERuPxyOv1ZfKGGQ0QMI1ZcxN/pq63cR6G+SOhbER4Mnx5i1L9a9Ts39glm36mAQxo5lXo05bq587dpkZyZAFUTQWP2AlsPqw8tzG2D4/IM/XzZHlAM7dCTaswKTWwnFm5sSt8Nx183e3gGxqVohVw7lJsOyKy4cQ8KZGWw8gpt/28M5jRpT6dCBMG2MFbqpRWw67j8a2b84RH6CO5FTpRVWviq6ROYtqdsNic30J+7+1V3t7p3I+IFEtehS6xVOc6V0tOsrAXbJ0G2V3sBH7+S5m4Bq5azu17RJaKr0K3oDreuVrikple2PQE3HGzHfyFK8q4lXD0nEvbIlvNEjqsqoUuVRMSXzgaZg0NXzpztijroqbM6K5EpFZyy/WUor1jIXrgNpgyuF3i0lXYcRS+PuSchylUqyeDhKTM9YeUlzY7t9NRUpDThsBlRTNjmZg6GN59MDxylbuV8l3xnffOgu9nwE3d7DaO/6OMXQGNV+LbiCQhyBVHBIxyMmlvZQkU9beD91tKyVrYfyIx8EarlUDcJWSETeH5djrkuiw8M4fAovvCZ698l1K5O3HwLQROu9rEI/KhutR56R/UBzY/CTdk2AnsrVOmVIGlSRIwm9htGn11FMwZFh7RBduVVQfaAZnO0uT723vbZf+9rBR9AfWNyYEPaJs06raQeQU2Pg5DfHZgTc3K+FVQeyYI7K0imHFXONEXNikbf08BeAIrYWlCrUS/HrB9OuRk2gEe/Ft5aDWMuRWWTwoHv/ag8so3qQEfnAApTriZmzII3p8QDrLqF2Vsf+iVZR/742yw2jY1p4ZAWzNnzCXaTn8wASYPinu5R7NfeXgNHDiZGvAt0Q+20+ZPogeanMxgT1/QIzaJN39UPtyXOvDGku1Ak8yRcqgPNjwGXk9kEjuPKY9WQ5IZM4S92I+UgVlI4lA/dzgsuDecwJmLwZR58kKKox96qA/sgySuVUzw15XC8Hw7iWdrlK21qQVvbugiXqsYN8lcbPly4MtHYEBL4XrnJ2XJntSCD1qLcrFlhpK9WszKMAUOTp6HIwm9eMUhLHGuFo16Wl/utvJP6+v1NhLp/MDRkUTaPjHZllO6PvK1kUjnZ9ZWEmn90N0xO6ftpwahJSZtP/aIVCuv5+c2/wFFT3oflyizvwAAAABJRU5ErkJggg==",__vite_glob_0_48=Object.freeze(Object.defineProperty({__proto__:null,default:icon_check},Symbol.toStringTag,{value:"Module"})),icon_collapseIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAATlJREFUWEftlD1OAzEQhWdMICJtstayUi6QPiWXQKImXIGengZxBEJPjkGVPidYVosNbVBQ1oNWCAmF/Rl7LSWFXXueP733PAh7Prjn9yEABAeCA4fpwGg8TuBzcwtIQx97gkC8nfaP79I0fd3Vq3RgJOU9Gbrx8fivBgp8eFfqn2YlgJTyojC08AkgEC611s8sB8pLw0g+AtHMCwTi/EOr6yqt2hImSTLYfG2XADTpBoGr/klvmmXZ2gqgvBzH8WRbmCURDVwgEHHdOxLTPM9XdfOt3zCKoitDMHcBEAgzrfVT02wrgHMfGnL/C8QCsO9Dc+7WADZ94OTuBFAOcfrAyd0ZoLUPzNw7AdT3gZ97J4CqPtjm3hlgtw+2uXsB+IE4O0csjFLqxWVRlTOsPeAqzpkLAMGB4MA3Z8uMIZKtiBMAAAAASUVORK5CYII=",__vite_glob_0_49=Object.freeze(Object.defineProperty({__proto__:null,default:icon_collapseIcon},Symbol.toStringTag,{value:"Module"})),icon_rest="data:image/png;base64,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",__vite_glob_0_50=Object.freeze(Object.defineProperty({__proto__:null,default:icon_rest},Symbol.toStringTag,{value:"Module"})),icon_staff=""+new URL("icon_staff-55f546a9.png",import.meta.url).href,__vite_glob_0_51=Object.freeze(Object.defineProperty({__proto__:null,default:icon_staff},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"./icon_-1.png":__vite_glob_0_0,"./icon_0.png":__vite_glob_0_1,"./icon_1.png":__vite_glob_0_2,"./icon_10.png":__vite_glob_0_3,"./icon_11.png":__vite_glob_0_4,"./icon_12.png":__vite_glob_0_5,"./icon_13.png":__vite_glob_0_6,"./icon_14.png":__vite_glob_0_7,"./icon_15.png":__vite_glob_0_8,"./icon_16.png":__vite_glob_0_9,"./icon_17.png":__vite_glob_0_10,"./icon_18.png":__vite_glob_0_11,"./icon_19.png":__vite_glob_0_12,"./icon_2.png":__vite_glob_0_13,"./icon_20.png":__vite_glob_0_14,"./icon_21.png":__vite_glob_0_15,"./icon_21_1.png":__vite_glob_0_16,"./icon_22.png":__vite_glob_0_17,"./icon_23.png":__vite_glob_0_18,"./icon_24.png":__vite_glob_0_19,"./icon_25.png":__vite_glob_0_20,"./icon_26_0.png":__vite_glob_0_21,"./icon_26_1.png":__vite_glob_0_22,"./icon_26_2.png":__vite_glob_0_23,"./icon_26_3.png":__vite_glob_0_24,"./icon_26_4.png":__vite_glob_0_25,"./icon_26_5.png":__vite_glob_0_26,"./icon_27_0.png":__vite_glob_0_27,"./icon_27_1.png":__vite_glob_0_28,"./icon_27_2.png":__vite_glob_0_29,"./icon_27_3.png":__vite_glob_0_30,"./icon_27_4.png":__vite_glob_0_31,"./icon_28_1.png":__vite_glob_0_32,"./icon_28_2.png":__vite_glob_0_33,"./icon_28_3.png":__vite_glob_0_34,"./icon_29.png":__vite_glob_0_35,"./icon_29_1.png":__vite_glob_0_36,"./icon_29_2.png":__vite_glob_0_37,"./icon_29_3.png":__vite_glob_0_38,"./icon_29_4.png":__vite_glob_0_39,"./icon_3.png":__vite_glob_0_40,"./icon_4.png":__vite_glob_0_41,"./icon_5.png":__vite_glob_0_42,"./icon_6.png":__vite_glob_0_43,"./icon_7.png":__vite_glob_0_44,"./icon_8.png":__vite_glob_0_45,"./icon_9.png":__vite_glob_0_46,"./icon_arrow.png":__vite_glob_0_47,"./icon_check.png":__vite_glob_0_48,"./icon_collapseIcon.png":__vite_glob_0_49,"./icon_rest.png":__vite_glob_0_50,"./icon_staff.png":__vite_glob_0_51}),getImage=d=>{var b;return((b=modules["./".concat(d)])==null?void 0:b.default)||""},ALL_NOTES=()=>{const d=["C","^C","D","^D","E","F","^F","G","^G","A","^A","B"],b=[],A=(C=0)=>C===0?"":new Array(Math.abs(C)).fill(C>0?"'":",").join("");for(let C=0;C<=6;C++)for(let x=0;x<12;x++){let S=d[x];C<3?b.push(S+A(C-3)):C===3?b.push(S):C===4?(S=S.toLocaleLowerCase(),b.push(S)):(S=S.toLocaleLowerCase(),b.push(S+A(C-4)))}let w="";return b.forEach((C,x)=>{w+=C+(x%4===0?" |":" ")}),w},ALL_Pitches=["C,,,,","D,,,,","E,,,,","F,,,,","G,,,,","A,,,,","B,,,,","C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''","c''''","d''''","e''''","f''''","g''''","a''''","b''''"],ABC_DATA={types:[{name:"全音符",value:"4",icon:"icon-quanyinfu"},{name:"2分音符",value:"2",icon:"icon-a-2fenyinfu"},{name:"4分音符",value:"",icon:"icon-a-4fenyinfu"},{name:"8分音符",value:"/",icon:"icon-a-8fenyinfu"},{name:"16分音符",value:"//",icon:"icon-a-16fenyinfu"},{name:"32音符",value:"///",icon:"icon-a-32fenyinfu"}],reset:[{name:"休止符",value:"z",icon:"icon-a-4fenxiuzhifu"}],accidentals:[{name:"重降号",value:"__",icon:getImage("icon_2.png")},{name:"降号",value:"_",icon:getImage("icon_3.png")},{name:"还原号",value:"=",icon:getImage("icon_4.png")},{name:"升号",value:"^",icon:getImage("icon_5.png")},{name:"重升号",value:"^^",icon:getImage("icon_6.png")}],clef:[{name:"低音谱号",value:"K:bass",icon:"icon-puhao-diyinpuhao"},{name:"高音谱号",value:"K:treble",icon:"icon-puhao-gaoyinpuhao"},{name:"次中音谱号",value:"K:tenor",icon:"icon-puhao-cizhongyinpuhao"},{name:"中音谱号",value:"K:alto",icon:"icon-puhao-zhongyinpuhao"},{name:"打击乐谱号",value:"K:perc",icon:"icon-puhao-gupu"}],key:[{name:"C大调",value:"K:C",step:0,icon:"icon-a-diaohao-cdadiaoaxiaodiao1"},{name:"F#大调",value:"K:F#",step:6,icon:"icon-a-diaohao-fdadiaodxiaodiao"},{name:"F大调",value:"K:F",step:5,icon:"icon-a-diaohao-fdadiaodxiaodiao1"},{name:"E大调",value:"K:E",step:4,icon:"icon-a-diaohao-edadiaocxiaodiao"},{name:"Eb大调",value:"K:Eb",step:3,icon:"icon-a-diaohao-ebdadiaocxiaodiao"},{name:"D大调",value:"K:D",step:2,icon:"icon-a-diaohao-Ddaxiaoexiaodiao"},{name:"C#大调",value:"K:C#",step:1,icon:"icon-a-diaohao-cdadiaoaxiaodiao"},{name:"B大调",value:"K:B",step:-1,icon:"icon-a-diaohao-bdadiaogxiaodiao"},{name:"Cb大调",value:"K:Cb",step:-1,icon:"icon-a-diaohao-cbdadiaoabxiaodiao"},{name:"Db大调",value:"K:Db",step:-1,icon:"icon-a-diaohao-dbdadiaobbxiaodiao"},{name:"Bb大调",value:"K:Bb",step:-2,icon:"icon-a-diaohao-bbdadiaogxiaodiao"},{name:"A大调",value:"K:A",step:-3,icon:"icon-a-diaohao-Adadiaofxiaodiao"},{name:"Ab大调",value:"K:Ab",step:-4,icon:"icon-a-diaohao-abdadiaofxiaodiao"},{name:"G大调",value:"K:G",step:-5,icon:"icon-a-diaohao-Gdadiaoexiaodiao"},{name:"Gb大调",value:"K:Gb",step:-6,icon:"icon-a-diaohao-gbdadiaoebxiaodiao"}],meter:[{name:"4/4",value:"M:4/4",icon:"icon-paihao-44"},{name:"2/2",value:"M:2/2",icon:"icon-paihao-22"},{name:"2/4",value:"M:2/4",icon:"icon-paihao-24"},{name:"3/4",value:"M:3/4",icon:"icon-paihao-34"},{name:"3/8",value:"M:3/8",icon:"icon-paihao-38"},{name:"6/8",value:"M:6/8",icon:"icon-paihao-68"},{name:"9/8",value:"M:9/8",icon:"icon-paihao-98"},{name:"12/8",value:"M:12/8",icon:"icon-a-paihao-128"}],play:[{name:"加强音",value:"!marcato!",icon:getImage("icon_9.png")},{name:"重音",value:"!>!",icon:getImage("icon_10.png")},{name:"保持音",value:"!tenuto!",icon:getImage("icon_11.png")},{name:"断音",value:"!wedge!",icon:getImage("icon_12.png")},{name:"花型重复记号",value:"S",icon:"icon-fanfuyutiaoyue-sbiao"},{name:"Coda",value:"O",icon:"icon-fanfuyutiaoyue-weisheng"},{name:"波音",value:"P",icon:"icon-e1"},{name:"逆波音",value:"M",icon:"icon-d1"},{name:"换气符号(逗号)",value:"!breath!",icon:"icon-c1"},{name:"回音",value:"!turn!",icon:"icon-b"},{name:"颤音",value:"T",icon:"icon-a1"},{name:"跳音",value:".",icon:"icon-a-zoufajihao-duanzouhaoshang"},{name:"延迟音记号",value:"!fermata!",icon:"icon-f1"}],bar:[{name:"单小节线",value:"|",icon:"icon-xiaojiexian-danxiaojiexian"},{name:"双小节线",value:"||",icon:"icon-xiaojiexian-shuangxiaojiexian"},{name:"结束线",value:"|]",icon:"icon-xiaojiexian-zhongzhixiaojiexian"},{name:"重复线开始",value:"|:",icon:"icon-a-xiaojiexian-zuoqishifanfuhao"},{name:"重复线结束",value:":|",icon:"icon-a-xiaojiexian-youzhongzhifanfuhao"},{name:"双重复",value:"::",icon:"icon-xiaojiexian-jieshuyuqishifanfubiaozhi"}],tie:[{name:"延音线",value:"-",icon:getImage("icon_7.png")},{name:"连音线",value:["(",")"],icon:getImage("icon_8.png")}],octave:[{name:"高8度开始",value:["!8va(!","!8va)!"]},{name:"低8度",value:["!8vb(!","!8vb)!"]}],dynamics:[{name:"极弱",value:"!ppp!",icon:"icon-lidujihao-ppp"},{name:"很弱",value:"!pp!",icon:"icon-lidujihao-pp"},{name:"弱",value:"!p!",icon:"icon-lidujihao-p"},{name:"中弱",value:"!mp!",icon:"icon-lidujihao-mp"},{name:"中强",value:"!mf!",icon:"icon-lidujihao-mf"},{name:"强",value:"!f!",icon:"icon-lidujihao-f"},{name:"很强",value:"!ff!",icon:"icon-lidujihao-ff"},{name:"极强",value:"!fff!",icon:"icon-lidujihao-fff"},{name:"渐强",value:["!<(!","!<)!"],icon:"icon-lidujihao-jianqianghao"},{name:"渐弱",value:["!>(!","!>)!"],icon:"icon-lidujihao-jianruohao"}],repeat:[{name:"第一跳跃",value:"1",icon:"icon-fanfuyutiaoyue-diyitiaoyuehao"},{name:"第二跳跃",value:"2",icon:"icon-fanfuyutiaoyue-di2kaifangtiaoyuehao"}],speeds:[{name:"60",value:"Q:1/4=60",icon:""},{name:"70",value:"Q:1/4=70",icon:""},{name:"80",value:"Q:1/4=80",icon:""},{name:"90",value:"Q:1/4=90",icon:""},{name:"100",value:"Q:1/4=100",icon:""},{name:"120",value:"Q:1/4=120",icon:""}],slus:[{name:"3连音",value:"(3",icon:""},{name:"4连音",value:"(4",icon:""},{name:"5连音",value:"(5",icon:""},{name:"6连音",value:"(6",icon:""},{name:"7连音",value:"(7",icon:""}]},settings=reactive({cursorType:"note"}),createNote=d=>({accidental:d.accidental||"",content:d.content||"",noteType:d.noteType||"",clef:d.clef||"",play:d.play||[],key:d.key||"",speed:d.speed||"",dynamics:d.dynamics||"",dCode:d.dCode||"",tie:d.tie||"",tCode:d.tCode||"",dot:d.dot||"",slus:d.slus||"",tieline:d.tieline||"",segno:d.segno||""}),createMeasure=()=>({notes:[createNote({content:"z",noteType:"4"})],barline:"|",repeat:"",measureNumber:0,celf:"",key:"",meter:""}),renderMeasures=(d,b)=>{var x,S,E,P,B,k,$,I,D,F,z,L,H,Q,Y,U,G,W,K,X;let A=1,w="X:1\n";b!=null&&b.showTitle&&d.title&&(w+=d.title+"\n"),b!=null&&b.showCreator&&d.creator&&(w+=d.creator+"\n"),d.celf&&(w+=d.celf+"\n"),d.meter&&(w+=d.meter+"\n"),d.minUnit&&(w+=d.minUnit+"\n"),d.speed&&(w+=d.speed+"\n"),d.key&&(w+=d.key+"\n");const C=d.measures;for(let Z=0;Z<C.length;Z++){const oe=C[Z];w+=(x=oe.repeat)!=null?x:"",w+=(S=oe.meter)!=null?S:"";for(let J=0;J<oe.notes.length;J++){const le=oe.notes[J],de=(P=(E=le.play)==null?void 0:E.join(""))!=null?P:"";w+=(B=le.clef)!=null?B:"",w+=(k=le.key)!=null?k:"",w+=($=le.speed)!=null?$:"",w+=(I=le.slus)!=null?I:"",(D=le.tie)!=null&&D.includes("(")&&(w+=(F=le.tie)!=null?F:""),b!=null&&b.hiddenIndex||(w+='"<'.concat(Z+"."+J,'"')),w+=de!=null?de:"",w+=(z=le.dynamics)!=null?z:"",w+=(L=le.accidental)!=null?L:"",w+=(H=le.content)!=null?H:"",w+=(Q=le.noteType)!=null?Q:"",w+=(Y=le.dot)!=null?Y:"",w+=(U=le.tieline)!=null?U:"",(G=le.tie)!=null&&G.includes(")")&&(w+=(W=le.tie)!=null?W:""),w+=(K=le.segno)!=null?K:""}let he=Z+1;b!=null&&b.hiddenIndex||(w+='"<'.concat(he,'"')),w+=(X=oe.barline)!=null?X:"",A%4===0&&(w+="\n"),A++}return w},formateGetData={getNoteType:d=>{var w;const b=.25/d;return console.log(b),((w=[{name:.25,value:"4"},{name:.5,value:"2"},{name:1,value:""},{name:2,value:"/"},{name:4,value:"//"},{name:8,value:"///"}].find(C=>C.name===b))==null?void 0:w.value)||""}},formateAbc=(d,b)=>{var x,S,E,P,B,k;const A={celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=60",key:"K:C",visualTranspose:0,subjectCode:(x=b.subjectCode)!=null?x:"acoustic_grand_piano"},w=[];let C=0;for(let $=0;$<d.lines.length;$++){const I=d.lines[$];if(I.staff)for(let D=0;D<I.staff.length;D++){const F=I.staff[D];if($===0&&(F.clef&&(A.celf="K:".concat(F.clef.type)),F.key&&(A.key="K:".concat(F.key.root).concat(F.key.acc)),(E=(S=F.meter)==null?void 0:S.value)!=null&&E[0]&&(A.meter="M:".concat(F.meter.value[0].num,"/").concat(F.meter.value[0].den))),F.voices){let z={notes:[],barline:"|",repeat:"",measureNumber:C,celf:"",key:"",meter:""};for(let L=0;L<F.voices.length;L++){const H=F.voices[L];for(let Q=0;Q<H.length;Q++){const Y=H[Q];if(Y.el_type==="bar"&&(C++,w.push(z),z={notes:[],barline:"|",repeat:"",measureNumber:C,celf:"",key:"",meter:""}),Y.el_type==="note"){console.log("🚀 ~ abcEle:",Y);let U="";Y.rest?U="z":U=(k=(B=(P=Y.pitches)==null?void 0:P[0])==null?void 0:B.name)!=null?k:"",console.log(U);const G=createNote({clef:"",key:"",speed:"",slus:"",tie:"",content:U,noteType:formateGetData.getNoteType(Y.duration),play:[],dynamics:"",accidental:"",dot:"",tieline:"",segno:""});z.notes.push(G)}}}}}}return console.log(C,w),{...A,measures:w}},index="",TheIcon=defineComponent({name:"TheIcon",props:{iconClassName:{type:String,default:""},color:{type:String,default:""},size:{type:Array,default:["1em","1em"]}},setup(d){let b="1em",A="1em";return Array.isArray(d.size)?(b=d.size[0],A=d.size[1]):(b=d.size,A=d.size),()=>createVNode("svg",{style:{width:b,height:A},class:"svg-icon","aria-hidden":"true"},[createVNode("use",{"xlink:href":"#"+d.iconClassName,fill:d.color},null)])}});function _isSlot$2(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const instruments=[{label:"竖笛",key:"recorder",id:4,icon:getImage("icon_27_0.png"),range:{min:48,max:74}},{label:"排箫",key:"pan_flute",id:1,icon:getImage("icon_27_1.png"),range:{min:43,max:77}},{label:"口风琴",key:"piccolo",id:5,icon:getImage("icon_27_2.png"),range:{min:41,max:72}},{label:"陶笛",key:"blown_bottle",id:2,icon:getImage("icon_27_3.png"),range:{min:45,max:65}},{label:"葫芦丝",key:"clarinet",id:3,icon:getImage("icon_27_4.png"),range:{min:40,max:57}}],notationInstruments=instruments,TheCreate=defineComponent({name:"TheCreate",props:{show:{type:Boolean,default:!1}},emits:["update:show","create"],setup(d,{emit:b}){const A=useMessage(),w=reactive({subjects:[],loading:!1}),C=reactive({subjectId:4,key:ABC_DATA.key[0],meter:ABC_DATA.meter[0],speed:80,measure:30,subjectCode:"recorder"}),x=async()=>{if(!C.speed){A.warning("请输入开始速度");return}if(!C.measure){A.warning("请输入小节数量");return}w.loading=!0;try{await api_musicSheetCreationSave({creationData:JSON.stringify({celf:"K:treble",minUnit:"L:1/4",meter:C.meter,speed:"Q:1/4=".concat(C.speed),key:C.key,subjectCode:C.subjectCode,measures:initMusic(C.measure)}),name:"",creationConfig:"",subjectId:1}),b("create")}catch(E){console.log("🚀 ~ error:",E)}w.loading=!1},S=async()=>{const E=await api_subjectList();w.subjects=E.data||[]};return onMounted(async()=>{S()}),()=>{let E;return createVNode(NModal,{transformOrigin:"center",autoFocus:!1,show:d.show,"onUpdate:show":P=>b("update:show",P)},{default:()=>[createVNode("div",{class:styles$4.setbox},[createVNode("div",{class:styles$4.head},[createVNode("div",null,[createTextVNode("新建乐谱")]),createVNode(NButton,{class:styles$4.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$4.content},[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("声部")]),createVNode(NSpace,{size:32,style:{paddingBottom:"45px"}},_isSlot$2(E=instruments.map(P=>createVNode("div",{class:[styles$4.item,C.subjectId===P.id&&styles$4.itemActive],onClick:()=>{C.subjectId=P.id,C.subjectCode=P.key}},[createVNode("div",{class:styles$4.itemImg},[createVNode("img",{class:styles$4.icon,src:P.icon},null)]),createVNode("div",null,[P.label]),createVNode("img",{class:styles$4.itemIcon,src:getImage("icon_check.png")},null)])))?E:{default:()=>[E]}),createVNode(NSpace,{style:{paddingBottom:"45px"}},{default:()=>[createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("调号")]),createVNode("div",{class:styles$4.beatItem},[createVNode("div",{class:[styles$4.beatIcon]},[createVNode(TheIcon,{iconClassName:C.key.icon},null)]),createVNode("div",null,[C.key.name])])]),default:()=>{let P;return createVNode(NGrid,{cols:5,xGap:20,yGap:8},_isSlot$2(P=ABC_DATA.key.map(B=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,C.key.value===B.value&&styles$4.active],onClick:()=>C.key=B},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:B.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[B.name])])]})))?P:{default:()=>[P]})}}),createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("拍号")]),createVNode("div",{class:styles$4.beatItem},[createVNode("div",{class:[styles$4.beatIcon]},[createVNode(TheIcon,{iconClassName:C.meter.icon},null)]),createVNode("div",null,[C.meter.name])])]),default:()=>{let P;return createVNode(NGrid,{cols:5,xGap:50,yGap:20},_isSlot$2(P=ABC_DATA.meter.map(B=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,C.meter.value===B.value&&styles$4.active],onClick:()=>C.meter=B},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:B.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[B.name])])]})))?P:{default:()=>[P]})}}),createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("速度")]),createVNode("div",{class:styles$4.beatItem},[createVNode(NInputNumber,{size:"large",value:C.speed,"onUpdate:value":P=>C.speed=P,placeholder:"开始速度",showButton:!1,min:50},{prefix:()=>createVNode("div",{class:styles$4.speedIcon},[createVNode(TheIcon,{iconClassName:"icon-a-sudu-4fenyinfu",size:["2em","1em"]},null)])})])]),createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("小节")]),createVNode("div",{class:styles$4.beatItem},[createVNode(NInputNumber,{placeholder:"小节数量",size:"large",value:C.measure,"onUpdate:value":P=>C.measure=P,min:4},null)])])]}),createVNode("div",{class:styles$4.btns},[createVNode(NButton,{round:!0,onClick:()=>b("update:show",!1)},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{loading:w.loading,round:!0,type:"primary",onClick:()=>x()},{default:()=>[createTextVNode("确定")]})])])])]})}}}),Keys=defineComponent({name:"Keys",emits:["click"],props:{show:{type:Boolean,default:!1},instrumentCode:{type:String,default:""}},setup(d,{emit:b}){const A=reactive({keys:[{key:"C",singname:"do",type:"white"},{key:"D",singname:"re",type:"white"},{key:"E",singname:"mi",type:"white"},{key:"F",singname:"fa",type:"white"},{key:"G",singname:"so",type:"white"},{key:"A",singname:"la",type:"white"},{key:"B",singname:"si",type:"white"}],keyDown:"",list:[],range:{min:0,max:83}}),w=["#F07C83","#FF966C","#FBB957","#A7DCBF","#CCCCD6","#A5D2FF","#B0A4F4"],C=(B=0)=>new Array(Math.abs(B)).fill(B>0?"'":",").join(""),x=B=>{A.keyDown=B.key.toLocaleUpperCase()},S=B=>{A.keyDown=""},E=()=>{var I;let B=0;const k=[];for(let D=0;D<7;D++){const F=[];for(let z=0;z<A.keys.length;z++){const L=A.keys[z];let H=D>3?L.key.toLocaleLowerCase():L.key;const Q=D>3?[3,4].includes(D)?0:D-4:D-3;F.push({noteIndex:B,index:D,singname:L.singname,key:L.key,name:L.key+(D+1),type:"white",value:H+C(Q)}),B++,L.key!=="E"&&L.key!=="B"&&(F.push({noteIndex:B,bekey:"bkey"+z,index:D,key:L.key,singname:L.singname,name:"#"+L.key+(D+1),type:"black",value:H+C(Q)+"-^"}),B++)}k.push(F)}A.list=k;const $=(I=notationInstruments.find(D=>D.key===d.instrumentCode))==null?void 0:I.range;$&&(A.range=$)},P=computed(()=>A.list.map(k=>k.filter($=>$.noteIndex>=A.range.min&&$.noteIndex<=A.range.max)).filter(k=>k.length>0));return onMounted(()=>{E(),document.addEventListener("keydown",x),document.addEventListener("keyup",S)}),onUnmounted(()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",S)}),()=>createVNode("div",{class:[styles$5.piano,d.show&&styles$5.show]},[createVNode("div",{class:styles$5.pianoItemWrap},[P.value.map((B,k)=>createVNode("div",{class:styles$5.itemWrap,style:{width:"calc(100% / ".concat(P.value.length,")")}},[B.map($=>createVNode(Fragment,null,[$.type==="white"?createVNode("div",{style:{display:$.noteIndex<A.range.min||$.noteIndex>A.range.max?"none":""},class:[styles$5.item,$.index===3&&A.keyDown===$.key&&styles$5.keyDown],key:$.index,onClick:()=>{console.log($.value),b("click",{type:"note",value:$.value})}},[createVNode("div",{class:styles$5.keytip},[createVNode("div",{style:{color:"#ff4a00"}},[$.index===3&&$.key==="C"?"中央C":""]),createVNode("div",{class:styles$5.keyname},[$.name]),createVNode("div",{class:styles$5.singname,style:{background:w[$.index]}},[$.singname])])]):createVNode("div",{style:{display:$.noteIndex<A.range.min||$.noteIndex>A.range.max?"none":""},class:[styles$5.bkey,"".concat($.bekey)],onClick:()=>{b("click",{type:"note",value:$.value})}},[createVNode("div",{class:"keytip"},null)])]))]))])])}}),isString=d=>typeof d=="string",isBoolean=d=>typeof d=="boolean",isNumber=d=>typeof d=="number",isArray=d=>Array.isArray(d),isURL=d=>d?/^(http)|(\.*\/)/.test(d):!1,isWindow=d=>d===window,toNumber=d=>d==null?0:isString(d)?(d=parseFloat(d),d=Number.isNaN(d)?0:d,d):isBoolean(d)?Number(d):d,removeItem=(d,b)=>{if(d.length){const A=d.indexOf(b);if(A>-1)return d.splice(A,1)}},inBrowser$1=()=>typeof window<"u";var getGlobalThis=()=>typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:self;function error(d,b){throw Error("Varlet ["+d+"]: "+b)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(d){for(var b=1;b<arguments.length;b++){var A=arguments[b];for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&(d[w]=A[w])}return d},_extends.apply(this,arguments)}function getStyle(d){return window.getComputedStyle(d)}function getRect(d){if(isWindow(d)){var b=d.innerWidth,A=d.innerHeight,w={x:0,y:0,top:0,left:0,right:b,bottom:A,width:b,height:A};return _extends({},w,{toJSON:()=>w})}return d.getBoundingClientRect()}function getViewportSize(){var{width:d,height:b}=getRect(window);return{vw:d,vh:b,vMin:Math.min(d,b),vMax:Math.max(d,b)}}var isRem=d=>isString(d)&&d.endsWith("rem"),isEm=d=>isString(d)&&d.endsWith("em")&&!d.endsWith("rem"),isPx=d=>isString(d)&&d.endsWith("px")||isNumber(d),isPercent=d=>isString(d)&&d.endsWith("%"),isVw=d=>isString(d)&&d.endsWith("vw"),isVh=d=>isString(d)&&d.endsWith("vh"),isVMin=d=>isString(d)&&d.endsWith("vmin"),isVMax=d=>isString(d)&&d.endsWith("vmax"),isCalc=d=>isString(d)&&d.startsWith("calc("),isVar=d=>isString(d)&&d.startsWith("var("),toPxNum=d=>{if(isNumber(d))return d;if(isPx(d))return+d.replace("px","");if(!inBrowser$1())return 0;var{vw:b,vh:A,vMin:w,vMax:C}=getViewportSize();if(isVw(d))return+d.replace("vw","")*b/100;if(isVh(d))return+d.replace("vh","")*A/100;if(isVMin(d))return+d.replace("vmin","")*w/100;if(isVMax(d))return+d.replace("vmax","")*C/100;if(isRem(d)){var x=+d.replace("rem",""),S=getStyle(document.documentElement).fontSize;return x*parseFloat(S)}return isString(d)?toNumber(d):0},toSizeUnit=d=>{if(d!=null)return isPercent(d)||isVw(d)||isVh(d)||isEm(d)||isRem(d)||isCalc(d)||isVar(d)||isVMin(d)||isVMax(d)?d:toPxNum(d)+"px"};function requestAnimationFrame$2(d){var b=getGlobalThis();return b.requestAnimationFrame?b.requestAnimationFrame(d):b.setTimeout(d,16)}function nextTickFrame(d){requestAnimationFrame$2(()=>{requestAnimationFrame$2(d)})}var __rest=globalThis&&globalThis.__rest||function(d,b){var A={};for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&b.indexOf(w)<0&&(A[w]=d[w]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,w=Object.getOwnPropertySymbols(d);C<w.length;C++)b.indexOf(w[C])<0&&Object.prototype.propertyIsEnumerable.call(d,w[C])&&(A[w[C]]=d[w[C]]);return A};function keyInProvides(d){const b=getCurrentInstance();return d in b.provides}function useParent(d){if(!keyInProvides(d))return{index:null,parentProvider:null,bindParent:null};const b=inject(d),{childInstances:A,collect:w,clear:C}=b,x=__rest(b,["childInstances","collect","clear"]),S=getCurrentInstance();return{index:computed(()=>A.indexOf(S)),parentProvider:x,bindParent:B=>{onMounted(()=>{nextTick().then(()=>{w(S,B)})}),onBeforeUnmount(()=>{nextTick().then(()=>{C(S,B)})})}}}function flatVNodes(d){const b=[],A=w=>{if(w!=null&&w.component){A(w==null?void 0:w.component.subTree);return}Array.isArray(w==null?void 0:w.children)&&w.children.forEach(C=>{isVNode(C)&&(b.push(C),A(C))})};return A(d),b}function useChildren(d){const b=getCurrentInstance(),A=reactive([]),w=[],C=computed(()=>A.length),x=()=>{const B=flatVNodes(b.subTree);A.sort((k,$)=>B.indexOf(k.vnode)-B.indexOf($.vnode))},S=(B,k)=>{A.push(B),w.push(k),x()},E=(B,k)=>{removeItem(A,B),removeItem(w,k)};return{length:C,childProviders:w,bindChildren:B=>{provide(d,Object.assign({childInstances:A,collect:S,clear:E},B))}}}function withInstall(d,b){var A=b!=null?b:d;return A.install=function(w){var{name:C}=d;C&&w.component(C,d)},A}function createNamespace(d){var b="var",A=b+"-"+d,w=x=>x?x[0]==="$"?x.replace("$",b):x.startsWith("--")?""+A+x:A+"__"+x:A,C=function(){for(var x=arguments.length,S=new Array(x),E=0;E<x;E++)S[E]=arguments[E];return S.map(P=>{if(isArray(P)){var[B,k,$=null]=P;return B?k:$}return P})};return{n:w,classes:C}}function call(d){for(var b=arguments.length,A=new Array(b>1?b-1:0),w=1;w<b;w++)A[w-1]=arguments[w];if(isArray(d))return d.map(C=>C(...A));if(d)return d(...A)}function defineListenerProp(d){return{type:[Function,Array],default:d}}function formatElevation(d,b){return d===!1?null:(d===!0&&b&&(d=b),"var-elevation--"+d)}var props$2={name:{type:String},size:{type:[Number,String]},color:{type:String},namespace:{type:String,default:"var-icon"},transition:{type:[Number,String],default:0},animationClass:{type:String},onClick:defineListenerProp()};function asyncGeneratorStep(d,b,A,w,C,x,S){try{var E=d[x](S),P=E.value}catch(B){A(B);return}E.done?b(P):Promise.resolve(P).then(w,C)}function _asyncToGenerator(d){return function(){var b=this,A=arguments;return new Promise(function(w,C){var x=d.apply(b,A);function S(P){asyncGeneratorStep(x,w,C,S,E,"next",P)}function E(P){asyncGeneratorStep(x,w,C,S,E,"throw",P)}S(void 0)})}}var{n:n$3,classes:classes$1}=createNamespace("icon");function __render__$2(d,b){return openBlock(),createBlock(resolveDynamicComponent(d.isURL(d.name)?"img":"i"),{class:normalizeClass(d.classes(d.n(),[d.namespace!==d.n(),d.namespace],d.namespace+"--set",[d.isURL(d.name),d.n("image"),d.namespace+"-"+d.nextName],[d.animateInProgress,d.animationClass==null?d.n("--shrinking"):d.animationClass])),style:normalizeStyle({color:d.color,"transition-duration":d.toNumber(d.transition)+"ms",width:d.isURL(d.name)?d.toSizeUnit(d.size):null,height:d.isURL(d.name)?d.toSizeUnit(d.size):null,fontSize:d.toSizeUnit(d.size)}),src:d.isURL(d.name)?d.nextName:null,onClick:d.onClick},null,8,["class","style","src","onClick"])}var __sfc__$2=defineComponent({name:"VarIcon",props:props$2,setup(d){var b=ref(""),A=ref(!1),w=function(){var C=_asyncToGenerator(function*(x,S){var{transition:E}=d;if(S==null||toNumber(E)===0){b.value=x;return}A.value=!0,yield nextTick(),setTimeout(()=>{S!=null&&(b.value=x),A.value=!1},toNumber(E))});return function(S,E){return C.apply(this,arguments)}}();return watch(()=>d.name,w,{immediate:!0}),{n:n$3,classes:classes$1,nextName:b,animateInProgress:A,isURL,toNumber,toSizeUnit}}});__sfc__$2.render=__render__$2;const Icon=__sfc__$2;withInstall(Icon);var COLLAPSE_BIND_COLLAPSE_ITEM_KEY=Symbol("COLLAPSE_BIND_COLLAPSE_ITEM_KEY");function useCollapseItem(){var{childProviders:d,length:b,bindChildren:A}=useChildren(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return{length:b,collapseItem:d,bindCollapseItem:A}}var props$1={modelValue:{type:[Array,String,Number]},accordion:{type:Boolean,default:!1},offset:{type:Boolean,default:!0},divider:{type:Boolean,default:!0},elevation:{type:[Boolean,String,Number],default:!0},onChange:defineListenerProp(),"onUpdate:modelValue":defineListenerProp()},{n:n$2}=createNamespace("collapse");function __render__$1(d,b){return openBlock(),createElementBlock("div",{class:normalizeClass(d.n())},[renderSlot(d.$slots,"default")],2)}var __sfc__$1=defineComponent({name:"VarCollapse",props:props$1,setup(d){var{length:b,collapseItem:A,bindCollapseItem:w}=useCollapseItem(),C=computed(()=>d.modelValue),x=computed(()=>d.offset),S=computed(()=>d.divider),E=computed(()=>d.elevation),P=()=>!d.accordion&&!isArray(d.modelValue)?(console.error('[Varlet] Collapse: type of prop "modelValue" should be an Array'),!1):d.accordion&&isArray(d.modelValue)?(console.error('[Varlet] Collapse: type of prop "modelValue" should be a String or Number'),!1):!0,B=(z,L)=>P()?L?d.accordion?z:[...d.modelValue,z]:d.accordion?null:d.modelValue.filter(H=>H!==z):null,k=(z,L)=>{var H=B(z,L);call(d["onUpdate:modelValue"],H),call(d.onChange,H)},$=()=>{if(d.accordion)return A.find(L=>{var{name:H}=L;return d.modelValue===H.value});var z=A.filter(L=>{var{name:H}=L;return H.value===void 0?!1:d.modelValue.includes(H.value)});return z.length?z:void 0},I=()=>d.accordion?A.find(z=>{var{index:L,name:H}=z;return H.value===void 0&&d.modelValue===L.value}):A.filter(z=>{var{index:L,name:H}=z;return H.value===void 0&&d.modelValue.includes(L.value)}),D=()=>{if(P()){var z=$()||I();if(d.accordion&&!z||!d.accordion&&!z.length){A.forEach(L=>{L.init(d.accordion,!1)});return}A.forEach(L=>{var H=d.accordion?z===L:z.includes(L);L.init(d.accordion,H)})}},F={active:C,offset:x,divider:S,elevation:E,updateItem:k};return w(F),watch(()=>b.value,()=>nextTick().then(D)),watch(()=>d.modelValue,()=>nextTick().then(D)),{n:n$2,divider:S}}});__sfc__$1.render=__render__$1;const Collapse=__sfc__$1;withInstall(Collapse);function useCollapse(){var{parentProvider:d,index:b,bindParent:A}=useParent(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return A||error("Collapse","<var-collapse-item/> must in <var-collapse>"),{index:b,collapse:d,bindCollapse:A}}var props={name:{type:[String,Number]},title:{type:String},icon:{type:String,default:"chevron-down"},disabled:{type:Boolean,default:!1}},{n:n$1,classes}=createNamespace("collapse-item");function __render__(d,b){var A=resolveComponent("var-icon");return openBlock(),createElementBlock("div",{class:normalizeClass(d.classes(d.n(),[d.offset&&d.isShow,d.n("--active")],[d.disabled,d.n("--disable")])),style:normalizeStyle("--collapse-divider-top: "+(d.divider?"var(--collapse-border-top)":"none"))},[createBaseVNode("div",{class:normalizeClass(d.classes(d.n("shadow"),d.formatElevation(d.elevation,2)))},null,2),createBaseVNode("div",{class:normalizeClass(d.n("header")),onClick:b[0]||(b[0]=w=>d.toggle())},[createBaseVNode("div",{class:normalizeClass(d.n("header-title"))},[renderSlot(d.$slots,"title",{},()=>[createTextVNode(toDisplayString(d.title),1)])],2),createBaseVNode("div",{class:normalizeClass(d.n("header-icon"))},[renderSlot(d.$slots,"icon",{},()=>[createVNode(A,{name:d.icon,transition:250,class:normalizeClass(d.classes(d.n("header-icon"),[d.isShow&&d.icon==="chevron-down",d.n("header-open")],[d.disabled,d.n("header--disable")]))},null,8,["name","class"])])],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(d.n("content")),ref:"contentEl",onTransitionend:b[1]||(b[1]=function(){return d.transitionend&&d.transitionend(...arguments)}),onTransitionstart:b[2]||(b[2]=function(){return d.start&&d.start(...arguments)})},[createBaseVNode("div",{class:normalizeClass(d.n("content-wrap"))},[renderSlot(d.$slots,"default")],2)],34),[[vShow,d.showContent]])],6)}var __sfc__=defineComponent({name:"VarCollapseItem",components:{VarIcon:Icon},props,setup(d){var{index:b,collapse:A,bindCollapse:w}=useCollapse(),C=!0,x=ref(null),S=ref(!1),E=ref(!1),{active:P,offset:B,divider:k,elevation:$,updateItem:I}=A,D=computed(()=>d.name),F=(G,W)=>{P.value===void 0||G&&isArray(P.value)||W===E.value||(E.value=W,z(!0))},z=G=>{d.disabled||G||I(d.name||b.value,!E.value)},L=()=>{x.value&&(x.value.style.height="",S.value=!0,requestAnimationFrame$2(()=>{var{offsetHeight:G}=x.value;x.value.style.height="0px",requestAnimationFrame$2(()=>{x.value.style.height=G+"px",C&&nextTickFrame(()=>{C&&Y()})})}))},H=()=>{C=!1},Q=()=>{if(x.value){var{offsetHeight:G}=x.value;x.value.style.height=G+"px",requestAnimationFrame$2(()=>{x.value.style.height="0px"})}},Y=()=>{E.value||(S.value=!1),x.value.style.height=""},U={index:b,name:D,init:F};return w(U),watch(E,G=>{G?L():Q()}),{n:n$1,start:H,classes,showContent:S,isShow:E,offset:B,divider:k,elevation:$,toggle:z,contentEl:x,transitionend:Y,formatElevation}}});__sfc__.render=__render__;const CollapseItem=__sfc__;withInstall(CollapseItem);var lodash={exports:{}};/**
  6. * @license
  7. * Lodash <https://lodash.com/>
  8. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  9. * Released under MIT license <https://lodash.com/license>
  10. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  11. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  12. */lodash.exports;(function(d,b){(function(){var A,w="4.17.21",C=200,x="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",E="Invalid `variable` option passed into `_.template`",P="__lodash_hash_undefined__",B=500,k="__lodash_placeholder__",$=1,I=2,D=4,F=1,z=2,L=1,H=2,Q=4,Y=8,U=16,G=32,W=64,K=128,X=256,Z=512,oe=30,he="...",J=800,le=16,de=1,me=2,ne=3,re=1/0,fe=9007199254740991,ce=17976931348623157e292,we=0/0,Fe=4294967295,Ke=Fe-1,tt=Fe>>>1,ut=[["ary",K],["bind",L],["bindKey",H],["curry",Y],["curryRight",U],["flip",Z],["partial",G],["partialRight",W],["rearg",X]],dt="[object Arguments]",it="[object Array]",$e="[object AsyncFunction]",ke="[object Boolean]",Oe="[object Date]",Qe="[object DOMException]",Je="[object Error]",ve="[object Function]",ye="[object GeneratorFunction]",Te="[object Map]",ee="[object Number]",se="[object Null]",ie="[object Object]",be="[object Promise]",Ee="[object Proxy]",Ce="[object RegExp]",ge="[object Set]",Ie="[object String]",Le="[object Symbol]",Ye="[object Undefined]",rt="[object WeakMap]",lt="[object WeakSet]",pt="[object ArrayBuffer]",He="[object DataView]",at="[object Float32Array]",nt="[object Float64Array]",mt="[object Int8Array]",Tt="[object Int16Array]",Dt="[object Int32Array]",yt="[object Uint8Array]",At="[object Uint8ClampedArray]",Ae="[object Uint16Array]",Re="[object Uint32Array]",qe=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ne=RegExp(bt.source),ze=RegExp(xe.source),Ve=/<%-([\s\S]+?)%>/g,We=/<%([\s\S]+?)%>/g,ht=/<%=([\s\S]+?)%>/g,_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,Ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,Pe=RegExp(Mt.source),Ue=/^\s+/,ct=/\s/,Et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Vt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,tr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,Ot=/\\(\\)?/g,fr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,sn=/^[-+]0x[0-9a-f]+$/i,yr=/^0b[01]+$/i,Mn=/^\[object .+?Constructor\]$/,Nn=/^0o[0-7]+$/i,Po=/^(?:0|[1-9]\d*)$/,Bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,Dr=/['\n\r\u2028\u2029\\]/g,Cn="\\ud800-\\udfff",$o="\\u0300-\\u036f",ko="\\ufe20-\\ufe2f",Io="\\u20d0-\\u20ff",Zn=$o+ko+Io,ln="\\u2700-\\u27bf",eo="a-z\\xdf-\\xf6\\xf8-\\xff",Mo="\\xac\\xb1\\xd7\\xf7",Or="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",No="\\u2000-\\u206f",Do=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",to="A-Z\\xc0-\\xd6\\xd8-\\xde",ro="\\ufe0e\\ufe0f",no=Mo+Or+No+Do,Dn="['’]",xn="["+Cn+"]",oo="["+no+"]",Sn="["+Zn+"]",io="\\d+",ao="["+ln+"]",so="["+eo+"]",lo="[^"+Cn+no+io+ln+eo+to+"]",cn="\\ud83c[\\udffb-\\udfff]",Oo="(?:"+Sn+"|"+cn+")",co="[^"+Cn+"]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",en="["+to+"]",uo="\\u200d",fo="(?:"+so+"|"+lo+")",Ro="(?:"+en+"|"+lo+")",ri="(?:"+Dn+"(?:d|ll|m|re|s|t|ve))?",ni="(?:"+Dn+"(?:D|LL|M|RE|S|T|VE))?",Fo=Oo+"?",oi="["+ro+"]?",ii="(?:"+uo+"(?:"+[co,On,Rn].join("|")+")"+oi+Fo+")*",Ji="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fn=oi+Fo+ii,ea="(?:"+[ao,On,Rn].join("|")+")"+Fn,_n="(?:"+[co+Sn+"?",Sn,On,Rn,xn].join("|")+")",tn=RegExp(Dn,"g"),ta=RegExp(Sn,"g"),ho=RegExp(cn+"(?="+cn+")|"+_n+Fn,"g"),po=RegExp([en+"?"+so+"+"+ri+"(?="+[oo,en,"$"].join("|")+")",Ro+"+"+ni+"(?="+[oo,en+fo,"$"].join("|")+")",en+"?"+fo+"+"+ri,en+"+"+ni,Zi,Ji,io,ea].join("|"),"g"),ra=RegExp("["+uo+Cn+Zn+ro+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ai=-1,Zt={};Zt[at]=Zt[nt]=Zt[mt]=Zt[Tt]=Zt[Dt]=Zt[yt]=Zt[At]=Zt[Ae]=Zt[Re]=!0,Zt[dt]=Zt[it]=Zt[pt]=Zt[ke]=Zt[He]=Zt[Oe]=Zt[Je]=Zt[ve]=Zt[Te]=Zt[ee]=Zt[ie]=Zt[Ce]=Zt[ge]=Zt[Ie]=Zt[rt]=!1;var er={};er[dt]=er[it]=er[pt]=er[He]=er[ke]=er[Oe]=er[at]=er[nt]=er[mt]=er[Tt]=er[Dt]=er[Te]=er[ee]=er[ie]=er[Ce]=er[ge]=er[Ie]=er[Le]=er[yt]=er[At]=er[Ae]=er[Re]=!0,er[Je]=er[ve]=er[rt]=!1;var go={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},un={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},si={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},li=parseFloat,Kr=parseInt,Lo=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ia=typeof self=="object"&&self&&self.Object===Object&&self,ar=Lo||ia||Function("return this")(),zn=b&&!b.nodeType&&b,Er=zn&&!0&&d&&!d.nodeType&&d,Ln=Er&&Er.exports===zn,Hn=Ln&&Lo.process,Ar=function(){try{var Me=Er&&Er.require&&Er.require("util").types;return Me||Hn&&Hn.binding&&Hn.binding("util")}catch(Xe){}}(),ci=Ar&&Ar.isArrayBuffer,ui=Ar&&Ar.isDate,di=Ar&&Ar.isMap,Vn=Ar&&Ar.isRegExp,fi=Ar&&Ar.isSet,hi=Ar&&Ar.isTypedArray;function wr(Me,Xe,je){switch(je.length){case 0:return Me.call(Xe);case 1:return Me.call(Xe,je[0]);case 2:return Me.call(Xe,je[0],je[1]);case 3:return Me.call(Xe,je[0],je[1],je[2])}return Me.apply(Xe,je)}function ae(Me,Xe,je,wt){for(var Rt=-1,qt=Me==null?0:Me.length;++Rt<qt;){var ur=Me[Rt];Xe(wt,ur,je(ur),Me)}return wt}function Se(Me,Xe){for(var je=-1,wt=Me==null?0:Me.length;++je<wt&&Xe(Me[je],je,Me)!==!1;);return Me}function Ge(Me,Xe){for(var je=Me==null?0:Me.length;je--&&Xe(Me[je],je,Me)!==!1;);return Me}function st(Me,Xe){for(var je=-1,wt=Me==null?0:Me.length;++je<wt;)if(!Xe(Me[je],je,Me))return!1;return!0}function Pt(Me,Xe){for(var je=-1,wt=Me==null?0:Me.length,Rt=0,qt=[];++je<wt;){var ur=Me[je];Xe(ur,je,Me)&&(qt[Rt++]=ur)}return qt}function xt(Me,Xe){var je=Me==null?0:Me.length;return!!je&&$r(Me,Xe,0)>-1}function Qt(Me,Xe,je){for(var wt=-1,Rt=Me==null?0:Me.length;++wt<Rt;)if(je(Xe,Me[wt]))return!0;return!1}function Bt(Me,Xe){for(var je=-1,wt=Me==null?0:Me.length,Rt=Array(wt);++je<wt;)Rt[je]=Xe(Me[je],je,Me);return Rt}function Yt(Me,Xe){for(var je=-1,wt=Xe.length,Rt=Me.length;++je<wt;)Me[Rt+je]=Xe[je];return Me}function or(Me,Xe,je,wt){var Rt=-1,qt=Me==null?0:Me.length;for(wt&&qt&&(je=Me[++Rt]);++Rt<qt;)je=Xe(je,Me[Rt],Rt,Me);return je}function gr(Me,Xe,je,wt){var Rt=Me==null?0:Me.length;for(wt&&Rt&&(je=Me[--Rt]);Rt--;)je=Xe(je,Me[Rt],Rt,Me);return je}function hr(Me,Xe){for(var je=-1,wt=Me==null?0:Me.length;++je<wt;)if(Xe(Me[je],je,Me))return!0;return!1}var cr=aa("length");function Tr(Me){return Me.split("")}function Pr(Me){return Me.match(tr)||[]}function Yr(Me,Xe,je){var wt;return je(Me,function(Rt,qt,ur){if(Xe(Rt,qt,ur))return wt=qt,!1}),wt}function Br(Me,Xe,je,wt){for(var Rt=Me.length,qt=je+(wt?1:-1);wt?qt--:++qt<Rt;)if(Xe(Me[qt],qt,Me))return qt;return-1}function $r(Me,Xe,je){return Xe===Xe?hc(Me,Xe,je):Br(Me,Un,je)}function pi(Me,Xe,je,wt){for(var Rt=je-1,qt=Me.length;++Rt<qt;)if(wt(Me[Rt],Xe))return Rt;return-1}function Un(Me){return Me!==Me}function jn(Me,Xe){var je=Me==null?0:Me.length;return je?la(Me,Xe)/je:we}function aa(Me){return function(Xe){return Xe==null?A:Xe[Me]}}function sa(Me){return function(Xe){return Me==null?A:Me[Xe]}}function ss(Me,Xe,je,wt,Rt){return Rt(Me,function(qt,ur,rr){je=wt?(wt=!1,qt):Xe(je,qt,ur,rr)}),je}function nc(Me,Xe){var je=Me.length;for(Me.sort(Xe);je--;)Me[je]=Me[je].value;return Me}function la(Me,Xe){for(var je,wt=-1,Rt=Me.length;++wt<Rt;){var qt=Xe(Me[wt]);qt!==A&&(je=je===A?qt:je+qt)}return je}function ca(Me,Xe){for(var je=-1,wt=Array(Me);++je<Me;)wt[je]=Xe(je);return wt}function oc(Me,Xe){return Bt(Xe,function(je){return[je,Me[je]]})}function ls(Me){return Me&&Me.slice(0,fs(Me)+1).replace(Ue,"")}function Rr(Me){return function(Xe){return Me(Xe)}}function ua(Me,Xe){return Bt(Xe,function(je){return Me[je]})}function Ho(Me,Xe){return Me.has(Xe)}function cs(Me,Xe){for(var je=-1,wt=Me.length;++je<wt&&$r(Xe,Me[je],0)>-1;);return je}function us(Me,Xe){for(var je=Me.length;je--&&$r(Xe,Me[je],0)>-1;);return je}function ic(Me,Xe){for(var je=Me.length,wt=0;je--;)Me[je]===Xe&&++wt;return wt}var ac=sa(go),sc=sa(un);function lc(Me){return"\\"+si[Me]}function cc(Me,Xe){return Me==null?A:Me[Xe]}function vo(Me){return ra.test(Me)}function uc(Me){return na.test(Me)}function dc(Me){for(var Xe,je=[];!(Xe=Me.next()).done;)je.push(Xe.value);return je}function da(Me){var Xe=-1,je=Array(Me.size);return Me.forEach(function(wt,Rt){je[++Xe]=[Rt,wt]}),je}function ds(Me,Xe){return function(je){return Me(Xe(je))}}function En(Me,Xe){for(var je=-1,wt=Me.length,Rt=0,qt=[];++je<wt;){var ur=Me[je];(ur===Xe||ur===k)&&(Me[je]=k,qt[Rt++]=je)}return qt}function gi(Me){var Xe=-1,je=Array(Me.size);return Me.forEach(function(wt){je[++Xe]=wt}),je}function fc(Me){var Xe=-1,je=Array(Me.size);return Me.forEach(function(wt){je[++Xe]=[wt,wt]}),je}function hc(Me,Xe,je){for(var wt=je-1,Rt=Me.length;++wt<Rt;)if(Me[wt]===Xe)return wt;return-1}function pc(Me,Xe,je){for(var wt=je+1;wt--;)if(Me[wt]===Xe)return wt;return wt}function mo(Me){return vo(Me)?vc(Me):cr(Me)}function qr(Me){return vo(Me)?mc(Me):Tr(Me)}function fs(Me){for(var Xe=Me.length;Xe--&&ct.test(Me.charAt(Xe)););return Xe}var gc=sa(zo);function vc(Me){for(var Xe=ho.lastIndex=0;ho.test(Me);)++Xe;return Xe}function mc(Me){return Me.match(ho)||[]}function bc(Me){return Me.match(po)||[]}var yc=function Me(Xe){Xe=Xe==null?ar:bo.defaults(ar.Object(),Xe,bo.pick(ar,oa));var je=Xe.Array,wt=Xe.Date,Rt=Xe.Error,qt=Xe.Function,ur=Xe.Math,rr=Xe.Object,fa=Xe.RegExp,Ac=Xe.String,Vr=Xe.TypeError,vi=je.prototype,wc=qt.prototype,yo=rr.prototype,mi=Xe["__core-js_shared__"],bi=wc.toString,Jt=yo.hasOwnProperty,Cc=0,hs=function(){var M=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),yi=yo.toString,xc=bi.call(rr),Sc=ar._,_c=fa("^"+bi.call(Jt).replace(Mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ai=Ln?Xe.Buffer:A,Tn=Xe.Symbol,wi=Xe.Uint8Array,ps=Ai?Ai.allocUnsafe:A,Ci=ds(rr.getPrototypeOf,rr),gs=rr.create,vs=yo.propertyIsEnumerable,xi=vi.splice,ms=Tn?Tn.isConcatSpreadable:A,Vo=Tn?Tn.iterator:A,Qn=Tn?Tn.toStringTag:A,Si=function(){try{var M=qn(rr,"defineProperty");return M({},"",{}),M}catch(R){}}(),Ec=Xe.clearTimeout!==ar.clearTimeout&&Xe.clearTimeout,Tc=wt&&wt.now!==ar.Date.now&&wt.now,Pc=Xe.setTimeout!==ar.setTimeout&&Xe.setTimeout,_i=ur.ceil,Ei=ur.floor,ha=rr.getOwnPropertySymbols,Bc=Ai?Ai.isBuffer:A,bs=Xe.isFinite,$c=vi.join,kc=ds(rr.keys,rr),dr=ur.max,mr=ur.min,Ic=wt.now,Mc=Xe.parseInt,ys=ur.random,Nc=vi.reverse,pa=qn(Xe,"DataView"),Uo=qn(Xe,"Map"),ga=qn(Xe,"Promise"),Ao=qn(Xe,"Set"),jo=qn(Xe,"WeakMap"),Qo=qn(rr,"create"),Ti=jo&&new jo,wo={},Dc=Xn(pa),Oc=Xn(Uo),Rc=Xn(ga),Fc=Xn(Ao),zc=Xn(jo),Pi=Tn?Tn.prototype:A,Go=Pi?Pi.valueOf:A,As=Pi?Pi.toString:A;function ue(M){if(ir(M)&&!Ft(M)&&!(M instanceof Gt)){if(M instanceof Ur)return M;if(Jt.call(M,"__wrapped__"))return Cl(M)}return new Ur(M)}var Co=function(){function M(){}return function(R){if(!nr(R))return{};if(gs)return gs(R);M.prototype=R;var V=new M;return M.prototype=A,V}}();function Bi(){}function Ur(M,R){this.__wrapped__=M,this.__actions__=[],this.__chain__=!!R,this.__index__=0,this.__values__=A}ue.templateSettings={escape:Ve,evaluate:We,interpolate:ht,variable:"",imports:{_:ue}},ue.prototype=Bi.prototype,ue.prototype.constructor=ue,Ur.prototype=Co(Bi.prototype),Ur.prototype.constructor=Ur;function Gt(M){this.__wrapped__=M,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Fe,this.__views__=[]}function Lc(){var M=new Gt(this.__wrapped__);return M.__actions__=kr(this.__actions__),M.__dir__=this.__dir__,M.__filtered__=this.__filtered__,M.__iteratees__=kr(this.__iteratees__),M.__takeCount__=this.__takeCount__,M.__views__=kr(this.__views__),M}function Hc(){if(this.__filtered__){var M=new Gt(this);M.__dir__=-1,M.__filtered__=!0}else M=this.clone(),M.__dir__*=-1;return M}function Vc(){var M=this.__wrapped__.value(),R=this.__dir__,V=Ft(M),q=R<0,te=V?M.length:0,pe=ed(0,te,this.__views__),_e=pe.start,Be=pe.end,De=Be-_e,Ze=q?Be:_e-1,et=this.__iteratees__,ot=et.length,gt=0,St=mr(De,this.__takeCount__);if(!V||!q&&te==De&&St==De)return js(M,this.__actions__);var kt=[];e:for(;De--&&gt<St;){Ze+=R;for(var Ht=-1,It=M[Ze];++Ht<ot;){var jt=et[Ht],Wt=jt.iteratee,Lr=jt.type,Sr=Wt(It);if(Lr==me)It=Sr;else if(!Sr){if(Lr==de)continue e;break e}}kt[gt++]=It}return kt}Gt.prototype=Co(Bi.prototype),Gt.prototype.constructor=Gt;function Gn(M){var R=-1,V=M==null?0:M.length;for(this.clear();++R<V;){var q=M[R];this.set(q[0],q[1])}}function Uc(){this.__data__=Qo?Qo(null):{},this.size=0}function jc(M){var R=this.has(M)&&delete this.__data__[M];return this.size-=R?1:0,R}function Qc(M){var R=this.__data__;if(Qo){var V=R[M];return V===P?A:V}return Jt.call(R,M)?R[M]:A}function Gc(M){var R=this.__data__;return Qo?R[M]!==A:Jt.call(R,M)}function Wc(M,R){var V=this.__data__;return this.size+=this.has(M)?0:1,V[M]=Qo&&R===A?P:R,this}Gn.prototype.clear=Uc,Gn.prototype.delete=jc,Gn.prototype.get=Qc,Gn.prototype.has=Gc,Gn.prototype.set=Wc;function dn(M){var R=-1,V=M==null?0:M.length;for(this.clear();++R<V;){var q=M[R];this.set(q[0],q[1])}}function Kc(){this.__data__=[],this.size=0}function Yc(M){var R=this.__data__,V=$i(R,M);if(V<0)return!1;var q=R.length-1;return V==q?R.pop():xi.call(R,V,1),--this.size,!0}function qc(M){var R=this.__data__,V=$i(R,M);return V<0?A:R[V][1]}function Xc(M){return $i(this.__data__,M)>-1}function Jc(M,R){var V=this.__data__,q=$i(V,M);return q<0?(++this.size,V.push([M,R])):V[q][1]=R,this}dn.prototype.clear=Kc,dn.prototype.delete=Yc,dn.prototype.get=qc,dn.prototype.has=Xc,dn.prototype.set=Jc;function fn(M){var R=-1,V=M==null?0:M.length;for(this.clear();++R<V;){var q=M[R];this.set(q[0],q[1])}}function Zc(){this.size=0,this.__data__={hash:new Gn,map:new(Uo||dn),string:new Gn}}function eu(M){var R=Vi(this,M).delete(M);return this.size-=R?1:0,R}function tu(M){return Vi(this,M).get(M)}function ru(M){return Vi(this,M).has(M)}function nu(M,R){var V=Vi(this,M),q=V.size;return V.set(M,R),this.size+=V.size==q?0:1,this}fn.prototype.clear=Zc,fn.prototype.delete=eu,fn.prototype.get=tu,fn.prototype.has=ru,fn.prototype.set=nu;function Wn(M){var R=-1,V=M==null?0:M.length;for(this.__data__=new fn;++R<V;)this.add(M[R])}function ou(M){return this.__data__.set(M,P),this}function iu(M){return this.__data__.has(M)}Wn.prototype.add=Wn.prototype.push=ou,Wn.prototype.has=iu;function Xr(M){var R=this.__data__=new dn(M);this.size=R.size}function au(){this.__data__=new dn,this.size=0}function su(M){var R=this.__data__,V=R.delete(M);return this.size=R.size,V}function lu(M){return this.__data__.get(M)}function cu(M){return this.__data__.has(M)}function uu(M,R){var V=this.__data__;if(V instanceof dn){var q=V.__data__;if(!Uo||q.length<C-1)return q.push([M,R]),this.size=++V.size,this;V=this.__data__=new fn(q)}return V.set(M,R),this.size=V.size,this}Xr.prototype.clear=au,Xr.prototype.delete=su,Xr.prototype.get=lu,Xr.prototype.has=cu,Xr.prototype.set=uu;function ws(M,R){var V=Ft(M),q=!V&&Jn(M),te=!V&&!q&&In(M),pe=!V&&!q&&!te&&Eo(M),_e=V||q||te||pe,Be=_e?ca(M.length,Ac):[],De=Be.length;for(var Ze in M)(R||Jt.call(M,Ze))&&!(_e&&(Ze=="length"||te&&(Ze=="offset"||Ze=="parent")||pe&&(Ze=="buffer"||Ze=="byteLength"||Ze=="byteOffset")||vn(Ze,De)))&&Be.push(Ze);return Be}function Cs(M){var R=M.length;return R?M[Ea(0,R-1)]:A}function du(M,R){return Ui(kr(M),Kn(R,0,M.length))}function fu(M){return Ui(kr(M))}function va(M,R,V){(V!==A&&!Jr(M[R],V)||V===A&&!(R in M))&&hn(M,R,V)}function Wo(M,R,V){var q=M[R];(!(Jt.call(M,R)&&Jr(q,V))||V===A&&!(R in M))&&hn(M,R,V)}function $i(M,R){for(var V=M.length;V--;)if(Jr(M[V][0],R))return V;return-1}function hu(M,R,V,q){return Pn(M,function(te,pe,_e){R(q,te,V(te),_e)}),q}function xs(M,R){return M&&nn(R,pr(R),M)}function pu(M,R){return M&&nn(R,Mr(R),M)}function hn(M,R,V){R=="__proto__"&&Si?Si(M,R,{configurable:!0,enumerable:!0,value:V,writable:!0}):M[R]=V}function ma(M,R){for(var V=-1,q=R.length,te=je(q),pe=M==null;++V<q;)te[V]=pe?A:Xa(M,R[V]);return te}function Kn(M,R,V){return M===M&&(V!==A&&(M=M<=V?M:V),R!==A&&(M=M>=R?M:R)),M}function jr(M,R,V,q,te,pe){var _e,Be=R&$,De=R&I,Ze=R&D;if(V&&(_e=te?V(M,q,te,pe):V(M)),_e!==A)return _e;if(!nr(M))return M;var et=Ft(M);if(et){if(_e=rd(M),!Be)return kr(M,_e)}else{var ot=br(M),gt=ot==ve||ot==ye;if(In(M))return Ws(M,Be);if(ot==ie||ot==dt||gt&&!te){if(_e=De||gt?{}:hl(M),!Be)return De?Qu(M,pu(_e,M)):ju(M,xs(_e,M))}else{if(!er[ot])return te?M:{};_e=nd(M,ot,Be)}}pe||(pe=new Xr);var St=pe.get(M);if(St)return St;pe.set(M,_e),Vl(M)?M.forEach(function(It){_e.add(jr(It,R,V,It,M,pe))}):Ll(M)&&M.forEach(function(It,jt){_e.set(jt,jr(It,R,V,jt,M,pe))});var kt=Ze?De?Ra:Oa:De?Mr:pr,Ht=et?A:kt(M);return Se(Ht||M,function(It,jt){Ht&&(jt=It,It=M[jt]),Wo(_e,jt,jr(It,R,V,jt,M,pe))}),_e}function gu(M){var R=pr(M);return function(V){return Ss(V,M,R)}}function Ss(M,R,V){var q=V.length;if(M==null)return!q;for(M=rr(M);q--;){var te=V[q],pe=R[te],_e=M[te];if(_e===A&&!(te in M)||!pe(_e))return!1}return!0}function _s(M,R,V){if(typeof M!="function")throw new Vr(S);return ei(function(){M.apply(A,V)},R)}function Ko(M,R,V,q){var te=-1,pe=xt,_e=!0,Be=M.length,De=[],Ze=R.length;if(!Be)return De;V&&(R=Bt(R,Rr(V))),q?(pe=Qt,_e=!1):R.length>=C&&(pe=Ho,_e=!1,R=new Wn(R));e:for(;++te<Be;){var et=M[te],ot=V==null?et:V(et);if(et=q||et!==0?et:0,_e&&ot===ot){for(var gt=Ze;gt--;)if(R[gt]===ot)continue e;De.push(et)}else pe(R,ot,q)||De.push(et)}return De}var Pn=Js(rn),Es=Js(ya,!0);function vu(M,R){var V=!0;return Pn(M,function(q,te,pe){return V=!!R(q,te,pe),V}),V}function ki(M,R,V){for(var q=-1,te=M.length;++q<te;){var pe=M[q],_e=R(pe);if(_e!=null&&(Be===A?_e===_e&&!zr(_e):V(_e,Be)))var Be=_e,De=pe}return De}function mu(M,R,V,q){var te=M.length;for(V=Lt(V),V<0&&(V=-V>te?0:te+V),q=q===A||q>te?te:Lt(q),q<0&&(q+=te),q=V>q?0:jl(q);V<q;)M[V++]=R;return M}function Ts(M,R){var V=[];return Pn(M,function(q,te,pe){R(q,te,pe)&&V.push(q)}),V}function vr(M,R,V,q,te){var pe=-1,_e=M.length;for(V||(V=ad),te||(te=[]);++pe<_e;){var Be=M[pe];R>0&&V(Be)?R>1?vr(Be,R-1,V,q,te):Yt(te,Be):q||(te[te.length]=Be)}return te}var ba=Zs(),Ps=Zs(!0);function rn(M,R){return M&&ba(M,R,pr)}function ya(M,R){return M&&Ps(M,R,pr)}function Ii(M,R){return Pt(R,function(V){return mn(M[V])})}function Yn(M,R){R=$n(R,M);for(var V=0,q=R.length;M!=null&&V<q;)M=M[an(R[V++])];return V&&V==q?M:A}function Bs(M,R,V){var q=R(M);return Ft(M)?q:Yt(q,V(M))}function Cr(M){return M==null?M===A?Ye:se:Qn&&Qn in rr(M)?Zu(M):hd(M)}function Aa(M,R){return M>R}function bu(M,R){return M!=null&&Jt.call(M,R)}function yu(M,R){return M!=null&&R in rr(M)}function Au(M,R,V){return M>=mr(R,V)&&M<dr(R,V)}function wa(M,R,V){for(var q=V?Qt:xt,te=M[0].length,pe=M.length,_e=pe,Be=je(pe),De=1/0,Ze=[];_e--;){var et=M[_e];_e&&R&&(et=Bt(et,Rr(R))),De=mr(et.length,De),Be[_e]=!V&&(R||te>=120&&et.length>=120)?new Wn(_e&&et):A}et=M[0];var ot=-1,gt=Be[0];e:for(;++ot<te&&Ze.length<De;){var St=et[ot],kt=R?R(St):St;if(St=V||St!==0?St:0,!(gt?Ho(gt,kt):q(Ze,kt,V))){for(_e=pe;--_e;){var Ht=Be[_e];if(!(Ht?Ho(Ht,kt):q(M[_e],kt,V)))continue e}gt&&gt.push(kt),Ze.push(St)}}return Ze}function wu(M,R,V,q){return rn(M,function(te,pe,_e){R(q,V(te),pe,_e)}),q}function Yo(M,R,V){R=$n(R,M),M=ml(M,R);var q=M==null?M:M[an(Gr(R))];return q==null?A:wr(q,M,V)}function $s(M){return ir(M)&&Cr(M)==dt}function Cu(M){return ir(M)&&Cr(M)==pt}function xu(M){return ir(M)&&Cr(M)==Oe}function qo(M,R,V,q,te){return M===R?!0:M==null||R==null||!ir(M)&&!ir(R)?M!==M&&R!==R:Su(M,R,V,q,qo,te)}function Su(M,R,V,q,te,pe){var _e=Ft(M),Be=Ft(R),De=_e?it:br(M),Ze=Be?it:br(R);De=De==dt?ie:De,Ze=Ze==dt?ie:Ze;var et=De==ie,ot=Ze==ie,gt=De==Ze;if(gt&&In(M)){if(!In(R))return!1;_e=!0,et=!1}if(gt&&!et)return pe||(pe=new Xr),_e||Eo(M)?ul(M,R,V,q,te,pe):Xu(M,R,De,V,q,te,pe);if(!(V&F)){var St=et&&Jt.call(M,"__wrapped__"),kt=ot&&Jt.call(R,"__wrapped__");if(St||kt){var Ht=St?M.value():M,It=kt?R.value():R;return pe||(pe=new Xr),te(Ht,It,V,q,pe)}}return gt?(pe||(pe=new Xr),Ju(M,R,V,q,te,pe)):!1}function _u(M){return ir(M)&&br(M)==Te}function Ca(M,R,V,q){var te=V.length,pe=te,_e=!q;if(M==null)return!pe;for(M=rr(M);te--;){var Be=V[te];if(_e&&Be[2]?Be[1]!==M[Be[0]]:!(Be[0]in M))return!1}for(;++te<pe;){Be=V[te];var De=Be[0],Ze=M[De],et=Be[1];if(_e&&Be[2]){if(Ze===A&&!(De in M))return!1}else{var ot=new Xr;if(q)var gt=q(Ze,et,De,M,R,ot);if(!(gt===A?qo(et,Ze,F|z,q,ot):gt))return!1}}return!0}function ks(M){if(!nr(M)||ld(M))return!1;var R=mn(M)?_c:Mn;return R.test(Xn(M))}function Eu(M){return ir(M)&&Cr(M)==Ce}function Tu(M){return ir(M)&&br(M)==ge}function Pu(M){return ir(M)&&Yi(M.length)&&!!Zt[Cr(M)]}function Is(M){return typeof M=="function"?M:M==null?Nr:typeof M=="object"?Ft(M)?Ds(M[0],M[1]):Ns(M):tc(M)}function xa(M){if(!Zo(M))return kc(M);var R=[];for(var V in rr(M))Jt.call(M,V)&&V!="constructor"&&R.push(V);return R}function Bu(M){if(!nr(M))return fd(M);var R=Zo(M),V=[];for(var q in M)q=="constructor"&&(R||!Jt.call(M,q))||V.push(q);return V}function Sa(M,R){return M<R}function Ms(M,R){var V=-1,q=Ir(M)?je(M.length):[];return Pn(M,function(te,pe,_e){q[++V]=R(te,pe,_e)}),q}function Ns(M){var R=za(M);return R.length==1&&R[0][2]?gl(R[0][0],R[0][1]):function(V){return V===M||Ca(V,M,R)}}function Ds(M,R){return Ha(M)&&pl(R)?gl(an(M),R):function(V){var q=Xa(V,M);return q===A&&q===R?Ja(V,M):qo(R,q,F|z)}}function Mi(M,R,V,q,te){M!==R&&ba(R,function(pe,_e){if(te||(te=new Xr),nr(pe))$u(M,R,_e,V,Mi,q,te);else{var Be=q?q(Ua(M,_e),pe,_e+"",M,R,te):A;Be===A&&(Be=pe),va(M,_e,Be)}},Mr)}function $u(M,R,V,q,te,pe,_e){var Be=Ua(M,V),De=Ua(R,V),Ze=_e.get(De);if(Ze){va(M,V,Ze);return}var et=pe?pe(Be,De,V+"",M,R,_e):A,ot=et===A;if(ot){var gt=Ft(De),St=!gt&&In(De),kt=!gt&&!St&&Eo(De);et=De,gt||St||kt?Ft(Be)?et=Be:sr(Be)?et=kr(Be):St?(ot=!1,et=Ws(De,!0)):kt?(ot=!1,et=Ks(De,!0)):et=[]:ti(De)||Jn(De)?(et=Be,Jn(Be)?et=Ql(Be):(!nr(Be)||mn(Be))&&(et=hl(De))):ot=!1}ot&&(_e.set(De,et),te(et,De,q,pe,_e),_e.delete(De)),va(M,V,et)}function Os(M,R){var V=M.length;if(V)return R+=R<0?V:0,vn(R,V)?M[R]:A}function Rs(M,R,V){R.length?R=Bt(R,function(pe){return Ft(pe)?function(_e){return Yn(_e,pe.length===1?pe[0]:pe)}:pe}):R=[Nr];var q=-1;R=Bt(R,Rr($t()));var te=Ms(M,function(pe,_e,Be){var De=Bt(R,function(Ze){return Ze(pe)});return{criteria:De,index:++q,value:pe}});return nc(te,function(pe,_e){return Uu(pe,_e,V)})}function ku(M,R){return Fs(M,R,function(V,q){return Ja(M,q)})}function Fs(M,R,V){for(var q=-1,te=R.length,pe={};++q<te;){var _e=R[q],Be=Yn(M,_e);V(Be,_e)&&Xo(pe,$n(_e,M),Be)}return pe}function Iu(M){return function(R){return Yn(R,M)}}function _a(M,R,V,q){var te=q?pi:$r,pe=-1,_e=R.length,Be=M;for(M===R&&(R=kr(R)),V&&(Be=Bt(M,Rr(V)));++pe<_e;)for(var De=0,Ze=R[pe],et=V?V(Ze):Ze;(De=te(Be,et,De,q))>-1;)Be!==M&&xi.call(Be,De,1),xi.call(M,De,1);return M}function zs(M,R){for(var V=M?R.length:0,q=V-1;V--;){var te=R[V];if(V==q||te!==pe){var pe=te;vn(te)?xi.call(M,te,1):Ba(M,te)}}return M}function Ea(M,R){return M+Ei(ys()*(R-M+1))}function Mu(M,R,V,q){for(var te=-1,pe=dr(_i((R-M)/(V||1)),0),_e=je(pe);pe--;)_e[q?pe:++te]=M,M+=V;return _e}function Ta(M,R){var V="";if(!M||R<1||R>fe)return V;do R%2&&(V+=M),R=Ei(R/2),R&&(M+=M);while(R);return V}function Ut(M,R){return ja(vl(M,R,Nr),M+"")}function Nu(M){return Cs(To(M))}function Du(M,R){var V=To(M);return Ui(V,Kn(R,0,V.length))}function Xo(M,R,V,q){if(!nr(M))return M;R=$n(R,M);for(var te=-1,pe=R.length,_e=pe-1,Be=M;Be!=null&&++te<pe;){var De=an(R[te]),Ze=V;if(De==="__proto__"||De==="constructor"||De==="prototype")return M;if(te!=_e){var et=Be[De];Ze=q?q(et,De,Be):A,Ze===A&&(Ze=nr(et)?et:vn(R[te+1])?[]:{})}Wo(Be,De,Ze),Be=Be[De]}return M}var Ls=Ti?function(M,R){return Ti.set(M,R),M}:Nr,Ou=Si?function(M,R){return Si(M,"toString",{configurable:!0,enumerable:!1,value:es(R),writable:!0})}:Nr;function Ru(M){return Ui(To(M))}function Qr(M,R,V){var q=-1,te=M.length;R<0&&(R=-R>te?0:te+R),V=V>te?te:V,V<0&&(V+=te),te=R>V?0:V-R>>>0,R>>>=0;for(var pe=je(te);++q<te;)pe[q]=M[q+R];return pe}function Fu(M,R){var V;return Pn(M,function(q,te,pe){return V=R(q,te,pe),!V}),!!V}function Ni(M,R,V){var q=0,te=M==null?q:M.length;if(typeof R=="number"&&R===R&&te<=tt){for(;q<te;){var pe=q+te>>>1,_e=M[pe];_e!==null&&!zr(_e)&&(V?_e<=R:_e<R)?q=pe+1:te=pe}return te}return Pa(M,R,Nr,V)}function Pa(M,R,V,q){var te=0,pe=M==null?0:M.length;if(pe===0)return 0;R=V(R);for(var _e=R!==R,Be=R===null,De=zr(R),Ze=R===A;te<pe;){var et=Ei((te+pe)/2),ot=V(M[et]),gt=ot!==A,St=ot===null,kt=ot===ot,Ht=zr(ot);if(_e)var It=q||kt;else Ze?It=kt&&(q||gt):Be?It=kt&&gt&&(q||!St):De?It=kt&&gt&&!St&&(q||!Ht):St||Ht?It=!1:It=q?ot<=R:ot<R;It?te=et+1:pe=et}return mr(pe,Ke)}function Hs(M,R){for(var V=-1,q=M.length,te=0,pe=[];++V<q;){var _e=M[V],Be=R?R(_e):_e;if(!V||!Jr(Be,De)){var De=Be;pe[te++]=_e===0?0:_e}}return pe}function Vs(M){return typeof M=="number"?M:zr(M)?we:+M}function Fr(M){if(typeof M=="string")return M;if(Ft(M))return Bt(M,Fr)+"";if(zr(M))return As?As.call(M):"";var R=M+"";return R=="0"&&1/M==-re?"-0":R}function Bn(M,R,V){var q=-1,te=xt,pe=M.length,_e=!0,Be=[],De=Be;if(V)_e=!1,te=Qt;else if(pe>=C){var Ze=R?null:Yu(M);if(Ze)return gi(Ze);_e=!1,te=Ho,De=new Wn}else De=R?[]:Be;e:for(;++q<pe;){var et=M[q],ot=R?R(et):et;if(et=V||et!==0?et:0,_e&&ot===ot){for(var gt=De.length;gt--;)if(De[gt]===ot)continue e;R&&De.push(ot),Be.push(et)}else te(De,ot,V)||(De!==Be&&De.push(ot),Be.push(et))}return Be}function Ba(M,R){return R=$n(R,M),M=ml(M,R),M==null||delete M[an(Gr(R))]}function Us(M,R,V,q){return Xo(M,R,V(Yn(M,R)),q)}function Di(M,R,V,q){for(var te=M.length,pe=q?te:-1;(q?pe--:++pe<te)&&R(M[pe],pe,M););return V?Qr(M,q?0:pe,q?pe+1:te):Qr(M,q?pe+1:0,q?te:pe)}function js(M,R){var V=M;return V instanceof Gt&&(V=V.value()),or(R,function(q,te){return te.func.apply(te.thisArg,Yt([q],te.args))},V)}function $a(M,R,V){var q=M.length;if(q<2)return q?Bn(M[0]):[];for(var te=-1,pe=je(q);++te<q;)for(var _e=M[te],Be=-1;++Be<q;)Be!=te&&(pe[te]=Ko(pe[te]||_e,M[Be],R,V));return Bn(vr(pe,1),R,V)}function Qs(M,R,V){for(var q=-1,te=M.length,pe=R.length,_e={};++q<te;){var Be=q<pe?R[q]:A;V(_e,M[q],Be)}return _e}function ka(M){return sr(M)?M:[]}function Ia(M){return typeof M=="function"?M:Nr}function $n(M,R){return Ft(M)?M:Ha(M,R)?[M]:wl(Xt(M))}var zu=Ut;function kn(M,R,V){var q=M.length;return V=V===A?q:V,!R&&V>=q?M:Qr(M,R,V)}var Gs=Ec||function(M){return ar.clearTimeout(M)};function Ws(M,R){if(R)return M.slice();var V=M.length,q=ps?ps(V):new M.constructor(V);return M.copy(q),q}function Ma(M){var R=new M.constructor(M.byteLength);return new wi(R).set(new wi(M)),R}function Lu(M,R){var V=R?Ma(M.buffer):M.buffer;return new M.constructor(V,M.byteOffset,M.byteLength)}function Hu(M){var R=new M.constructor(M.source,_r.exec(M));return R.lastIndex=M.lastIndex,R}function Vu(M){return Go?rr(Go.call(M)):{}}function Ks(M,R){var V=R?Ma(M.buffer):M.buffer;return new M.constructor(V,M.byteOffset,M.length)}function Ys(M,R){if(M!==R){var V=M!==A,q=M===null,te=M===M,pe=zr(M),_e=R!==A,Be=R===null,De=R===R,Ze=zr(R);if(!Be&&!Ze&&!pe&&M>R||pe&&_e&&De&&!Be&&!Ze||q&&_e&&De||!V&&De||!te)return 1;if(!q&&!pe&&!Ze&&M<R||Ze&&V&&te&&!q&&!pe||Be&&V&&te||!_e&&te||!De)return-1}return 0}function Uu(M,R,V){for(var q=-1,te=M.criteria,pe=R.criteria,_e=te.length,Be=V.length;++q<_e;){var De=Ys(te[q],pe[q]);if(De){if(q>=Be)return De;var Ze=V[q];return De*(Ze=="desc"?-1:1)}}return M.index-R.index}function qs(M,R,V,q){for(var te=-1,pe=M.length,_e=V.length,Be=-1,De=R.length,Ze=dr(pe-_e,0),et=je(De+Ze),ot=!q;++Be<De;)et[Be]=R[Be];for(;++te<_e;)(ot||te<pe)&&(et[V[te]]=M[te]);for(;Ze--;)et[Be++]=M[te++];return et}function Xs(M,R,V,q){for(var te=-1,pe=M.length,_e=-1,Be=V.length,De=-1,Ze=R.length,et=dr(pe-Be,0),ot=je(et+Ze),gt=!q;++te<et;)ot[te]=M[te];for(var St=te;++De<Ze;)ot[St+De]=R[De];for(;++_e<Be;)(gt||te<pe)&&(ot[St+V[_e]]=M[te++]);return ot}function kr(M,R){var V=-1,q=M.length;for(R||(R=je(q));++V<q;)R[V]=M[V];return R}function nn(M,R,V,q){var te=!V;V||(V={});for(var pe=-1,_e=R.length;++pe<_e;){var Be=R[pe],De=q?q(V[Be],M[Be],Be,V,M):A;De===A&&(De=M[Be]),te?hn(V,Be,De):Wo(V,Be,De)}return V}function ju(M,R){return nn(M,La(M),R)}function Qu(M,R){return nn(M,dl(M),R)}function Oi(M,R){return function(V,q){var te=Ft(V)?ae:hu,pe=R?R():{};return te(V,M,$t(q,2),pe)}}function xo(M){return Ut(function(R,V){var q=-1,te=V.length,pe=te>1?V[te-1]:A,_e=te>2?V[2]:A;for(pe=M.length>3&&typeof pe=="function"?(te--,pe):A,_e&&xr(V[0],V[1],_e)&&(pe=te<3?A:pe,te=1),R=rr(R);++q<te;){var Be=V[q];Be&&M(R,Be,q,pe)}return R})}function Js(M,R){return function(V,q){if(V==null)return V;if(!Ir(V))return M(V,q);for(var te=V.length,pe=R?te:-1,_e=rr(V);(R?pe--:++pe<te)&&q(_e[pe],pe,_e)!==!1;);return V}}function Zs(M){return function(R,V,q){for(var te=-1,pe=rr(R),_e=q(R),Be=_e.length;Be--;){var De=_e[M?Be:++te];if(V(pe[De],De,pe)===!1)break}return R}}function Gu(M,R,V){var q=R&L,te=Jo(M);function pe(){var _e=this&&this!==ar&&this instanceof pe?te:M;return _e.apply(q?V:this,arguments)}return pe}function tl(M){return function(R){R=Xt(R);var V=vo(R)?qr(R):A,q=V?V[0]:R.charAt(0),te=V?kn(V,1).join(""):R.slice(1);return q[M]()+te}}function So(M){return function(R){return or(Zl(Jl(R).replace(tn,"")),M,"")}}function Jo(M){return function(){var R=arguments;switch(R.length){case 0:return new M;case 1:return new M(R[0]);case 2:return new M(R[0],R[1]);case 3:return new M(R[0],R[1],R[2]);case 4:return new M(R[0],R[1],R[2],R[3]);case 5:return new M(R[0],R[1],R[2],R[3],R[4]);case 6:return new M(R[0],R[1],R[2],R[3],R[4],R[5]);case 7:return new M(R[0],R[1],R[2],R[3],R[4],R[5],R[6])}var V=Co(M.prototype),q=M.apply(V,R);return nr(q)?q:V}}function Wu(M,R,V){var q=Jo(M);function te(){for(var pe=arguments.length,_e=je(pe),Be=pe,De=_o(te);Be--;)_e[Be]=arguments[Be];var Ze=pe<3&&_e[0]!==De&&_e[pe-1]!==De?[]:En(_e,De);if(pe-=Ze.length,pe<V)return al(M,R,Ri,te.placeholder,A,_e,Ze,A,A,V-pe);var et=this&&this!==ar&&this instanceof te?q:M;return wr(et,this,_e)}return te}function rl(M){return function(R,V,q){var te=rr(R);if(!Ir(R)){var pe=$t(V,3);R=pr(R),V=function(Be){return pe(te[Be],Be,te)}}var _e=M(R,V,q);return _e>-1?te[pe?R[_e]:_e]:A}}function nl(M){return gn(function(R){var V=R.length,q=V,te=Ur.prototype.thru;for(M&&R.reverse();q--;){var pe=R[q];if(typeof pe!="function")throw new Vr(S);if(te&&!_e&&Hi(pe)=="wrapper")var _e=new Ur([],!0)}for(q=_e?q:V;++q<V;){pe=R[q];var Be=Hi(pe),De=Be=="wrapper"?Fa(pe):A;De&&Va(De[0])&&De[1]==(K|Y|G|X)&&!De[4].length&&De[9]==1?_e=_e[Hi(De[0])].apply(_e,De[3]):_e=pe.length==1&&Va(pe)?_e[Be]():_e.thru(pe)}return function(){var Ze=arguments,et=Ze[0];if(_e&&Ze.length==1&&Ft(et))return _e.plant(et).value();for(var ot=0,gt=V?R[ot].apply(this,Ze):et;++ot<V;)gt=R[ot].call(this,gt);return gt}})}function Ri(M,R,V,q,te,pe,_e,Be,De,Ze){var et=R&K,ot=R&L,gt=R&H,St=R&(Y|U),kt=R&Z,Ht=gt?A:Jo(M);function It(){for(var jt=arguments.length,Wt=je(jt),Lr=jt;Lr--;)Wt[Lr]=arguments[Lr];if(St)var Sr=_o(It),Hr=ic(Wt,Sr);if(q&&(Wt=qs(Wt,q,te,St)),pe&&(Wt=Xs(Wt,pe,_e,St)),jt-=Hr,St&&jt<Ze){var lr=En(Wt,Sr);return al(M,R,Ri,It.placeholder,V,Wt,lr,Be,De,Ze-jt)}var Zr=ot?V:this,yn=gt?Zr[M]:M;return jt=Wt.length,Be?Wt=pd(Wt,Be):kt&&jt>1&&Wt.reverse(),et&&De<jt&&(Wt.length=De),this&&this!==ar&&this instanceof It&&(yn=Ht||Jo(yn)),yn.apply(Zr,Wt)}return It}function ol(M,R){return function(V,q){return wu(V,M,R(q),{})}}function Fi(M,R){return function(V,q){var te;if(V===A&&q===A)return R;if(V!==A&&(te=V),q!==A){if(te===A)return q;typeof V=="string"||typeof q=="string"?(V=Fr(V),q=Fr(q)):(V=Vs(V),q=Vs(q)),te=M(V,q)}return te}}function Na(M){return gn(function(R){return R=Bt(R,Rr($t())),Ut(function(V){var q=this;return M(R,function(te){return wr(te,q,V)})})})}function zi(M,R){R=R===A?" ":Fr(R);var V=R.length;if(V<2)return V?Ta(R,M):R;var q=Ta(R,_i(M/mo(R)));return vo(R)?kn(qr(q),0,M).join(""):q.slice(0,M)}function Ku(M,R,V,q){var te=R&L,pe=Jo(M);function _e(){for(var Be=-1,De=arguments.length,Ze=-1,et=q.length,ot=je(et+De),gt=this&&this!==ar&&this instanceof _e?pe:M;++Ze<et;)ot[Ze]=q[Ze];for(;De--;)ot[Ze++]=arguments[++Be];return wr(gt,te?V:this,ot)}return _e}function il(M){return function(R,V,q){return q&&typeof q!="number"&&xr(R,V,q)&&(V=q=A),R=bn(R),V===A?(V=R,R=0):V=bn(V),q=q===A?R<V?1:-1:bn(q),Mu(R,V,q,M)}}function Li(M){return function(R,V){return typeof R=="string"&&typeof V=="string"||(R=Wr(R),V=Wr(V)),M(R,V)}}function al(M,R,V,q,te,pe,_e,Be,De,Ze){var et=R&Y,ot=et?_e:A,gt=et?A:_e,St=et?pe:A,kt=et?A:pe;R|=et?G:W,R&=~(et?W:G),R&Q||(R&=~(L|H));var Ht=[M,R,te,St,ot,kt,gt,Be,De,Ze],It=V.apply(A,Ht);return Va(M)&&bl(It,Ht),It.placeholder=q,yl(It,M,R)}function Da(M){var R=ur[M];return function(V,q){if(V=Wr(V),q=q==null?0:mr(Lt(q),292),q&&bs(V)){var te=(Xt(V)+"e").split("e"),pe=R(te[0]+"e"+(+te[1]+q));return te=(Xt(pe)+"e").split("e"),+(te[0]+"e"+(+te[1]-q))}return R(V)}}var Yu=Ao&&1/gi(new Ao([,-0]))[1]==re?function(M){return new Ao(M)}:ns;function sl(M){return function(R){var V=br(R);return V==Te?da(R):V==ge?fc(R):oc(R,M(R))}}function pn(M,R,V,q,te,pe,_e,Be){var De=R&H;if(!De&&typeof M!="function")throw new Vr(S);var Ze=q?q.length:0;if(Ze||(R&=~(G|W),q=te=A),_e=_e===A?_e:dr(Lt(_e),0),Be=Be===A?Be:Lt(Be),Ze-=te?te.length:0,R&W){var et=q,ot=te;q=te=A}var gt=De?A:Fa(M),St=[M,R,V,q,te,et,ot,pe,_e,Be];if(gt&&dd(St,gt),M=St[0],R=St[1],V=St[2],q=St[3],te=St[4],Be=St[9]=St[9]===A?De?0:M.length:dr(St[9]-Ze,0),!Be&&R&(Y|U)&&(R&=~(Y|U)),!R||R==L)var kt=Gu(M,R,V);else R==Y||R==U?kt=Wu(M,R,Be):(R==G||R==(L|G))&&!te.length?kt=Ku(M,R,V,q):kt=Ri.apply(A,St);var Ht=gt?Ls:bl;return yl(Ht(kt,St),M,R)}function ll(M,R,V,q){return M===A||Jr(M,yo[V])&&!Jt.call(q,V)?R:M}function cl(M,R,V,q,te,pe){return nr(M)&&nr(R)&&(pe.set(R,M),Mi(M,R,A,cl,pe),pe.delete(R)),M}function qu(M){return ti(M)?A:M}function ul(M,R,V,q,te,pe){var _e=V&F,Be=M.length,De=R.length;if(Be!=De&&!(_e&&De>Be))return!1;var Ze=pe.get(M),et=pe.get(R);if(Ze&&et)return Ze==R&&et==M;var ot=-1,gt=!0,St=V&z?new Wn:A;for(pe.set(M,R),pe.set(R,M);++ot<Be;){var kt=M[ot],Ht=R[ot];if(q)var It=_e?q(Ht,kt,ot,R,M,pe):q(kt,Ht,ot,M,R,pe);if(It!==A){if(It)continue;gt=!1;break}if(St){if(!hr(R,function(jt,Wt){if(!Ho(St,Wt)&&(kt===jt||te(kt,jt,V,q,pe)))return St.push(Wt)})){gt=!1;break}}else if(!(kt===Ht||te(kt,Ht,V,q,pe))){gt=!1;break}}return pe.delete(M),pe.delete(R),gt}function Xu(M,R,V,q,te,pe,_e){switch(V){case He:if(M.byteLength!=R.byteLength||M.byteOffset!=R.byteOffset)return!1;M=M.buffer,R=R.buffer;case pt:return!(M.byteLength!=R.byteLength||!pe(new wi(M),new wi(R)));case ke:case Oe:case ee:return Jr(+M,+R);case Je:return M.name==R.name&&M.message==R.message;case Ce:case Ie:return M==R+"";case Te:var Be=da;case ge:var De=q&F;if(Be||(Be=gi),M.size!=R.size&&!De)return!1;var Ze=_e.get(M);if(Ze)return Ze==R;q|=z,_e.set(M,R);var et=ul(Be(M),Be(R),q,te,pe,_e);return _e.delete(M),et;case Le:if(Go)return Go.call(M)==Go.call(R)}return!1}function Ju(M,R,V,q,te,pe){var _e=V&F,Be=Oa(M),De=Be.length,Ze=Oa(R),et=Ze.length;if(De!=et&&!_e)return!1;for(var ot=De;ot--;){var gt=Be[ot];if(!(_e?gt in R:Jt.call(R,gt)))return!1}var St=pe.get(M),kt=pe.get(R);if(St&&kt)return St==R&&kt==M;var Ht=!0;pe.set(M,R),pe.set(R,M);for(var It=_e;++ot<De;){gt=Be[ot];var jt=M[gt],Wt=R[gt];if(q)var Lr=_e?q(Wt,jt,gt,R,M,pe):q(jt,Wt,gt,M,R,pe);if(!(Lr===A?jt===Wt||te(jt,Wt,V,q,pe):Lr)){Ht=!1;break}It||(It=gt=="constructor")}if(Ht&&!It){var Sr=M.constructor,Hr=R.constructor;Sr!=Hr&&"constructor"in M&&"constructor"in R&&!(typeof Sr=="function"&&Sr instanceof Sr&&typeof Hr=="function"&&Hr instanceof Hr)&&(Ht=!1)}return pe.delete(M),pe.delete(R),Ht}function gn(M){return ja(vl(M,A,_l),M+"")}function Oa(M){return Bs(M,pr,La)}function Ra(M){return Bs(M,Mr,dl)}var Fa=Ti?function(M){return Ti.get(M)}:ns;function Hi(M){for(var R=M.name+"",V=wo[R],q=Jt.call(wo,R)?V.length:0;q--;){var te=V[q],pe=te.func;if(pe==null||pe==M)return te.name}return R}function _o(M){var R=Jt.call(ue,"placeholder")?ue:M;return R.placeholder}function $t(){var M=ue.iteratee||ts;return M=M===ts?Is:M,arguments.length?M(arguments[0],arguments[1]):M}function Vi(M,R){var V=M.__data__;return sd(R)?V[typeof R=="string"?"string":"hash"]:V.map}function za(M){for(var R=pr(M),V=R.length;V--;){var q=R[V],te=M[q];R[V]=[q,te,pl(te)]}return R}function qn(M,R){var V=cc(M,R);return ks(V)?V:A}function Zu(M){var R=Jt.call(M,Qn),V=M[Qn];try{M[Qn]=A;var q=!0}catch(pe){}var te=yi.call(M);return q&&(R?M[Qn]=V:delete M[Qn]),te}var La=ha?function(M){return M==null?[]:(M=rr(M),Pt(ha(M),function(R){return vs.call(M,R)}))}:os,dl=ha?function(M){for(var R=[];M;)Yt(R,La(M)),M=Ci(M);return R}:os,br=Cr;(pa&&br(new pa(new ArrayBuffer(1)))!=He||Uo&&br(new Uo)!=Te||ga&&br(ga.resolve())!=be||Ao&&br(new Ao)!=ge||jo&&br(new jo)!=rt)&&(br=function(M){var R=Cr(M),V=R==ie?M.constructor:A,q=V?Xn(V):"";if(q)switch(q){case Dc:return He;case Oc:return Te;case Rc:return be;case Fc:return ge;case zc:return rt}return R});function ed(M,R,V){for(var q=-1,te=V.length;++q<te;){var pe=V[q],_e=pe.size;switch(pe.type){case"drop":M+=_e;break;case"dropRight":R-=_e;break;case"take":R=mr(R,M+_e);break;case"takeRight":M=dr(M,R-_e);break}}return{start:M,end:R}}function td(M){var R=M.match(Vt);return R?R[1].split(Nt):[]}function fl(M,R,V){R=$n(R,M);for(var q=-1,te=R.length,pe=!1;++q<te;){var _e=an(R[q]);if(!(pe=M!=null&&V(M,_e)))break;M=M[_e]}return pe||++q!=te?pe:(te=M==null?0:M.length,!!te&&Yi(te)&&vn(_e,te)&&(Ft(M)||Jn(M)))}function rd(M){var R=M.length,V=new M.constructor(R);return R&&typeof M[0]=="string"&&Jt.call(M,"index")&&(V.index=M.index,V.input=M.input),V}function hl(M){return typeof M.constructor=="function"&&!Zo(M)?Co(Ci(M)):{}}function nd(M,R,V){var q=M.constructor;switch(R){case pt:return Ma(M);case ke:case Oe:return new q(+M);case He:return Lu(M,V);case at:case nt:case mt:case Tt:case Dt:case yt:case At:case Ae:case Re:return Ks(M,V);case Te:return new q;case ee:case Ie:return new q(M);case Ce:return Hu(M);case ge:return new q;case Le:return Vu(M)}}function od(M,R){var V=R.length;if(!V)return M;var q=V-1;return R[q]=(V>1?"& ":"")+R[q],R=R.join(V>2?", ":" "),M.replace(Et,"{\n/* [wrapped with "+R+"] */\n")}function ad(M){return Ft(M)||Jn(M)||!!(ms&&M&&M[ms])}function vn(M,R){var V=typeof M;return R=R==null?fe:R,!!R&&(V=="number"||V!="symbol"&&Po.test(M))&&M>-1&&M%1==0&&M<R}function xr(M,R,V){if(!nr(V))return!1;var q=typeof R;return(q=="number"?Ir(V)&&vn(R,V.length):q=="string"&&R in V)?Jr(V[R],M):!1}function Ha(M,R){if(Ft(M))return!1;var V=typeof M;return V=="number"||V=="symbol"||V=="boolean"||M==null||zr(M)?!0:zt.test(M)||!_t.test(M)||R!=null&&M in rr(R)}function sd(M){var R=typeof M;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?M!=="__proto__":M===null}function Va(M){var R=Hi(M),V=ue[R];if(typeof V!="function"||!(R in Gt.prototype))return!1;if(M===V)return!0;var q=Fa(V);return!!q&&M===q[0]}function ld(M){return!!hs&&hs in M}var cd=mi?mn:is;function Zo(M){var R=M&&M.constructor,V=typeof R=="function"&&R.prototype||yo;return M===V}function pl(M){return M===M&&!nr(M)}function gl(M,R){return function(V){return V==null?!1:V[M]===R&&(R!==A||M in rr(V))}}function ud(M){var R=Wi(M,function(q){return V.size===B&&V.clear(),q}),V=R.cache;return R}function dd(M,R){var V=M[1],q=R[1],te=V|q,pe=te<(L|H|K),_e=q==K&&V==Y||q==K&&V==X&&M[7].length<=R[8]||q==(K|X)&&R[7].length<=R[8]&&V==Y;if(!(pe||_e))return M;q&L&&(M[2]=R[2],te|=V&L?0:Q);var Be=R[3];if(Be){var De=M[3];M[3]=De?qs(De,Be,R[4]):Be,M[4]=De?En(M[3],k):R[4]}return Be=R[5],Be&&(De=M[5],M[5]=De?Xs(De,Be,R[6]):Be,M[6]=De?En(M[5],k):R[6]),Be=R[7],Be&&(M[7]=Be),q&K&&(M[8]=M[8]==null?R[8]:mr(M[8],R[8])),M[9]==null&&(M[9]=R[9]),M[0]=R[0],M[1]=te,M}function fd(M){var R=[];if(M!=null)for(var V in rr(M))R.push(V);return R}function hd(M){return yi.call(M)}function vl(M,R,V){return R=dr(R===A?M.length-1:R,0),function(){for(var q=arguments,te=-1,pe=dr(q.length-R,0),_e=je(pe);++te<pe;)_e[te]=q[R+te];te=-1;for(var Be=je(R+1);++te<R;)Be[te]=q[te];return Be[R]=V(_e),wr(M,this,Be)}}function ml(M,R){return R.length<2?M:Yn(M,Qr(R,0,-1))}function pd(M,R){for(var V=M.length,q=mr(R.length,V),te=kr(M);q--;){var pe=R[q];M[q]=vn(pe,V)?te[pe]:A}return M}function Ua(M,R){if(!(R==="constructor"&&typeof M[R]=="function")&&R!="__proto__")return M[R]}var bl=Al(Ls),ei=Pc||function(M,R){return ar.setTimeout(M,R)},ja=Al(Ou);function yl(M,R,V){var q=R+"";return ja(M,od(q,gd(td(q),V)))}function Al(M){var R=0,V=0;return function(){var q=Ic(),te=le-(q-V);if(V=q,te>0){if(++R>=J)return arguments[0]}else R=0;return M.apply(A,arguments)}}function Ui(M,R){var V=-1,q=M.length,te=q-1;for(R=R===A?q:R;++V<R;){var pe=Ea(V,te),_e=M[pe];M[pe]=M[V],M[V]=_e}return M.length=R,M}var wl=ud(function(M){var R=[];return M.charCodeAt(0)===46&&R.push(""),M.replace(Ct,function(V,q,te,pe){R.push(te?pe.replace(Ot,"$1"):q||V)}),R});function an(M){if(typeof M=="string"||zr(M))return M;var R=M+"";return R=="0"&&1/M==-re?"-0":R}function Xn(M){if(M!=null){try{return bi.call(M)}catch(R){}try{return M+""}catch(R){}}return""}function gd(M,R){return Se(ut,function(V){var q="_."+V[0];R&V[1]&&!xt(M,q)&&M.push(q)}),M.sort()}function Cl(M){if(M instanceof Gt)return M.clone();var R=new Ur(M.__wrapped__,M.__chain__);return R.__actions__=kr(M.__actions__),R.__index__=M.__index__,R.__values__=M.__values__,R}function vd(M,R,V){(V?xr(M,R,V):R===A)?R=1:R=dr(Lt(R),0);var q=M==null?0:M.length;if(!q||R<1)return[];for(var te=0,pe=0,_e=je(_i(q/R));te<q;)_e[pe++]=Qr(M,te,te+=R);return _e}function md(M){for(var R=-1,V=M==null?0:M.length,q=0,te=[];++R<V;){var pe=M[R];pe&&(te[q++]=pe)}return te}function bd(){var M=arguments.length;if(!M)return[];for(var R=je(M-1),V=arguments[0],q=M;q--;)R[q-1]=arguments[q];return Yt(Ft(V)?kr(V):[V],vr(R,1))}var yd=Ut(function(M,R){return sr(M)?Ko(M,vr(R,1,sr,!0)):[]}),Ad=Ut(function(M,R){var V=Gr(R);return sr(V)&&(V=A),sr(M)?Ko(M,vr(R,1,sr,!0),$t(V,2)):[]}),wd=Ut(function(M,R){var V=Gr(R);return sr(V)&&(V=A),sr(M)?Ko(M,vr(R,1,sr,!0),A,V):[]});function Cd(M,R,V){var q=M==null?0:M.length;return q?(R=V||R===A?1:Lt(R),Qr(M,R<0?0:R,q)):[]}function xd(M,R,V){var q=M==null?0:M.length;return q?(R=V||R===A?1:Lt(R),R=q-R,Qr(M,0,R<0?0:R)):[]}function Sd(M,R){return M&&M.length?Di(M,$t(R,3),!0,!0):[]}function _d(M,R){return M&&M.length?Di(M,$t(R,3),!0):[]}function Ed(M,R,V,q){var te=M==null?0:M.length;return te?(V&&typeof V!="number"&&xr(M,R,V)&&(V=0,q=te),mu(M,R,V,q)):[]}function xl(M,R,V){var q=M==null?0:M.length;if(!q)return-1;var te=V==null?0:Lt(V);return te<0&&(te=dr(q+te,0)),Br(M,$t(R,3),te)}function Sl(M,R,V){var q=M==null?0:M.length;if(!q)return-1;var te=q-1;return V!==A&&(te=Lt(V),te=V<0?dr(q+te,0):mr(te,q-1)),Br(M,$t(R,3),te,!0)}function _l(M){var R=M==null?0:M.length;return R?vr(M,1):[]}function Td(M){var R=M==null?0:M.length;return R?vr(M,re):[]}function Pd(M,R){var V=M==null?0:M.length;return V?(R=R===A?1:Lt(R),vr(M,R)):[]}function Bd(M){for(var R=-1,V=M==null?0:M.length,q={};++R<V;){var te=M[R];q[te[0]]=te[1]}return q}function El(M){return M&&M.length?M[0]:A}function $d(M,R,V){var q=M==null?0:M.length;if(!q)return-1;var te=V==null?0:Lt(V);return te<0&&(te=dr(q+te,0)),$r(M,R,te)}function kd(M){var R=M==null?0:M.length;return R?Qr(M,0,-1):[]}var Id=Ut(function(M){var R=Bt(M,ka);return R.length&&R[0]===M[0]?wa(R):[]}),Md=Ut(function(M){var R=Gr(M),V=Bt(M,ka);return R===Gr(V)?R=A:V.pop(),V.length&&V[0]===M[0]?wa(V,$t(R,2)):[]}),Nd=Ut(function(M){var R=Gr(M),V=Bt(M,ka);return R=typeof R=="function"?R:A,R&&V.pop(),V.length&&V[0]===M[0]?wa(V,A,R):[]});function Dd(M,R){return M==null?"":$c.call(M,R)}function Gr(M){var R=M==null?0:M.length;return R?M[R-1]:A}function Od(M,R,V){var q=M==null?0:M.length;if(!q)return-1;var te=q;return V!==A&&(te=Lt(V),te=te<0?dr(q+te,0):mr(te,q-1)),R===R?pc(M,R,te):Br(M,Un,te,!0)}function Rd(M,R){return M&&M.length?Os(M,Lt(R)):A}var Fd=Ut(Tl);function Tl(M,R){return M&&M.length&&R&&R.length?_a(M,R):M}function zd(M,R,V){return M&&M.length&&R&&R.length?_a(M,R,$t(V,2)):M}function Ld(M,R,V){return M&&M.length&&R&&R.length?_a(M,R,A,V):M}var Hd=gn(function(M,R){var V=M==null?0:M.length,q=ma(M,R);return zs(M,Bt(R,function(te){return vn(te,V)?+te:te}).sort(Ys)),q});function Vd(M,R){var V=[];if(!(M&&M.length))return V;var q=-1,te=[],pe=M.length;for(R=$t(R,3);++q<pe;){var _e=M[q];R(_e,q,M)&&(V.push(_e),te.push(q))}return zs(M,te),V}function Qa(M){return M==null?M:Nc.call(M)}function Ud(M,R,V){var q=M==null?0:M.length;return q?(V&&typeof V!="number"&&xr(M,R,V)?(R=0,V=q):(R=R==null?0:Lt(R),V=V===A?q:Lt(V)),Qr(M,R,V)):[]}function jd(M,R){return Ni(M,R)}function Qd(M,R,V){return Pa(M,R,$t(V,2))}function Gd(M,R){var V=M==null?0:M.length;if(V){var q=Ni(M,R);if(q<V&&Jr(M[q],R))return q}return-1}function Wd(M,R){return Ni(M,R,!0)}function Kd(M,R,V){return Pa(M,R,$t(V,2),!0)}function Yd(M,R){var V=M==null?0:M.length;if(V){var q=Ni(M,R,!0)-1;if(Jr(M[q],R))return q}return-1}function qd(M){return M&&M.length?Hs(M):[]}function Xd(M,R){return M&&M.length?Hs(M,$t(R,2)):[]}function Jd(M){var R=M==null?0:M.length;return R?Qr(M,1,R):[]}function Zd(M,R,V){return M&&M.length?(R=V||R===A?1:Lt(R),Qr(M,0,R<0?0:R)):[]}function e0(M,R,V){var q=M==null?0:M.length;return q?(R=V||R===A?1:Lt(R),R=q-R,Qr(M,R<0?0:R,q)):[]}function t0(M,R){return M&&M.length?Di(M,$t(R,3),!1,!0):[]}function r0(M,R){return M&&M.length?Di(M,$t(R,3)):[]}var n0=Ut(function(M){return Bn(vr(M,1,sr,!0))}),o0=Ut(function(M){var R=Gr(M);return sr(R)&&(R=A),Bn(vr(M,1,sr,!0),$t(R,2))}),i0=Ut(function(M){var R=Gr(M);return R=typeof R=="function"?R:A,Bn(vr(M,1,sr,!0),A,R)});function a0(M){return M&&M.length?Bn(M):[]}function s0(M,R){return M&&M.length?Bn(M,$t(R,2)):[]}function l0(M,R){return R=typeof R=="function"?R:A,M&&M.length?Bn(M,A,R):[]}function Ga(M){if(!(M&&M.length))return[];var R=0;return M=Pt(M,function(V){if(sr(V))return R=dr(V.length,R),!0}),ca(R,function(V){return Bt(M,aa(V))})}function Pl(M,R){if(!(M&&M.length))return[];var V=Ga(M);return R==null?V:Bt(V,function(q){return wr(R,A,q)})}var c0=Ut(function(M,R){return sr(M)?Ko(M,R):[]}),u0=Ut(function(M){return $a(Pt(M,sr))}),d0=Ut(function(M){var R=Gr(M);return sr(R)&&(R=A),$a(Pt(M,sr),$t(R,2))}),f0=Ut(function(M){var R=Gr(M);return R=typeof R=="function"?R:A,$a(Pt(M,sr),A,R)}),h0=Ut(Ga);function p0(M,R){return Qs(M||[],R||[],Wo)}function g0(M,R){return Qs(M||[],R||[],Xo)}var v0=Ut(function(M){var R=M.length,V=R>1?M[R-1]:A;return V=typeof V=="function"?(M.pop(),V):A,Pl(M,V)});function Bl(M){var R=ue(M);return R.__chain__=!0,R}function m0(M,R){return R(M),M}function ji(M,R){return R(M)}var b0=gn(function(M){var R=M.length,V=R?M[0]:0,q=this.__wrapped__,te=function(pe){return ma(pe,M)};return R>1||this.__actions__.length||!(q instanceof Gt)||!vn(V)?this.thru(te):(q=q.slice(V,+V+(R?1:0)),q.__actions__.push({func:ji,args:[te],thisArg:A}),new Ur(q,this.__chain__).thru(function(pe){return R&&!pe.length&&pe.push(A),pe}))});function y0(){return Bl(this)}function A0(){return new Ur(this.value(),this.__chain__)}function w0(){this.__values__===A&&(this.__values__=Ul(this.value()));var M=this.__index__>=this.__values__.length,R=M?A:this.__values__[this.__index__++];return{done:M,value:R}}function C0(){return this}function x0(M){for(var R,V=this;V instanceof Bi;){var q=Cl(V);q.__index__=0,q.__values__=A,R?te.__wrapped__=q:R=q;var te=q;V=V.__wrapped__}return te.__wrapped__=M,R}function S0(){var M=this.__wrapped__;if(M instanceof Gt){var R=M;return this.__actions__.length&&(R=new Gt(this)),R=R.reverse(),R.__actions__.push({func:ji,args:[Qa],thisArg:A}),new Ur(R,this.__chain__)}return this.thru(Qa)}function _0(){return js(this.__wrapped__,this.__actions__)}var E0=Oi(function(M,R,V){Jt.call(M,V)?++M[V]:hn(M,V,1)});function T0(M,R,V){var q=Ft(M)?st:vu;return V&&xr(M,R,V)&&(R=A),q(M,$t(R,3))}function P0(M,R){var V=Ft(M)?Pt:Ts;return V(M,$t(R,3))}var B0=rl(xl),$0=rl(Sl);function k0(M,R){return vr(Qi(M,R),1)}function I0(M,R){return vr(Qi(M,R),re)}function M0(M,R,V){return V=V===A?1:Lt(V),vr(Qi(M,R),V)}function $l(M,R){var V=Ft(M)?Se:Pn;return V(M,$t(R,3))}function kl(M,R){var V=Ft(M)?Ge:Es;return V(M,$t(R,3))}var N0=Oi(function(M,R,V){Jt.call(M,V)?M[V].push(R):hn(M,V,[R])});function D0(M,R,V,q){M=Ir(M)?M:To(M),V=V&&!q?Lt(V):0;var te=M.length;return V<0&&(V=dr(te+V,0)),qi(M)?V<=te&&M.indexOf(R,V)>-1:!!te&&$r(M,R,V)>-1}var O0=Ut(function(M,R,V){var q=-1,te=typeof R=="function",pe=Ir(M)?je(M.length):[];return Pn(M,function(_e){pe[++q]=te?wr(R,_e,V):Yo(_e,R,V)}),pe}),R0=Oi(function(M,R,V){hn(M,V,R)});function Qi(M,R){var V=Ft(M)?Bt:Ms;return V(M,$t(R,3))}function F0(M,R,V,q){return M==null?[]:(Ft(R)||(R=R==null?[]:[R]),V=q?A:V,Ft(V)||(V=V==null?[]:[V]),Rs(M,R,V))}var z0=Oi(function(M,R,V){M[V?0:1].push(R)},function(){return[[],[]]});function L0(M,R,V){var q=Ft(M)?or:ss,te=arguments.length<3;return q(M,$t(R,4),V,te,Pn)}function H0(M,R,V){var q=Ft(M)?gr:ss,te=arguments.length<3;return q(M,$t(R,4),V,te,Es)}function V0(M,R){var V=Ft(M)?Pt:Ts;return V(M,Ki($t(R,3)))}function U0(M){var R=Ft(M)?Cs:Nu;return R(M)}function j0(M,R,V){(V?xr(M,R,V):R===A)?R=1:R=Lt(R);var q=Ft(M)?du:Du;return q(M,R)}function Q0(M){var R=Ft(M)?fu:Ru;return R(M)}function G0(M){if(M==null)return 0;if(Ir(M))return qi(M)?mo(M):M.length;var R=br(M);return R==Te||R==ge?M.size:xa(M).length}function W0(M,R,V){var q=Ft(M)?hr:Fu;return V&&xr(M,R,V)&&(R=A),q(M,$t(R,3))}var K0=Ut(function(M,R){if(M==null)return[];var V=R.length;return V>1&&xr(M,R[0],R[1])?R=[]:V>2&&xr(R[0],R[1],R[2])&&(R=[R[0]]),Rs(M,vr(R,1),[])}),Gi=Tc||function(){return ar.Date.now()};function Y0(M,R){if(typeof R!="function")throw new Vr(S);return M=Lt(M),function(){if(--M<1)return R.apply(this,arguments)}}function Il(M,R,V){return R=V?A:R,R=M&&R==null?M.length:R,pn(M,K,A,A,A,A,R)}function Ml(M,R){var V;if(typeof R!="function")throw new Vr(S);return M=Lt(M),function(){return--M>0&&(V=R.apply(this,arguments)),M<=1&&(R=A),V}}var Wa=Ut(function(M,R,V){var q=L;if(V.length){var te=En(V,_o(Wa));q|=G}return pn(M,q,R,V,te)}),Nl=Ut(function(M,R,V){var q=L|H;if(V.length){var te=En(V,_o(Nl));q|=G}return pn(R,q,M,V,te)});function Dl(M,R,V){R=V?A:R;var q=pn(M,Y,A,A,A,A,A,R);return q.placeholder=Dl.placeholder,q}function Ol(M,R,V){R=V?A:R;var q=pn(M,U,A,A,A,A,A,R);return q.placeholder=Ol.placeholder,q}function Rl(M,R,V){var q,te,pe,_e,Be,De,Ze=0,et=!1,ot=!1,gt=!0;if(typeof M!="function")throw new Vr(S);R=Wr(R)||0,nr(V)&&(et=!!V.leading,ot="maxWait"in V,pe=ot?dr(Wr(V.maxWait)||0,R):pe,gt="trailing"in V?!!V.trailing:gt);function St(lr){var Zr=q,yn=te;return q=te=A,Ze=lr,_e=M.apply(yn,Zr),_e}function kt(lr){return Ze=lr,Be=ei(jt,R),et?St(lr):_e}function Ht(lr){var Zr=lr-De,yn=lr-Ze,rc=R-Zr;return ot?mr(rc,pe-yn):rc}function It(lr){var Zr=lr-De,yn=lr-Ze;return De===A||Zr>=R||Zr<0||ot&&yn>=pe}function jt(){var lr=Gi();if(It(lr))return Wt(lr);Be=ei(jt,Ht(lr))}function Wt(lr){return Be=A,gt&&q?St(lr):(q=te=A,_e)}function Lr(){Be!==A&&Gs(Be),Ze=0,q=De=te=Be=A}function Sr(){return Be===A?_e:Wt(Gi())}function Hr(){var lr=Gi(),Zr=It(lr);if(q=arguments,te=this,De=lr,Zr){if(Be===A)return kt(De);if(ot)return Gs(Be),Be=ei(jt,R),St(De)}return Be===A&&(Be=ei(jt,R)),_e}return Hr.cancel=Lr,Hr.flush=Sr,Hr}var q0=Ut(function(M,R){return _s(M,1,R)}),X0=Ut(function(M,R,V){return _s(M,Wr(R)||0,V)});function J0(M){return pn(M,Z)}function Wi(M,R){if(typeof M!="function"||R!=null&&typeof R!="function")throw new Vr(S);var V=function(){var q=arguments,te=R?R.apply(this,q):q[0],pe=V.cache;if(pe.has(te))return pe.get(te);var _e=M.apply(this,q);return V.cache=pe.set(te,_e)||pe,_e};return V.cache=new(Wi.Cache||fn),V}Wi.Cache=fn;function Ki(M){if(typeof M!="function")throw new Vr(S);return function(){var R=arguments;switch(R.length){case 0:return!M.call(this);case 1:return!M.call(this,R[0]);case 2:return!M.call(this,R[0],R[1]);case 3:return!M.call(this,R[0],R[1],R[2])}return!M.apply(this,R)}}function Z0(M){return Ml(2,M)}var ef=zu(function(M,R){R=R.length==1&&Ft(R[0])?Bt(R[0],Rr($t())):Bt(vr(R,1),Rr($t()));var V=R.length;return Ut(function(q){for(var te=-1,pe=mr(q.length,V);++te<pe;)q[te]=R[te].call(this,q[te]);return wr(M,this,q)})}),Ka=Ut(function(M,R){var V=En(R,_o(Ka));return pn(M,G,A,R,V)}),Fl=Ut(function(M,R){var V=En(R,_o(Fl));return pn(M,W,A,R,V)}),tf=gn(function(M,R){return pn(M,X,A,A,A,R)});function rf(M,R){if(typeof M!="function")throw new Vr(S);return R=R===A?R:Lt(R),Ut(M,R)}function nf(M,R){if(typeof M!="function")throw new Vr(S);return R=R==null?0:dr(Lt(R),0),Ut(function(V){var q=V[R],te=kn(V,0,R);return q&&Yt(te,q),wr(M,this,te)})}function of(M,R,V){var q=!0,te=!0;if(typeof M!="function")throw new Vr(S);return nr(V)&&(q="leading"in V?!!V.leading:q,te="trailing"in V?!!V.trailing:te),Rl(M,R,{leading:q,maxWait:R,trailing:te})}function af(M){return Il(M,1)}function sf(M,R){return Ka(Ia(R),M)}function lf(){if(!arguments.length)return[];var M=arguments[0];return Ft(M)?M:[M]}function cf(M){return jr(M,D)}function uf(M,R){return R=typeof R=="function"?R:A,jr(M,D,R)}function df(M){return jr(M,$|D)}function ff(M,R){return R=typeof R=="function"?R:A,jr(M,$|D,R)}function hf(M,R){return R==null||Ss(M,R,pr(R))}function Jr(M,R){return M===R||M!==M&&R!==R}var pf=Li(Aa),gf=Li(function(M,R){return M>=R}),Jn=$s(function(){return arguments}())?$s:function(M){return ir(M)&&Jt.call(M,"callee")&&!vs.call(M,"callee")},Ft=je.isArray,vf=ci?Rr(ci):Cu;function Ir(M){return M!=null&&Yi(M.length)&&!mn(M)}function sr(M){return ir(M)&&Ir(M)}function mf(M){return M===!0||M===!1||ir(M)&&Cr(M)==ke}var In=Bc||is,bf=ui?Rr(ui):xu;function yf(M){return ir(M)&&M.nodeType===1&&!ti(M)}function Af(M){if(M==null)return!0;if(Ir(M)&&(Ft(M)||typeof M=="string"||typeof M.splice=="function"||In(M)||Eo(M)||Jn(M)))return!M.length;var R=br(M);if(R==Te||R==ge)return!M.size;if(Zo(M))return!xa(M).length;for(var V in M)if(Jt.call(M,V))return!1;return!0}function wf(M,R){return qo(M,R)}function Cf(M,R,V){V=typeof V=="function"?V:A;var q=V?V(M,R):A;return q===A?qo(M,R,A,V):!!q}function Ya(M){if(!ir(M))return!1;var R=Cr(M);return R==Je||R==Qe||typeof M.message=="string"&&typeof M.name=="string"&&!ti(M)}function xf(M){return typeof M=="number"&&bs(M)}function mn(M){if(!nr(M))return!1;var R=Cr(M);return R==ve||R==ye||R==$e||R==Ee}function zl(M){return typeof M=="number"&&M==Lt(M)}function Yi(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=fe}function nr(M){var R=typeof M;return M!=null&&(R=="object"||R=="function")}function ir(M){return M!=null&&typeof M=="object"}var Ll=di?Rr(di):_u;function Sf(M,R){return M===R||Ca(M,R,za(R))}function _f(M,R,V){return V=typeof V=="function"?V:A,Ca(M,R,za(R),V)}function Ef(M){return Hl(M)&&M!=+M}function Tf(M){if(cd(M))throw new Rt(x);return ks(M)}function Pf(M){return M===null}function Bf(M){return M==null}function Hl(M){return typeof M=="number"||ir(M)&&Cr(M)==ee}function ti(M){if(!ir(M)||Cr(M)!=ie)return!1;var R=Ci(M);if(R===null)return!0;var V=Jt.call(R,"constructor")&&R.constructor;return typeof V=="function"&&V instanceof V&&bi.call(V)==xc}var qa=Vn?Rr(Vn):Eu;function $f(M){return zl(M)&&M>=-fe&&M<=fe}var Vl=fi?Rr(fi):Tu;function qi(M){return typeof M=="string"||!Ft(M)&&ir(M)&&Cr(M)==Ie}function zr(M){return typeof M=="symbol"||ir(M)&&Cr(M)==Le}var Eo=hi?Rr(hi):Pu;function kf(M){return M===A}function If(M){return ir(M)&&br(M)==rt}function Mf(M){return ir(M)&&Cr(M)==lt}var Nf=Li(Sa),Df=Li(function(M,R){return M<=R});function Ul(M){if(!M)return[];if(Ir(M))return qi(M)?qr(M):kr(M);if(Vo&&M[Vo])return dc(M[Vo]());var R=br(M),V=R==Te?da:R==ge?gi:To;return V(M)}function bn(M){if(!M)return M===0?M:0;if(M=Wr(M),M===re||M===-re){var R=M<0?-1:1;return R*ce}return M===M?M:0}function Lt(M){var R=bn(M),V=R%1;return R===R?V?R-V:R:0}function jl(M){return M?Kn(Lt(M),0,Fe):0}function Wr(M){if(typeof M=="number")return M;if(zr(M))return we;if(nr(M)){var R=typeof M.valueOf=="function"?M.valueOf():M;M=nr(R)?R+"":R}if(typeof M!="string")return M===0?M:+M;M=ls(M);var V=yr.test(M);return V||Nn.test(M)?Kr(M.slice(2),V?2:8):sn.test(M)?we:+M}function Ql(M){return nn(M,Mr(M))}function Of(M){return M?Kn(Lt(M),-fe,fe):M===0?M:0}function Xt(M){return M==null?"":Fr(M)}var Rf=xo(function(M,R){if(Zo(R)||Ir(R)){nn(R,pr(R),M);return}for(var V in R)Jt.call(R,V)&&Wo(M,V,R[V])}),Gl=xo(function(M,R){nn(R,Mr(R),M)}),Xi=xo(function(M,R,V,q){nn(R,Mr(R),M,q)}),Ff=xo(function(M,R,V,q){nn(R,pr(R),M,q)}),zf=gn(ma);function Lf(M,R){var V=Co(M);return R==null?V:xs(V,R)}var Hf=Ut(function(M,R){M=rr(M);var V=-1,q=R.length,te=q>2?R[2]:A;for(te&&xr(R[0],R[1],te)&&(q=1);++V<q;)for(var pe=R[V],_e=Mr(pe),Be=-1,De=_e.length;++Be<De;){var Ze=_e[Be],et=M[Ze];(et===A||Jr(et,yo[Ze])&&!Jt.call(M,Ze))&&(M[Ze]=pe[Ze])}return M}),Vf=Ut(function(M){return M.push(A,cl),wr(Wl,A,M)});function Uf(M,R){return Yr(M,$t(R,3),rn)}function jf(M,R){return Yr(M,$t(R,3),ya)}function Qf(M,R){return M==null?M:ba(M,$t(R,3),Mr)}function Gf(M,R){return M==null?M:Ps(M,$t(R,3),Mr)}function Wf(M,R){return M&&rn(M,$t(R,3))}function Kf(M,R){return M&&ya(M,$t(R,3))}function Yf(M){return M==null?[]:Ii(M,pr(M))}function qf(M){return M==null?[]:Ii(M,Mr(M))}function Xa(M,R,V){var q=M==null?A:Yn(M,R);return q===A?V:q}function Xf(M,R){return M!=null&&fl(M,R,bu)}function Ja(M,R){return M!=null&&fl(M,R,yu)}var Jf=ol(function(M,R,V){R!=null&&typeof R.toString!="function"&&(R=yi.call(R)),M[R]=V},es(Nr)),Zf=ol(function(M,R,V){R!=null&&typeof R.toString!="function"&&(R=yi.call(R)),Jt.call(M,R)?M[R].push(V):M[R]=[V]},$t),eh=Ut(Yo);function pr(M){return Ir(M)?ws(M):xa(M)}function Mr(M){return Ir(M)?ws(M,!0):Bu(M)}function th(M,R){var V={};return R=$t(R,3),rn(M,function(q,te,pe){hn(V,R(q,te,pe),q)}),V}function rh(M,R){var V={};return R=$t(R,3),rn(M,function(q,te,pe){hn(V,te,R(q,te,pe))}),V}var nh=xo(function(M,R,V){Mi(M,R,V)}),Wl=xo(function(M,R,V,q){Mi(M,R,V,q)}),oh=gn(function(M,R){var V={};if(M==null)return V;var q=!1;R=Bt(R,function(pe){return pe=$n(pe,M),q||(q=pe.length>1),pe}),nn(M,Ra(M),V),q&&(V=jr(V,$|I|D,qu));for(var te=R.length;te--;)Ba(V,R[te]);return V});function ih(M,R){return Kl(M,Ki($t(R)))}var ah=gn(function(M,R){return M==null?{}:ku(M,R)});function Kl(M,R){if(M==null)return{};var V=Bt(Ra(M),function(q){return[q]});return R=$t(R),Fs(M,V,function(q,te){return R(q,te[0])})}function sh(M,R,V){R=$n(R,M);var q=-1,te=R.length;for(te||(te=1,M=A);++q<te;){var pe=M==null?A:M[an(R[q])];pe===A&&(q=te,pe=V),M=mn(pe)?pe.call(M):pe}return M}function lh(M,R,V){return M==null?M:Xo(M,R,V)}function ch(M,R,V,q){return q=typeof q=="function"?q:A,M==null?M:Xo(M,R,V,q)}var Yl=sl(pr),ql=sl(Mr);function uh(M,R,V){var q=Ft(M),te=q||In(M)||Eo(M);if(R=$t(R,4),V==null){var pe=M&&M.constructor;te?V=q?new pe:[]:nr(M)?V=mn(pe)?Co(Ci(M)):{}:V={}}return(te?Se:rn)(M,function(_e,Be,De){return R(V,_e,Be,De)}),V}function dh(M,R){return M==null?!0:Ba(M,R)}function fh(M,R,V){return M==null?M:Us(M,R,Ia(V))}function hh(M,R,V,q){return q=typeof q=="function"?q:A,M==null?M:Us(M,R,Ia(V),q)}function To(M){return M==null?[]:ua(M,pr(M))}function ph(M){return M==null?[]:ua(M,Mr(M))}function gh(M,R,V){return V===A&&(V=R,R=A),V!==A&&(V=Wr(V),V=V===V?V:0),R!==A&&(R=Wr(R),R=R===R?R:0),Kn(Wr(M),R,V)}function vh(M,R,V){return R=bn(R),V===A?(V=R,R=0):V=bn(V),M=Wr(M),Au(M,R,V)}function mh(M,R,V){if(V&&typeof V!="boolean"&&xr(M,R,V)&&(R=V=A),V===A&&(typeof R=="boolean"?(V=R,R=A):typeof M=="boolean"&&(V=M,M=A)),M===A&&R===A?(M=0,R=1):(M=bn(M),R===A?(R=M,M=0):R=bn(R)),M>R){var q=M;M=R,R=q}if(V||M%1||R%1){var te=ys();return mr(M+te*(R-M+li("1e-"+((te+"").length-1))),R)}return Ea(M,R)}var bh=So(function(M,R,V){return R=R.toLowerCase(),M+(V?Xl(R):R)});function Xl(M){return Za(Xt(M).toLowerCase())}function Jl(M){return M=Xt(M),M&&M.replace(Bo,ac).replace(ta,"")}function yh(M,R,V){M=Xt(M),R=Fr(R);var q=M.length;V=V===A?q:Kn(Lt(V),0,q);var te=V;return V-=R.length,V>=0&&M.slice(V,te)==R}function Ah(M){return M=Xt(M),M&&ze.test(M)?M.replace(xe,sc):M}function wh(M){return M=Xt(M),M&&Pe.test(M)?M.replace(Mt,"\\$&"):M}var Ch=So(function(M,R,V){return M+(V?"-":"")+R.toLowerCase()}),xh=So(function(M,R,V){return M+(V?" ":"")+R.toLowerCase()}),Sh=tl("toLowerCase");function _h(M,R,V){M=Xt(M),R=Lt(R);var q=R?mo(M):0;if(!R||q>=R)return M;var te=(R-q)/2;return zi(Ei(te),V)+M+zi(_i(te),V)}function Eh(M,R,V){M=Xt(M),R=Lt(R);var q=R?mo(M):0;return R&&q<R?M+zi(R-q,V):M}function Th(M,R,V){M=Xt(M),R=Lt(R);var q=R?mo(M):0;return R&&q<R?zi(R-q,V)+M:M}function Ph(M,R,V){return V||R==null?R=0:R&&(R=+R),Mc(Xt(M).replace(Ue,""),R||0)}function Bh(M,R,V){return(V?xr(M,R,V):R===A)?R=1:R=Lt(R),Ta(Xt(M),R)}function $h(){var M=arguments,R=Xt(M[0]);return M.length<3?R:R.replace(M[1],M[2])}var kh=So(function(M,R,V){return M+(V?"_":"")+R.toLowerCase()});function Ih(M,R,V){return V&&typeof V!="number"&&xr(M,R,V)&&(R=V=A),V=V===A?Fe:V>>>0,V?(M=Xt(M),M&&(typeof R=="string"||R!=null&&!qa(R))&&(R=Fr(R),!R&&vo(M))?kn(qr(M),0,V):M.split(R,V)):[]}var Mh=So(function(M,R,V){return M+(V?" ":"")+Za(R)});function Nh(M,R,V){return M=Xt(M),V=V==null?0:Kn(Lt(V),0,M.length),R=Fr(R),M.slice(V,V+R.length)==R}function Dh(M,R,V){var q=ue.templateSettings;V&&xr(M,R,V)&&(R=A),M=Xt(M),R=Xi({},R,q,ll);var te=Xi({},R.imports,q.imports,ll),pe=pr(te),_e=ua(te,pe),Be,De,Ze=0,et=R.interpolate||wn,ot="__p += '",gt=fa((R.escape||wn).source+"|"+et.source+"|"+(et===ht?fr:wn).source+"|"+(R.evaluate||wn).source+"|$","g"),St="//# sourceURL="+(Jt.call(R,"sourceURL")?(R.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ai+"]")+"\n";M.replace(gt,function(It,jt,Wt,Lr,Sr,Hr){return Wt||(Wt=Lr),ot+=M.slice(Ze,Hr).replace(Dr,lc),jt&&(Be=!0,ot+="' +\n__e("+jt+") +\n'"),Sr&&(De=!0,ot+="';\n"+Sr+";\n__p += '"),Wt&&(ot+="' +\n((__t = ("+Wt+")) == null ? '' : __t) +\n'"),Ze=Hr+It.length,It}),ot+="';\n";var kt=Jt.call(R,"variable")&&R.variable;if(!kt)ot="with (obj) {\n"+ot+"\n}\n";else if(Kt.test(kt))throw new Rt(E);ot=(De?ot.replace(qe,""):ot).replace(ft,"$1").replace(vt,"$1;"),ot="function("+(kt||"obj")+") {\n"+(kt?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Be?", __e = _.escape":"")+(De?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+ot+"return __p\n}";var Ht=ec(function(){return qt(pe,St+"return "+ot).apply(A,_e)});if(Ht.source=ot,Ya(Ht))throw Ht;return Ht}function Oh(M){return Xt(M).toLowerCase()}function Rh(M){return Xt(M).toUpperCase()}function Fh(M,R,V){if(M=Xt(M),M&&(V||R===A))return ls(M);if(!M||!(R=Fr(R)))return M;var q=qr(M),te=qr(R),pe=cs(q,te),_e=us(q,te)+1;return kn(q,pe,_e).join("")}function zh(M,R,V){if(M=Xt(M),M&&(V||R===A))return M.slice(0,fs(M)+1);if(!M||!(R=Fr(R)))return M;var q=qr(M),te=us(q,qr(R))+1;return kn(q,0,te).join("")}function Lh(M,R,V){if(M=Xt(M),M&&(V||R===A))return M.replace(Ue,"");if(!M||!(R=Fr(R)))return M;var q=qr(M),te=cs(q,qr(R));return kn(q,te).join("")}function Hh(M,R){var V=oe,q=he;if(nr(R)){var te="separator"in R?R.separator:te;V="length"in R?Lt(R.length):V,q="omission"in R?Fr(R.omission):q}M=Xt(M);var pe=M.length;if(vo(M)){var _e=qr(M);pe=_e.length}if(V>=pe)return M;var Be=V-mo(q);if(Be<1)return q;var De=_e?kn(_e,0,Be).join(""):M.slice(0,Be);if(te===A)return De+q;if(_e&&(Be+=De.length-Be),qa(te)){if(M.slice(Be).search(te)){var Ze,et=De;for(te.global||(te=fa(te.source,Xt(_r.exec(te))+"g")),te.lastIndex=0;Ze=te.exec(et);)var ot=Ze.index;De=De.slice(0,ot===A?Be:ot)}}else if(M.indexOf(Fr(te),Be)!=Be){var gt=De.lastIndexOf(te);gt>-1&&(De=De.slice(0,gt))}return De+q}function Vh(M){return M=Xt(M),M&&Ne.test(M)?M.replace(bt,gc):M}var Uh=So(function(M,R,V){return M+(V?" ":"")+R.toUpperCase()}),Za=tl("toUpperCase");function Zl(M,R,V){return M=Xt(M),R=V?A:R,R===A?uc(M)?bc(M):Pr(M):M.match(R)||[]}var ec=Ut(function(M,R){try{return wr(M,A,R)}catch(V){return Ya(V)?V:new Rt(V)}}),jh=gn(function(M,R){return Se(R,function(V){V=an(V),hn(M,V,Wa(M[V],M))}),M});function Qh(M){var R=M==null?0:M.length,V=$t();return M=R?Bt(M,function(q){if(typeof q[1]!="function")throw new Vr(S);return[V(q[0]),q[1]]}):[],Ut(function(q){for(var te=-1;++te<R;){var pe=M[te];if(wr(pe[0],this,q))return wr(pe[1],this,q)}})}function Gh(M){return gu(jr(M,$))}function es(M){return function(){return M}}function Wh(M,R){return M==null||M!==M?R:M}var Kh=nl(),Yh=nl(!0);function Nr(M){return M}function ts(M){return Is(typeof M=="function"?M:jr(M,$))}function qh(M){return Ns(jr(M,$))}function Xh(M,R){return Ds(M,jr(R,$))}var Jh=Ut(function(M,R){return function(V){return Yo(V,M,R)}}),Zh=Ut(function(M,R){return function(V){return Yo(M,V,R)}});function rs(M,R,V){var q=pr(R),te=Ii(R,q);V==null&&!(nr(R)&&(te.length||!q.length))&&(V=R,R=M,M=this,te=Ii(R,pr(R)));var pe=!(nr(V)&&"chain"in V)||!!V.chain,_e=mn(M);return Se(te,function(Be){var De=R[Be];M[Be]=De,_e&&(M.prototype[Be]=function(){var Ze=this.__chain__;if(pe||Ze){var et=M(this.__wrapped__),ot=et.__actions__=kr(this.__actions__);return ot.push({func:De,args:arguments,thisArg:M}),et.__chain__=Ze,et}return De.apply(M,Yt([this.value()],arguments))})}),M}function ep(){return ar._===this&&(ar._=Sc),this}function ns(){}function tp(M){return M=Lt(M),Ut(function(R){return Os(R,M)})}var rp=Na(Bt),np=Na(st),op=Na(hr);function tc(M){return Ha(M)?aa(an(M)):Iu(M)}function ip(M){return function(R){return M==null?A:Yn(M,R)}}var ap=il(),sp=il(!0);function os(){return[]}function is(){return!1}function lp(){return{}}function cp(){return""}function up(){return!0}function dp(M,R){if(M=Lt(M),M<1||M>fe)return[];var V=Fe,q=mr(M,Fe);R=$t(R),M-=Fe;for(var te=ca(q,R);++V<M;)R(V);return te}function fp(M){return Ft(M)?Bt(M,an):zr(M)?[M]:kr(wl(Xt(M)))}function hp(M){var R=++Cc;return Xt(M)+R}var pp=Fi(function(M,R){return M+R},0),gp=Da("ceil"),vp=Fi(function(M,R){return M/R},1),mp=Da("floor");function bp(M){return M&&M.length?ki(M,Nr,Aa):A}function yp(M,R){return M&&M.length?ki(M,$t(R,2),Aa):A}function Ap(M){return jn(M,Nr)}function wp(M,R){return jn(M,$t(R,2))}function Cp(M){return M&&M.length?ki(M,Nr,Sa):A}function xp(M,R){return M&&M.length?ki(M,$t(R,2),Sa):A}var Sp=Fi(function(M,R){return M*R},1),_p=Da("round"),Ep=Fi(function(M,R){return M-R},0);function Tp(M){return M&&M.length?la(M,Nr):0}function Pp(M,R){return M&&M.length?la(M,$t(R,2)):0}return ue.after=Y0,ue.ary=Il,ue.assign=Rf,ue.assignIn=Gl,ue.assignInWith=Xi,ue.assignWith=Ff,ue.at=zf,ue.before=Ml,ue.bind=Wa,ue.bindAll=jh,ue.bindKey=Nl,ue.castArray=lf,ue.chain=Bl,ue.chunk=vd,ue.compact=md,ue.concat=bd,ue.cond=Qh,ue.conforms=Gh,ue.constant=es,ue.countBy=E0,ue.create=Lf,ue.curry=Dl,ue.curryRight=Ol,ue.debounce=Rl,ue.defaults=Hf,ue.defaultsDeep=Vf,ue.defer=q0,ue.delay=X0,ue.difference=yd,ue.differenceBy=Ad,ue.differenceWith=wd,ue.drop=Cd,ue.dropRight=xd,ue.dropRightWhile=Sd,ue.dropWhile=_d,ue.fill=Ed,ue.filter=P0,ue.flatMap=k0,ue.flatMapDeep=I0,ue.flatMapDepth=M0,ue.flatten=_l,ue.flattenDeep=Td,ue.flattenDepth=Pd,ue.flip=J0,ue.flow=Kh,ue.flowRight=Yh,ue.fromPairs=Bd,ue.functions=Yf,ue.functionsIn=qf,ue.groupBy=N0,ue.initial=kd,ue.intersection=Id,ue.intersectionBy=Md,ue.intersectionWith=Nd,ue.invert=Jf,ue.invertBy=Zf,ue.invokeMap=O0,ue.iteratee=ts,ue.keyBy=R0,ue.keys=pr,ue.keysIn=Mr,ue.map=Qi,ue.mapKeys=th,ue.mapValues=rh,ue.matches=qh,ue.matchesProperty=Xh,ue.memoize=Wi,ue.merge=nh,ue.mergeWith=Wl,ue.method=Jh,ue.methodOf=Zh,ue.mixin=rs,ue.negate=Ki,ue.nthArg=tp,ue.omit=oh,ue.omitBy=ih,ue.once=Z0,ue.orderBy=F0,ue.over=rp,ue.overArgs=ef,ue.overEvery=np,ue.overSome=op,ue.partial=Ka,ue.partialRight=Fl,ue.partition=z0,ue.pick=ah,ue.pickBy=Kl,ue.property=tc,ue.propertyOf=ip,ue.pull=Fd,ue.pullAll=Tl,ue.pullAllBy=zd,ue.pullAllWith=Ld,ue.pullAt=Hd,ue.range=ap,ue.rangeRight=sp,ue.rearg=tf,ue.reject=V0,ue.remove=Vd,ue.rest=rf,ue.reverse=Qa,ue.sampleSize=j0,ue.set=lh,ue.setWith=ch,ue.shuffle=Q0,ue.slice=Ud,ue.sortBy=K0,ue.sortedUniq=qd,ue.sortedUniqBy=Xd,ue.split=Ih,ue.spread=nf,ue.tail=Jd,ue.take=Zd,ue.takeRight=e0,ue.takeRightWhile=t0,ue.takeWhile=r0,ue.tap=m0,ue.throttle=of,ue.thru=ji,ue.toArray=Ul,ue.toPairs=Yl,ue.toPairsIn=ql,ue.toPath=fp,ue.toPlainObject=Ql,ue.transform=uh,ue.unary=af,ue.union=n0,ue.unionBy=o0,ue.unionWith=i0,ue.uniq=a0,ue.uniqBy=s0,ue.uniqWith=l0,ue.unset=dh,ue.unzip=Ga,ue.unzipWith=Pl,ue.update=fh,ue.updateWith=hh,ue.values=To,ue.valuesIn=ph,ue.without=c0,ue.words=Zl,ue.wrap=sf,ue.xor=u0,ue.xorBy=d0,ue.xorWith=f0,ue.zip=h0,ue.zipObject=p0,ue.zipObjectDeep=g0,ue.zipWith=v0,ue.entries=Yl,ue.entriesIn=ql,ue.extend=Gl,ue.extendWith=Xi,rs(ue,ue),ue.add=pp,ue.attempt=ec,ue.camelCase=bh,ue.capitalize=Xl,ue.ceil=gp,ue.clamp=gh,ue.clone=cf,ue.cloneDeep=df,ue.cloneDeepWith=ff,ue.cloneWith=uf,ue.conformsTo=hf,ue.deburr=Jl,ue.defaultTo=Wh,ue.divide=vp,ue.endsWith=yh,ue.eq=Jr,ue.escape=Ah,ue.escapeRegExp=wh,ue.every=T0,ue.find=B0,ue.findIndex=xl,ue.findKey=Uf,ue.findLast=$0,ue.findLastIndex=Sl,ue.findLastKey=jf,ue.floor=mp,ue.forEach=$l,ue.forEachRight=kl,ue.forIn=Qf,ue.forInRight=Gf,ue.forOwn=Wf,ue.forOwnRight=Kf,ue.get=Xa,ue.gt=pf,ue.gte=gf,ue.has=Xf,ue.hasIn=Ja,ue.head=El,ue.identity=Nr,ue.includes=D0,ue.indexOf=$d,ue.inRange=vh,ue.invoke=eh,ue.isArguments=Jn,ue.isArray=Ft,ue.isArrayBuffer=vf,ue.isArrayLike=Ir,ue.isArrayLikeObject=sr,ue.isBoolean=mf,ue.isBuffer=In,ue.isDate=bf,ue.isElement=yf,ue.isEmpty=Af,ue.isEqual=wf,ue.isEqualWith=Cf,ue.isError=Ya,ue.isFinite=xf,ue.isFunction=mn,ue.isInteger=zl,ue.isLength=Yi,ue.isMap=Ll,ue.isMatch=Sf,ue.isMatchWith=_f,ue.isNaN=Ef,ue.isNative=Tf,ue.isNil=Bf,ue.isNull=Pf,ue.isNumber=Hl,ue.isObject=nr,ue.isObjectLike=ir,ue.isPlainObject=ti,ue.isRegExp=qa,ue.isSafeInteger=$f,ue.isSet=Vl,ue.isString=qi,ue.isSymbol=zr,ue.isTypedArray=Eo,ue.isUndefined=kf,ue.isWeakMap=If,ue.isWeakSet=Mf,ue.join=Dd,ue.kebabCase=Ch,ue.last=Gr,ue.lastIndexOf=Od,ue.lowerCase=xh,ue.lowerFirst=Sh,ue.lt=Nf,ue.lte=Df,ue.max=bp,ue.maxBy=yp,ue.mean=Ap,ue.meanBy=wp,ue.min=Cp,ue.minBy=xp,ue.stubArray=os,ue.stubFalse=is,ue.stubObject=lp,ue.stubString=cp,ue.stubTrue=up,ue.multiply=Sp,ue.nth=Rd,ue.noConflict=ep,ue.noop=ns,ue.now=Gi,ue.pad=_h,ue.padEnd=Eh,ue.padStart=Th,ue.parseInt=Ph,ue.random=mh,ue.reduce=L0,ue.reduceRight=H0,ue.repeat=Bh,ue.replace=$h,ue.result=sh,ue.round=_p,ue.runInContext=Me,ue.sample=U0,ue.size=G0,ue.snakeCase=kh,ue.some=W0,ue.sortedIndex=jd,ue.sortedIndexBy=Qd,ue.sortedIndexOf=Gd,ue.sortedLastIndex=Wd,ue.sortedLastIndexBy=Kd,ue.sortedLastIndexOf=Yd,ue.startCase=Mh,ue.startsWith=Nh,ue.subtract=Ep,ue.sum=Tp,ue.sumBy=Pp,ue.template=Dh,ue.times=dp,ue.toFinite=bn,ue.toInteger=Lt,ue.toLength=jl,ue.toLower=Oh,ue.toNumber=Wr,ue.toSafeInteger=Of,ue.toString=Xt,ue.toUpper=Rh,ue.trim=Fh,ue.trimEnd=zh,ue.trimStart=Lh,ue.truncate=Hh,ue.unescape=Vh,ue.uniqueId=hp,ue.upperCase=Uh,ue.upperFirst=Za,ue.each=$l,ue.eachRight=kl,ue.first=El,rs(ue,function(){var M={};return rn(ue,function(R,V){Jt.call(ue.prototype,V)||(M[V]=R)}),M}(),{chain:!1}),ue.VERSION=w,Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(M){ue[M].placeholder=ue}),Se(["drop","take"],function(M,R){Gt.prototype[M]=function(V){V=V===A?1:dr(Lt(V),0);var q=this.__filtered__&&!R?new Gt(this):this.clone();return q.__filtered__?q.__takeCount__=mr(V,q.__takeCount__):q.__views__.push({size:mr(V,Fe),type:M+(q.__dir__<0?"Right":"")}),q},Gt.prototype[M+"Right"]=function(V){return this.reverse()[M](V).reverse()}}),Se(["filter","map","takeWhile"],function(M,R){var V=R+1,q=V==de||V==ne;Gt.prototype[M]=function(te){var pe=this.clone();return pe.__iteratees__.push({iteratee:$t(te,3),type:V}),pe.__filtered__=pe.__filtered__||q,pe}}),Se(["head","last"],function(M,R){var V="take"+(R?"Right":"");Gt.prototype[M]=function(){return this[V](1).value()[0]}}),Se(["initial","tail"],function(M,R){var V="drop"+(R?"":"Right");Gt.prototype[M]=function(){return this.__filtered__?new Gt(this):this[V](1)}}),Gt.prototype.compact=function(){return this.filter(Nr)},Gt.prototype.find=function(M){return this.filter(M).head()},Gt.prototype.findLast=function(M){return this.reverse().find(M)},Gt.prototype.invokeMap=Ut(function(M,R){return typeof M=="function"?new Gt(this):this.map(function(V){return Yo(V,M,R)})}),Gt.prototype.reject=function(M){return this.filter(Ki($t(M)))},Gt.prototype.slice=function(M,R){M=Lt(M);var V=this;return V.__filtered__&&(M>0||R<0)?new Gt(V):(M<0?V=V.takeRight(-M):M&&(V=V.drop(M)),R!==A&&(R=Lt(R),V=R<0?V.dropRight(-R):V.take(R-M)),V)},Gt.prototype.takeRightWhile=function(M){return this.reverse().takeWhile(M).reverse()},Gt.prototype.toArray=function(){return this.take(Fe)},rn(Gt.prototype,function(M,R){var V=/^(?:filter|find|map|reject)|While$/.test(R),q=/^(?:head|last)$/.test(R),te=ue[q?"take"+(R=="last"?"Right":""):R],pe=q||/^find/.test(R);te&&(ue.prototype[R]=function(){var _e=this.__wrapped__,Be=q?[1]:arguments,De=_e instanceof Gt,Ze=Be[0],et=De||Ft(_e),ot=function(jt){var Wt=te.apply(ue,Yt([jt],Be));return q&&gt?Wt[0]:Wt};et&&V&&typeof Ze=="function"&&Ze.length!=1&&(De=et=!1);var gt=this.__chain__,St=!!this.__actions__.length,kt=pe&&!gt,Ht=De&&!St;if(!pe&&et){_e=Ht?_e:new Gt(this);var It=M.apply(_e,Be);return It.__actions__.push({func:ji,args:[ot],thisArg:A}),new Ur(It,gt)}return kt&&Ht?M.apply(this,Be):(It=this.thru(ot),kt?q?It.value()[0]:It.value():It)})}),Se(["pop","push","shift","sort","splice","unshift"],function(M){var R=vi[M],V=/^(?:push|sort|unshift)$/.test(M)?"tap":"thru",q=/^(?:pop|shift)$/.test(M);ue.prototype[M]=function(){var te=arguments;if(q&&!this.__chain__){var pe=this.value();return R.apply(Ft(pe)?pe:[],te)}return this[V](function(_e){return R.apply(Ft(_e)?_e:[],te)})}}),rn(Gt.prototype,function(M,R){var V=ue[R];if(V){var q=V.name+"";Jt.call(wo,q)||(wo[q]=[]),wo[q].push({name:R,func:V})}}),wo[Ri(A,H).name]=[{name:"wrapper",func:A}],Gt.prototype.clone=Lc,Gt.prototype.reverse=Hc,Gt.prototype.value=Vc,ue.prototype.at=b0,ue.prototype.chain=y0,ue.prototype.commit=A0,ue.prototype.next=w0,ue.prototype.plant=x0,ue.prototype.reverse=S0,ue.prototype.toJSON=ue.prototype.valueOf=ue.prototype.value=_0,ue.prototype.first=ue.prototype.head,Vo&&(ue.prototype[Vo]=C0),ue},bo=yc();Er?((Er.exports=bo)._=bo,zn._=bo):ar._=bo}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const speedEdit="_speedEdit_iqru4_1",speedIcon="_speedIcon_iqru4_6",styles$3={speedEdit,speedIcon},TheSpeed=defineComponent({name:"TheSpeed",emits:["change"],setup(d,{emit:b}){const A=reactive({speed:80});return()=>createVNode("div",null,[createVNode("div",{class:styles$3.speedEdit,onKeyup:w=>w.stopPropagation()},[createVNode(NInputNumber,{size:"large",value:A.speed,"onUpdate:value":[w=>A.speed=w,()=>{b("change",{type:"speeds",value:"Q:1/4="+A.speed})}],min:45,max:270},{prefix:()=>createVNode("div",{class:styles$3.speedIcon},[createVNode(TheIcon,{iconClassName:"icon-a-sudu-4fenyinfu",size:["2em","1em"]},null)])})])])}}),_hoisted_1$2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2$2=createBaseVNode("path",{d:"M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z",fill:"currentColor"},null,-1),_hoisted_3$2=[_hoisted_2$2],GripLinesVertical=defineComponent({name:"GripLinesVertical",render:function d(b,A){return openBlock(),createElementBlock("svg",_hoisted_1$2,_hoisted_3$2)}}),_hoisted_1$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2$1=createBaseVNode("path",{d:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",fill:"currentColor"},null,-1),_hoisted_3$1=[_hoisted_2$1],LongArrowAltDown=defineComponent({name:"LongArrowAltDown",render:function d(b,A){return openBlock(),createElementBlock("svg",_hoisted_1$1,_hoisted_3$1)}}),_hoisted_1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 256 512"},_hoisted_2=createBaseVNode("path",{d:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",fill:"currentColor"},null,-1),_hoisted_3=[_hoisted_2],LongArrowAltUp=defineComponent({name:"LongArrowAltUp",render:function d(b,A){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});var raf$1={exports:{}},performanceNow={exports:{}};(function(){var d,b,A,w,C,x;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow.exports=function(){return(d()-C)/1e6},b=process.hrtime,d=function(){var S;return S=b(),S[0]*1e9+S[1]},w=d(),x=process.uptime()*1e9,C=w-x):Date.now?(performanceNow.exports=function(){return Date.now()-A},A=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-A},A=new Date().getTime())}).call(commonjsGlobal);var performanceNowExports=performanceNow.exports,now=performanceNowExports,root=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix];for(var i$1=0;!raf&&i$1<vendors.length;i$1++)raf=root[vendors[i$1]+"Request"+suffix],caf=root[vendors[i$1]+"Cancel"+suffix]||root[vendors[i$1]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id=0,queue=[],frameDuration=1e3/60;raf=function(d){if(queue.length===0){var b=now(),A=Math.max(0,frameDuration-(b-last));last=A+b,setTimeout(function(){var w=queue.slice(0);queue.length=0;for(var C=0;C<w.length;C++)if(!w[C].cancelled)try{w[C].callback(last)}catch(x){setTimeout(function(){throw x},0)}},Math.round(A))}return queue.push({handle:++id,callback:d,cancelled:!1}),id},caf=function(d){for(var b=0;b<queue.length;b++)queue[b].handle===d&&(queue[b].cancelled=!0)}}raf$1.exports=function(d){return raf.call(root,d)};raf$1.exports.cancel=function(){caf.apply(root,arguments)};raf$1.exports.polyfill=function(d){d||(d=root),d.requestAnimationFrame=raf,d.cancelAnimationFrame=caf};var rafExports=raf$1.exports;const requestAnimationFrame$1=getDefaultExportFromCjs(rafExports);var rgbcolor=function(d){this.ok=!1,this.alpha=1,d.charAt(0)=="#"&&(d=d.substr(1,6)),d=d.replace(/ /g,""),d=d.toLowerCase();var b={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};d=b[d]||d;for(var A=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(P){return[parseInt(P[1]),parseInt(P[2]),parseInt(P[3]),parseFloat(P[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(P){return[parseInt(P[1]),parseInt(P[2]),parseInt(P[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(P){return[parseInt(P[1],16),parseInt(P[2],16),parseInt(P[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(P){return[parseInt(P[1]+P[1],16),parseInt(P[2]+P[2],16),parseInt(P[3]+P[3],16)]}}],w=0;w<A.length;w++){var C=A[w].re,x=A[w].process,S=C.exec(d);if(S){var E=x(S);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var P=this.r.toString(16),B=this.g.toString(16),k=this.b.toString(16);return P.length==1&&(P="0"+P),B.length==1&&(B="0"+B),k.length==1&&(k="0"+k),"#"+P+B+k},this.getHelpXML=function(){for(var P=new Array,B=0;B<A.length;B++)for(var k=A[B].example,$=0;$<k.length;$++)P[P.length]=k[$];for(var I in b)P[P.length]=I;var D=document.createElement("ul");D.setAttribute("id","rgbcolor-examples");for(var B=0;B<P.length;B++)try{var F=document.createElement("li"),z=new RGBColor(P[B]),L=document.createElement("div");L.style.cssText="margin: 3px; border: 1px solid black; background:"+z.toHex()+"; color:"+z.toHex(),L.appendChild(document.createTextNode("test"));var H=document.createTextNode(" "+P[B]+" -> "+z.toRGB()+" -> "+z.toHex());F.appendChild(L),F.appendChild(H),D.appendChild(F)}catch(Y){}return D}};const RGBColor$1=getDefaultExportFromCjs(rgbcolor);/*! *****************************************************************************
  13. Copyright (c) Microsoft Corporation.
  14. Permission to use, copy, modify, and/or distribute this software for any
  15. purpose with or without fee is hereby granted.
  16. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  17. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  18. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  19. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  20. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  21. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22. PERFORMANCE OF THIS SOFTWARE.
  23. ***************************************************************************** */var t=function(d,b){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,w){A.__proto__=w}||function(A,w){for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(A[C]=w[C])})(d,b)};function r(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function A(){this.constructor=d}t(d,b),d.prototype=b===null?Object.create(b):(A.prototype=b.prototype,new A)}function e(d){var b="";Array.isArray(d)||(d=[d]);for(var A=0;A<d.length;A++){var w=d[A];if(w.type===_.CLOSE_PATH)b+="z";else if(w.type===_.HORIZ_LINE_TO)b+=(w.relative?"h":"H")+w.x;else if(w.type===_.VERT_LINE_TO)b+=(w.relative?"v":"V")+w.y;else if(w.type===_.MOVE_TO)b+=(w.relative?"m":"M")+w.x+" "+w.y;else if(w.type===_.LINE_TO)b+=(w.relative?"l":"L")+w.x+" "+w.y;else if(w.type===_.CURVE_TO)b+=(w.relative?"c":"C")+w.x1+" "+w.y1+" "+w.x2+" "+w.y2+" "+w.x+" "+w.y;else if(w.type===_.SMOOTH_CURVE_TO)b+=(w.relative?"s":"S")+w.x2+" "+w.y2+" "+w.x+" "+w.y;else if(w.type===_.QUAD_TO)b+=(w.relative?"q":"Q")+w.x1+" "+w.y1+" "+w.x+" "+w.y;else if(w.type===_.SMOOTH_QUAD_TO)b+=(w.relative?"t":"T")+w.x+" "+w.y;else{if(w.type!==_.ARC)throw new Error('Unexpected command type "'+w.type+'" at index '+A+".");b+=(w.relative?"a":"A")+w.rX+" "+w.rY+" "+w.xRot+" "+ +w.lArcFlag+" "+ +w.sweepFlag+" "+w.x+" "+w.y}}return b}function i(d,b){var A=d[0],w=d[1];return[A*Math.cos(b)-w*Math.sin(b),A*Math.sin(b)+w*Math.cos(b)]}function a(){for(var d=[],b=0;b<arguments.length;b++)d[b]=arguments[b];for(var A=0;A<d.length;A++)if(typeof d[A]!="number")throw new Error("assertNumbers arguments["+A+"] is not a number. "+typeof d[A]+" == typeof "+d[A]);return!0}var n=Math.PI;function o(d,b,A){d.lArcFlag=d.lArcFlag===0?0:1,d.sweepFlag=d.sweepFlag===0?0:1;var w=d.rX,C=d.rY,x=d.x,S=d.y;w=Math.abs(d.rX),C=Math.abs(d.rY);var E=i([(b-x)/2,(A-S)/2],-d.xRot/180*n),P=E[0],B=E[1],k=Math.pow(P,2)/Math.pow(w,2)+Math.pow(B,2)/Math.pow(C,2);1<k&&(w*=Math.sqrt(k),C*=Math.sqrt(k)),d.rX=w,d.rY=C;var $=Math.pow(w,2)*Math.pow(B,2)+Math.pow(C,2)*Math.pow(P,2),I=(d.lArcFlag!==d.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(w,2)*Math.pow(C,2)-$)/$)),D=w*B/C*I,F=-C*P/w*I,z=i([D,F],d.xRot/180*n);d.cX=z[0]+(b+x)/2,d.cY=z[1]+(A+S)/2,d.phi1=Math.atan2((B-F)/C,(P-D)/w),d.phi2=Math.atan2((-B-F)/C,(-P-D)/w),d.sweepFlag===0&&d.phi2>d.phi1&&(d.phi2-=2*n),d.sweepFlag===1&&d.phi2<d.phi1&&(d.phi2+=2*n),d.phi1*=180/n,d.phi2*=180/n}function s(d,b,A){a(d,b,A);var w=d*d+b*b-A*A;if(0>w)return[];if(w===0)return[[d*A/(d*d+b*b),b*A/(d*d+b*b)]];var C=Math.sqrt(w);return[[(d*A+b*C)/(d*d+b*b),(b*A-d*C)/(d*d+b*b)],[(d*A-b*C)/(d*d+b*b),(b*A+d*C)/(d*d+b*b)]]}var u,h=Math.PI/180;function c$1(d,b,A){return(1-A)*d+A*b}function y(d,b,A,w){return d+Math.cos(w/180*n)*b+Math.sin(w/180*n)*A}function p(d,b,A,w){var C=1e-6,x=b-d,S=A-b,E=3*x+3*(w-A)-6*S,P=6*(S-x),B=3*x;return Math.abs(E)<C?[-B/P]:function(k,$,I){I===void 0&&(I=1e-6);var D=k*k/4-$;if(D<-I)return[];if(D<=I)return[-k/2];var F=Math.sqrt(D);return[-k/2-F,-k/2+F]}(P/E,B/E,C)}function m$1(d,b,A,w,C){var x=1-C;return d*(x*x*x)+b*(3*x*x*C)+A*(3*x*C*C)+w*(C*C*C)}(function(d){function b(){return C(function(E,P,B){return E.relative&&(E.x1!==void 0&&(E.x1+=P),E.y1!==void 0&&(E.y1+=B),E.x2!==void 0&&(E.x2+=P),E.y2!==void 0&&(E.y2+=B),E.x!==void 0&&(E.x+=P),E.y!==void 0&&(E.y+=B),E.relative=!1),E})}function A(){var E=NaN,P=NaN,B=NaN,k=NaN;return C(function($,I,D){return $.type&_.SMOOTH_CURVE_TO&&($.type=_.CURVE_TO,E=isNaN(E)?I:E,P=isNaN(P)?D:P,$.x1=$.relative?I-E:2*I-E,$.y1=$.relative?D-P:2*D-P),$.type&_.CURVE_TO?(E=$.relative?I+$.x2:$.x2,P=$.relative?D+$.y2:$.y2):(E=NaN,P=NaN),$.type&_.SMOOTH_QUAD_TO&&($.type=_.QUAD_TO,B=isNaN(B)?I:B,k=isNaN(k)?D:k,$.x1=$.relative?I-B:2*I-B,$.y1=$.relative?D-k:2*D-k),$.type&_.QUAD_TO?(B=$.relative?I+$.x1:$.x1,k=$.relative?D+$.y1:$.y1):(B=NaN,k=NaN),$})}function w(){var E=NaN,P=NaN;return C(function(B,k,$){if(B.type&_.SMOOTH_QUAD_TO&&(B.type=_.QUAD_TO,E=isNaN(E)?k:E,P=isNaN(P)?$:P,B.x1=B.relative?k-E:2*k-E,B.y1=B.relative?$-P:2*$-P),B.type&_.QUAD_TO){E=B.relative?k+B.x1:B.x1,P=B.relative?$+B.y1:B.y1;var I=B.x1,D=B.y1;B.type=_.CURVE_TO,B.x1=((B.relative?0:k)+2*I)/3,B.y1=((B.relative?0:$)+2*D)/3,B.x2=(B.x+2*I)/3,B.y2=(B.y+2*D)/3}else E=NaN,P=NaN;return B})}function C(E){var P=0,B=0,k=NaN,$=NaN;return function(I){if(isNaN(k)&&!(I.type&_.MOVE_TO))throw new Error("path must start with moveto");var D=E(I,P,B,k,$);return I.type&_.CLOSE_PATH&&(P=k,B=$),I.x!==void 0&&(P=I.relative?P+I.x:I.x),I.y!==void 0&&(B=I.relative?B+I.y:I.y),I.type&_.MOVE_TO&&(k=P,$=B),D}}function x(E,P,B,k,$,I){return a(E,P,B,k,$,I),C(function(D,F,z,L){var H=D.x1,Q=D.x2,Y=D.relative&&!isNaN(L),U=D.x!==void 0?D.x:Y?0:F,G=D.y!==void 0?D.y:Y?0:z;function W(Ke){return Ke*Ke}D.type&_.HORIZ_LINE_TO&&P!==0&&(D.type=_.LINE_TO,D.y=D.relative?0:z),D.type&_.VERT_LINE_TO&&B!==0&&(D.type=_.LINE_TO,D.x=D.relative?0:F),D.x!==void 0&&(D.x=D.x*E+G*B+(Y?0:$)),D.y!==void 0&&(D.y=U*P+D.y*k+(Y?0:I)),D.x1!==void 0&&(D.x1=D.x1*E+D.y1*B+(Y?0:$)),D.y1!==void 0&&(D.y1=H*P+D.y1*k+(Y?0:I)),D.x2!==void 0&&(D.x2=D.x2*E+D.y2*B+(Y?0:$)),D.y2!==void 0&&(D.y2=Q*P+D.y2*k+(Y?0:I));var K=E*k-P*B;if(D.xRot!==void 0&&(E!==1||P!==0||B!==0||k!==1))if(K===0)delete D.rX,delete D.rY,delete D.xRot,delete D.lArcFlag,delete D.sweepFlag,D.type=_.LINE_TO;else{var X=D.xRot*Math.PI/180,Z=Math.sin(X),oe=Math.cos(X),he=1/W(D.rX),J=1/W(D.rY),le=W(oe)*he+W(Z)*J,de=2*Z*oe*(he-J),me=W(Z)*he+W(oe)*J,ne=le*k*k-de*P*k+me*P*P,re=de*(E*k+P*B)-2*(le*B*k+me*E*P),fe=le*B*B-de*E*B+me*E*E,ce=(Math.atan2(re,ne-fe)+Math.PI)%Math.PI/2,we=Math.sin(ce),Fe=Math.cos(ce);D.rX=Math.abs(K)/Math.sqrt(ne*W(Fe)+re*we*Fe+fe*W(we)),D.rY=Math.abs(K)/Math.sqrt(ne*W(we)-re*we*Fe+fe*W(Fe)),D.xRot=180*ce/Math.PI}return D.sweepFlag!==void 0&&0>K&&(D.sweepFlag=+!D.sweepFlag),D})}function S(){return function(E){var P={};for(var B in E)P[B]=E[B];return P}}d.ROUND=function(E){function P(B){return Math.round(B*E)/E}return E===void 0&&(E=1e13),a(E),function(B){return B.x1!==void 0&&(B.x1=P(B.x1)),B.y1!==void 0&&(B.y1=P(B.y1)),B.x2!==void 0&&(B.x2=P(B.x2)),B.y2!==void 0&&(B.y2=P(B.y2)),B.x!==void 0&&(B.x=P(B.x)),B.y!==void 0&&(B.y=P(B.y)),B.rX!==void 0&&(B.rX=P(B.rX)),B.rY!==void 0&&(B.rY=P(B.rY)),B}},d.TO_ABS=b,d.TO_REL=function(){return C(function(E,P,B){return E.relative||(E.x1!==void 0&&(E.x1-=P),E.y1!==void 0&&(E.y1-=B),E.x2!==void 0&&(E.x2-=P),E.y2!==void 0&&(E.y2-=B),E.x!==void 0&&(E.x-=P),E.y!==void 0&&(E.y-=B),E.relative=!0),E})},d.NORMALIZE_HVZ=function(E,P,B){return E===void 0&&(E=!0),P===void 0&&(P=!0),B===void 0&&(B=!0),C(function(k,$,I,D,F){if(isNaN(D)&&!(k.type&_.MOVE_TO))throw new Error("path must start with moveto");return P&&k.type&_.HORIZ_LINE_TO&&(k.type=_.LINE_TO,k.y=k.relative?0:I),B&&k.type&_.VERT_LINE_TO&&(k.type=_.LINE_TO,k.x=k.relative?0:$),E&&k.type&_.CLOSE_PATH&&(k.type=_.LINE_TO,k.x=k.relative?D-$:D,k.y=k.relative?F-I:F),k.type&_.ARC&&(k.rX===0||k.rY===0)&&(k.type=_.LINE_TO,delete k.rX,delete k.rY,delete k.xRot,delete k.lArcFlag,delete k.sweepFlag),k})},d.NORMALIZE_ST=A,d.QT_TO_C=w,d.INFO=C,d.SANITIZE=function(E){E===void 0&&(E=0),a(E);var P=NaN,B=NaN,k=NaN,$=NaN;return C(function(I,D,F,z,L){var H=Math.abs,Q=!1,Y=0,U=0;if(I.type&_.SMOOTH_CURVE_TO&&(Y=isNaN(P)?0:D-P,U=isNaN(B)?0:F-B),I.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(P=I.relative?D+I.x2:I.x2,B=I.relative?F+I.y2:I.y2):(P=NaN,B=NaN),I.type&_.SMOOTH_QUAD_TO?(k=isNaN(k)?D:2*D-k,$=isNaN($)?F:2*F-$):I.type&_.QUAD_TO?(k=I.relative?D+I.x1:I.x1,$=I.relative?F+I.y1:I.y2):(k=NaN,$=NaN),I.type&_.LINE_COMMANDS||I.type&_.ARC&&(I.rX===0||I.rY===0||!I.lArcFlag)||I.type&_.CURVE_TO||I.type&_.SMOOTH_CURVE_TO||I.type&_.QUAD_TO||I.type&_.SMOOTH_QUAD_TO){var G=I.x===void 0?0:I.relative?I.x:I.x-D,W=I.y===void 0?0:I.relative?I.y:I.y-F;Y=isNaN(k)?I.x1===void 0?Y:I.relative?I.x:I.x1-D:k-D,U=isNaN($)?I.y1===void 0?U:I.relative?I.y:I.y1-F:$-F;var K=I.x2===void 0?0:I.relative?I.x:I.x2-D,X=I.y2===void 0?0:I.relative?I.y:I.y2-F;H(G)<=E&&H(W)<=E&&H(Y)<=E&&H(U)<=E&&H(K)<=E&&H(X)<=E&&(Q=!0)}return I.type&_.CLOSE_PATH&&H(D-z)<=E&&H(F-L)<=E&&(Q=!0),Q?[]:I})},d.MATRIX=x,d.ROTATE=function(E,P,B){P===void 0&&(P=0),B===void 0&&(B=0),a(E,P,B);var k=Math.sin(E),$=Math.cos(E);return x($,k,-k,$,P-P*$+B*k,B-P*k-B*$)},d.TRANSLATE=function(E,P){return P===void 0&&(P=0),a(E,P),x(1,0,0,1,E,P)},d.SCALE=function(E,P){return P===void 0&&(P=E),a(E,P),x(E,0,0,P,0,0)},d.SKEW_X=function(E){return a(E),x(1,0,Math.atan(E),1,0,0)},d.SKEW_Y=function(E){return a(E),x(1,Math.atan(E),0,1,0,0)},d.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),a(E),x(-1,0,0,1,E,0)},d.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),a(E),x(1,0,0,-1,0,E)},d.A_TO_C=function(){return C(function(E,P,B){return _.ARC===E.type?function(k,$,I){var D,F,z,L;k.cX||o(k,$,I);for(var H=Math.min(k.phi1,k.phi2),Q=Math.max(k.phi1,k.phi2)-H,Y=Math.ceil(Q/90),U=new Array(Y),G=$,W=I,K=0;K<Y;K++){var X=c$1(k.phi1,k.phi2,K/Y),Z=c$1(k.phi1,k.phi2,(K+1)/Y),oe=Z-X,he=4/3*Math.tan(oe*h/4),J=[Math.cos(X*h)-he*Math.sin(X*h),Math.sin(X*h)+he*Math.cos(X*h)],le=J[0],de=J[1],me=[Math.cos(Z*h),Math.sin(Z*h)],ne=me[0],re=me[1],fe=[ne+he*Math.sin(Z*h),re-he*Math.cos(Z*h)],ce=fe[0],we=fe[1];U[K]={relative:k.relative,type:_.CURVE_TO};var Fe=function(Ke,tt){var ut=i([Ke*k.rX,tt*k.rY],k.xRot),dt=ut[0],it=ut[1];return[k.cX+dt,k.cY+it]};D=Fe(le,de),U[K].x1=D[0],U[K].y1=D[1],F=Fe(ce,we),U[K].x2=F[0],U[K].y2=F[1],z=Fe(ne,re),U[K].x=z[0],U[K].y=z[1],k.relative&&(U[K].x1-=G,U[K].y1-=W,U[K].x2-=G,U[K].y2-=W,U[K].x-=G,U[K].y-=W),G=(L=[U[K].x,U[K].y])[0],W=L[1]}return U}(E,E.relative?0:P,E.relative?0:B):E})},d.ANNOTATE_ARCS=function(){return C(function(E,P,B){return E.relative&&(P=0,B=0),_.ARC===E.type&&o(E,P,B),E})},d.CLONE=S,d.CALCULATE_BOUNDS=function(){var E=function(I){var D={};for(var F in I)D[F]=I[F];return D},P=b(),B=w(),k=A(),$=C(function(I,D,F){var z=k(B(P(E(I))));function L(we){we>$.maxX&&($.maxX=we),we<$.minX&&($.minX=we)}function H(we){we>$.maxY&&($.maxY=we),we<$.minY&&($.minY=we)}if(z.type&_.DRAWING_COMMANDS&&(L(D),H(F)),z.type&_.HORIZ_LINE_TO&&L(z.x),z.type&_.VERT_LINE_TO&&H(z.y),z.type&_.LINE_TO&&(L(z.x),H(z.y)),z.type&_.CURVE_TO){L(z.x),H(z.y);for(var Q=0,Y=p(D,z.x1,z.x2,z.x);Q<Y.length;Q++)0<(ce=Y[Q])&&1>ce&&L(m$1(D,z.x1,z.x2,z.x,ce));for(var U=0,G=p(F,z.y1,z.y2,z.y);U<G.length;U++)0<(ce=G[U])&&1>ce&&H(m$1(F,z.y1,z.y2,z.y,ce))}if(z.type&_.ARC){L(z.x),H(z.y),o(z,D,F);for(var W=z.xRot/180*Math.PI,K=Math.cos(W)*z.rX,X=Math.sin(W)*z.rX,Z=-Math.sin(W)*z.rY,oe=Math.cos(W)*z.rY,he=z.phi1<z.phi2?[z.phi1,z.phi2]:-180>z.phi2?[z.phi2+360,z.phi1+360]:[z.phi2,z.phi1],J=he[0],le=he[1],de=function(we){var Fe=we[0],Ke=we[1],tt=180*Math.atan2(Ke,Fe)/Math.PI;return tt<J?tt+360:tt},me=0,ne=s(Z,-K,0).map(de);me<ne.length;me++)(ce=ne[me])>J&&ce<le&&L(y(z.cX,K,Z,ce));for(var re=0,fe=s(oe,-X,0).map(de);re<fe.length;re++){var ce;(ce=fe[re])>J&&ce<le&&H(y(z.cY,X,oe,ce))}}return I});return $.minX=1/0,$.maxX=-1/0,$.minY=1/0,$.maxY=-1/0,$}})(u||(u={}));var O,l=function(){function d(){}return d.prototype.round=function(b){return this.transform(u.ROUND(b))},d.prototype.toAbs=function(){return this.transform(u.TO_ABS())},d.prototype.toRel=function(){return this.transform(u.TO_REL())},d.prototype.normalizeHVZ=function(b,A,w){return this.transform(u.NORMALIZE_HVZ(b,A,w))},d.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},d.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},d.prototype.aToC=function(){return this.transform(u.A_TO_C())},d.prototype.sanitize=function(b){return this.transform(u.SANITIZE(b))},d.prototype.translate=function(b,A){return this.transform(u.TRANSLATE(b,A))},d.prototype.scale=function(b,A){return this.transform(u.SCALE(b,A))},d.prototype.rotate=function(b,A,w){return this.transform(u.ROTATE(b,A,w))},d.prototype.matrix=function(b,A,w,C,x,S){return this.transform(u.MATRIX(b,A,w,C,x,S))},d.prototype.skewX=function(b){return this.transform(u.SKEW_X(b))},d.prototype.skewY=function(b){return this.transform(u.SKEW_Y(b))},d.prototype.xSymmetry=function(b){return this.transform(u.X_AXIS_SYMMETRY(b))},d.prototype.ySymmetry=function(b){return this.transform(u.Y_AXIS_SYMMETRY(b))},d.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},d}(),T=function(d){return d===" "||d===" "||d==="\r"||d==="\n"},v=function(d){return"0".charCodeAt(0)<=d.charCodeAt(0)&&d.charCodeAt(0)<="9".charCodeAt(0)},f=function(d){function b(){var A=d.call(this)||this;return A.curNumber="",A.curCommandType=-1,A.curCommandRelative=!1,A.canParseCommandOrComma=!0,A.curNumberHasExp=!1,A.curNumberHasExpDigits=!1,A.curNumberHasDecimal=!1,A.curArgs=[],A}return r(b,d),b.prototype.finish=function(A){if(A===void 0&&(A=[]),this.parse(" ",A),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return A},b.prototype.parse=function(A,w){var C=this;w===void 0&&(w=[]);for(var x=function($){w.push($),C.curArgs.length=0,C.canParseCommandOrComma=!0},S=0;S<A.length;S++){var E=A[S],P=!(this.curCommandType!==_.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),B=v(E)&&(this.curNumber==="0"&&E==="0"||P);if(!v(E)||B)if(E!=="e"&&E!=="E")if(E!=="-"&&E!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(E!=="."||this.curNumberHasExp||this.curNumberHasDecimal||P){if(this.curNumber&&this.curCommandType!==-1){var k=Number(this.curNumber);if(isNaN(k))throw new SyntaxError("Invalid number ending at "+S);if(this.curCommandType===_.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>k)throw new SyntaxError('Expected positive number, got "'+k+'" at index "'+S+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+S+'"')}this.curArgs.push(k),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?x({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:k}):_.VERT_LINE_TO===this.curCommandType?x({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:k}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(x({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?x({type:_.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_.SMOOTH_CURVE_TO?x({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?x({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&x({type:_.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(B)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+S+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+S+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=_.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=_.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=_.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=_.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+S+".");this.curCommandType=_.ARC,this.curCommandRelative=E==="a"}else w.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return w},b.prototype.transform=function(A){return Object.create(this,{parse:{value:function(w,C){C===void 0&&(C=[]);for(var x=0,S=Object.getPrototypeOf(this).parse.call(this,w);x<S.length;x++){var E=S[x],P=A(E);Array.isArray(P)?C.push.apply(C,P):C.push(P)}return C}}})},b}(l),_=function(d){function b(A){var w=d.call(this)||this;return w.commands=typeof A=="string"?b.parse(A):A,w}return r(b,d),b.prototype.encode=function(){return b.encode(this.commands)},b.prototype.getBounds=function(){var A=u.CALCULATE_BOUNDS();return this.transform(A),A},b.prototype.transform=function(A){for(var w=[],C=0,x=this.commands;C<x.length;C++){var S=A(x[C]);Array.isArray(S)?w.push.apply(w,S):w.push(S)}return this.commands=w,this},b.encode=function(A){return e(A)},b.parse=function(A){var w=new f,C=[];return w.parse(A,C),w.finish(C),C},b.CLOSE_PATH=1,b.MOVE_TO=2,b.HORIZ_LINE_TO=4,b.VERT_LINE_TO=8,b.LINE_TO=16,b.CURVE_TO=32,b.SMOOTH_CURVE_TO=64,b.QUAD_TO=128,b.SMOOTH_QUAD_TO=256,b.ARC=512,b.LINE_COMMANDS=b.LINE_TO|b.HORIZ_LINE_TO|b.VERT_LINE_TO,b.DRAWING_COMMANDS=b.HORIZ_LINE_TO|b.VERT_LINE_TO|b.LINE_TO|b.CURVE_TO|b.SMOOTH_CURVE_TO|b.QUAD_TO|b.SMOOTH_QUAD_TO|b.ARC,b}(l),N=((O={})[_.MOVE_TO]=2,O[_.LINE_TO]=2,O[_.HORIZ_LINE_TO]=1,O[_.VERT_LINE_TO]=1,O[_.CLOSE_PATH]=0,O[_.QUAD_TO]=4,O[_.SMOOTH_QUAD_TO]=2,O[_.CURVE_TO]=6,O[_.SMOOTH_CURVE_TO]=4,O[_.ARC]=7,O);function _typeof(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(b){return typeof b}:_typeof=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},_typeof(d)}function _classCallCheck(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")}var mulTable=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shgTable=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(d,b,A,w,C){if(typeof d=="string"&&(d=document.getElementById(d)),!d||_typeof(d)!=="object"||!("getContext"in d))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var x=d.getContext("2d");try{return x.getImageData(b,A,w,C)}catch(S){throw new Error("unable to access image data: "+S)}}function processCanvasRGBA(d,b,A,w,C,x){if(!(isNaN(x)||x<1)){x|=0;var S=getImageDataFromCanvas(d,b,A,w,C);S=processImageDataRGBA(S,b,A,w,C,x),d.getContext("2d").putImageData(S,b,A)}}function processImageDataRGBA(d,b,A,w,C,x){for(var S=d.data,E=2*x+1,P=w-1,B=C-1,k=x+1,$=k*(k+1)/2,I=new BlurStack,D=I,F,z=1;z<E;z++)D=D.next=new BlurStack,z===k&&(F=D);D.next=I;for(var L=null,H=null,Q=0,Y=0,U=mulTable[x],G=shgTable[x],W=0;W<C;W++){D=I;for(var K=S[Y],X=S[Y+1],Z=S[Y+2],oe=S[Y+3],he=0;he<k;he++)D.r=K,D.g=X,D.b=Z,D.a=oe,D=D.next;for(var J=0,le=0,de=0,me=0,ne=k*K,re=k*X,fe=k*Z,ce=k*oe,we=$*K,Fe=$*X,Ke=$*Z,tt=$*oe,ut=1;ut<k;ut++){var dt=Y+((P<ut?P:ut)<<2),it=S[dt],$e=S[dt+1],ke=S[dt+2],Oe=S[dt+3],Qe=k-ut;we+=(D.r=it)*Qe,Fe+=(D.g=$e)*Qe,Ke+=(D.b=ke)*Qe,tt+=(D.a=Oe)*Qe,J+=it,le+=$e,de+=ke,me+=Oe,D=D.next}L=I,H=F;for(var Je=0;Je<w;Je++){var ve=tt*U>>G;if(S[Y+3]=ve,ve!==0){var ye=255/ve;S[Y]=(we*U>>G)*ye,S[Y+1]=(Fe*U>>G)*ye,S[Y+2]=(Ke*U>>G)*ye}else S[Y]=S[Y+1]=S[Y+2]=0;we-=ne,Fe-=re,Ke-=fe,tt-=ce,ne-=L.r,re-=L.g,fe-=L.b,ce-=L.a;var Te=Je+x+1;Te=Q+(Te<P?Te:P)<<2,J+=L.r=S[Te],le+=L.g=S[Te+1],de+=L.b=S[Te+2],me+=L.a=S[Te+3],we+=J,Fe+=le,Ke+=de,tt+=me,L=L.next;var ee=H,se=ee.r,ie=ee.g,be=ee.b,Ee=ee.a;ne+=se,re+=ie,fe+=be,ce+=Ee,J-=se,le-=ie,de-=be,me-=Ee,H=H.next,Y+=4}Q+=w}for(var Ce=0;Ce<w;Ce++){Y=Ce<<2;var ge=S[Y],Ie=S[Y+1],Le=S[Y+2],Ye=S[Y+3],rt=k*ge,lt=k*Ie,pt=k*Le,He=k*Ye,at=$*ge,nt=$*Ie,mt=$*Le,Tt=$*Ye;D=I;for(var Dt=0;Dt<k;Dt++)D.r=ge,D.g=Ie,D.b=Le,D.a=Ye,D=D.next;for(var yt=w,At=0,Ae=0,Re=0,qe=0,ft=1;ft<=x;ft++){Y=yt+Ce<<2;var vt=k-ft;at+=(D.r=ge=S[Y])*vt,nt+=(D.g=Ie=S[Y+1])*vt,mt+=(D.b=Le=S[Y+2])*vt,Tt+=(D.a=Ye=S[Y+3])*vt,qe+=ge,At+=Ie,Ae+=Le,Re+=Ye,D=D.next,ft<B&&(yt+=w)}Y=Ce,L=I,H=F;for(var bt=0;bt<C;bt++){var xe=Y<<2;S[xe+3]=Ye=Tt*U>>G,Ye>0?(Ye=255/Ye,S[xe]=(at*U>>G)*Ye,S[xe+1]=(nt*U>>G)*Ye,S[xe+2]=(mt*U>>G)*Ye):S[xe]=S[xe+1]=S[xe+2]=0,at-=rt,nt-=lt,mt-=pt,Tt-=He,rt-=L.r,lt-=L.g,pt-=L.b,He-=L.a,xe=Ce+((xe=bt+k)<B?xe:B)*w<<2,at+=qe+=L.r=S[xe],nt+=At+=L.g=S[xe+1],mt+=Ae+=L.b=S[xe+2],Tt+=Re+=L.a=S[xe+3],L=L.next,rt+=ge=H.r,lt+=Ie=H.g,pt+=Le=H.b,He+=Ye=H.a,qe-=ge,At-=Ie,Ae-=Le,Re-=Ye,H=H.next,Y+=w}}return d}var BlurStack=function d(){_classCallCheck(this,d),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(d){return d.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(d){return d.replace(/^[\n \t]+/,"")}function trimRight(d){return d.replace(/[\n \t]+$/,"")}function toNumbers(d){const b=d.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);return b?b.map(parseFloat):[]}function toMatrixValue(d){const b=toNumbers(d);return[b[0]||0,b[1]||0,b[2]||0,b[3]||0,b[4]||0,b[5]||0]}const allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(d){return allUppercase.test(d)?d.toLowerCase():d}function parseExternalUrl(d){const b=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(d);return b&&(b[2]||b[3]||b[4])||""}function normalizeColor(d){if(!d.startsWith("rgb"))return d;let b=3;return d.replace(/\d+(\.\d+)?/g,(w,C)=>b--&&C?String(Math.round(parseFloat(w))):w)}const attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(d,b){const A=b.exec(d);return A?[d.replace(b," "),A.length]:[d,0]}function getSelectorSpecificity(d){const b=[0,0,0];let A=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),w=0;return[A,w]=findSelectorMatch(A,attributeRegex),b[1]+=w,[A,w]=findSelectorMatch(A,idRegex),b[0]+=w,[A,w]=findSelectorMatch(A,classRegex),b[1]+=w,[A,w]=findSelectorMatch(A,pseudoElementRegex),b[2]+=w,[A,w]=findSelectorMatch(A,pseudoClassWithBracketsRegex),b[1]+=w,[A,w]=findSelectorMatch(A,pseudoClassRegex),b[1]+=w,A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[A,w]=findSelectorMatch(A,elementRegex),b[2]+=w,b.join("")}const PSEUDO_ZERO=1e-8;function vectorMagnitude(d){return Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2))}function vectorsRatio(d,b){return(d[0]*b[0]+d[1]*b[1])/(vectorMagnitude(d)*vectorMagnitude(b))}function vectorsAngle(d,b){return(d[0]*b[1]<d[1]*b[0]?-1:1)*Math.acos(vectorsRatio(d,b))}function CB1(d){return d*d*d}function CB2(d){return 3*d*d*(1-d)}function CB3(d){return 3*d*(1-d)*(1-d)}function CB4(d){return(1-d)*(1-d)*(1-d)}function QB1(d){return d*d}function QB2(d){return 2*d*(1-d)}function QB3(d){return(1-d)*(1-d)}class Property{static empty(b){return new Property(b,"EMPTY","")}split(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ";const{document:A,name:w}=this;return compressSpaces(this.getString()).trim().split(b).map(C=>new Property(A,w,C))}hasValue(b){const A=this.value;return A!==null&&A!==""&&(b||A!==0)&&typeof A<"u"}isString(b){const{value:A}=this,w=typeof A=="string";return!w||!b?w:b.test(A)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;const b=this.getString();switch(!0){case b.endsWith("px"):case/^[0-9]+$/.test(b):return!0;default:return!1}}setValue(b){return this.value=b,this}getValue(b){return typeof b>"u"||this.hasValue()?this.value:b}getNumber(b){if(!this.hasValue())return typeof b>"u"?0:parseFloat(b);const{value:A}=this;let w=parseFloat(A);return this.isString(/%$/)&&(w/=100),w}getString(b){return typeof b>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(b)}getColor(b){let A=this.getString(b);return this.isNormalizedColor||(this.isNormalizedColor=!0,A=normalizeColor(A),this.value=A),A}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;const[w,C]=typeof b=="boolean"?[void 0,b]:[b],{viewPort:x}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(x.computeSize("x"),x.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(x.computeSize("x"),x.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*x.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*x.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&C):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*x.computeSize(w);default:{const S=this.getNumber();return A&&S<1?S*x.computeSize(w):S}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){const b=this.getString(),A=/#([^)'"]+)/.exec(b),w=(A==null?void 0:A[1])||b;return this.document.definitions[w]}getFillStyleDefinition(b,A){let w=this.getDefinition();if(!w)return null;if(typeof w.createGradient=="function"&&"getBoundingBox"in b)return w.createGradient(this.document.ctx,b,A);if(typeof w.createPattern=="function"){if(w.getHrefAttribute().hasValue()){const C=w.getAttribute("patternTransform");w=w.getHrefAttribute().getDefinition(),w&&C.hasValue()&&w.getAttribute("patternTransform",!0).setValue(C.value)}if(w)return w.createPattern(this.document.ctx,b,A)}return null}getTextBaseline(){if(!this.hasValue())return null;const b=this.getString();return Property.textBaselineMapping[b]||null}addOpacity(b){let A=this.getColor();const w=A.length;let C=0;for(let x=0;x<w&&(A[x]===","&&C++,C!==3);x++);if(b.hasValue()&&this.isString()&&C!==3){const x=new RGBColor$1(A);x.ok&&(x.alpha=b.getNumber(),A=x.toRGBA())}return new Property(this.document,this.name,A)}constructor(b,A,w){this.document=b,this.name=A,this.value=w,this.isNormalizedColor=!1}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{clear(){this.viewPorts=[]}setCurrent(b,A){this.viewPorts.push({width:b,height:A})}removeCurrent(){this.viewPorts.pop()}getRoot(){const[b]=this.viewPorts;return b||getDefault()}getCurrent(){const{viewPorts:b}=this,A=b[b.length-1];return A||getDefault()}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(b){return typeof b=="number"?b:b==="x"?this.width:b==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}constructor(){this.viewPorts=[]}}ViewPort.DEFAULT_VIEWPORT_WIDTH=800;ViewPort.DEFAULT_VIEWPORT_HEIGHT=600;function getDefault(){return{width:ViewPort.DEFAULT_VIEWPORT_WIDTH,height:ViewPort.DEFAULT_VIEWPORT_HEIGHT}}class Point{static parse(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const[w=A,C=A]=toNumbers(b);return new Point(w,C)}static parseScale(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const[w=A,C=w]=toNumbers(b);return new Point(w,C)}static parsePath(b){const A=toNumbers(b),w=A.length,C=[];for(let x=0;x<w;x+=2)C.push(new Point(A[x],A[x+1]));return C}angleTo(b){return Math.atan2(b.y-this.y,b.x-this.x)}applyTransform(b){const{x:A,y:w}=this,C=A*b[0]+w*b[2]+b[4],x=A*b[1]+w*b[3]+b[5];this.x=C,this.y=x}constructor(b,A){this.x=b,this.y=A}}class Mouse{isWorking(){return this.working}start(){if(this.working)return;const{screen:b,onClick:A,onMouseMove:w}=this,C=b.ctx.canvas;C.onclick=A,C.onmousemove=w,this.working=!0}stop(){if(!this.working)return;const b=this.screen.ctx.canvas;this.working=!1,b.onclick=null,b.onmousemove=null}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(!this.working)return;const{screen:b,events:A,eventElements:w}=this,{style:C}=b.ctx.canvas;let x;C&&(C.cursor=""),A.forEach((S,E)=>{let{run:P}=S;for(x=w[E];x;)P(x),x=x.parent}),this.events=[],this.eventElements=[]}checkPath(b,A){if(!this.working||!A)return;const{events:w,eventElements:C}=this;w.forEach((x,S)=>{let{x:E,y:P}=x;!C[S]&&A.isPointInPath&&A.isPointInPath(E,P)&&(C[S]=b)})}checkBoundingBox(b,A){if(!this.working||!A)return;const{events:w,eventElements:C}=this;w.forEach((x,S)=>{let{x:E,y:P}=x;!C[S]&&A.isPointInBox(E,P)&&(C[S]=b)})}mapXY(b,A){const{window:w,ctx:C}=this.screen,x=new Point(b,A);let S=C.canvas;for(;S;)x.x-=S.offsetLeft,x.y-=S.offsetTop,S=S.offsetParent;return w!=null&&w.scrollX&&(x.x+=w.scrollX),w!=null&&w.scrollY&&(x.y+=w.scrollY),x}onClick(b){const{x:A,y:w}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onclick",x:A,y:w,run(C){C.onClick&&C.onClick()}})}onMouseMove(b){const{x:A,y:w}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onmousemove",x:A,y:w,run(C){C.onMouseMove&&C.onMouseMove()}})}constructor(b){this.screen=b,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}}const defaultWindow$2=typeof window<"u"?window:null,defaultFetch$1=typeof fetch<"u"?fetch.bind(void 0):void 0;class Screen{wait(b){this.waits.push(b)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;const b=this.waits.every(A=>A());return b&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=b,b}setDefaults(b){b.strokeStyle="rgba(0,0,0,0)",b.lineCap="butt",b.lineJoin="miter",b.miterLimit=4}setViewBox(b){let{document:A,ctx:w,aspectRatio:C,width:x,desiredWidth:S,height:E,desiredHeight:P,minX:B=0,minY:k=0,refX:$,refY:I,clip:D=!1,clipX:F=0,clipY:z=0}=b;const L=compressSpaces(C).replace(/^defer\s/,""),[H,Q]=L.split(" "),Y=H||"xMidYMid",U=Q||"meet",G=x/S,W=E/P,K=Math.min(G,W),X=Math.max(G,W);let Z=S,oe=P;U==="meet"&&(Z*=K,oe*=K),U==="slice"&&(Z*=X,oe*=X);const he=new Property(A,"refX",$),J=new Property(A,"refY",I),le=he.hasValue()&&J.hasValue();if(le&&w.translate(-K*he.getPixels("x"),-K*J.getPixels("y")),D){const de=K*F,me=K*z;w.beginPath(),w.moveTo(de,me),w.lineTo(x,me),w.lineTo(x,E),w.lineTo(de,E),w.closePath(),w.clip()}if(!le){const de=U==="meet"&&K===W,me=U==="slice"&&X===W,ne=U==="meet"&&K===G,re=U==="slice"&&X===G;Y.startsWith("xMid")&&(de||me)&&w.translate(x/2-Z/2,0),Y.endsWith("YMid")&&(ne||re)&&w.translate(0,E/2-oe/2),Y.startsWith("xMax")&&(de||me)&&w.translate(x-Z,0),Y.endsWith("YMax")&&(ne||re)&&w.translate(0,E-oe)}switch(!0){case Y==="none":w.scale(G,W);break;case U==="meet":w.scale(K,K);break;case U==="slice":w.scale(X,X);break}w.translate(-B,-k)}start(b){let{enableRedraw:A=!1,ignoreMouse:w=!1,ignoreAnimation:C=!1,ignoreDimensions:x=!1,ignoreClear:S=!1,forceRedraw:E,scaleWidth:P,scaleHeight:B,offsetX:k,offsetY:$}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{mouse:I}=this,D=1e3/Screen.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=D,this.readyPromise=new Promise(Q=>{this.resolveReady=Q}),this.isReady()&&this.render(b,x,S,P,B,k,$),!A)return;let F=Date.now(),z=F,L=0;const H=()=>{F=Date.now(),L=F-z,L>=D&&(z=F-L%D,this.shouldUpdate(C,E)&&(this.render(b,x,S,P,B,k,$),I.runEvents())),this.intervalId=requestAnimationFrame$1(H)};w||I.start(),this.intervalId=requestAnimationFrame$1(H)}stop(){this.intervalId&&(requestAnimationFrame$1.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(b,A){if(!b){const{frameDuration:w}=this;if(this.animations.reduce((x,S)=>S.update(w)||x,!1))return!0}return!!(typeof A=="function"&&A()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(b,A,w,C,x,S,E){const{viewPort:P,ctx:B,isFirstRender:k}=this,$=B.canvas;P.clear(),$.width&&$.height&&P.setCurrent($.width,$.height);const I=b.getStyle("width"),D=b.getStyle("height");!A&&(k||typeof C!="number"&&typeof x!="number")&&(I.hasValue()&&($.width=I.getPixels("x"),$.style&&($.style.width="".concat($.width,"px"))),D.hasValue()&&($.height=D.getPixels("y"),$.style&&($.style.height="".concat($.height,"px"))));let F=$.clientWidth||$.width,z=$.clientHeight||$.height;if(A&&I.hasValue()&&D.hasValue()&&(F=I.getPixels("x"),z=D.getPixels("y")),P.setCurrent(F,z),typeof S=="number"&&b.getAttribute("x",!0).setValue(S),typeof E=="number"&&b.getAttribute("y",!0).setValue(E),typeof C=="number"||typeof x=="number"){const L=toNumbers(b.getAttribute("viewBox").getString());let H=0,Q=0;if(typeof C=="number"){const U=b.getStyle("width");U.hasValue()?H=U.getPixels("x")/C:L[2]&&!isNaN(L[2])&&(H=L[2]/C)}if(typeof x=="number"){const U=b.getStyle("height");U.hasValue()?Q=U.getPixels("y")/x:L[3]&&!isNaN(L[3])&&(Q=L[3]/x)}H||(H=Q),Q||(Q=H),b.getAttribute("width",!0).setValue(C),b.getAttribute("height",!0).setValue(x);const Y=b.getStyle("transform",!0,!0);Y.setValue("".concat(Y.getString()," scale(").concat(1/H,", ").concat(1/Q,")"))}w||B.clearRect(0,0,F,z),b.render(B),k&&(this.isFirstRender=!1)}constructor(b,{fetch:A=defaultFetch$1,window:w=defaultWindow$2}={}){if(this.ctx=b,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=w,!A)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=A}}Screen.defaultWindow=defaultWindow$2;Screen.defaultFetch=defaultFetch$1;Screen.FRAMERATE=30;Screen.MAX_VIRTUAL_PIXELS=3e4;const{defaultFetch}=Screen,DefaultDOMParser=typeof DOMParser<"u"?DOMParser:void 0;class Parser{async parse(b){return b.startsWith("<")?this.parseFromString(b):this.load(b)}parseFromString(b){const A=new this.DOMParser;try{return this.checkDocument(A.parseFromString(b,"image/svg+xml"))}catch(w){return this.checkDocument(A.parseFromString(b,"text/xml"))}}checkDocument(b){const A=b.getElementsByTagName("parsererror")[0];if(A)throw new Error(A.textContent||"Unknown parse error");return b}async load(b){const w=await(await this.fetch(b)).text();return this.parseFromString(w)}constructor({fetch:b=defaultFetch,DOMParser:A=DefaultDOMParser}={}){if(!b)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!A)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=b,this.DOMParser=A}}class Translate{apply(b){const{x:A,y:w}=this.point;b.translate(A||0,w||0)}unapply(b){const{x:A,y:w}=this.point;b.translate(-1*A||0,-1*w||0)}applyToPoint(b){const{x:A,y:w}=this.point;b.applyTransform([1,0,0,1,A||0,w||0])}constructor(b,A){this.type="translate",this.point=Point.parse(A)}}class Rotate{apply(b){const{cx:A,cy:w,originX:C,originY:x,angle:S}=this,E=A+C.getPixels("x"),P=w+x.getPixels("y");b.translate(E,P),b.rotate(S.getRadians()),b.translate(-E,-P)}unapply(b){const{cx:A,cy:w,originX:C,originY:x,angle:S}=this,E=A+C.getPixels("x"),P=w+x.getPixels("y");b.translate(E,P),b.rotate(-1*S.getRadians()),b.translate(-E,-P)}applyToPoint(b){const{cx:A,cy:w,angle:C}=this,x=C.getRadians();b.applyTransform([1,0,0,1,A||0,w||0]),b.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),b.applyTransform([1,0,0,1,-A||0,-w||0])}constructor(b,A,w){this.type="rotate";const C=toNumbers(A);this.angle=new Property(b,"angle",C[0]),this.originX=w[0],this.originY=w[1],this.cx=C[1]||0,this.cy=C[2]||0}}class Scale{apply(b){const{scale:{x:A,y:w},originX:C,originY:x}=this,S=C.getPixels("x"),E=x.getPixels("y");b.translate(S,E),b.scale(A,w||A),b.translate(-S,-E)}unapply(b){const{scale:{x:A,y:w},originX:C,originY:x}=this,S=C.getPixels("x"),E=x.getPixels("y");b.translate(S,E),b.scale(1/A,1/w||A),b.translate(-S,-E)}applyToPoint(b){const{x:A,y:w}=this.scale;b.applyTransform([A||0,0,0,w||0,0,0])}constructor(b,A,w){this.type="scale";const C=Point.parseScale(A);(C.x===0||C.y===0)&&(C.x=PSEUDO_ZERO,C.y=PSEUDO_ZERO),this.scale=C,this.originX=w[0],this.originY=w[1]}}class Matrix{apply(b){const{originX:A,originY:w,matrix:C}=this,x=A.getPixels("x"),S=w.getPixels("y");b.translate(x,S),b.transform(C[0],C[1],C[2],C[3],C[4],C[5]),b.translate(-x,-S)}unapply(b){const{originX:A,originY:w,matrix:C}=this,x=C[0],S=C[2],E=C[4],P=C[1],B=C[3],k=C[5],$=0,I=0,D=1,F=1/(x*(B*D-k*I)-S*(P*D-k*$)+E*(P*I-B*$)),z=A.getPixels("x"),L=w.getPixels("y");b.translate(z,L),b.transform(F*(B*D-k*I),F*(k*$-P*D),F*(E*I-S*D),F*(x*D-E*$),F*(S*k-E*B),F*(E*P-x*k)),b.translate(-z,-L)}applyToPoint(b){b.applyTransform(this.matrix)}constructor(b,A,w){this.type="matrix",this.matrix=toMatrixValue(A),this.originX=w[0],this.originY=w[1]}}class Skew extends Matrix{constructor(b,A,w){super(b,A,w),this.type="skew",this.angle=new Property(b,"angle",A)}}class SkewX extends Skew{constructor(b,A,w){super(b,A,w),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(b,A,w){super(b,A,w),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function parseTransforms(d){return compressSpaces(d).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(d){const[b="",A=""]=d.split("(");return[b.trim(),A.trim().replace(")","")]}class Transform{static fromElement(b,A){const w=A.getStyle("transform",!1,!0);if(w.hasValue()){const[C,x=C]=A.getStyle("transform-origin",!1,!0).split();if(C&&x){const S=[C,x];return new Transform(b,w.getString(),S)}}return null}apply(b){this.transforms.forEach(A=>A.apply(b))}unapply(b){this.transforms.forEach(A=>A.unapply(b))}applyToPoint(b){this.transforms.forEach(A=>A.applyToPoint(b))}constructor(b,A,w){this.document=b,this.transforms=[],parseTransforms(A).forEach(x=>{if(x==="none")return;const[S,E]=parseTransform(x),P=Transform.transformTypes[S];P&&this.transforms.push(new P(this.document,E,w))})}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};let Element$1=class as{getAttribute(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const w=this.attributes[b];if(!w&&A){const C=new Property(this.document,b,"");return this.attributes[b]=C,C}return w||Property.empty(this.document)}getHrefAttribute(){let b;for(const A in this.attributes)if(A==="href"||A.endsWith(":href")){b=this.attributes[A];break}return b||Property.empty(this.document)}getStyle(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const C=this.styles[b];if(C)return C;const x=this.getAttribute(b);if(x.hasValue())return this.styles[b]=x,x;if(!w){const{parent:S}=this;if(S){const E=S.getStyle(b);if(E.hasValue())return E}}if(A){const S=new Property(this.document,b,"");return this.styles[b]=S,S}return Property.empty(this.document)}render(b){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(b.save(),this.getStyle("mask").hasValue()){const A=this.getStyle("mask").getDefinition();A&&(this.applyEffects(b),A.apply(b,this))}else if(this.getStyle("filter").getValue("none")!=="none"){const A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(b),A.apply(b,this))}else this.setContext(b),this.renderChildren(b),this.clearContext(b);b.restore()}}setContext(b){}applyEffects(b){const A=Transform.fromElement(this.document,this);A&&A.apply(b);const w=this.getStyle("clip-path",!1,!0);if(w.hasValue()){const C=w.getDefinition();C&&C.apply(b)}}clearContext(b){}renderChildren(b){this.children.forEach(A=>{A.render(b)})}addChild(b){const A=b instanceof as?b:this.document.createElement(b);A.parent=this,as.ignoreChildTypes.includes(A.type)||this.children.push(A)}matchesSelector(b){var A;const{node:w}=this;if(typeof w.matches=="function")return w.matches(b);const C=(A=w.getAttribute)===null||A===void 0?void 0:A.call(w,"class");return!C||C===""?!1:C.split(" ").some(x=>".".concat(x)===b)}addStylesFromStyleDefinition(){const{styles:b,stylesSpecificity:A}=this.document;let w;for(const C in b)if(!C.startsWith("@")&&this.matchesSelector(C)){const x=b[C],S=A[C];if(x)for(const E in x){let P=this.stylesSpecificity[E];typeof P>"u"&&(P="000"),S&&S>=P&&(w=x[E],w&&(this.styles[E]=w),this.stylesSpecificity[E]=S)}}}removeStyles(b,A){return A.reduce((C,x)=>{const S=b.getStyle(x);if(!S.hasValue())return C;const E=S.getString();return S.setValue(""),[...C,[x,E]]},[])}restoreStyles(b,A){A.forEach(w=>{let[C,x]=w;b.getStyle(C,!0).setValue(x)})}isFirstChild(){var b;return((b=this.parent)===null||b===void 0?void 0:b.children.indexOf(this))===0}constructor(b,A,w=!1){if(this.document=b,this.node=A,this.captureTextNodes=w,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!A||A.nodeType!==1)return;Array.from(A.attributes).forEach(S=>{const E=normalizeAttributeName(S.nodeName);this.attributes[E]=new Property(b,E,S.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(E=>E.trim()).forEach(E=>{if(!E)return;const[P,B]=E.split(":").map(k=>k.trim());P&&(this.styles[P]=new Property(b,P,B))});const{definitions:C}=b,x=this.getAttribute("id");x.hasValue()&&(C[x.getString()]||(C[x.getString()]=this)),Array.from(A.childNodes).forEach(S=>{if(S.nodeType===1)this.addChild(S);else if(w&&(S.nodeType===3||S.nodeType===4)){const E=b.createTextNode(S);E.getText().length>0&&this.addChild(E)}})}};Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(b,A,w){super(b,A,w)}}function wrapFontFamily(d){const b=d.trim();return/^('|")/.test(b)?b:'"'.concat(b,'"')}function prepareFontFamily(d){return typeof process>"u"?d:d.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(d){if(!d)return"";const b=d.trim().toLowerCase();switch(b){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return b;default:return/^oblique\s+(-|)\d+deg$/.test(b)?b:""}}function prepareFontWeight(d){if(!d)return"";const b=d.trim().toLowerCase();switch(b){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return b;default:return/^[\d.]+$/.test(b)?b:""}}class Font{static parse(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",A=arguments.length>1?arguments[1]:void 0,w="",C="",x="",S="",E="";const P=compressSpaces(b).trim().split(" "),B={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return P.forEach(k=>{switch(!0){case(!B.fontStyle&&Font.styles.includes(k)):k!=="inherit"&&(w=k),B.fontStyle=!0;break;case(!B.fontVariant&&Font.variants.includes(k)):k!=="inherit"&&(C=k),B.fontStyle=!0,B.fontVariant=!0;break;case(!B.fontWeight&&Font.weights.includes(k)):k!=="inherit"&&(x=k),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0;break;case!B.fontSize:k!=="inherit"&&(S=k.split("/")[0]||""),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0,B.fontSize=!0;break;default:k!=="inherit"&&(E+=k)}}),new Font(w,C,x,S,E,A)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}constructor(b,A,w,C,x,S){const E=S?typeof S=="string"?Font.parse(S):S:{};this.fontFamily=x||E.fontFamily,this.fontSize=C||E.fontSize,this.fontStyle=b||E.fontStyle,this.fontWeight=w||E.fontWeight,this.fontVariant=A||E.fontVariant}}Font.styles="normal|italic|oblique|inherit";Font.variants="normal|small-caps|inherit";Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(b,A){typeof b<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=b,this.x2=b),b<this.x1&&(this.x1=b),b>this.x2&&(this.x2=b)),typeof A<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=A,this.y2=A),A<this.y1&&(this.y1=A),A>this.y2&&(this.y2=A))}addX(b){this.addPoint(b,0)}addY(b){this.addPoint(0,b)}addBoundingBox(b){if(!b)return;const{x1:A,y1:w,x2:C,y2:x}=b;this.addPoint(A,w),this.addPoint(C,x)}sumCubic(b,A,w,C,x){return Math.pow(1-b,3)*A+3*Math.pow(1-b,2)*b*w+3*(1-b)*Math.pow(b,2)*C+Math.pow(b,3)*x}bezierCurveAdd(b,A,w,C,x){const S=6*A-12*w+6*C,E=-3*A+9*w-9*C+3*x,P=3*w-3*A;if(E===0){if(S===0)return;const I=-P/S;0<I&&I<1&&(b?this.addX(this.sumCubic(I,A,w,C,x)):this.addY(this.sumCubic(I,A,w,C,x)));return}const B=Math.pow(S,2)-4*P*E;if(B<0)return;const k=(-S+Math.sqrt(B))/(2*E);0<k&&k<1&&(b?this.addX(this.sumCubic(k,A,w,C,x)):this.addY(this.sumCubic(k,A,w,C,x)));const $=(-S-Math.sqrt(B))/(2*E);0<$&&$<1&&(b?this.addX(this.sumCubic($,A,w,C,x)):this.addY(this.sumCubic($,A,w,C,x)))}addBezierCurve(b,A,w,C,x,S,E,P){this.addPoint(b,A),this.addPoint(E,P),this.bezierCurveAdd(!0,b,w,x,E),this.bezierCurveAdd(!1,A,C,S,P)}addQuadraticCurve(b,A,w,C,x,S){const E=b+.6666666666666666*(w-b),P=A+2/3*(C-A),B=E+1/3*(x-b),k=P+1/3*(S-A);this.addBezierCurve(b,A,E,B,P,k,x,S)}isPointInBox(b,A){const{x1:w,y1:C,x2:x,y2:S}=this;return w<=b&&b<=x&&C<=A&&A<=S}constructor(b=Number.NaN,A=Number.NaN,w=Number.NaN,C=Number.NaN){this.x1=b,this.y1=A,this.x2=w,this.y2=C,this.addPoint(b,A),this.addPoint(w,C)}}class RenderedElement extends Element$1{calculateOpacity(){let b=1,A=this;for(;A;){const w=A.getStyle("opacity",!1,!0);w.hasValue(!0)&&(b*=w.getNumber()),A=A.parent}return b}setContext(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A){const w=this.getStyle("fill"),C=this.getStyle("fill-opacity"),x=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(w.isUrlDefinition()){const D=w.getFillStyleDefinition(this,C);D&&(b.fillStyle=D)}else if(w.hasValue()){w.getString()==="currentColor"&&w.setValue(this.getStyle("color").getColor());const D=w.getColor();D!=="inherit"&&(b.fillStyle=D==="none"?"rgba(0,0,0,0)":D)}if(C.hasValue()){const D=new Property(this.document,"fill",b.fillStyle).addOpacity(C).getColor();b.fillStyle=D}if(x.isUrlDefinition()){const D=x.getFillStyleDefinition(this,S);D&&(b.strokeStyle=D)}else if(x.hasValue()){x.getString()==="currentColor"&&x.setValue(this.getStyle("color").getColor());const D=x.getString();D!=="inherit"&&(b.strokeStyle=D==="none"?"rgba(0,0,0,0)":D)}if(S.hasValue()){const D=new Property(this.document,"stroke",b.strokeStyle).addOpacity(S).getString();b.strokeStyle=D}const E=this.getStyle("stroke-width");if(E.hasValue()){const D=E.getPixels();b.lineWidth=D||PSEUDO_ZERO}const P=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),k=this.getStyle("stroke-miterlimit"),$=this.getStyle("stroke-dasharray"),I=this.getStyle("stroke-dashoffset");if(P.hasValue()&&(b.lineCap=P.getString()),B.hasValue()&&(b.lineJoin=B.getString()),k.hasValue()&&(b.miterLimit=k.getNumber()),$.hasValue()&&$.getString()!=="none"){const D=toNumbers($.getString());typeof b.setLineDash<"u"?b.setLineDash(D):typeof b.webkitLineDash<"u"?b.webkitLineDash=D:typeof b.mozDash<"u"&&!(D.length===1&&D[0]===0)&&(b.mozDash=D);const F=I.getPixels();typeof b.lineDashOffset<"u"?b.lineDashOffset=F:typeof b.webkitLineDashOffset<"u"?b.webkitLineDashOffset=F:typeof b.mozDashOffset<"u"&&(b.mozDashOffset=F)}}if(this.modifiedEmSizeStack=!1,typeof b.font<"u"){const w=this.getStyle("font"),C=this.getStyle("font-style"),x=this.getStyle("font-variant"),S=this.getStyle("font-weight"),E=this.getStyle("font-size"),P=this.getStyle("font-family"),B=new Font(C.getString(),x.getString(),S.getString(),E.hasValue()?"".concat(E.getPixels(!0),"px"):"",P.getString(),Font.parse(w.getString(),b.font));C.setValue(B.fontStyle),x.setValue(B.fontVariant),S.setValue(B.fontWeight),E.setValue(B.fontSize),P.setValue(B.fontFamily),b.font=B.toString(),E.isPixels()&&(this.document.emSize=E.getPixels(),this.modifiedEmSizeStack=!0)}A||(this.applyEffects(b),b.globalAlpha=this.calculateOpacity())}clearContext(b){super.clearContext(b),this.modifiedEmSizeStack&&this.document.popEmSize()}constructor(...b){super(...b),this.modifiedEmSizeStack=!1}}class TextElement extends RenderedElement{setContext(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(b,A);const w=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();w&&(b.textBaseline=w)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(b){if(this.type!=="text")return this.getTElementBoundingBox(b);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(b);let A=null;return this.children.forEach((w,C)=>{const x=this.getChildBoundingBox(b,this,this,C);A?A.addBoundingBox(x):A=x}),A}getFontSize(){const{document:b,parent:A}=this,w=Font.parse(b.ctx.font).fontSize;return A.getStyle("font-size").getNumber(w)}getTElementBoundingBox(b){const A=this.getFontSize();return new BoundingBox(this.x,this.y-A,this.x+this.measureText(b),this.y)}getGlyph(b,A,w){const C=A[w];let x;if(b.isArabic){var S;const E=A.length,P=A[w-1],B=A[w+1];let k="isolated";(w===0||P===" ")&&w<E-1&&B!==" "&&(k="terminal"),w>0&&P!==" "&&w<E-1&&B!==" "&&(k="medial"),w>0&&P!==" "&&(w===E-1||B===" ")&&(k="initial"),x=((S=b.arabicGlyphs[C])===null||S===void 0?void 0:S[k])||b.glyphs[C]}else x=b.glyphs[C];return x||(x=b.missingGlyph),x}getText(){return""}getTextFromNode(b){const A=b||this.node,w=Array.from(A.parentNode.childNodes),C=w.indexOf(A),x=w.length-1;let S=compressSpaces(A.textContent||"");return C===0&&(S=trimLeft(S)),C===x&&(S=trimRight(S)),S}renderChildren(b){if(this.type!=="text"){this.renderTElementChildren(b);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(b),this.children.forEach((w,C)=>{this.renderChild(b,this,this,C)});const{mouse:A}=this.document.screen;A.isWorking()&&A.checkBoundingBox(this,this.getBoundingBox(b))}renderTElementChildren(b){const{document:A,parent:w}=this,C=this.getText(),x=w.getStyle("font-family").getDefinition();if(x){const{unitsPerEm:P}=x.fontFace,B=Font.parse(A.ctx.font),k=w.getStyle("font-size").getNumber(B.fontSize),$=w.getStyle("font-style").getString(B.fontStyle),I=k/P,D=x.isRTL?C.split("").reverse().join(""):C,F=toNumbers(w.getAttribute("dx").getString()),z=D.length;for(let L=0;L<z;L++){const H=this.getGlyph(x,D,L);b.translate(this.x,this.y),b.scale(I,-I);const Q=b.lineWidth;b.lineWidth=b.lineWidth*P/k,$==="italic"&&b.transform(1,0,.4,1,0,0),H.render(b),$==="italic"&&b.transform(1,0,-.4,1,0,0),b.lineWidth=Q,b.scale(1/I,-1/I),b.translate(-this.x,-this.y),this.x+=k*(H.horizAdvX||x.horizAdvX)/P,typeof F[L]<"u"&&!isNaN(F[L])&&(this.x+=F[L])}return}const{x:S,y:E}=this;b.fillStyle&&b.fillText(C,S,E),b.strokeStyle&&b.strokeText(C,S,E)}applyAnchoring(){if(this.textChunkStart>=this.leafTexts.length)return;const b=this.leafTexts[this.textChunkStart],A=b.getStyle("text-anchor").getString("start"),w=!1;let C=0;A==="start"&&!w||A==="end"&&w?C=b.x-this.minX:A==="end"&&!w||A==="start"&&w?C=b.x-this.maxX:C=b.x-(this.minX+this.maxX)/2;for(let x=this.textChunkStart;x<this.leafTexts.length;x++)this.leafTexts[x].x+=C;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}adjustChildCoordinatesRecursive(b){this.children.forEach((A,w)=>{this.adjustChildCoordinatesRecursiveCore(b,this,this,w)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(b,A,w,C){const x=w.children[C];x.children.length>0?x.children.forEach((S,E)=>{A.adjustChildCoordinatesRecursiveCore(b,A,x,E)}):this.adjustChildCoordinates(b,A,w,C)}adjustChildCoordinates(b,A,w,C){const x=w.children[C];if(typeof x.measureText!="function")return x;b.save(),x.setContext(b,!0);const S=x.getAttribute("x"),E=x.getAttribute("y"),P=x.getAttribute("dx"),B=x.getAttribute("dy"),k=x.getStyle("font-family").getDefinition(),$=!!(k!=null&&k.isRTL);C===0&&(S.hasValue()||S.setValue(x.getInheritedAttribute("x")),E.hasValue()||E.setValue(x.getInheritedAttribute("y")),P.hasValue()||P.setValue(x.getInheritedAttribute("dx")),B.hasValue()||B.setValue(x.getInheritedAttribute("dy")));const I=x.measureText(b);return $&&(A.x-=I),S.hasValue()?(A.applyAnchoring(),x.x=S.getPixels("x"),P.hasValue()&&(x.x+=P.getPixels("x"))):(P.hasValue()&&(A.x+=P.getPixels("x")),x.x=A.x),A.x=x.x,$||(A.x+=I),E.hasValue()?(x.y=E.getPixels("y"),B.hasValue()&&(x.y+=B.getPixels("y"))):(B.hasValue()&&(A.y+=B.getPixels("y")),x.y=A.y),A.y=x.y,A.leafTexts.push(x),A.minX=Math.min(A.minX,x.x,x.x+I),A.maxX=Math.max(A.maxX,x.x,x.x+I),x.clearContext(b),b.restore(),x}getChildBoundingBox(b,A,w,C){const x=w.children[C];if(typeof x.getBoundingBox!="function")return null;const S=x.getBoundingBox(b);return S&&x.children.forEach((E,P)=>{const B=A.getChildBoundingBox(b,A,x,P);S.addBoundingBox(B)}),S}renderChild(b,A,w,C){const x=w.children[C];x.render(b),x.children.forEach((S,E)=>{A.renderChild(b,A,x,E)})}measureText(b){const{measureCache:A}=this;if(~A)return A;const w=this.getText(),C=this.measureTargetText(b,w);return this.measureCache=C,C}measureTargetText(b,A){if(!A.length)return 0;const{parent:w}=this,C=w.getStyle("font-family").getDefinition();if(C){const S=this.getFontSize(),E=C.isRTL?A.split("").reverse().join(""):A,P=toNumbers(w.getAttribute("dx").getString()),B=E.length;let k=0;for(let $=0;$<B;$++){const I=this.getGlyph(C,E,$);k+=(I.horizAdvX||C.horizAdvX)*S/C.fontFace.unitsPerEm,typeof P[$]<"u"&&!isNaN(P[$])&&(k+=P[$])}return k}if(!b.measureText)return A.length*10;b.save(),this.setContext(b,!0);const{width:x}=b.measureText(A);return this.clearContext(b),b.restore(),x}getInheritedAttribute(b){let A=this;for(;A instanceof TextElement&&A.isFirstChild()&&A.parent;){const w=A.parent.getAttribute(b);if(w.hasValue(!0))return w.getString("0");A=A.parent}return null}constructor(b,A,w){super(b,A,new.target===TextElement?!0:w),this.type="text",this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.measureCache=-1}}class TSpanElement extends TextElement{getText(){return this.text}constructor(b,A,w){super(b,A,new.target===TSpanElement?!0:w),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}}class TextNode extends TSpanElement{constructor(...b){super(...b),this.type="textNode"}}class PathParser extends _{reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){const{i:b,commands:A}=this;return b>=A.length-1}next(){const b=this.commands[++this.i];return this.previousCommand=this.command,this.command=b,b}getPoint(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";const w=new Point(this.command[b],this.command[A]);return this.makeAbsolute(w)}getAsControlPoint(b,A){const w=this.getPoint(b,A);return this.control=w,w}getAsCurrentPoint(b,A){const w=this.getPoint(b,A);return this.current=w,w}getReflectedControlPoint(){const b=this.previousCommand.type;if(b!==_.CURVE_TO&&b!==_.SMOOTH_CURVE_TO&&b!==_.QUAD_TO&&b!==_.SMOOTH_QUAD_TO)return this.current;const{current:{x:A,y:w},control:{x:C,y:x}}=this;return new Point(2*A-C,2*w-x)}makeAbsolute(b){if(this.command.relative){const{x:A,y:w}=this.current;b.x+=A,b.y+=w}return b}addMarker(b,A,w){const{points:C,angles:x}=this;w&&x.length>0&&!x[x.length-1]&&(x[x.length-1]=C[C.length-1].angleTo(w)),this.addMarkerAngle(b,A?A.angleTo(b):null)}addMarkerAngle(b,A){this.points.push(b),this.angles.push(A)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:b}=this,A=b.length;for(let w=0;w<A;w++)if(!b[w]){for(let C=w+1;C<A;C++)if(b[C]){b[w]=b[C];break}}return b}constructor(b){super(b.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=new Point(0,0),this.start=new Point(0,0),this.current=new Point(0,0),this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}}class PathElement extends RenderedElement{path(b){const{pathParser:A}=this,w=new BoundingBox;for(A.reset(),b&&b.beginPath();!A.isEnd();)switch(A.next().type){case PathParser.MOVE_TO:this.pathM(b,w);break;case PathParser.LINE_TO:this.pathL(b,w);break;case PathParser.HORIZ_LINE_TO:this.pathH(b,w);break;case PathParser.VERT_LINE_TO:this.pathV(b,w);break;case PathParser.CURVE_TO:this.pathC(b,w);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(b,w);break;case PathParser.QUAD_TO:this.pathQ(b,w);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(b,w);break;case PathParser.ARC:this.pathA(b,w);break;case PathParser.CLOSE_PATH:this.pathZ(b,w);break}return w}getBoundingBox(b){return this.path()}getMarkers(){const{pathParser:b}=this,A=b.getMarkerPoints(),w=b.getMarkerAngles();return A.map((x,S)=>[x,w[S]])}renderChildren(b){this.path(b),this.document.screen.mouse.checkPath(this,b);const A=this.getStyle("fill-rule");b.fillStyle!==""&&(A.getString("inherit")!=="inherit"?b.fill(A.getString()):b.fill()),b.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(b.save(),b.setTransform(1,0,0,1,0,0),b.stroke(),b.restore()):b.stroke());const w=this.getMarkers();if(w){const C=w.length-1,x=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),E=this.getStyle("marker-end");if(x.isUrlDefinition()){const P=x.getDefinition(),[B,k]=w[0];P.render(b,B,k)}if(S.isUrlDefinition()){const P=S.getDefinition();for(let B=1;B<C;B++){const[k,$]=w[B];P.render(b,k,$)}}if(E.isUrlDefinition()){const P=E.getDefinition(),[B,k]=w[C];P.render(b,B,k)}}}static pathM(b){const A=b.getAsCurrentPoint();return b.start=b.current,{point:A}}pathM(b,A){const{pathParser:w}=this,{point:C}=PathElement.pathM(w),{x,y:S}=C;w.addMarker(C),A.addPoint(x,S),b&&b.moveTo(x,S)}static pathL(b){const{current:A}=b,w=b.getAsCurrentPoint();return{current:A,point:w}}pathL(b,A){const{pathParser:w}=this,{current:C,point:x}=PathElement.pathL(w),{x:S,y:E}=x;w.addMarker(x,C),A.addPoint(S,E),b&&b.lineTo(S,E)}static pathH(b){const{current:A,command:w}=b,C=new Point((w.relative?A.x:0)+w.x,A.y);return b.current=C,{current:A,point:C}}pathH(b,A){const{pathParser:w}=this,{current:C,point:x}=PathElement.pathH(w),{x:S,y:E}=x;w.addMarker(x,C),A.addPoint(S,E),b&&b.lineTo(S,E)}static pathV(b){const{current:A,command:w}=b,C=new Point(A.x,(w.relative?A.y:0)+w.y);return b.current=C,{current:A,point:C}}pathV(b,A){const{pathParser:w}=this,{current:C,point:x}=PathElement.pathV(w),{x:S,y:E}=x;w.addMarker(x,C),A.addPoint(S,E),b&&b.lineTo(S,E)}static pathC(b){const{current:A}=b,w=b.getPoint("x1","y1"),C=b.getAsControlPoint("x2","y2"),x=b.getAsCurrentPoint();return{current:A,point:w,controlPoint:C,currentPoint:x}}pathC(b,A){const{pathParser:w}=this,{current:C,point:x,controlPoint:S,currentPoint:E}=PathElement.pathC(w);w.addMarker(E,S,x),A.addBezierCurve(C.x,C.y,x.x,x.y,S.x,S.y,E.x,E.y),b&&b.bezierCurveTo(x.x,x.y,S.x,S.y,E.x,E.y)}static pathS(b){const{current:A}=b,w=b.getReflectedControlPoint(),C=b.getAsControlPoint("x2","y2"),x=b.getAsCurrentPoint();return{current:A,point:w,controlPoint:C,currentPoint:x}}pathS(b,A){const{pathParser:w}=this,{current:C,point:x,controlPoint:S,currentPoint:E}=PathElement.pathS(w);w.addMarker(E,S,x),A.addBezierCurve(C.x,C.y,x.x,x.y,S.x,S.y,E.x,E.y),b&&b.bezierCurveTo(x.x,x.y,S.x,S.y,E.x,E.y)}static pathQ(b){const{current:A}=b,w=b.getAsControlPoint("x1","y1"),C=b.getAsCurrentPoint();return{current:A,controlPoint:w,currentPoint:C}}pathQ(b,A){const{pathParser:w}=this,{current:C,controlPoint:x,currentPoint:S}=PathElement.pathQ(w);w.addMarker(S,x,x),A.addQuadraticCurve(C.x,C.y,x.x,x.y,S.x,S.y),b&&b.quadraticCurveTo(x.x,x.y,S.x,S.y)}static pathT(b){const{current:A}=b,w=b.getReflectedControlPoint();b.control=w;const C=b.getAsCurrentPoint();return{current:A,controlPoint:w,currentPoint:C}}pathT(b,A){const{pathParser:w}=this,{current:C,controlPoint:x,currentPoint:S}=PathElement.pathT(w);w.addMarker(S,x,x),A.addQuadraticCurve(C.x,C.y,x.x,x.y,S.x,S.y),b&&b.quadraticCurveTo(x.x,x.y,S.x,S.y)}static pathA(b){const{current:A,command:w}=b;let{rX:C,rY:x,xRot:S,lArcFlag:E,sweepFlag:P}=w;const B=S*(Math.PI/180),k=b.getAsCurrentPoint(),$=new Point(Math.cos(B)*(A.x-k.x)/2+Math.sin(B)*(A.y-k.y)/2,-Math.sin(B)*(A.x-k.x)/2+Math.cos(B)*(A.y-k.y)/2),I=Math.pow($.x,2)/Math.pow(C,2)+Math.pow($.y,2)/Math.pow(x,2);I>1&&(C*=Math.sqrt(I),x*=Math.sqrt(I));let D=(E===P?-1:1)*Math.sqrt((Math.pow(C,2)*Math.pow(x,2)-Math.pow(C,2)*Math.pow($.y,2)-Math.pow(x,2)*Math.pow($.x,2))/(Math.pow(C,2)*Math.pow($.y,2)+Math.pow(x,2)*Math.pow($.x,2)));isNaN(D)&&(D=0);const F=new Point(D*C*$.y/x,D*-x*$.x/C),z=new Point((A.x+k.x)/2+Math.cos(B)*F.x-Math.sin(B)*F.y,(A.y+k.y)/2+Math.sin(B)*F.x+Math.cos(B)*F.y),L=vectorsAngle([1,0],[($.x-F.x)/C,($.y-F.y)/x]),H=[($.x-F.x)/C,($.y-F.y)/x],Q=[(-$.x-F.x)/C,(-$.y-F.y)/x];let Y=vectorsAngle(H,Q);return vectorsRatio(H,Q)<=-1&&(Y=Math.PI),vectorsRatio(H,Q)>=1&&(Y=0),{currentPoint:k,rX:C,rY:x,sweepFlag:P,xAxisRotation:B,centp:z,a1:L,ad:Y}}pathA(b,A){const{pathParser:w}=this,{currentPoint:C,rX:x,rY:S,sweepFlag:E,xAxisRotation:P,centp:B,a1:k,ad:$}=PathElement.pathA(w),I=1-E?1:-1,D=k+I*($/2),F=new Point(B.x+x*Math.cos(D),B.y+S*Math.sin(D));if(w.addMarkerAngle(F,D-I*Math.PI/2),w.addMarkerAngle(C,D-I*Math.PI),A.addPoint(C.x,C.y),b&&!isNaN(k)&&!isNaN($)){const z=x>S?x:S,L=x>S?1:x/S,H=x>S?S/x:1;b.translate(B.x,B.y),b.rotate(P),b.scale(L,H),b.arc(0,0,z,k,k+$,!!(1-E)),b.scale(1/L,1/H),b.rotate(-P),b.translate(-B.x,-B.y)}}static pathZ(b){b.current=b.start}pathZ(b,A){PathElement.pathZ(this.pathParser),b&&A.x1!==A.x2&&A.y1!==A.y2&&b.closePath()}constructor(b,A,w){super(b,A,w),this.type="path",this.pathParser=new PathParser(this.getAttribute("d").getString())}}let SVGElement$1=class extends RenderedElement{setContext(b){var A;const{document:w}=this,{screen:C,window:x}=w,S=b.canvas;if(C.setDefaults(b),"style"in S&&typeof b.font<"u"&&x&&typeof x.getComputedStyle<"u"){b.font=x.getComputedStyle(S).getPropertyValue("font");const Q=new Property(w,"fontSize",Font.parse(b.font).fontSize);Q.hasValue()&&(w.rootEmSize=Q.getPixels("y"),w.emSize=w.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);let{width:E,height:P}=C.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");const B=this.getAttribute("refX"),k=this.getAttribute("refY"),$=this.getAttribute("viewBox"),I=$.hasValue()?toNumbers($.getString()):null,D=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible";let F=0,z=0,L=0,H=0;I&&(F=I[0],z=I[1]),this.root||(E=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y"),this.type==="marker"&&(L=F,H=z,F=0,z=0)),C.viewPort.setCurrent(E,P),this.node&&(!this.parent||((A=this.node.parentNode)===null||A===void 0?void 0:A.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(b),b.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),I&&(E=I[2],P=I[3]),w.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:C.viewPort.width,desiredWidth:E,height:C.viewPort.height,desiredHeight:P,minX:F,minY:z,refX:B.getValue(),refY:k.getValue(),clip:D,clipX:L,clipY:H}),I&&(C.viewPort.removeCurrent(),C.viewPort.setCurrent(E,P))}clearContext(b){super.clearContext(b),this.document.screen.viewPort.removeCurrent()}resize(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const C=this.getAttribute("width",!0),x=this.getAttribute("height",!0),S=this.getAttribute("viewBox"),E=this.getAttribute("style"),P=C.getNumber(0),B=x.getNumber(0);if(w)if(typeof w=="string")this.getAttribute("preserveAspectRatio",!0).setValue(w);else{const k=this.getAttribute("preserveAspectRatio");k.hasValue()&&k.setValue(k.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(C.setValue(b),x.setValue(A),S.hasValue()||S.setValue("0 0 ".concat(P||b," ").concat(B||A)),E.hasValue()){const k=this.getStyle("width"),$=this.getStyle("height");k.hasValue()&&k.setValue("".concat(b,"px")),$.hasValue()&&$.setValue("".concat(A,"px"))}}constructor(...b){super(...b),this.type="svg",this.root=!1}};class RectElement extends PathElement{path(b){const A=this.getAttribute("x").getPixels("x"),w=this.getAttribute("y").getPixels("y"),C=this.getStyle("width",!1,!0).getPixels("x"),x=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),E=this.getAttribute("ry");let P=S.getPixels("x"),B=E.getPixels("y");if(S.hasValue()&&!E.hasValue()&&(B=P),E.hasValue()&&!S.hasValue()&&(P=B),P=Math.min(P,C/2),B=Math.min(B,x/2),b){const k=4*((Math.sqrt(2)-1)/3);b.beginPath(),x>0&&C>0&&(b.moveTo(A+P,w),b.lineTo(A+C-P,w),b.bezierCurveTo(A+C-P+k*P,w,A+C,w+B-k*B,A+C,w+B),b.lineTo(A+C,w+x-B),b.bezierCurveTo(A+C,w+x-B+k*B,A+C-P+k*P,w+x,A+C-P,w+x),b.lineTo(A+P,w+x),b.bezierCurveTo(A+P-k*P,w+x,A,w+x-B+k*B,A,w+x-B),b.lineTo(A,w+B),b.bezierCurveTo(A,w+B-k*B,A+P-k*P,w,A+P,w),b.closePath())}return new BoundingBox(A,w,A+C,w+x)}getMarkers(){return null}constructor(...b){super(...b),this.type="rect"}}class CircleElement extends PathElement{path(b){const A=this.getAttribute("cx").getPixels("x"),w=this.getAttribute("cy").getPixels("y"),C=this.getAttribute("r").getPixels();return b&&C>0&&(b.beginPath(),b.arc(A,w,C,0,Math.PI*2,!1),b.closePath()),new BoundingBox(A-C,w-C,A+C,w+C)}getMarkers(){return null}constructor(...b){super(...b),this.type="circle"}}class EllipseElement extends PathElement{path(b){const A=4*((Math.sqrt(2)-1)/3),w=this.getAttribute("rx").getPixels("x"),C=this.getAttribute("ry").getPixels("y"),x=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return b&&w>0&&C>0&&(b.beginPath(),b.moveTo(x+w,S),b.bezierCurveTo(x+w,S+A*C,x+A*w,S+C,x,S+C),b.bezierCurveTo(x-A*w,S+C,x-w,S+A*C,x-w,S),b.bezierCurveTo(x-w,S-A*C,x-A*w,S-C,x,S-C),b.bezierCurveTo(x+A*w,S-C,x+w,S-A*C,x+w,S),b.closePath()),new BoundingBox(x-w,S-C,x+w,S+C)}getMarkers(){return null}constructor(...b){super(...b),this.type="ellipse"}}class LineElement extends PathElement{getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(b){const[{x:A,y:w},{x:C,y:x}]=this.getPoints();return b&&(b.beginPath(),b.moveTo(A,w),b.lineTo(C,x)),new BoundingBox(A,w,C,x)}getMarkers(){const[b,A]=this.getPoints(),w=b.angleTo(A);return[[b,w],[A,w]]}constructor(...b){super(...b),this.type="line"}}class PolylineElement extends PathElement{path(b){const{points:A}=this,[{x:w,y:C}]=A,x=new BoundingBox(w,C);return b&&(b.beginPath(),b.moveTo(w,C)),A.forEach(S=>{let{x:E,y:P}=S;x.addPoint(E,P),b&&b.lineTo(E,P)}),x}getMarkers(){const{points:b}=this,A=b.length-1,w=[];return b.forEach((C,x)=>{x!==A&&w.push([C,C.angleTo(b[x+1])])}),w.length>0&&w.push([b[b.length-1],w[w.length-1][1]]),w}constructor(b,A,w){super(b,A,w),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}}class PolygonElement extends PolylineElement{path(b){const A=super.path(b),[{x:w,y:C}]=this.points;return b&&(b.lineTo(w,C),b.closePath()),A}constructor(...b){super(...b),this.type="polygon"}}class PatternElement extends Element$1{createPattern(b,A,w){const C=this.getStyle("width").getPixels("x",!0),x=this.getStyle("height").getPixels("y",!0),S=new SVGElement$1(this.document,null);S.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new Property(this.document,"width","".concat(C,"px")),S.attributes.height=new Property(this.document,"height","".concat(x,"px")),S.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;const E=this.document.createCanvas(C,x),P=E.getContext("2d"),B=this.getAttribute("x"),k=this.getAttribute("y");B.hasValue()&&k.hasValue()&&P.translate(B.getPixels("x",!0),k.getPixels("y",!0)),w.hasValue()?this.styles["fill-opacity"]=w:Reflect.deleteProperty(this.styles,"fill-opacity");for(let I=-1;I<=1;I++)for(let D=-1;D<=1;D++)P.save(),S.attributes.x=new Property(this.document,"x",I*E.width),S.attributes.y=new Property(this.document,"y",D*E.height),S.render(P),P.restore();return b.createPattern(E,"repeat")}constructor(...b){super(...b),this.type="pattern"}}class MarkerElement extends Element$1{render(b,A,w){if(!A)return;const{x:C,y:x}=A,S=this.getAttribute("orient").getString("auto"),E=this.getAttribute("markerUnits").getString("strokeWidth");b.translate(C,x),S==="auto"&&b.rotate(w),E==="strokeWidth"&&b.scale(b.lineWidth,b.lineWidth),b.save();const P=new SVGElement$1(this.document);P.type=this.type,P.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),P.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),P.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),P.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),P.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),P.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),P.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),P.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),P.children=this.children,P.render(b),b.restore(),E==="strokeWidth"&&b.scale(1/b.lineWidth,1/b.lineWidth),S==="auto"&&b.rotate(-w),b.translate(-C,-x)}constructor(...b){super(...b),this.type="marker"}}class DefsElement extends Element$1{render(){}constructor(...b){super(...b),this.type="defs"}}class GElement extends RenderedElement{getBoundingBox(b){const A=new BoundingBox;return this.children.forEach(w=>{A.addBoundingBox(w.getBoundingBox(b))}),A}constructor(...b){super(...b),this.type="g"}}class GradientElement extends Element$1{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(b,A,w){let C=this;this.getHrefAttribute().hasValue()&&(C=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(C));const{stops:x}=C,S=this.getGradient(b,A);if(!S)return this.addParentOpacity(w,x[x.length-1].color);if(x.forEach(E=>{S.addColorStop(E.offset,this.addParentOpacity(w,E.color))}),this.getAttribute("gradientTransform").hasValue()){const{document:E}=this,{MAX_VIRTUAL_PIXELS:P}=Screen,{viewPort:B}=E.screen,k=B.getRoot(),$=new RectElement(E);$.attributes.x=new Property(E,"x",-P/3),$.attributes.y=new Property(E,"y",-P/3),$.attributes.width=new Property(E,"width",P),$.attributes.height=new Property(E,"height",P);const I=new GElement(E);I.attributes.transform=new Property(E,"transform",this.getAttribute("gradientTransform").getValue()),I.children=[$];const D=new SVGElement$1(E);D.attributes.x=new Property(E,"x",0),D.attributes.y=new Property(E,"y",0),D.attributes.width=new Property(E,"width",k.width),D.attributes.height=new Property(E,"height",k.height),D.children=[I];const F=E.createCanvas(k.width,k.height),z=F.getContext("2d");return z.fillStyle=S,D.render(z),z.createPattern(F,"no-repeat")}return S}inheritStopContainer(b){this.attributesToInherit.forEach(A=>{!this.getAttribute(A).hasValue()&&b.getAttribute(A).hasValue()&&this.getAttribute(A,!0).setValue(b.getAttribute(A).getValue())})}addParentOpacity(b,A){return b.hasValue()?new Property(this.document,"color",A).addOpacity(b).getColor():A}constructor(b,A,w){super(b,A,w),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:C,children:x}=this;x.forEach(S=>{S.type==="stop"&&C.push(S)})}}class LinearGradientElement extends GradientElement{getGradient(b,A){const w=this.getGradientUnits()==="objectBoundingBox",C=w?A.getBoundingBox(b):null;if(w&&!C)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));const x=w?C.x+C.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=w?C.y+C.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),E=w?C.x+C.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),P=w?C.y+C.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return x===E&&S===P?null:b.createLinearGradient(x,S,E,P)}constructor(b,A,w){super(b,A,w),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class RadialGradientElement extends GradientElement{getGradient(b,A){const w=this.getGradientUnits()==="objectBoundingBox",C=A.getBoundingBox(b);if(w&&!C)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");const x=w?C.x+C.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=w?C.y+C.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y");let E=x,P=S;this.getAttribute("fx").hasValue()&&(E=w?C.x+C.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(P=w?C.y+C.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const B=w?(C.width+C.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),k=this.getAttribute("fr").getPixels();return b.createRadialGradient(E,P,k,x,S,B)}constructor(b,A,w){super(b,A,w),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class StopElement extends Element$1{constructor(b,A,w){super(b,A,w),this.type="stop";const C=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),x=this.getStyle("stop-opacity");let S=this.getStyle("stop-color",!0);S.getString()===""&&S.setValue("#000"),x.hasValue()&&(S=S.addOpacity(x)),this.offset=C,this.color=S.getColor()}}class AnimateElement extends Element$1{getProperty(){const b=this.getAttribute("attributeType").getString(),A=this.getAttribute("attributeName").getString();return b==="CSS"?this.parent.getStyle(A,!0):this.parent.getAttribute(A,!0)}calcValue(){const{initialUnits:b}=this,{progress:A,from:w,to:C}=this.getProgress();let x=w.getNumber()+(C.getNumber()-w.getNumber())*A;return b==="%"&&(x*=100),"".concat(x).concat(b)}update(b){const{parent:A}=this,w=this.getProperty();if(this.initialValue||(this.initialValue=w.getString(),this.initialUnits=w.getUnits()),this.duration>this.maxDuration){const x=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(x==="freeze"&&!this.frozen)this.frozen=!0,A&&w&&(A.animationFrozen=!0,A.animationFrozenValue=w.getString());else if(x==="remove"&&!this.removed)return this.removed=!0,A&&w&&w.setValue(A.animationFrozen?A.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=b;let C=!1;if(this.begin<this.duration){let x=this.calcValue();const S=this.getAttribute("type");if(S.hasValue()){const E=S.getString();x="".concat(E,"(").concat(x,")")}w.setValue(x),C=!0}return C}getProgress(){const{document:b,values:A}=this;let w=(this.duration-this.begin)/(this.maxDuration-this.begin),C,x;if(A.hasValue()){const S=w*(A.getValue().length-1),E=Math.floor(S),P=Math.ceil(S);let B;B=A.getValue()[E],C=new Property(b,"from",B?parseFloat(B):0),B=A.getValue()[P],x=new Property(b,"to",B?parseFloat(B):0),w=(S-E)/(P-E)}else C=this.from,x=this.to;return{progress:w,from:C,to:x}}constructor(b,A,w){super(b,A,w),this.type="animate",this.duration=0,this.initialUnits="",this.removed=!1,this.frozen=!1,b.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(b,"values",null);const C=this.getAttribute("values");C.hasValue()&&this.values.setValue(C.getString().split(";"))}}class AnimateColorElement extends AnimateElement{calcValue(){const{progress:b,from:A,to:w}=this.getProgress(),C=new RGBColor$1(A.getColor()),x=new RGBColor$1(w.getColor());if(C.ok&&x.ok){const S=C.r+(x.r-C.r)*b,E=C.g+(x.g-C.g)*b,P=C.b+(x.b-C.b)*b;return"rgb(".concat(Math.floor(S),", ").concat(Math.floor(E),", ").concat(Math.floor(P),")")}return this.getAttribute("from").getColor()}constructor(...b){super(...b),this.type="animateColor"}}class AnimateTransformElement extends AnimateElement{calcValue(){const{progress:b,from:A,to:w}=this.getProgress(),C=toNumbers(A.getString()),x=toNumbers(w.getString());return C.map((E,P)=>{const B=x[P];return E+(B-E)*b}).join(" ")}constructor(...b){super(...b),this.type="animateTransform"}}class FontFaceElement extends Element$1{constructor(b,A,w){super(b,A,w),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class GlyphElement extends PathElement{constructor(b,A,w){super(b,A,w),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class MissingGlyphElement extends GlyphElement{constructor(...b){super(...b),this.type="missing-glyph",this.horizAdvX=0}}class FontElement extends Element$1{render(){}constructor(b,A,w){super(b,A,w),this.type="font",this.isArabic=!1,this.glyphs={},this.arabicGlyphs={},this.isRTL=!1,this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();const{definitions:C}=b,{children:x}=this;for(const S of x)if(S instanceof FontFaceElement){this.fontFace=S;const E=S.getStyle("font-family");E.hasValue()&&(C[E.getString()]=this)}else if(S instanceof MissingGlyphElement)this.missingGlyph=S;else if(S instanceof GlyphElement)if(S.arabicForm){this.isRTL=!0,this.isArabic=!0;const E=this.arabicGlyphs[S.unicode];typeof E>"u"?this.arabicGlyphs[S.unicode]={[S.arabicForm]:S}:E[S.arabicForm]=S}else this.glyphs[S.unicode]=S}}class TRefElement extends TextElement{getText(){const b=this.getHrefAttribute().getDefinition();if(b){const A=b.children[0];if(A)return A.getText()}return""}constructor(...b){super(...b),this.type="tref"}}class AElement extends TextElement{getText(){return this.text}renderChildren(b){if(this.hasText){super.renderChildren(b);const{document:A,x:w,y:C}=this,{mouse:x}=A.screen,S=new Property(A,"fontSize",Font.parse(A.ctx.font).fontSize);x.isWorking()&&x.checkBoundingBox(this,new BoundingBox(w,C-S.getPixels("y"),w+this.measureText(b),C))}else if(this.children.length>0){const A=new GElement(this.document);A.children=this.children,A.parent=this,A.render(b)}}onClick(){const{window:b}=this.document;b&&b.open(this.getHrefAttribute().getString())}onMouseMove(){const b=this.document.ctx;b.canvas.style.cursor="pointer"}constructor(b,A,w){super(b,A,w),this.type="a";const{childNodes:C}=A,x=C[0],S=C.length>0&&Array.from(C).every(E=>E.nodeType===3);this.hasText=S,this.text=S?this.getTextFromNode(x):""}}class TextPathElement extends TextElement{getText(){return this.text}path(b){const{dataArray:A}=this;b&&b.beginPath(),A.forEach(w=>{let{type:C,points:x}=w;switch(C){case PathParser.LINE_TO:b&&b.lineTo(x[0],x[1]);break;case PathParser.MOVE_TO:b&&b.moveTo(x[0],x[1]);break;case PathParser.CURVE_TO:b&&b.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case PathParser.QUAD_TO:b&&b.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case PathParser.ARC:{const[S,E,P,B,k,$,I,D]=x,F=P>B?P:B,z=P>B?1:P/B,L=P>B?B/P:1;b&&(b.translate(S,E),b.rotate(I),b.scale(z,L),b.arc(0,0,F,k,k+$,!!(1-D)),b.scale(1/z,1/L),b.rotate(-I),b.translate(-S,-E));break}case PathParser.CLOSE_PATH:b&&b.closePath();break}})}renderChildren(b){this.setTextData(b),b.save();const A=this.parent.getStyle("text-decoration").getString(),w=this.getFontSize(),{glyphInfo:C}=this,x=b.fillStyle;A==="underline"&&b.beginPath(),C.forEach((S,E)=>{const{p0:P,p1:B,rotation:k,text:$}=S;b.save(),b.translate(P.x,P.y),b.rotate(k),b.fillStyle&&b.fillText($,0,0),b.strokeStyle&&b.strokeText($,0,0),b.restore(),A==="underline"&&(E===0&&b.moveTo(P.x,P.y+w/8),b.lineTo(B.x,B.y+w/5))}),A==="underline"&&(b.lineWidth=w/20,b.strokeStyle=x,b.stroke(),b.closePath()),b.restore()}getLetterSpacingAt(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[b]||0}findSegmentToFitChar(b,A,w,C,x,S,E,P,B){let k=S,$=this.measureText(b,P);P===" "&&A==="justify"&&w<C&&($+=(C-w)/x),B>-1&&(k+=this.getLetterSpacingAt(B));const I=this.textHeight/20,D=this.getEquidistantPointOnPath(k,I,0),F=this.getEquidistantPointOnPath(k+$,I,0),z={p0:D,p1:F},L=D&&F?Math.atan2(F.y-D.y,F.x-D.x):0;if(E){const H=Math.cos(Math.PI/2+L)*E,Q=Math.cos(-L)*E;z.p0={...D,x:D.x+H,y:D.y+Q},z.p1={...F,x:F.x+H,y:F.y+Q}}return k+=$,{offset:k,segment:z,rotation:L}}measureText(b,A){const{measuresCache:w}=this,C=A||this.getText();if(w.has(C))return w.get(C);const x=this.measureTargetText(b,C);return w.set(C,x),x}setTextData(b){if(this.glyphInfo)return;const A=this.getText(),w=A.split(""),C=A.split(" ").length-1,x=this.parent.getAttribute("dx").split().map(Y=>Y.getPixels("x")),S=this.parent.getAttribute("dy").getPixels("y"),E=this.parent.getStyle("text-anchor").getString("start"),P=this.getStyle("letter-spacing"),B=this.parent.getStyle("letter-spacing");let k=0;!P.hasValue()||P.getValue()==="inherit"?k=B.getPixels():P.hasValue()&&P.getValue()!=="initial"&&P.getValue()!=="unset"&&(k=P.getPixels());const $=[],I=A.length;this.letterSpacingCache=$;for(let Y=0;Y<I;Y++)$.push(typeof x[Y]<"u"?x[Y]:k);const D=$.reduce((Y,U,G)=>G===0?0:Y+U||0,0),F=this.measureText(b),z=Math.max(F+D,0);this.textWidth=F,this.textHeight=this.getFontSize(),this.glyphInfo=[];const L=this.getPathLength(),H=this.getStyle("startOffset").getNumber(0)*L;let Q=0;(E==="middle"||E==="center")&&(Q=-z/2),(E==="end"||E==="right")&&(Q=-z),Q+=H,w.forEach((Y,U)=>{const{offset:G,segment:W,rotation:K}=this.findSegmentToFitChar(b,E,z,L,C,Q,S,Y,U);Q=G,!(!W.p0||!W.p1)&&this.glyphInfo.push({text:w[U],p0:W.p0,p1:W.p1,rotation:K})})}parsePathData(b){if(this.pathLength=-1,!b)return[];const A=[],{pathParser:w}=b;for(w.reset();!w.isEnd();){const{current:C}=w,x=C?C.x:0,S=C?C.y:0,E=w.next();let P=E.type,B=[];switch(E.type){case PathParser.MOVE_TO:this.pathM(w,B);break;case PathParser.LINE_TO:P=this.pathL(w,B);break;case PathParser.HORIZ_LINE_TO:P=this.pathH(w,B);break;case PathParser.VERT_LINE_TO:P=this.pathV(w,B);break;case PathParser.CURVE_TO:this.pathC(w,B);break;case PathParser.SMOOTH_CURVE_TO:P=this.pathS(w,B);break;case PathParser.QUAD_TO:this.pathQ(w,B);break;case PathParser.SMOOTH_QUAD_TO:P=this.pathT(w,B);break;case PathParser.ARC:B=this.pathA(w);break;case PathParser.CLOSE_PATH:PathElement.pathZ(w);break}E.type!==PathParser.CLOSE_PATH?A.push({type:P,points:B,start:{x,y:S},pathLength:this.calcLength(x,S,P,B)}):A.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return A}pathM(b,A){const{x:w,y:C}=PathElement.pathM(b).point;A.push(w,C)}pathL(b,A){const{x:w,y:C}=PathElement.pathL(b).point;return A.push(w,C),PathParser.LINE_TO}pathH(b,A){const{x:w,y:C}=PathElement.pathH(b).point;return A.push(w,C),PathParser.LINE_TO}pathV(b,A){const{x:w,y:C}=PathElement.pathV(b).point;return A.push(w,C),PathParser.LINE_TO}pathC(b,A){const{point:w,controlPoint:C,currentPoint:x}=PathElement.pathC(b);A.push(w.x,w.y,C.x,C.y,x.x,x.y)}pathS(b,A){const{point:w,controlPoint:C,currentPoint:x}=PathElement.pathS(b);return A.push(w.x,w.y,C.x,C.y,x.x,x.y),PathParser.CURVE_TO}pathQ(b,A){const{controlPoint:w,currentPoint:C}=PathElement.pathQ(b);A.push(w.x,w.y,C.x,C.y)}pathT(b,A){const{controlPoint:w,currentPoint:C}=PathElement.pathT(b);return A.push(w.x,w.y,C.x,C.y),PathParser.QUAD_TO}pathA(b){let{rX:A,rY:w,sweepFlag:C,xAxisRotation:x,centp:S,a1:E,ad:P}=PathElement.pathA(b);return C===0&&P>0&&(P-=2*Math.PI),C===1&&P<0&&(P+=2*Math.PI),[S.x,S.y,A,w,E,P,x,C]}calcLength(b,A,w,C){let x=0,S=null,E=null,P=0;switch(w){case PathParser.LINE_TO:return this.getLineLength(b,A,C[0],C[1]);case PathParser.CURVE_TO:for(x=0,S=this.getPointOnCubicBezier(0,b,A,C[0],C[1],C[2],C[3],C[4],C[5]),P=.01;P<=1;P+=.01)E=this.getPointOnCubicBezier(P,b,A,C[0],C[1],C[2],C[3],C[4],C[5]),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;return x;case PathParser.QUAD_TO:for(x=0,S=this.getPointOnQuadraticBezier(0,b,A,C[0],C[1],C[2],C[3]),P=.01;P<=1;P+=.01)E=this.getPointOnQuadraticBezier(P,b,A,C[0],C[1],C[2],C[3]),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;return x;case PathParser.ARC:{x=0;const B=C[4],k=C[5],$=C[4]+k;let I=Math.PI/180;if(Math.abs(B-$)<I&&(I=Math.abs(B-$)),S=this.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],B,0),k<0)for(P=B-I;P>$;P-=I)E=this.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],P,0),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;else for(P=B+I;P<$;P+=I)E=this.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],P,0),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;return E=this.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],$,0),x+=this.getLineLength(S.x,S.y,E.x,E.y),x}}return 0}getPointOnLine(b,A,w,C,x){let S=arguments.length>5&&arguments[5]!==void 0?arguments[5]:A,E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:w;const P=(x-w)/(C-A+PSEUDO_ZERO);let B=Math.sqrt(b*b/(1+P*P));C<A&&(B*=-1);let k=P*B,$=null;if(C===A)$={x:S,y:E+k};else if((E-w)/(S-A+PSEUDO_ZERO)===P)$={x:S+B,y:E+k};else{let I=0,D=0;const F=this.getLineLength(A,w,C,x);if(F<PSEUDO_ZERO)return null;let z=(S-A)*(C-A)+(E-w)*(x-w);z/=F*F,I=A+z*(C-A),D=w+z*(x-w);const L=this.getLineLength(S,E,I,D),H=Math.sqrt(b*b-L*L);B=Math.sqrt(H*H/(1+P*P)),C<A&&(B*=-1),k=P*B,$={x:I+B,y:D+k}}return $}getPointOnPath(b){const A=this.getPathLength();let w=0,C=null;if(b<-5e-5||b-5e-5>A)return null;const{dataArray:x}=this;for(const S of x){if(S&&(S.pathLength<5e-5||w+S.pathLength+5e-5<b)){w+=S.pathLength;continue}const E=b-w;let P=0;switch(S.type){case PathParser.LINE_TO:C=this.getPointOnLine(E,S.start.x,S.start.y,S.points[0],S.points[1],S.start.x,S.start.y);break;case PathParser.ARC:{const B=S.points[4],k=S.points[5],$=S.points[4]+k;if(P=B+E/S.pathLength*k,k<0&&P<$||k>=0&&P>$)break;C=this.getPointOnEllipticalArc(S.points[0],S.points[1],S.points[2],S.points[3],P,S.points[6]);break}case PathParser.CURVE_TO:P=E/S.pathLength,P>1&&(P=1),C=this.getPointOnCubicBezier(P,S.start.x,S.start.y,S.points[0],S.points[1],S.points[2],S.points[3],S.points[4],S.points[5]);break;case PathParser.QUAD_TO:P=E/S.pathLength,P>1&&(P=1),C=this.getPointOnQuadraticBezier(P,S.start.x,S.start.y,S.points[0],S.points[1],S.points[2],S.points[3]);break}if(C)return C;break}return null}getLineLength(b,A,w,C){return Math.sqrt((w-b)*(w-b)+(C-A)*(C-A))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((b,A)=>A.pathLength>0?b+A.pathLength:b,0)),this.pathLength}getPointOnCubicBezier(b,A,w,C,x,S,E,P,B){const k=P*CB1(b)+S*CB2(b)+C*CB3(b)+A*CB4(b),$=B*CB1(b)+E*CB2(b)+x*CB3(b)+w*CB4(b);return{x:k,y:$}}getPointOnQuadraticBezier(b,A,w,C,x,S,E){const P=S*QB1(b)+C*QB2(b)+A*QB3(b),B=E*QB1(b)+x*QB2(b)+w*QB3(b);return{x:P,y:B}}getPointOnEllipticalArc(b,A,w,C,x,S){const E=Math.cos(S),P=Math.sin(S),B={x:w*Math.cos(x),y:C*Math.sin(x)};return{x:b+(B.x*E-B.y*P),y:A+(B.x*P+B.y*E)}}buildEquidistantCache(b,A){const w=this.getPathLength(),C=A||.25,x=b||w/100;if(!this.equidistantCache||this.equidistantCache.step!==x||this.equidistantCache.precision!==C){this.equidistantCache={step:x,precision:C,points:[]};let S=0;for(let E=0;E<=w;E+=C){const P=this.getPointOnPath(E),B=this.getPointOnPath(E+C);!P||!B||(S+=this.getLineLength(P.x,P.y,B.x,B.y),S>=x&&(this.equidistantCache.points.push({x:P.x,y:P.y,distance:E}),S-=x))}}}getEquidistantPointOnPath(b,A,w){if(this.buildEquidistantCache(A,w),b<0||b-this.getPathLength()>5e-5)return null;const C=Math.round(b/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[C]||null}constructor(b,A,w){super(b,A,w),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);const C=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(C)}}const dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{async loadImage(b){try{const A=await this.document.createImage(b);this.image=A}catch(A){console.error('Error while loading image "'.concat(b,'":'),A)}this.loaded=!0}async loadSvg(b){const A=dataUriRegex.exec(b);if(A){const w=A[5];w&&(A[4]==="base64"?this.image=atob(w):this.image=decodeURIComponent(w))}else try{const C=await(await this.document.fetch(b)).text();this.image=C}catch(w){console.error('Error while loading image "'.concat(b,'":'),w)}this.loaded=!0}renderChildren(b){const{document:A,image:w,loaded:C}=this,x=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),E=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y");if(!(!C||!w||!E||!P)){if(b.save(),b.translate(x,S),typeof w=="string"){const B=A.canvg.forkString(b,w,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:E,scaleHeight:P}),{documentElement:k}=B.document;k&&(k.parent=this),B.render()}else A.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:E,desiredWidth:w.width,height:P,desiredHeight:w.height}),this.loaded&&(!("complete"in w)||w.complete)&&b.drawImage(w,0,0);b.restore()}}getBoundingBox(){const b=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),w=this.getStyle("width").getPixels("x"),C=this.getStyle("height").getPixels("y");return new BoundingBox(b,A,b+w,A+C)}constructor(b,A,w){super(b,A,w),this.type="image",this.loaded=!1;const C=this.getHrefAttribute().getString();if(!C)return;const x=C.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(C);b.images.push(this),x?this.loadSvg(C):this.loadImage(C)}}class SymbolElement extends RenderedElement{render(b){}constructor(...b){super(...b),this.type="symbol"}}class SVGFontLoader{async load(b,A){try{const{document:w}=this,x=(await w.canvg.parser.load(A)).getElementsByTagName("font");Array.from(x).forEach(S=>{const E=w.createElement(S);w.definitions[b]=E})}catch(w){console.error('Error while loading font "'.concat(A,'":'),w)}this.loaded=!0}constructor(b){this.document=b,this.loaded=!1,b.fonts.push(this)}}class StyleElement extends Element$1{constructor(b,A,w){super(b,A,w),this.type="style",compressSpaces(Array.from(A.childNodes).map(S=>S.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(S=>{const E=S.trim();if(!E)return;const P=E.split("{"),B=P[0].split(","),k=P[1].split(";");B.forEach($=>{const I=$.trim();if(!I)return;const D=b.styles[I]||{};if(k.forEach(F=>{const z=F.indexOf(":"),L=F.substr(0,z).trim(),H=F.substr(z+1,F.length-z).trim();L&&H&&(D[L]=new Property(b,L,H))}),b.styles[I]=D,b.stylesSpecificity[I]=getSelectorSpecificity(I),I==="@font-face"){const F=D["font-family"].getString().replace(/"|'/g,"");D.src.getString().split(",").forEach(L=>{if(L.indexOf('format("svg")')>0){const H=parseExternalUrl(L);H&&new SVGFontLoader(b).load(F,H)}})}})})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{setContext(b){super.setContext(b);const A=this.getAttribute("x"),w=this.getAttribute("y");A.hasValue()&&b.translate(A.getPixels("x"),0),w.hasValue()&&b.translate(0,w.getPixels("y"))}path(b){const{element:A}=this;A&&A.path(b)}renderChildren(b){const{document:A,element:w}=this;if(w){let C=w;if(w.type==="symbol"&&(C=new SVGElement$1(A),C.attributes.viewBox=new Property(A,"viewBox",w.getAttribute("viewBox").getString()),C.attributes.preserveAspectRatio=new Property(A,"preserveAspectRatio",w.getAttribute("preserveAspectRatio").getString()),C.attributes.overflow=new Property(A,"overflow",w.getAttribute("overflow").getString()),C.children=w.children,w.styles.opacity=new Property(A,"opacity",this.calculateOpacity())),C.type==="svg"){const S=this.getStyle("width",!1,!0),E=this.getStyle("height",!1,!0);S.hasValue()&&(C.attributes.width=new Property(A,"width",S.getString())),E.hasValue()&&(C.attributes.height=new Property(A,"height",E.getString()))}const x=C.parent;C.parent=this,C.render(b),C.parent=x}}getBoundingBox(b){const{element:A}=this;return A?A.getBoundingBox(b):null}elementTransform(){const{document:b,element:A}=this;return A?Transform.fromElement(b,A):null}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...b){super(...b),this.type="use"}}function imGet(d,b,A,w,C,x){return d[A*w*4+b*4+x]}function imSet(d,b,A,w,C,x,S){d[A*w*4+b*4+x]=S}function m(d,b,A){return d[b]*A}function c(d,b,A,w){return b+Math.cos(d)*A+Math.sin(d)*w}class FeColorMatrixElement extends Element$1{apply(b,A,w,C,x){const{includeOpacity:S,matrix:E}=this,P=b.getImageData(0,0,C,x);for(let B=0;B<x;B++)for(let k=0;k<C;k++){const $=imGet(P.data,k,B,C,x,0),I=imGet(P.data,k,B,C,x,1),D=imGet(P.data,k,B,C,x,2),F=imGet(P.data,k,B,C,x,3);let z=m(E,0,$)+m(E,1,I)+m(E,2,D)+m(E,3,F)+m(E,4,1),L=m(E,5,$)+m(E,6,I)+m(E,7,D)+m(E,8,F)+m(E,9,1),H=m(E,10,$)+m(E,11,I)+m(E,12,D)+m(E,13,F)+m(E,14,1),Q=m(E,15,$)+m(E,16,I)+m(E,17,D)+m(E,18,F)+m(E,19,1);S&&(z=0,L=0,H=0,Q*=F/255),imSet(P.data,k,B,C,x,0,z),imSet(P.data,k,B,C,x,1,L),imSet(P.data,k,B,C,x,2,H),imSet(P.data,k,B,C,x,3,Q)}b.clearRect(0,0,C,x),b.putImageData(P,0,0)}constructor(b,A,w){super(b,A,w),this.type="feColorMatrix";let C=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{const x=C[0];C=[.213+.787*x,.715-.715*x,.072-.072*x,0,0,.213-.213*x,.715+.285*x,.072-.072*x,0,0,.213-.213*x,.715-.715*x,.072+.928*x,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{const x=C[0]*Math.PI/180;C=[c(x,.213,.787,-.213),c(x,.715,-.715,-.715),c(x,.072,-.072,.928),0,0,c(x,.213,-.213,.143),c(x,.715,.285,.14),c(x,.072,-.072,-.283),0,0,c(x,.213,-.213,-.787),c(x,.715,-.715,.715),c(x,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=C,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}}class MaskElement extends Element$1{apply(b,A){const{document:w}=this;let C=this.getAttribute("x").getPixels("x"),x=this.getAttribute("y").getPixels("y"),S=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(!S&&!E){const D=new BoundingBox;this.children.forEach(F=>{D.addBoundingBox(F.getBoundingBox(b))}),C=Math.floor(D.x1),x=Math.floor(D.y1),S=Math.floor(D.width),E=Math.floor(D.height)}const P=this.removeStyles(A,MaskElement.ignoreStyles),B=w.createCanvas(C+S,x+E),k=B.getContext("2d");w.screen.setDefaults(k),this.renderChildren(k),new FeColorMatrixElement(w,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,C+S,x+E);const $=w.createCanvas(C+S,x+E),I=$.getContext("2d");w.screen.setDefaults(I),A.render(I),I.globalCompositeOperation="destination-in",I.fillStyle=k.createPattern(B,"no-repeat"),I.fillRect(0,0,C+S,x+E),b.fillStyle=I.createPattern($,"no-repeat"),b.fillRect(0,0,C+S,x+E),this.restoreStyles(A,P)}render(b){}constructor(...b){super(...b),this.type="mask"}}MaskElement.ignoreStyles=["mask","transform","clip-path"];const noop$1=()=>{};class ClipPathElement extends Element$1{apply(b){const{document:A}=this,w=Reflect.getPrototypeOf(b),{beginPath:C,closePath:x}=b;w&&(w.beginPath=noop$1,w.closePath=noop$1),Reflect.apply(C,b,[]),this.children.forEach(S=>{if(!("path"in S))return;let E="elementTransform"in S?S.elementTransform():null;E||(E=Transform.fromElement(A,S)),E&&E.apply(b),S.path(b),w&&(w.closePath=x),E&&E.unapply(b)}),Reflect.apply(x,b,[]),b.clip(),w&&(w.beginPath=C,w.closePath=x)}render(b){}constructor(...b){super(...b),this.type="clipPath"}}class FilterElement extends Element$1{apply(b,A){const{document:w,children:C}=this,x="getBoundingBox"in A?A.getBoundingBox(b):null;if(!x)return;let S=0,E=0;C.forEach(H=>{const Q=H.extraFilterDistance||0;S=Math.max(S,Q),E=Math.max(E,Q)});const P=Math.floor(x.width),B=Math.floor(x.height),k=P+2*S,$=B+2*E;if(k<1||$<1)return;const I=Math.floor(x.x),D=Math.floor(x.y),F=this.removeStyles(A,FilterElement.ignoreStyles),z=w.createCanvas(k,$),L=z.getContext("2d");w.screen.setDefaults(L),L.translate(-I+S,-D+E),A.render(L),C.forEach(H=>{typeof H.apply=="function"&&H.apply(L,0,0,k,$)}),b.drawImage(z,0,0,k,$,I-S,D-E,k,$),this.restoreStyles(A,F)}render(b){}constructor(...b){super(...b),this.type="filter"}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element$1{apply(b,A,w,C,x){}constructor(b,A,w){super(b,A,w),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class FeMorphologyElement extends Element$1{apply(b,A,w,C,x){}constructor(...b){super(...b),this.type="feMorphology"}}class FeCompositeElement extends Element$1{apply(b,A,w,C,x){}constructor(...b){super(...b),this.type="feComposite"}}class FeGaussianBlurElement extends Element$1{apply(b,A,w,C,x){const{document:S,blurRadius:E}=this,P=S.window?S.window.document.body:null,B=b.canvas;B.id=S.getUniqueId(),P&&(B.style.display="none",P.appendChild(B)),processCanvasRGBA(B,A,w,C,x,E),P&&P.removeChild(B)}constructor(b,A,w){super(b,A,w),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}}class TitleElement extends Element$1{constructor(...b){super(...b),this.type="title"}}class DescElement extends Element$1{constructor(...b){super(...b),this.type="desc"}}const elements={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function createCanvas(d,b){const A=document.createElement("canvas");return A.width=d,A.height=b,A}async function createImage(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const A=document.createElement("img");return b&&(A.crossOrigin="Anonymous"),new Promise((w,C)=>{A.onload=()=>{w(A)},A.onerror=(x,S,E,P,B)=>{C(B)},A.src=d})}const DEFAULT_EM_SIZE=12;class Document{bindCreateImage(b,A){return typeof A=="boolean"?(w,C)=>b(w,typeof C=="boolean"?C:A):b}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){const{emSizeStack:b}=this;return b[b.length-1]||DEFAULT_EM_SIZE}set emSize(b){const{emSizeStack:A}=this;A.push(b)}popEmSize(){const{emSizeStack:b}=this;b.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(b=>b.loaded)}isFontsLoaded(){return this.fonts.every(b=>b.loaded)}createDocumentElement(b){const A=this.createElement(b.documentElement);return A.root=!0,A.addStylesFromStyleDefinition(),this.documentElement=A,A}createElement(b){const A=b.nodeName.replace(/^[^:]+:/,""),w=Document.elementTypes[A];return w?new w(this,b):new UnknownElement(this,b)}createTextNode(b){return new TextNode(this,b)}setViewBox(b){this.screen.setViewBox({document:this,...b})}constructor(b,{rootEmSize:A=DEFAULT_EM_SIZE,emSize:w=DEFAULT_EM_SIZE,createCanvas:C=Document.createCanvas,createImage:x=Document.createImage,anonymousCrossOrigin:S}={}){this.canvg=b,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=b.screen,this.rootEmSize=A,this.emSize=w,this.createCanvas=C,this.createImage=this.bindCreateImage(x,S),this.screen.wait(()=>this.isImagesLoaded()),this.screen.wait(()=>this.isFontsLoaded())}}Document.createCanvas=createCanvas;Document.createImage=createImage;Document.elementTypes=elements;class Canvg{static async from(b,A){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=await new Parser(w).parse(A);return new Canvg(b,x,w)}static fromString(b,A){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=new Parser(w).parseFromString(A);return new Canvg(b,x,w)}fork(b,A){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(b,A,{...this.options,...w})}forkString(b,A){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(b,A,{...this.options,...w})}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}async render(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.start({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0,...b}),await this.ready(),this.stop()}start(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{documentElement:A,screen:w,options:C}=this;w.start(A,{enableRedraw:!0,...C,...b})}stop(){this.screen.stop()}resize(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(b,A,w)}constructor(b,A,w={}){this.parser=new Parser(w),this.screen=new Screen(b,w),this.options=w;const C=new Document(this,w),x=C.createDocumentElement(A);this.document=C,this.documentElement=x}}const svg2canvas=d=>{const b=document.createElement("canvas"),A=b.getContext("2d");return A&&Canvg.fromString(A,d).start(),b},btnImg="_btnImg_1oip1_1",topBtnIcon="_topBtnIcon_1oip1_13",dropItem="_dropItem_1oip1_17",dropIcon="_dropIcon_1oip1_21",dropWrap="_dropWrap_1oip1_26",styles$2={btnImg,topBtnIcon,dropItem,dropIcon,dropWrap},FileBtn=defineComponent({name:"FileBtn",emits:["select"],setup(d,{emit:b}){const A=[{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_4.png")},null),createVNode("span",null,[createTextVNode("新建曲谱")])]),key:"newMusic"},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_0.png")},null),createVNode("span",null,[createTextVNode("保存")])]),key:"save"},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_1.png")},null),createVNode("span",null,[createTextVNode("上传到我的资源")])]),key:"upload",disabled:!0},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_2.png")},null),createVNode("span",null,[createTextVNode("导出")])]),key:"export",children:[{label:"PNG",key:"png"},{label:"WAV",key:"wav"},{label:"MIDI",key:"midi"}]},{label:()=>createVNode("div",{class:styles$2.dropItem},[createVNode("img",{class:styles$2.dropIcon,src:getImage("icon_26_3.png")},null),createVNode("span",null,[createTextVNode("打印")])]),key:"print",disabled:!0}];return()=>createVNode(NDropdown,{class:styles$2.dropWrap,options:A,trigger:"click",onSelect:w=>{console.log("🚀 ~ val:",w),b("select",w)}},{default:()=>[createVNode("div",{class:styles$2.btnImg},[createVNode("img",{class:styles$2.topBtnIcon,src:getImage("icon_0.png")},null)])]})}}),setbox="_setbox_1p89x_1",head="_head_1p89x_11",close="_close_1p89x_25",content="_content_1p89x_31",slide="_slide_1p89x_36",box="_box_1p89x_43",btn$1="_btn_1p89x_56",activeBtn="_activeBtn_1p89x_63",btnIcon="_btnIcon_1p89x_68",keyBox="_keyBox_1p89x_71",table="_table_1p89x_74",styles$1={setbox,head,close,content,slide,box,btn:btn$1,activeBtn,btnIcon,keyBox,table};function _isSlot$1(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const TheSetting=defineComponent({name:"TheSetting",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(d,{emit:b}){useMessage();const A=reactive({show:!1,btns:[{label:"播放设置",key:"1",icon:getImage("icon_28_1.png")},{label:"快捷键",key:"3",icon:getImage("icon_28_3.png")}],active:"3"});watch(()=>d.show,()=>{A.show=d.show});const w=[{label:"音符向上",value:"↑"},{label:"音符向下",value:"↓"},{label:"音符C",value:"C"},{label:"音符D",value:"D"},{label:"音符E",value:"E"},{label:"音符F",value:"F"},{label:"音符G",value:"G"},{label:"音符A",value:"A"},{label:"音符B",value:"B"},{label:"BackSpace",value:"删除音符"}];return()=>{let C;return createVNode(NModal,{autoFocus:!1,show:d.show,"onUpdate:show":x=>b("update:show",x)},{default:()=>[createVNode("div",{class:styles$1.setbox},[createVNode("div",{class:styles$1.head},[createVNode("div",null,[createTextVNode("设置")]),createVNode(NButton,{class:styles$1.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$1.content},[createVNode("div",{class:styles$1.slide},[createVNode(NSpace,{vertical:!0,align:"center",wrapItem:!1},_isSlot$1(C=A.btns.map(x=>createVNode(NButton,{quaternary:!0,block:!0,class:[styles$1.btn,A.active===x.key&&styles$1.activeBtn],onClick:()=>A.active=x.key},{icon:()=>createVNode("img",{class:styles$1.btnIcon,src:x.icon},null),default:()=>x.label})))?C:{default:()=>[C]})]),createVNode("div",{class:styles$1.box},[createVNode(NTabs,{value:A.active,"onUpdate:value":x=>A.active=x},{default:()=>[createVNode(NTabPane,{name:"1",tab:"1"},{default:()=>[createVNode("div",{class:styles$1.keyBox},[createVNode(NCard,{title:"光标设置",bordered:!1},{default:()=>[createVNode(NRadioGroup,{value:settings.cursorType,"onUpdate:value":x=>settings.cursorType=x},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NRadio,{value:"beat",disabled:!0},{default:()=>[createTextVNode("光标跟随节拍")]}),createVNode(NRadio,{value:"note"},{default:()=>[createTextVNode("光标跟随音符")]})]})]})]})])]}),createVNode(NTabPane,{name:"3",tab:"3"},{default:()=>[createVNode(NScrollbar,null,{default:()=>[createVNode("div",{class:styles$1.keyBox},[createVNode(NTable,{class:styles$1.table,striped:!0},{default:()=>[createVNode("thead",null,[createVNode("tr",null,[createVNode("th",null,[createTextVNode("命令")]),createVNode("th",null,[createTextVNode("快捷键")])])]),createVNode("tbody",null,[w.map(x=>createVNode("tr",null,[createVNode("td",null,[x.label]),createVNode("td",null,[x.value])]))])]})])]})]})]})])])])]})}}}),acoustic_grand_piano="三角大钢琴",bright_acoustic_piano="明亮钢琴",electric_grand_piano="电声大钢琴",honkytonk_piano="梦幻电钢",electric_piano_1="电子钢琴1",electric_piano_2="电子钢琴2",harpsichord="羽管键琴",clavinet="古钢琴",celesta="钢片琴",glockenspiel="钟琴",music_box="音乐盒",vibraphone="颤音琴",marimba="马林巴琴",xylophone="木琴",tubular_bells="管钟",dulcimer="杜西莫琴",drawbar_organ="拉杆管风琴",percussive_organ="敲击管风琴",rock_organ="摇滚管风琴",church_organ="教堂管风琴",reed_organ="簧片管风琴",accordion="手风琴",harmonica="口琴",tango_accordion="探戈手风琴",acoustic_guitar_nylon="古典吉他",acoustic_guitar_steel="民谣吉他",electric_guitar_jazz="爵士电吉他",electric_guitar_clean="清音电吉他",electric_guitar_muted="闷音电吉他",overdriven_guitar="过载电吉他",distortion_guitar="失真电吉他",guitar_harmonics="泛音吉他",acoustic_bass="原声贝司",electric_bass_finger="手弹贝司",electric_bass_pick="拨片贝司",fretless_bass="无品贝司",slap_bass_1="击弦贝司1",slap_bass_2="击弦贝司2",synth_bass_1="电贝司1",synth_bass_2="电贝司2",violin="小提琴",viola="中提琴",cello="大提琴",contrabass="倍大提琴",tremolo_strings="颤音弦乐",pizzicato_strings="弹拨弦乐",orchestral_harp="竖琴",timpani="定音鼓",string_ensemble_1="弦乐合奏1",string_ensemble_2="弦乐合奏2",synth_strings_1="合成弦乐1",synth_strings_2="合成弦乐2",choir_aahs="人声合唱“啊”",voice_oohs="人声合唱“嘟”",synth_choir="童声合唱",orchestra_hit="打击交响乐",trumpet="小号",trombone="长号",tuba="大号",muted_trumpet="弱音小号",french_horn="法国圆号",brass_section="铜管乐合奏",synth_brass_1="合成铜管1",synth_brass_2="合成铜管2",soprano_sax="高音萨克斯",alto_sax="中音萨克斯",tenor_sax="次中音萨克斯",baritone_sax="上低音音萨克斯",oboe="双簧管",english_horn="英国管",bassoon="巴松管",clarinet="葫芦丝",piccolo="口风琴",flute="长笛",recorder="竖笛",pan_flute="排箫",blown_bottle="陶笛",shakuhachi="尺八",whistle="口哨",ocarina="瓶笛",lead_1_square="合成器1(方形)",lead_2_sawtooth="合成器2(锯齿波)",lead_3_calliope="主音3(汽笛风琴主奏)",lead_4_chiff="主音4(领奏)",lead_5_charang="主音5(沙朗主奏)",lead_6_voice="主音6(声音)",lead_7_fifths="主音7(五度管乐)",lead_8_bass_lead="主音8(贝司主奏)",pad_1_new_age="长音1(新世纪音乐)",pad_2_warm="长音2(温暖的音色)",pad_3_polysynth="长音3(多合成音色)",pad_4_choir="长音4(合唱)",pad_5_bowed="长音5(弧形波)",pad_6_metallic="长音6(金属感)",pad_7_halo="长音7(光晕)",pad_8_sweep="长音8(曲线波)",fx_1_rain="特效1(雨声)",fx_2_soundtrack="特效2(电影声效)",fx_3_crystal="特效3(清澈)",fx_4_atmosphere="特效4(气氛)",fx_5_brightness="特效5(明亮)",fx_6_goblins="特效6(哥布林)",fx_7_echoes="特效7(回响)",fx_8_scifi="特效8(科幻)",sitar="西塔尔琴",banjo="班卓琴",shamisen="三弦琴",koto="十三弦古筝",kalimba="克林巴琴",bagpipe="苏格兰风笛",fiddle="古提琴",shanai="响嘁",tinkle_bell="铃铛",agogo="摇摆舞铃",steel_drums="钢鼓",woodblock="木鱼",taiko_drum="太鼓",melodic_tom="通通鼓",synth_drum="合成鼓",reverse_cymbal="铜钹",guitar_fret_noise="吉他换把杂音",breath_noise="呼吸声",seashore="海浪声",bird_tweet="鸟鸣叫",telephone_ring="手机铃声",helicopter="直升机",applause="鼓掌",gunshot="射击",percussion="打击乐",instrumentsNames={acoustic_grand_piano,bright_acoustic_piano,electric_grand_piano,honkytonk_piano,electric_piano_1,electric_piano_2,harpsichord,clavinet,celesta,glockenspiel,music_box,vibraphone,marimba,xylophone,tubular_bells,dulcimer,drawbar_organ,percussive_organ,rock_organ,church_organ,reed_organ,accordion,harmonica,tango_accordion,acoustic_guitar_nylon,acoustic_guitar_steel,electric_guitar_jazz,electric_guitar_clean,electric_guitar_muted,overdriven_guitar,distortion_guitar,guitar_harmonics,acoustic_bass,electric_bass_finger,electric_bass_pick,fretless_bass,slap_bass_1,slap_bass_2,synth_bass_1,synth_bass_2,violin,viola,cello,contrabass,tremolo_strings,pizzicato_strings,orchestral_harp,timpani,string_ensemble_1,string_ensemble_2,synth_strings_1,synth_strings_2,choir_aahs,voice_oohs,synth_choir,orchestra_hit,trumpet,trombone,tuba,muted_trumpet,french_horn,brass_section,synth_brass_1,synth_brass_2,soprano_sax,alto_sax,tenor_sax,baritone_sax,oboe,english_horn,bassoon,clarinet,piccolo,flute,recorder,pan_flute,blown_bottle,shakuhachi,whistle,ocarina,lead_1_square,lead_2_sawtooth,lead_3_calliope,lead_4_chiff,lead_5_charang,lead_6_voice,lead_7_fifths,lead_8_bass_lead,pad_1_new_age,pad_2_warm,pad_3_polysynth,pad_4_choir,pad_5_bowed,pad_6_metallic,pad_7_halo,pad_8_sweep,fx_1_rain,fx_2_soundtrack,fx_3_crystal,fx_4_atmosphere,fx_5_brightness,fx_6_goblins,fx_7_echoes,fx_8_scifi,sitar,banjo,shamisen,koto,kalimba,bagpipe,fiddle,shanai,tinkle_bell,agogo,steel_drums,woodblock,taiko_drum,melodic_tom,synth_drum,reverse_cymbal,guitar_fret_noise,breath_noise,seashore,bird_tweet,telephone_ring,helicopter,applause,gunshot,percussion};function tryOnScopeDispose(d){return getCurrentScope()?(onScopeDispose(d),!0):!1}function toValue(d){return typeof d=="function"?d():unref(d)}const isClient=typeof window<"u",noop=()=>{},isIOS=getIsIOS();function getIsIOS(){var d;return isClient&&((d=window==null?void 0:window.navigator)==null?void 0:d.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(d,b){function A(...w){return new Promise((C,x)=>{Promise.resolve(d(()=>b.apply(this,w),{fn:b,thisArg:this,args:w})).then(C).catch(x)})}return A}const bypassFilter=d=>d();function pausableFilter(d=bypassFilter){const b=ref(!0);function A(){b.value=!1}function w(){b.value=!0}const C=(...x)=>{b.value&&d(...x)};return{isActive:readonly(b),pause:A,resume:w,eventFilter:C}}function toRef(...d){if(d.length!==1)return toRef$1(...d);const b=d[0];return typeof b=="function"?readonly(customRef(()=>({get:b,set:noop}))):ref(b)}var __defProp$9=Object.defineProperty,__defProps$7=Object.defineProperties,__getOwnPropDescs$7=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(d,b,A)=>b in d?__defProp$9(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A,__spreadValues$9=(d,b)=>{for(var A in b||(b={}))__hasOwnProp$b.call(b,A)&&__defNormalProp$9(d,A,b[A]);if(__getOwnPropSymbols$b)for(var A of __getOwnPropSymbols$b(b))__propIsEnum$b.call(b,A)&&__defNormalProp$9(d,A,b[A]);return d},__spreadProps$7=(d,b)=>__defProps$7(d,__getOwnPropDescs$7(b));function toRefs(d,b={}){if(!isRef(d))return toRefs$1(d);const A=Array.isArray(d.value)?Array.from({length:d.value.length}):{};for(const w in d.value)A[w]=customRef(()=>({get(){return d.value[w]},set(C){var x;if((x=toValue(b.replaceRef))!=null?x:!0)if(Array.isArray(d.value)){const E=[...d.value];E[w]=C,d.value=E}else{const E=__spreadProps$7(__spreadValues$9({},d.value),{[w]:C});Object.setPrototypeOf(E,Object.getPrototypeOf(d.value)),d.value=E}else d.value[w]=C}}));return A}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$5=(d,b)=>{var A={};for(var w in d)__hasOwnProp$8.call(d,w)&&b.indexOf(w)<0&&(A[w]=d[w]);if(d!=null&&__getOwnPropSymbols$8)for(var w of __getOwnPropSymbols$8(d))b.indexOf(w)<0&&__propIsEnum$8.call(d,w)&&(A[w]=d[w]);return A};function watchWithFilter(d,b,A={}){const w=A,{eventFilter:C=bypassFilter}=w,x=__objRest$5(w,["eventFilter"]);return watch(d,createFilterWrapper(C,b),x)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(d,b,A)=>b in d?__defProp$2(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A,__spreadValues$2=(d,b)=>{for(var A in b||(b={}))__hasOwnProp$2.call(b,A)&&__defNormalProp$2(d,A,b[A]);if(__getOwnPropSymbols$2)for(var A of __getOwnPropSymbols$2(b))__propIsEnum$2.call(b,A)&&__defNormalProp$2(d,A,b[A]);return d},__spreadProps$2=(d,b)=>__defProps$2(d,__getOwnPropDescs$2(b)),__objRest$1=(d,b)=>{var A={};for(var w in d)__hasOwnProp$2.call(d,w)&&b.indexOf(w)<0&&(A[w]=d[w]);if(d!=null&&__getOwnPropSymbols$2)for(var w of __getOwnPropSymbols$2(d))b.indexOf(w)<0&&__propIsEnum$2.call(d,w)&&(A[w]=d[w]);return A};function watchPausable(d,b,A={}){const w=A,{eventFilter:C}=w,x=__objRest$1(w,["eventFilter"]),{eventFilter:S,pause:E,resume:P,isActive:B}=pausableFilter(C);return{stop:watchWithFilter(d,b,__spreadProps$2(__spreadValues$2({},x),{eventFilter:S})),pause:E,resume:P,isActive:B}}function unrefElement$1(d){var b;const A=toValue(d);return(b=A==null?void 0:A.$el)!=null?b:A}const defaultWindow$1=isClient?window:void 0;function useEventListener$1(...d){let b,A,w,C;if(typeof d[0]=="string"||Array.isArray(d[0])?([A,w,C]=d,b=defaultWindow$1):[b,A,w,C]=d,!b)return noop;Array.isArray(A)||(A=[A]),Array.isArray(w)||(w=[w]);const x=[],S=()=>{x.forEach(k=>k()),x.length=0},E=(k,$,I,D)=>(k.addEventListener($,I,D),()=>k.removeEventListener($,I,D)),P=watch(()=>[unrefElement$1(b),toValue(C)],([k,$])=>{S(),k&&x.push(...A.flatMap(I=>w.map(D=>E(k,I,D,$))))},{immediate:!0,flush:"post"}),B=()=>{P(),S()};return tryOnScopeDispose(B),B}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global||(_global[globalKey]=_global[globalKey]||{}),_global[globalKey]}function getSSRHandler(d,b){return handlers[d]||b}function guessSerializerType(d){return d==null?"any":d instanceof Set?"set":d instanceof Map?"map":d instanceof Date?"date":typeof d=="boolean"?"boolean":typeof d=="string"?"string":typeof d=="object"?"object":Number.isNaN(d)?"any":"number"}var __defProp$l=Object.defineProperty,__getOwnPropSymbols$o=Object.getOwnPropertySymbols,__hasOwnProp$o=Object.prototype.hasOwnProperty,__propIsEnum$o=Object.prototype.propertyIsEnumerable,__defNormalProp$l=(d,b,A)=>b in d?__defProp$l(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A,__spreadValues$l=(d,b)=>{for(var A in b||(b={}))__hasOwnProp$o.call(b,A)&&__defNormalProp$l(d,A,b[A]);if(__getOwnPropSymbols$o)for(var A of __getOwnPropSymbols$o(b))__propIsEnum$o.call(b,A)&&__defNormalProp$l(d,A,b[A]);return d};const StorageSerializers={boolean:{read:d=>d==="true",write:d=>String(d)},object:{read:d=>JSON.parse(d),write:d=>JSON.stringify(d)},number:{read:d=>Number.parseFloat(d),write:d=>String(d)},any:{read:d=>d,write:d=>String(d)},string:{read:d=>d,write:d=>String(d)},map:{read:d=>new Map(JSON.parse(d)),write:d=>JSON.stringify(Array.from(d.entries()))},set:{read:d=>new Set(JSON.parse(d)),write:d=>JSON.stringify(Array.from(d))},date:{read:d=>new Date(d),write:d=>d.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(d,b,A,w={}){var C;const{flush:x="pre",deep:S=!0,listenToStorageChanges:E=!0,writeDefaults:P=!0,mergeDefaults:B=!1,shallow:k,window:$=defaultWindow$1,eventFilter:I,onError:D=X=>{console.error(X)}}=w,F=(k?shallowRef:ref)(b);if(!A)try{A=getSSRHandler("getDefaultStorage",()=>{var X;return(X=defaultWindow$1)==null?void 0:X.localStorage})()}catch(X){D(X)}if(!A)return F;const z=toValue(b),L=guessSerializerType(z),H=(C=w.serializer)!=null?C:StorageSerializers[L],{pause:Q,resume:Y}=watchPausable(F,()=>U(F.value),{flush:x,deep:S,eventFilter:I});return $&&E&&(useEventListener$1($,"storage",K),useEventListener$1($,customStorageEventName,W)),K(),F;function U(X){try{if(X==null)A.removeItem(d);else{const Z=H.write(X),oe=A.getItem(d);oe!==Z&&(A.setItem(d,Z),$&&$.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:d,oldValue:oe,newValue:Z,storageArea:A}})))}}catch(Z){D(Z)}}function G(X){const Z=X?X.newValue:A.getItem(d);if(Z==null)return P&&z!==null&&A.setItem(d,H.write(z)),z;if(!X&&B){const oe=H.read(Z);return typeof B=="function"?B(oe,z):L==="object"&&!Array.isArray(oe)?__spreadValues$l(__spreadValues$l({},z),oe):oe}else return typeof Z!="string"?Z:H.read(Z)}function W(X){K(X.detail)}function K(X){if(!(X&&X.storageArea!==A)){if(X&&X.key==null){F.value=z;return}if(!(X&&X.key!==d)){Q();try{F.value=G(X)}catch(Z){D(Z)}finally{X?nextTick(Y):Y()}}}}}var __defProp$g=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$i=Object.getOwnPropertySymbols,__hasOwnProp$i=Object.prototype.hasOwnProperty,__propIsEnum$i=Object.prototype.propertyIsEnumerable,__defNormalProp$g=(d,b,A)=>b in d?__defProp$g(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A,__spreadValues$g=(d,b)=>{for(var A in b||(b={}))__hasOwnProp$i.call(b,A)&&__defNormalProp$g(d,A,b[A]);if(__getOwnPropSymbols$i)for(var A of __getOwnPropSymbols$i(b))__propIsEnum$i.call(b,A)&&__defNormalProp$g(d,A,b[A]);return d},__spreadProps$6=(d,b)=>__defProps$6(d,__getOwnPropDescs$6(b));function useDraggable(d,b={}){var A,w;const{pointerTypes:C,preventDefault:x,stopPropagation:S,exact:E,onMove:P,onEnd:B,onStart:k,initialValue:$,axis:I="both",draggingElement:D=defaultWindow$1,handle:F=d}=b,z=ref((A=toValue($))!=null?A:{x:0,y:0}),L=ref(),H=W=>C?C.includes(W.pointerType):!0,Q=W=>{toValue(x)&&W.preventDefault(),toValue(S)&&W.stopPropagation()},Y=W=>{if(!H(W)||toValue(E)&&W.target!==toValue(d))return;const K=toValue(d).getBoundingClientRect(),X={x:W.clientX-K.left,y:W.clientY-K.top};(k==null?void 0:k(X,W))!==!1&&(L.value=X,Q(W))},U=W=>{if(!H(W)||!L.value)return;let{x:K,y:X}=z.value;(I==="x"||I==="both")&&(K=W.clientX-L.value.x),(I==="y"||I==="both")&&(X=W.clientY-L.value.y),z.value={x:K,y:X},P==null||P(z.value,W),Q(W)},G=W=>{H(W)&&L.value&&(L.value=void 0,B==null||B(z.value,W),Q(W))};if(isClient){const W={capture:(w=b.capture)!=null?w:!0};useEventListener$1(F,"pointerdown",Y,W),useEventListener$1(D,"pointermove",U,W),useEventListener$1(D,"pointerup",G,W)}return __spreadProps$6(__spreadValues$g({},toRefs(z)),{position:z,isDragging:computed(()=>!!L.value),style:computed(()=>"left:".concat(z.value.x,"px;top:").concat(z.value.y,"px;"))})}function unrefElement(d){var b;const A=toValue(d);return(b=A==null?void 0:A.$el)!=null?b:A}const defaultWindow=isClient?window:void 0;function useEventListener(...d){let b,A,w,C;if(typeof d[0]=="string"||Array.isArray(d[0])?([A,w,C]=d,b=defaultWindow):[b,A,w,C]=d,!b)return noop;Array.isArray(A)||(A=[A]),Array.isArray(w)||(w=[w]);const x=[],S=()=>{x.forEach(k=>k()),x.length=0},E=(k,$,I,D)=>(k.addEventListener($,I,D),()=>k.removeEventListener($,I,D)),P=watch(()=>[unrefElement(b),toValue(C)],([k,$])=>{S(),k&&x.push(...A.flatMap(I=>w.map(D=>E(k,I,D,$))))},{immediate:!0,flush:"post"}),B=()=>{P(),S()};return tryOnScopeDispose(B),B}var __defProp$b=Object.defineProperty,__defProps$9=Object.defineProperties,__getOwnPropDescs$9=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$d=Object.getOwnPropertySymbols,__hasOwnProp$d=Object.prototype.hasOwnProperty,__propIsEnum$d=Object.prototype.propertyIsEnumerable,__defNormalProp$b=(d,b,A)=>b in d?__defProp$b(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A,__spreadValues$b=(d,b)=>{for(var A in b||(b={}))__hasOwnProp$d.call(b,A)&&__defNormalProp$b(d,A,b[A]);if(__getOwnPropSymbols$d)for(var A of __getOwnPropSymbols$d(b))__propIsEnum$d.call(b,A)&&__defNormalProp$b(d,A,b[A]);return d},__spreadProps$9=(d,b)=>__defProps$9(d,__getOwnPropDescs$9(b));const UseDraggable=defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd"],setup(d,{slots:b}){const A=ref(),w=computed(()=>{var P;return(P=d.handle)!=null?P:A.value}),C=d.storageKey&&useStorage(d.storageKey,toValue(d.initialValue)||{x:0,y:0},isClient?d.storageType==="session"?sessionStorage:localStorage:void 0),x=C||d.initialValue||{x:0,y:0},S=(P,B)=>{var k;(k=d.onEnd)==null||k.call(d,P,B),C&&(C.value.x=P.x,C.value.y=P.y)},E=reactive(useDraggable(A,__spreadProps$9(__spreadValues$b({},d),{handle:w,initialValue:x,onEnd:S})));return()=>{if(b.default)return h$1(d.as||"div",{ref:A,style:"touch-action:none;".concat(E.style)},b.default(E))}}});function checkOverflowScroll(d){const b=window.getComputedStyle(d);if(b.overflowX==="scroll"||b.overflowY==="scroll"||b.overflowX==="auto"&&d.clientWidth<d.scrollWidth||b.overflowY==="auto"&&d.clientHeight<d.scrollHeight)return!0;{const A=d.parentNode;return!A||A.tagName==="BODY"?!1:checkOverflowScroll(A)}}function preventDefault(d){const b=d||window.event,A=b.target;return checkOverflowScroll(A)?!1:b.touches.length>1?!0:(b.preventDefault&&b.preventDefault(),!1)}function useScrollLock(d,b=!1){const A=ref(b);let w=null,C;watch(toRef(d),E=>{if(E){const P=E;C=P.style.overflow,A.value&&(P.style.overflow="hidden")}},{immediate:!0});const x=()=>{const E=toValue(d);!E||A.value||(isIOS&&(w=useEventListener(E,"touchmove",P=>{preventDefault(P)},{passive:!1})),E.style.overflow="hidden",A.value=!0)},S=()=>{const E=toValue(d);!E||!A.value||(isIOS&&(w==null||w()),E.style.overflow=C,A.value=!1)};return tryOnScopeDispose(S),computed({get(){return A.value},set(E){E?x():S()}})}function onScrollLock(){let d=!1;const b=ref(!1);return(A,w)=>{if(b.value=w.value,d)return;d=!0;const C=useScrollLock(A,w.value);watch(b,x=>C.value=x)}}onScrollLock();var howler={};/*!
  24. * howler.js v2.2.3
  25. * howlerjs.com
  26. *
  27. * (c) 2013-2020, James Simpson of GoldFire Studios
  28. * goldfirestudios.com
  29. *
  30. * MIT License
  31. */(function(d){(function(){var b=function(){this.init()};b.prototype={init:function(){var $=this||A;return $._counter=1e3,$._html5AudioPool=[],$.html5PoolSize=10,$._codecs={},$._howls=[],$._muted=!1,$._volume=1,$._canPlayEvent="canplaythrough",$._navigator=typeof window<"u"&&window.navigator?window.navigator:null,$.masterGain=null,$.noAudio=!1,$.usingWebAudio=!0,$.autoSuspend=!0,$.ctx=null,$.autoUnlock=!0,$._setup(),$},volume:function($){var I=this||A;if($=parseFloat($),I.ctx||k(),typeof $<"u"&&$>=0&&$<=1){if(I._volume=$,I._muted)return I;I.usingWebAudio&&I.masterGain.gain.setValueAtTime($,A.ctx.currentTime);for(var D=0;D<I._howls.length;D++)if(!I._howls[D]._webAudio)for(var F=I._howls[D]._getSoundIds(),z=0;z<F.length;z++){var L=I._howls[D]._soundById(F[z]);L&&L._node&&(L._node.volume=L._volume*$)}return I}return I._volume},mute:function($){var I=this||A;I.ctx||k(),I._muted=$,I.usingWebAudio&&I.masterGain.gain.setValueAtTime($?0:I._volume,A.ctx.currentTime);for(var D=0;D<I._howls.length;D++)if(!I._howls[D]._webAudio)for(var F=I._howls[D]._getSoundIds(),z=0;z<F.length;z++){var L=I._howls[D]._soundById(F[z]);L&&L._node&&(L._node.muted=$?!0:L._muted)}return I},stop:function(){for(var $=this||A,I=0;I<$._howls.length;I++)$._howls[I].stop();return $},unload:function(){for(var $=this||A,I=$._howls.length-1;I>=0;I--)$._howls[I].unload();return $.usingWebAudio&&$.ctx&&typeof $.ctx.close<"u"&&($.ctx.close(),$.ctx=null,k()),$},codecs:function($){return(this||A)._codecs[$.replace(/^x-/,"")]},_setup:function(){var $=this||A;if($.state=$.ctx&&$.ctx.state||"suspended",$._autoSuspend(),!$.usingWebAudio)if(typeof Audio<"u")try{var I=new Audio;typeof I.oncanplaythrough>"u"&&($._canPlayEvent="canplay")}catch(D){$.noAudio=!0}else $.noAudio=!0;try{var I=new Audio;I.muted&&($.noAudio=!0)}catch(D){}return $.noAudio||$._setupCodecs(),$},_setupCodecs:function(){var $=this||A,I=null;try{I=typeof Audio<"u"?new Audio:null}catch(U){return $}if(!I||typeof I.canPlayType!="function")return $;var D=I.canPlayType("audio/mpeg;").replace(/^no$/,""),F=$._navigator?$._navigator.userAgent:"",z=F.match(/OPR\/([0-6].)/g),L=z&&parseInt(z[0].split("/")[1],10)<33,H=F.indexOf("Safari")!==-1&&F.indexOf("Chrome")===-1,Q=F.match(/Version\/(.*?) /),Y=H&&Q&&parseInt(Q[1],10)<15;return $._codecs={mp3:!!(!L&&(D||I.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!D,opus:!!I.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!I.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!I.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(I.canPlayType('audio/wav; codecs="1"')||I.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!I.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!I.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(I.canPlayType("audio/x-m4a;")||I.canPlayType("audio/m4a;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(I.canPlayType("audio/x-m4b;")||I.canPlayType("audio/m4b;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(I.canPlayType("audio/x-mp4;")||I.canPlayType("audio/mp4;")||I.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Y&&I.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Y&&I.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!I.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(I.canPlayType("audio/x-flac;")||I.canPlayType("audio/flac;")).replace(/^no$/,"")},$},_unlockAudio:function(){var $=this||A;if(!($._audioUnlocked||!$.ctx)){$._audioUnlocked=!1,$.autoUnlock=!1,!$._mobileUnloaded&&$.ctx.sampleRate!==44100&&($._mobileUnloaded=!0,$.unload()),$._scratchBuffer=$.ctx.createBuffer(1,1,22050);var I=function(D){for(;$._html5AudioPool.length<$.html5PoolSize;)try{var F=new Audio;F._unlocked=!0,$._releaseHtml5Audio(F)}catch(U){$.noAudio=!0;break}for(var z=0;z<$._howls.length;z++)if(!$._howls[z]._webAudio)for(var L=$._howls[z]._getSoundIds(),H=0;H<L.length;H++){var Q=$._howls[z]._soundById(L[H]);Q&&Q._node&&!Q._node._unlocked&&(Q._node._unlocked=!0,Q._node.load())}$._autoResume();var Y=$.ctx.createBufferSource();Y.buffer=$._scratchBuffer,Y.connect($.ctx.destination),typeof Y.start>"u"?Y.noteOn(0):Y.start(0),typeof $.ctx.resume=="function"&&$.ctx.resume(),Y.onended=function(){Y.disconnect(0),$._audioUnlocked=!0,document.removeEventListener("touchstart",I,!0),document.removeEventListener("touchend",I,!0),document.removeEventListener("click",I,!0),document.removeEventListener("keydown",I,!0);for(var U=0;U<$._howls.length;U++)$._howls[U]._emit("unlock")}};return document.addEventListener("touchstart",I,!0),document.addEventListener("touchend",I,!0),document.addEventListener("click",I,!0),document.addEventListener("keydown",I,!0),$}},_obtainHtml5Audio:function(){var $=this||A;if($._html5AudioPool.length)return $._html5AudioPool.pop();var I=new Audio().play();return I&&typeof Promise<"u"&&(I instanceof Promise||typeof I.then=="function")&&I.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function($){var I=this||A;return $._unlocked&&I._html5AudioPool.push($),I},_autoSuspend:function(){var $=this;if(!(!$.autoSuspend||!$.ctx||typeof $.ctx.suspend>"u"||!A.usingWebAudio)){for(var I=0;I<$._howls.length;I++)if($._howls[I]._webAudio){for(var D=0;D<$._howls[I]._sounds.length;D++)if(!$._howls[I]._sounds[D]._paused)return $}return $._suspendTimer&&clearTimeout($._suspendTimer),$._suspendTimer=setTimeout(function(){if($.autoSuspend){$._suspendTimer=null,$.state="suspending";var F=function(){$.state="suspended",$._resumeAfterSuspend&&(delete $._resumeAfterSuspend,$._autoResume())};$.ctx.suspend().then(F,F)}},3e4),$}},_autoResume:function(){var $=this;if(!(!$.ctx||typeof $.ctx.resume>"u"||!A.usingWebAudio))return $.state==="running"&&$.ctx.state!=="interrupted"&&$._suspendTimer?(clearTimeout($._suspendTimer),$._suspendTimer=null):$.state==="suspended"||$.state==="running"&&$.ctx.state==="interrupted"?($.ctx.resume().then(function(){$.state="running";for(var I=0;I<$._howls.length;I++)$._howls[I]._emit("resume")}),$._suspendTimer&&(clearTimeout($._suspendTimer),$._suspendTimer=null)):$.state==="suspending"&&($._resumeAfterSuspend=!0),$}};var A=new b,w=function($){var I=this;if(!$.src||$.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}I.init($)};w.prototype={init:function($){var I=this;return A.ctx||k(),I._autoplay=$.autoplay||!1,I._format=typeof $.format!="string"?$.format:[$.format],I._html5=$.html5||!1,I._muted=$.mute||!1,I._loop=$.loop||!1,I._pool=$.pool||5,I._preload=typeof $.preload=="boolean"||$.preload==="metadata"?$.preload:!0,I._rate=$.rate||1,I._sprite=$.sprite||{},I._src=typeof $.src!="string"?$.src:[$.src],I._volume=$.volume!==void 0?$.volume:1,I._xhr={method:$.xhr&&$.xhr.method?$.xhr.method:"GET",headers:$.xhr&&$.xhr.headers?$.xhr.headers:null,withCredentials:$.xhr&&$.xhr.withCredentials?$.xhr.withCredentials:!1},I._duration=0,I._state="unloaded",I._sounds=[],I._endTimers={},I._queue=[],I._playLock=!1,I._onend=$.onend?[{fn:$.onend}]:[],I._onfade=$.onfade?[{fn:$.onfade}]:[],I._onload=$.onload?[{fn:$.onload}]:[],I._onloaderror=$.onloaderror?[{fn:$.onloaderror}]:[],I._onplayerror=$.onplayerror?[{fn:$.onplayerror}]:[],I._onpause=$.onpause?[{fn:$.onpause}]:[],I._onplay=$.onplay?[{fn:$.onplay}]:[],I._onstop=$.onstop?[{fn:$.onstop}]:[],I._onmute=$.onmute?[{fn:$.onmute}]:[],I._onvolume=$.onvolume?[{fn:$.onvolume}]:[],I._onrate=$.onrate?[{fn:$.onrate}]:[],I._onseek=$.onseek?[{fn:$.onseek}]:[],I._onunlock=$.onunlock?[{fn:$.onunlock}]:[],I._onresume=[],I._webAudio=A.usingWebAudio&&!I._html5,typeof A.ctx<"u"&&A.ctx&&A.autoUnlock&&A._unlockAudio(),A._howls.push(I),I._autoplay&&I._queue.push({event:"play",action:function(){I.play()}}),I._preload&&I._preload!=="none"&&I.load(),I},load:function(){var $=this,I=null;if(A.noAudio){$._emit("loaderror",null,"No audio support.");return}typeof $._src=="string"&&($._src=[$._src]);for(var D=0;D<$._src.length;D++){var F,z;if($._format&&$._format[D])F=$._format[D];else{if(z=$._src[D],typeof z!="string"){$._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}F=/^data:audio\/([^;,]+);/i.exec(z),F||(F=/\.([^.]+)$/.exec(z.split("?",1)[0])),F&&(F=F[1].toLowerCase())}if(F||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),F&&A.codecs(F)){I=$._src[D];break}}if(!I){$._emit("loaderror",null,"No codec support for selected audio sources.");return}return $._src=I,$._state="loading",window.location.protocol==="https:"&&I.slice(0,5)==="http:"&&($._html5=!0,$._webAudio=!1),new C($),$._webAudio&&S($),$},play:function($,I){var D=this,F=null;if(typeof $=="number")F=$,$=null;else{if(typeof $=="string"&&D._state==="loaded"&&!D._sprite[$])return null;if(typeof $>"u"&&($="__default",!D._playLock)){for(var z=0,L=0;L<D._sounds.length;L++)D._sounds[L]._paused&&!D._sounds[L]._ended&&(z++,F=D._sounds[L]._id);z===1?$=null:F=null}}var H=F?D._soundById(F):D._inactiveSound();if(!H)return null;if(F&&!$&&($=H._sprite||"__default"),D._state!=="loaded"){H._sprite=$,H._ended=!1;var Q=H._id;return D._queue.push({event:"play",action:function(){D.play(Q)}}),Q}if(F&&!H._paused)return I||D._loadQueue("play"),H._id;D._webAudio&&A._autoResume();var Y=Math.max(0,H._seek>0?H._seek:D._sprite[$][0]/1e3),U=Math.max(0,(D._sprite[$][0]+D._sprite[$][1])/1e3-Y),G=U*1e3/Math.abs(H._rate),W=D._sprite[$][0]/1e3,K=(D._sprite[$][0]+D._sprite[$][1])/1e3;H._sprite=$,H._ended=!1;var X=function(){H._paused=!1,H._seek=Y,H._start=W,H._stop=K,H._loop=!!(H._loop||D._sprite[$][2])};if(Y>=K){D._ended(H);return}var Z=H._node;if(D._webAudio){var oe=function(){D._playLock=!1,X(),D._refreshBuffer(H);var de=H._muted||D._muted?0:H._volume;Z.gain.setValueAtTime(de,A.ctx.currentTime),H._playStart=A.ctx.currentTime,typeof Z.bufferSource.start>"u"?H._loop?Z.bufferSource.noteGrainOn(0,Y,86400):Z.bufferSource.noteGrainOn(0,Y,U):H._loop?Z.bufferSource.start(0,Y,86400):Z.bufferSource.start(0,Y,U),G!==1/0&&(D._endTimers[H._id]=setTimeout(D._ended.bind(D,H),G)),I||setTimeout(function(){D._emit("play",H._id),D._loadQueue()},0)};A.state==="running"&&A.ctx.state!=="interrupted"?oe():(D._playLock=!0,D.once("resume",oe),D._clearTimer(H._id))}else{var he=function(){Z.currentTime=Y,Z.muted=H._muted||D._muted||A._muted||Z.muted,Z.volume=H._volume*A.volume(),Z.playbackRate=H._rate;try{var de=Z.play();if(de&&typeof Promise<"u"&&(de instanceof Promise||typeof de.then=="function")?(D._playLock=!0,X(),de.then(function(){D._playLock=!1,Z._unlocked=!0,I?D._loadQueue():D._emit("play",H._id)}).catch(function(){D._playLock=!1,D._emit("playerror",H._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),H._ended=!0,H._paused=!0})):I||(D._playLock=!1,X(),D._emit("play",H._id)),Z.playbackRate=H._rate,Z.paused){D._emit("playerror",H._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}$!=="__default"||H._loop?D._endTimers[H._id]=setTimeout(D._ended.bind(D,H),G):(D._endTimers[H._id]=function(){D._ended(H),Z.removeEventListener("ended",D._endTimers[H._id],!1)},Z.addEventListener("ended",D._endTimers[H._id],!1))}catch(me){D._emit("playerror",H._id,me)}};Z.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(Z.src=D._src,Z.load());var J=window&&window.ejecta||!Z.readyState&&A._navigator.isCocoonJS;if(Z.readyState>=3||J)he();else{D._playLock=!0,D._state="loading";var le=function(){D._state="loaded",he(),Z.removeEventListener(A._canPlayEvent,le,!1)};Z.addEventListener(A._canPlayEvent,le,!1),D._clearTimer(H._id)}}return H._id},pause:function($){var I=this;if(I._state!=="loaded"||I._playLock)return I._queue.push({event:"pause",action:function(){I.pause($)}}),I;for(var D=I._getSoundIds($),F=0;F<D.length;F++){I._clearTimer(D[F]);var z=I._soundById(D[F]);if(z&&!z._paused&&(z._seek=I.seek(D[F]),z._rateSeek=0,z._paused=!0,I._stopFade(D[F]),z._node))if(I._webAudio){if(!z._node.bufferSource)continue;typeof z._node.bufferSource.stop>"u"?z._node.bufferSource.noteOff(0):z._node.bufferSource.stop(0),I._cleanBuffer(z._node)}else(!isNaN(z._node.duration)||z._node.duration===1/0)&&z._node.pause();arguments[1]||I._emit("pause",z?z._id:null)}return I},stop:function($,I){var D=this;if(D._state!=="loaded"||D._playLock)return D._queue.push({event:"stop",action:function(){D.stop($)}}),D;for(var F=D._getSoundIds($),z=0;z<F.length;z++){D._clearTimer(F[z]);var L=D._soundById(F[z]);L&&(L._seek=L._start||0,L._rateSeek=0,L._paused=!0,L._ended=!0,D._stopFade(F[z]),L._node&&(D._webAudio?L._node.bufferSource&&(typeof L._node.bufferSource.stop>"u"?L._node.bufferSource.noteOff(0):L._node.bufferSource.stop(0),D._cleanBuffer(L._node)):(!isNaN(L._node.duration)||L._node.duration===1/0)&&(L._node.currentTime=L._start||0,L._node.pause(),L._node.duration===1/0&&D._clearSound(L._node))),I||D._emit("stop",L._id))}return D},mute:function($,I){var D=this;if(D._state!=="loaded"||D._playLock)return D._queue.push({event:"mute",action:function(){D.mute($,I)}}),D;if(typeof I>"u")if(typeof $=="boolean")D._muted=$;else return D._muted;for(var F=D._getSoundIds(I),z=0;z<F.length;z++){var L=D._soundById(F[z]);L&&(L._muted=$,L._interval&&D._stopFade(L._id),D._webAudio&&L._node?L._node.gain.setValueAtTime($?0:L._volume,A.ctx.currentTime):L._node&&(L._node.muted=A._muted?!0:$),D._emit("mute",L._id))}return D},volume:function(){var $=this,I=arguments,D,F;if(I.length===0)return $._volume;if(I.length===1||I.length===2&&typeof I[1]>"u"){var z=$._getSoundIds(),L=z.indexOf(I[0]);L>=0?F=parseInt(I[0],10):D=parseFloat(I[0])}else I.length>=2&&(D=parseFloat(I[0]),F=parseInt(I[1],10));var H;if(typeof D<"u"&&D>=0&&D<=1){if($._state!=="loaded"||$._playLock)return $._queue.push({event:"volume",action:function(){$.volume.apply($,I)}}),$;typeof F>"u"&&($._volume=D),F=$._getSoundIds(F);for(var Q=0;Q<F.length;Q++)H=$._soundById(F[Q]),H&&(H._volume=D,I[2]||$._stopFade(F[Q]),$._webAudio&&H._node&&!H._muted?H._node.gain.setValueAtTime(D,A.ctx.currentTime):H._node&&!H._muted&&(H._node.volume=D*A.volume()),$._emit("volume",H._id))}else return H=F?$._soundById(F):$._sounds[0],H?H._volume:0;return $},fade:function($,I,D,F){var z=this;if(z._state!=="loaded"||z._playLock)return z._queue.push({event:"fade",action:function(){z.fade($,I,D,F)}}),z;$=Math.min(Math.max(0,parseFloat($)),1),I=Math.min(Math.max(0,parseFloat(I)),1),D=parseFloat(D),z.volume($,F);for(var L=z._getSoundIds(F),H=0;H<L.length;H++){var Q=z._soundById(L[H]);if(Q){if(F||z._stopFade(L[H]),z._webAudio&&!Q._muted){var Y=A.ctx.currentTime,U=Y+D/1e3;Q._volume=$,Q._node.gain.setValueAtTime($,Y),Q._node.gain.linearRampToValueAtTime(I,U)}z._startFadeInterval(Q,$,I,D,L[H],typeof F>"u")}}return z},_startFadeInterval:function($,I,D,F,z,L){var H=this,Q=I,Y=D-I,U=Math.abs(Y/.01),G=Math.max(4,U>0?F/U:F),W=Date.now();$._fadeTo=D,$._interval=setInterval(function(){var K=(Date.now()-W)/F;W=Date.now(),Q+=Y*K,Q=Math.round(Q*100)/100,Y<0?Q=Math.max(D,Q):Q=Math.min(D,Q),H._webAudio?$._volume=Q:H.volume(Q,$._id,!0),L&&(H._volume=Q),(D<I&&Q<=D||D>I&&Q>=D)&&(clearInterval($._interval),$._interval=null,$._fadeTo=null,H.volume(D,$._id),H._emit("fade",$._id))},G)},_stopFade:function($){var I=this,D=I._soundById($);return D&&D._interval&&(I._webAudio&&D._node.gain.cancelScheduledValues(A.ctx.currentTime),clearInterval(D._interval),D._interval=null,I.volume(D._fadeTo,$),D._fadeTo=null,I._emit("fade",$)),I},loop:function(){var $=this,I=arguments,D,F,z;if(I.length===0)return $._loop;if(I.length===1)if(typeof I[0]=="boolean")D=I[0],$._loop=D;else return z=$._soundById(parseInt(I[0],10)),z?z._loop:!1;else I.length===2&&(D=I[0],F=parseInt(I[1],10));for(var L=$._getSoundIds(F),H=0;H<L.length;H++)z=$._soundById(L[H]),z&&(z._loop=D,$._webAudio&&z._node&&z._node.bufferSource&&(z._node.bufferSource.loop=D,D&&(z._node.bufferSource.loopStart=z._start||0,z._node.bufferSource.loopEnd=z._stop,$.playing(L[H])&&($.pause(L[H],!0),$.play(L[H],!0)))));return $},rate:function(){var $=this,I=arguments,D,F;if(I.length===0)F=$._sounds[0]._id;else if(I.length===1){var z=$._getSoundIds(),L=z.indexOf(I[0]);L>=0?F=parseInt(I[0],10):D=parseFloat(I[0])}else I.length===2&&(D=parseFloat(I[0]),F=parseInt(I[1],10));var H;if(typeof D=="number"){if($._state!=="loaded"||$._playLock)return $._queue.push({event:"rate",action:function(){$.rate.apply($,I)}}),$;typeof F>"u"&&($._rate=D),F=$._getSoundIds(F);for(var Q=0;Q<F.length;Q++)if(H=$._soundById(F[Q]),H){$.playing(F[Q])&&(H._rateSeek=$.seek(F[Q]),H._playStart=$._webAudio?A.ctx.currentTime:H._playStart),H._rate=D,$._webAudio&&H._node&&H._node.bufferSource?H._node.bufferSource.playbackRate.setValueAtTime(D,A.ctx.currentTime):H._node&&(H._node.playbackRate=D);var Y=$.seek(F[Q]),U=($._sprite[H._sprite][0]+$._sprite[H._sprite][1])/1e3-Y,G=U*1e3/Math.abs(H._rate);($._endTimers[F[Q]]||!H._paused)&&($._clearTimer(F[Q]),$._endTimers[F[Q]]=setTimeout($._ended.bind($,H),G)),$._emit("rate",H._id)}}else return H=$._soundById(F),H?H._rate:$._rate;return $},seek:function(){var $=this,I=arguments,D,F;if(I.length===0)$._sounds.length&&(F=$._sounds[0]._id);else if(I.length===1){var z=$._getSoundIds(),L=z.indexOf(I[0]);L>=0?F=parseInt(I[0],10):$._sounds.length&&(F=$._sounds[0]._id,D=parseFloat(I[0]))}else I.length===2&&(D=parseFloat(I[0]),F=parseInt(I[1],10));if(typeof F>"u")return 0;if(typeof D=="number"&&($._state!=="loaded"||$._playLock))return $._queue.push({event:"seek",action:function(){$.seek.apply($,I)}}),$;var H=$._soundById(F);if(H)if(typeof D=="number"&&D>=0){var Q=$.playing(F);Q&&$.pause(F,!0),H._seek=D,H._ended=!1,$._clearTimer(F),!$._webAudio&&H._node&&!isNaN(H._node.duration)&&(H._node.currentTime=D);var Y=function(){Q&&$.play(F,!0),$._emit("seek",F)};if(Q&&!$._webAudio){var U=function(){$._playLock?setTimeout(U,0):Y()};setTimeout(U,0)}else Y()}else if($._webAudio){var G=$.playing(F)?A.ctx.currentTime-H._playStart:0,W=H._rateSeek?H._rateSeek-H._seek:0;return H._seek+(W+G*Math.abs(H._rate))}else return H._node.currentTime;return $},playing:function($){var I=this;if(typeof $=="number"){var D=I._soundById($);return D?!D._paused:!1}for(var F=0;F<I._sounds.length;F++)if(!I._sounds[F]._paused)return!0;return!1},duration:function($){var I=this,D=I._duration,F=I._soundById($);return F&&(D=I._sprite[F._sprite][1]/1e3),D},state:function(){return this._state},unload:function(){for(var $=this,I=$._sounds,D=0;D<I.length;D++)I[D]._paused||$.stop(I[D]._id),$._webAudio||($._clearSound(I[D]._node),I[D]._node.removeEventListener("error",I[D]._errorFn,!1),I[D]._node.removeEventListener(A._canPlayEvent,I[D]._loadFn,!1),I[D]._node.removeEventListener("ended",I[D]._endFn,!1),A._releaseHtml5Audio(I[D]._node)),delete I[D]._node,$._clearTimer(I[D]._id);var F=A._howls.indexOf($);F>=0&&A._howls.splice(F,1);var z=!0;for(D=0;D<A._howls.length;D++)if(A._howls[D]._src===$._src||$._src.indexOf(A._howls[D]._src)>=0){z=!1;break}return x&&z&&delete x[$._src],A.noAudio=!1,$._state="unloaded",$._sounds=[],$=null,null},on:function($,I,D,F){var z=this,L=z["_on"+$];return typeof I=="function"&&L.push(F?{id:D,fn:I,once:F}:{id:D,fn:I}),z},off:function($,I,D){var F=this,z=F["_on"+$],L=0;if(typeof I=="number"&&(D=I,I=null),I||D)for(L=0;L<z.length;L++){var H=D===z[L].id;if(I===z[L].fn&&H||!I&&H){z.splice(L,1);break}}else if($)F["_on"+$]=[];else{var Q=Object.keys(F);for(L=0;L<Q.length;L++)Q[L].indexOf("_on")===0&&Array.isArray(F[Q[L]])&&(F[Q[L]]=[])}return F},once:function($,I,D){var F=this;return F.on($,I,D,1),F},_emit:function($,I,D){for(var F=this,z=F["_on"+$],L=z.length-1;L>=0;L--)(!z[L].id||z[L].id===I||$==="load")&&(setTimeout((function(H){H.call(this,I,D)}).bind(F,z[L].fn),0),z[L].once&&F.off($,z[L].fn,z[L].id));return F._loadQueue($),F},_loadQueue:function($){var I=this;if(I._queue.length>0){var D=I._queue[0];D.event===$&&(I._queue.shift(),I._loadQueue()),$||D.action()}return I},_ended:function($){var I=this,D=$._sprite;if(!I._webAudio&&$._node&&!$._node.paused&&!$._node.ended&&$._node.currentTime<$._stop)return setTimeout(I._ended.bind(I,$),100),I;var F=!!($._loop||I._sprite[D][2]);if(I._emit("end",$._id),!I._webAudio&&F&&I.stop($._id,!0).play($._id),I._webAudio&&F){I._emit("play",$._id),$._seek=$._start||0,$._rateSeek=0,$._playStart=A.ctx.currentTime;var z=($._stop-$._start)*1e3/Math.abs($._rate);I._endTimers[$._id]=setTimeout(I._ended.bind(I,$),z)}return I._webAudio&&!F&&($._paused=!0,$._ended=!0,$._seek=$._start||0,$._rateSeek=0,I._clearTimer($._id),I._cleanBuffer($._node),A._autoSuspend()),!I._webAudio&&!F&&I.stop($._id,!0),I},_clearTimer:function($){var I=this;if(I._endTimers[$]){if(typeof I._endTimers[$]!="function")clearTimeout(I._endTimers[$]);else{var D=I._soundById($);D&&D._node&&D._node.removeEventListener("ended",I._endTimers[$],!1)}delete I._endTimers[$]}return I},_soundById:function($){for(var I=this,D=0;D<I._sounds.length;D++)if($===I._sounds[D]._id)return I._sounds[D];return null},_inactiveSound:function(){var $=this;$._drain();for(var I=0;I<$._sounds.length;I++)if($._sounds[I]._ended)return $._sounds[I].reset();return new C($)},_drain:function(){var $=this,I=$._pool,D=0,F=0;if(!($._sounds.length<I)){for(F=0;F<$._sounds.length;F++)$._sounds[F]._ended&&D++;for(F=$._sounds.length-1;F>=0;F--){if(D<=I)return;$._sounds[F]._ended&&($._webAudio&&$._sounds[F]._node&&$._sounds[F]._node.disconnect(0),$._sounds.splice(F,1),D--)}}},_getSoundIds:function($){var I=this;if(typeof $>"u"){for(var D=[],F=0;F<I._sounds.length;F++)D.push(I._sounds[F]._id);return D}else return[$]},_refreshBuffer:function($){var I=this;return $._node.bufferSource=A.ctx.createBufferSource(),$._node.bufferSource.buffer=x[I._src],$._panner?$._node.bufferSource.connect($._panner):$._node.bufferSource.connect($._node),$._node.bufferSource.loop=$._loop,$._loop&&($._node.bufferSource.loopStart=$._start||0,$._node.bufferSource.loopEnd=$._stop||0),$._node.bufferSource.playbackRate.setValueAtTime($._rate,A.ctx.currentTime),I},_cleanBuffer:function($){var I=this,D=A._navigator&&A._navigator.vendor.indexOf("Apple")>=0;if(A._scratchBuffer&&$.bufferSource&&($.bufferSource.onended=null,$.bufferSource.disconnect(0),D))try{$.bufferSource.buffer=A._scratchBuffer}catch(F){}return $.bufferSource=null,I},_clearSound:function($){var I=/MSIE |Trident\//.test(A._navigator&&A._navigator.userAgent);I||($.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var C=function($){this._parent=$,this.init()};C.prototype={init:function(){var $=this,I=$._parent;return $._muted=I._muted,$._loop=I._loop,$._volume=I._volume,$._rate=I._rate,$._seek=0,$._paused=!0,$._ended=!0,$._sprite="__default",$._id=++A._counter,I._sounds.push($),$.create(),$},create:function(){var $=this,I=$._parent,D=A._muted||$._muted||$._parent._muted?0:$._volume;return I._webAudio?($._node=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),$._node.gain.setValueAtTime(D,A.ctx.currentTime),$._node.paused=!0,$._node.connect(A.masterGain)):A.noAudio||($._node=A._obtainHtml5Audio(),$._errorFn=$._errorListener.bind($),$._node.addEventListener("error",$._errorFn,!1),$._loadFn=$._loadListener.bind($),$._node.addEventListener(A._canPlayEvent,$._loadFn,!1),$._endFn=$._endListener.bind($),$._node.addEventListener("ended",$._endFn,!1),$._node.src=I._src,$._node.preload=I._preload===!0?"auto":I._preload,$._node.volume=D*A.volume(),$._node.load()),$},reset:function(){var $=this,I=$._parent;return $._muted=I._muted,$._loop=I._loop,$._volume=I._volume,$._rate=I._rate,$._seek=0,$._rateSeek=0,$._paused=!0,$._ended=!0,$._sprite="__default",$._id=++A._counter,$},_errorListener:function(){var $=this;$._parent._emit("loaderror",$._id,$._node.error?$._node.error.code:0),$._node.removeEventListener("error",$._errorFn,!1)},_loadListener:function(){var $=this,I=$._parent;I._duration=Math.ceil($._node.duration*10)/10,Object.keys(I._sprite).length===0&&(I._sprite={__default:[0,I._duration*1e3]}),I._state!=="loaded"&&(I._state="loaded",I._emit("load"),I._loadQueue()),$._node.removeEventListener(A._canPlayEvent,$._loadFn,!1)},_endListener:function(){var $=this,I=$._parent;I._duration===1/0&&(I._duration=Math.ceil($._node.duration*10)/10,I._sprite.__default[1]===1/0&&(I._sprite.__default[1]=I._duration*1e3),I._ended($)),$._node.removeEventListener("ended",$._endFn,!1)}};var x={},S=function($){var I=$._src;if(x[I]){$._duration=x[I].duration,B($);return}if(/^data:[^;]+;base64,/.test(I)){for(var D=atob(I.split(",")[1]),F=new Uint8Array(D.length),z=0;z<D.length;++z)F[z]=D.charCodeAt(z);P(F.buffer,$)}else{var L=new XMLHttpRequest;L.open($._xhr.method,I,!0),L.withCredentials=$._xhr.withCredentials,L.responseType="arraybuffer",$._xhr.headers&&Object.keys($._xhr.headers).forEach(function(H){L.setRequestHeader(H,$._xhr.headers[H])}),L.onload=function(){var H=(L.status+"")[0];if(H!=="0"&&H!=="2"&&H!=="3"){$._emit("loaderror",null,"Failed loading audio file with status: "+L.status+".");return}P(L.response,$)},L.onerror=function(){$._webAudio&&($._html5=!0,$._webAudio=!1,$._sounds=[],delete x[I],$.load())},E(L)}},E=function($){try{$.send()}catch(I){$.onerror()}},P=function($,I){var D=function(){I._emit("loaderror",null,"Decoding audio data failed.")},F=function(z){z&&I._sounds.length>0?(x[I._src]=z,B(I,z)):D()};typeof Promise<"u"&&A.ctx.decodeAudioData.length===1?A.ctx.decodeAudioData($).then(F).catch(D):A.ctx.decodeAudioData($,F,D)},B=function($,I){I&&!$._duration&&($._duration=I.duration),Object.keys($._sprite).length===0&&($._sprite={__default:[0,$._duration*1e3]}),$._state!=="loaded"&&($._state="loaded",$._emit("load"),$._loadQueue())},k=function(){if(A.usingWebAudio){try{typeof AudioContext<"u"?A.ctx=new AudioContext:typeof webkitAudioContext<"u"?A.ctx=new webkitAudioContext:A.usingWebAudio=!1}catch(z){A.usingWebAudio=!1}A.ctx||(A.usingWebAudio=!1);var $=/iP(hone|od|ad)/.test(A._navigator&&A._navigator.platform),I=A._navigator&&A._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),D=I?parseInt(I[1],10):null;if($&&D&&D<9){var F=/safari/.test(A._navigator&&A._navigator.userAgent.toLowerCase());A._navigator&&!F&&(A.usingWebAudio=!1)}A.usingWebAudio&&(A.masterGain=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),A.masterGain.gain.setValueAtTime(A._muted?0:A._volume,A.ctx.currentTime),A.masterGain.connect(A.ctx.destination)),A._setup()}};d.Howler=A,d.Howl=w,typeof commonjsGlobal<"u"?(commonjsGlobal.HowlerGlobal=b,commonjsGlobal.Howler=A,commonjsGlobal.Howl=w,commonjsGlobal.Sound=C):typeof window<"u"&&(window.HowlerGlobal=b,window.Howler=A,window.Howl=w,window.Sound=C)})();/*!
  32. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  33. *
  34. * howler.js v2.2.3
  35. * howlerjs.com
  36. *
  37. * (c) 2013-2020, James Simpson of GoldFire Studios
  38. * goldfirestudios.com
  39. *
  40. * MIT License
  41. */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(A){var w=this;if(!w.ctx||!w.ctx.listener)return w;for(var C=w._howls.length-1;C>=0;C--)w._howls[C].stereo(A);return w},HowlerGlobal.prototype.pos=function(A,w,C){var x=this;if(!x.ctx||!x.ctx.listener)return x;if(w=typeof w!="number"?x._pos[1]:w,C=typeof C!="number"?x._pos[2]:C,typeof A=="number")x._pos=[A,w,C],typeof x.ctx.listener.positionX<"u"?(x.ctx.listener.positionX.setTargetAtTime(x._pos[0],Howler.ctx.currentTime,.1),x.ctx.listener.positionY.setTargetAtTime(x._pos[1],Howler.ctx.currentTime,.1),x.ctx.listener.positionZ.setTargetAtTime(x._pos[2],Howler.ctx.currentTime,.1)):x.ctx.listener.setPosition(x._pos[0],x._pos[1],x._pos[2]);else return x._pos;return x},HowlerGlobal.prototype.orientation=function(A,w,C,x,S,E){var P=this;if(!P.ctx||!P.ctx.listener)return P;var B=P._orientation;if(w=typeof w!="number"?B[1]:w,C=typeof C!="number"?B[2]:C,x=typeof x!="number"?B[3]:x,S=typeof S!="number"?B[4]:S,E=typeof E!="number"?B[5]:E,typeof A=="number")P._orientation=[A,w,C,x,S,E],typeof P.ctx.listener.forwardX<"u"?(P.ctx.listener.forwardX.setTargetAtTime(A,Howler.ctx.currentTime,.1),P.ctx.listener.forwardY.setTargetAtTime(w,Howler.ctx.currentTime,.1),P.ctx.listener.forwardZ.setTargetAtTime(C,Howler.ctx.currentTime,.1),P.ctx.listener.upX.setTargetAtTime(x,Howler.ctx.currentTime,.1),P.ctx.listener.upY.setTargetAtTime(S,Howler.ctx.currentTime,.1),P.ctx.listener.upZ.setTargetAtTime(E,Howler.ctx.currentTime,.1)):P.ctx.listener.setOrientation(A,w,C,x,S,E);else return B;return P},Howl.prototype.init=function(A){return function(w){var C=this;return C._orientation=w.orientation||[1,0,0],C._stereo=w.stereo||null,C._pos=w.pos||null,C._pannerAttr={coneInnerAngle:typeof w.coneInnerAngle<"u"?w.coneInnerAngle:360,coneOuterAngle:typeof w.coneOuterAngle<"u"?w.coneOuterAngle:360,coneOuterGain:typeof w.coneOuterGain<"u"?w.coneOuterGain:0,distanceModel:typeof w.distanceModel<"u"?w.distanceModel:"inverse",maxDistance:typeof w.maxDistance<"u"?w.maxDistance:1e4,panningModel:typeof w.panningModel<"u"?w.panningModel:"HRTF",refDistance:typeof w.refDistance<"u"?w.refDistance:1,rolloffFactor:typeof w.rolloffFactor<"u"?w.rolloffFactor:1},C._onstereo=w.onstereo?[{fn:w.onstereo}]:[],C._onpos=w.onpos?[{fn:w.onpos}]:[],C._onorientation=w.onorientation?[{fn:w.onorientation}]:[],A.call(this,w)}}(Howl.prototype.init),Howl.prototype.stereo=function(A,w){var C=this;if(!C._webAudio)return C;if(C._state!=="loaded")return C._queue.push({event:"stereo",action:function(){C.stereo(A,w)}}),C;var x=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof w>"u")if(typeof A=="number")C._stereo=A,C._pos=[A,0,0];else return C._stereo;for(var S=C._getSoundIds(w),E=0;E<S.length;E++){var P=C._soundById(S[E]);if(P)if(typeof A=="number")P._stereo=A,P._pos=[A,0,0],P._node&&(P._pannerAttr.panningModel="equalpower",(!P._panner||!P._panner.pan)&&b(P,x),x==="spatial"?typeof P._panner.positionX<"u"?(P._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),P._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),P._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):P._panner.setPosition(A,0,0):P._panner.pan.setValueAtTime(A,Howler.ctx.currentTime)),C._emit("stereo",P._id);else return P._stereo}return C},Howl.prototype.pos=function(A,w,C,x){var S=this;if(!S._webAudio)return S;if(S._state!=="loaded")return S._queue.push({event:"pos",action:function(){S.pos(A,w,C,x)}}),S;if(w=typeof w!="number"?0:w,C=typeof C!="number"?-.5:C,typeof x>"u")if(typeof A=="number")S._pos=[A,w,C];else return S._pos;for(var E=S._getSoundIds(x),P=0;P<E.length;P++){var B=S._soundById(E[P]);if(B)if(typeof A=="number")B._pos=[A,w,C],B._node&&((!B._panner||B._panner.pan)&&b(B,"spatial"),typeof B._panner.positionX<"u"?(B._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),B._panner.positionY.setValueAtTime(w,Howler.ctx.currentTime),B._panner.positionZ.setValueAtTime(C,Howler.ctx.currentTime)):B._panner.setPosition(A,w,C)),S._emit("pos",B._id);else return B._pos}return S},Howl.prototype.orientation=function(A,w,C,x){var S=this;if(!S._webAudio)return S;if(S._state!=="loaded")return S._queue.push({event:"orientation",action:function(){S.orientation(A,w,C,x)}}),S;if(w=typeof w!="number"?S._orientation[1]:w,C=typeof C!="number"?S._orientation[2]:C,typeof x>"u")if(typeof A=="number")S._orientation=[A,w,C];else return S._orientation;for(var E=S._getSoundIds(x),P=0;P<E.length;P++){var B=S._soundById(E[P]);if(B)if(typeof A=="number")B._orientation=[A,w,C],B._node&&(B._panner||(B._pos||(B._pos=S._pos||[0,0,-.5]),b(B,"spatial")),typeof B._panner.orientationX<"u"?(B._panner.orientationX.setValueAtTime(A,Howler.ctx.currentTime),B._panner.orientationY.setValueAtTime(w,Howler.ctx.currentTime),B._panner.orientationZ.setValueAtTime(C,Howler.ctx.currentTime)):B._panner.setOrientation(A,w,C)),S._emit("orientation",B._id);else return B._orientation}return S},Howl.prototype.pannerAttr=function(){var A=this,w=arguments,C,x,S;if(!A._webAudio)return A;if(w.length===0)return A._pannerAttr;if(w.length===1)if(typeof w[0]=="object")C=w[0],typeof x>"u"&&(C.pannerAttr||(C.pannerAttr={coneInnerAngle:C.coneInnerAngle,coneOuterAngle:C.coneOuterAngle,coneOuterGain:C.coneOuterGain,distanceModel:C.distanceModel,maxDistance:C.maxDistance,refDistance:C.refDistance,rolloffFactor:C.rolloffFactor,panningModel:C.panningModel}),A._pannerAttr={coneInnerAngle:typeof C.pannerAttr.coneInnerAngle<"u"?C.pannerAttr.coneInnerAngle:A._coneInnerAngle,coneOuterAngle:typeof C.pannerAttr.coneOuterAngle<"u"?C.pannerAttr.coneOuterAngle:A._coneOuterAngle,coneOuterGain:typeof C.pannerAttr.coneOuterGain<"u"?C.pannerAttr.coneOuterGain:A._coneOuterGain,distanceModel:typeof C.pannerAttr.distanceModel<"u"?C.pannerAttr.distanceModel:A._distanceModel,maxDistance:typeof C.pannerAttr.maxDistance<"u"?C.pannerAttr.maxDistance:A._maxDistance,refDistance:typeof C.pannerAttr.refDistance<"u"?C.pannerAttr.refDistance:A._refDistance,rolloffFactor:typeof C.pannerAttr.rolloffFactor<"u"?C.pannerAttr.rolloffFactor:A._rolloffFactor,panningModel:typeof C.pannerAttr.panningModel<"u"?C.pannerAttr.panningModel:A._panningModel});else return S=A._soundById(parseInt(w[0],10)),S?S._pannerAttr:A._pannerAttr;else w.length===2&&(C=w[0],x=parseInt(w[1],10));for(var E=A._getSoundIds(x),P=0;P<E.length;P++)if(S=A._soundById(E[P]),S){var B=S._pannerAttr;B={coneInnerAngle:typeof C.coneInnerAngle<"u"?C.coneInnerAngle:B.coneInnerAngle,coneOuterAngle:typeof C.coneOuterAngle<"u"?C.coneOuterAngle:B.coneOuterAngle,coneOuterGain:typeof C.coneOuterGain<"u"?C.coneOuterGain:B.coneOuterGain,distanceModel:typeof C.distanceModel<"u"?C.distanceModel:B.distanceModel,maxDistance:typeof C.maxDistance<"u"?C.maxDistance:B.maxDistance,refDistance:typeof C.refDistance<"u"?C.refDistance:B.refDistance,rolloffFactor:typeof C.rolloffFactor<"u"?C.rolloffFactor:B.rolloffFactor,panningModel:typeof C.panningModel<"u"?C.panningModel:B.panningModel};var k=S._panner;k?(k.coneInnerAngle=B.coneInnerAngle,k.coneOuterAngle=B.coneOuterAngle,k.coneOuterGain=B.coneOuterGain,k.distanceModel=B.distanceModel,k.maxDistance=B.maxDistance,k.refDistance=B.refDistance,k.rolloffFactor=B.rolloffFactor,k.panningModel=B.panningModel):(S._pos||(S._pos=A._pos||[0,0,-.5]),b(S,"spatial"))}return A},Sound.prototype.init=function(A){return function(){var w=this,C=w._parent;w._orientation=C._orientation,w._stereo=C._stereo,w._pos=C._pos,w._pannerAttr=C._pannerAttr,A.call(this),w._stereo?C.stereo(w._stereo):w._pos&&C.pos(w._pos[0],w._pos[1],w._pos[2],w._id)}}(Sound.prototype.init),Sound.prototype.reset=function(A){return function(){var w=this,C=w._parent;return w._orientation=C._orientation,w._stereo=C._stereo,w._pos=C._pos,w._pannerAttr=C._pannerAttr,w._stereo?C.stereo(w._stereo):w._pos?C.pos(w._pos[0],w._pos[1],w._pos[2],w._id):w._panner&&(w._panner.disconnect(0),w._panner=void 0,C._refreshBuffer(w)),A.call(this)}}(Sound.prototype.reset);var b=function(A,w){w=w||"spatial",w==="spatial"?(A._panner=Howler.ctx.createPanner(),A._panner.coneInnerAngle=A._pannerAttr.coneInnerAngle,A._panner.coneOuterAngle=A._pannerAttr.coneOuterAngle,A._panner.coneOuterGain=A._pannerAttr.coneOuterGain,A._panner.distanceModel=A._pannerAttr.distanceModel,A._panner.maxDistance=A._pannerAttr.maxDistance,A._panner.refDistance=A._pannerAttr.refDistance,A._panner.rolloffFactor=A._pannerAttr.rolloffFactor,A._panner.panningModel=A._pannerAttr.panningModel,typeof A._panner.positionX<"u"?(A._panner.positionX.setValueAtTime(A._pos[0],Howler.ctx.currentTime),A._panner.positionY.setValueAtTime(A._pos[1],Howler.ctx.currentTime),A._panner.positionZ.setValueAtTime(A._pos[2],Howler.ctx.currentTime)):A._panner.setPosition(A._pos[0],A._pos[1],A._pos[2]),typeof A._panner.orientationX<"u"?(A._panner.orientationX.setValueAtTime(A._orientation[0],Howler.ctx.currentTime),A._panner.orientationY.setValueAtTime(A._orientation[1],Howler.ctx.currentTime),A._panner.orientationZ.setValueAtTime(A._orientation[2],Howler.ctx.currentTime)):A._panner.setOrientation(A._orientation[0],A._orientation[1],A._orientation[2])):(A._panner=Howler.ctx.createStereoPanner(),A._panner.pan.setValueAtTime(A._stereo,Howler.ctx.currentTime)),A._panner.connect(A._node),A._paused||A._parent.pause(A._id,!0).play(A._id,!0)}})()})(howler);const tick="data:audio/mpeg;base64,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8ADvAPEA8QDsAOsA1gDYALkAtwCSAJUAYwBfADEANAD6//n/x//H/5P/kv9n/2j/Qf9B/yf/J/8W/xf/EP8O/xn/G/8o/yb/R/9K/27/av+X/5z/z//L//7/AAA3ADYAZQBlAJMAlAC5ALgA0wDUAOUA5ADsAOwA4wDkANYA1AC2ALkAlQCTAGYAZwA3ADcAAwABAM3/0P+h/57/bf9x/1L/Tf8r/zD/I/8e/xX/Gv8f/xv/LP8v/0j/Rv9r/2z/l/+X/8X/xf/6//v/LAApAFsAYACKAIUArQCwAMoAyQDcANwA5ADlAN4A3QDSANMAtwC0AJIAlwBuAGkAOQA9AAwACgDW/9f/qf+o/3r/e/9Z/1n/Of83/yf/K/8h/x3/If8k/zL/MP9J/0r/af9p/5X/lP+//8H/8//x/yQAJgBRAFAAgQCAAKAAowDEAMAA0QDVAN0A2gDZANsAzQDNALcAtQCTAJYAcABtAD8AQQASABEA3//g/7P/sf+D/4b/ZP9g/0H/Rf8x/y//Kf8n/yX/Kv83/zL/Sf9N/2r/aP+S/5D/uv++/+z/6v8cABsASABLAHgAcwCWAJsAugC3AMgAygDYANUA0QDVAMwAxwCwALYAmgCVAGwAbwBKAEgAEwAVAOr/6f+6/7n/jv+R/2z/Z/9M/1L/Ov81/y3/MP8v/y3/N/86/0//Sv9o/23/jv+K/7j/u//k/+P/FgAVAD8AQABtAGwAjwCRAK8ArADAAMQA0ADMAMwAzwDHAMYAsACvAJcAmgByAG4ASgBNABwAHADx/+//wf/D/5n/mP91/3P/U/9Z/0X/Pv8z/zn/Nf8x/z3/P/9O/0z/av9s/4v/iv+1/7X/3v/f/w4ADAA4ADkAYwBjAIYAhgClAKQAuQC7AMgAxQDGAMoAwwC/AK4AsQCWAJQAdQB3AEwASgAlACYA9f/0/8r/zP+j/6L/e/96/2L/Y/9I/0b/Pf9A/zr/Of9B/0D/Uf9S/2n/af+M/4v/rv+w/9z/2v8EAAYAMQAxAFsAWQB8AH8AngCaALAAtADAAL0AwQDDAL8AvQCqAKwAmQCXAHMAdABSAFMAKQAmAPv////U/9D/qP+s/4f/hP9p/2r/T/9R/0j/RP87/0D/S/9F/03/U/9w/2z/hP+H/7H/r//U/9P//v8BACsAKQBPAFAAeAB4AJIAkACpAKwAuAC3AL0AuwC3ALsArQCoAJIAlwB4AHUAVABUACwALwAEAAAA2v/d/7D/sP+R/47/bv9y/1z/Wf9K/0v/Rv9H/0r/SP9W/1f/a/9s/4j/hv+r/6z/0P/P//n/+/8jACAASABMAG4AaQCLAJAAoACdALIAtAC2ALMAswC2AKkApwCTAJQAdwB4AFgAVwAwAC8ACQAMAOL/3v+4/7z/mf+W/3f/ef9j/2H/Uv9U/0z/Sv9O/1D/Wv9Y/2v/bf+I/4f/qP+o/8v/y//1//b/GgAYAEMARgBkAGAAggCHAJsAlgCoAKwAswCvAK0AsQClAKMAlACTAHYAeABcAFoAMgA1ABIADgDk/+j/xP+//5z/o/+E/3z/Z/9v/1z/VP9P/1b/Vf9Q/1v/Xf9v/2//hf+G/6f/pv/H/8f/8P/w/xUAFAA4ADsAYABdAHcAegCWAJMAoACiAKwAqwCqAKoAogCiAJAAkQB7AHkAWABbADwAOQAQABIA8f/w/8b/x/+o/6f/h/+K/3L/bf9h/2X/Vf9U/1v/Wf9b/2H/dP9s/4P/i/+n/5//wf/I/+3/5/8MABIANQAxAFUAWAB0AG8AiQCPAJ0AmACkAKgApQCkAKEAnwCMAI4AfQB7AFkAXAA+ADwAGAAZAPP/8v/R/9H/rP+u/5H/j/95/3r/Z/9l/13/YP9d/1r/Yf9k/3P/cv+G/4P/ov+n/8L/vP/k/+r/CgAGACwALgBPAE4AawBrAIMAgwCWAJcAngCcAKIApQCaAJYAjgCSAHkAdQBeAGIAQAA8ABoAHwD9//j/0v/X/7r/s/+S/5r/hf9+/2n/b/9n/2T/X/9e/2j/av9x/3H/iv+H/53/ov/B/73/4f/i/wIABAApACUARQBJAGYAYwB7AH0AkACPAJYAmACgAJwAlACaAI4AiAB4AH0AXgBbAEMARAAhACEA/P/9/+H/3v+3/7v/ov+e/4X/iP91/3P/af9p/2f/aP9o/2j/dv92/4j/hv+e/6H/v/+7/9r/3/8BAP3/HgAgAEIAQgBdAFsAdgB5AIcAhACUAJcAlgCUAJYAlwCIAIYAeAB8AGAAXABGAEkAIgAgAAcABwDe/+D/xv/E/6P/pP+P/4//ev95/2//cf9s/2r/bP9t/3j/eP+I/4j/nv+e/7z/vP/X/9f//P/8/xgAGQA9ADsAVABWAHEAcACAAIAAjgCPAJMAkQCQAJIAhwCHAHcAdQBhAGQARwBDACcALAAJAAUA5//p/8r/yP+q/6z/lv+W/4D/fv92/3n/b/9s/3H/cv95/3v/i/+H/5z/of+7/7b/0//X//f/9f8VABUAMwA0AFIAUABnAGkAewB6AIgAiQCOAI0AjACNAIcAhAByAHcAZQBhAEYASQAsACoADQANAOz/7v/Q/83/sf+1/5z/mP+G/4n/fP97/3T/cv90/3f/fv97/4f/i/+i/57/tP+2/9T/0//w//D/EAASAC8ALABKAEwAYgBhAHMAdQCFAIIAhwCJAIoAiQCBAIMAdgB0AGAAYgBNAEkAKgAvABUAEADu//T/1//Q/7f/vv+j/5v/jP+T/4L/ff92/3v/e/92/37/gv+M/4j/nv+h/7T/s//R/9L/7P/r/wwADgApACUAQgBHAF4AWABtAHMAfgB5AIQAiACFAIEAfwCDAHQAcABhAGUATABHADEANgAUABAA9//6/9n/1//A/8D/pf+n/5b/k/+E/4f/fv97/33/f/+A/4D/kP+O/5v/nv+2/7P/zP/P/+r/6P8HAAgAIwAiAD4APwBWAFUAaQBqAHcAdwCBAIAAfwCAAIAAfgBuAHEAZQBhAEsATgAzADIAGgAZAPj/+v/j/9//wf/G/6//q/+Y/5v/jP+J/4L/hP+A/4D/hf+E/43/j/+g/57/sf+z/83/y//l/+b/AwACAB0AIAA5ADYAUQBTAGIAYABzAHUAewB5AHsAfwB/AHgAagBzAGYAXgBKAFAAOAA0ABkAGwABAAAA4//k/8r/yf+z/7T/n/+d/4//kv+J/4b/gv+F/4r/h/+O/4//of+h/6//sP/M/8v/4f/h//////8bABoAMAAyAE4ATABbAFwAbgBuAHYAdQB5AHsAeAB2AG4AbwBhAGAATQBPADgANgAeACAABAABAOj/6//P/87/uf+4/6P/pf+Y/5X/if+M/4r/iP+J/4r/k/+T/5//nv+x/7P/yP/G/+D/4f/6//r/FgAVACsALQBIAEgAVwBVAGgAagByAHAAdAB2AHUAdQBtAGwAXwBgAFAATgA3ADoAIwAgAAQACQDy/+v/z//W/8L/vP+m/6r/nf+c/5D/jv+L/47/j/+M/5H/lP+j/6H/sP+w/8b/xv/e/97/9f/2/xIAEgAoACcAQQBBAFIAVABkAGAAawBxAHQAbgBvAHMAbQBrAFwAXQBSAFEAOAA6ACUAIwAKAAsA8f/x/9r/2f/C/8P/rv+v/6L/nv+S/5f/k/+N/43/k/+Y/5X/of+g/7H/sv/E/8T/2//a//P/9v8NAAkAJAAnADsAOgBOAE4AXQBeAGkAaABtAG8AcABtAGYAaQBgAF4ATQBOAD4APgAkACQAEAAOAPP/9//g/9r/xv/L/7T/sv+m/6X/l/+b/5f/kP+R/5j/mf+U/6L/pf+w/7D/xf/C/9j/2//w/+//CQAJAB8AIAA3ADUASQBKAFkAWABjAGUAbABqAGgAaQBqAGkAWgBbAFEAUAA7AD0AKQAnABEAEQD4//r/5P/h/8r/zf+6/7j/qf+q/57/nv+X/5b/l/+Z/5v/l/+i/6b/s/+w/8D/wv/Y/9j/7v/s/wQABQAcABwAMgAxAEMARgBVAFIAYABhAGYAZQBoAGkAZABlAFsAWgBRAFEAPAA7ACoALAAVABIA+v///+r/4//N/9T/wP+6/63/sf+j/6D/mv+d/5v/mf+b/5v/p/+o/6//rf/C/8b/1v/R/+j/7v8GAP7/EgAbADEAKQA9AEQAUgBMAFkAXgBkAGAAZABmAGIAYQBbAF0ATgBLAD8AQgArACkAFgAXAAAAAgDs/+f/0v/Y/8b/wP+v/7T/qP+m/6H/n/8=",tock="data:audio/mpeg;base64,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",tockAndTick={tick,tock},metronomeData=reactive({disable:!0,initPlayerState:!1,lineShow:!1,isClick:!1,metro:null,metroList:[],activeList:[],metroMeasure:[],activeIndex:null,activeMetro:{}});class Metronome{constructor(b){An(this,"playType","tick");An(this,"source",null);An(this,"source1",null);An(this,"source2",null);An(this,"sound",b=>{let A=-1;for(let w=0;w<metronomeData.metroList.length;w++){const C=metronomeData.metroList[w];if(b>=C)A=w;else break}if(A>-1&&metronomeData.activeIndex!==A){metronomeData.activeIndex=A,this.playAudio();return}});An(this,"playAudio",()=>{metronomeData.initPlayerState&&this.source.play()});An(this,"loadAudio1",()=>new howler.Howl({src:tockAndTick.tick}));An(this,"loadAudio2",()=>new howler.Howl({src:tockAndTick.tock}))}init(b){this.calculation(b),metronomeData.activeList=[]}initPlayer(){this.source||(this.source=this.loadAudio1()),this.source.volume(metronomeData.disable?0:1),metronomeData.initPlayerState=!0}selectPlay(){}getStep(b){for(let A=0;A<metronomeData.metroMeasure.length;A++){const C=metronomeData.metroMeasure[A].find(x=>x.time===b);if(C)return C}return{}}calculation(b){var E,P,B,k;const A=[];let w=-1,C=-1;for(let $=0;$<b.length;$++){const I=b[$],D=(E=I==null?void 0:I.timeNote)==null?void 0:E.measureNumber;if(D>-1)if(D!=C){const F={measureNumberXML:D,numerator:((P=I==null?void 0:I.measure)==null?void 0:P.numerator)||0,time:(B=I==null?void 0:I.timeNote)==null?void 0:B.millisecondsPerMeasure,stepList:[],notes:[I]};w++,A[w]=F,C=D}else A[w].notes.push(I)}const x=[],S=[];try{for(let $=0;$<A.length;$++){const I=A[$],D=1/I.numerator,F=I.notes.reduce((Q,Y)=>{var U;return Q+((U=Y==null?void 0:Y.abcNote)==null?void 0:U.duration)},0),z=Math.floor(F/D),L=I.notes[0].timeNote.milliseconds,H=I.notes[0].timeNote.millisecondsPerMeasure/I.numerator;for(let Q=0;Q<I.numerator;Q++){const Y=H*Q+L;x.push(Y)}}}catch($){console.log($)}metronomeData.metroList=x,metronomeData.metroMeasure=S,metronomeData.activeMetro=((k=S[0])==null?void 0:k[0])||{}}}var lodash_isempty={exports:{}};lodash_isempty.exports;(function(d,b){var A=9007199254740991,w="[object Arguments]",C="[object Function]",x="[object GeneratorFunction]",S="[object Map]",E="[object Object]",P="[object Promise]",B="[object Set]",k="[object WeakMap]",$="[object DataView]",I=/[\\^$.*+?()[\]{}|]/g,D=/^\[object .+?Constructor\]$/,F=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,z=typeof self=="object"&&self&&self.Object===Object&&self,L=F||z||Function("return this")(),H=b&&!b.nodeType&&b,Q=H&&!0&&d&&!d.nodeType&&d,Y=Q&&Q.exports===H;function U(He,at){return He==null?void 0:He[at]}function G(He){var at=!1;if(He!=null&&typeof He.toString!="function")try{at=!!(He+"")}catch(nt){}return at}function W(He,at){return function(nt){return He(at(nt))}}var K=Function.prototype,X=Object.prototype,Z=L["__core-js_shared__"],oe=function(){var He=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return He?"Symbol(src)_1."+He:""}(),he=K.toString,J=X.hasOwnProperty,le=X.toString,de=RegExp("^"+he.call(J).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Y?L.Buffer:void 0,ne=X.propertyIsEnumerable,re=me?me.isBuffer:void 0,fe=W(Object.keys,Object),ce=ve(L,"DataView"),we=ve(L,"Map"),Fe=ve(L,"Promise"),Ke=ve(L,"Set"),tt=ve(L,"WeakMap"),ut=!ne.call({valueOf:1},"valueOf"),dt=se(ce),it=se(we),$e=se(Fe),ke=se(Ke),Oe=se(tt);function Qe(He){return le.call(He)}function Je(He){if(!rt(He)||Te(He))return!1;var at=Le(He)||G(He)?de:D;return at.test(se(He))}function ve(He,at){var nt=U(He,at);return Je(nt)?nt:void 0}var ye=Qe;(ce&&ye(new ce(new ArrayBuffer(1)))!=$||we&&ye(new we)!=S||Fe&&ye(Fe.resolve())!=P||Ke&&ye(new Ke)!=B||tt&&ye(new tt)!=k)&&(ye=function(He){var at=le.call(He),nt=at==E?He.constructor:void 0,mt=nt?se(nt):void 0;if(mt)switch(mt){case dt:return $;case it:return S;case $e:return P;case ke:return B;case Oe:return k}return at});function Te(He){return!!oe&&oe in He}function ee(He){var at=He&&He.constructor,nt=typeof at=="function"&&at.prototype||X;return He===nt}function se(He){if(He!=null){try{return he.call(He)}catch(at){}try{return He+""}catch(at){}}return""}function ie(He){return Ce(He)&&J.call(He,"callee")&&(!ne.call(He,"callee")||le.call(He)==w)}var be=Array.isArray;function Ee(He){return He!=null&&Ye(He.length)&&!Le(He)}function Ce(He){return lt(He)&&Ee(He)}var ge=re||pt;function Ie(He){if(Ee(He)&&(be(He)||typeof He=="string"||typeof He.splice=="function"||ge(He)||ie(He)))return!He.length;var at=ye(He);if(at==S||at==B)return!He.size;if(ut||ee(He))return!fe(He).length;for(var nt in He)if(J.call(He,nt))return!1;return!0}function Le(He){var at=rt(He)?le.call(He):"";return at==C||at==x}function Ye(He){return typeof He=="number"&&He>-1&&He%1==0&&He<=A}function rt(He){var at=typeof He;return!!He&&(at=="object"||at=="function")}function lt(He){return!!He&&typeof He=="object"}function pt(){return!1}d.exports=Ie})(lodash_isempty,lodash_isempty.exports);var lodash_isemptyExports=lodash_isempty.exports,objectTag="[object Object]";function isHostObject(d){var b=!1;if(d!=null&&typeof d.toString!="function")try{b=!!(d+"")}catch(A){}return b}function overArg(d,b){return function(A){return d(b(A))}}var funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object),objectToString=objectProto.toString,getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(d){return!!d&&typeof d=="object"}function isPlainObject$1(d){if(!isObjectLike(d)||objectToString.call(d)!=objectTag||isHostObject(d))return!1;var b=getPrototype(d);if(b===null)return!0;var A=hasOwnProperty.call(b,"constructor")&&b.constructor;return typeof A=="function"&&A instanceof A&&funcToString.call(A)==objectCtorString}var lodash_isplainobject=isPlainObject$1,lodash_transform={exports:{}};lodash_transform.exports;(function(d,b){var A=200,w="Expected a function",C="__lodash_hash_undefined__",x=1,S=2,E=1/0,P=9007199254740991,B="[object Arguments]",k="[object Array]",$="[object Boolean]",I="[object Date]",D="[object Error]",F="[object Function]",z="[object GeneratorFunction]",L="[object Map]",H="[object Number]",Q="[object Object]",Y="[object Promise]",U="[object RegExp]",G="[object Set]",W="[object String]",K="[object Symbol]",X="[object WeakMap]",Z="[object ArrayBuffer]",oe="[object DataView]",he="[object Float32Array]",J="[object Float64Array]",le="[object Int8Array]",de="[object Int16Array]",me="[object Int32Array]",ne="[object Uint8Array]",re="[object Uint8ClampedArray]",fe="[object Uint16Array]",ce="[object Uint32Array]",we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Ke=/^\./,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/[\\^$.*+?()[\]{}|]/g,dt=/\\(\\)?/g,it=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,ke={};ke[he]=ke[J]=ke[le]=ke[de]=ke[me]=ke[ne]=ke[re]=ke[fe]=ke[ce]=!0,ke[B]=ke[k]=ke[Z]=ke[$]=ke[oe]=ke[I]=ke[D]=ke[F]=ke[L]=ke[H]=ke[Q]=ke[U]=ke[G]=ke[W]=ke[X]=!1;var Oe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Qe=typeof self=="object"&&self&&self.Object===Object&&self,Je=Oe||Qe||Function("return this")(),ve=b&&!b.nodeType&&b,ye=ve&&!0&&d&&!d.nodeType&&d,Te=ye&&ye.exports===ve,ee=Te&&Oe.process,se=function(){try{return ee&&ee.binding("util")}catch(ae){}}(),ie=se&&se.isTypedArray;function be(ae,Se){for(var Ge=-1,st=ae?ae.length:0;++Ge<st&&Se(ae[Ge],Ge,ae)!==!1;);return ae}function Ee(ae,Se){for(var Ge=-1,st=ae?ae.length:0;++Ge<st;)if(Se(ae[Ge],Ge,ae))return!0;return!1}function Ce(ae){return function(Se){return Se==null?void 0:Se[ae]}}function ge(ae,Se){for(var Ge=-1,st=Array(ae);++Ge<ae;)st[Ge]=Se(Ge);return st}function Ie(ae){return function(Se){return ae(Se)}}function Le(ae,Se){return ae==null?void 0:ae[Se]}function Ye(ae){var Se=!1;if(ae!=null&&typeof ae.toString!="function")try{Se=!!(ae+"")}catch(Ge){}return Se}function rt(ae){var Se=-1,Ge=Array(ae.size);return ae.forEach(function(st,Pt){Ge[++Se]=[Pt,st]}),Ge}function lt(ae,Se){return function(Ge){return ae(Se(Ge))}}function pt(ae){var Se=-1,Ge=Array(ae.size);return ae.forEach(function(st){Ge[++Se]=st}),Ge}var He=Array.prototype,at=Function.prototype,nt=Object.prototype,mt=Je["__core-js_shared__"],Tt=function(){var ae=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),Dt=at.toString,yt=nt.hasOwnProperty,At=nt.toString,Ae=RegExp("^"+Dt.call(yt).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=Je.Symbol,qe=Je.Uint8Array,ft=lt(Object.getPrototypeOf,Object),vt=Object.create,bt=nt.propertyIsEnumerable,xe=He.splice,Ne=lt(Object.keys,Object),ze=_n(Je,"DataView"),Ve=_n(Je,"Map"),We=_n(Je,"Promise"),ht=_n(Je,"Set"),_t=_n(Je,"WeakMap"),zt=_n(Object,"create"),Ct=un(ze),Mt=un(Ve),Pe=un(We),Ue=un(ht),ct=un(_t),Et=Re?Re.prototype:void 0,Vt=Et?Et.valueOf:void 0,Nt=Et?Et.toString:void 0;function tr(ae){var Se=-1,Ge=ae?ae.length:0;for(this.clear();++Se<Ge;){var st=ae[Se];this.set(st[0],st[1])}}function Kt(){this.__data__=zt?zt(null):{}}function Ot(ae){return this.has(ae)&&delete this.__data__[ae]}function fr(ae){var Se=this.__data__;if(zt){var Ge=Se[ae];return Ge===C?void 0:Ge}return yt.call(Se,ae)?Se[ae]:void 0}function _r(ae){var Se=this.__data__;return zt?Se[ae]!==void 0:yt.call(Se,ae)}function sn(ae,Se){var Ge=this.__data__;return Ge[ae]=zt&&Se===void 0?C:Se,this}tr.prototype.clear=Kt,tr.prototype.delete=Ot,tr.prototype.get=fr,tr.prototype.has=_r,tr.prototype.set=sn;function yr(ae){var Se=-1,Ge=ae?ae.length:0;for(this.clear();++Se<Ge;){var st=ae[Se];this.set(st[0],st[1])}}function Mn(){this.__data__=[]}function Nn(ae){var Se=this.__data__,Ge=xn(Se,ae);if(Ge<0)return!1;var st=Se.length-1;return Ge==st?Se.pop():xe.call(Se,Ge,1),!0}function Po(ae){var Se=this.__data__,Ge=xn(Se,ae);return Ge<0?void 0:Se[Ge][1]}function Bo(ae){return xn(this.__data__,ae)>-1}function wn(ae,Se){var Ge=this.__data__,st=xn(Ge,ae);return st<0?Ge.push([ae,Se]):Ge[st][1]=Se,this}yr.prototype.clear=Mn,yr.prototype.delete=Nn,yr.prototype.get=Po,yr.prototype.has=Bo,yr.prototype.set=wn;function Dr(ae){var Se=-1,Ge=ae?ae.length:0;for(this.clear();++Se<Ge;){var st=ae[Se];this.set(st[0],st[1])}}function Cn(){this.__data__={hash:new tr,map:new(Ve||yr),string:new tr}}function $o(ae){return Fn(this,ae).delete(ae)}function ko(ae){return Fn(this,ae).get(ae)}function Io(ae){return Fn(this,ae).has(ae)}function Zn(ae,Se){return Fn(this,ae).set(ae,Se),this}Dr.prototype.clear=Cn,Dr.prototype.delete=$o,Dr.prototype.get=ko,Dr.prototype.has=Io,Dr.prototype.set=Zn;function ln(ae){var Se=-1,Ge=ae?ae.length:0;for(this.__data__=new Dr;++Se<Ge;)this.add(ae[Se])}function eo(ae){return this.__data__.set(ae,C),this}function Mo(ae){return this.__data__.has(ae)}ln.prototype.add=ln.prototype.push=eo,ln.prototype.has=Mo;function Or(ae){this.__data__=new yr(ae)}function No(){this.__data__=new yr}function Do(ae){return this.__data__.delete(ae)}function to(ae){return this.__data__.get(ae)}function ro(ae){return this.__data__.has(ae)}function no(ae,Se){var Ge=this.__data__;if(Ge instanceof yr){var st=Ge.__data__;if(!Ve||st.length<A-1)return st.push([ae,Se]),this;Ge=this.__data__=new Dr(st)}return Ge.set(ae,Se),this}Or.prototype.clear=No,Or.prototype.delete=Do,Or.prototype.get=to,Or.prototype.has=ro,Or.prototype.set=no;function Dn(ae,Se){var Ge=Kr(ae)||li(ae)?ge(ae.length,String):[],st=Ge.length,Pt=!!st;for(var xt in ae)(Se||yt.call(ae,xt))&&!(Pt&&(xt=="length"||ho(xt,st)))&&Ge.push(xt);return Ge}function xn(ae,Se){for(var Ge=ae.length;Ge--;)if(si(ae[Ge][0],Se))return Ge;return-1}function oo(ae){return Er(ae)?vt(ae):{}}var Sn=oi();function io(ae,Se){return ae&&Sn(ae,Se,Vn)}function ao(ae,Se){Se=po(Se,ae)?[Se]:Fo(Se);for(var Ge=0,st=Se.length;ae!=null&&Ge<st;)ae=ae[go(Se[Ge++])];return Ge&&Ge==st?ae:void 0}function so(ae){return At.call(ae)}function lo(ae,Se){return ae!=null&&Se in Object(ae)}function cn(ae,Se,Ge,st,Pt){return ae===Se?!0:ae==null||Se==null||!Er(ae)&&!Ln(Se)?ae!==ae&&Se!==Se:Oo(ae,Se,cn,Ge,st,Pt)}function Oo(ae,Se,Ge,st,Pt,xt){var Qt=Kr(ae),Bt=Kr(Se),Yt=k,or=k;Qt||(Yt=tn(ae),Yt=Yt==B?Q:Yt),Bt||(or=tn(Se),or=or==B?Q:or);var gr=Yt==Q&&!Ye(ae),hr=or==Q&&!Ye(Se),cr=Yt==or;if(cr&&!gr)return xt||(xt=new Or),Qt||Ar(ae)?ii(ae,Se,Ge,st,Pt,xt):Ji(ae,Se,Yt,Ge,st,Pt,xt);if(!(Pt&S)){var Tr=gr&&yt.call(ae,"__wrapped__"),Pr=hr&&yt.call(Se,"__wrapped__");if(Tr||Pr){var Yr=Tr?ae.value():ae,Br=Pr?Se.value():Se;return xt||(xt=new Or),Ge(Yr,Br,st,Pt,xt)}}return cr?(xt||(xt=new Or),Zi(ae,Se,Ge,st,Pt,xt)):!1}function co(ae,Se,Ge,st){var Pt=Ge.length,xt=Pt,Qt=!st;if(ae==null)return!xt;for(ae=Object(ae);Pt--;){var Bt=Ge[Pt];if(Qt&&Bt[2]?Bt[1]!==ae[Bt[0]]:!(Bt[0]in ae))return!1}for(;++Pt<xt;){Bt=Ge[Pt];var Yt=Bt[0],or=ae[Yt],gr=Bt[1];if(Qt&&Bt[2]){if(or===void 0&&!(Yt in ae))return!1}else{var hr=new Or;if(st)var cr=st(or,gr,Yt,ae,Se,hr);if(!(cr===void 0?cn(gr,or,st,x|S,hr):cr))return!1}}return!0}function On(ae){if(!Er(ae)||na(ae))return!1;var Se=ar(ae)||Ye(ae)?Ae:it;return Se.test(un(ae))}function Rn(ae){return Ln(ae)&&zn(ae.length)&&!!ke[At.call(ae)]}function en(ae){return typeof ae=="function"?ae:ae==null?hi:typeof ae=="object"?Kr(ae)?Ro(ae[0],ae[1]):fo(ae):wr(ae)}function uo(ae){if(!oa(ae))return Ne(ae);var Se=[];for(var Ge in Object(ae))yt.call(ae,Ge)&&Ge!="constructor"&&Se.push(Ge);return Se}function fo(ae){var Se=ea(ae);return Se.length==1&&Se[0][2]?Zt(Se[0][0],Se[0][1]):function(Ge){return Ge===ae||co(Ge,ae,Se)}}function Ro(ae,Se){return po(ae)&&ai(Se)?Zt(go(ae),Se):function(Ge){var st=ui(Ge,ae);return st===void 0&&st===Se?di(Ge,ae):cn(Se,st,void 0,x|S)}}function ri(ae){return function(Se){return ao(Se,ae)}}function ni(ae){if(typeof ae=="string")return ae;if(Hn(ae))return Nt?Nt.call(ae):"";var Se=ae+"";return Se=="0"&&1/ae==-E?"-0":Se}function Fo(ae){return Kr(ae)?ae:er(ae)}function oi(ae){return function(Se,Ge,st){for(var Pt=-1,xt=Object(Se),Qt=st(Se),Bt=Qt.length;Bt--;){var Yt=Qt[ae?Bt:++Pt];if(Ge(xt[Yt],Yt,xt)===!1)break}return Se}}function ii(ae,Se,Ge,st,Pt,xt){var Qt=Pt&S,Bt=ae.length,Yt=Se.length;if(Bt!=Yt&&!(Qt&&Yt>Bt))return!1;var or=xt.get(ae);if(or&&xt.get(Se))return or==Se;var gr=-1,hr=!0,cr=Pt&x?new ln:void 0;for(xt.set(ae,Se),xt.set(Se,ae);++gr<Bt;){var Tr=ae[gr],Pr=Se[gr];if(st)var Yr=Qt?st(Pr,Tr,gr,Se,ae,xt):st(Tr,Pr,gr,ae,Se,xt);if(Yr!==void 0){if(Yr)continue;hr=!1;break}if(cr){if(!Ee(Se,function(Br,$r){if(!cr.has($r)&&(Tr===Br||Ge(Tr,Br,st,Pt,xt)))return cr.add($r)})){hr=!1;break}}else if(!(Tr===Pr||Ge(Tr,Pr,st,Pt,xt))){hr=!1;break}}return xt.delete(ae),xt.delete(Se),hr}function Ji(ae,Se,Ge,st,Pt,xt,Qt){switch(Ge){case oe:if(ae.byteLength!=Se.byteLength||ae.byteOffset!=Se.byteOffset)return!1;ae=ae.buffer,Se=Se.buffer;case Z:return!(ae.byteLength!=Se.byteLength||!st(new qe(ae),new qe(Se)));case $:case I:case H:return si(+ae,+Se);case D:return ae.name==Se.name&&ae.message==Se.message;case U:case W:return ae==Se+"";case L:var Bt=rt;case G:var Yt=xt&S;if(Bt||(Bt=pt),ae.size!=Se.size&&!Yt)return!1;var or=Qt.get(ae);if(or)return or==Se;xt|=x,Qt.set(ae,Se);var gr=ii(Bt(ae),Bt(Se),st,Pt,xt,Qt);return Qt.delete(ae),gr;case K:if(Vt)return Vt.call(ae)==Vt.call(Se)}return!1}function Zi(ae,Se,Ge,st,Pt,xt){var Qt=Pt&S,Bt=Vn(ae),Yt=Bt.length,or=Vn(Se),gr=or.length;if(Yt!=gr&&!Qt)return!1;for(var hr=Yt;hr--;){var cr=Bt[hr];if(!(Qt?cr in Se:yt.call(Se,cr)))return!1}var Tr=xt.get(ae);if(Tr&&xt.get(Se))return Tr==Se;var Pr=!0;xt.set(ae,Se),xt.set(Se,ae);for(var Yr=Qt;++hr<Yt;){cr=Bt[hr];var Br=ae[cr],$r=Se[cr];if(st)var pi=Qt?st($r,Br,cr,Se,ae,xt):st(Br,$r,cr,ae,Se,xt);if(!(pi===void 0?Br===$r||Ge(Br,$r,st,Pt,xt):pi)){Pr=!1;break}Yr||(Yr=cr=="constructor")}if(Pr&&!Yr){var Un=ae.constructor,jn=Se.constructor;Un!=jn&&"constructor"in ae&&"constructor"in Se&&!(typeof Un=="function"&&Un instanceof Un&&typeof jn=="function"&&jn instanceof jn)&&(Pr=!1)}return xt.delete(ae),xt.delete(Se),Pr}function Fn(ae,Se){var Ge=ae.__data__;return ra(Se)?Ge[typeof Se=="string"?"string":"hash"]:Ge.map}function ea(ae){for(var Se=Vn(ae),Ge=Se.length;Ge--;){var st=Se[Ge],Pt=ae[st];Se[Ge]=[st,Pt,ai(Pt)]}return Se}function _n(ae,Se){var Ge=Le(ae,Se);return On(Ge)?Ge:void 0}var tn=so;(ze&&tn(new ze(new ArrayBuffer(1)))!=oe||Ve&&tn(new Ve)!=L||We&&tn(We.resolve())!=Y||ht&&tn(new ht)!=G||_t&&tn(new _t)!=X)&&(tn=function(ae){var Se=At.call(ae),Ge=Se==Q?ae.constructor:void 0,st=Ge?un(Ge):void 0;if(st)switch(st){case Ct:return oe;case Mt:return L;case Pe:return Y;case Ue:return G;case ct:return X}return Se});function ta(ae,Se,Ge){Se=po(Se,ae)?[Se]:Fo(Se);for(var st,Pt=-1,Qt=Se.length;++Pt<Qt;){var xt=go(Se[Pt]);if(!(st=ae!=null&&Ge(ae,xt)))break;ae=ae[xt]}if(st)return st;var Qt=ae?ae.length:0;return!!Qt&&zn(Qt)&&ho(xt,Qt)&&(Kr(ae)||li(ae))}function ho(ae,Se){return Se=Se==null?P:Se,!!Se&&(typeof ae=="number"||$e.test(ae))&&ae>-1&&ae%1==0&&ae<Se}function po(ae,Se){if(Kr(ae))return!1;var Ge=typeof ae;return Ge=="number"||Ge=="symbol"||Ge=="boolean"||ae==null||Hn(ae)?!0:Fe.test(ae)||!we.test(ae)||Se!=null&&ae in Object(Se)}function ra(ae){var Se=typeof ae;return Se=="string"||Se=="number"||Se=="symbol"||Se=="boolean"?ae!=="__proto__":ae===null}function na(ae){return!!Tt&&Tt in ae}function oa(ae){var Se=ae&&ae.constructor,Ge=typeof Se=="function"&&Se.prototype||nt;return ae===Ge}function ai(ae){return ae===ae&&!Er(ae)}function Zt(ae,Se){return function(Ge){return Ge==null?!1:Ge[ae]===Se&&(Se!==void 0||ae in Object(Ge))}}var er=zo(function(ae){ae=ci(ae);var Se=[];return Ke.test(ae)&&Se.push(""),ae.replace(tt,function(Ge,st,Pt,xt){Se.push(Pt?xt.replace(dt,"$1"):st||Ge)}),Se});function go(ae){if(typeof ae=="string"||Hn(ae))return ae;var Se=ae+"";return Se=="0"&&1/ae==-E?"-0":Se}function un(ae){if(ae!=null){try{return Dt.call(ae)}catch(Se){}try{return ae+""}catch(Se){}}return""}function zo(ae,Se){if(typeof ae!="function"||Se&&typeof Se!="function")throw new TypeError(w);var Ge=function(){var st=arguments,Pt=Se?Se.apply(this,st):st[0],xt=Ge.cache;if(xt.has(Pt))return xt.get(Pt);var Qt=ae.apply(this,st);return Ge.cache=xt.set(Pt,Qt),Qt};return Ge.cache=new(zo.Cache||Dr),Ge}zo.Cache=Dr;function si(ae,Se){return ae===Se||ae!==ae&&Se!==Se}function li(ae){return ia(ae)&&yt.call(ae,"callee")&&(!bt.call(ae,"callee")||At.call(ae)==B)}var Kr=Array.isArray;function Lo(ae){return ae!=null&&zn(ae.length)&&!ar(ae)}function ia(ae){return Ln(ae)&&Lo(ae)}function ar(ae){var Se=Er(ae)?At.call(ae):"";return Se==F||Se==z}function zn(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=P}function Er(ae){var Se=typeof ae;return!!ae&&(Se=="object"||Se=="function")}function Ln(ae){return!!ae&&typeof ae=="object"}function Hn(ae){return typeof ae=="symbol"||Ln(ae)&&At.call(ae)==K}var Ar=ie?Ie(ie):Rn;function ci(ae){return ae==null?"":ni(ae)}function ui(ae,Se,Ge){var st=ae==null?void 0:ao(ae,Se);return st===void 0?Ge:st}function di(ae,Se){return ae!=null&&ta(ae,Se,lo)}function Vn(ae){return Lo(ae)?Dn(ae):uo(ae)}function fi(ae,Se,Ge){var st=Kr(ae)||Ar(ae);if(Se=en(Se),Ge==null)if(st||Er(ae)){var Pt=ae.constructor;st?Ge=Kr(ae)?new Pt:[]:Ge=ar(Pt)?oo(ft(ae)):{}}else Ge={};return(st?be:io)(ae,function(xt,Qt,Bt){return Se(Ge,xt,Qt,Bt)}),Ge}function hi(ae){return ae}function wr(ae){return po(ae)?Ce(go(ae)):ri(ae)}d.exports=fi})(lodash_transform,lodash_transform.exports);var lodash_transformExports=lodash_transform.exports;const isEmpty=lodash_isemptyExports,isPlainObject=lodash_isplainobject,transform=lodash_transformExports;var src=function d(b,{cleanKeys:A=[],cleanValues:w=[],emptyArrays:C=!0,emptyObjects:x=!0,emptyStrings:S=!0,NaNValues:E=!1,nullValues:P=!0,undefinedValues:B=!0}={}){return transform(b,(k,$,I)=>{if(!A.includes(I)&&((Array.isArray($)||isPlainObject($))&&($=d($,{NaNValues:E,cleanKeys:A,cleanValues:w,emptyArrays:C,emptyObjects:x,emptyStrings:S,nullValues:P,undefinedValues:B})),!w.includes($)&&!(x&&isPlainObject($)&&isEmpty($))&&!(C&&Array.isArray($)&&!$.length)&&!(S&&$==="")&&!(E&&Number.isNaN($))&&!(P&&$===null)&&!(B&&$===void 0))){if(Array.isArray(k))return k.push($);k[I]=$}})};const cleanDeep=getDefaultExportFromCjs(src);function _isSlot(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const initMusic=d=>new Array(d).fill(0).map((b,A)=>({measureNumber:A+1,barline:"|",celf:"",key:"",repeat:"",meter:"",notes:[{accidental:"",clef:"",meter:"",content:"z",noteType:"4",play:[],key:"",speed:"",dynamics:"",dCode:"",tie:"",tCode:"",dot:"",slus:"",tieline:"",segno:""}]}));function moveNote(d,b){var A=ALL_Pitches.indexOf(d);if(A>=0){const w=ALL_Pitches[A-b];return w||d}return d}const Home=defineComponent({name:"Home",setup(){useRoute$1();const d=useMessage(),b=reactive({instrument:!1,selectSubjectShow:!1,moveKeyShow:!1,speedShow:!1,accidentalsShow:!1,clefShow:!1,keyShow:!1,meterShow:!1,playShow:!1,dynamicsShow:!1,barShow:!1,mearseDeleteShow:!1,staffShow:!1,settingShow:!1,selectMearesShow:!1}),A=reactive({loading:!0,drawCount:0,isSave:!0,musicId:"",musicName:"",creator:"",subjectId:"",speed:"",music:"",playState:!1,active:null,select:{state:!1,list:[],parmas:null},isClickNote:!1,noteType:"",selectMeasures:{state:!1,x:0,y:0,start:1,startNote:null,end:0,endNote:null,max:30},slide:["note","meter","dynamics"],morePlay:!1,addMearseType:"pre",addMearseNumber:1,deleteMearseType:"ing",loadingAudioSrouce:!1,moveKeyType:"inset",activePlayNote:null}),w=ABC_DATA.types.map(ee=>ee.value).filter(Boolean),C=ABC_DATA.accidentals.map(ee=>ee.value).filter(Boolean),x=ABC_DATA.clef.map(ee=>ee.value).filter(Boolean),S=ABC_DATA.play.map(ee=>ee.value).filter(Boolean),E=ABC_DATA.dynamics.map(ee=>ee.value).flat().filter(Boolean);ABC_DATA.bar.map(ee=>ee.value).filter(Boolean),console.log("🚀 ~ noteTypes:",w,C,x,S,E);const P=(ee,se,ie,be,Ee)=>{var Ie,Le,Ye;let Ce=((Le=(Ie=ee.chord)==null?void 0:Ie.find(rt=>rt.position==="left"))==null?void 0:Le.name)||"";Ce=Ce.split(".").map(rt=>Number(rt));const ge={...lodashExports.cloneDeep(ee),measureIndex:Ce[0],noteIndex:Ce[1],isFirstChecked:!0};if(A.select.state){A.select.list.push(ge),A.select.list.length===1&&showToast("请先选择结束音符"),A.select.list.length===2&&(console.log(A.select.list),A.select.list=A.select.list.sort((rt,lt)=>rt.startChar-lt.startChar),me());return}if(A.active=ge,console.log("🚀 ~ abcElem:",ee,A.music.substring(A.active.startChar,A.active.endChar)),((Ye=A.active)==null?void 0:Ye.el_type)==="note"){const rt=k.synthControl.visualObj.getTotalTime();if(rt){const lt=A.active.currentTrackMilliseconds/1e3/rt;k.synthControl.seek(lt)}}if(Ee&&Ee.step){J({type:"move",value:{action:"drag",step:Ee.step}});return}ee!=null&&ee.midiPitches&&ABCJS.synth.playEvent(ee.midiPitches,ee.midiGraceNotePitches,1e3)},B=ref(),k=reactive({visualObj:null,midiBuffer:null,abcOptions:{selectionColor:"#0f81ff",jazzchords:!0,add_classes:!0,clickListener:P,responsive:"resize",dragging:!0,selectTypes:["note"],visualTranspose:0,wrap:{minSpacing:.1,maxSpacing:2.7,preferredMeasuresPerLine:4},staffwidth:800},synthControl:null,synthOptions:{program:0},abc:{celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=60",key:"K:C",visualTranspose:0,subjectCode:"acoustic_grand_piano",measures:initMusic(30)}}),$=(ee,se,ie)=>{const be=k.abc.measures[ee];be&&be.notes.splice(se+1,0,ie)},I=()=>{const ee=document.querySelector("#paper svg .ABCJS-cursor");ee&&(ee.setAttribute("x1","0"),ee.setAttribute("x2","0"),ee.setAttribute("y1","0"),ee.setAttribute("y2","0"))},D={onReady:function(){},onStart:function(){console.log("开始"),A.playState=!0;var ee=document.querySelector("#paper svg"),se=document.createElementNS("http://www.w3.org/2000/svg","line");se.setAttribute("class","ABCJS-cursor"),se.setAttributeNS(null,"x1","0"),se.setAttributeNS(null,"y1","0"),se.setAttributeNS(null,"x2","0"),se.setAttributeNS(null,"y2","0"),ee==null||ee.appendChild(se)},onBeat:function(ee,se,ie){if(!A.playState)return;const be=ee/se*ie;metronomeData.metro.sound(be)},onEvent:ee=>{var ie;if(A.playState&&!(ee.measureStart&&ee.left===null)){if(b.selectMearesShow){const be=((ie=A.selectMeasures.startNote)==null?void 0:ie.currentTrackMilliseconds)||0,Ee=A.selectMeasures.endNote?A.selectMeasures.endNote:null;if(ee.milliseconds<be||Ee&&ee.milliseconds>Ee.currentTrackMilliseconds){const Ce=k.synthControl.visualObj.getTotalTime();if(Ce){const ge=be/1e3/Ce;nextTick(()=>{k.synthControl.seek(ge)})}}}A.activePlayNote={...ee};var se=document.querySelector("#paper svg .ABCJS-cursor");se&&(se.setAttribute("x1",ee.left+ee.width/2),se.setAttribute("x2",ee.left+ee.width/2),se.setAttribute("y1",ee.top),se.setAttribute("y2",ee.top+ee.height))}},onFinished:function(){console.log("finished"),A.playState=!1;for(var ee=document.querySelectorAll("svg .highlight"),se=0;se<ee.length;se++)ee[se].classList.remove("highlight");I()}},F=ALL_NOTES(),z=async()=>{A.loadingAudioSrouce=!0;const ee=new ABCJS.synth.CreateSynth,se="X: 1\nM:4/4\nL:1/4\n".concat(F),ie=ABCJS.parseOnly(se);await ee.init({visualObj:ie[0],options:{...k.synthOptions}})},L=(ee=!1)=>{new ABCJS.synth.CreateSynth().init({visualObj:k.visualObj,options:{...k.synthOptions}}).then(()=>{k.synthControl.setTune(k.visualObj,ee,{midiTranspose:k.abc.visualTranspose,program:k.synthOptions.program}).then(function(ie){A.loadingAudioSrouce=!1}).catch(ie=>{console.log(ie)})})},H=ee=>{var se;if(ee==="play")k.synthControl.play(),A.playState=!0;else if(ee==="pause"){k.synthControl.play(),A.playState=!1,I();const ie=k.synthControl.visualObj.getTotalTime();if(ie&&((se=A.activePlayNote)==null?void 0:se.milliseconds)!==void 0){const be=A.activePlayNote.milliseconds/1e3/ie;nextTick(()=>{k.synthControl.seek(be)})}}else k.synthControl.restart(),nextTick(()=>{A.playState||k.synthControl.play()})},Q=()=>{k.visualObj=ABCJS.renderAbc("paper",A.music,{...k.abcOptions,visualTranspose:k.abc.visualTranspose})[0],A.drawCount<3&&console.log("🚀 ~ visualObj:",k.visualObj)},Y=()=>{var be,Ee,Ce;const ee=document.querySelector("#paper svg"),se=4;let ie=0;for(let ge=0;ge<k.visualObj.lines.length;ge++){const Ie=k.visualObj.lines[ge];for(let Le=0;Le<Ie.staff.length;Le++){const rt=[...Ie.staff[Le].voices].flat();for(let lt=0;lt<rt.length;lt++){const pt=rt[lt];if(pt.el_type==="bar"&&ie++,["note","keySignature","clef","timeSignature"].includes(pt.el_type)){const He=((Ce=(Ee=(be=pt.abselem.elemset)==null?void 0:be[0])==null?void 0:Ee.getBBox)==null?void 0:Ce.call(Ee))||null;if(He){const at=document.createElementNS("http://www.w3.org/2000/svg","rect");at.setAttributeNS(null,"x",He.x-se+""),at.setAttributeNS(null,"y",He.y-se+""),at.setAttributeNS(null,"width",He.width+se*2+""),at.setAttributeNS(null,"height",He.height+se*2+""),at.setAttributeNS(null,"fill","rgba(0,0,0,0)"),at.setAttributeNS(null,"stroke","rgba(0,0,0,0)"),at.setAttributeNS(null,"rx","2"),at.classList.add("abcjs-note-hover"),ee==null||ee.appendChild(at)}}}}}console.log(ie),A.selectMeasures.max=ie};let U=null;const G=()=>{U&&clearTimeout(U),U=setTimeout(()=>{Ke(!1)},5e3)},W=()=>(A.drawCount>0&&(k.synthControl.disable(!0),A.playState&&(A.playState=!1)),A.isSave=!1,new Promise(ee=>{nextTick(()=>{A.music=renderMeasures(k.abc),Q(),L(A.drawCount>0),Y();try{K()}catch(se){console.log("🚀 ~ error:",se)}if(ee(1),A.drawCount>0){const se=location.host;if(se.includes("localhost")||se.includes("192"))return;G()}B.value&&(B.value.value=A.music),A.drawCount++})})),K=()=>{var be,Ee,Ce;const ee=new ABCJS.TimingCallbacks(k.visualObj),se=[];let ie=k.abc.meter||"";for(let ge=0;ge<ee.noteTimings.length-1;ge++){const Ie=ee.noteTimings[ge],Le=le(Ie.startChar);let Ye=((Ee=(be=Le.chord)==null?void 0:be.find(rt=>rt.position==="left"))==null?void 0:Ee.name)||"";if(Ye=Ye.split(".").map(rt=>Number(rt)),Ye.length===2){const rt=k.abc.measures[Ye[0]],lt=new RegExp(/M:(\d+)\/\d+/),pt=Number((Ce=ie.match(lt))==null?void 0:Ce[1]),He=rt.notes[Ye[1]];se.push({...He,timeNote:Ie,abcNote:Le,measure:{numerator:pt}})}}metronomeData.metro||(metronomeData.metro=new Metronome);try{metronomeData.activeIndex=-1,metronomeData.metro.init(se)}catch(ge){console.log("🚀 ~ 生成节拍器数据错误:",ge)}},X=ee=>{const se=k.visualObj.getElementFromChar(ee);return se&&k.visualObj.engraver.rangeHighlight(se.startChar,se.endChar),se},Z=ee=>{const se=A.music.indexOf(ee);return k.visualObj.getElementFromChar(se)},oe=ee=>{const se=k.abc.measures[ee],ie=[];for(let be=0;be<se.notes.length;be++){const Ee="".concat(ee,".").concat(be),Ce=Z(Ee);ie.push(Ce)}return ie},he=()=>{window.matchMedia("(display-mode: standalone)").matches?(window.onbeforeunload=null,window.parent.postMessage({api:"notation_exit"},"*")):window.close()},J=async ee=>{var Ee,Ce,ge,Ie,Le,Ye,rt,lt,pt,He,at;k.synthControl.disable(!0),A.playState&&(A.playState=!1);const se=ee.type,ie=ee.value,be=((ge=k.abc.measures[(Ee=A.active)==null?void 0:Ee.measureIndex])==null?void 0:ge.notes[(Ce=A.active)==null?void 0:Ce.noteIndex])||null;if(se==="exit"){if(!A.isSave){showConfirmDialog({title:"温馨提示",message:"还没保存,是否保存?"}).then(async()=>{const nt=d.loading("保存中...");await Ke(!1),setTimeout(()=>{nt.type="success",nt.content="保存成功",setTimeout(()=>{nt.destroy(),he()},500)},300)}).catch(()=>{he()});return}he()}if(se==="type"){if(A.noteType=ie,be){be.noteType=ie,await W();const nt=X(A.active.startChar),mt=nt?{...lodashExports.cloneDeep(nt),measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex,isFirstChecked:!0}:null;A.active=mt}return}if(se==="segno"){if(!A.active){showToast("请先选择音符");return}if(!be)return;be.segno=be.segno?"":ie,await W(),X(A.active.startChar)}if(se==="note"&&A.active&&A.active.el_type=="note"){const nt=((Ie=k.abc.measures[A.active.measureIndex])==null?void 0:Ie.notes[A.active.noteIndex])||null,mt=ie.split("-");A.active.isFirstChecked&&(nt.content=mt[0],nt.noteType=A.noteType,mt[1]&&(nt.accidental=mt[1]||""),A.active.isFirstChecked=!1),await W();const Tt=Z("".concat(A.active.measureIndex,".").concat(A.active.noteIndex));if((rt=(Ye=(Le=Tt==null?void 0:Tt.abselem)==null?void 0:Le.beam)==null?void 0:Ye.elems)!=null&&rt.length){const yt=Tt.abselem.beam.elems,At=k.visualObj.getBeatLength();yt.map(Re=>Re.duration).reduce((Re,qe)=>Re+qe)>=At&&(k.abc.measures[A.active.measureIndex].notes[A.active.noteIndex].segno=" ",await W())}if(Tt!=null&&Tt.midiPitches&&ABCJS.synth.playEvent(Tt.midiPitches,Tt.midiGraceNotePitches,1e3),(lt=k.abc.measures[A.active.measureIndex])==null?void 0:lt.notes[A.active.noteIndex+1]){const yt=Z("".concat(A.active.measureIndex,".").concat(A.active.noteIndex+1));X(yt.startChar),A.active={...yt,measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex+1,isFirstChecked:!0}}else if(oe(A.active.measureIndex).map(Ae=>Ae.duration).reduce((Ae,Re)=>Ae+Re)>=1)if((pt=k.abc.measures[A.active.measureIndex+1])==null?void 0:pt.notes[0]){const Re=Z("".concat(A.active.measureIndex+1,".0"));X(Re.startChar),A.active={...Re,measureIndex:A.active.measureIndex+1,noteIndex:0,isFirstChecked:!0}}else X(A.active.startChar),A.active.isFirstChecked=!0;else{$(A.active.measureIndex,A.active.noteIndex,createNote({content:"z",noteType:A.noteType})),await W();const Ae=Z("".concat(A.active.measureIndex,".").concat(A.active.noteIndex+1));X(Ae.startChar),A.active={...Ae,measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex+1,isFirstChecked:!0}}}if(se==="accidentals"){if(!A.active){d.warning("请先选择音符");return}if(be.content==="z"){d.warning("休止符无法添加临时升降记号");return}be.accidental=be.accidental==ie?"":ie,await W();const nt=X(A.active.startChar),mt=nt?{...lodashExports.cloneDeep(nt),measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex,isFirstChecked:!0}:null;A.active=mt}if(se==="clef")if(A.active){if(!be)return;be.clef="[".concat(ie,"]"),await W()}else k.abc.celf=ie,W();if(se==="key")if(A.active){if(!be)return;be.key="[".concat(ie,"]"),await W()}else k.abc.key=ie,await W();if(se==="meter")if(A.active&&A.active.measureIndex!==0){if(!be)return;const nt=k.abc.measures[A.active.measureIndex];nt.meter="[".concat(ie,"]"),await W();const mt=Z("".concat(A.active.measureIndex,".").concat(A.active.noteIndex));X(mt.startChar)}else k.abc.meter=ie,await W();if(se==="play"){if(!A.active){d.warning("请先选择音符");return}if(!be)return;be.play.includes(ie)?be.play=be.play.filter(nt=>nt!==ie):be.play.push(ie),await W(),X(A.active.startChar)}if(se==="dynamics"){if(!A.active){d.info("请先选择音符");return}if(!be)return;if(Array.isArray(ie)){if(be!=null&&be.dynamics){be.dynamics="";for(let nt=0;nt<k.abc.measures.length;nt++){const mt=k.abc.measures[nt];for(let Tt=0;Tt<mt.notes.length;Tt++){const Dt=mt.notes[Tt];Dt.dCode===be.dCode&&(Dt.dynamics="")}}await W()}else A.select.list=[lodashExports.cloneDeep(A.active)],A.select.state=!0,A.select.parmas=ee,d.info("请选择结束音符");return}be.dynamics===ie?be.dynamics="":be.dynamics=ie,await W(),X(A.active.startChar)}if(se==="tie"){if(!A.active){d.info("请先选择音符");return}if(!be)return;if(Array.isArray(ie))if(be!=null&&be.tie){be.tie="";for(let mt=0;mt<k.abc.measures.length;mt++){const Tt=k.abc.measures[mt];for(let Dt=0;Dt<Tt.notes.length;Dt++){const yt=Tt.notes[Dt];yt.tCode===be.tCode&&(yt.tie="")}}await W();return}else{A.select.list=[lodashExports.cloneDeep(A.active)],A.select.state=!0,A.select.parmas=ee,d.info("请选择结束音符");return}const nt=le(A.active.endChar);if(be.tieline)be.tieline="";else{if(A.active.averagepitch!=nt.averagepitch){d.warning("必须同音高才能添加延音线");return}be.tieline=ie}await W(),X(A.active.startChar)}if(se==="repeat"){if(!A.active)return;const nt=k.abc.measures[A.active.measureIndex]||null;if(!nt)return;nt.repeat===ie?nt.repeat="":nt.repeat=ie,await W(),X(A.active.startChar+ie.length)}if(se==="barline"){if(!A.active)return;const nt=k.abc.measures[A.active.measureIndex]||null;if(!nt)return;if(ie==="|:"){const mt=k.abc.measures[A.active.measureIndex-1]||null;if(!mt)return;mt.barline=ie}else nt.barline=ie;await W()}if(se==="speeds")if(A.active){if(A.active.measureIndex===0&&A.active.noteIndex===0)k.abc.speed=ie,await W();else{const nt=((He=k.abc.measures[A.active.measureIndex])==null?void 0:He.notes[A.active.noteIndex])||null;if(!nt)return;nt.speed="[".concat(ie,"]"),await W()}X(A.active.startChar)}else k.abc.speed=ie,await W();if(se==="dot"){if(!A.active){showToast("请先选择音符");return}if(!be)return;be.dot=be.dot?"":ie,await W(),X(A.active.startChar)}if(se==="slus"){const nt=((at=k.abc.measures[A.active.measureIndex])==null?void 0:at.notes[A.active.noteIndex])||null;if(!nt)return;nt.slus=nt.slus===ie?"":ie,await W(),X(A.active.startChar)}if(se==="move"){const nt=ie._step?ie._step:ie.action==="up"?-1:1;if(!be)return;be.content=moveNote(be.content,nt),await W();const mt=X(A.active.startChar);if(!(mt!=null&&mt.midiPitches))return;ABCJS.synth.playEvent(mt.midiPitches,mt.midiGraceNotePitches,1e3)}if(se==="delete"){if(!A.active||A.active.startChar===0)return;k.abc.measures[A.active.measureIndex].notes.splice(A.active.noteIndex,1),k.abc.measures[A.active.measureIndex].notes.length===0&&k.abc.measures.splice(A.active.measureIndex,1),W(),A.active=null}},le=ee=>{const se=k.visualObj.getElementFromChar(ee);return se.el_type==="note"?se:le(se.endChar)},de=()=>{A.active=null,document.querySelectorAll(".abcjs-note_selected").forEach(se=>{se.classList.remove("abcjs-note_selected"),se.setAttribute("fill","currentColor")})},me=async()=>{var Ee,Ce;const ee=(Ee=A.select.parmas)==null?void 0:Ee.type,se=(Ce=A.select.parmas)==null?void 0:Ce.value,ie=A.select.list[0],be=A.select.list[1];if(ee==="dynamics")if(k.abc.measures[be.measureIndex].notes[be.noteIndex].dynamics||k.abc.measures[ie.measureIndex].notes[ie.noteIndex].dynamics)d.warning("已经添加了力度标记");else{const ge=Date.now()+"";k.abc.measures[ie.measureIndex].notes[ie.noteIndex].dynamics=se[0],k.abc.measures[ie.measureIndex].notes[ie.noteIndex].dCode=ge,k.abc.measures[be.measureIndex].notes[be.noteIndex].dynamics=se[1],k.abc.measures[be.measureIndex].notes[be.noteIndex].dCode=ge,await W()}if(ee==="tie"){const ge=Date.now()+"";if(k.abc.measures[ie.measureIndex].notes[ie.noteIndex].tie){const Ie=k.abc.measures[ie.measureIndex].notes[ie.noteIndex].tie;k.abc.measures[ie.measureIndex].notes[ie.noteIndex].tie=se[0]+Ie}else k.abc.measures[ie.measureIndex].notes[ie.noteIndex].tie=se[0],k.abc.measures[ie.measureIndex].notes[ie.noteIndex].tCode=ge;if(k.abc.measures[be.measureIndex].notes[be.noteIndex].tie){const Ie=k.abc.measures[be.measureIndex].notes[be.noteIndex].tie;k.abc.measures[be.measureIndex].notes[be.noteIndex].tie=Ie+se[1]}else k.abc.measures[be.measureIndex].notes[be.noteIndex].tie=se[1],k.abc.measures[be.measureIndex].notes[be.noteIndex].tCode=ge;await W()}A.select.state=!1,A.select.list=[],A.select.parmas=null,de(),d.destroyAll()},ne=async ee=>{k.abc.visualTranspose=ee.step,b.moveKeyShow=!1,A.playState&&(k.synthControl.disable(!0),A.playState=!1),await W()},re=ee=>{if(!A.active)return!1;if(console.log(ee.key),ee.key==="Backspace"&&J({type:"delete",value:""}),/^[A-Ga-g]$/.test(ee.key)&&J({type:"note",value:ee.key.toLocaleUpperCase()}),["ArrowUp","ArrowDown"].includes(ee.key))return ee.preventDefault(),ee.stopPropagation(),J({type:"move",value:{action:ee.key==="ArrowUp"?"up":"donw"}}),!1},fe=()=>{k.abc.measures=initMusic(30),W()},ce=computed(()=>ABCJS.synth.instrumentIndexToName.map((ee,se)=>({label:instrumentsNames[ee],value:se}))),we=computed(()=>{const ee=ABCJS.synth.instrumentIndexToName[k.synthOptions.program];return instrumentsNames[ee]}),Fe=async()=>{A.loading=!0;const ee=getQuery(),se=await api_musicSheetCreationDetail(ee.id);if((se==null?void 0:se.code)==200){A.musicId=se.data.id||"",A.musicName=se.data.name||"",A.creator=se.data.creator||"";let ie="";try{ie=JSON.parse(se.data.creationData)}catch(be){console.log(be)}if(ie){console.log("🚀 ~ abc:",ie),k.abc.celf=ie.celf||"K:treble",k.abc.key=ie.key.value||ie.key||"K:C",k.abc.meter=ie.meter.value||ie.meter||"M:4/4",k.abc.speed=ie.speed||"Q:1/4=60",k.abc.visualTranspose=ie.visualTranspose||0,k.abc.subjectCode=ie.subjectCode||"acoustic_grand_piano";const be=ABCJS.synth.instrumentIndexToName.indexOf(k.abc.subjectCode);k.synthOptions.program=be>-1?be:0,k.abc.measures=ie.measures||initMusic(30)}}A.loading=!1},Ke=async(ee=!0)=>{await api_musicSheetCreationUpdate({name:A.musicName,creator:A.creator,creationConfig:renderMeasures(k.abc,{hiddenIndex:!0}),creationData:JSON.stringify(cleanDeep(k.abc)),id:A.musicId,subjectId:3}),ee&&d.success("保存成功"),A.isSave=!0};onMounted(async()=>{await Fe(),z(),ABCJS.synth.supportsAudio()&&(k.synthControl=new ABCJS.synth.SynthController,k.synthControl.load("#audio",D,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0})),console.log(ABCJS),await W(),document.addEventListener("keyup",re),window.onbeforeunload=se=>{A.isSave||(se.preventDefault(),se.returnValue="还有没保存的")},k.synthControl.restart();const ee=document.querySelector("#selectMearesBtn");if(ee){const se=ee.getBoundingClientRect();A.selectMeasures.x=document.body.clientWidth-320,A.selectMeasures.y=se.top+70,A.selectMeasures.state=!0}}),onUnmounted(()=>{document.removeEventListener("keyup",re)});const tt=computed(()=>A.active?k.abc.measures[A.active.measureIndex]||{}:{}),ut=computed(()=>{var se;return A.active?((se=k.abc.measures[A.active.measureIndex])==null?void 0:se.notes[A.active.noteIndex])||{}:{}}),dt=()=>{showConfirmDialog({title:"温馨提示",message:"是否覆盖当前乐谱?"}).then(()=>{fe(),A.active=null})},it=()=>{for(let ee=0;ee<A.addMearseNumber;ee++)if(["pre","next"].includes(A.addMearseType)){if(!A.active){d.warning("请选择小节");return}A.addMearseType==="pre"?k.abc.measures.splice(A.active.measureIndex,0,createMeasure()):A.addMearseType==="next"&&k.abc.measures.splice(A.active.measureIndex+1,0,createMeasure())}else k.abc.measures.push(createMeasure());b.barShow=!1,W()},$e=()=>{if(A.deleteMearseType==="ing"){if(!A.active){d.warning("请选择小节");return}k.abc.measures.splice(A.active.measureIndex,1)}else if(A.deleteMearseType==="finish"){let ee=k.abc.measures.length;for(let se=ee;se>0&&(k.abc.measures[se-1].notes.length===1&&k.abc.measures[se-1].notes[0].content==="z");se--){if(k.abc.measures.length===1)break;k.abc.measures.splice(se-1,1)}}b.mearseDeleteShow=!1,W()},ke=async()=>{var Ce;k.abc.title="T:".concat(A.musicName),k.abc.creator="R:".concat(A.creator);const ee=document.getElementById("exportPng");if(!ee)return;const se=renderMeasures(k.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0});ABCJS.renderAbc(ee,se,k.abcOptions);const ie=(Ce=ee.children[0])==null?void 0:Ce.cloneNode(!0),be=ee.getBoundingClientRect();ie.setAttribute("width","".concat(be.width*3)),ie.setAttribute("height","".concat(be.height*3));const Ee=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ee.setAttribute("x","0"),Ee.setAttribute("y","0"),Ee.setAttribute("width","".concat(be.width*10)),Ee.setAttribute("height","".concat(be.height*10)),Ee.setAttribute("fill","#fff"),ie.prepend(Ee),ie){const ge=svg2canvas(ie.outerHTML);let Ie=document.createElement("a");Ie.href=ge.toDataURL(),Ie.download=A.musicName+".png";const Le=new MouseEvent("click");Ie.dispatchEvent(Le)}},Oe=ref(),Qe=()=>{const ee=ABCJS.synth.getMidiFile(k.visualObj,{chordsOff:!0,midiOutputType:"link",fileName:"曲谱"});Oe.value.innerHTML=ee,Oe.value.querySelector("a").click()},Je=()=>{try{k.synthControl&&k.synthControl.download("曲谱.wav")}catch(ee){const se=new ABCJS.synth.CreateSynth;se.init({visualObj:k.visualObj,options:k.synthOptions}).then(()=>{se.prime().then(()=>{downloadFile(se.download(),"曲谱.wav")})})}},ve=ee=>{ee==="png"?ke():ee==="midi"?Qe():ee==="wav"&&Je()},ye=()=>{const ee=document.createElement("input");ee.type="file",ee.accept=".xml,.musicxml",ee.onchange=se=>{const ie=se.target.files[0],be=new FileReader;be.onload=Ee=>{let Ce=Ee.target.result;Ce=new DOMParser().parseFromString(Ce,"text/xml"),Ce=window.vertaal(Ce,{p:"f",t:1,u:0,v:3,mnum:0});const ge=ABCJS.renderAbc("importRef",Ce[0],{responsive:"resize"});console.log("🚀 ~ parseData:",ge),k.abc=formateAbc(ge[0],{subjectCode:k.abc.subjectCode}),W()},be.readAsText(ie)},ee.click()},Te=(ee,se)=>{var ie;if(console.log("🚀 ~ index:",ee),se==="start"){const be=ee?Z("".concat(ee-1,".0")):null;A.selectMeasures.start=ee?ee-1:0,A.selectMeasures.startNote=be,A.selectMeasures.start&&A.selectMeasures.end&&A.selectMeasures.end<A.selectMeasures.start&&(A.selectMeasures.end=0,A.selectMeasures.endNote=null)}else{const be=ee?Z("".concat(ee-1,".").concat(((ie=k.abc.measures[ee-1])==null?void 0:ie.notes.length)-1)):null;A.selectMeasures.end=ee?ee-1:0,A.selectMeasures.endNote=be,A.selectMeasures.start&&A.selectMeasures.end&&A.selectMeasures.start>A.selectMeasures.end&&(A.selectMeasures.start=0,A.selectMeasures.startNote=null)}};return()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.container},[createVNode("div",{class:styles$6.containerTop,onKeyup:ee=>ee.stopPropagation()},[createVNode("div",{class:styles$6.topWrap},[createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"exit",value:"exit"})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_-1.png")},null)]),createVNode("div",null,[createTextVNode("退出")])]),createVNode("div",{class:styles$6.topBtn},[createVNode(FileBtn,{onSelect:ee=>{ee==="newMusic"?dt():ee==="save"?Ke():["xml"].includes(ee)?ye():ee==="upload"||["png","midi","wav"].includes(ee)&&ve(ee)}},null),createVNode("div",null,[createTextVNode("文件")])]),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"dot",value:">"})},[createVNode("div",{class:[styles$6.btnImg,ut.value.dot===">"&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_1.png")},null)]),createVNode("div",null,[createTextVNode("附点")])]),createVNode("div",{class:styles$6.topLine},null),ABC_DATA.accidentals.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"accidentals",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg,ut.value.accidental===ee.value&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ee.icon},null)]),createVNode("div",{class:styles$6.btnName},[ee.name])])),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"tie",value:ABC_DATA.tie[0].value})},[createVNode("div",{class:[styles$6.btnImg,ut.value.tieline===ABC_DATA.tie[0].value&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ABC_DATA.tie[0].icon},null)]),createVNode("div",null,[ABC_DATA.tie[0].name])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"tie",value:ABC_DATA.tie[1].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.tie[1].value.includes(ut.value.tie)&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ABC_DATA.tie[1].icon},null)]),createVNode("div",null,[ABC_DATA.tie[1].name])]),createVNode("div",{class:styles$6.topLine},null),ABC_DATA.play.slice(0,4).map(ee=>{var se;return createVNode("div",{class:[styles$6.topBtn],onClick:()=>J({type:"play",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg,((se=ut.value.play)==null?void 0:se.includes(ee.value))&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:ee.icon},null)]),createVNode("div",null,[ee.name])])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,trigger:"click",contentStyle:{width:"400px"}},{trigger:()=>createVNode("div",{class:styles$6.topDownArrow},[createVNode("img",{src:getImage("icon_arrow.png")},null)]),default:()=>{let ee;return createVNode(NGrid,{cols:4,yGap:8},_isSlot(ee=ABC_DATA.play.slice(4).map(se=>createVNode(NGi,null,{default:()=>{var ie;return[createVNode("div",{class:[styles$6.btnItem,((ie=ut.value.play)==null?void 0:ie.includes(se.value))&&styles$6.btnItemActive],onClick:()=>{A.morePlay=!1,J({type:"play",value:se.value})}},[createVNode("div",{class:styles$6.btnItemIcon},[createVNode(TheIcon,{iconClassName:se.icon},null)]),createVNode("div",null,[se.name])])]}})))?ee:{default:()=>[ee]})}}),createVNode("div",{class:styles$6.topLine},null),createVNode(NDropdown,{trigger:"click",options:ABC_DATA.slus,labelField:"name",keyField:"value",onSelect:ee=>{console.log(ee),J({type:"slus",value:ee})}},{default:()=>[createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_13.png")},null)]),createVNode("div",null,[createTextVNode("连音")])])]}),createVNode("div",{class:[styles$6.topBtn,styles$6.btnDisabled]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_14.png")},null)]),createVNode("div",null,[createTextVNode("翻转")])]),createVNode("div",{class:styles$6.topLine},null),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.selectSubjectShow,"onUpdate:show":ee=>b.selectSubjectShow=ee,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:styles$6.topBtn},[createVNode("div",{class:styles$6.btnImg,onClick:()=>b.instrument=!0},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_25.png")},null)]),createVNode("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"60px"}},[we.value])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("选择声部")]),createVNode(NSelect,{filterable:!0,options:ce.value,value:k.synthOptions.program,"onUpdate:value":[ee=>k.synthOptions.program=ee,async()=>{k.synthControl.disable(!0),A.playState=!1,await z(),L(!0),b.selectSubjectShow=!1}]},null)])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.moveKeyShow,"onUpdate:show":ee=>b.moveKeyShow=ee,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:styles$6.topBtn},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_15.png")},null)]),createVNode("div",null,[createTextVNode("移调")])]),default:()=>{let ee;return createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("移调方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,type:A.moveKeyType==="inset"?"primary":"default",onClick:()=>A.moveKeyType="inset"},{default:()=>[createVNode(NIcon,{component:GripLinesVertical},null),createTextVNode("最靠近")]}),createVNode(NButton,{secondary:!0,type:A.moveKeyType==="down"?"primary":"default",onClick:()=>A.moveKeyType="down"},{default:()=>[createVNode(NIcon,{component:LongArrowAltDown},null),createTextVNode("向下移调")]}),createVNode(NButton,{secondary:!0,type:A.moveKeyType==="up"?"primary":"default",onClick:()=>A.moveKeyType="up"},{default:()=>[createVNode(NIcon,{component:LongArrowAltUp},null),createTextVNode("向上移调")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("目标音调")]),createVNode(NGrid,{cols:5,yGap:8},_isSlot(ee=ABC_DATA.key.sort((se,ie)=>ie.step-se.step).map(se=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$6.btnItem,k.abc.key===se.value&&styles$6.btnItemActive],onClick:()=>ne(se)},[createVNode("div",{class:[styles$6.btnItemIcon]},[createVNode(TheIcon,{iconClassName:se.icon},null)]),createVNode("div",{class:styles$6.btnItemName},[se.name])])]})))?ee:{default:()=>[ee]})])}}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,value:b.speedShow,"onUpdate:value":ee=>b.speedShow=ee,trigger:"click",placement:"bottom",displayDirective:"show"},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_16.png")},null)]),createVNode("div",null,[createTextVNode("速度调整")])]),default:()=>createVNode(TheSpeed,{onChange:ee=>J(ee)},null)}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.staffShow,"onUpdate:show":ee=>b.staffShow=ee,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_17.png")},null)]),createVNode("div",null,[createTextVNode("谱面显示")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("乐谱大小")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:k.abcOptions.staffwidth===1200?"primary":"default",secondary:!0,onClick:()=>{k.abcOptions.staffwidth=1200,W()}},{default:()=>[createTextVNode("小")]}),createVNode(NButton,{type:k.abcOptions.staffwidth===800?"primary":"default",secondary:!0,onClick:()=>{k.abcOptions.staffwidth=800,W()}},{default:()=>[createTextVNode("中")]}),createVNode(NButton,{type:k.abcOptions.staffwidth===400?"primary":"default",secondary:!0,onClick:()=>{k.abcOptions.staffwidth=400,W()}},{default:()=>[createTextVNode("大")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:k.abcOptions.wrap.preferredMeasuresPerLine,"onUpdate:value":[ee=>k.abcOptions.wrap.preferredMeasuresPerLine=ee,()=>{W()}],placeholder:"请输入小节数"},null)]})])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.barShow,"onUpdate:show":ee=>b.barShow=ee,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_18.png")},null)]),createVNode("div",null,[createTextVNode("添加小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("添加方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:A.addMearseType==="pre"?"primary":"default",secondary:!0,onClick:()=>A.addMearseType="pre"},{default:()=>[createTextVNode("当前小节前")]}),createVNode(NButton,{type:A.addMearseType==="next"?"primary":"default",secondary:!0,onClick:()=>A.addMearseType="next"},{default:()=>[createTextVNode("当前小节后")]}),createVNode(NButton,{type:A.addMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>A.addMearseType="finish"},{default:()=>[createTextVNode("曲谱末尾")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:A.addMearseNumber,"onUpdate:value":ee=>A.addMearseNumber=ee,placeholder:"请输入小节数"},null),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>b.barShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>it()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode(NPopover,{class:styles$6.popupWrap,show:b.mearseDeleteShow,"onUpdate:show":ee=>b.mearseDeleteShow=ee,trigger:"click",placement:"bottom"},{trigger:()=>createVNode("div",{class:[styles$6.topBtn]},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_19.png")},null)]),createVNode("div",null,[createTextVNode("删除小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("删除方式")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:A.deleteMearseType==="ing"?"primary":"default",secondary:!0,onClick:()=>A.deleteMearseType="ing"},{default:()=>[createTextVNode("当前选中小节")]}),createVNode(NButton,{type:A.deleteMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>A.deleteMearseType="finish"},{default:()=>[createTextVNode("末尾空白小节")]})]}),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>b.mearseDeleteShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>$e()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{style:{marginLeft:"auto"},class:styles$6.topBtn,onClick:()=>H("reset")},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_20.png")},null)]),createVNode("div",null,[createTextVNode("重播")])]),createVNode("div",{class:styles$6.topBtn},[createVNode(NSpin,{show:A.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>H(A.playState?"pause":"play")},[createVNode("img",{style:{display:A.playState?"":"none"},class:styles$6.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:A.playState?"none":""},class:styles$6.topBtnIcon,src:getImage("icon_21.png")},null)])]}),createVNode("div",null,[A.playState?"暂停":"播放"])]),createVNode("div",{id:"selectMearesBtn",class:[styles$6.topBtn],onClick:()=>b.selectMearesShow=!b.selectMearesShow},[createVNode("div",{class:[styles$6.btnImg,b.selectMearesShow&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_22.png")},null)]),createVNode("div",null,[createTextVNode("选段")])]),createVNode("div",{class:[styles$6.topBtn],onClick:()=>{var ee;metronomeData.disable=!metronomeData.disable,(ee=metronomeData.metro)==null||ee.initPlayer()}},[createVNode("div",{class:[styles$6.btnImg,!metronomeData.disable&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_23.png")},null)]),createVNode("div",null,[createTextVNode("节拍器")])]),createVNode("div",{class:[styles$6.topBtn],onClick:()=>b.settingShow=!0},[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_24.png")},null)]),createVNode("div",null,[createTextVNode("设置")])])])]),createVNode("div",{class:styles$6.content},[createVNode("div",{class:styles$6.slide},[createVNode(Collapse,{modelValue:A.slide,"onUpdate:modelValue":ee=>A.slide=ee,elevation:!1,divider:!1},{default:()=>[createVNode(CollapseItem,{title:"音符时值",name:"note"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.types.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"type",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg,A.noteType===ee.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ee.icon},null)]),createVNode("div",null,[ee.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"note",value:"z"})},[createVNode("div",{class:[styles$6.btnImg,ut.value.content==="z"&&styles$6.btnImgActive]},[createVNode("img",{style:{width:"20px",height:"20px"},src:getImage("icon_rest.png")},null)]),createVNode("div",null,[createTextVNode("休止符")])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"segno",value:" "})},[createVNode("div",{class:[styles$6.btnImg,ut.value.segno===" "&&styles$6.btnImgActive]},null),createVNode("div",null,[createTextVNode("分割")])])])]}),createVNode(CollapseItem,{title:"拍号",name:"meter"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.meter.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"meter",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ee.icon},null)]),createVNode("div",null,[ee.name])]))])]}),createVNode(CollapseItem,{title:"力度记号",name:"dynamics"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.dynamics.slice(0,8).map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"dynamics",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg,ut.value.dynamics===ee.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ee.icon,size:["2em","2em"]},null)]),createVNode("div",null,[ee.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"dynamics",value:ABC_DATA.dynamics[8].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[8].value.includes(ut.value.dynamics)&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ABC_DATA.dynamics[8].icon,size:["2em","2em"]},null)]),createVNode("div",null,[ABC_DATA.dynamics[8].name])]),createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"dynamics",value:ABC_DATA.dynamics[9].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[9].value.includes(ut.value.dynamics)&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ABC_DATA.dynamics[9].icon,size:["2em","2em"]},null)]),createVNode("div",null,[ABC_DATA.dynamics[9].name])])])]}),createVNode(CollapseItem,{title:"反复与跳跃",name:"repeat"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.repeat.map(ee=>createVNode("div",{class:[styles$6.topBtn,styles$6.longTopBtn],onClick:()=>J({type:"repeat",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg,tt.value.repeat===ee.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ee.icon,size:["5em","1em"]},null)]),createVNode("div",null,[ee.name])]))])]}),createVNode(CollapseItem,{title:"小节线",name:"line"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.bar.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>{A.morePlay=!1,J({type:"barline",value:ee.value})}},[createVNode("div",{class:[styles$6.btnImg,tt.value.barline===ee.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:ee.icon,size:["2em","2em"]},null)]),createVNode("div",null,[ee.name])]))])]}),createVNode(CollapseItem,{title:"谱号",name:"clef"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.clef.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"clef",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ee.icon},null)]),createVNode("div",null,[ee.name])]))])]}),createVNode(CollapseItem,{title:"调号",name:"key"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.key.map(ee=>createVNode("div",{class:styles$6.topBtn,onClick:()=>J({type:"key",value:ee.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:ee.icon},null)]),createVNode("div",null,[ee.name])]))])]})]})]),createVNode("div",{class:styles$6.box},[createVNode("div",{class:styles$6.titleBox},[createVNode("div",{class:styles$6.titleName,style:{width:"50%",margin:"0 auto"}},[createVNode(NInput,{onKeyup:ee=>ee.stopPropagation(),value:A.musicName,"onUpdate:value":ee=>A.musicName=ee,placeholder:"曲谱名称"},null)]),createVNode("div",{style:{width:"30%",margin:"10px 0 0 auto"}},[createVNode(NInput,{onKeyup:ee=>ee.stopPropagation(),value:A.creator,"onUpdate:value":ee=>A.creator=ee,placeholder:"曲谱作者"},null)])]),createVNode("div",{id:"paper"},null),!A.loading&&createVNode(Keys,{show:!!A.active,instrumentCode:k.abc.subjectCode,onClick:ee=>J(ee)},null),createVNode("div",{id:"importRef"},null),createVNode("div",{id:"audio",style:{display:"none"}},null),A.loadingAudioSrouce&&createVNode("div",{class:styles$6.loading},[createVNode(NSpin,null,null)])])]),createVNode("div",{ref:Oe},null),createVNode(TheSetting,{show:b.settingShow,"onUpdate:show":ee=>b.settingShow=ee},null),A.selectMeasures.state&&createVNode(UseDraggable,{initialValue:{x:A.selectMeasures.x,y:A.selectMeasures.y},class:[styles$6.selectMearesBox,!b.selectMearesShow&&styles$6.selectMearesHidden]},{default:()=>[createVNode("div",{onKeyup:ee=>ee.stopPropagation()},[createVNode(NSpace,{justify:"space-between"},{default:()=>[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("输入小节范围")]),createVNode(NButton,{circle:!0,quaternary:!0,size:"small",onClick:()=>b.selectMearesShow=!1},{default:()=>[createVNode(NIcon,{size:16,component:createVNode(Close,null,null)},null)]})]}),createVNode(NSpace,{align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode("div",{class:styles$6.mearesInput},[createVNode(NInputNumber,{min:1,max:A.selectMeasures.max,bordered:!1,placeholder:"开始小节",showButton:!1,"onUpdate:value":ee=>Te(ee,"start")},null),createTextVNode("-"),createVNode(NInputNumber,{min:A.selectMeasures.start,max:A.selectMeasures.max,bordered:!1,placeholder:"结束小节",showButton:!1,"onUpdate:value":ee=>Te(ee,"end")},null)]),createVNode("div",{class:styles$6.topBtn},[createVNode(NSpin,{show:A.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>H(A.playState?"pause":"play")},[createVNode("img",{style:{display:A.playState?"":"none"},class:styles$6.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:A.playState?"none":""},class:styles$6.topBtnIcon,src:getImage("icon_21.png")},null)])]})])]})])]})]),createVNode("div",{class:styles$6.exportPng},[createVNode("div",{id:"exportPng"},null)])])}}),createItem="_createItem_65ahl_1",wrap="_wrap_65ahl_21",item="_item_65ahl_26",icon_29="_icon_29_65ahl_38",bottomBtn="_bottomBtn_65ahl_44",btn="_btn_65ahl_52",imgBox="_imgBox_65ahl_62",itemBottom="_itemBottom_65ahl_70",bottombox="_bottombox_65ahl_76",bottomLeft="_bottomLeft_65ahl_81",itemtitle="_itemtitle_65ahl_85",time="_time_65ahl_88",styles={createItem,wrap,item,icon_29,bottomBtn,btn,imgBox,itemBottom,bottombox,bottomLeft,itemtitle,time},Create=defineComponent({name:"Create",setup(){useRouter();const d=useDialog();console.log(storeData.user);const b=reactive({teacherId:storeData.user.id,page:1,keyword:"",rows:20}),A=reactive({list:[],addShow:!1,loading:!1,finish:!1,isCreated:!1}),w=async()=>{A.loading=!0;const $=await api_musicSheetCreationPage({...b});($==null?void 0:$.code)==200&&(A.isCreated&&(A.isCreated=!1,B($.data.rows[0])),A.list=A.list.concat($.data.rows),A.finish=$.data.rows.length<b.rows),A.loading=!1},C=()=>{b.page=1,A.finish=!1,A.list=[],w()},x=usePageVisibility();watch(x,$=>{$==="visible"&&C()});const S=$=>{ref(!0),d.warning({autoFocus:!1,class:"deleteDialog",title:"删除曲谱",content:()=>createVNode("div",{style:{paddingRight:"calc(var(--n-close-size) + 6px)"}},[createTextVNode("确认删除当前曲谱?")]),positiveText:"取消",positiveButtonProps:{type:"default"},negativeText:"删除",negativeButtonProps:{type:"primary",ghost:!1},onPositiveClick:()=>{},onNegativeClick:async()=>{await api_musicSheetCreationRemove($.id),C()}})},E=ref(),P=$=>{var I;((I=$.data)==null?void 0:I.api)=="reload"&&C()};onMounted(()=>{var $;w(),E.value&&new IntersectionObserver(D=>{if(D[0].isIntersecting){if(A.finish||A.loading)return;b.page++,w()}}).observe(($=E.value)==null?void 0:$.$el),window.addEventListener("message",I=>{P(I)})}),onUnmounted(()=>{window.removeEventListener("message",P)});const B=$=>{window.parent.postMessage({api:"notation_open",url:"".concat(location.origin,"/notation/#/?v=1.0.2&id=").concat($.id)},"*")},k=($,I)=>{$&&ABCJS.renderAbc(I,$,{selectTypes:!1,add_classes:!0})};return()=>createVNode("div",{class:styles.wrap},[createVNode(NSpace,{size:18},{default:()=>[createVNode("div",{class:styles.createItem,onClick:()=>A.addShow=!0},[createVNode("img",{src:getImage("icon_29.png")},null),createVNode("div",null,[createTextVNode("新建乐谱")])]),A.list.map(($,I)=>createVNode("div",{class:styles.item,onClick:()=>B($)},[createVNode("div",{class:styles.imgBox,id:"item_"+I},[createVNode("img",{src:getImage("icon_staff.png"),onLoad:()=>{k($.creationConfig,"item_"+I)}},null)]),createVNode("div",{class:styles.itemBottom},[createVNode("div",{class:styles.bottombox},[createVNode("div",{class:styles.bottomLeft},[createVNode("div",{class:styles.itemtitle},[createVNode("img",{class:styles.icon_29,src:getImage("icon_29_1.png")},null),createVNode("span",null,[$.name])]),createVNode("div",{class:styles.time},[$.updateTime])]),createVNode("img",{class:styles.bottomBtn,src:getImage("icon_29_3.png"),onClick:D=>{D.stopPropagation(),S($)}},null)])])]))]}),!A.finish&&createVNode(NSpace,{ref:E,justify:"center",style:{padding:"30px"}},{default:()=>[createVNode(NSpin,{size:"large"},null)]}),createVNode(TheCreate,{show:A.addShow,"onUpdate:show":$=>A.addShow=$,onCreate:()=>{A.addShow=!1,A.isCreated=!0,C()}},null)])}}),routes=[{path:"/create",component:Create},{path:"/",component:Home}],router=createRouter({history:createWebHashHistory(),routes}),inBrowser=typeof window<"u",supportTouch=inBrowser&&"ontouchstart"in window;let initiated=!1,eventTarget;const isMousedown=d=>d==="mousedown",isMousemove=d=>d==="mousemove",isMouseup=d=>d==="mouseup",isUpdateTarget=d=>isMousedown(d)||!eventTarget||eventTarget&&!eventTarget.dispatchEvent;function Touch(d,b,A){const{clientX:w,clientY:C,screenX:x,screenY:S,pageX:E,pageY:P}=A;this.identifier=b,this.target=d,this.clientX=w,this.clientY=C,this.screenX=x,this.screenY=S,this.pageX=E,this.pageY=P}function updateTouchList(d){const b=createTouchList();return b.push(new Touch(eventTarget,1,d)),b}function createTouchList(){const d=[];return d.item=function(b){return this[b]||null},d}function getActiveTouches(d){const{type:b}=d;return isMouseup(b)?createTouchList():updateTouchList(d)}function triggerTouch(d,b){const{altKey:A,ctrlKey:w,metaKey:C,shiftKey:x}=b,S=new Event(d,{bubbles:!0,cancelable:!0});S.altKey=A,S.ctrlKey=w,S.metaKey=C,S.shiftKey=x,S.touches=getActiveTouches(b),S.targetTouches=getActiveTouches(b),S.changedTouches=createTouchList(),eventTarget.dispatchEvent(S)}function onMouse(d,b){const{type:A,target:w}=d;initiated=isMousedown(A)?!0:isMouseup(A)?!1:initiated,!(isMousemove(A)&&!initiated)&&(isUpdateTarget(A)&&(eventTarget=w),triggerTouch(b,d),isMouseup(A)&&(eventTarget=null))}function createTouchEmulator(){window.addEventListener("mousedown",d=>onMouse(d,"touchstart"),!0),window.addEventListener("mousemove",d=>onMouse(d,"touchmove"),!0),window.addEventListener("mouseup",d=>onMouse(d,"touchend"),!0)}inBrowser&&!supportTouch&&createTouchEmulator();createApp(App).use(router).mount("#app");export{__vite_legacy_guard};