index-07019b64.js 1.7 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536
  1. var Pp=Object.defineProperty;var Bp=(d,g,b)=>g in d?Pp(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b;var yn=(d,g,b)=>(Bp(d,typeof g!="symbol"?g+"":g,b),b);function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1);async function*d(){}}(function(){const g=document.createElement("link").relList;if(g&&g.supports&&g.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))A(w);new MutationObserver(w=>{for(const C of w)if(C.type==="childList")for(const x of C.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&A(x)}).observe(document,{childList:!0,subtree:!0});function b(w){const C={};return w.integrity&&(C.integrity=w.integrity),w.referrerPolicy&&(C.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?C.credentials="include":w.crossOrigin==="anonymous"?C.credentials="omit":C.credentials="same-origin",C}function A(w){if(w.ep)return;w.ep=!0;const C=b(w);fetch(w.href,C)}})();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,g){const b=Object.create(null),A=d.split(",");for(let w=0;w<A.length;w++)b[A[w]]=!0;return g?w=>!!b[w.toLowerCase()]:w=>!!b[w]}function normalizeStyle(d){if(isArray$9(d)){const g={};for(let b=0;b<d.length;b++){const A=d[b],w=isString$2(A)?parseStringStyle(A):normalizeStyle(A);if(w)for(const C in w)g[C]=w[C]}return g}else{if(isString$2(d))return d;if(isObject$6(d))return d}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=new RegExp("\\/\\*.*?\\*\\/","gs");function parseStringStyle(d){const g={};return d.replace(styleCommentRE,"").split(listDelimiterRE).forEach(b=>{if(b){const A=b.split(propertyDelimiterRE);A.length>1&&(g[A[0].trim()]=A[1].trim())}}),g}function normalizeClass(d){let g="";if(isString$2(d))g=d;else if(isArray$9(d))for(let b=0;b<d.length;b++){const A=normalizeClass(d[b]);A&&(g+=A+" ")}else if(isObject$6(d))for(const b in d)d[b]&&(g+=b+" ");return g.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,g)=>g&&g.__v_isRef?replacer$1(d,g.value):isMap$1(g)?{[`Map(${g.size})`]:[...g.entries()].reduce((b,[A,w])=>(b[`${A} =>`]=w,b),{})}:isSet$1(g)?{[`Set(${g.size})`]:[...g.values()]}:isObject$6(g)&&!isArray$9(g)&&!isPlainObject$3(g)?String(g):g,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,g)=>{const b=d.indexOf(g);b>-1&&d.splice(b,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$2=(d,g)=>hasOwnProperty$f.call(d,g),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 g=Object.create(null);return b=>g[b]||(g[b]=d(b))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(d=>d.replace(camelizeRE$1,(g,b)=>b?b.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${capitalize(d)}`:""),hasChanged=(d,g)=>!Object.is(d,g),invokeArrayFns=(d,g)=>{for(let b=0;b<d.length;b++)d[b](g)},def=(d,g,b)=>{Object.defineProperty(d,g,{configurable:!0,enumerable:!1,value:b})},looseToNumber=d=>{const g=parseFloat(d);return isNaN(g)?d:g},toNumber$3=d=>{const g=isString$2(d)?Number(d):NaN;return isNaN(g)?d:g};let _globalThis;const getGlobalThis$1=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let activeEffectScope;class EffectScope{constructor(g=!1){this.detached=g,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!g&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(g){if(this._active){const b=activeEffectScope;try{return activeEffectScope=this,g()}finally{activeEffectScope=b}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(g){if(this._active){let b,A;for(b=0,A=this.effects.length;b<A;b++)this.effects[b].stop();for(b=0,A=this.cleanups.length;b<A;b++)this.cleanups[b]();if(this.scopes)for(b=0,A=this.scopes.length;b<A;b++)this.scopes[b].stop(!0);if(!this.detached&&this.parent&&!g){const w=this.parent.scopes.pop();w&&w!==this&&(this.parent.scopes[this.index]=w,w.index=this.index)}this.parent=void 0,this._active=!1}}}function recordEffectScope(d,g=activeEffectScope){g&&g.active&&g.effects.push(d)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(d){activeEffectScope&&activeEffectScope.cleanups.push(d)}const createDep=d=>{const g=new Set(d);return g.w=0,g.n=0,g},wasTracked=d=>(d.w&trackOpBit)>0,newTracked=d=>(d.n&trackOpBit)>0,initDepMarkers=({deps:d})=>{if(d.length)for(let g=0;g<d.length;g++)d[g].w|=trackOpBit},finalizeDepMarkers=d=>{const{deps:g}=d;if(g.length){let b=0;for(let A=0;A<g.length;A++){const w=g[A];wasTracked(w)&&!newTracked(w)?w.delete(d):g[b++]=w,w.w&=~trackOpBit,w.n&=~trackOpBit}g.length=b}},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(g,b=null,A){this.fn=g,this.scheduler=b,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,A)}run(){if(!this.active)return this.fn();let g=activeEffect,b=shouldTrack;for(;g;){if(g===this)return;g=g.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=b,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:g}=d;if(g.length){for(let b=0;b<g.length;b++)g[b].delete(d);g.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,g,b){if(shouldTrack&&activeEffect){let A=targetMap.get(d);A||targetMap.set(d,A=new Map);let w=A.get(b);w||A.set(b,w=createDep()),trackEffects(w)}}function trackEffects(d,g){let b=!1;effectTrackDepth<=maxMarkerBits?newTracked(d)||(d.n|=trackOpBit,b=!wasTracked(d)):b=!d.has(activeEffect),b&&(d.add(activeEffect),activeEffect.deps.push(d))}function trigger$1(d,g,b,A,w,C){const x=targetMap.get(d);if(!x)return;let S=[];if(g==="clear")S=[...x.values()];else if(b==="length"&&isArray$9(d)){const E=Number(A);x.forEach((B,$)=>{($==="length"||$>=E)&&S.push(B)})}else switch(b!==void 0&&S.push(x.get(b)),g){case"add":isArray$9(d)?isIntegerKey(b)&&S.push(x.get("length")):(S.push(x.get(ITERATE_KEY)),isMap$1(d)&&S.push(x.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$9(d)||(S.push(x.get(ITERATE_KEY)),isMap$1(d)&&S.push(x.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(d)&&S.push(x.get(ITERATE_KEY));break}if(S.length===1)S[0]&&triggerEffects(S[0]);else{const E=[];for(const B of S)B&&E.push(...B);triggerEffects(createDep(E))}}function triggerEffects(d,g){const b=isArray$9(d)?d:[...d];for(const A of b)A.computed&&triggerEffect(A);for(const A of b)A.computed||triggerEffect(A)}function triggerEffect(d,g){(d!==activeEffect||d.allowRecurse)&&(d.scheduler?d.scheduler():d.run())}function getDepFromReactive(d,g){var b;return(b=targetMap.get(d))===null||b===void 0?void 0:b.get(g)}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(g=>{d[g]=function(...b){const A=toRaw(this);for(let C=0,x=this.length;C<x;C++)track(A,"get",C+"");const w=A[g](...b);return w===-1||w===!1?A[g](...b.map(toRaw)):w}}),["push","pop","shift","unshift","splice"].forEach(g=>{d[g]=function(...b){pauseTracking();const A=toRaw(this)[g].apply(this,b);return resetTracking(),A}}),d}function hasOwnProperty$e(d){const g=toRaw(this);return track(g,"has",d),g.hasOwnProperty(d)}function createGetter(d=!1,g=!1){return function(A,w,C){if(w==="__v_isReactive")return!d;if(w==="__v_isReadonly")return d;if(w==="__v_isShallow")return g;if(w==="__v_raw"&&C===(d?g?shallowReadonlyMap:readonlyMap:g?shallowReactiveMap:reactiveMap).get(A))return A;const x=isArray$9(A);if(!d){if(x&&hasOwn$2(arrayInstrumentations,w))return Reflect.get(arrayInstrumentations,w,C);if(w==="hasOwnProperty")return hasOwnProperty$e}const S=Reflect.get(A,w,C);return(isSymbol$2(w)?builtInSymbols.has(w):isNonTrackableKeys(w))||(d||track(A,"get",w),g)?S:isRef(S)?x&&isIntegerKey(w)?S:S.value:isObject$6(S)?d?readonly(S):reactive(S):S}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(d=!1){return function(b,A,w,C){let x=b[A];if(isReadonly(x)&&isRef(x)&&!isRef(w))return!1;if(!d&&(!isShallow(w)&&!isReadonly(w)&&(x=toRaw(x),w=toRaw(w)),!isArray$9(b)&&isRef(x)&&!isRef(w)))return x.value=w,!0;const S=isArray$9(b)&&isIntegerKey(A)?Number(A)<b.length:hasOwn$2(b,A),E=Reflect.set(b,A,w,C);return b===toRaw(C)&&(S?hasChanged(w,x)&&trigger$1(b,"set",A,w):trigger$1(b,"add",A,w)),E}}function deleteProperty(d,g){const b=hasOwn$2(d,g);d[g];const A=Reflect.deleteProperty(d,g);return A&&b&&trigger$1(d,"delete",g,void 0),A}function has$1$1(d,g){const b=Reflect.has(d,g);return(!isSymbol$2(g)||!builtInSymbols.has(g))&&track(d,"has",g),b}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,g){return!0},deleteProperty(d,g){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=d=>d,getProto$1=d=>Reflect.getPrototypeOf(d);function get$2(d,g,b=!1,A=!1){d=d.__v_raw;const w=toRaw(d),C=toRaw(g);b||(g!==C&&track(w,"get",g),track(w,"get",C));const{has:x}=getProto$1(w),S=A?toShallow:b?toReadonly:toReactive;if(x.call(w,g))return S(d.get(g));if(x.call(w,C))return S(d.get(C));d!==w&&d.get(g)}function has$4(d,g=!1){const b=this.__v_raw,A=toRaw(b),w=toRaw(d);return g||(d!==w&&track(A,"has",d),track(A,"has",w)),d===w?b.has(d):b.has(d)||b.has(w)}function size$1(d,g=!1){return d=d.__v_raw,!g&&track(toRaw(d),"iterate",ITERATE_KEY),Reflect.get(d,"size",d)}function add(d){d=toRaw(d);const g=toRaw(this);return getProto$1(g).has.call(g,d)||(g.add(d),trigger$1(g,"add",d,d)),this}function set(d,g){g=toRaw(g);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));const x=w.call(b,d);return b.set(d,g),C?hasChanged(g,x)&&trigger$1(b,"set",d,g):trigger$1(b,"add",d,g),this}function deleteEntry(d){const g=toRaw(this),{has:b,get:A}=getProto$1(g);let w=b.call(g,d);w||(d=toRaw(d),w=b.call(g,d)),A&&A.call(g,d);const C=g.delete(d);return w&&trigger$1(g,"delete",d,void 0),C}function clear(){const d=toRaw(this),g=d.size!==0,b=d.clear();return g&&trigger$1(d,"clear",void 0,void 0),b}function createForEach(d,g){return function(A,w){const C=this,x=C.__v_raw,S=toRaw(x),E=g?toShallow:d?toReadonly:toReactive;return!d&&track(S,"iterate",ITERATE_KEY),x.forEach((B,$)=>A.call(w,E(B),E($),C))}}function createIterableMethod(d,g,b){return function(...A){const w=this.__v_raw,C=toRaw(w),x=isMap$1(C),S=d==="entries"||d===Symbol.iterator&&x,E=d==="keys"&&x,B=w[d](...A),$=b?toShallow:g?toReadonly:toReactive;return!g&&track(C,"iterate",E?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:P,done:k}=B.next();return k?{value:P,done:k}:{value:S?[$(P[0]),$(P[1])]:$(P),done:k}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(d){return function(...g){return d==="delete"?!1:this}}function createInstrumentations(){const d={get(C){return get$2(this,C)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},g={get(C){return get$2(this,C,!1,!0)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},b={get(C){return get$2(this,C,!0)},get size(){return size$1(this,!0)},has(C){return has$4.call(this,C,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},A={get(C){return get$2(this,C,!0,!0)},get size(){return size$1(this,!0)},has(C){return has$4.call(this,C,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(C=>{d[C]=createIterableMethod(C,!1,!1),b[C]=createIterableMethod(C,!0,!1),g[C]=createIterableMethod(C,!1,!0),A[C]=createIterableMethod(C,!0,!0)}),[d,b,g,A]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(d,g){const b=g?d?shallowReadonlyInstrumentations:shallowInstrumentations:d?readonlyInstrumentations:mutableInstrumentations;return(A,w,C)=>w==="__v_isReactive"?!d:w==="__v_isReadonly"?d:w==="__v_raw"?A:Reflect.get(hasOwn$2(b,w)&&w in A?b:A,w,C)}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,g,b,A,w){if(!isObject$6(d)||d.__v_raw&&!(g&&d.__v_isReactive))return d;const C=w.get(d);if(C)return C;const x=getTargetType(d);if(x===0)return d;const S=new Proxy(d,x===2?A:b);return w.set(d,S),S}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 g=d&&d.__v_raw;return g?toRaw(g):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,g){d=toRaw(d);const b=d.dep;b&&triggerEffects(b)}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,g){return isRef(d)?d:new RefImpl(d,g)}class RefImpl{constructor(g,b){this.__v_isShallow=b,this.dep=void 0,this.__v_isRef=!0,this._rawValue=b?g:toRaw(g),this._value=b?g:toReactive(g)}get value(){return trackRefValue(this),this._value}set value(g){const b=this.__v_isShallow||isShallow(g)||isReadonly(g);g=b?g:toRaw(g),hasChanged(g,this._rawValue)&&(this._rawValue=g,this._value=b?g:toReactive(g),triggerRefValue(this))}}function unref(d){return isRef(d)?d.value:d}const shallowUnwrapHandlers={get:(d,g,b)=>unref(Reflect.get(d,g,b)),set:(d,g,b,A)=>{const w=d[g];return isRef(w)&&!isRef(b)?(w.value=b,!0):Reflect.set(d,g,b,A)}};function proxyRefs(d){return isReactive(d)?d:new Proxy(d,shallowUnwrapHandlers)}class CustomRefImpl{constructor(g){this.dep=void 0,this.__v_isRef=!0;const{get:b,set:A}=g(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=b,this._set=A}get value(){return this._get()}set value(g){this._set(g)}}function customRef(d){return new CustomRefImpl(d)}function toRefs$1(d){const g=isArray$9(d)?new Array(d.length):{};for(const b in d)g[b]=toRef$1(d,b);return g}class ObjectRefImpl{constructor(g,b,A){this._object=g,this._key=b,this._defaultValue=A,this.__v_isRef=!0}get value(){const g=this._object[this._key];return g===void 0?this._defaultValue:g}set value(g){this._object[this._key]=g}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function toRef$1(d,g,b){const A=d[g];return isRef(A)?A:new ObjectRefImpl(d,g,b)}var _a$1;class ComputedRefImpl{constructor(g,b,A,w){this._setter=b,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(g,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!w,this.__v_isReadonly=A}get value(){const g=toRaw(this);return trackRefValue(g),(g._dirty||!g._cacheable)&&(g._dirty=!1,g._value=g.effect.run()),g._value}set value(g){this._setter(g)}}_a$1="__v_isReadonly";function computed$1(d,g,b=!1){let A,w;const C=isFunction$5(d);return C?(A=d,w=NOOP):(A=d.get,w=d.set),new ComputedRefImpl(A,w,C||!w,b)}function warn$4(d,...g){}function callWithErrorHandling(d,g,b,A){let w;try{w=A?d(...A):d()}catch(C){handleError(C,g,b)}return w}function callWithAsyncErrorHandling(d,g,b,A){if(isFunction$5(d)){const C=callWithErrorHandling(d,g,b,A);return C&&isPromise$1(C)&&C.catch(x=>{handleError(x,g,b)}),C}const w=[];for(let C=0;C<d.length;C++)w.push(callWithAsyncErrorHandling(d[C],g,b,A));return w}function handleError(d,g,b,A=!0){const w=g?g.vnode:null;if(g){let C=g.parent;const x=g.proxy,S=b;for(;C;){const B=C.ec;if(B){for(let $=0;$<B.length;$++)if(B[$](d,x,S)===!1)return}C=C.parent}const E=g.appContext.config.errorHandler;if(E){callWithErrorHandling(E,null,10,[d,x,S]);return}}logError(d,b,w,A)}function logError(d,g,b,A=!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 g=currentFlushPromise||resolvedPromise;return d?g.then(this?d.bind(this):d):g}function findInsertionIndex(d){let g=flushIndex+1,b=queue$2.length;for(;g<b;){const A=g+b>>>1;getId(queue$2[A])<d?g=A+1:b=A}return g}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 g=queue$2.indexOf(d);g>flushIndex&&queue$2.splice(g,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,g=isFlushing?flushIndex+1:0){for(;g<queue$2.length;g++){const b=queue$2[g];b&&b.pre&&(queue$2.splice(g,1),g--,b())}}function flushPostFlushCbs(d){if(pendingPostFlushCbs.length){const g=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...g);return}for(activePostFlushCbs=g,activePostFlushCbs.sort((b,A)=>getId(b)-getId(A)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=d=>d.id==null?1/0:d.id,comparator=(d,g)=>{const b=getId(d)-getId(g);if(b===0){if(d.pre&&!g.pre)return-1;if(g.pre&&!d.pre)return 1}return b};function flushJobs(d){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);const g=NOOP;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const b=queue$2[flushIndex];b&&b.active!==!1&&callWithErrorHandling(b,null,14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(d,g,...b){if(d.isUnmounted)return;const A=d.vnode.props||EMPTY_OBJ;let w=b;const C=g.startsWith("update:"),x=C&&g.slice(7);if(x&&x in A){const $=`${x==="modelValue"?"model":x}Modifiers`,{number:P,trim:k}=A[$]||EMPTY_OBJ;k&&(w=b.map(M=>isString$2(M)?M.trim():M)),P&&(w=b.map(looseToNumber))}let S,E=A[S=toHandlerKey(g)]||A[S=toHandlerKey(camelize$1(g))];!E&&C&&(E=A[S=toHandlerKey(hyphenate(g))]),E&&callWithAsyncErrorHandling(E,d,6,w);const B=A[S+"Once"];if(B){if(!d.emitted)d.emitted={};else if(d.emitted[S])return;d.emitted[S]=!0,callWithAsyncErrorHandling(B,d,6,w)}}function normalizeEmitsOptions(d,g,b=!1){const A=g.emitsCache,w=A.get(d);if(w!==void 0)return w;const C=d.emits;let x={},S=!1;if(!isFunction$5(d)){const E=B=>{const $=normalizeEmitsOptions(B,g,!0);$&&(S=!0,extend$2(x,$))};!b&&g.mixins.length&&g.mixins.forEach(E),d.extends&&E(d.extends),d.mixins&&d.mixins.forEach(E)}return!C&&!S?(isObject$6(d)&&A.set(d,null),null):(isArray$9(C)?C.forEach(E=>x[E]=null):extend$2(x,C),isObject$6(d)&&A.set(d,x),x)}function isEmitListener(d,g){return!d||!isOn(g)?!1:(g=g.slice(2).replace(/Once$/,""),hasOwn$2(d,g[0].toLowerCase()+g.slice(1))||hasOwn$2(d,hyphenate(g))||hasOwn$2(d,g))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(d){const g=currentRenderingInstance;return currentRenderingInstance=d,currentScopeId=d&&d.type.__scopeId||null,g}function withCtx(d,g=currentRenderingInstance,b){if(!g||d._n)return d;const A=(...w)=>{A._d&&setBlockTracking(-1);const C=setCurrentRenderingInstance(g);let x;try{x=d(...w)}finally{setCurrentRenderingInstance(C),A._d&&setBlockTracking(1)}return x};return A._n=!0,A._c=!0,A._d=!0,A}function markAttrsAccessed(){}function renderComponentRoot(d){const{type:g,vnode:b,proxy:A,withProxy:w,props:C,propsOptions:[x],slots:S,attrs:E,emit:B,render:$,renderCache:P,data:k,setupState:M,ctx:R,inheritAttrs:F}=d;let L,z;const U=setCurrentRenderingInstance(d);try{if(b.shapeFlag&4){const V=w||A;L=normalizeVNode($.call(V,V,P,C,M,k,R)),z=E}else{const V=g;L=normalizeVNode(V.length>1?V(C,{attrs:E,slots:S,emit:B}):V(C,null)),z=g.props?E:getFunctionalFallthrough(E)}}catch(V){blockStack.length=0,handleError(V,d,1),L=createVNode(Comment)}let W=L;if(z&&F!==!1){const V=Object.keys(z),{shapeFlag:Q}=W;V.length&&Q&7&&(x&&V.some(isModelListener)&&(z=filterModelListeners(z,x)),W=cloneVNode(W,z))}return b.dirs&&(W=cloneVNode(W),W.dirs=W.dirs?W.dirs.concat(b.dirs):b.dirs),b.transition&&(W.transition=b.transition),L=W,setCurrentRenderingInstance(U),L}const getFunctionalFallthrough=d=>{let g;for(const b in d)(b==="class"||b==="style"||isOn(b))&&((g||(g={}))[b]=d[b]);return g},filterModelListeners=(d,g)=>{const b={};for(const A in d)(!isModelListener(A)||!(A.slice(9)in g))&&(b[A]=d[A]);return b};function shouldUpdateComponent(d,g,b){const{props:A,children:w,component:C}=d,{props:x,children:S,patchFlag:E}=g,B=C.emitsOptions;if(g.dirs||g.transition)return!0;if(b&&E>=0){if(E&1024)return!0;if(E&16)return A?hasPropsChanged(A,x,B):!!x;if(E&8){const $=g.dynamicProps;for(let P=0;P<$.length;P++){const k=$[P];if(x[k]!==A[k]&&!isEmitListener(B,k))return!0}}}else return(w||S)&&(!S||!S.$stable)?!0:A===x?!1:A?x?hasPropsChanged(A,x,B):!0:!!x;return!1}function hasPropsChanged(d,g,b){const A=Object.keys(g);if(A.length!==Object.keys(d).length)return!0;for(let w=0;w<A.length;w++){const C=A[w];if(g[C]!==d[C]&&!isEmitListener(b,C))return!0}return!1}function updateHOCHostEl({vnode:d,parent:g},b){for(;g&&g.subTree===d;)(d=g.vnode).el=b,g=g.parent}const isSuspense=d=>d.__isSuspense;function queueEffectWithSuspense(d,g){g&&g.pendingBranch?isArray$9(d)?g.effects.push(...d):g.effects.push(d):queuePostFlushCb(d)}function provide(d,g){if(currentInstance){let b=currentInstance.provides;const A=currentInstance.parent&&currentInstance.parent.provides;A===b&&(b=currentInstance.provides=Object.create(A)),b[d]=g}}function inject(d,g,b=!1){const A=currentInstance||currentRenderingInstance;if(A){const w=A.parent==null?A.vnode.appContext&&A.vnode.appContext.provides:A.parent.provides;if(w&&d in w)return w[d];if(arguments.length>1)return b&&isFunction$5(g)?g.call(A.proxy):g}}function watchEffect(d,g){return doWatch(d,null,g)}const INITIAL_WATCHER_VALUE={};function watch(d,g,b){return doWatch(d,g,b)}function doWatch(d,g,{immediate:b,deep:A,flush:w,onTrack:C,onTrigger:x}=EMPTY_OBJ){const S=getCurrentScope()===(currentInstance==null?void 0:currentInstance.scope)?currentInstance:null;let E,B=!1,$=!1;if(isRef(d)?(E=()=>d.value,B=isShallow(d)):isReactive(d)?(E=()=>d,A=!0):isArray$9(d)?($=!0,B=d.some(W=>isReactive(W)||isShallow(W)),E=()=>d.map(W=>{if(isRef(W))return W.value;if(isReactive(W))return traverse(W);if(isFunction$5(W))return callWithErrorHandling(W,S,2)})):isFunction$5(d)?g?E=()=>callWithErrorHandling(d,S,2):E=()=>{if(!(S&&S.isUnmounted))return P&&P(),callWithAsyncErrorHandling(d,S,3,[k])}:E=NOOP,g&&A){const W=E;E=()=>traverse(W())}let P,k=W=>{P=z.onStop=()=>{callWithErrorHandling(W,S,4)}},M;if(isInSSRComponentSetup)if(k=NOOP,g?b&&callWithAsyncErrorHandling(g,S,3,[E(),$?[]:void 0,k]):E(),w==="sync"){const W=useSSRContext();M=W.__watcherHandles||(W.__watcherHandles=[])}else return NOOP;let R=$?new Array(d.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const F=()=>{if(z.active)if(g){const W=z.run();(A||B||($?W.some((V,Q)=>hasChanged(V,R[Q])):hasChanged(W,R)))&&(P&&P(),callWithAsyncErrorHandling(g,S,3,[W,R===INITIAL_WATCHER_VALUE?void 0:$&&R[0]===INITIAL_WATCHER_VALUE?[]:R,k]),R=W)}else z.run()};F.allowRecurse=!!g;let L;w==="sync"?L=F:w==="post"?L=()=>queuePostRenderEffect(F,S&&S.suspense):(F.pre=!0,S&&(F.id=S.uid),L=()=>queueJob(F));const z=new ReactiveEffect(E,L);g?b?F():R=z.run():w==="post"?queuePostRenderEffect(z.run.bind(z),S&&S.suspense):z.run();const U=()=>{z.stop(),S&&S.scope&&remove$6(S.scope.effects,z)};return M&&M.push(U),U}function instanceWatch(d,g,b){const A=this.proxy,w=isString$2(d)?d.includes(".")?createPathGetter(A,d):()=>A[d]:d.bind(A,A);let C;isFunction$5(g)?C=g:(C=g.handler,b=g);const x=currentInstance;setCurrentInstance(this);const S=doWatch(w,C.bind(A),b);return x?setCurrentInstance(x):unsetCurrentInstance(),S}function createPathGetter(d,g){const b=g.split(".");return()=>{let A=d;for(let w=0;w<b.length&&A;w++)A=A[b[w]];return A}}function traverse(d,g){if(!isObject$6(d)||d.__v_skip||(g=g||new Set,g.has(d)))return d;if(g.add(d),isRef(d))traverse(d.value,g);else if(isArray$9(d))for(let b=0;b<d.length;b++)traverse(d[b],g);else if(isSet$1(d)||isMap$1(d))d.forEach(b=>{traverse(b,g)});else if(isPlainObject$3(d))for(const b in d)traverse(d[b],g);return d}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],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(d,{slots:g}){const b=getCurrentInstance(),A=useTransitionState();let w;return()=>{const C=g.default&&getTransitionRawChildren(g.default(),!0);if(!C||!C.length)return;let x=C[0];if(C.length>1){for(const F of C)if(F.type!==Comment){x=F;break}}const S=toRaw(d),{mode:E}=S;if(A.isLeaving)return emptyPlaceholder(x);const B=getKeepAliveChild(x);if(!B)return emptyPlaceholder(x);const $=resolveTransitionHooks(B,S,A,b);setTransitionHooks(B,$);const P=b.subTree,k=P&&getKeepAliveChild(P);let M=!1;const{getTransitionKey:R}=B.type;if(R){const F=R();w===void 0?w=F:F!==w&&(w=F,M=!0)}if(k&&k.type!==Comment&&(!isSameVNodeType(B,k)||M)){const F=resolveTransitionHooks(k,S,A,b);if(setTransitionHooks(k,F),E==="out-in")return A.isLeaving=!0,F.afterLeave=()=>{A.isLeaving=!1,b.update.active!==!1&&b.update()},emptyPlaceholder(x);E==="in-out"&&B.type!==Comment&&(F.delayLeave=(L,z,U)=>{const W=getLeavingNodesForType(A,k);W[String(k.key)]=k,L._leaveCb=()=>{z(),L._leaveCb=void 0,delete $.delayedLeave},$.delayedLeave=U})}return x}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(d,g){const{leavingVNodes:b}=d;let A=b.get(g.type);return A||(A=Object.create(null),b.set(g.type,A)),A}function resolveTransitionHooks(d,g,b,A){const{appear:w,mode:C,persisted:x=!1,onBeforeEnter:S,onEnter:E,onAfterEnter:B,onEnterCancelled:$,onBeforeLeave:P,onLeave:k,onAfterLeave:M,onLeaveCancelled:R,onBeforeAppear:F,onAppear:L,onAfterAppear:z,onAppearCancelled:U}=g,W=String(d.key),V=getLeavingNodesForType(b,d),Q=(X,J)=>{X&&callWithAsyncErrorHandling(X,A,9,J)},K=(X,J)=>{const re=J[1];Q(X,J),isArray$9(X)?X.every(fe=>fe.length<=1)&&re():X.length<=1&&re()},G={mode:C,persisted:x,beforeEnter(X){let J=S;if(!b.isMounted)if(w)J=F||S;else return;X._leaveCb&&X._leaveCb(!0);const re=V[W];re&&isSameVNodeType(d,re)&&re.el._leaveCb&&re.el._leaveCb(),Q(J,[X])},enter(X){let J=E,re=B,fe=$;if(!b.isMounted)if(w)J=L||E,re=z||B,fe=U||$;else return;let Z=!1;const ie=X._enterCb=ce=>{Z||(Z=!0,ce?Q(fe,[X]):Q(re,[X]),G.delayedLeave&&G.delayedLeave(),X._enterCb=void 0)};J?K(J,[X,ie]):ie()},leave(X,J){const re=String(d.key);if(X._enterCb&&X._enterCb(!0),b.isUnmounting)return J();Q(P,[X]);let fe=!1;const Z=X._leaveCb=ie=>{fe||(fe=!0,J(),ie?Q(R,[X]):Q(M,[X]),X._leaveCb=void 0,V[re]===d&&delete V[re])};V[re]=d,k?K(k,[X,Z]):Z()},clone(X){return resolveTransitionHooks(X,g,b,A)}};return G}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,g){d.shapeFlag&6&&d.component?setTransitionHooks(d.component.subTree,g):d.shapeFlag&128?(d.ssContent.transition=g.clone(d.ssContent),d.ssFallback.transition=g.clone(d.ssFallback)):d.transition=g}function getTransitionRawChildren(d,g=!1,b){let A=[],w=0;for(let C=0;C<d.length;C++){let x=d[C];const S=b==null?x.key:String(b)+String(x.key!=null?x.key:C);x.type===Fragment?(x.patchFlag&128&&w++,A=A.concat(getTransitionRawChildren(x.children,g,S))):(g||x.type!==Comment)&&A.push(S!=null?cloneVNode(x,{key:S}):x)}if(w>1)for(let C=0;C<A.length;C++)A[C].patchFlag=-2;return A}function defineComponent(d){return isFunction$5(d)?{setup:d,name:d.name}:d}const isAsyncWrapper=d=>!!d.type.__asyncLoader,isKeepAlive=d=>d.type.__isKeepAlive;function onActivated(d,g){registerKeepAliveHook(d,"a",g)}function onDeactivated(d,g){registerKeepAliveHook(d,"da",g)}function registerKeepAliveHook(d,g,b=currentInstance){const A=d.__wdc||(d.__wdc=()=>{let w=b;for(;w;){if(w.isDeactivated)return;w=w.parent}return d()});if(injectHook(g,A,b),b){let w=b.parent;for(;w&&w.parent;)isKeepAlive(w.parent.vnode)&&injectToKeepAliveRoot(A,g,b,w),w=w.parent}}function injectToKeepAliveRoot(d,g,b,A){const w=injectHook(g,d,A,!0);onUnmounted(()=>{remove$6(A[g],w)},b)}function injectHook(d,g,b=currentInstance,A=!1){if(b){const w=b[d]||(b[d]=[]),C=g.__weh||(g.__weh=(...x)=>{if(b.isUnmounted)return;pauseTracking(),setCurrentInstance(b);const S=callWithAsyncErrorHandling(g,b,d,x);return unsetCurrentInstance(),resetTracking(),S});return A?w.unshift(C):w.push(C),C}}const createHook=d=>(g,b=currentInstance)=>(!isInSSRComponentSetup||d==="sp")&&injectHook(d,(...A)=>g(...A),b),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,g=currentInstance){injectHook("ec",d,g)}function withDirectives(d,g){const b=currentRenderingInstance;if(b===null)return d;const A=getExposeProxy(b)||b.proxy,w=d.dirs||(d.dirs=[]);for(let C=0;C<g.length;C++){let[x,S,E,B=EMPTY_OBJ]=g[C];x&&(isFunction$5(x)&&(x={mounted:x,updated:x}),x.deep&&traverse(S),w.push({dir:x,instance:A,value:S,oldValue:void 0,arg:E,modifiers:B}))}return d}function invokeDirectiveHook(d,g,b,A){const w=d.dirs,C=g&&g.dirs;for(let x=0;x<w.length;x++){const S=w[x];C&&(S.oldValue=C[x].value);let E=S.dir[A];E&&(pauseTracking(),callWithAsyncErrorHandling(E,b,8,[d.el,S,d,g]),resetTracking())}}const COMPONENTS="components";function resolveComponent(d,g){return resolveAsset(COMPONENTS,d,!0,g)||d}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveDynamicComponent(d){return isString$2(d)?resolveAsset(COMPONENTS,d,!1)||d:d||NULL_DYNAMIC_COMPONENT}function resolveAsset(d,g,b=!0,A=!1){const w=currentRenderingInstance||currentInstance;if(w){const C=w.type;if(d===COMPONENTS){const S=getComponentName(C,!1);if(S&&(S===g||S===camelize$1(g)||S===capitalize(camelize$1(g))))return C}const x=resolve(w[d]||C[d],g)||resolve(w.appContext[d],g);return!x&&A?C:x}}function resolve(d,g){return d&&(d[g]||d[camelize$1(g)]||d[capitalize(camelize$1(g))])}function renderSlot(d,g,b={},A,w){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return g!=="default"&&(b.name=g),createVNode("slot",b,A&&A());let C=d[g];C&&C._c&&(C._d=!1),openBlock();const x=C&&ensureValidVNode$1(C(b)),S=createBlock(Fragment,{key:b.key||x&&x.key||`_${g}`},x||(A?A():[]),x&&d._===1?64:-2);return!w&&S.scopeId&&(S.slotScopeIds=[S.scopeId+"-s"]),C&&C._c&&(C._d=!0),S}function ensureValidVNode$1(d){return d.some(g=>isVNode(g)?!(g.type===Comment||g.type===Fragment&&!ensureValidVNode$1(g.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,g)=>d!==EMPTY_OBJ&&!d.__isScriptSetup&&hasOwn$2(d,g),PublicInstanceProxyHandlers={get({_:d},g){const{ctx:b,setupState:A,data:w,props:C,accessCache:x,type:S,appContext:E}=d;let B;if(g[0]!=="$"){const M=x[g];if(M!==void 0)switch(M){case 1:return A[g];case 2:return w[g];case 4:return b[g];case 3:return C[g]}else{if(hasSetupBinding(A,g))return x[g]=1,A[g];if(w!==EMPTY_OBJ&&hasOwn$2(w,g))return x[g]=2,w[g];if((B=d.propsOptions[0])&&hasOwn$2(B,g))return x[g]=3,C[g];if(b!==EMPTY_OBJ&&hasOwn$2(b,g))return x[g]=4,b[g];shouldCacheAccess&&(x[g]=0)}}const $=publicPropertiesMap[g];let P,k;if($)return g==="$attrs"&&track(d,"get",g),$(d);if((P=S.__cssModules)&&(P=P[g]))return P;if(b!==EMPTY_OBJ&&hasOwn$2(b,g))return x[g]=4,b[g];if(k=E.config.globalProperties,hasOwn$2(k,g))return k[g]},set({_:d},g,b){const{data:A,setupState:w,ctx:C}=d;return hasSetupBinding(w,g)?(w[g]=b,!0):A!==EMPTY_OBJ&&hasOwn$2(A,g)?(A[g]=b,!0):hasOwn$2(d.props,g)||g[0]==="$"&&g.slice(1)in d?!1:(C[g]=b,!0)},has({_:{data:d,setupState:g,accessCache:b,ctx:A,appContext:w,propsOptions:C}},x){let S;return!!b[x]||d!==EMPTY_OBJ&&hasOwn$2(d,x)||hasSetupBinding(g,x)||(S=C[0])&&hasOwn$2(S,x)||hasOwn$2(A,x)||hasOwn$2(publicPropertiesMap,x)||hasOwn$2(w.config.globalProperties,x)},defineProperty(d,g,b){return b.get!=null?d._.accessCache[g]=0:hasOwn$2(b,"value")&&this.set(d,g,b.value,null),Reflect.defineProperty(d,g,b)}};let shouldCacheAccess=!0;function applyOptions(d){const g=resolveMergedOptions(d),b=d.proxy,A=d.ctx;shouldCacheAccess=!1,g.beforeCreate&&callHook$1(g.beforeCreate,d,"bc");const{data:w,computed:C,methods:x,watch:S,provide:E,inject:B,created:$,beforeMount:P,mounted:k,beforeUpdate:M,updated:R,activated:F,deactivated:L,beforeDestroy:z,beforeUnmount:U,destroyed:W,unmounted:V,render:Q,renderTracked:K,renderTriggered:G,errorCaptured:X,serverPrefetch:J,expose:re,inheritAttrs:fe,components:Z,directives:ie,filters:ce}=g;if(B&&resolveInjections(B,A,null,d.appContext.config.unwrapInjectedRef),x)for(const te in x){const ue=x[te];isFunction$5(ue)&&(A[te]=ue.bind(b))}if(w){const te=w.call(b,b);isObject$6(te)&&(d.data=reactive(te))}if(shouldCacheAccess=!0,C)for(const te in C){const ue=C[te],ae=isFunction$5(ue)?ue.bind(b,b):isFunction$5(ue.get)?ue.get.bind(b,b):NOOP,ye=!isFunction$5(ue)&&isFunction$5(ue.set)?ue.set.bind(b):NOOP,Oe=computed({get:ae,set:ye});Object.defineProperty(A,te,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Ye=>Oe.value=Ye})}if(S)for(const te in S)createWatcher(S[te],A,b,te);if(E){const te=isFunction$5(E)?E.call(b):E;Reflect.ownKeys(te).forEach(ue=>{provide(ue,te[ue])})}$&&callHook$1($,d,"c");function ne(te,ue){isArray$9(ue)?ue.forEach(ae=>te(ae.bind(b))):ue&&te(ue.bind(b))}if(ne(onBeforeMount,P),ne(onMounted,k),ne(onBeforeUpdate,M),ne(onUpdated,R),ne(onActivated,F),ne(onDeactivated,L),ne(onErrorCaptured,X),ne(onRenderTracked,K),ne(onRenderTriggered,G),ne(onBeforeUnmount,U),ne(onUnmounted,V),ne(onServerPrefetch,J),isArray$9(re))if(re.length){const te=d.exposed||(d.exposed={});re.forEach(ue=>{Object.defineProperty(te,ue,{get:()=>b[ue],set:ae=>b[ue]=ae})})}else d.exposed||(d.exposed={});Q&&d.render===NOOP&&(d.render=Q),fe!=null&&(d.inheritAttrs=fe),Z&&(d.components=Z),ie&&(d.directives=ie)}function resolveInjections(d,g,b=NOOP,A=!1){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)&&A?Object.defineProperty(g,w,{enumerable:!0,configurable:!0,get:()=>x.value,set:S=>x.value=S}):g[w]=x}}function callHook$1(d,g,b){callWithAsyncErrorHandling(isArray$9(d)?d.map(A=>A.bind(g.proxy)):d.bind(g.proxy),g,b)}function createWatcher(d,g,b,A){const w=A.includes(".")?createPathGetter(b,A):()=>b[A];if(isString$2(d)){const C=g[d];isFunction$5(C)&&watch(w,C)}else if(isFunction$5(d))watch(w,d.bind(b));else if(isObject$6(d))if(isArray$9(d))d.forEach(C=>createWatcher(C,g,b,A));else{const C=isFunction$5(d.handler)?d.handler.bind(b):g[d.handler];isFunction$5(C)&&watch(w,C,d)}}function resolveMergedOptions(d){const g=d.type,{mixins:b,extends:A}=g,{mixins:w,optionsCache:C,config:{optionMergeStrategies:x}}=d.appContext,S=C.get(g);let E;return S?E=S:!w.length&&!b&&!A?E=g:(E={},w.length&&w.forEach(B=>mergeOptions$1(E,B,x,!0)),mergeOptions$1(E,g,x)),isObject$6(g)&&C.set(g,E),E}function mergeOptions$1(d,g,b,A=!1){const{mixins:w,extends:C}=g;C&&mergeOptions$1(d,C,b,!0),w&&w.forEach(x=>mergeOptions$1(d,x,b,!0));for(const x in g)if(!(A&&x==="expose")){const S=internalOptionMergeStrats[x]||b&&b[x];d[x]=S?S(d[x],g[x]):g[x]}return d}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(d,g){return g?d?function(){return extend$2(isFunction$5(d)?d.call(this,this):d,isFunction$5(g)?g.call(this,this):g)}:g:d}function mergeInject(d,g){return mergeObjectOptions(normalizeInject(d),normalizeInject(g))}function normalizeInject(d){if(isArray$9(d)){const g={};for(let b=0;b<d.length;b++)g[d[b]]=d[b];return g}return d}function mergeAsArray(d,g){return d?[...new Set([].concat(d,g))]:g}function mergeObjectOptions(d,g){return d?extend$2(extend$2(Object.create(null),d),g):g}function mergeWatchOptions(d,g){if(!d)return g;if(!g)return d;const b=extend$2(Object.create(null),d);for(const A in g)b[A]=mergeAsArray(d[A],g[A]);return b}function initProps(d,g,b,A=!1){const w={},C={};def(C,InternalObjectKey,1),d.propsDefaults=Object.create(null),setFullProps(d,g,w,C);for(const x in d.propsOptions[0])x in w||(w[x]=void 0);b?d.props=A?w:shallowReactive(w):d.type.props?d.props=w:d.props=C,d.attrs=C}function updateProps(d,g,b,A){const{props:w,attrs:C,vnode:{patchFlag:x}}=d,S=toRaw(w),[E]=d.propsOptions;let B=!1;if((A||x>0)&&!(x&16)){if(x&8){const $=d.vnode.dynamicProps;for(let P=0;P<$.length;P++){let k=$[P];if(isEmitListener(d.emitsOptions,k))continue;const M=g[k];if(E)if(hasOwn$2(C,k))M!==C[k]&&(C[k]=M,B=!0);else{const R=camelize$1(k);w[R]=resolvePropValue(E,S,R,M,d,!1)}else M!==C[k]&&(C[k]=M,B=!0)}}}else{setFullProps(d,g,w,C)&&(B=!0);let $;for(const P in S)(!g||!hasOwn$2(g,P)&&(($=hyphenate(P))===P||!hasOwn$2(g,$)))&&(E?b&&(b[P]!==void 0||b[$]!==void 0)&&(w[P]=resolvePropValue(E,S,P,void 0,d,!0)):delete w[P]);if(C!==S)for(const P in C)(!g||!hasOwn$2(g,P))&&(delete C[P],B=!0)}B&&trigger$1(d,"set","$attrs")}function setFullProps(d,g,b,A){const[w,C]=d.propsOptions;let x=!1,S;if(g)for(let E in g){if(isReservedProp(E))continue;const B=g[E];let $;w&&hasOwn$2(w,$=camelize$1(E))?!C||!C.includes($)?b[$]=B:(S||(S={}))[$]=B:isEmitListener(d.emitsOptions,E)||(!(E in A)||B!==A[E])&&(A[E]=B,x=!0)}if(C){const E=toRaw(b),B=S||EMPTY_OBJ;for(let $=0;$<C.length;$++){const P=C[$];b[P]=resolvePropValue(w,E,P,B[P],d,!hasOwn$2(B,P))}}return x}function resolvePropValue(d,g,b,A,w,C){const x=d[b];if(x!=null){const S=hasOwn$2(x,"default");if(S&&A===void 0){const E=x.default;if(x.type!==Function&&isFunction$5(E)){const{propsDefaults:B}=w;b in B?A=B[b]:(setCurrentInstance(w),A=B[b]=E.call(null,g),unsetCurrentInstance())}else A=E}x[0]&&(C&&!S?A=!1:x[1]&&(A===""||A===hyphenate(b))&&(A=!0))}return A}function normalizePropsOptions(d,g,b=!1){const A=g.propsCache,w=A.get(d);if(w)return w;const C=d.props,x={},S=[];let E=!1;if(!isFunction$5(d)){const $=P=>{E=!0;const[k,M]=normalizePropsOptions(P,g,!0);extend$2(x,k),M&&S.push(...M)};!b&&g.mixins.length&&g.mixins.forEach($),d.extends&&$(d.extends),d.mixins&&d.mixins.forEach($)}if(!C&&!E)return isObject$6(d)&&A.set(d,EMPTY_ARR),EMPTY_ARR;if(isArray$9(C))for(let $=0;$<C.length;$++){const P=camelize$1(C[$]);validatePropName(P)&&(x[P]=EMPTY_OBJ)}else if(C)for(const $ in C){const P=camelize$1($);if(validatePropName(P)){const k=C[$],M=x[P]=isArray$9(k)||isFunction$5(k)?{type:k}:Object.assign({},k);if(M){const R=getTypeIndex(Boolean,M.type),F=getTypeIndex(String,M.type);M[0]=R>-1,M[1]=F<0||R<F,(R>-1||hasOwn$2(M,"default"))&&S.push(P)}}}const B=[x,S];return isObject$6(d)&&A.set(d,B),B}function validatePropName(d){return d[0]!=="$"}function getType(d){const g=d&&d.toString().match(/^\s*(function|class) (\w+)/);return g?g[2]:d===null?"null":""}function isSameType(d,g){return getType(d)===getType(g)}function getTypeIndex(d,g){return isArray$9(g)?g.findIndex(b=>isSameType(b,d)):isFunction$5(g)&&isSameType(g,d)?0:-1}const isInternalKey=d=>d[0]==="_"||d==="$stable",normalizeSlotValue=d=>isArray$9(d)?d.map(normalizeVNode):[normalizeVNode(d)],normalizeSlot$1=(d,g,b)=>{if(g._n)return g;const A=withCtx((...w)=>normalizeSlotValue(g(...w)),b);return A._c=!1,A},normalizeObjectSlots=(d,g,b)=>{const A=d._ctx;for(const w in d){if(isInternalKey(w))continue;const C=d[w];if(isFunction$5(C))g[w]=normalizeSlot$1(w,C,A);else if(C!=null){const x=normalizeSlotValue(C);g[w]=()=>x}}},normalizeVNodeSlots=(d,g)=>{const b=normalizeSlotValue(g);d.slots.default=()=>b},initSlots=(d,g)=>{if(d.vnode.shapeFlag&32){const b=g._;b?(d.slots=toRaw(g),def(g,"_",b)):normalizeObjectSlots(g,d.slots={})}else d.slots={},g&&normalizeVNodeSlots(d,g);def(d.slots,InternalObjectKey,1)},updateSlots=(d,g,b)=>{const{vnode:A,slots:w}=d;let C=!0,x=EMPTY_OBJ;if(A.shapeFlag&32){const S=g._;S?b&&S===1?C=!1:(extend$2(w,g),!b&&S===1&&delete w._):(C=!g.$stable,normalizeObjectSlots(g,w)),x=g}else g&&(normalizeVNodeSlots(d,g),x={default:1});if(C)for(const S in w)!isInternalKey(S)&&!(S in x)&&delete w[S]};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,g){return function(A,w=null){isFunction$5(A)||(A=Object.assign({},A)),w!=null&&!isObject$6(w)&&(w=null);const C=createAppContext(),x=new Set;let S=!1;const E=C.app={_uid:uid$1++,_component:A,_props:w,_container:null,_context:C,_instance:null,version:version$2,get config(){return C.config},set config(B){},use(B,...$){return x.has(B)||(B&&isFunction$5(B.install)?(x.add(B),B.install(E,...$)):isFunction$5(B)&&(x.add(B),B(E,...$))),E},mixin(B){return C.mixins.includes(B)||C.mixins.push(B),E},component(B,$){return $?(C.components[B]=$,E):C.components[B]},directive(B,$){return $?(C.directives[B]=$,E):C.directives[B]},mount(B,$,P){if(!S){const k=createVNode(A,w);return k.appContext=C,$&&g?g(k,B):d(k,B,P),S=!0,E._container=B,B.__vue_app__=E,getExposeProxy(k.component)||k.component.proxy}},unmount(){S&&(d(null,E._container),delete E._container.__vue_app__)},provide(B,$){return C.provides[B]=$,E}};return E}}function setRef(d,g,b,A,w=!1){if(isArray$9(d)){d.forEach((k,M)=>setRef(k,g&&(isArray$9(g)?g[M]:g),b,A,w));return}if(isAsyncWrapper(A)&&!w)return;const C=A.shapeFlag&4?getExposeProxy(A.component)||A.component.proxy:A.el,x=w?null:C,{i:S,r:E}=d,B=g&&g.r,$=S.refs===EMPTY_OBJ?S.refs={}:S.refs,P=S.setupState;if(B!=null&&B!==E&&(isString$2(B)?($[B]=null,hasOwn$2(P,B)&&(P[B]=null)):isRef(B)&&(B.value=null)),isFunction$5(E))callWithErrorHandling(E,S,12,[x,$]);else{const k=isString$2(E),M=isRef(E);if(k||M){const R=()=>{if(d.f){const F=k?hasOwn$2(P,E)?P[E]:$[E]:E.value;w?isArray$9(F)&&remove$6(F,C):isArray$9(F)?F.includes(C)||F.push(C):k?($[E]=[C],hasOwn$2(P,E)&&(P[E]=$[E])):(E.value=[C],d.k&&($[d.k]=E.value))}else k?($[E]=x,hasOwn$2(P,E)&&(P[E]=x)):M&&(E.value=x,d.k&&($[d.k]=x))};x?(R.id=-1,queuePostRenderEffect(R,b)):R()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(d){return baseCreateRenderer(d)}function baseCreateRenderer(d,g){const b=getGlobalThis$1();b.__VUE__=!0;const{insert:A,remove:w,patchProp:C,createElement:x,createText:S,createComment:E,setText:B,setElementText:$,parentNode:P,nextSibling:k,setScopeId:M=NOOP,insertStaticContent:R}=d,F=(he,we,Be,Ne=null,Se=null,q=null,se=!1,ge=null,de=!!we.dynamicChildren)=>{if(he===we)return;he&&!isSameVNodeType(he,we)&&(Ne=Re(he),Ye(he,Se,q,!0),he=null),we.patchFlag===-2&&(de=!1,we.dynamicChildren=null);const{type:ve,ref:Pe,shapeFlag:De}=we;switch(ve){case Text:L(he,we,Be,Ne);break;case Comment:z(he,we,Be,Ne);break;case Static:he==null&&U(we,Be,Ne,se);break;case Fragment:Z(he,we,Be,Ne,Se,q,se,ge,de);break;default:De&1?Q(he,we,Be,Ne,Se,q,se,ge,de):De&6?ie(he,we,Be,Ne,Se,q,se,ge,de):(De&64||De&128)&&ve.process(he,we,Be,Ne,Se,q,se,ge,de,qe)}Pe!=null&&Se&&setRef(Pe,he&&he.ref,q,we||he,!we)},L=(he,we,Be,Ne)=>{if(he==null)A(we.el=S(we.children),Be,Ne);else{const Se=we.el=he.el;we.children!==he.children&&B(Se,we.children)}},z=(he,we,Be,Ne)=>{he==null?A(we.el=E(we.children||""),Be,Ne):we.el=he.el},U=(he,we,Be,Ne)=>{[he.el,he.anchor]=R(he.children,we,Be,Ne,he.el,he.anchor)},W=({el:he,anchor:we},Be,Ne)=>{let Se;for(;he&&he!==we;)Se=k(he),A(he,Be,Ne),he=Se;A(we,Be,Ne)},V=({el:he,anchor:we})=>{let Be;for(;he&&he!==we;)Be=k(he),w(he),he=Be;w(we)},Q=(he,we,Be,Ne,Se,q,se,ge,de)=>{se=se||we.type==="svg",he==null?K(we,Be,Ne,Se,q,se,ge,de):J(he,we,Se,q,se,ge,de)},K=(he,we,Be,Ne,Se,q,se,ge)=>{let de,ve;const{type:Pe,props:De,shapeFlag:Qe,transition:ot,dirs:st}=he;if(de=he.el=x(he.type,q,De&&De.is,De),Qe&8?$(de,he.children):Qe&16&&X(he.children,de,null,Ne,Se,q&&Pe!=="foreignObject",se,ge),st&&invokeDirectiveHook(he,null,Ne,"created"),G(de,he,he.scopeId,se,Ne),De){for(const He in De)He!=="value"&&!isReservedProp(He)&&C(de,He,null,De[He],q,he.children,Ne,Se,Le);"value"in De&&C(de,"value",null,De.value),(ve=De.onVnodeBeforeMount)&&invokeVNodeHook(ve,Ne,he)}st&&invokeDirectiveHook(he,null,Ne,"beforeMount");const ut=(!Se||Se&&!Se.pendingBranch)&&ot&&!ot.persisted;ut&&ot.beforeEnter(de),A(de,we,Be),((ve=De&&De.onVnodeMounted)||ut||st)&&queuePostRenderEffect(()=>{ve&&invokeVNodeHook(ve,Ne,he),ut&&ot.enter(de),st&&invokeDirectiveHook(he,null,Ne,"mounted")},Se)},G=(he,we,Be,Ne,Se)=>{if(Be&&M(he,Be),Ne)for(let q=0;q<Ne.length;q++)M(he,Ne[q]);if(Se){let q=Se.subTree;if(we===q){const se=Se.vnode;G(he,se,se.scopeId,se.slotScopeIds,Se.parent)}}},X=(he,we,Be,Ne,Se,q,se,ge,de=0)=>{for(let ve=de;ve<he.length;ve++){const Pe=he[ve]=ge?cloneIfMounted(he[ve]):normalizeVNode(he[ve]);F(null,Pe,we,Be,Ne,Se,q,se,ge)}},J=(he,we,Be,Ne,Se,q,se)=>{const ge=we.el=he.el;let{patchFlag:de,dynamicChildren:ve,dirs:Pe}=we;de|=he.patchFlag&16;const De=he.props||EMPTY_OBJ,Qe=we.props||EMPTY_OBJ;let ot;Be&&toggleRecurse(Be,!1),(ot=Qe.onVnodeBeforeUpdate)&&invokeVNodeHook(ot,Be,we,he),Pe&&invokeDirectiveHook(we,he,Be,"beforeUpdate"),Be&&toggleRecurse(Be,!0);const st=Se&&we.type!=="foreignObject";if(ve?re(he.dynamicChildren,ve,ge,Be,Ne,st,q):se||ue(he,we,ge,null,Be,Ne,st,q,!1),de>0){if(de&16)fe(ge,we,De,Qe,Be,Ne,Se);else if(de&2&&De.class!==Qe.class&&C(ge,"class",null,Qe.class,Se),de&4&&C(ge,"style",De.style,Qe.style,Se),de&8){const ut=we.dynamicProps;for(let He=0;He<ut.length;He++){const ct=ut[He],mt=De[ct],_t=Qe[ct];(_t!==mt||ct==="value")&&C(ge,ct,mt,_t,Se,he.children,Be,Ne,Le)}}de&1&&he.children!==we.children&&$(ge,we.children)}else!se&&ve==null&&fe(ge,we,De,Qe,Be,Ne,Se);((ot=Qe.onVnodeUpdated)||Pe)&&queuePostRenderEffect(()=>{ot&&invokeVNodeHook(ot,Be,we,he),Pe&&invokeDirectiveHook(we,he,Be,"updated")},Ne)},re=(he,we,Be,Ne,Se,q,se)=>{for(let ge=0;ge<we.length;ge++){const de=he[ge],ve=we[ge],Pe=de.el&&(de.type===Fragment||!isSameVNodeType(de,ve)||de.shapeFlag&70)?P(de.el):Be;F(de,ve,Pe,null,Ne,Se,q,se,!0)}},fe=(he,we,Be,Ne,Se,q,se)=>{if(Be!==Ne){if(Be!==EMPTY_OBJ)for(const ge in Be)!isReservedProp(ge)&&!(ge in Ne)&&C(he,ge,Be[ge],null,se,we.children,Se,q,Le);for(const ge in Ne){if(isReservedProp(ge))continue;const de=Ne[ge],ve=Be[ge];de!==ve&&ge!=="value"&&C(he,ge,ve,de,se,we.children,Se,q,Le)}"value"in Ne&&C(he,"value",Be.value,Ne.value)}},Z=(he,we,Be,Ne,Se,q,se,ge,de)=>{const ve=we.el=he?he.el:S(""),Pe=we.anchor=he?he.anchor:S("");let{patchFlag:De,dynamicChildren:Qe,slotScopeIds:ot}=we;ot&&(ge=ge?ge.concat(ot):ot),he==null?(A(ve,Be,Ne),A(Pe,Be,Ne),X(we.children,Be,Pe,Se,q,se,ge,de)):De>0&&De&64&&Qe&&he.dynamicChildren?(re(he.dynamicChildren,Qe,Be,Se,q,se,ge),(we.key!=null||Se&&we===Se.subTree)&&traverseStaticChildren(he,we,!0)):ue(he,we,Be,Pe,Se,q,se,ge,de)},ie=(he,we,Be,Ne,Se,q,se,ge,de)=>{we.slotScopeIds=ge,he==null?we.shapeFlag&512?Se.ctx.activate(we,Be,Ne,se,de):ce(we,Be,Ne,Se,q,se,de):me(he,we,de)},ce=(he,we,Be,Ne,Se,q,se)=>{const ge=he.component=createComponentInstance(he,Ne,Se);if(isKeepAlive(he)&&(ge.ctx.renderer=qe),setupComponent(ge),ge.asyncDep){if(Se&&Se.registerDep(ge,ne),!he.el){const de=ge.subTree=createVNode(Comment);z(null,de,we,Be)}return}ne(ge,he,we,Be,Se,q,se)},me=(he,we,Be)=>{const Ne=we.component=he.component;if(shouldUpdateComponent(he,we,Be))if(Ne.asyncDep&&!Ne.asyncResolved){te(Ne,we,Be);return}else Ne.next=we,invalidateJob(Ne.update),Ne.update();else we.el=he.el,Ne.vnode=we},ne=(he,we,Be,Ne,Se,q,se)=>{const ge=()=>{if(he.isMounted){let{next:Pe,bu:De,u:Qe,parent:ot,vnode:st}=he,ut=Pe,He;toggleRecurse(he,!1),Pe?(Pe.el=st.el,te(he,Pe,se)):Pe=st,De&&invokeArrayFns(De),(He=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&invokeVNodeHook(He,ot,Pe,st),toggleRecurse(he,!0);const ct=renderComponentRoot(he),mt=he.subTree;he.subTree=ct,F(mt,ct,P(mt.el),Re(mt),he,Se,q),Pe.el=ct.el,ut===null&&updateHOCHostEl(he,ct.el),Qe&&queuePostRenderEffect(Qe,Se),(He=Pe.props&&Pe.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(He,ot,Pe,st),Se)}else{let Pe;const{el:De,props:Qe}=we,{bm:ot,m:st,parent:ut}=he,He=isAsyncWrapper(we);if(toggleRecurse(he,!1),ot&&invokeArrayFns(ot),!He&&(Pe=Qe&&Qe.onVnodeBeforeMount)&&invokeVNodeHook(Pe,ut,we),toggleRecurse(he,!0),De&&Xe){const ct=()=>{he.subTree=renderComponentRoot(he),Xe(De,he.subTree,he,Se,null)};He?we.type.__asyncLoader().then(()=>!he.isUnmounted&&ct()):ct()}else{const ct=he.subTree=renderComponentRoot(he);F(null,ct,Be,Ne,he,Se,q),we.el=ct.el}if(st&&queuePostRenderEffect(st,Se),!He&&(Pe=Qe&&Qe.onVnodeMounted)){const ct=we;queuePostRenderEffect(()=>invokeVNodeHook(Pe,ut,ct),Se)}(we.shapeFlag&256||ut&&isAsyncWrapper(ut.vnode)&&ut.vnode.shapeFlag&256)&&he.a&&queuePostRenderEffect(he.a,Se),he.isMounted=!0,we=Be=Ne=null}},de=he.effect=new ReactiveEffect(ge,()=>queueJob(ve),he.scope),ve=he.update=()=>de.run();ve.id=he.uid,toggleRecurse(he,!0),ve()},te=(he,we,Be)=>{we.component=he;const Ne=he.vnode.props;he.vnode=we,he.next=null,updateProps(he,we.props,Ne,Be),updateSlots(he,we.children,Be),pauseTracking(),flushPreFlushCbs(),resetTracking()},ue=(he,we,Be,Ne,Se,q,se,ge,de=!1)=>{const ve=he&&he.children,Pe=he?he.shapeFlag:0,De=we.children,{patchFlag:Qe,shapeFlag:ot}=we;if(Qe>0){if(Qe&128){ye(ve,De,Be,Ne,Se,q,se,ge,de);return}else if(Qe&256){ae(ve,De,Be,Ne,Se,q,se,ge,de);return}}ot&8?(Pe&16&&Le(ve,Se,q),De!==ve&&$(Be,De)):Pe&16?ot&16?ye(ve,De,Be,Ne,Se,q,se,ge,de):Le(ve,Se,q,!0):(Pe&8&&$(Be,""),ot&16&&X(De,Be,Ne,Se,q,se,ge,de))},ae=(he,we,Be,Ne,Se,q,se,ge,de)=>{he=he||EMPTY_ARR,we=we||EMPTY_ARR;const ve=he.length,Pe=we.length,De=Math.min(ve,Pe);let Qe;for(Qe=0;Qe<De;Qe++){const ot=we[Qe]=de?cloneIfMounted(we[Qe]):normalizeVNode(we[Qe]);F(he[Qe],ot,Be,null,Se,q,se,ge,de)}ve>Pe?Le(he,Se,q,!0,!1,De):X(we,Be,Ne,Se,q,se,ge,de,De)},ye=(he,we,Be,Ne,Se,q,se,ge,de)=>{let ve=0;const Pe=we.length;let De=he.length-1,Qe=Pe-1;for(;ve<=De&&ve<=Qe;){const ot=he[ve],st=we[ve]=de?cloneIfMounted(we[ve]):normalizeVNode(we[ve]);if(isSameVNodeType(ot,st))F(ot,st,Be,null,Se,q,se,ge,de);else break;ve++}for(;ve<=De&&ve<=Qe;){const ot=he[De],st=we[Qe]=de?cloneIfMounted(we[Qe]):normalizeVNode(we[Qe]);if(isSameVNodeType(ot,st))F(ot,st,Be,null,Se,q,se,ge,de);else break;De--,Qe--}if(ve>De){if(ve<=Qe){const ot=Qe+1,st=ot<Pe?we[ot].el:Ne;for(;ve<=Qe;)F(null,we[ve]=de?cloneIfMounted(we[ve]):normalizeVNode(we[ve]),Be,st,Se,q,se,ge,de),ve++}}else if(ve>Qe)for(;ve<=De;)Ye(he[ve],Se,q,!0),ve++;else{const ot=ve,st=ve,ut=new Map;for(ve=st;ve<=Qe;ve++){const bt=we[ve]=de?cloneIfMounted(we[ve]):normalizeVNode(we[ve]);bt.key!=null&&ut.set(bt.key,ve)}let He,ct=0;const mt=Qe-st+1;let _t=!1,ft=0;const Ct=new Array(mt);for(ve=0;ve<mt;ve++)Ct[ve]=0;for(ve=ot;ve<=De;ve++){const bt=he[ve];if(ct>=mt){Ye(bt,Se,q,!0);continue}let be;if(bt.key!=null)be=ut.get(bt.key);else for(He=st;He<=Qe;He++)if(Ct[He-st]===0&&isSameVNodeType(bt,we[He])){be=He;break}be===void 0?Ye(bt,Se,q,!0):(Ct[be-st]=ve+1,be>=ft?ft=be:_t=!0,F(bt,we[be],Be,null,Se,q,se,ge,de),ct++)}const pt=_t?getSequence(Ct):EMPTY_ARR;for(He=pt.length-1,ve=mt-1;ve>=0;ve--){const bt=st+ve,be=we[bt],Fe=bt+1<Pe?we[bt+1].el:Ne;Ct[ve]===0?F(null,be,Be,Fe,Se,q,se,ge,de):_t&&(He<0||ve!==pt[He]?Oe(be,Be,Fe,2):He--)}}},Oe=(he,we,Be,Ne,Se=null)=>{const{el:q,type:se,transition:ge,children:de,shapeFlag:ve}=he;if(ve&6){Oe(he.component.subTree,we,Be,Ne);return}if(ve&128){he.suspense.move(we,Be,Ne);return}if(ve&64){se.move(he,we,Be,qe);return}if(se===Fragment){A(q,we,Be);for(let De=0;De<de.length;De++)Oe(de[De],we,Be,Ne);A(he.anchor,we,Be);return}if(se===Static){W(he,we,Be);return}if(Ne!==2&&ve&1&&ge)if(Ne===0)ge.beforeEnter(q),A(q,we,Be),queuePostRenderEffect(()=>ge.enter(q),Se);else{const{leave:De,delayLeave:Qe,afterLeave:ot}=ge,st=()=>A(q,we,Be),ut=()=>{De(q,()=>{st(),ot&&ot()})};Qe?Qe(q,st,ut):ut()}else A(q,we,Be)},Ye=(he,we,Be,Ne=!1,Se=!1)=>{const{type:q,props:se,ref:ge,children:de,dynamicChildren:ve,shapeFlag:Pe,patchFlag:De,dirs:Qe}=he;if(ge!=null&&setRef(ge,null,Be,he,!0),Pe&256){we.ctx.deactivate(he);return}const ot=Pe&1&&Qe,st=!isAsyncWrapper(he);let ut;if(st&&(ut=se&&se.onVnodeBeforeUnmount)&&invokeVNodeHook(ut,we,he),Pe&6)Te(he.component,Be,Ne);else{if(Pe&128){he.suspense.unmount(Be,Ne);return}ot&&invokeDirectiveHook(he,null,we,"beforeUnmount"),Pe&64?he.type.remove(he,we,Be,Se,qe,Ne):ve&&(q!==Fragment||De>0&&De&64)?Le(ve,we,Be,!1,!0):(q===Fragment&&De&384||!Se&&Pe&16)&&Le(de,we,Be),Ne&&et(he)}(st&&(ut=se&&se.onVnodeUnmounted)||ot)&&queuePostRenderEffect(()=>{ut&&invokeVNodeHook(ut,we,he),ot&&invokeDirectiveHook(he,null,we,"unmounted")},Be)},et=he=>{const{type:we,el:Be,anchor:Ne,transition:Se}=he;if(we===Fragment){ht(Be,Ne);return}if(we===Static){V(he);return}const q=()=>{w(Be),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(he.shapeFlag&1&&Se&&!Se.persisted){const{leave:se,delayLeave:ge}=Se,de=()=>se(Be,q);ge?ge(he.el,q,de):de()}else q()},ht=(he,we)=>{let Be;for(;he!==we;)Be=k(he),w(he),he=Be;w(we)},Te=(he,we,Be)=>{const{bum:Ne,scope:Se,update:q,subTree:se,um:ge}=he;Ne&&invokeArrayFns(Ne),Se.stop(),q&&(q.active=!1,Ye(se,he,we,Be)),ge&&queuePostRenderEffect(ge,we),queuePostRenderEffect(()=>{he.isUnmounted=!0},we),we&&we.pendingBranch&&!we.isUnmounted&&he.asyncDep&&!he.asyncResolved&&he.suspenseId===we.pendingId&&(we.deps--,we.deps===0&&we.resolve())},Le=(he,we,Be,Ne=!1,Se=!1,q=0)=>{for(let se=q;se<he.length;se++)Ye(he[se],we,Be,Ne,Se)},Re=he=>he.shapeFlag&6?Re(he.component.subTree):he.shapeFlag&128?he.suspense.next():k(he.anchor||he.el),$e=(he,we,Be)=>{he==null?we._vnode&&Ye(we._vnode,null,null,!0):F(we._vnode||null,he,we,null,null,null,Be),flushPreFlushCbs(),flushPostFlushCbs(),we._vnode=he},qe={p:F,um:Ye,m:Oe,r:et,mt:ce,mc:X,pc:ue,pbc:re,n:Re,o:d};let rt,Xe;return g&&([rt,Xe]=g(qe)),{render:$e,hydrate:rt,createApp:createAppAPI($e,rt)}}function toggleRecurse({effect:d,update:g},b){d.allowRecurse=g.allowRecurse=b}function traverseStaticChildren(d,g,b=!1){const A=d.children,w=g.children;if(isArray$9(A)&&isArray$9(w))for(let C=0;C<A.length;C++){const x=A[C];let S=w[C];S.shapeFlag&1&&!S.dynamicChildren&&((S.patchFlag<=0||S.patchFlag===32)&&(S=w[C]=cloneIfMounted(w[C]),S.el=x.el),b||traverseStaticChildren(x,S)),S.type===Text&&(S.el=x.el)}}function getSequence(d){const g=d.slice(),b=[0];let A,w,C,x,S;const E=d.length;for(A=0;A<E;A++){const B=d[A];if(B!==0){if(w=b[b.length-1],d[w]<B){g[A]=w,b.push(A);continue}for(C=0,x=b.length-1;C<x;)S=C+x>>1,d[b[S]]<B?C=S+1:x=S;B<d[b[C]]&&(C>0&&(g[A]=b[C-1]),b[C]=A)}}for(C=b.length,x=b[C-1];C-- >0;)b[C]=x,x=g[x];return b}const isTeleport=d=>d.__isTeleport,isTeleportDisabled=d=>d&&(d.disabled||d.disabled===""),isTargetSVG=d=>typeof SVGElement<"u"&&d instanceof SVGElement,resolveTarget=(d,g)=>{const b=d&&d.to;return isString$2(b)?g?g(b):null:b},TeleportImpl={__isTeleport:!0,process(d,g,b,A,w,C,x,S,E,B){const{mc:$,pc:P,pbc:k,o:{insert:M,querySelector:R,createText:F,createComment:L}}=B,z=isTeleportDisabled(g.props);let{shapeFlag:U,children:W,dynamicChildren:V}=g;if(d==null){const Q=g.el=F(""),K=g.anchor=F("");M(Q,b,A),M(K,b,A);const G=g.target=resolveTarget(g.props,R),X=g.targetAnchor=F("");G&&(M(X,G),x=x||isTargetSVG(G));const J=(re,fe)=>{U&16&&$(W,re,fe,w,C,x,S,E)};z?J(b,K):G&&J(G,X)}else{g.el=d.el;const Q=g.anchor=d.anchor,K=g.target=d.target,G=g.targetAnchor=d.targetAnchor,X=isTeleportDisabled(d.props),J=X?b:K,re=X?Q:G;if(x=x||isTargetSVG(K),V?(k(d.dynamicChildren,V,J,w,C,x,S),traverseStaticChildren(d,g,!0)):E||P(d,g,J,re,w,C,x,S,!1),z)X||moveTeleport(g,b,Q,B,1);else if((g.props&&g.props.to)!==(d.props&&d.props.to)){const fe=g.target=resolveTarget(g.props,R);fe&&moveTeleport(g,fe,null,B,0)}else X&&moveTeleport(g,K,G,B,1)}updateCssVars(g)},remove(d,g,b,A,{um:w,o:{remove:C}},x){const{shapeFlag:S,children:E,anchor:B,targetAnchor:$,target:P,props:k}=d;if(P&&C($),(x||!isTeleportDisabled(k))&&(C(B),S&16))for(let M=0;M<E.length;M++){const R=E[M];w(R,g,b,!0,!!R.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(d,g,b,{o:{insert:A},m:w},C=2){C===0&&A(d.targetAnchor,g,b);const{el:x,anchor:S,shapeFlag:E,children:B,props:$}=d,P=C===2;if(P&&A(x,g,b),(!P||isTeleportDisabled($))&&E&16)for(let k=0;k<B.length;k++)w(B[k],g,b,2);P&&A(S,g,b)}function hydrateTeleport(d,g,b,A,w,C,{o:{nextSibling:x,parentNode:S,querySelector:E}},B){const $=g.target=resolveTarget(g.props,E);if($){const P=$._lpa||$.firstChild;if(g.shapeFlag&16)if(isTeleportDisabled(g.props))g.anchor=B(x(d),g,S(d),b,A,w,C),g.targetAnchor=P;else{g.anchor=x(d);let k=P;for(;k;)if(k=x(k),k&&k.nodeType===8&&k.data==="teleport anchor"){g.targetAnchor=k,$._lpa=g.targetAnchor&&x(g.targetAnchor);break}B(P,g,$,b,A,w,C)}updateCssVars(g)}return g.anchor&&x(g.anchor)}const Teleport=TeleportImpl;function updateCssVars(d){const g=d.ctx;if(g&&g.ut){let b=d.children[0].el;for(;b!==d.targetAnchor;)b.nodeType===1&&b.setAttribute("data-v-owner",g.uid),b=b.nextSibling;g.ut()}}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),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,g,b,A,w,C){return setupBlock(createBaseVNode(d,g,b,A,w,C,!0))}function createBlock(d,g,b,A,w){return setupBlock(createVNode(d,g,b,A,w,!0))}function isVNode(d){return d?d.__v_isVNode===!0:!1}function isSameVNodeType(d,g){return d.type===g.type&&d.key===g.key}const InternalObjectKey="__vInternal",normalizeKey=({key:d})=>d!=null?d:null,normalizeRef=({ref:d,ref_key:g,ref_for:b})=>d!=null?isString$2(d)||isRef(d)||isFunction$5(d)?{i:currentRenderingInstance,r:d,k:g,f:!!b}:d:null;function createBaseVNode(d,g=null,b=null,A=0,w=null,C=d===Fragment?0:1,x=!1,S=!1){const E={__v_isVNode:!0,__v_skip:!0,type:d,props:g,key:g&&normalizeKey(g),ref:g&&normalizeRef(g),scopeId:currentScopeId,slotScopeIds:null,children:b,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:C,patchFlag:A,dynamicProps:w,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return S?(normalizeChildren(E,b),C&128&&d.normalize(E)):b&&(E.shapeFlag|=isString$2(b)?8:16),isBlockTreeEnabled>0&&!x&&currentBlock&&(E.patchFlag>0||C&6)&&E.patchFlag!==32&&currentBlock.push(E),E}const createVNode=_createVNode;function _createVNode(d,g=null,b=null,A=0,w=null,C=!1){if((!d||d===NULL_DYNAMIC_COMPONENT)&&(d=Comment),isVNode(d)){const S=cloneVNode(d,g,!0);return b&&normalizeChildren(S,b),isBlockTreeEnabled>0&&!C&&currentBlock&&(S.shapeFlag&6?currentBlock[currentBlock.indexOf(d)]=S:currentBlock.push(S)),S.patchFlag|=-2,S}if(isClassComponent(d)&&(d=d.__vccOpts),g){g=guardReactiveProps(g);let{class:S,style:E}=g;S&&!isString$2(S)&&(g.class=normalizeClass(S)),isObject$6(E)&&(isProxy(E)&&!isArray$9(E)&&(E=extend$2({},E)),g.style=normalizeStyle(E))}const x=isString$2(d)?1:isSuspense(d)?128:isTeleport(d)?64:isObject$6(d)?4:isFunction$5(d)?2:0;return createBaseVNode(d,g,b,A,w,x,C,!0)}function guardReactiveProps(d){return d?isProxy(d)||InternalObjectKey in d?extend$2({},d):d:null}function cloneVNode(d,g,b=!1){const{props:A,ref:w,patchFlag:C,children:x}=d,S=g?mergeProps(A||{},g):A;return{__v_isVNode:!0,__v_skip:!0,type:d.type,props:S,key:S&&normalizeKey(S),ref:g&&g.ref?b&&w?isArray$9(w)?w.concat(normalizeRef(g)):[w,normalizeRef(g)]:normalizeRef(g):w,scopeId:d.scopeId,slotScopeIds:d.slotScopeIds,children:x,target:d.target,targetAnchor:d.targetAnchor,staticCount:d.staticCount,shapeFlag:d.shapeFlag,patchFlag:g&&d.type!==Fragment?C===-1?16:C|16:C,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=" ",g=0){return createVNode(Text,null,d,g)}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,g){let b=0;const{shapeFlag:A}=d;if(g==null)g=null;else if(isArray$9(g))b=16;else if(typeof g=="object")if(A&65){const w=g.default;w&&(w._c&&(w._d=!1),normalizeChildren(d,w()),w._c&&(w._d=!0));return}else{b=32;const w=g._;!w&&!(InternalObjectKey in g)?g._ctx=currentRenderingInstance:w===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?g._=1:(g._=2,d.patchFlag|=1024))}else isFunction$5(g)?(g={default:g,_ctx:currentRenderingInstance},b=32):(g=String(g),A&64?(b=16,g=[createTextVNode(g)]):b=8);d.children=g,d.shapeFlag|=b}function mergeProps(...d){const g={};for(let b=0;b<d.length;b++){const A=d[b];for(const w in A)if(w==="class")g.class!==A.class&&(g.class=normalizeClass([g.class,A.class]));else if(w==="style")g.style=normalizeStyle([g.style,A.style]);else if(isOn(w)){const C=g[w],x=A[w];x&&C!==x&&!(isArray$9(C)&&C.includes(x))&&(g[w]=C?[].concat(C,x):x)}else w!==""&&(g[w]=A[w])}return g}function invokeVNodeHook(d,g,b,A=null){callWithAsyncErrorHandling(d,g,7,[b,A])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(d,g,b){const A=d.type,w=(g?g.appContext:d.appContext)||emptyAppContext,C={uid:uid++,vnode:d,type:A,parent:g,appContext:w,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:g?g.provides:Object.create(w.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(A,w),emitsOptions:normalizeEmitsOptions(A,w),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:A.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:b,suspenseId:b?b.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 C.ctx={_:C},C.root=g?g.root:C,C.emit=emit.bind(null,C),d.ce&&d.ce(C),C}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=d=>{currentInstance=d,d.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),currentInstance=null};function isStatefulComponent(d){return d.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(d,g=!1){isInSSRComponentSetup=g;const{props:b,children:A}=d.vnode,w=isStatefulComponent(d);initProps(d,b,w,g),initSlots(d,A);const C=w?setupStatefulComponent(d,g):void 0;return isInSSRComponentSetup=!1,C}function setupStatefulComponent(d,g){const b=d.type;d.accessCache=Object.create(null),d.proxy=markRaw(new Proxy(d.ctx,PublicInstanceProxyHandlers));const{setup:A}=b;if(A){const w=d.setupContext=A.length>1?createSetupContext(d):null;setCurrentInstance(d),pauseTracking();const C=callWithErrorHandling(A,d,0,[d.props,w]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(C)){if(C.then(unsetCurrentInstance,unsetCurrentInstance),g)return C.then(x=>{handleSetupResult(d,x,g)}).catch(x=>{handleError(x,d,0)});d.asyncDep=C}else handleSetupResult(d,C,g)}else finishComponentSetup(d,g)}function handleSetupResult(d,g,b){isFunction$5(g)?d.type.__ssrInlineRender?d.ssrRender=g:d.render=g:isObject$6(g)&&(d.setupState=proxyRefs(g)),finishComponentSetup(d,b)}let compile;function finishComponentSetup(d,g,b){const A=d.type;if(!d.render){if(!g&&compile&&!A.render){const w=A.template||resolveMergedOptions(d).template;if(w){const{isCustomElement:C,compilerOptions:x}=d.appContext.config,{delimiters:S,compilerOptions:E}=A,B=extend$2(extend$2({isCustomElement:C,delimiters:S},x),E);A.render=compile(w,B)}}d.render=A.render||NOOP}setCurrentInstance(d),pauseTracking(),applyOptions(d),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(d){return new Proxy(d.attrs,{get(g,b){return track(d,"get","$attrs"),g[b]}})}function createSetupContext(d){const g=A=>{d.exposed=A||{}};let b;return{get attrs(){return b||(b=createAttrsProxy(d))},slots:d.slots,emit:d.emit,expose:g}}function getExposeProxy(d){if(d.exposed)return d.exposeProxy||(d.exposeProxy=new Proxy(proxyRefs(markRaw(d.exposed)),{get(g,b){if(b in g)return g[b];if(b in publicPropertiesMap)return publicPropertiesMap[b](d)},has(g,b){return b in g||b in publicPropertiesMap}}))}function getComponentName(d,g=!0){return isFunction$5(d)?d.displayName||d.name:d.name||g&&d.__name}function isClassComponent(d){return isFunction$5(d)&&"__vccOpts"in d}const computed=(d,g)=>computed$1(d,g,isInSSRComponentSetup);function h$1(d,g,b){const A=arguments.length;return A===2?isObject$6(g)&&!isArray$9(g)?isVNode(g)?createVNode(d,null,[g]):createVNode(d,g):createVNode(d,null,g):(A>3?b=Array.prototype.slice.call(arguments,2):A===3&&isVNode(b)&&(b=[b]),createVNode(d,g,b))}const ssrContextKey$1=Symbol(""),useSSRContext=()=>inject(ssrContextKey$1),version$2="3.2.47",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,g,b)=>{g.insertBefore(d,b||null)},remove:d=>{const g=d.parentNode;g&&g.removeChild(d)},createElement:(d,g,b,A)=>{const w=g?doc$2.createElementNS(svgNS$1,d):doc$2.createElement(d,b?{is:b}:void 0);return d==="select"&&A&&A.multiple!=null&&w.setAttribute("multiple",A.multiple),w},createText:d=>doc$2.createTextNode(d),createComment:d=>doc$2.createComment(d),setText:(d,g)=>{d.nodeValue=g},setElementText:(d,g)=>{d.textContent=g},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>doc$2.querySelector(d),setScopeId(d,g){d.setAttribute(g,"")},insertStaticContent(d,g,b,A,w,C){const x=b?b.previousSibling:g.lastChild;if(w&&(w===C||w.nextSibling))for(;g.insertBefore(w.cloneNode(!0),b),!(w===C||!(w=w.nextSibling)););else{templateContainer.innerHTML=A?`<svg>${d}</svg>`:d;const S=templateContainer.content;if(A){const E=S.firstChild;for(;E.firstChild;)S.appendChild(E.firstChild);S.removeChild(E)}g.insertBefore(S,b)}return[x?x.nextSibling:g.firstChild,b?b.previousSibling:g.lastChild]}};function patchClass(d,g,b){const A=d._vtc;A&&(g=(g?[g,...A]:[...A]).join(" ")),g==null?d.removeAttribute("class"):b?d.setAttribute("class",g):d.className=g}function patchStyle(d,g,b){const A=d.style,w=isString$2(b);if(b&&!w){if(g&&!isString$2(g))for(const C in g)b[C]==null&&setStyle(A,C,"");for(const C in b)setStyle(A,C,b[C])}else{const C=A.display;w?g!==b&&(A.cssText=b):g&&d.removeAttribute("style"),"_vod"in d&&(A.display=C)}}const importantRE=/\s*!important$/;function setStyle(d,g,b){if(isArray$9(b))b.forEach(A=>setStyle(d,g,A));else if(b==null&&(b=""),g.startsWith("--"))d.setProperty(g,b);else{const A=autoPrefix(d,g);importantRE.test(b)?d.setProperty(hyphenate(A),b.replace(importantRE,""),"important"):d[A]=b}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(d,g){const b=prefixCache[g];if(b)return b;let A=camelize$1(g);if(A!=="filter"&&A in d)return prefixCache[g]=A;A=capitalize(A);for(let w=0;w<prefixes.length;w++){const C=prefixes[w]+A;if(C in d)return prefixCache[g]=C}return g}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(d,g,b,A,w){if(A&&g.startsWith("xlink:"))b==null?d.removeAttributeNS(xlinkNS,g.slice(6,g.length)):d.setAttributeNS(xlinkNS,g,b);else{const C=isSpecialBooleanAttr(g);b==null||C&&!includeBooleanAttr(b)?d.removeAttribute(g):d.setAttribute(g,C?"":b)}}function patchDOMProp(d,g,b,A,w,C,x){if(g==="innerHTML"||g==="textContent"){A&&x(A,w,C),d[g]=b==null?"":b;return}if(g==="value"&&d.tagName!=="PROGRESS"&&!d.tagName.includes("-")){d._value=b;const E=b==null?"":b;(d.value!==E||d.tagName==="OPTION")&&(d.value=E),b==null&&d.removeAttribute(g);return}let S=!1;if(b===""||b==null){const E=typeof d[g];E==="boolean"?b=includeBooleanAttr(b):b==null&&E==="string"?(b="",S=!0):E==="number"&&(b=0,S=!0)}try{d[g]=b}catch(E){}S&&d.removeAttribute(g)}function addEventListener(d,g,b,A){d.addEventListener(g,b,A)}function removeEventListener(d,g,b,A){d.removeEventListener(g,b,A)}function patchEvent(d,g,b,A,w=null){const C=d._vei||(d._vei={}),x=C[g];if(A&&x)x.value=A;else{const[S,E]=parseName(g);if(A){const B=C[g]=createInvoker(A,w);addEventListener(d,S,B,E)}else x&&(removeEventListener(d,S,x,E),C[g]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(d){let g;if(optionsModifierRE.test(d)){g={};let A;for(;A=d.match(optionsModifierRE);)d=d.slice(0,d.length-A[0].length),g[A[0].toLowerCase()]=!0}return[d[2]===":"?d.slice(3):hyphenate(d.slice(2)),g]}let cachedNow=0;const p$1=Promise.resolve(),getNow=()=>cachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(d,g){const b=A=>{if(!A._vts)A._vts=Date.now();else if(A._vts<=b.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(A,b.value),g,5,[A])};return b.value=d,b.attached=getNow(),b}function patchStopImmediatePropagation(d,g){if(isArray$9(g)){const b=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{b.call(d),d._stopped=!0},g.map(A=>w=>!w._stopped&&A&&A(w))}else return g}const nativeOnRE=/^on[a-z]/,patchProp=(d,g,b,A,w=!1,C,x,S,E)=>{g==="class"?patchClass(d,A,w):g==="style"?patchStyle(d,b,A):isOn(g)?isModelListener(g)||patchEvent(d,g,b,A,x):(g[0]==="."?(g=g.slice(1),!0):g[0]==="^"?(g=g.slice(1),!1):shouldSetAsProp(d,g,A,w))?patchDOMProp(d,g,A,C,x,S,E):(g==="true-value"?d._trueValue=A:g==="false-value"&&(d._falseValue=A),patchAttr(d,g,A,w))};function shouldSetAsProp(d,g,b,A){return A?!!(g==="innerHTML"||g==="textContent"||g in d&&nativeOnRE.test(g)&&isFunction$5(b)):g==="spellcheck"||g==="draggable"||g==="translate"||g==="form"||g==="list"&&d.tagName==="INPUT"||g==="type"&&d.tagName==="TEXTAREA"||nativeOnRE.test(g)&&isString$2(b)?!1:g in d}const TRANSITION="transition",ANIMATION="animation",Transition=(d,{slots:g})=>h$1(BaseTransition,resolveTransitionProps(d),g);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({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(d,g=[])=>{isArray$9(d)?d.forEach(b=>b(...g)):d&&d(...g)},hasExplicitCallback=d=>d?isArray$9(d)?d.some(g=>g.length>1):d.length>1:!1;function resolveTransitionProps(d){const g={};for(const Z in d)Z in DOMTransitionPropsValidators||(g[Z]=d[Z]);if(d.css===!1)return g;const{name:b="v",type:A,duration:w,enterFromClass:C=`${b}-enter-from`,enterActiveClass:x=`${b}-enter-active`,enterToClass:S=`${b}-enter-to`,appearFromClass:E=C,appearActiveClass:B=x,appearToClass:$=S,leaveFromClass:P=`${b}-leave-from`,leaveActiveClass:k=`${b}-leave-active`,leaveToClass:M=`${b}-leave-to`}=d,R=normalizeDuration(w),F=R&&R[0],L=R&&R[1],{onBeforeEnter:z,onEnter:U,onEnterCancelled:W,onLeave:V,onLeaveCancelled:Q,onBeforeAppear:K=z,onAppear:G=U,onAppearCancelled:X=W}=g,J=(Z,ie,ce)=>{removeTransitionClass(Z,ie?$:S),removeTransitionClass(Z,ie?B:x),ce&&ce()},re=(Z,ie)=>{Z._isLeaving=!1,removeTransitionClass(Z,P),removeTransitionClass(Z,M),removeTransitionClass(Z,k),ie&&ie()},fe=Z=>(ie,ce)=>{const me=Z?G:U,ne=()=>J(ie,Z,ce);callHook(me,[ie,ne]),nextFrame(()=>{removeTransitionClass(ie,Z?E:C),addTransitionClass(ie,Z?$:S),hasExplicitCallback(me)||whenTransitionEnds(ie,A,F,ne)})};return extend$2(g,{onBeforeEnter(Z){callHook(z,[Z]),addTransitionClass(Z,C),addTransitionClass(Z,x)},onBeforeAppear(Z){callHook(K,[Z]),addTransitionClass(Z,E),addTransitionClass(Z,B)},onEnter:fe(!1),onAppear:fe(!0),onLeave(Z,ie){Z._isLeaving=!0;const ce=()=>re(Z,ie);addTransitionClass(Z,P),forceReflow(),addTransitionClass(Z,k),nextFrame(()=>{Z._isLeaving&&(removeTransitionClass(Z,P),addTransitionClass(Z,M),hasExplicitCallback(V)||whenTransitionEnds(Z,A,L,ce))}),callHook(V,[Z,ce])},onEnterCancelled(Z){J(Z,!1),callHook(W,[Z])},onAppearCancelled(Z){J(Z,!0),callHook(X,[Z])},onLeaveCancelled(Z){re(Z),callHook(Q,[Z])}})}function normalizeDuration(d){if(d==null)return null;if(isObject$6(d))return[NumberOf(d.enter),NumberOf(d.leave)];{const g=NumberOf(d);return[g,g]}}function NumberOf(d){return toNumber$3(d)}function addTransitionClass(d,g){g.split(/\s+/).forEach(b=>b&&d.classList.add(b)),(d._vtc||(d._vtc=new Set)).add(g)}function removeTransitionClass(d,g){g.split(/\s+/).forEach(A=>A&&d.classList.remove(A));const{_vtc:b}=d;b&&(b.delete(g),b.size||(d._vtc=void 0))}function nextFrame(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let endId=0;function whenTransitionEnds(d,g,b,A){const w=d._endId=++endId,C=()=>{w===d._endId&&A()};if(b)return setTimeout(C,b);const{type:x,timeout:S,propCount:E}=getTransitionInfo(d,g);if(!x)return A();const B=x+"end";let $=0;const P=()=>{d.removeEventListener(B,k),C()},k=M=>{M.target===d&&++$>=E&&P()};setTimeout(()=>{$<E&&P()},S+1),d.addEventListener(B,k)}function getTransitionInfo(d,g){const b=window.getComputedStyle(d),A=R=>(b[R]||"").split(", "),w=A(`${TRANSITION}Delay`),C=A(`${TRANSITION}Duration`),x=getTimeout(w,C),S=A(`${ANIMATION}Delay`),E=A(`${ANIMATION}Duration`),B=getTimeout(S,E);let $=null,P=0,k=0;g===TRANSITION?x>0&&($=TRANSITION,P=x,k=C.length):g===ANIMATION?B>0&&($=ANIMATION,P=B,k=E.length):(P=Math.max(x,B),$=P>0?x>B?TRANSITION:ANIMATION:null,k=$?$===TRANSITION?C.length:E.length:0);const M=$===TRANSITION&&/\b(transform|all)(,|$)/.test(A(`${TRANSITION}Property`).toString());return{type:$,timeout:P,propCount:k,hasTransform:M}}function getTimeout(d,g){for(;d.length<g.length;)d=d.concat(d);return Math.max(...g.map((b,A)=>toMs(b)+toMs(d[A])))}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:g}){const b=getCurrentInstance(),A=useTransitionState();let w,C;return onUpdated(()=>{if(!w.length)return;const x=d.moveClass||`${d.name||"v"}-move`;if(!hasCSSTransform(w[0].el,b.vnode.el,x))return;w.forEach(callPendingCbs),w.forEach(recordPosition);const S=w.filter(applyTranslation);forceReflow(),S.forEach(E=>{const B=E.el,$=B.style;addTransitionClass(B,x),$.transform=$.webkitTransform=$.transitionDuration="";const P=B._moveCb=k=>{k&&k.target!==B||(!k||/transform$/.test(k.propertyName))&&(B.removeEventListener("transitionend",P),B._moveCb=null,removeTransitionClass(B,x))};B.addEventListener("transitionend",P)})}),()=>{const x=toRaw(d),S=resolveTransitionProps(x);let E=x.tag||Fragment;w=C,C=g.default?getTransitionRawChildren(g.default()):[];for(let B=0;B<C.length;B++){const $=C[B];$.key!=null&&setTransitionHooks($,resolveTransitionHooks($,S,A,b))}if(w)for(let B=0;B<w.length;B++){const $=w[B];setTransitionHooks($,resolveTransitionHooks($,S,A,b)),positionMap.set($,$.el.getBoundingClientRect())}return createVNode(E,null,C)}}},removeMode=d=>delete d.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(d){const g=d.el;g._moveCb&&g._moveCb(),g._enterCb&&g._enterCb()}function recordPosition(d){newPositionMap.set(d,d.el.getBoundingClientRect())}function applyTranslation(d){const g=positionMap.get(d),b=newPositionMap.get(d),A=g.left-b.left,w=g.top-b.top;if(A||w){const C=d.el.style;return C.transform=C.webkitTransform=`translate(${A}px,${w}px)`,C.transitionDuration="0s",d}}function hasCSSTransform(d,g,b){const A=d.cloneNode();d._vtc&&d._vtc.forEach(x=>{x.split(/\s+/).forEach(S=>S&&A.classList.remove(S))}),b.split(/\s+/).forEach(x=>x&&A.classList.add(x)),A.style.display="none";const w=g.nodeType===1?g:g.parentNode;w.appendChild(A);const{hasTransform:C}=getTransitionInfo(A);return w.removeChild(A),C}const keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(d,g)=>b=>{if(!("key"in b))return;const A=hyphenate(b.key);if(g.some(w=>w===A||keyNames[w]===A))return d(b)},vShow={beforeMount(d,{value:g},{transition:b}){d._vod=d.style.display==="none"?"":d.style.display,b&&g?b.beforeEnter(d):setDisplay(d,g)},mounted(d,{value:g},{transition:b}){b&&g&&b.enter(d)},updated(d,{value:g,oldValue:b},{transition:A}){!g!=!b&&(A?g?(A.beforeEnter(d),setDisplay(d,!0),A.enter(d)):A.leave(d,()=>{setDisplay(d,!1)}):setDisplay(d,g))},beforeUnmount(d,{value:g}){setDisplay(d,g)}};function setDisplay(d,g){d.style.display=g?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 g=ensureRenderer().createApp(...d),{mount:b}=g;return g.mount=A=>{const w=normalizeContainer(A);if(!w)return;const C=g._component;!isFunction$5(C)&&!C.render&&!C.template&&(C.template=w.innerHTML),w.innerHTML="";const x=b(w,!1,w instanceof SVGElement);return w instanceof Element&&(w.removeAttribute("v-cloak"),w.setAttribute("data-v-app","")),x},g};function normalizeContainer(d){return isString$2(d)?document.querySelector(d):d}/*!
  2. * vue-router v4.1.6
  3. * (c) 2022 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,g){const b={};for(const A in g){const w=g[A];b[A]=isArray$8(w)?w.map(d):d(w)}return b}const noop$3=()=>{},isArray$8=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=d=>d.replace(TRAILING_SLASH_RE,"");function parseURL(d,g,b="/"){let A,w={},C="",x="";const S=g.indexOf("#");let E=g.indexOf("?");return S<E&&S>=0&&(E=-1),E>-1&&(A=g.slice(0,E),C=g.slice(E+1,S>-1?S:g.length),w=d(C)),S>-1&&(A=A||g.slice(0,S),x=g.slice(S,g.length)),A=resolveRelativePath(A!=null?A:g,b),{fullPath:A+(C&&"?")+C+x,path:A,query:w,hash:x}}function stringifyURL(d,g){const b=g.query?d(g.query):"";return g.path+(b&&"?")+b+(g.hash||"")}function stripBase(d,g){return!g||!d.toLowerCase().startsWith(g.toLowerCase())?d:d.slice(g.length)||"/"}function isSameRouteLocation(d,g,b){const A=g.matched.length-1,w=b.matched.length-1;return A>-1&&A===w&&isSameRouteRecord(g.matched[A],b.matched[w])&&isSameRouteLocationParams(g.params,b.params)&&d(g.query)===d(b.query)&&g.hash===b.hash}function isSameRouteRecord(d,g){return(d.aliasOf||d)===(g.aliasOf||g)}function isSameRouteLocationParams(d,g){if(Object.keys(d).length!==Object.keys(g).length)return!1;for(const b in d)if(!isSameRouteLocationParamsValue(d[b],g[b]))return!1;return!0}function isSameRouteLocationParamsValue(d,g){return isArray$8(d)?isEquivalentArray(d,g):isArray$8(g)?isEquivalentArray(g,d):d===g}function isEquivalentArray(d,g){return isArray$8(g)?d.length===g.length&&d.every((b,A)=>b===g[A]):d.length===1&&d[0]===g}function resolveRelativePath(d,g){if(d.startsWith("/"))return d;if(!d)return g;const b=g.split("/"),A=d.split("/");let w=b.length-1,C,x;for(C=0;C<A.length;C++)if(x=A[C],x!==".")if(x==="..")w>1&&w--;else break;return b.slice(0,w).join("/")+"/"+A.slice(C-(C===A.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 g=document.querySelector("base");d=g&&g.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),removeTrailingSlash(d)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(d,g){return d.replace(BEFORE_HASH_RE,"#")+g}function getElementPosition(d,g){const b=document.documentElement.getBoundingClientRect(),A=d.getBoundingClientRect();return{behavior:g.behavior,left:A.left-b.left-(g.left||0),top:A.top-b.top-(g.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(d){let g;if("el"in d){const b=d.el,A=typeof b=="string"&&b.startsWith("#"),w=typeof b=="string"?A?document.getElementById(b.slice(1)):document.querySelector(b):b;if(!w)return;g=getElementPosition(w,d)}else g=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(g):window.scrollTo(g.left!=null?g.left:window.pageXOffset,g.top!=null?g.top:window.pageYOffset)}function getScrollKey(d,g){return(history.state?history.state.position-g:-1)+d}const scrollPositions=new Map;function saveScrollPosition(d,g){scrollPositions.set(d,g)}function getSavedScrollPosition(d){const g=scrollPositions.get(d);return scrollPositions.delete(d),g}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(d,g){const{pathname:b,search:A,hash:w}=g,C=d.indexOf("#");if(C>-1){let S=w.includes(d.slice(C))?d.slice(C).length:1,E=w.slice(S);return E[0]!=="/"&&(E="/"+E),stripBase(E,"")}return stripBase(b,d)+A+w}function useHistoryListeners(d,g,b,A){let w=[],C=[],x=null;const S=({state:k})=>{const M=createCurrentLocation(d,location),R=b.value,F=g.value;let L=0;if(k){if(b.value=M,g.value=k,x&&x===R){x=null;return}L=F?k.position-F.position:0}else A(M);w.forEach(z=>{z(b.value,R,{delta:L,type:NavigationType.pop,direction:L?L>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function E(){x=b.value}function B(k){w.push(k);const M=()=>{const R=w.indexOf(k);R>-1&&w.splice(R,1)};return C.push(M),M}function $(){const{history:k}=window;k.state&&k.replaceState(assign$2({},k.state,{scroll:computeScrollPosition()}),"")}function P(){for(const k of C)k();C=[],window.removeEventListener("popstate",S),window.removeEventListener("beforeunload",$)}return window.addEventListener("popstate",S),window.addEventListener("beforeunload",$),{pauseListeners:E,listen:B,destroy:P}}function buildState(d,g,b,A=!1,w=!1){return{back:d,current:g,forward:b,replaced:A,position:window.history.length,scroll:w?computeScrollPosition():null}}function useHistoryStateNavigation(d){const{history:g,location:b}=window,A={value:createCurrentLocation(d,b)},w={value:g.state};w.value||C(A.value,{back:null,current:A.value,forward:null,position:g.length-1,replaced:!0,scroll:null},!0);function C(E,B,$){const P=d.indexOf("#"),k=P>-1?(b.host&&document.querySelector("base")?d:d.slice(P))+E:createBaseLocation()+d+E;try{g[$?"replaceState":"pushState"](B,"",k),w.value=B}catch(M){console.error(M),b[$?"replace":"assign"](k)}}function x(E,B){const $=assign$2({},g.state,buildState(w.value.back,E,w.value.forward,!0),B,{position:w.value.position});C(E,$,!0),A.value=E}function S(E,B){const $=assign$2({},w.value,g.state,{forward:E,scroll:computeScrollPosition()});C($.current,$,!0);const P=assign$2({},buildState(A.value,E,null),{position:$.position+1},B);C(E,P,!1),A.value=E}return{location:A,state:w,push:S,replace:x}}function createWebHistory(d){d=normalizeBase(d);const g=useHistoryStateNavigation(d),b=useHistoryListeners(d,g.state,g.location,g.replace);function A(C,x=!0){x||b.pauseListeners(),history.go(C)}const w=assign$2({location:"",base:d,go:A,createHref:createHref.bind(null,d)},g,b);return Object.defineProperty(w,"location",{enumerable:!0,get:()=>g.location.value}),Object.defineProperty(w,"state",{enumerable:!0,get:()=>g.state.value}),w}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,g){return assign$2(new Error,{type:d,[NavigationFailureSymbol]:!0},g)}function isNavigationFailure(d,g){return d instanceof Error&&NavigationFailureSymbol in d&&(g==null||!!(d.type&g))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(d,g){const b=assign$2({},BASE_PATH_PARSER_OPTIONS,g),A=[];let w=b.start?"^":"";const C=[];for(const B of d){const $=B.length?[]:[90];b.strict&&!B.length&&(w+="/");for(let P=0;P<B.length;P++){const k=B[P];let M=40+(b.sensitive?.25:0);if(k.type===0)P||(w+="/"),w+=k.value.replace(REGEX_CHARS_RE,"\\$&"),M+=40;else if(k.type===1){const{value:R,repeatable:F,optional:L,regexp:z}=k;C.push({name:R,repeatable:F,optional:L});const U=z||BASE_PARAM_PATTERN;if(U!==BASE_PARAM_PATTERN){M+=10;try{new RegExp(`(${U})`)}catch(V){throw new Error(`Invalid custom RegExp for param "${R}" (${U}): `+V.message)}}let W=F?`((?:${U})(?:/(?:${U}))*)`:`(${U})`;P||(W=L&&B.length<2?`(?:/${W})`:"/"+W),L&&(W+="?"),w+=W,M+=20,L&&(M+=-8),F&&(M+=-20),U===".*"&&(M+=-50)}$.push(M)}A.push($)}if(b.strict&&b.end){const B=A.length-1;A[B][A[B].length-1]+=.7000000000000001}b.strict||(w+="/?"),b.end?w+="$":b.strict&&(w+="(?:/|$)");const x=new RegExp(w,b.sensitive?"":"i");function S(B){const $=B.match(x),P={};if(!$)return null;for(let k=1;k<$.length;k++){const M=$[k]||"",R=C[k-1];P[R.name]=M&&R.repeatable?M.split("/"):M}return P}function E(B){let $="",P=!1;for(const k of d){(!P||!$.endsWith("/"))&&($+="/"),P=!1;for(const M of k)if(M.type===0)$+=M.value;else if(M.type===1){const{value:R,repeatable:F,optional:L}=M,z=R in B?B[R]:"";if(isArray$8(z)&&!F)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const U=isArray$8(z)?z.join("/"):z;if(!U)if(L)k.length<2&&($.endsWith("/")?$=$.slice(0,-1):P=!0);else throw new Error(`Missing required param "${R}"`);$+=U}}return $||"/"}return{re:x,score:A,keys:C,parse:S,stringify:E}}function compareScoreArray(d,g){let b=0;for(;b<d.length&&b<g.length;){const A=g[b]-d[b];if(A)return A;b++}return d.length<g.length?d.length===1&&d[0]===40+40?-1:1:d.length>g.length?g.length===1&&g[0]===40+40?1:-1:0}function comparePathParserScore(d,g){let b=0;const A=d.score,w=g.score;for(;b<A.length&&b<w.length;){const C=compareScoreArray(A[b],w[b]);if(C)return C;b++}if(Math.abs(w.length-A.length)===1){if(isLastScoreNegative(A))return 1;if(isLastScoreNegative(w))return-1}return w.length-A.length}function isLastScoreNegative(d){const g=d[d.length-1];return d.length>0&&g[g.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 "${d}"`);function g(M){throw new Error(`ERR (${b})/"${B}": ${M}`)}let b=0,A=b;const w=[];let C;function x(){C&&w.push(C),C=[]}let S=0,E,B="",$="";function P(){B&&(b===0?C.push({type:0,value:B}):b===1||b===2||b===3?(C.length>1&&(E==="*"||E==="+")&&g(`A repeatable param (${B}) must be alone in its segment. eg: '/:ids+.`),C.push({type:1,value:B,regexp:$,repeatable:E==="*"||E==="+",optional:E==="*"||E==="?"})):g("Invalid state to consume buffer"),B="")}function k(){B+=E}for(;S<d.length;){if(E=d[S++],E==="\\"&&b!==2){A=b,b=4;continue}switch(b){case 0:E==="/"?(B&&P(),x()):E===":"?(P(),b=1):k();break;case 4:k(),b=A;break;case 1:E==="("?b=2:VALID_PARAM_RE.test(E)?k():(P(),b=0,E!=="*"&&E!=="?"&&E!=="+"&&S--);break;case 2:E===")"?$[$.length-1]=="\\"?$=$.slice(0,-1)+E:b=3:$+=E;break;case 3:P(),b=0,E!=="*"&&E!=="?"&&E!=="+"&&S--,$="";break;default:g("Unknown state");break}}return b===2&&g(`Unfinished custom RegExp for param "${B}"`),P(),x(),w}function createRouteRecordMatcher(d,g,b){const A=tokensToParser(tokenizePath(d.path),b),w=assign$2(A,{record:d,parent:g,children:[],alias:[]});return g&&!w.record.aliasOf==!g.record.aliasOf&&g.children.push(w),w}function createRouterMatcher(d,g){const b=[],A=new Map;g=mergeOptions({strict:!1,end:!0,sensitive:!1},g);function w($){return A.get($)}function C($,P,k){const M=!k,R=normalizeRouteRecord($);R.aliasOf=k&&k.record;const F=mergeOptions(g,$),L=[R];if("alias"in $){const W=typeof $.alias=="string"?[$.alias]:$.alias;for(const V of W)L.push(assign$2({},R,{components:k?k.record.components:R.components,path:V,aliasOf:k?k.record:R}))}let z,U;for(const W of L){const{path:V}=W;if(P&&V[0]!=="/"){const Q=P.record.path,K=Q[Q.length-1]==="/"?"":"/";W.path=P.record.path+(V&&K+V)}if(z=createRouteRecordMatcher(W,P,F),k?k.alias.push(z):(U=U||z,U!==z&&U.alias.push(z),M&&$.name&&!isAliasRecord(z)&&x($.name)),R.children){const Q=R.children;for(let K=0;K<Q.length;K++)C(Q[K],z,k&&k.children[K])}k=k||z,(z.record.components&&Object.keys(z.record.components).length||z.record.name||z.record.redirect)&&E(z)}return U?()=>{x(U)}:noop$3}function x($){if(isRouteName($)){const P=A.get($);P&&(A.delete($),b.splice(b.indexOf(P),1),P.children.forEach(x),P.alias.forEach(x))}else{const P=b.indexOf($);P>-1&&(b.splice(P,1),$.record.name&&A.delete($.record.name),$.children.forEach(x),$.alias.forEach(x))}}function S(){return b}function E($){let P=0;for(;P<b.length&&comparePathParserScore($,b[P])>=0&&($.record.path!==b[P].record.path||!isRecordChildOf($,b[P]));)P++;b.splice(P,0,$),$.record.name&&!isAliasRecord($)&&A.set($.record.name,$)}function B($,P){let k,M={},R,F;if("name"in $&&$.name){if(k=A.get($.name),!k)throw createRouterError(1,{location:$});F=k.record.name,M=assign$2(paramsFromLocation(P.params,k.keys.filter(U=>!U.optional).map(U=>U.name)),$.params&&paramsFromLocation($.params,k.keys.map(U=>U.name))),R=k.stringify(M)}else if("path"in $)R=$.path,k=b.find(U=>U.re.test(R)),k&&(M=k.parse(R),F=k.record.name);else{if(k=P.name?A.get(P.name):b.find(U=>U.re.test(P.path)),!k)throw createRouterError(1,{location:$,currentLocation:P});F=k.record.name,M=assign$2({},P.params,$.params),R=k.stringify(M)}const L=[];let z=k;for(;z;)L.unshift(z.record),z=z.parent;return{name:F,path:R,params:M,matched:L,meta:mergeMetaFields(L)}}return d.forEach($=>C($)),{addRoute:C,resolve:B,removeRoute:x,getRoutes:S,getRecordMatcher:w}}function paramsFromLocation(d,g){const b={};for(const A of g)A in d&&(b[A]=d[A]);return b}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 g={},b=d.props||!1;if("component"in d)g.default=b;else for(const A in d.components)g[A]=typeof b=="boolean"?b:b[A];return g}function isAliasRecord(d){for(;d;){if(d.record.aliasOf)return!0;d=d.parent}return!1}function mergeMetaFields(d){return d.reduce((g,b)=>assign$2(g,b.meta),{})}function mergeOptions(d,g){const b={};for(const A in d)b[A]=A in g?g[A]:d[A];return b}function isRecordChildOf(d,g){return g.children.some(b=>b===d||isRecordChildOf(d,b))}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(g){}return""+d}function parseQuery(d){const g={};if(d===""||d==="?")return g;const A=(d[0]==="?"?d.slice(1):d).split("&");for(let w=0;w<A.length;++w){const C=A[w].replace(PLUS_RE," "),x=C.indexOf("="),S=decode$4(x<0?C:C.slice(0,x)),E=x<0?null:decode$4(C.slice(x+1));if(S in g){let B=g[S];isArray$8(B)||(B=g[S]=[B]),B.push(E)}else g[S]=E}return g}function stringifyQuery(d){let g="";for(let b in d){const A=d[b];if(b=encodeQueryKey(b),A==null){A!==void 0&&(g+=(g.length?"&":"")+b);continue}(isArray$8(A)?A.map(C=>C&&encodeQueryValue(C)):[A&&encodeQueryValue(A)]).forEach(C=>{C!==void 0&&(g+=(g.length?"&":"")+b,C!=null&&(g+="="+C))})}return g}function normalizeQuery(d){const g={};for(const b in d){const A=d[b];A!==void 0&&(g[b]=isArray$8(A)?A.map(w=>w==null?null:""+w):A==null?A:""+A)}return g}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let d=[];function g(A){return d.push(A),()=>{const w=d.indexOf(A);w>-1&&d.splice(w,1)}}function b(){d=[]}return{add:g,list:()=>d,reset:b}}function guardToPromiseFn(d,g,b,A,w){const C=A&&(A.enterCallbacks[w]=A.enterCallbacks[w]||[]);return()=>new Promise((x,S)=>{const E=P=>{P===!1?S(createRouterError(4,{from:b,to:g})):P instanceof Error?S(P):isRouteLocation(P)?S(createRouterError(2,{from:g,to:P})):(C&&A.enterCallbacks[w]===C&&typeof P=="function"&&C.push(P),x())},B=d.call(A&&A.instances[w],g,b,E);let $=Promise.resolve(B);d.length<3&&($=$.then(E)),$.catch(P=>S(P))})}function extractComponentsGuards(d,g,b,A){const w=[];for(const C of d)for(const x in C.components){let S=C.components[x];if(!(g!=="beforeRouteEnter"&&!C.instances[x]))if(isRouteComponent(S)){const B=(S.__vccOpts||S)[g];B&&w.push(guardToPromiseFn(B,b,A,C,x))}else{let E=S();w.push(()=>E.then(B=>{if(!B)return Promise.reject(new Error(`Couldn't resolve component "${x}" at "${C.path}"`));const $=isESModule(B)?B.default:B;C.components[x]=$;const k=($.__vccOpts||$)[g];return k&&guardToPromiseFn(k,b,A,C,x)()}))}}return w}function isRouteComponent(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function useLink(d){const g=inject(routerKey),b=inject(routeLocationKey),A=computed(()=>g.resolve(unref(d.to))),w=computed(()=>{const{matched:E}=A.value,{length:B}=E,$=E[B-1],P=b.matched;if(!$||!P.length)return-1;const k=P.findIndex(isSameRouteRecord.bind(null,$));if(k>-1)return k;const M=getOriginalPath(E[B-2]);return B>1&&getOriginalPath($)===M&&P[P.length-1].path!==M?P.findIndex(isSameRouteRecord.bind(null,E[B-2])):k}),C=computed(()=>w.value>-1&&includesParams(b.params,A.value.params)),x=computed(()=>w.value>-1&&w.value===b.matched.length-1&&isSameRouteLocationParams(b.params,A.value.params));function S(E={}){return guardEvent(E)?g[unref(d.replace)?"replace":"push"](unref(d.to)).catch(noop$3):Promise.resolve()}return{route:A,href:computed(()=>A.value.href),isActive:C,isExactActive:x,navigate:S}}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:g}){const b=reactive(useLink(d)),{options:A}=inject(routerKey),w=computed(()=>({[getLinkClass(d.activeClass,A.linkActiveClass,"router-link-active")]:b.isActive,[getLinkClass(d.exactActiveClass,A.linkExactActiveClass,"router-link-exact-active")]:b.isExactActive}));return()=>{const C=g.default&&g.default(b);return d.custom?C:h$1("a",{"aria-current":b.isExactActive?d.ariaCurrentValue:null,href:b.href,onClick:b.navigate,class:w.value},C)}}}),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 g=d.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(g))return}return d.preventDefault&&d.preventDefault(),!0}}function includesParams(d,g){for(const b in g){const A=g[b],w=d[b];if(typeof A=="string"){if(A!==w)return!1}else if(!isArray$8(w)||w.length!==A.length||A.some((C,x)=>C!==w[x]))return!1}return!0}function getOriginalPath(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const getLinkClass=(d,g,b)=>d!=null?d:g!=null?g:b,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:g,slots:b}){const A=inject(routerViewLocationKey),w=computed(()=>d.route||A.value),C=inject(viewDepthKey,0),x=computed(()=>{let B=unref(C);const{matched:$}=w.value;let P;for(;(P=$[B])&&!P.components;)B++;return B}),S=computed(()=>w.value.matched[x.value]);provide(viewDepthKey,computed(()=>x.value+1)),provide(matchedRouteKey,S),provide(routerViewLocationKey,w);const E=ref();return watch(()=>[E.value,S.value,d.name],([B,$,P],[k,M,R])=>{$&&($.instances[P]=B,M&&M!==$&&B&&B===k&&($.leaveGuards.size||($.leaveGuards=M.leaveGuards),$.updateGuards.size||($.updateGuards=M.updateGuards))),B&&$&&(!M||!isSameRouteRecord($,M)||!k)&&($.enterCallbacks[P]||[]).forEach(F=>F(B))},{flush:"post"}),()=>{const B=w.value,$=d.name,P=S.value,k=P&&P.components[$];if(!k)return normalizeSlot(b.default,{Component:k,route:B});const M=P.props[$],R=M?M===!0?B.params:typeof M=="function"?M(B):M:null,L=h$1(k,assign$2({},R,g,{onVnodeUnmounted:z=>{z.component.isUnmounted&&(P.instances[$]=null)},ref:E}));return normalizeSlot(b.default,{Component:L,route:B})||L}}});function normalizeSlot(d,g){if(!d)return null;const b=d(g);return b.length===1?b[0]:b}const RouterView=RouterViewImpl;function createRouter(d){const g=createRouterMatcher(d.routes,d),b=d.parseQuery||parseQuery,A=d.stringifyQuery||stringifyQuery,w=d.history,C=useCallbacks(),x=useCallbacks(),S=useCallbacks(),E=shallowRef(START_LOCATION_NORMALIZED);let B=START_LOCATION_NORMALIZED;isBrowser$3&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const $=applyToParams.bind(null,Te=>""+Te),P=applyToParams.bind(null,encodeParam),k=applyToParams.bind(null,decode$4);function M(Te,Le){let Re,$e;return isRouteName(Te)?(Re=g.getRecordMatcher(Te),$e=Le):$e=Te,g.addRoute($e,Re)}function R(Te){const Le=g.getRecordMatcher(Te);Le&&g.removeRoute(Le)}function F(){return g.getRoutes().map(Te=>Te.record)}function L(Te){return!!g.getRecordMatcher(Te)}function z(Te,Le){if(Le=assign$2({},Le||E.value),typeof Te=="string"){const he=parseURL(b,Te,Le.path),we=g.resolve({path:he.path},Le),Be=w.createHref(he.fullPath);return assign$2(he,we,{params:k(we.params),hash:decode$4(he.hash),redirectedFrom:void 0,href:Be})}let Re;if("path"in Te)Re=assign$2({},Te,{path:parseURL(b,Te.path,Le.path).path});else{const he=assign$2({},Te.params);for(const we in he)he[we]==null&&delete he[we];Re=assign$2({},Te,{params:P(Te.params)}),Le.params=P(Le.params)}const $e=g.resolve(Re,Le),qe=Te.hash||"";$e.params=$(k($e.params));const rt=stringifyURL(A,assign$2({},Te,{hash:encodeHash(qe),path:$e.path})),Xe=w.createHref(rt);return assign$2({fullPath:rt,hash:qe,query:A===stringifyQuery?normalizeQuery(Te.query):Te.query||{}},$e,{redirectedFrom:void 0,href:Xe})}function U(Te){return typeof Te=="string"?parseURL(b,Te,E.value.path):assign$2({},Te)}function W(Te,Le){if(B!==Te)return createRouterError(8,{from:Le,to:Te})}function V(Te){return G(Te)}function Q(Te){return V(assign$2(U(Te),{replace:!0}))}function K(Te){const Le=Te.matched[Te.matched.length-1];if(Le&&Le.redirect){const{redirect:Re}=Le;let $e=typeof Re=="function"?Re(Te):Re;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=U($e):{path:$e},$e.params={}),assign$2({query:Te.query,hash:Te.hash,params:"path"in $e?{}:Te.params},$e)}}function G(Te,Le){const Re=B=z(Te),$e=E.value,qe=Te.state,rt=Te.force,Xe=Te.replace===!0,he=K(Re);if(he)return G(assign$2(U(he),{state:typeof he=="object"?assign$2({},qe,he.state):qe,force:rt,replace:Xe}),Le||Re);const we=Re;we.redirectedFrom=Le;let Be;return!rt&&isSameRouteLocation(A,$e,Re)&&(Be=createRouterError(16,{to:we,from:$e}),ye($e,$e,!0,!1)),(Be?Promise.resolve(Be):J(we,$e)).catch(Ne=>isNavigationFailure(Ne)?isNavigationFailure(Ne,2)?Ne:ae(Ne):te(Ne,we,$e)).then(Ne=>{if(Ne){if(isNavigationFailure(Ne,2))return G(assign$2({replace:Xe},U(Ne.to),{state:typeof Ne.to=="object"?assign$2({},qe,Ne.to.state):qe,force:rt}),Le||we)}else Ne=fe(we,$e,!0,Xe,qe);return re(we,$e,Ne),Ne})}function X(Te,Le){const Re=W(Te,Le);return Re?Promise.reject(Re):Promise.resolve()}function J(Te,Le){let Re;const[$e,qe,rt]=extractChangingRecords(Te,Le);Re=extractComponentsGuards($e.reverse(),"beforeRouteLeave",Te,Le);for(const he of $e)he.leaveGuards.forEach(we=>{Re.push(guardToPromiseFn(we,Te,Le))});const Xe=X.bind(null,Te,Le);return Re.push(Xe),runGuardQueue(Re).then(()=>{Re=[];for(const he of C.list())Re.push(guardToPromiseFn(he,Te,Le));return Re.push(Xe),runGuardQueue(Re)}).then(()=>{Re=extractComponentsGuards(qe,"beforeRouteUpdate",Te,Le);for(const he of qe)he.updateGuards.forEach(we=>{Re.push(guardToPromiseFn(we,Te,Le))});return Re.push(Xe),runGuardQueue(Re)}).then(()=>{Re=[];for(const he of Te.matched)if(he.beforeEnter&&!Le.matched.includes(he))if(isArray$8(he.beforeEnter))for(const we of he.beforeEnter)Re.push(guardToPromiseFn(we,Te,Le));else Re.push(guardToPromiseFn(he.beforeEnter,Te,Le));return Re.push(Xe),runGuardQueue(Re)}).then(()=>(Te.matched.forEach(he=>he.enterCallbacks={}),Re=extractComponentsGuards(rt,"beforeRouteEnter",Te,Le),Re.push(Xe),runGuardQueue(Re))).then(()=>{Re=[];for(const he of x.list())Re.push(guardToPromiseFn(he,Te,Le));return Re.push(Xe),runGuardQueue(Re)}).catch(he=>isNavigationFailure(he,8)?he:Promise.reject(he))}function re(Te,Le,Re){for(const $e of S.list())$e(Te,Le,Re)}function fe(Te,Le,Re,$e,qe){const rt=W(Te,Le);if(rt)return rt;const Xe=Le===START_LOCATION_NORMALIZED,he=isBrowser$3?history.state:{};Re&&($e||Xe?w.replace(Te.fullPath,assign$2({scroll:Xe&&he&&he.scroll},qe)):w.push(Te.fullPath,qe)),E.value=Te,ye(Te,Le,Re,Xe),ae()}let Z;function ie(){Z||(Z=w.listen((Te,Le,Re)=>{if(!ht.listening)return;const $e=z(Te),qe=K($e);if(qe){G(assign$2(qe,{replace:!0}),$e).catch(noop$3);return}B=$e;const rt=E.value;isBrowser$3&&saveScrollPosition(getScrollKey(rt.fullPath,Re.delta),computeScrollPosition()),J($e,rt).catch(Xe=>isNavigationFailure(Xe,12)?Xe:isNavigationFailure(Xe,2)?(G(Xe.to,$e).then(he=>{isNavigationFailure(he,20)&&!Re.delta&&Re.type===NavigationType.pop&&w.go(-1,!1)}).catch(noop$3),Promise.reject()):(Re.delta&&w.go(-Re.delta,!1),te(Xe,$e,rt))).then(Xe=>{Xe=Xe||fe($e,rt,!1),Xe&&(Re.delta&&!isNavigationFailure(Xe,8)?w.go(-Re.delta,!1):Re.type===NavigationType.pop&&isNavigationFailure(Xe,20)&&w.go(-1,!1)),re($e,rt,Xe)}).catch(noop$3)}))}let ce=useCallbacks(),me=useCallbacks(),ne;function te(Te,Le,Re){ae(Te);const $e=me.list();return $e.length?$e.forEach(qe=>qe(Te,Le,Re)):console.error(Te),Promise.reject(Te)}function ue(){return ne&&E.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Te,Le)=>{ce.add([Te,Le])})}function ae(Te){return ne||(ne=!Te,ie(),ce.list().forEach(([Le,Re])=>Te?Re(Te):Le()),ce.reset()),Te}function ye(Te,Le,Re,$e){const{scrollBehavior:qe}=d;if(!isBrowser$3||!qe)return Promise.resolve();const rt=!Re&&getSavedScrollPosition(getScrollKey(Te.fullPath,0))||($e||!Re)&&history.state&&history.state.scroll||null;return nextTick().then(()=>qe(Te,Le,rt)).then(Xe=>Xe&&scrollToPosition(Xe)).catch(Xe=>te(Xe,Te,Le))}const Oe=Te=>w.go(Te);let Ye;const et=new Set,ht={currentRoute:E,listening:!0,addRoute:M,removeRoute:R,hasRoute:L,getRoutes:F,resolve:z,options:d,push:V,replace:Q,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:C.add,beforeResolve:x.add,afterEach:S.add,onError:me.add,isReady:ue,install(Te){const Le=this;Te.component("RouterLink",RouterLink),Te.component("RouterView",RouterView),Te.config.globalProperties.$router=Le,Object.defineProperty(Te.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(E)}),isBrowser$3&&!Ye&&E.value===START_LOCATION_NORMALIZED&&(Ye=!0,V(w.location).catch(qe=>{}));const Re={};for(const qe in START_LOCATION_NORMALIZED)Re[qe]=computed(()=>E.value[qe]);Te.provide(routerKey,Le),Te.provide(routeLocationKey,reactive(Re)),Te.provide(routerViewLocationKey,E);const $e=Te.unmount;et.add(Te),Te.unmount=function(){et.delete(Te),et.size<1&&(B=START_LOCATION_NORMALIZED,Z&&Z(),Z=null,E.value=START_LOCATION_NORMALIZED,Ye=!1,ne=!1),$e()}}};return ht}function runGuardQueue(d){return d.reduce((g,b)=>g.then(()=>b()),Promise.resolve())}function extractChangingRecords(d,g){const b=[],A=[],w=[],C=Math.max(g.matched.length,d.matched.length);for(let x=0;x<C;x++){const S=g.matched[x];S&&(d.matched.find(B=>isSameRouteRecord(B,S))?A.push(S):b.push(S));const E=d.matched[x];E&&(g.matched.find(B=>isSameRouteRecord(B,E))||w.push(E))}return[b,A,w]}function useRouter(){return inject(routerKey)}function useRoute$1(){return inject(routeLocationKey)}const isDef=d=>d!=null,isFunction$4=d=>typeof d=="function",isObject$5=d=>d!==null&&typeof d=="object",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 noop$2(){}const extend$1=Object.assign,inBrowser$3=typeof window<"u";function get$1(d,g){const b=g.split(".");let A=d;return b.forEach(w=>{var C;A=isObject$5(A)&&(C=A[w])!=null?C:""}),A}function pick$1(d,g,b){return g.reduce((A,w)=>((!b||d[w]!==void 0)&&(A[w]=d[w]),A),{})}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,g)=>({top:0,left:0,right:d,bottom:g,width:d,height:g}),useRect=d=>{const g=unref(d);if(isWindow$1(g)){const b=g.innerWidth,A=g.innerHeight;return makeDOMRect(b,A)}return g!=null&&g.getBoundingClientRect?g.getBoundingClientRect():makeDOMRect(0,0)};function useParent$1(d){const g=inject(d,null);if(g){const b=getCurrentInstance(),{link:A,unlink:w,internalChildren:C}=g;A(b),onUnmounted(()=>w(b));const x=computed(()=>C.indexOf(b));return{parent:g,index:x}}return{parent:null,index:ref(-1)}}function flattenVNodes(d){const g=[],b=A=>{Array.isArray(A)&&A.forEach(w=>{var C;isVNode(w)&&(g.push(w),(C=w.component)!=null&&C.subTree&&(g.push(w.component.subTree),b(w.component.subTree.children)),w.children&&b(w.children))})};return b(d),g}var findVNodeIndex=(d,g)=>{const b=d.indexOf(g);return b===-1?d.findIndex(A=>g.key!==void 0&&g.key!==null&&A.type===g.type&&A.key===g.key):b};function sortChildren(d,g,b){const A=flattenVNodes(d.subTree.children);b.sort((C,x)=>findVNodeIndex(A,C.vnode)-findVNodeIndex(A,x.vnode));const w=b.map(C=>C.proxy);g.sort((C,x)=>{const S=w.indexOf(C),E=w.indexOf(x);return S-E})}function useChildren$1(d){const g=reactive([]),b=reactive([]),A=getCurrentInstance();return{children:g,linkChildren:C=>{provide(d,Object.assign({link:E=>{E.proxy&&(b.push(E),g.push(E.proxy),sortChildren(A,g,b))},unlink:E=>{const B=b.indexOf(E);g.splice(B,1),b.splice(B,1)},children:g,internalChildren:b},C))}}}function onMountedOrActivated(d){let g;onMounted(()=>{d(),nextTick(()=>{g=!0})}),onActivated(()=>{g&&d()})}function useEventListener$2(d,g,b={}){if(!inBrowser$2)return;const{target:A=window,passive:w=!1,capture:C=!1}=b;let x=!1,S;const E=P=>{if(x)return;const k=unref(P);k&&!S&&(k.addEventListener(d,g,{capture:C,passive:w}),S=!0)},B=P=>{if(x)return;const k=unref(P);k&&S&&(k.removeEventListener(d,g,C),S=!1)};onUnmounted(()=>B(A)),onDeactivated(()=>B(A)),onMountedOrActivated(()=>E(A));let $;return isRef(A)&&($=watch(A,(P,k)=>{B(k),E(P)})),()=>{$==null||$(),B(A),x=!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,g=defaultRoot){let b=d;for(;b&&b!==g&&isElement$2(b);){const{overflowY:A}=window.getComputedStyle(b);if(overflowScrollReg.test(A))return b;b=b.parentNode}return g}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,g){(typeof d.cancelable!="boolean"||d.cancelable)&&d.preventDefault(),g&&stopPropagation(d)}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(d){if(isDef(d))return isNumeric(d)?`${d}px`:String(d)}function getSizeStyle(d){if(isDef(d)){if(Array.isArray(d))return{width:addUnit(d[0]),height:addUnit(d[1])};const g=addUnit(d);return{width:g,height:g}}}function getZIndexStyle(d){const g={};return d!==void 0&&(g.zIndex=+d),g}const camelizeRE=/-(\w)/g,camelize=d=>d.replace(camelizeRE,(g,b)=>b.toUpperCase()),kebabCase$1=d=>d.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),{hasOwnProperty:hasOwnProperty$d}=Object.prototype;function assignKey(d,g,b){const A=g[b];isDef(A)&&(!hasOwnProperty$d.call(d,b)||!isObject$5(A)?d[b]=A:d[b]=deepAssign(Object(d[b]),A))}function deepAssign(d,g){return Object.keys(g).forEach(b=>{assignKey(d,g,b)}),d}var stdin_default$d={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(d,g)=>`${d}年${g}月`,rangePrompt:d=>`最多选择 ${d} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:d=>`${d}折`,condition:d=>`满${d}元可用`},vanCouponCell:{title:"优惠券",count:d=>`${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,g){lang.value=d,this.add({[d]:g})},add(d={}){deepAssign(messages,d)}};var stdin_default$c=Locale;function createTranslate(d){const g=camelize(d)+".";return(b,...A)=>{const w=stdin_default$c.messages(),C=get$1(w,g+b)||get$1(w,b);return isFunction$4(C)?C(...A):C}}function genBem(d,g){return g?typeof g=="string"?` ${d}--${g}`:Array.isArray(g)?g.reduce((b,A)=>b+genBem(d,A),""):Object.keys(g).reduce((b,A)=>b+(g[A]?genBem(d,A):""),""):""}function createBEM(d){return(g,b)=>(g&&typeof g!="string"&&(b=g,g=""),g=g?`${d}__${g}`:d,`${g}${genBem(g,b)}`)}function createNamespace$1(d){const g=`van-${d}`;return[g,createBEM(g),createTranslate(g)]}const BORDER="van-hairline",BORDER_TOP=`${BORDER}--top`,BORDER_LEFT=`${BORDER}--left`,BORDER_BOTTOM=`${BORDER}--bottom`,BORDER_SURROUND=`${BORDER}--surround`,HAPTICS_FEEDBACK="van-haptics-feedback";function callInterceptor(d,{args:g=[],done:b,canceled:A}){if(d){const w=d.apply(null,g);isPromise(w)?w.then(C=>{C?b():A&&A()}).catch(noop$2):w?b():A&&A()}else b()}function withInstall$1(d){return d.install=g=>{const{name:b}=d;b&&(g.component(b,d),g.component(camelize(`-${b}`),d))},d}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(d){const g=inject(POPUP_TOGGLE_KEY,null);g&&watch(g,b=>{b&&d()})}const useHeight=(d,g)=>{const b=ref(),A=()=>{b.value=useRect(d).height};return onMounted(()=>{if(nextTick(A),g)for(let w=1;w<=3;w++)setTimeout(A,100*w)}),onPopupReopen(()=>nextTick(A)),watch([windowWidth,windowHeight],A),b};function usePlaceholder(d,g){const b=useHeight(d,!0);return A=>createVNode("div",{class:g("placeholder"),style:{height:b.value?`${b.value}px`:void 0}},[A()])}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:g}){const b=ref(),A=usePlaceholder(b,bem$c),{linkChildren:w}=useChildren$1(ACTION_BAR_KEY);w();const C=()=>{var x;return createVNode("div",{ref:b,class:[bem$c(),{"van-safe-area-bottom":d.safeAreaInsetBottom}]},[(x=g.default)==null?void 0:x.call(g)])};return()=>d.placeholder?A(C):C()}});const ActionBar=withInstall$1(stdin_default$b);function useExpose(d){const g=getCurrentInstance();g&&extend$1(g.proxy,d)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:d,url:g,replace:b,$router:A}){d&&A?A[b?"replace":"push"](d):g&&(b?location.replace(g):location.href=g)}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:g}){const b=()=>{if(g.content)return!0;const{content:S,showZero:E}=d;return isDef(S)&&S!==""&&(E||S!==0&&S!=="0")},A=()=>{const{dot:S,max:E,content:B}=d;if(!S&&b())return g.content?g.content():isDef(E)&&isNumeric(B)&&+B>+E?`${E}+`:B},w=S=>S.startsWith("-")?S.replace("-",""):`-${S}`,C=computed(()=>{const S={background:d.color};if(d.offset){const[E,B]=d.offset,{position:$}=d,[P,k]=$.split("-");g.default?(typeof B=="number"?S[P]=addUnit(P==="top"?B:-B):S[P]=P==="top"?addUnit(B):w(B),typeof E=="number"?S[k]=addUnit(k==="left"?E:-E):S[k]=k==="left"?addUnit(E):w(E)):(S.marginTop=addUnit(B),S.marginLeft=addUnit(E))}return S}),x=()=>{if(b()||d.dot)return createVNode("div",{class:bem$b([d.position,{dot:d.dot,fixed:!!g.default}]),style:C.value},[A()])};return()=>{if(g.default){const{tag:S}=d;return createVNode(S,{class:bem$b("wrapper")},{default:()=>[g.default(),x()]})}return x()}}});const Badge=withInstall$1(stdin_default$a);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=d=>{globalZIndex=d},[name$a,bem$a]=createNamespace$1("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$a),configProviderProps$1={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,iconPrefix:String};function mapThemeVarsToCSSVars(d){const g={};return Object.keys(d).forEach(b=>{g[`--van-${kebabCase$1(b)}`]=d[b]}),g}defineComponent({name:name$a,props:configProviderProps$1,setup(d,{slots:g}){const b=computed(()=>mapThemeVarsToCSSVars(extend$1({},d.themeVars,d.theme==="dark"?d.themeVarsDark:d.themeVarsLight)));if(inBrowser$3){const A=()=>{document.documentElement.classList.add(`van-theme-${d.theme}`)},w=(C=d.theme)=>{document.documentElement.classList.remove(`van-theme-${C}`)};watch(()=>d.theme,(C,x)=>{x&&w(x),A()},{immediate:!0}),onActivated(A),onDeactivated(w),onBeforeUnmount(w)}return provide(CONFIG_PROVIDER_KEY,d),watchEffect(()=>{d.zIndex!==void 0&&setGlobalZIndex(d.zIndex)}),()=>createVNode(d.tag,{class:bem$a(),style:b.value},{default:()=>{var A;return[(A=g.default)==null?void 0:A.call(g)]}})}});const[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:g}){const b=inject(CONFIG_PROVIDER_KEY,null),A=computed(()=>d.classPrefix||(b==null?void 0:b.iconPrefix)||bem$9());return()=>{const{tag:w,dot:C,name:x,size:S,badge:E,color:B}=d,$=isImage(x);return createVNode(Badge,mergeProps({dot:C,tag:w,class:[A.value,$?"":`${A.value}-${x}`],style:{color:B,fontSize:addUnit(S)},content:E},d.badgeProps),{default:()=>{var P;return[(P=g.default)==null?void 0:P.call(g),$&&createVNode("img",{class:bem$9("image"),src:x},null)]}})}}});const Icon$1=withInstall$1(stdin_default$9),[name$8,bem$8]=createNamespace$1("loading"),SpinIcon=Array(12).fill(null).map((d,g)=>createVNode("i",{class:bem$8("line",String(g+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:g}){const b=computed(()=>extend$1({color:d.color},getSizeStyle(d.size))),A=()=>{const C=d.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$8("spinner",d.type),style:b.value},[g.icon?g.icon():C])},w=()=>{var C;if(g.default)return createVNode("span",{class:bem$8("text"),style:{fontSize:addUnit(d.textSize),color:(C=d.textColor)!=null?C:d.color}},[g.default()])};return()=>{const{type:C,vertical:x}=d;return createVNode("div",{class:bem$8([C,{vertical:x}]),"aria-live":"polite","aria-busy":!0},[A(),w()])}}});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:g,slots:b}){const A=useRoute(),w=()=>b.loading?b.loading():createVNode(Loading,{size:d.loadingSize,type:d.loadingType,class:bem$7("loading")},null),C=()=>{if(d.loading)return w();if(b.icon)return createVNode("div",{class:bem$7("icon")},[b.icon()]);if(d.icon)return createVNode(Icon$1,{name:d.icon,class:bem$7("icon"),classPrefix:d.iconPrefix},null)},x=()=>{let B;if(d.loading?B=d.loadingText:B=b.default?b.default():d.text,B)return createVNode("span",{class:bem$7("text")},[B])},S=()=>{const{color:B,plain:$}=d;if(B){const P={color:$?B:"white"};return $||(P.background=B),B.includes("gradient")?P.border=0:P.borderColor=B,P}},E=B=>{d.loading?preventDefault$1(B):d.disabled||(g("click",B),A())};return()=>{const{tag:B,type:$,size:P,block:k,round:M,plain:R,square:F,loading:L,disabled:z,hairline:U,nativeType:W,iconPosition:V}=d,Q=[bem$7([$,P,{plain:R,block:k,round:M,square:F,loading:L,disabled:z,hairline:U}]),{[BORDER_SURROUND]:U}];return createVNode(B,{type:W,class:Q,style:S(),disabled:z,onClick:E},{default:()=>[createVNode("div",{class:bem$7("content")},[V==="left"&&C(),x(),V==="right"&&C()])]})}}});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:g}){const b=useRoute(),{parent:A,index:w}=useParent$1(ACTION_BAR_KEY),C=computed(()=>{if(A){const S=A.children[w.value-1];return!(S&&"isButton"in S)}}),x=computed(()=>{if(A){const S=A.children[w.value+1];return!(S&&"isButton"in S)}});return useExpose({isButton:!0}),()=>{const{type:S,icon:E,text:B,color:$,loading:P,disabled:k}=d;return createVNode(Button$1,{class:bem$6([S,{last:x.value,first:C.value}]),size:"large",type:S,icon:E,color:$,loading:P,disabled:k,onClick:b},{default:()=>[g.default?g.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,g){return d>g?"horizontal":g>d?"vertical":""}function useTouch(){const d=ref(0),g=ref(0),b=ref(0),A=ref(0),w=ref(0),C=ref(0),x=ref(""),S=()=>x.value==="vertical",E=()=>x.value==="horizontal",B=()=>{b.value=0,A.value=0,w.value=0,C.value=0,x.value=""};return{move:k=>{const M=k.touches[0];b.value=(M.clientX<0?0:M.clientX)-d.value,A.value=M.clientY-g.value,w.value=Math.abs(b.value),C.value=Math.abs(A.value);const R=10;(!x.value||w.value<R&&C.value<R)&&(x.value=getDirection(w.value,C.value))},start:k=>{B(),d.value=k.touches[0].clientX,g.value=k.touches[0].clientY},reset:B,startX:d,startY:g,deltaX:b,deltaY:A,offsetX:w,offsetY:C,direction:x,isVertical:S,isHorizontal:E}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(d,g){const b=useTouch(),A="01",w="10",C=$=>{b.move($);const P=b.deltaY.value>0?w:A,k=getScrollParent$1($.target,d.value),{scrollHeight:M,offsetHeight:R,scrollTop:F}=k;let L="11";F===0?L=R>=M?"00":"01":F+R>=M&&(L="10"),L!=="11"&&b.isVertical()&&!(parseInt(L,2)&parseInt(P,2))&&preventDefault$1($,!0)},x=()=>{document.addEventListener("touchstart",b.start),document.addEventListener("touchmove",C,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},S=()=>{totalLockCount&&(document.removeEventListener("touchstart",b.start),document.removeEventListener("touchmove",C),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},E=()=>g()&&x(),B=()=>g()&&S();onMountedOrActivated(E),onDeactivated(B),onBeforeUnmount(B),watch(g,$=>{$?x():S()})}function useLazyRender(d){const g=ref(!1);return watch(d,b=>{b&&(g.value=b)},{immediate:!0}),b=>()=>g.value?b():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:g}){const b=ref(),A=useLazyRender(()=>d.show||!d.lazyRender),w=x=>{d.lockScroll&&preventDefault$1(x,!0)},C=A(()=>{var x;const S=extend$1(getZIndexStyle(d.zIndex),d.customStyle);return isDef(d.duration)&&(S.animationDuration=`${d.duration}s`),withDirectives(createVNode("div",{ref:b,style:S,class:[bem$5(),d.className]},[(x=g.default)==null?void 0:x.call(g)]),[[vShow,d.show]])});return useEventListener$2("touchmove",w,{target:b}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:C})}});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:g,attrs:b,slots:A}){let w,C;const x=ref(),S=ref(),E=useLazyRender(()=>d.show||!d.lazyRender),B=computed(()=>{const Q={zIndex:x.value};if(isDef(d.duration)){const K=d.position==="center"?"animationDuration":"transitionDuration";Q[K]=`${d.duration}s`}return Q}),$=()=>{w||(w=!0,x.value=d.zIndex!==void 0?+d.zIndex:useGlobalZIndex(),g("open"))},P=()=>{w&&callInterceptor(d.beforeClose,{done(){w=!1,g("close"),g("update:show",!1)}})},k=Q=>{g("clickOverlay",Q),d.closeOnClickOverlay&&P()},M=()=>{if(d.overlay)return createVNode(Overlay,{show:d.show,class:d.overlayClass,zIndex:x.value,duration:d.duration,customStyle:d.overlayStyle,role:d.closeOnClickOverlay?"button":void 0,tabindex:d.closeOnClickOverlay?0:void 0,onClick:k},{default:A["overlay-content"]})},R=Q=>{g("clickCloseIcon",Q),P()},F=()=>{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:R},null)},L=()=>g("opened"),z=()=>g("closed"),U=Q=>g("keydown",Q),W=E(()=>{var Q;const{round:K,position:G,safeAreaInsetTop:X,safeAreaInsetBottom:J}=d;return withDirectives(createVNode("div",mergeProps({ref:S,style:B.value,role:"dialog",tabindex:0,class:[bem$4({round:K,[G]:G}),{"van-safe-area-top":X,"van-safe-area-bottom":J}],onKeydown:U},b),[(Q=A.default)==null?void 0:Q.call(A),F()]),[[vShow,d.show]])}),V=()=>{const{position:Q,transition:K,transitionAppear:G}=d,X=Q==="center"?"van-fade":`van-popup-slide-${Q}`;return createVNode(Transition,{name:K||X,appear:G,onAfterEnter:L,onAfterLeave:z},{default:W})};return watch(()=>d.show,Q=>{Q&&!w&&($(),b.tabindex===0&&nextTick(()=>{var K;(K=S.value)==null||K.focus()})),!Q&&w&&(w=!1,g("close"))}),useExpose({popupRef:S}),useLockScroll(S,()=>d.show&&d.lockScroll),useEventListener$2("popstate",()=>{d.closeOnPopstate&&(P(),C=!1)}),onMounted(()=>{d.show&&$()}),onActivated(()=>{C&&(g("update:show",!0),C=!1)}),onDeactivated(()=>{d.show&&d.teleport&&(P(),C=!0)}),provide(POPUP_TOGGLE_KEY,()=>d.show),()=>d.teleport?createVNode(Teleport,{to:d.teleport},{default:()=>[M(),V()]}):createVNode(Fragment,null,[M(),V()])}});const Popup=withInstall$1(stdin_default$4);let current=0;function useId(){const d=getCurrentInstance(),{name:g="unknown"}=(d==null?void 0:d.type)||{};return`${g}-${++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:g,slots:b}){let A,w=!1;const C=()=>{const P=d.show&&d.forbidClick;w!==P&&(w=P,lockClick(w))},x=P=>g("update:show",P),S=()=>{d.closeOnClick&&x(!1)},E=()=>clearTimeout(A),B=()=>{const{icon:P,type:k,iconSize:M,iconPrefix:R,loadingType:F}=d;if(P||k==="success"||k==="fail")return createVNode(Icon$1,{name:P||k,size:M,class:bem$3("icon"),classPrefix:R},null);if(k==="loading")return createVNode(Loading,{class:bem$3("loading"),size:M,type:F},null)},$=()=>{const{type:P,message:k}=d;if(b.message)return createVNode("div",{class:bem$3("text")},[b.message()]);if(isDef(k)&&k!=="")return P==="html"?createVNode("div",{key:0,class:bem$3("text"),innerHTML:String(k)},null):createVNode("div",{class:bem$3("text")},[k])};return watch(()=>[d.show,d.forbidClick],C),watch(()=>[d.show,d.type,d.message,d.duration],()=>{E(),d.show&&d.duration>0&&(A=setTimeout(()=>{x(!1)},d.duration))}),onMounted(C),onUnmounted(C),()=>createVNode(Popup,mergeProps({class:[bem$3([d.position,d.wordBreak==="normal"?"break-normal":d.wordBreak,{[d.type]:!d.icon}]),d.className],lockScroll:!1,onClick:S,onClosed:E,"onUpdate:show":x},pick$1(d,popupInheritProps)),{default:()=>[B(),$()]})}});function usePopupState(){const d=reactive({show:!1}),g=w=>{d.show=w},b=w=>{extend$1(d,w,{transitionAppear:!0}),g(!0)},A=()=>g(!1);return useExpose({open:b,close:A,toggle:g}),{open:b,close:A,state:d,toggle:g}}function mountComponent(d){const g=createApp(d),b=document.createElement("div");return document.body.appendChild(b),{instance:g.mount(b),unmount(){g.unmount(),document.body.removeChild(b)}}}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:g}=mountComponent({setup(){const b=ref(""),{open:A,state:w,close:C,toggle:x}=usePopupState(),S=()=>{},E=()=>createVNode(stdin_default$3,mergeProps(w,{onClosed:S,"onUpdate:show":x}),null);return watch(b,B=>{w.message=B}),getCurrentInstance().render=E,{open:A,close:C,message:b}}});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 g=getInstance(),b=parseOptions(d);return g.open(extend$1({},currentOptions$1,defaultOptionsMap.get(b.type||currentOptions$1.type),b)),g}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:g}){const b=()=>{const z=g.description?g.description():d.description;if(z)return createVNode("p",{class:bem$2("description")},[z])},A=()=>{if(g.default)return createVNode("div",{class:bem$2("bottom")},[g.default()])},w=useId(),C=z=>`${w}-${z}`,x=z=>`url(#${C(z)})`,S=(z,U,W)=>createVNode("stop",{"stop-color":z,offset:`${U}%`,"stop-opacity":W},null),E=(z,U)=>[S(z,0),S(U,100)],B=z=>[createVNode("defs",null,[createVNode("radialGradient",{id:C(z),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[S("#EBEDF0",0),S("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:x(z),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],$=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:C("a"),x1:"64%",y1:"100%",x2:"64%"},[S("#FFF",0,.5),S("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:x("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:x("a")},null)])],P=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:C("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[S("#F2F3F5",0,.3),S("#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:x("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:x("b")},null)])],k=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:C(1),x1:"64%",y1:"100%",x2:"64%"},[S("#FFF",0,.5),S("#F2F3F5",100)]),createVNode("linearGradient",{id:C(2),x1:"50%",x2:"50%",y2:"84%"},[S("#EBEDF0",0),S("#DCDEE0",100,0)]),createVNode("linearGradient",{id:C(3),x1:"100%",x2:"100%",y2:"100%"},[E("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:C(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[S("#EBEDF0",0),S("#FFF",100,0)])]),createVNode("g",{fill:"none"},[$(),createVNode("path",{fill:x(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:x(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:x(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:x(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:x(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:x(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)])])]),M=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:C(5)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:C(6)},[E("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:C(7)},[E("#EAEDF1","#DCDEE0")])]),$(),P(),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:x(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:x(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:x(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)])]),R=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:C(8)},[E("#EAEDF1","#DCDEE0")])]),$(),P(),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:x(8)},null)]),F=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:C(9)},[E("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:C(10)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:C(11)},[E("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:C(12)},[E("#FFF","#F7F8FA")])]),$(),P(),B("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[createVNode("rect",{fill:x(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:x(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:x(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:x(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:x(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),L=()=>{var z;if(g.image)return g.image();const U={error:R,search:F,network:k,default:M};return((z=U[d.image])==null?void 0:z.call(U))||createVNode("img",{src:d.image},null)};return()=>createVNode("div",{class:bem$2()},[createVNode("div",{class:bem$2("image"),style:getSizeStyle(d.imageSize)},[L()]),b(),A()])}});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:g,slots:b}){const A=ref(),w=reactive({confirm:!1,cancel:!1}),C=z=>g("update:show",z),x=z=>{var U;C(!1),(U=d.callback)==null||U.call(d,z)},S=z=>()=>{d.show&&(g(z),d.beforeClose?(w[z]=!0,callInterceptor(d.beforeClose,{args:[z],done(){x(z),w[z]=!1},canceled(){w[z]=!1}})):x(z))},E=S("cancel"),B=S("confirm"),$=withKeys(z=>{var U,W;if(z.target!==((W=(U=A.value)==null?void 0:U.popupRef)==null?void 0:W.value))return;({Enter:d.showConfirmButton?B:noop$2,Escape:d.showCancelButton?E:noop$2})[z.key](),g("keydown",z)},["enter","esc"]),P=()=>{const z=b.title?b.title():d.title;if(z)return createVNode("div",{class:bem$1("header",{isolated:!d.message&&!b.default})},[z])},k=z=>{const{message:U,allowHtml:W,messageAlign:V}=d,Q=bem$1("message",{"has-title":z,[V]:V}),K=isFunction$4(U)?U():U;return W&&typeof K=="string"?createVNode("div",{class:Q,innerHTML:K},null):createVNode("div",{class:Q},[K])},M=()=>{if(b.default)return createVNode("div",{class:bem$1("content")},[b.default()]);const{title:z,message:U,allowHtml:W}=d;if(U){const V=!!(z||b.title);return createVNode("div",{key:W?1:0,class:bem$1("content",{isolated:!V})},[k(V)])}},R=()=>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:w.cancel,disabled:d.cancelButtonDisabled,onClick:E},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:w.confirm,disabled:d.confirmButtonDisabled,onClick:B},null)]),F=()=>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:w.cancel,disabled:d.cancelButtonDisabled,onClick:E},null),d.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:d.confirmButtonText||t$1("confirm"),class:bem$1("confirm"),color:d.confirmButtonColor,loading:w.confirm,disabled:d.confirmButtonDisabled,onClick:B},null)]}),L=()=>b.footer?b.footer():d.theme==="round-button"?F():R();return()=>{const{width:z,title:U,theme:W,message:V,className:Q}=d;return createVNode(Popup,mergeProps({ref:A,role:"dialog",class:[bem$1([W]),Q],style:{width:addUnit(z)},tabindex:0,"aria-labelledby":U||V,onKeydown:$,"onUpdate:show":C},pick$1(d,popupInheritKeys)),{default:()=>[P(),M(),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:g,toggle:b}=usePopupState();return()=>createVNode(stdin_default$1,mergeProps(g,{"onUpdate:show":b}),null)}}))}function showDialog(d){return inBrowser$3?new Promise((g,b)=>{instance||initInstance(),instance.open(extend$1({},currentOptions,d,{callback:A=>{(A==="confirm"?g:b)(A)}}))}):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:g,slots:b}){const A=ref(),w=usePlaceholder(A,bem),C=$=>g("clickLeft",$),x=$=>g("clickRight",$),S=()=>b.left?b.left():[d.leftArrow&&createVNode(Icon$1,{class:bem("arrow"),name:"arrow-left"},null),d.leftText&&createVNode("span",{class:bem("text")},[d.leftText])],E=()=>b.right?b.right():createVNode("span",{class:bem("text")},[d.rightText]),B=()=>{const{title:$,fixed:P,border:k,zIndex:M}=d,R=getZIndexStyle(M),F=d.leftArrow||d.leftText||b.left,L=d.rightText||b.right;return createVNode("div",{ref:A,style:R,class:[bem({fixed:P}),{[BORDER_BOTTOM]:k,"van-safe-area-top":d.safeAreaInsetTop}]},[createVNode("div",{class:bem("content")},[F&&createVNode("div",{class:[bem("left"),d.clickable?HAPTICS_FEEDBACK:""],onClick:C},[S()]),createVNode("div",{class:[bem("title"),"van-ellipsis"]},[b.title?b.title():$]),L&&createVNode("div",{class:[bem("right"),d.clickable?HAPTICS_FEEDBACK:""],onClick:x},[E()])])])};return()=>d.fixed&&d.placeholder?w(B):B()}});const NavBar=withInstall$1(stdin_default),TheError=defineComponent({name:"The-error",setup(d,g){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,g){try{return[decodeURIComponent(d.join(""))]}catch(w){}if(d.length===1)return d;g=g||1;const b=d.slice(0,g),A=d.slice(g);return Array.prototype.concat.call([],decodeComponents(b),decodeComponents(A))}function decode$3(d){try{return decodeURIComponent(d)}catch(g){let b=d.match(singleMatcher)||[];for(let A=1;A<b.length;A++)d=decodeComponents(b,A).join(""),b=d.match(singleMatcher)||[];return d}}function customDecodeURIComponent(d){const g={"%FE%FF":"��","%FF%FE":"��"};let b=multiMatcher.exec(d);for(;b;){try{g[b[0]]=decodeURIComponent(b[0])}catch(w){const C=decode$3(b[0]);C!==b[0]&&(g[b[0]]=C)}b=multiMatcher.exec(d)}g["%C2"]="�";const A=Object.keys(g);for(const w of A)d=d.replace(new RegExp(w,"g"),g[w]);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(g){return customDecodeURIComponent(d)}}function splitOnFirst(d,g){if(!(typeof d=="string"&&typeof g=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(d===""||g==="")return[];const b=d.indexOf(g);return b===-1?[]:[d.slice(0,b),d.slice(b+g.length)]}function includeKeys(d,g){const b={};if(Array.isArray(g))for(const A of g){const w=Object.getOwnPropertyDescriptor(d,A);w!=null&&w.enumerable&&Object.defineProperty(b,A,w)}else for(const A of Reflect.ownKeys(d)){const w=Object.getOwnPropertyDescriptor(d,A);if(w.enumerable){const C=d[A];g(A,C,d)&&Object.defineProperty(b,A,w)}}return b}const isNullOrUndefined=d=>d==null,strictUriEncode=d=>encodeURIComponent(d).replace(/[!'()*]/g,g=>`%${g.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(d){switch(d.arrayFormat){case"index":return g=>(b,A)=>{const w=b.length;return A===void 0||d.skipNull&&A===null||d.skipEmptyString&&A===""?b:A===null?[...b,[encode$1(g,d),"[",w,"]"].join("")]:[...b,[encode$1(g,d),"[",encode$1(w,d),"]=",encode$1(A,d)].join("")]};case"bracket":return g=>(b,A)=>A===void 0||d.skipNull&&A===null||d.skipEmptyString&&A===""?b:A===null?[...b,[encode$1(g,d),"[]"].join("")]:[...b,[encode$1(g,d),"[]=",encode$1(A,d)].join("")];case"colon-list-separator":return g=>(b,A)=>A===void 0||d.skipNull&&A===null||d.skipEmptyString&&A===""?b:A===null?[...b,[encode$1(g,d),":list="].join("")]:[...b,[encode$1(g,d),":list=",encode$1(A,d)].join("")];case"comma":case"separator":case"bracket-separator":{const g=d.arrayFormat==="bracket-separator"?"[]=":"=";return b=>(A,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?A:(w=w===null?"":w,A.length===0?[[encode$1(b,d),g,encode$1(w,d)].join("")]:[[A,encode$1(w,d)].join(d.arrayFormatSeparator)])}default:return g=>(b,A)=>A===void 0||d.skipNull&&A===null||d.skipEmptyString&&A===""?b:A===null?[...b,encode$1(g,d)]:[...b,[encode$1(g,d),"=",encode$1(A,d)].join("")]}}function parserForArrayFormat(d){let g;switch(d.arrayFormat){case"index":return(b,A,w)=>{if(g=/\[(\d*)]$/.exec(b),b=b.replace(/\[\d*]$/,""),!g){w[b]=A;return}w[b]===void 0&&(w[b]={}),w[b][g[1]]=A};case"bracket":return(b,A,w)=>{if(g=/(\[])$/.exec(b),b=b.replace(/\[]$/,""),!g){w[b]=A;return}if(w[b]===void 0){w[b]=[A];return}w[b]=[...w[b],A]};case"colon-list-separator":return(b,A,w)=>{if(g=/(:list)$/.exec(b),b=b.replace(/:list$/,""),!g){w[b]=A;return}if(w[b]===void 0){w[b]=[A];return}w[b]=[...w[b],A]};case"comma":case"separator":return(b,A,w)=>{const C=typeof A=="string"&&A.includes(d.arrayFormatSeparator),x=typeof A=="string"&&!C&&decode$2(A,d).includes(d.arrayFormatSeparator);A=x?decode$2(A,d):A;const S=C||x?A.split(d.arrayFormatSeparator).map(E=>decode$2(E,d)):A===null?A:decode$2(A,d);w[b]=S};case"bracket-separator":return(b,A,w)=>{const C=/(\[])$/.test(b);if(b=b.replace(/\[]$/,""),!C){w[b]=A&&decode$2(A,d);return}const x=A===null?[]:A.split(d.arrayFormatSeparator).map(S=>decode$2(S,d));if(w[b]===void 0){w[b]=x;return}w[b]=[...w[b],...x]};default:return(b,A,w)=>{if(w[b]===void 0){w[b]=A;return}w[b]=[...[w[b]].flat(),A]}}}function validateArrayFormatSeparator(d){if(typeof d!="string"||d.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$1(d,g){return g.encode?g.strict?strictUriEncode(d):encodeURIComponent(d):d}function decode$2(d,g){return g.decode?decodeUriComponent(d):d}function keysSorter(d){return Array.isArray(d)?d.sort():typeof d=="object"?keysSorter(Object.keys(d)).sort((g,b)=>Number(g)-Number(b)).map(g=>d[g]):d}function removeHash(d){const g=d.indexOf("#");return g!==-1&&(d=d.slice(0,g)),d}function getHash(d){let g="";const b=d.indexOf("#");return b!==-1&&(g=d.slice(b)),g}function parseValue(d,g){return g.parseNumbers&&!Number.isNaN(Number(d))&&typeof d=="string"&&d.trim()!==""?d=Number(d):g.parseBooleans&&d!==null&&(d.toLowerCase()==="true"||d.toLowerCase()==="false")&&(d=d.toLowerCase()==="true"),d}function extract(d){d=removeHash(d);const g=d.indexOf("?");return g===-1?"":d.slice(g+1)}function parse$3(d,g){g={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...g},validateArrayFormatSeparator(g.arrayFormatSeparator);const b=parserForArrayFormat(g),A=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return A;for(const w of d.split("&")){if(w==="")continue;const C=g.decode?w.replace(/\+/g," "):w;let[x,S]=splitOnFirst(C,"=");x===void 0&&(x=C),S=S===void 0?null:["comma","separator","bracket-separator"].includes(g.arrayFormat)?S:decode$2(S,g),b(decode$2(x,g),S,A)}for(const[w,C]of Object.entries(A))if(typeof C=="object"&&C!==null)for(const[x,S]of Object.entries(C))C[x]=parseValue(S,g);else A[w]=parseValue(C,g);return g.sort===!1?A:(g.sort===!0?Object.keys(A).sort():Object.keys(A).sort(g.sort)).reduce((w,C)=>{const x=A[C];return x&&typeof x=="object"&&!Array.isArray(x)?w[C]=keysSorter(x):w[C]=x,w},Object.create(null))}function stringify$2(d,g){if(!d)return"";g={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...g},validateArrayFormatSeparator(g.arrayFormatSeparator);const b=x=>g.skipNull&&isNullOrUndefined(d[x])||g.skipEmptyString&&d[x]==="",A=encoderForArrayFormat(g),w={};for(const[x,S]of Object.entries(d))b(x)||(w[x]=S);const C=Object.keys(w);return g.sort!==!1&&C.sort(g.sort),C.map(x=>{const S=d[x];return S===void 0?"":S===null?encode$1(x,g):Array.isArray(S)?S.length===0&&g.arrayFormat==="bracket-separator"?encode$1(x,g)+"[]":S.reduce(A(x),[]).join("&"):encode$1(x,g)+"="+encode$1(S,g)}).filter(x=>x.length>0).join("&")}function parseUrl(d,g){var w,C;g={decode:!0,...g};let[b,A]=splitOnFirst(d,"#");return b===void 0&&(b=d),{url:(C=(w=b==null?void 0:b.split("?"))==null?void 0:w[0])!=null?C:"",query:parse$3(extract(d),g),...g&&g.parseFragmentIdentifier&&A?{fragmentIdentifier:decode$2(A,g)}:{}}}function stringifyUrl(d,g){g={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...g};const b=removeHash(d.url).split("?")[0]||"",A=extract(d.url),w={...parse$3(A,{sort:!1}),...d.query};let C=stringify$2(w,g);C&&(C=`?${C}`);let x=getHash(d.url);if(d.fragmentIdentifier){const S=new URL(b);S.hash=d.fragmentIdentifier,x=g[encodeFragmentIdentifier]?S.hash:`#${d.fragmentIdentifier}`}return`${b}${C}${x}`}function pick(d,g,b){b={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...b};const{url:A,query:w,fragmentIdentifier:C}=parseUrl(d,b);return stringifyUrl({url:A,query:includeKeys(w,g),fragmentIdentifier:C},b)}function exclude(d,g,b){const A=Array.isArray(g)?w=>!g.includes(w):(w,C)=>!g(w,C);return pick(d,A,b)}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(g){console.log("解析query错误:",g)}return{...d}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(d){if(d.__esModule)return d;var g=d.default;if(typeof g=="function"){var b=function A(){if(this instanceof A){var w=[null];w.push.apply(w,arguments);var C=Function.bind.apply(g,w);return new C}return g.apply(this,arguments)};b.prototype=g.prototype}else b={};return Object.defineProperty(b,"__esModule",{value:!0}),Object.keys(d).forEach(function(A){var w=Object.getOwnPropertyDescriptor(d,A);Object.defineProperty(b,A,w.get?w:{enumerable:!0,get:function(){return d[A]}})}),b}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},b=Symbol("test"),A=Object(b);if(typeof b=="string"||Object.prototype.toString.call(b)!=="[object Symbol]"||Object.prototype.toString.call(A)!=="[object Symbol]")return!1;var w=42;g[b]=w;for(b in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var C=Object.getOwnPropertySymbols(g);if(C.length!==1||C[0]!==b||!Object.prototype.propertyIsEnumerable.call(g,b))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(g,b);if(x.value!==w||x.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(g){var b=this;if(typeof b!="function"||toStr$1.call(b)!==funcType)throw new TypeError(ERROR_MESSAGE+b);for(var A=slice$2.call(arguments,1),w,C=function(){if(this instanceof w){var $=b.apply(this,A.concat(slice$2.call(arguments)));return Object($)===$?$:this}else return b.apply(g,A.concat(slice$2.call(arguments)))},x=Math.max(0,b.length-A.length),S=[],E=0;E<x;E++)S.push("$"+E);if(w=Function("binder","return function ("+S.join(",")+"){ return binder.apply(this,arguments); }")(C),b.prototype){var B=function(){};B.prototype=b.prototype,w.prototype=new B,B.prototype=null}return w},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(g){}},$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(g){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(g){var b;if(g==="%AsyncFunction%")b=getEvalledConstructor("async function () {}");else if(g==="%GeneratorFunction%")b=getEvalledConstructor("function* () {}");else if(g==="%AsyncGeneratorFunction%")b=getEvalledConstructor("async function* () {}");else if(g==="%AsyncGenerator%"){var A=d("%AsyncGeneratorFunction%");A&&(b=A.prototype)}else if(g==="%AsyncIteratorPrototype%"){var w=d("%AsyncGenerator%");w&&getProto&&(b=getProto(w.prototype))}return INTRINSICS[g]=b,b},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(g){var b=$strSlice(g,0,1),A=$strSlice(g,-1);if(b==="%"&&A!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(A==="%"&&b!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var w=[];return $replace$1(g,rePropName$1,function(C,x,S,E){w[w.length]=S?$replace$1(E,reEscapeChar$1,"$1"):x||C}),w},getBaseIntrinsic=function(g,b){var A=g,w;if(hasOwn$1(LEGACY_ALIASES,A)&&(w=LEGACY_ALIASES[A],A="%"+w[0]+"%"),hasOwn$1(INTRINSICS,A)){var C=INTRINSICS[A];if(C===needsEval&&(C=doEval(A)),typeof C>"u"&&!b)throw new $TypeError$1("intrinsic "+g+" exists, but is not available. Please file an issue!");return{alias:w,name:A,value:C}}throw new $SyntaxError("intrinsic "+g+" does not exist!")},getIntrinsic=function(g,b){if(typeof g!="string"||g.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof b!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,g)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var A=stringToPath$2(g),w=A.length>0?A[0]:"",C=getBaseIntrinsic("%"+w+"%",b),x=C.name,S=C.value,E=!1,B=C.alias;B&&(w=B[0],$spliceApply(A,$concat$1([0,1],B)));for(var $=1,P=!0;$<A.length;$+=1){var k=A[$],M=$strSlice(k,0,1),R=$strSlice(k,-1);if((M==='"'||M==="'"||M==="`"||R==='"'||R==="'"||R==="`")&&M!==R)throw new $SyntaxError("property names with quotes must have matching quotes");if((k==="constructor"||!P)&&(E=!0),w+="."+k,x="%"+w+"%",hasOwn$1(INTRINSICS,x))S=INTRINSICS[x];else if(S!=null){if(!(k in S)){if(!b)throw new $TypeError$1("base intrinsic for "+g+" exists, but the property is not available.");return}if($gOPD&&$+1>=A.length){var F=$gOPD(S,k);P=!!F,P&&"get"in F&&!("originalValue"in F.get)?S=F.get:S=S[k]}else P=hasOwn$1(S,k),S=S[k];P&&!E&&(INTRINSICS[x]=S)}}return S},callBindExports={},callBind$1={get exports(){return callBindExports},set exports(d){callBindExports=d}};(function(d){var g=functionBind,b=getIntrinsic,A=b("%Function.prototype.apply%"),w=b("%Function.prototype.call%"),C=b("%Reflect.apply%",!0)||g.call(w,A),x=b("%Object.getOwnPropertyDescriptor%",!0),S=b("%Object.defineProperty%",!0),E=b("%Math.max%");if(S)try{S({},"a",{value:1})}catch($){S=null}d.exports=function(P){var k=C(g,w,arguments);if(x&&S){var M=x(k,"length");M.configurable&&S(k,"length",{value:1+E(0,P.length-(arguments.length-1))})}return k};var B=function(){return C(g,A,arguments)};S?S(d.exports,"apply",{value:B}):d.exports.apply=B})(callBind$1);var GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(g,b){var A=GetIntrinsic$1(g,!!b);return typeof A=="function"&&$indexOf(g,".prototype.")>-1?callBind(A):A};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,g){if(d===1/0||d===-1/0||d!==d||d&&d>-1e3&&d<1e3||$test.call(/e/,g))return g;var b=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof d=="number"){var A=d<0?-$floor(-d):$floor(d);if(A!==d){var w=String(A),C=$slice.call(g,w.length+1);return $replace.call(w,b,"$&_")+"."+$replace.call($replace.call(C,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(g,b,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$1(inspectCustom)?inspectCustom:null,objectInspect=function d(g,b,A,w){var C=b||{};if(has$3(C,"quoteStyle")&&C.quoteStyle!=="single"&&C.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(C,"maxStringLength")&&(typeof C.maxStringLength=="number"?C.maxStringLength<0&&C.maxStringLength!==1/0:C.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var x=has$3(C,"customInspect")?C.customInspect:!0;if(typeof x!="boolean"&&x!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(C,"indent")&&C.indent!==null&&C.indent!==" "&&!(parseInt(C.indent,10)===C.indent&&C.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(C,"numericSeparator")&&typeof C.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=C.numericSeparator;if(typeof g>"u")return"undefined";if(g===null)return"null";if(typeof g=="boolean")return g?"true":"false";if(typeof g=="string")return inspectString(g,C);if(typeof g=="number"){if(g===0)return 1/0/g>0?"0":"-0";var E=String(g);return S?addNumericSeparator(g,E):E}if(typeof g=="bigint"){var B=String(g)+"n";return S?addNumericSeparator(g,B):B}var $=typeof C.depth>"u"?5:C.depth;if(typeof A>"u"&&(A=0),A>=$&&$>0&&typeof g=="object")return isArray$7(g)?"[Array]":"[Object]";var P=getIndent(C,A);if(typeof w>"u")w=[];else if(indexOf(w,g)>=0)return"[Circular]";function k(ie,ce,me){if(ce&&(w=$arrSlice.call(w),w.push(ce)),me){var ne={depth:C.depth};return has$3(C,"quoteStyle")&&(ne.quoteStyle=C.quoteStyle),d(ie,ne,A+1,w)}return d(ie,C,A+1,w)}if(typeof g=="function"&&!isRegExp$1(g)){var M=nameOf(g),R=arrObjKeys(g,k);return"[Function"+(M?": "+M:" (anonymous)")+"]"+(R.length>0?" { "+$join.call(R,", ")+" }":"")}if(isSymbol$1(g)){var F=hasShammedSymbols?$replace.call(String(g),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(g);return typeof g=="object"&&!hasShammedSymbols?markBoxed(F):F}if(isElement$1(g)){for(var L="<"+$toLowerCase.call(String(g.nodeName)),z=g.attributes||[],U=0;U<z.length;U++)L+=" "+z[U].name+"="+wrapQuotes(quote(z[U].value),"double",C);return L+=">",g.childNodes&&g.childNodes.length&&(L+="..."),L+="</"+$toLowerCase.call(String(g.nodeName))+">",L}if(isArray$7(g)){if(g.length===0)return"[]";var W=arrObjKeys(g,k);return P&&!singleLineValues(W)?"["+indentedJoin(W,P)+"]":"[ "+$join.call(W,", ")+" ]"}if(isError(g)){var V=arrObjKeys(g,k);return!("cause"in Error.prototype)&&"cause"in g&&!isEnumerable.call(g,"cause")?"{ ["+String(g)+"] "+$join.call($concat.call("[cause]: "+k(g.cause),V),", ")+" }":V.length===0?"["+String(g)+"]":"{ ["+String(g)+"] "+$join.call(V,", ")+" }"}if(typeof g=="object"&&x){if(inspectSymbol&&typeof g[inspectSymbol]=="function"&&utilInspect)return utilInspect(g,{depth:$-A});if(x!=="symbol"&&typeof g.inspect=="function")return g.inspect()}if(isMap(g)){var Q=[];return mapForEach&&mapForEach.call(g,function(ie,ce){Q.push(k(ce,g,!0)+" => "+k(ie,g))}),collectionOf("Map",mapSize.call(g),Q,P)}if(isSet(g)){var K=[];return setForEach&&setForEach.call(g,function(ie){K.push(k(ie,g))}),collectionOf("Set",setSize.call(g),K,P)}if(isWeakMap(g))return weakCollectionOf("WeakMap");if(isWeakSet(g))return weakCollectionOf("WeakSet");if(isWeakRef(g))return weakCollectionOf("WeakRef");if(isNumber$1(g))return markBoxed(k(Number(g)));if(isBigInt(g))return markBoxed(k(bigIntValueOf.call(g)));if(isBoolean$1(g))return markBoxed(booleanValueOf.call(g));if(isString$1(g))return markBoxed(k(String(g)));if(!isDate$1(g)&&!isRegExp$1(g)){var G=arrObjKeys(g,k),X=gPO?gPO(g)===Object.prototype:g instanceof Object||g.constructor===Object,J=g instanceof Object?"":"null prototype",re=!X&&toStringTag&&Object(g)===g&&toStringTag in g?$slice.call(toStr(g),8,-1):J?"Object":"",fe=X||typeof g.constructor!="function"?"":g.constructor.name?g.constructor.name+" ":"",Z=fe+(re||J?"["+$join.call($concat.call([],re||[],J||[]),": ")+"] ":"");return G.length===0?Z+"{}":P?Z+"{"+indentedJoin(G,P)+"}":Z+"{ "+$join.call(G,", ")+" }"}return String(g)};function wrapQuotes(d,g,b){var A=(b.quoteStyle||g)==="double"?'"':"'";return A+d+A}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(g){}return!1}function isBigInt(d){if(!d||typeof d!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(d),!0}catch(g){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(d){return d in this};function has$3(d,g){return hasOwn.call(d,g)}function toStr(d){return objectToString$2.call(d)}function nameOf(d){if(d.name)return d.name;var g=$match.call(functionToString.call(d),/^function\s*([\w$]+)/);return g?g[1]:null}function indexOf(d,g){if(d.indexOf)return d.indexOf(g);for(var b=0,A=d.length;b<A;b++)if(d[b]===g)return b;return-1}function isMap(d){if(!mapSize||!d||typeof d!="object")return!1;try{mapSize.call(d);try{setSize.call(d)}catch(g){return!0}return d instanceof Map}catch(g){}return!1}function isWeakMap(d){if(!weakMapHas||!d||typeof d!="object")return!1;try{weakMapHas.call(d,weakMapHas);try{weakSetHas.call(d,weakSetHas)}catch(g){return!0}return d instanceof WeakMap}catch(g){}return!1}function isWeakRef(d){if(!weakRefDeref||!d||typeof d!="object")return!1;try{return weakRefDeref.call(d),!0}catch(g){}return!1}function isSet(d){if(!setSize||!d||typeof d!="object")return!1;try{setSize.call(d);try{mapSize.call(d)}catch(g){return!0}return d instanceof Set}catch(g){}return!1}function isWeakSet(d){if(!weakSetHas||!d||typeof d!="object")return!1;try{weakSetHas.call(d,weakSetHas);try{weakMapHas.call(d,weakMapHas)}catch(g){return!0}return d instanceof WeakSet}catch(g){}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,g){if(d.length>g.maxStringLength){var b=d.length-g.maxStringLength,A="... "+b+" more character"+(b>1?"s":"");return inspectString($slice.call(d,0,g.maxStringLength),g)+A}var w=$replace.call($replace.call(d,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(w,"single",g)}function lowbyte(d){var g=d.charCodeAt(0),b={8:"b",9:"t",10:"n",12:"f",13:"r"}[g];return b?"\\"+b:"\\x"+(g<16?"0":"")+$toUpperCase.call(g.toString(16))}function markBoxed(d){return"Object("+d+")"}function weakCollectionOf(d){return d+" { ? }"}function collectionOf(d,g,b,A){var w=A?indentedJoin(b,A):$join.call(b,", ");return d+" ("+g+") {"+w+"}"}function singleLineValues(d){for(var g=0;g<d.length;g++)if(indexOf(d[g],`
  6. `)>=0)return!1;return!0}function getIndent(d,g){var b;if(d.indent===" ")b=" ";else if(typeof d.indent=="number"&&d.indent>0)b=$join.call(Array(d.indent+1)," ");else return null;return{base:b,prev:$join.call(Array(g+1),b)}}function indentedJoin(d,g){if(d.length===0)return"";var b=`
  7. `+g.prev+g.base;return b+$join.call(d,","+b)+`
  8. `+g.prev}function arrObjKeys(d,g){var b=isArray$7(d),A=[];if(b){A.length=d.length;for(var w=0;w<d.length;w++)A[w]=has$3(d,w)?g(d[w],d):""}var C=typeof gOPS=="function"?gOPS(d):[],x;if(hasShammedSymbols){x={};for(var S=0;S<C.length;S++)x["$"+C[S]]=C[S]}for(var E in d)has$3(d,E)&&(b&&String(Number(E))===E&&E<d.length||hasShammedSymbols&&x["$"+E]instanceof Symbol||($test.call(/[^\w$]/,E)?A.push(g(E,d)+": "+g(d[E],d)):A.push(E+": "+g(d[E],d))));if(typeof gOPS=="function")for(var B=0;B<C.length;B++)isEnumerable.call(d,C[B])&&A.push("["+g(C[B])+"]: "+g(d[C[B]],d));return A}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,g){for(var b=d,A;(A=b.next)!==null;b=A)if(A.key===g)return b.next=A.next,A.next=d.next,d.next=A,A},listGet=function(d,g){var b=listGetNode(d,g);return b&&b.value},listSet=function(d,g,b){var A=listGetNode(d,g);A?A.value=b:d.next={key:g,next:d.next,value:b}},listHas=function(d,g){return!!listGetNode(d,g)},sideChannel=function(){var g,b,A,w={assert:function(C){if(!w.has(C))throw new $TypeError("Side channel does not contain "+inspect(C))},get:function(C){if($WeakMap&&C&&(typeof C=="object"||typeof C=="function")){if(g)return $weakMapGet(g,C)}else if($Map){if(b)return $mapGet(b,C)}else if(A)return listGet(A,C)},has:function(C){if($WeakMap&&C&&(typeof C=="object"||typeof C=="function")){if(g)return $weakMapHas(g,C)}else if($Map){if(b)return $mapHas(b,C)}else if(A)return listHas(A,C);return!1},set:function(C,x){$WeakMap&&C&&(typeof C=="object"||typeof C=="function")?(g||(g=new $WeakMap),$weakMapSet(g,C,x)):$Map?(b||(b=new $Map),$mapSet(b,C,x)):(A||(A={key:{},next:null}),listSet(A,C,x))}};return w},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=[],g=0;g<256;++g)d.push("%"+((g<16?"0":"")+g.toString(16)).toUpperCase());return d}(),compactQueue=function(g){for(;g.length>1;){var b=g.pop(),A=b.obj[b.prop];if(isArray$6(A)){for(var w=[],C=0;C<A.length;++C)typeof A[C]<"u"&&w.push(A[C]);b.obj[b.prop]=w}}},arrayToObject=function(g,b){for(var A=b&&b.plainObjects?Object.create(null):{},w=0;w<g.length;++w)typeof g[w]<"u"&&(A[w]=g[w]);return A},merge$3=function d(g,b,A){if(!b)return g;if(typeof b!="object"){if(isArray$6(g))g.push(b);else if(g&&typeof g=="object")(A&&(A.plainObjects||A.allowPrototypes)||!has$2.call(Object.prototype,b))&&(g[b]=!0);else return[g,b];return g}if(!g||typeof g!="object")return[g].concat(b);var w=g;return isArray$6(g)&&!isArray$6(b)&&(w=arrayToObject(g,A)),isArray$6(g)&&isArray$6(b)?(b.forEach(function(C,x){if(has$2.call(g,x)){var S=g[x];S&&typeof S=="object"&&C&&typeof C=="object"?g[x]=d(S,C,A):g.push(C)}else g[x]=C}),g):Object.keys(b).reduce(function(C,x){var S=b[x];return has$2.call(C,x)?C[x]=d(C[x],S,A):C[x]=S,C},w)},assign$1=function(g,b){return Object.keys(b).reduce(function(A,w){return A[w]=b[w],A},g)},decode$1=function(d,g,b){var A=d.replace(/\+/g," ");if(b==="iso-8859-1")return A.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(A)}catch(w){return A}},encode=function(g,b,A,w,C){if(g.length===0)return g;var x=g;if(typeof g=="symbol"?x=Symbol.prototype.toString.call(g):typeof g!="string"&&(x=String(g)),A==="iso-8859-1")return escape(x).replace(/%u[0-9a-f]{4}/gi,function($){return"%26%23"+parseInt($.slice(2),16)+"%3B"});for(var S="",E=0;E<x.length;++E){var B=x.charCodeAt(E);if(B===45||B===46||B===95||B===126||B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||C===formats$2.RFC1738&&(B===40||B===41)){S+=x.charAt(E);continue}if(B<128){S=S+hexTable[B];continue}if(B<2048){S=S+(hexTable[192|B>>6]+hexTable[128|B&63]);continue}if(B<55296||B>=57344){S=S+(hexTable[224|B>>12]+hexTable[128|B>>6&63]+hexTable[128|B&63]);continue}E+=1,B=65536+((B&1023)<<10|x.charCodeAt(E)&1023),S+=hexTable[240|B>>18]+hexTable[128|B>>12&63]+hexTable[128|B>>6&63]+hexTable[128|B&63]}return S},compact=function(g){for(var b=[{obj:{o:g},prop:"o"}],A=[],w=0;w<b.length;++w)for(var C=b[w],x=C.obj[C.prop],S=Object.keys(x),E=0;E<S.length;++E){var B=S[E],$=x[B];typeof $=="object"&&$!==null&&A.indexOf($)===-1&&(b.push({obj:x,prop:B}),A.push($))}return compactQueue(b),g},isRegExp=function(g){return Object.prototype.toString.call(g)==="[object RegExp]"},isBuffer$2=function(g){return!g||typeof g!="object"?!1:!!(g.constructor&&g.constructor.isBuffer&&g.constructor.isBuffer(g))},combine=function(g,b){return[].concat(g,b)},maybeMap=function(g,b){if(isArray$6(g)){for(var A=[],w=0;w<g.length;w+=1)A.push(b(g[w]));return A}return b(g)},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(g){return g+"[]"},comma:"comma",indices:function(g,b){return g+"["+b+"]"},repeat:function(g){return g}},isArray$5=Array.isArray,push=Array.prototype.push,pushToArray=function(d,g){push.apply(d,isArray$5(g)?g:[g])},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(g){return toISO.call(g)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(g){return typeof g=="string"||typeof g=="number"||typeof g=="boolean"||typeof g=="symbol"||typeof g=="bigint"},sentinel={},stringify$1=function d(g,b,A,w,C,x,S,E,B,$,P,k,M,R,F,L){for(var z=g,U=L,W=0,V=!1;(U=U.get(sentinel))!==void 0&&!V;){var Q=U.get(g);if(W+=1,typeof Q<"u"){if(Q===W)throw new RangeError("Cyclic object value");V=!0}typeof U.get(sentinel)>"u"&&(W=0)}if(typeof E=="function"?z=E(b,z):z instanceof Date?z=P(z):A==="comma"&&isArray$5(z)&&(z=utils$1.maybeMap(z,function(ne){return ne instanceof Date?P(ne):ne})),z===null){if(C)return S&&!R?S(b,defaults$1.encoder,F,"key",k):b;z=""}if(isNonNullishPrimitive(z)||utils$1.isBuffer(z)){if(S){var K=R?b:S(b,defaults$1.encoder,F,"key",k);return[M(K)+"="+M(S(z,defaults$1.encoder,F,"value",k))]}return[M(b)+"="+M(String(z))]}var G=[];if(typeof z>"u")return G;var X;if(A==="comma"&&isArray$5(z))R&&S&&(z=utils$1.maybeMap(z,S)),X=[{value:z.length>0?z.join(",")||null:void 0}];else if(isArray$5(E))X=E;else{var J=Object.keys(z);X=B?J.sort(B):J}for(var re=w&&isArray$5(z)&&z.length===1?b+"[]":b,fe=0;fe<X.length;++fe){var Z=X[fe],ie=typeof Z=="object"&&typeof Z.value<"u"?Z.value:z[Z];if(!(x&&ie===null)){var ce=isArray$5(z)?typeof A=="function"?A(re,Z):re:re+($?"."+Z:"["+Z+"]");L.set(g,W);var me=getSideChannel();me.set(sentinel,L),pushToArray(G,d(ie,ce,A,w,C,x,A==="comma"&&R&&isArray$5(z)?null:S,E,B,$,P,k,M,R,F,me))}}return G},normalizeStringifyOptions=function(g){if(!g)return defaults$1;if(g.encoder!==null&&typeof g.encoder<"u"&&typeof g.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=g.charset||defaults$1.charset;if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=formats$1.default;if(typeof g.format<"u"){if(!has$1.call(formats$1.formatters,g.format))throw new TypeError("Unknown format option provided.");A=g.format}var w=formats$1.formatters[A],C=defaults$1.filter;return(typeof g.filter=="function"||isArray$5(g.filter))&&(C=g.filter),{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof g.allowDots>"u"?defaults$1.allowDots:!!g.allowDots,charset:b,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof g.delimiter>"u"?defaults$1.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:defaults$1.encode,encoder:typeof g.encoder=="function"?g.encoder:defaults$1.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:C,format:A,formatter:w,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:defaults$1.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:defaults$1.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(d,g){var b=d,A=normalizeStringifyOptions(g),w,C;typeof A.filter=="function"?(C=A.filter,b=C("",b)):isArray$5(A.filter)&&(C=A.filter,w=C);var x=[];if(typeof b!="object"||b===null)return"";var S;g&&g.arrayFormat in arrayPrefixGenerators?S=g.arrayFormat:g&&"indices"in g?S=g.indices?"indices":"repeat":S="indices";var E=arrayPrefixGenerators[S];if(g&&"commaRoundTrip"in g&&typeof g.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=E==="comma"&&g&&g.commaRoundTrip;w||(w=Object.keys(b)),A.sort&&w.sort(A.sort);for(var $=getSideChannel(),P=0;P<w.length;++P){var k=w[P];A.skipNulls&&b[k]===null||pushToArray(x,stringify$1(b[k],k,E,B,A.strictNullHandling,A.skipNulls,A.encode?A.encoder:null,A.filter,A.sort,A.allowDots,A.serializeDate,A.format,A.formatter,A.encodeValuesOnly,A.charset,$))}var M=x.join(A.delimiter),R=A.addQueryPrefix===!0?"?":"";return A.charsetSentinel&&(A.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),M.length>0?R+M:""},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(g,b){return String.fromCharCode(parseInt(b,10))})},parseArrayValue=function(d,g){return d&&typeof d=="string"&&g.comma&&d.indexOf(",")>-1?d.split(","):d},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(g,b){var A={__proto__:null},w=b.ignoreQueryPrefix?g.replace(/^\?/,""):g,C=b.parameterLimit===1/0?void 0:b.parameterLimit,x=w.split(b.delimiter,C),S=-1,E,B=b.charset;if(b.charsetSentinel)for(E=0;E<x.length;++E)x[E].indexOf("utf8=")===0&&(x[E]===charsetSentinel?B="utf-8":x[E]===isoSentinel&&(B="iso-8859-1"),S=E,E=x.length);for(E=0;E<x.length;++E)if(E!==S){var $=x[E],P=$.indexOf("]="),k=P===-1?$.indexOf("="):P+1,M,R;k===-1?(M=b.decoder($,defaults.decoder,B,"key"),R=b.strictNullHandling?null:""):(M=b.decoder($.slice(0,k),defaults.decoder,B,"key"),R=utils.maybeMap(parseArrayValue($.slice(k+1),b),function(F){return b.decoder(F,defaults.decoder,B,"value")})),R&&b.interpretNumericEntities&&B==="iso-8859-1"&&(R=interpretNumericEntities(R)),$.indexOf("[]=")>-1&&(R=isArray$4(R)?[R]:R),has.call(A,M)?A[M]=utils.combine(A[M],R):A[M]=R}return A},parseObject=function(d,g,b,A){for(var w=A?g:parseArrayValue(g,b),C=d.length-1;C>=0;--C){var x,S=d[C];if(S==="[]"&&b.parseArrays)x=[].concat(w);else{x=b.plainObjects?Object.create(null):{};var E=S.charAt(0)==="["&&S.charAt(S.length-1)==="]"?S.slice(1,-1):S,B=parseInt(E,10);!b.parseArrays&&E===""?x={0:w}:!isNaN(B)&&S!==E&&String(B)===E&&B>=0&&b.parseArrays&&B<=b.arrayLimit?(x=[],x[B]=w):E!=="__proto__"&&(x[E]=w)}w=x}return w},parseKeys=function(g,b,A,w){if(g){var C=A.allowDots?g.replace(/\.([^.[]+)/g,"[$1]"):g,x=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,E=A.depth>0&&x.exec(C),B=E?C.slice(0,E.index):C,$=[];if(B){if(!A.plainObjects&&has.call(Object.prototype,B)&&!A.allowPrototypes)return;$.push(B)}for(var P=0;A.depth>0&&(E=S.exec(C))!==null&&P<A.depth;){if(P+=1,!A.plainObjects&&has.call(Object.prototype,E[1].slice(1,-1))&&!A.allowPrototypes)return;$.push(E[1])}return E&&$.push("["+C.slice(E.index)+"]"),parseObject($,b,A,w)}},normalizeParseOptions=function(g){if(!g)return defaults;if(g.decoder!==null&&g.decoder!==void 0&&typeof g.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var b=typeof g.charset>"u"?defaults.charset:g.charset;return{allowDots:typeof g.allowDots>"u"?defaults.allowDots:!!g.allowDots,allowPrototypes:typeof g.allowPrototypes=="boolean"?g.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof g.allowSparse=="boolean"?g.allowSparse:defaults.allowSparse,arrayLimit:typeof g.arrayLimit=="number"?g.arrayLimit:defaults.arrayLimit,charset:b,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:defaults.charsetSentinel,comma:typeof g.comma=="boolean"?g.comma:defaults.comma,decoder:typeof g.decoder=="function"?g.decoder:defaults.decoder,delimiter:typeof g.delimiter=="string"||utils.isRegExp(g.delimiter)?g.delimiter:defaults.delimiter,depth:typeof g.depth=="number"||g.depth===!1?+g.depth:defaults.depth,ignoreQueryPrefix:g.ignoreQueryPrefix===!0,interpretNumericEntities:typeof g.interpretNumericEntities=="boolean"?g.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof g.parameterLimit=="number"?g.parameterLimit:defaults.parameterLimit,parseArrays:g.parseArrays!==!1,plainObjects:typeof g.plainObjects=="boolean"?g.plainObjects:defaults.plainObjects,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:defaults.strictNullHandling}},parse$2=function(d,g){var b=normalizeParseOptions(g);if(d===""||d===null||typeof d>"u")return b.plainObjects?Object.create(null):{};for(var A=typeof d=="string"?parseValues(d,b):d,w=b.plainObjects?Object.create(null):{},C=Object.keys(A),x=0;x<C.length;++x){var S=C[x],E=parseKeys(S,A[S],b,typeof d=="string");w=utils.merge(w,E,b)}return b.allowSparse===!0?w:utils.compact(w)},stringify=stringify_1,parse$1=parse$2,formats=formats$3,lib={formats,parse:parse$1,stringify},global$2=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global$2<"u"&&global$2,support={searchParams:"URLSearchParams"in global$2,iterable:"Symbol"in global$2&&"iterator"in Symbol,blob:"FileReader"in global$2&&"Blob"in global$2&&function(){try{return new Blob,!0}catch(d){return!1}}(),formData:"FormData"in global$2,arrayBuffer:"ArrayBuffer"in global$2};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 g={next:function(){var b=d.shift();return{done:b===void 0,value:b}}};return support.iterable&&(g[Symbol.iterator]=function(){return g}),g}function Headers(d){this.map={},d instanceof Headers?d.forEach(function(g,b){this.append(b,g)},this):Array.isArray(d)?d.forEach(function(g){this.append(g[0],g[1])},this):d&&Object.getOwnPropertyNames(d).forEach(function(g){this.append(g,d[g])},this)}Headers.prototype.append=function(d,g){d=normalizeName(d),g=normalizeValue(g);var b=this.map[d];this.map[d]=b?b+", "+g:g};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,g){this.map[normalizeName(d)]=normalizeValue(g)};Headers.prototype.forEach=function(d,g){for(var b in this.map)this.map.hasOwnProperty(b)&&d.call(g,this.map[b],b,this)};Headers.prototype.keys=function(){var d=[];return this.forEach(function(g,b){d.push(b)}),iteratorFor(d)};Headers.prototype.values=function(){var d=[];return this.forEach(function(g){d.push(g)}),iteratorFor(d)};Headers.prototype.entries=function(){var d=[];return this.forEach(function(g,b){d.push([b,g])}),iteratorFor(d)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(d){if(d.bodyUsed)return Promise.reject(new TypeError("Already read"));d.bodyUsed=!0}function fileReaderReady(d){return new Promise(function(g,b){d.onload=function(){g(d.result)},d.onerror=function(){b(d.error)}})}function readBlobAsArrayBuffer(d){var g=new FileReader,b=fileReaderReady(g);return g.readAsArrayBuffer(d),b}function readBlobAsText(d){var g=new FileReader,b=fileReaderReady(g);return g.readAsText(d),b}function readArrayBufferAsText(d){for(var g=new Uint8Array(d),b=new Array(g.length),A=0;A<g.length;A++)b[A]=String.fromCharCode(g[A]);return b.join("")}function bufferClone(d){if(d.slice)return d.slice(0);var g=new Uint8Array(d.byteLength);return g.set(new Uint8Array(d)),g.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._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 return this.blob().then(readBlobAsArrayBuffer)}),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=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(d){var g=d.toUpperCase();return methods.indexOf(g)>-1?g:d}function Request(d,g){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var b=g.body;if(d instanceof Request){if(d.bodyUsed)throw new TypeError("Already read");this.url=d.url,this.credentials=d.credentials,g.headers||(this.headers=new Headers(d.headers)),this.method=d.method,this.mode=d.mode,this.signal=d.signal,!b&&d._bodyInit!=null&&(b=d._bodyInit,d.bodyUsed=!0)}else this.url=String(d);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new Headers(g.headers)),this.method=normalizeMethod(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var A=/([?&])_=[^&]*/;if(A.test(this.url))this.url=this.url.replace(A,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(d){var g=new FormData;return d.trim().split("&").forEach(function(b){if(b){var A=b.split("="),w=A.shift().replace(/\+/g," "),C=A.join("=").replace(/\+/g," ");g.append(decodeURIComponent(w),decodeURIComponent(C))}}),g}function parseHeaders(d){var g=new Headers,b=d.replace(/\r?\n[\t ]+/g," ");return b.split("\r").map(function(A){return A.indexOf(`
  9. `)===0?A.substr(1,A.length):A}).forEach(function(A){var w=A.split(":"),C=w.shift().trim();if(C){var x=w.join(":").trim();g.append(C,x)}}),g}Body.call(Request.prototype);function Response(d,g){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g||(g={}),this.type="default",this.status=g.status===void 0?200:g.status,this.ok=this.status>=200&&this.status<300,this.statusText=g.statusText===void 0?"":""+g.statusText,this.headers=new Headers(g.headers),this.url=g.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:0,statusText:""});return d.type="error",d};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(d,g){if(redirectStatuses.indexOf(g)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:g,headers:{location:d}})};var DOMException=global$2.DOMException;try{new DOMException}catch(d){DOMException=function(g,b){this.message=g,this.name=b;var A=Error(g);this.stack=A.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(d,g){return new Promise(function(b,A){var w=new Request(d,g);if(w.signal&&w.signal.aborted)return A(new DOMException("Aborted","AbortError"));var C=new XMLHttpRequest;function x(){C.abort()}C.onload=function(){var E={status:C.status,statusText:C.statusText,headers:parseHeaders(C.getAllResponseHeaders()||"")};E.url="responseURL"in C?C.responseURL:E.headers.get("X-Request-URL");var B="response"in C?C.response:C.responseText;setTimeout(function(){b(new Response(B,E))},0)},C.onerror=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},C.ontimeout=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},C.onabort=function(){setTimeout(function(){A(new DOMException("Aborted","AbortError"))},0)};function S(E){try{return E===""&&global$2.location.href?global$2.location.href:E}catch(B){return E}}C.open(w.method,S(w.url),!0),w.credentials==="include"?C.withCredentials=!0:w.credentials==="omit"&&(C.withCredentials=!1),"responseType"in C&&(support.blob?C.responseType="blob":support.arrayBuffer&&w.headers.get("Content-Type")&&w.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(C.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof Headers)?Object.getOwnPropertyNames(g.headers).forEach(function(E){C.setRequestHeader(E,normalizeValue(g.headers[E]))}):w.headers.forEach(function(E,B){C.setRequestHeader(B,E)}),w.signal&&(w.signal.addEventListener("abort",x),C.onreadystatechange=function(){C.readyState===4&&w.signal.removeEventListener("abort",x)}),C.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}fetch$1.polyfill=!0;global$2.fetch||(global$2.fetch=fetch$1,global$2.Headers=Headers,global$2.Request=Request,global$2.Response=Response);self.fetch.bind(self);function ownKeys(d,g){var b=Object.keys(d);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(d);g&&(A=A.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),b.push.apply(b,A)}return b}function _objectSpread2(d){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{};g%2?ownKeys(Object(b),!0).forEach(function(A){_defineProperty(d,A,b[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(A){Object.defineProperty(d,A,Object.getOwnPropertyDescriptor(b,A))})}return d}function _typeof$1(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(g){return typeof g}:_typeof$1=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$1(d)}function _classCallCheck$1(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function _defineProperties(d,g){for(var b=0;b<g.length;b++){var A=g[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(d,A.key,A)}}function _createClass(d,g,b){return g&&_defineProperties(d.prototype,g),b&&_defineProperties(d,b),d}function _defineProperty(d,g,b){return g in d?Object.defineProperty(d,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):d[g]=b,d}function _inherits(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),g&&_setPrototypeOf(d,g)}function _getPrototypeOf(d){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},_getPrototypeOf(d)}function _setPrototypeOf(d,g){return _setPrototypeOf=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A},_setPrototypeOf(d,g)}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,g,b){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(w,C,x){var S=[null];S.push.apply(S,C);var E=Function.bind.apply(w,S),B=new E;return x&&_setPrototypeOf(B,x.prototype),B},_construct.apply(null,arguments)}function _isNativeFunction(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function _wrapNativeSuper(d){var g=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(A){if(A===null||!_isNativeFunction(A))return A;if(typeof A!="function")throw new TypeError("Super expression must either be null or a function");if(typeof g<"u"){if(g.has(A))return g.get(A);g.set(A,w)}function w(){return _construct(A,arguments,_getPrototypeOf(this).constructor)}return w.prototype=Object.create(A.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(w,A)},_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,g){if(g&&(typeof g=="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(d)}function _createSuper(d){var g=_isNativeReflectConstruct();return function(){var A=_getPrototypeOf(d),w;if(g){var C=_getPrototypeOf(this).constructor;w=Reflect.construct(A,arguments,C)}else w=A.apply(this,arguments);return _possibleConstructorReturn(this,w)}}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,g){if(d){if(typeof d=="string")return _arrayLikeToArray(d,g);var b=Object.prototype.toString.call(d).slice(8,-1);if(b==="Object"&&d.constructor&&(b=d.constructor.name),b==="Map"||b==="Set")return Array.from(d);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(d,g)}}function _arrayLikeToArray(d,g){(g==null||g>d.length)&&(g=d.length);for(var b=0,A=new Array(g);b<g;b++)A[b]=d[b];return A}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  10. In 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 g=d.length,b=0;b<g;b++)if(typeof d[b]!="function")throw new TypeError("Middleware must be componsed of function");return function(w,C){var x=-1;function S(E){if(E<=x)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));x=E;var B=d[E]||C;if(!B)return Promise.resolve();try{return Promise.resolve(B(w,function(){return S(E+1)}))}catch($){return Promise.reject($)}}return S(0)}}var Onion=function(){function d(g){if(_classCallCheck$1(this,d),!Array.isArray(g))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=_toConsumableArray(g),this.middlewares=[]}return _createClass(d,[{key:"use",value:function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},w=!1,C=!1,x=!1;if(typeof A=="number"?(process&&process.env,w=!0,C=!1):_typeof$1(A)==="object"&&A&&(C=A.global||!1,w=A.core||!1,x=A.defaultInstance||!1),C){d.globalMiddlewares.splice(d.globalMiddlewares.length-d.defaultGlobalMiddlewaresLength,0,b);return}if(w){d.coreMiddlewares.splice(d.coreMiddlewares.length-d.defaultCoreMiddlewaresLength,0,b);return}if(x){this.defaultMiddlewares.push(b);return}this.middlewares.push(b)}},{key:"execute",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,A=compose([].concat(_toConsumableArray(this.middlewares),_toConsumableArray(this.defaultMiddlewares),_toConsumableArray(d.globalMiddlewares),_toConsumableArray(d.coreMiddlewares)));return A(b)}}]),d}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache$1=function(){function d(g){_classCallCheck$1(this,d),this.cache=new Map,this.timer={},this.extendOptions(g)}return _createClass(d,[{key:"extendOptions",value:function(b){this.maxCache=b.maxCache||0}},{key:"get",value:function(b){return this.cache.get(JSON.stringify(b))}},{key:"set",value:function(b,A){var w=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var x=_toConsumableArray(this.cache.keys())[0];this.cache.delete(x),this.timer[x]&&clearTimeout(this.timer[x])}var S=JSON.stringify(b);this.cache.set(S,A),C>0&&(this.timer[S]=setTimeout(function(){w.cache.delete(S),delete w.timer[S]},C))}},{key:"delete",value:function(b){var A=JSON.stringify(b);return delete this.timer[A],this.cache.delete(A)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),d}(),RequestError=function(d){_inherits(b,d);var g=_createSuper(b);function b(A,w){var C,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck$1(this,b),C=g.call(this,A),C.name="RequestError",C.request=w,C.type=x,C}return b}(_wrapNativeSuper(Error)),ResponseError=function(d){_inherits(b,d);var g=_createSuper(b);function b(A,w,C,x){var S,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck$1(this,b),S=g.call(this,w||A.statusText),S.name="ResponseError",S.data=C,S.response=A,S.request=x,S.type=E,S}return b}(_wrapNativeSuper(Error));function readerGBK(d){return new Promise(function(g,b){var A=new FileReader;A.onload=function(){g(A.result)},A.onerror=b,A.readAsText(d,"GBK")})}function safeJsonParse(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(d)}catch(w){if(g)throw new ResponseError(b,"JSON.parse fail",d,A,"ParseError")}return d}function timeout2Throw(d,g,b){return new Promise(function(A,w){setTimeout(function(){w(new RequestError(g||"timeout of ".concat(d,"ms exceeded"),b,"Timeout"))},d)})}function cancel2Throw(d){return new Promise(function(g,b){d.cancelToken&&d.cancelToken.promise.then(function(A){b(A)})})}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,g){if(d)if(_typeof$1(d)!=="object"&&(d=[d]),isArray$3(d))for(var b=0;b<d.length;b++)g.call(null,d[b],b,d);else for(var A in d)Object.prototype.hasOwnProperty.call(d,A)&&g.call(null,d[A],A,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,g){return _objectSpread2(_objectSpread2(_objectSpread2({},d),g),{},{headers:_objectSpread2(_objectSpread2({},d.headers),g.headers),params:_objectSpread2(_objectSpread2({},getParamObject(d.params)),getParamObject(g.params)),method:(g.method||d.method||"get").toLowerCase()})}var addfix=function(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=b.prefix,w=b.suffix;return A&&(g="".concat(A).concat(g)),w&&(g="".concat(g).concat(w)),{url:g,options:b}},warnedCoreType=!1;function __defaultValidateCache(d,g){var b=g.method,A=b===void 0?"get":b;return A.toLowerCase()==="get"}function fetchMiddleware(d,g){if(!d)return g();var b=d.req;b=b===void 0?{}:b;var A=b.options,w=A===void 0?{}:A,C=b.url,x=C===void 0?"":C,S=d.cache,E=d.responseInterceptors,B=w.timeout,$=B===void 0?0:B,P=w.timeoutMessage,k=w.__umiRequestCoreType__,M=k===void 0?"normal":k,R=w.useCache,F=R===void 0?!1:R,L=w.method,z=L===void 0?"get":L,U=w.params,W=w.ttl,V=w.validateCache,Q=V===void 0?__defaultValidateCache:V;if(M!=="normal")return process&&process.env,g();var K=fetch;if(!K)throw new Error("Global fetch not exist!");var G=getEnv()==="BROWSER",X=Q(x,w)&&F&&G;if(X){var J=S.get({url:x,params:U,method:z});if(J)return J=J.clone(),J.useCache=!0,d.res=J,g()}var re;return $>0?re=Promise.race([cancel2Throw(w),K(x,w),timeout2Throw($,P,d.req)]):re=Promise.race([cancel2Throw(w),K(x,w)]),E.forEach(function(fe){re=re.then(function(Z){var ie=typeof Z.clone=="function"?Z.clone():Z;return fe(ie,w)})}),re.then(function(fe){if(X&&fe.status===200){var Z=fe.clone();Z.useCache=!0,S.set({url:x,params:U,method:z},Z,W)}return d.res=fe,g()})}function parseResponseMiddleware(d,g){var b;return g().then(function(){if(d){var A=d.res,w=A===void 0?{}:A,C=d.req,x=C===void 0?{}:C,S=x||{},E=S.options;E=E===void 0?{}:E;var B=E.responseType,$=B===void 0?"json":B,P=E.charset,k=P===void 0?"utf8":P;E.getResponse;var M=E.throwErrIfParseFail,R=M===void 0?!1:M,F=E.parseResponse,L=F===void 0?!0:F;if(L&&!(!w||!w.clone)){if(b=getEnv()==="BROWSER"?w.clone():w,b.useCache=w.useCache||!1,k==="gbk")try{return w.blob().then(readerGBK).then(function(z){return safeJsonParse(z,!1,b,x)})}catch(z){throw new ResponseError(b,z.message,null,x,"ParseError")}else if($==="json")return w.text().then(function(z){return safeJsonParse(z,R,b,x)});try{return w[$]()}catch(z){throw new ResponseError(b,"responseType not support",null,x,"ParseError")}}}}).then(function(A){if(d){d.res;var w=d.req,C=w===void 0?{}:w,x=C||{},S=x.options;S=S===void 0?{}:S;var E=S.getResponse,B=E===void 0?!1:E;if(b){if(b.status>=200&&b.status<300){if(B){d.res={data:A,response:b};return}d.res=A;return}throw new ResponseError(b,"http error",A,C,"HttpError")}}}).catch(function(A){if(A instanceof RequestError||A instanceof ResponseError)throw A;var w=d.req,C=d.res;throw A.request=A.request||w,A.response=A.response||C,A.type=A.type||A.name,A.data=A.data||void 0,A})}function simplePostMiddleware(d,g){if(!d)return g();var b=d.req;b=b===void 0?{}:b;var A=b.options,w=A===void 0?{}:A,C=w.method,x=C===void 0?"get":C;if(["post","put","patch","delete"].indexOf(x.toLowerCase())===-1)return g();var S=w.requestType,E=S===void 0?"json":S,B=w.data;if(B){var $=Object.prototype.toString.call(B);$==="[object Object]"||$==="[object Array]"?E==="json"?(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},w.headers),w.body=JSON.stringify(B)):E==="form"&&(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},w.headers),w.body=reqStringify(B)):(w.headers=_objectSpread2({Accept:"application/json"},w.headers),w.body=B)}return d.req.options=w,g()}function paramsSerialize(d,g){var b,A;if(d)if(g)b=g(d);else if(isURLSearchParams(d))b=d.toString();else if(isArray$3(d))A=[],forEach2ObjArr(d,function(C){C===null||typeof C>"u"?A.push(C):A.push(isObject$4(C)?JSON.stringify(C):C)}),b=reqStringify(A);else{A={},forEach2ObjArr(d,function(C,x){var S=C;C===null||typeof C>"u"?A[x]=C:isDate(C)?S=C.toISOString():isArray$3(C)?S=C:isObject$4(C)&&(S=JSON.stringify(C)),A[x]=S});var w=reqStringify(A);b=w}return b}function simpleGetMiddleware(d,g){if(!d)return g();var b=d.req;b=b===void 0?{}:b;var A=b.options,w=A===void 0?{}:A,C=w.paramsSerializer,x=w.params,S=d.req;S=S===void 0?{}:S;var E=S.url,B=E===void 0?"":E;w.method=w.method?w.method.toUpperCase():"GET",w.credentials=w.credentials||"same-origin";var $=paramsSerialize(x,C);if(d.req.originUrl=B,$){var P=B.indexOf("?")!==-1?"&":"?";d.req.url="".concat(B).concat(P).concat($)}return d.req.options=w,g()}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(g){_classCallCheck$1(this,d),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache$1(g),this.initOptions=g,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(d,[{key:"use",value:function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(b,A),this}},{key:"extendOptions",value:function(b){this.initOptions=mergeRequestOptions(this.initOptions,b),this.mapCache.extendOptions(b)}},{key:"dealRequestInterceptors",value:function(b){var A=function(x,S){return x.then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return b.req.url=E.url||b.req.url,b.req.options=E.options||b.req.options,S(b.req.url,b.req.options)})},w=[].concat(_toConsumableArray(d.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors));return w.reduce(A,Promise.resolve()).then(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return b.req.url=C.url||b.req.url,b.req.options=C.options||b.req.options,Promise.resolve()})}},{key:"request",value:function(b,A){var w=this,C=this.onion,x={req:{url:b,options:_objectSpread2(_objectSpread2({},A),{},{url:b})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(d.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if(typeof b!="string")throw new Error("url MUST be a string");return new Promise(function(S,E){w.dealRequestInterceptors(x).then(function(){return C.execute(x)}).then(function(){S(x.res)}).catch(function(B){var $=x.req.options.errorHandler;if($)try{var P=$(B);S(P)}catch(k){E(k)}else E(B)})})}}],[{key:"requestUse",value:function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof b!="function")throw new TypeError("Interceptor must be function!");A.global?d.requestInterceptors.push(b):this.instanceRequestInterceptors.push(b)}},{key:"responseUse",value:function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof b!="function")throw new TypeError("Interceptor must be function!");A.global?d.responseInterceptors.push(b):this.instanceResponseInterceptors.push(b)}}]),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 g;this.promise=new Promise(function(w){g=w});var b=this;d(function(w){b.reason||(b.reason=new Cancel(w),g(b.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken.source=function(){var g,b=new CancelToken(function(w){g=w});return{token:b,cancel:g}};function isCancel(d){return!!(d&&d.__CANCEL__)}var request$1=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=new Core(g),A=function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=mergeRequestOptions(b.initOptions,S);return b.request(x,E)};A.use=b.use.bind(b),A.fetchIndex=b.fetchIndex,A.interceptors={request:{use:Core.requestUse.bind(b)},response:{use:Core.responseUse.bind(b)}};var w=["get","post","delete","put","patch","head","options","rpc"];return w.forEach(function(C){A[C]=function(x,S){return A(x,_objectSpread2(_objectSpread2({},S),{},{method:C}))}}),A.Cancel=Cancel,A.CancelToken=CancelToken,A.isCancel=isCancel,A.extendOptions=b.extendOptions.bind(b),A.middlewares={instance:b.onion.middlewares,defaultInstance:b.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},A},extend=function(g){return request$1(g)};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(g,b,A,w){for(var C=1;C<arguments.length;C++)each$7(Object(arguments[C]),function(x,S){g[S]=x});return g}}function make_create(){if(Object.create)return function(g,b,A,w){var C=slice$1(arguments,1);return assign.apply(this,[Object.create(g)].concat(C))};{let d=function(){};return function(b,A,w,C){var x=slice$1(arguments,1);return d.prototype=b,assign.apply(this,[new d].concat(x))}}}function make_trim(){return String.prototype.trim?function(g){return String.prototype.trim.call(g)}:function(g){return g.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function bind$1(d,g){return function(){return g.apply(d,Array.prototype.slice.call(arguments,0))}}function slice$1(d,g){return Array.prototype.slice.call(d,g||0)}function each$7(d,g){pluck$1(d,function(b,A){return g(b,A),!1})}function map$1(d,g){var b=isList$1(d)?[]:{};return pluck$1(d,function(A,w){return b[w]=g(A,w),!1}),b}function pluck$1(d,g){if(isList$1(d)){for(var b=0;b<d.length;b++)if(g(d[b],b))return d[b]}else for(var A in d)if(d.hasOwnProperty(A)&&g(d[A],A))return d[A]}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,g){var b=this.storage.read(this._namespacePrefix+d);return this._deserialize(b,g)},set:function(d,g){return g===void 0?this.remove(d):(this.storage.write(this._namespacePrefix+d,this._serialize(g)),g)},remove:function(d){this.storage.remove(this._namespacePrefix+d)},each:function(d){var g=this;this.storage.each(function(b,A){d.call(g,g._deserialize(b),(A||"").replace(g._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 g=d.warn?d.warn:d.log;g.apply(d,arguments)}}function createStore(d,g,b){b||(b=""),d&&!isList(d)&&(d=[d]),g&&!isList(g)&&(g=[g]);var A=b?"__storejs_"+b+"_":"",w=b?new RegExp("^"+A):null,C=/^[a-zA-Z0-9_\-]*$/;if(!C.test(b))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:A,_namespaceRegexp:w,_testStorage:function(E){try{var B="__storejs__test__";E.write(B,B);var $=E.read(B)===B;return E.remove(B),$}catch(P){return!1}},_assignPluginFnProp:function(E,B){var $=this[B];this[B]=function(){var k=slice(arguments,0),M=this;function R(){if($)return each$6(arguments,function(L,z){k[z]=L}),$.apply(M,k)}var F=[R].concat(k);return E.apply(M,F)}},_serialize:function(E){return JSON.stringify(E)},_deserialize:function(E,B){if(!E)return B;var $="";try{$=JSON.parse(E)}catch(P){$=E}return $!==void 0?$:B},_addStorage:function(E){this.enabled||this._testStorage(E)&&(this.storage=E,this.enabled=!0)},_addPlugin:function(E){var B=this;if(isList(E)){each$6(E,function(k){B._addPlugin(k)});return}var $=pluck(this.plugins,function(k){return E===k});if(!$){if(this.plugins.push(E),!isFunction$2(E))throw new Error("Plugins must be function values that return objects");var P=E.call(this);if(!isObject$2(P))throw new Error("Plugins must return an object of function properties");each$6(P,function(k,M){if(!isFunction$2(k))throw new Error("Bad plugin property: "+M+" from plugin "+E.name+". Plugins should only return functions.");B._assignPluginFnProp(k,M)})}},addStorage:function(E){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(E)}},S=create$1(x,storeAPI,{plugins:[]});return S.raw={},each$6(S,function(E,B){isFunction$2(E)&&(S.raw[B]=bind(S,E))}),each$6(d,function(E){S._addStorage(E)}),each$6(g,function(E){S._addPlugin(E)}),S}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,g){return localStorage$1().setItem(d,g)}function each$5(d){for(var g=localStorage$1().length-1;g>=0;g--){var b=localStorage$1().key(g);d(read$5(b),b)}}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,g){globalStorage[d]=g}function each$4(d){for(var g=globalStorage.length-1;g>=0;g--){var b=globalStorage.key(g);d(globalStorage[b],b)}}function remove$4(d){return globalStorage.removeItem(d)}function clearAll$4(){each$4(function(d,g){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,g){if(!disable){var b=fixKey(d);_withStorageEl(function(A){A.setAttribute(b,g),A.save(storageName)})}}function read$3(d){if(!disable){var g=fixKey(d),b=null;return _withStorageEl(function(A){b=A.getAttribute(g)}),b}}function each$3(d){_withStorageEl(function(g){for(var b=g.XMLDocument.documentElement.attributes,A=b.length-1;A>=0;A--){var w=b[A];d(g.getAttribute(w.name),w.name)}})}function remove$3(d){var g=fixKey(d);_withStorageEl(function(b){b.removeAttribute(g),b.save(storageName)})}function clearAll$3(){_withStorageEl(function(d){var g=d.XMLDocument.documentElement.attributes;d.load(storageName);for(var b=g.length-1;b>=0;b--)d.removeAttribute(g[b].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",g,b,A;try{b=new ActiveXObject("htmlfile"),b.open(),b.write("<"+d+">document.w=window</"+d+'><iframe src="/favicon.ico"></iframe>'),b.close(),g=b.w.frames[0].document,A=g.createElement("div")}catch(w){A=doc$1.createElement("div"),g=doc$1.body}return function(w){var C=[].slice.call(arguments,0);C.unshift(A),g.appendChild(A),A.addBehavior("#default#userData"),A.load(storageName),w.apply(this,C),g.removeChild(A)}}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 g="(?:^|.*;\\s*)"+escape(d).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(g),"$1"))}function each$2(d){for(var g=doc.cookie.split(/; ?/g),b=g.length-1;b>=0;b--)if(trim(g[b])){var A=g[b].split("="),w=unescape(A[0]),C=unescape(A[1]);d(C,w)}}function write$2(d,g){d&&(doc.cookie=escape(d)+"="+escape(g)+"; 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,g){remove$2(g)})}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,g){return sessionStorage$1().setItem(d,g)}function each$1(d){for(var g=sessionStorage$1().length-1;g>=0;g--){var b=sessionStorage$1().key(g);d(read$1(b),b)}}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,g){memoryStorage[d]=g}function each(d){for(var g in memoryStorage)memoryStorage.hasOwnProperty(g)&&d(memoryStorage[g],g)}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(g){var b=meta[g];return typeof b=="string"?b:"\\u"+("0000"+g.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function str(d,g){var b,A,w,C,x=gap,S,E=g[d];switch(E&&typeof E=="object"&&typeof E.toJSON=="function"&&(E=E.toJSON(d)),typeof rep=="function"&&(E=rep.call(g,d,E)),typeof E){case"string":return quote(E);case"number":return isFinite(E)?String(E):"null";case"boolean":case"null":return String(E);case"object":if(!E)return"null";if(gap+=indent,S=[],Object.prototype.toString.apply(E)==="[object Array]"){for(C=E.length,b=0;b<C;b+=1)S[b]=str(b,E)||"null";return w=S.length===0?"[]":gap?`[
  11. `+gap+S.join(`,
  12. `+gap)+`
  13. `+x+"]":"["+S.join(",")+"]",gap=x,w}if(rep&&typeof rep=="object")for(C=rep.length,b=0;b<C;b+=1)typeof rep[b]=="string"&&(A=rep[b],w=str(A,E),w&&S.push(quote(A)+(gap?": ":":")+w));else for(A in E)Object.prototype.hasOwnProperty.call(E,A)&&(w=str(A,E),w&&S.push(quote(A)+(gap?": ":":")+w));return w=S.length===0?"{}":gap?`{
  14. `+gap+S.join(`,
  15. `+gap)+`
  16. `+x+"}":"{"+S.join(",")+"}",gap=x,w}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(d,g,b){var A;if(gap="",indent="",typeof b=="number")for(A=0;A<b;A+=1)indent+=" ";else typeof b=="string"&&(indent=b);if(rep=g,g&&typeof g!="function"&&(typeof g!="object"||typeof g.length!="number"))throw new Error("JSON.stringify");return str("",{"":d})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(d,g){var b,A,w=d[g];if(w&&typeof w=="object")for(b in w)Object.prototype.hasOwnProperty.call(w,b)&&(A=walk(w,b),A!==void 0?w[b]=A:delete w[b]);return reviver.call(d,g,w)}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,g){const b=parseInt(d,16)+g,A=b>255?255:b;return A.toString(16).length>1?A.toString(16):`0${A.toString(16)}`}function lighten(d,g){return d=d.indexOf("#")>=0?d.substring(1,d.length):d,g=Math.trunc(255*g/100),`#${addLight(d.substring(0,2),g)}${addLight(d.substring(2,4),g)}${addLight(d.substring(4,6),g)}`}function downloadFile(d,g){var b=document.createElement("a");document.body.appendChild(b),b.setAttribute("style","display: none;"),b.href=d,b.download=g||"output.wav",b.click(),window.URL.revokeObjectURL(d),document.body.removeChild(b)}const apiRouter=whiteUrl();browser();const request=extend({requestType:"form",timeout:1e4});request.interceptors.request.use((d,g)=>{const b=storeData.proxy+storeData.platformApi;storeData.platformType==="WEB"&&apiRouter[d]&&(d=apiRouter[d]);const A=getToken(),w={};return A&&(w.Authorization=A),{url:b+d,options:{...g,params:g.params,data:g.data,headers:{...g.headers,...w}}}},{global:!1});request.interceptors.response.use(async(d,g)=>{if(d.status>299||d.status<200){const A=d.statusText+", 状态码"+d.status;throw showToast(A),new Error(A)}const b=await d.clone().json();if(b.code!==200&&b.errCode!==0){const A=b.msg||b.message||"处理失败,请重试";if(b.code===5e3)return b;throw b.code===403||b.code===401||showToast(A),new Error(A)}return b},{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/${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,...g){paramsMap.set(d,g),!onceCbs.includes(d)&&onceCbs.push(d)===1&&requestAnimationFrame(flushOnceCallbacks)}function happensIn(d,g){let{target:b}=d;for(;b;){if(b.dataset&&b.dataset[g]!==void 0)return!0;b=b.parentElement}return!1}function getPreciseEventTarget(d){return d.composedPath()[0]||null}function parseResponsiveProp(d){if(typeof d=="number")return{"":d.toString()};const g={};return d.split(/ +/).forEach(b=>{if(b==="")return;const[A,w]=b.split(":");w===void 0?g[""]=A:g[A]=w}),g}function parseResponsivePropValue(d,g){var b;if(d==null)return;const A=parseResponsiveProp(d);if(g===void 0)return A[""];if(typeof g=="string")return(b=A[g])!==null&&b!==void 0?b:A[""];if(Array.isArray(g)){for(let w=g.length-1;w>=0;--w){const C=g[w];if(C in A)return A[C]}return A[""]}else{let w,C=-1;return Object.keys(A).forEach(x=>{const S=Number(x);!Number.isNaN(S)&&g>=S&&S>=C&&(C=S,w=A[x])}),w}}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"?`${d}px`:d.endsWith("px")?d:`${d}px`}function getMargin(d,g){const b=d.trim().split(/\s+/g),A={top:b[0]};switch(b.length){case 1:A.right=b[0],A.bottom=b[0],A.left=b[0];break;case 2:A.right=b[1],A.left=b[1],A.bottom=b[0];break;case 3:A.right=b[1],A.bottom=b[2],A.left=b[1];break;case 4:A.right=b[1],A.bottom=b[2],A.left=b[3];break;default:throw new Error("[seemly/getMargin]:"+d+" is not a valid value.")}return g===void 0?A:A[g]}function getGap(d,g){const[b,A]=d.split(" ");return g?g==="row"?b:A:{row:b,col:A||b}}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(`${prefix$1}rgb\\s*\\(${float},${float},${float}\\)${suffix$1}`),rgbaRegex=new RegExp(`${prefix$1}rgba\\s*\\(${float},${float},${float},${float}\\)${suffix$1}`),sHexRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${suffix$1}`),hexRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${suffix$1}`),sHexaRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${hex}${suffix$1}`),hexaRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${dhex}${suffix$1}`);function parseHex(d){return parseInt(d,16)}function rgba(d){try{let g;if(g=hexRegex.exec(d))return[parseHex(g[1]),parseHex(g[2]),parseHex(g[3]),1];if(g=rgbRegex.exec(d))return[roundChannel(g[1]),roundChannel(g[5]),roundChannel(g[9]),1];if(g=rgbaRegex.exec(d))return[roundChannel(g[1]),roundChannel(g[5]),roundChannel(g[9]),roundAlpha(g[13])];if(g=sHexRegex.exec(d))return[parseHex(g[1]+g[1]),parseHex(g[2]+g[2]),parseHex(g[3]+g[3]),1];if(g=hexaRegex.exec(d))return[parseHex(g[1]),parseHex(g[2]),parseHex(g[3]),roundAlpha(parseHex(g[4])/255)];if(g=sHexaRegex.exec(d))return[parseHex(g[1]+g[1]),parseHex(g[2]+g[2]),parseHex(g[3]+g[3]),roundAlpha(parseHex(g[4]+g[4])/255)];if(d in colors)return rgba(colors[d]);throw new Error(`[seemly/rgba]: Invalid color value ${d}.`)}catch(g){throw g}}function normalizeAlpha(d){return d>1?1:d<0?0:d}function stringifyRgba(d,g,b,A){return`rgba(${roundChannel(d)}, ${roundChannel(g)}, ${roundChannel(b)}, ${normalizeAlpha(A)})`}function compositeChannel(d,g,b,A,w){return roundChannel((d*g*(1-A)+b*A)/w)}function composite(d,g){Array.isArray(d)||(d=rgba(d)),Array.isArray(g)||(g=rgba(g));const b=d[3],A=g[3],w=roundAlpha(b+A-b*A);return stringifyRgba(compositeChannel(d[0],b,g[0],A,w),compositeChannel(d[1],b,g[1],A,w),compositeChannel(d[2],b,g[2],A,w),w)}function changeColor(d,g){const[b,A,w,C=1]=Array.isArray(d)?d:rgba(d);return g.alpha?stringifyRgba(b,A,w,g.alpha):stringifyRgba(b,A,w,C)}function scaleColor(d,g){const[b,A,w,C=1]=Array.isArray(d)?d:rgba(d),{lightness:x=1,alpha:S=1}=g;return toRgbaString([b*x,A*x,w*x,C*S])}function roundAlpha(d){const g=Math.round(Number(d)*100)/100;return g>1?1:g<0?0:g}function roundChannel(d){const g=Math.round(Number(d));return g>255?255:g<0?0:g}function toRgbaString(d){const[g,b,A]=d;return 3 in d?`rgba(${roundChannel(g)}, ${roundChannel(b)}, ${roundChannel(A)}, ${roundAlpha(d[3])})`:`rgba(${roundChannel(g)}, ${roundChannel(b)}, ${roundChannel(A)}, 1)`}function createId(d=8){return Math.random().toString(16).slice(2,2+d)}function getSlot$1(d,g="default",b=[]){const w=d.$slots[g];return w===void 0?b:w()}function keep(d,g=[],b){const A={};return g.forEach(w=>{A[w]=d[w]}),Object.assign(A,b)}function omit(d,g=[],b){const A={};return Object.getOwnPropertyNames(d).forEach(C=>{g.includes(C)||(A[C]=d[C])}),Object.assign(A,b)}function flatten$4(d,g=!0,b=[]){return d.forEach(A=>{if(A!==null){if(typeof A!="object"){(typeof A=="string"||typeof A=="number")&&b.push(createTextVNode(String(A)));return}if(Array.isArray(A)){flatten$4(A,g,b);return}if(A.type===Fragment){if(A.children===null)return;Array.isArray(A.children)&&flatten$4(A.children,g,b)}else A.type!==Comment&&b.push(A)}}),b}function call$1(d,...g){if(Array.isArray(d))d.forEach(b=>call$1(b,...g));else return d(...g)}function keysOf(d){return Object.keys(d)}const render$1=(d,...g)=>typeof d=="function"?d(...g):typeof d=="string"?createTextVNode(d):typeof d=="number"?createTextVNode(String(d)):null;function warn$3(d,g){console.error(`[naive/${d}]: ${g}`)}function throwError(d,g){throw new Error(`[naive/${d}]: ${g}`)}function getTitleAttribute(d){switch(typeof d){case"string":return d||void 0;case"number":return String(d);default:return}}function getFirstSlotVNode(d,g="default",b=void 0){const A=d[g];if(!A)return warn$3("getFirstSlotVNode",`slot[${g}] is empty`),null;const w=flatten$4(A(b));return w.length===1?w[0]:(warn$3("getFirstSlotVNode",`slot[${g}] should have exactly one child`),null)}function createRefSetter(d){return g=>{g?d.value=g.$el:d.value=null}}function createInjectionKey(d){return d}function ensureValidVNode(d){return d.some(g=>isVNode(g)?!(g.type===Comment||g.type===Fragment&&!ensureValidVNode(g.children)):!0)?d:null}function resolveSlot(d,g){return d&&ensureValidVNode(d())||g()}function resolveSlotWithProps(d,g,b){return d&&ensureValidVNode(d(g))||b(g)}function resolveWrappedSlot(d,g){const b=d&&ensureValidVNode(d());return g(b||null)}function isSlotEmpty(d){return!(d&&ensureValidVNode(d()))}function mergeEventHandlers(d){const g=d.filter(b=>b!==void 0);if(g.length!==0)return g.length===1?g[0]:b=>{d.forEach(A=>{A&&A(b)})}}function isNodeVShowFalse(d){var g;const b=(g=d.dirs)===null||g===void 0?void 0:g.find(({dir:A})=>A===vShow);return!!(b&&b.value===!1)}const Wrapper=defineComponent({render(){var d,g;return(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d)}}),pureNumberRegex=/^(\d|\.)+$/,numberRegex=/(\d|\.)+/;function formatLength(d,{c:g=1,offset:b=0,attachPx:A=!0}={}){if(typeof d=="number"){const w=(d+b)*g;return w===0?"0":`${w}px`}else if(typeof d=="string")if(pureNumberRegex.test(d)){const w=(Number(d)+b)*g;return A?w===0?"0":`${w}px`:`${w}`}else{const w=numberRegex.exec(d);return w?d.replace(numberRegex,String((Number(w[0])+b)*g)):d}return d}function color2Class(d){return d.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(d){let g=0;for(let b=0;b<d.length;++b)d[b]==="&"&&++g;return g}const separatorRegex=/\s*,(?![^(]*\))\s*/g,extraSpaceRegex=/\s+/g;function resolveSelectorWithAmp(d,g){const b=[];return g.split(separatorRegex).forEach(A=>{let w=ampCount(A);if(w){if(w===1){d.forEach(x=>{b.push(A.replace("&",x))});return}}else{d.forEach(x=>{b.push((x&&x+" ")+A)});return}let C=[A];for(;w--;){const x=[];C.forEach(S=>{d.forEach(E=>{x.push(S.replace("&",E))})}),C=x}C.forEach(x=>b.push(x))}),b}function resolveSelector(d,g){const b=[];return g.split(separatorRegex).forEach(A=>{d.forEach(w=>{b.push((w&&w+" ")+A)})}),b}function parseSelectorPath(d){let g=[""];return d.forEach(b=>{b=b&&b.trim(),b&&(b.includes("&")?g=resolveSelectorWithAmp(g,b):g=resolveSelector(g,b))}),g.join(", ").replace(extraSpaceRegex," ")}function removeElement(d){if(!d)return;const g=d.parentElement;g&&g.removeChild(d)}function queryElement(d){return document.querySelector(`style[cssr-id="${d}"]`)}function createElement(d){const g=document.createElement("style");return g.setAttribute("cssr-id",d),g}function isMediaOrSupports(d){return d?/^\s*@(s|m)/.test(d):!1}const kebabRegex=/[A-Z]/g;function kebabCase(d){return d.replace(kebabRegex,g=>"-"+g.toLowerCase())}function unwrapProperty(d,g=" "){return typeof d=="object"&&d!==null?` {
  17. `+Object.entries(d).map(b=>g+` ${kebabCase(b[0])}: ${b[1]};`).join(`
  18. `)+`
  19. `+g+"}":`: ${d};`}function unwrapProperties(d,g,b){return typeof d=="function"?d({context:g.context,props:b}):d}function createStyle(d,g,b,A){if(!g)return"";const w=unwrapProperties(g,b,A);if(!w)return"";if(typeof w=="string")return`${d} {
  20. ${w}
  21. }`;const C=Object.keys(w);if(C.length===0)return b.config.keepEmptyBlock?d+` {
  22. }`:"";const x=d?[d+" {"]:[];return C.forEach(S=>{const E=w[S];if(S==="raw"){x.push(`
  23. `+E+`
  24. `);return}S=kebabCase(S),E!=null&&x.push(` ${S}${unwrapProperty(E)}`)}),d&&x.push("}"),x.join(`
  25. `)}function loopCNodeListWithCallback(d,g,b){d&&d.forEach(A=>{if(Array.isArray(A))loopCNodeListWithCallback(A,g,b);else if(typeof A=="function"){const w=A(g);Array.isArray(w)?loopCNodeListWithCallback(w,g,b):w&&b(w)}else A&&b(A)})}function traverseCNode(d,g,b,A,w,C){const x=d.$;let S="";if(!x||typeof x=="string")isMediaOrSupports(x)?S=x:g.push(x);else if(typeof x=="function"){const $=x({context:A.context,props:w});isMediaOrSupports($)?S=$:g.push($)}else if(x.before&&x.before(A.context),!x.$||typeof x.$=="string")isMediaOrSupports(x.$)?S=x.$:g.push(x.$);else if(x.$){const $=x.$({context:A.context,props:w});isMediaOrSupports($)?S=$:g.push($)}const E=parseSelectorPath(g),B=createStyle(E,d.props,A,w);S?(b.push(`${S} {`),C&&B&&C.insertRule(`${S} {
  26. ${B}
  27. }
  28. `)):(C&&B&&C.insertRule(B),!C&&B.length&&b.push(B)),d.children&&loopCNodeListWithCallback(d.children,{context:A.context,props:w},$=>{if(typeof $=="string"){const P=createStyle(E,{raw:$},A,w);C?C.insertRule(P):b.push(P)}else traverseCNode($,g,b,A,w,C)}),g.pop(),S&&b.push("}"),x&&x.after&&x.after(A.context)}function render(d,g,b,A=!1){const w=[];return traverseCNode(d,[],w,g,b,A?d.instance.__styleSheet:void 0),A?"":w.join(`
  29. `)}function murmur2(d){for(var g=0,b,A=0,w=d.length;w>=4;++A,w-=4)b=d.charCodeAt(A)&255|(d.charCodeAt(++A)&255)<<8|(d.charCodeAt(++A)&255)<<16|(d.charCodeAt(++A)&255)<<24,b=(b&65535)*1540483477+((b>>>16)*59797<<16),b^=b>>>24,g=(b&65535)*1540483477+((b>>>16)*59797<<16)^(g&65535)*1540483477+((g>>>16)*59797<<16);switch(w){case 3:g^=(d.charCodeAt(A+2)&255)<<16;case 2:g^=(d.charCodeAt(A+1)&255)<<8;case 1:g^=d.charCodeAt(A)&255,g=(g&65535)*1540483477+((g>>>16)*59797<<16)}return g^=g>>>13,g=(g&65535)*1540483477+((g>>>16)*59797<<16),((g^g>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function unmount(d,g,b){const{els:A}=g;if(b===void 0)A.forEach(removeElement),g.els=[];else{const w=queryElement(b);w&&A.includes(w)&&(removeElement(w),g.els=A.filter(C=>C!==w))}}function addElementToList(d,g){d.push(g)}function mount(d,g,b,A,w,C,x,S,E){if(C&&!E){if(b===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const k=window.__cssrContext;k[b]||(k[b]=!0,render(g,d,A,C));return}let B;if(b===void 0&&(B=g.render(A),b=murmur2(B)),E){E.adapter(b,B!=null?B:g.render(A));return}const $=queryElement(b);if($!==null&&!x)return $;const P=$!=null?$:createElement(b);if(B===void 0&&(B=g.render(A)),P.textContent=B,$!==null)return $;if(S){const k=document.head.querySelector(`meta[name="${S}"]`);if(k)return document.head.insertBefore(P,k),addElementToList(g.els,P),P}return w?document.head.insertBefore(P,document.head.querySelector("style, link")):document.head.appendChild(P),addElementToList(g.els,P),P}function wrappedRender(d){return render(this,this.instance,d)}function wrappedMount(d={}){const{id:g,ssr:b,props:A,head:w=!1,silent:C=!1,force:x=!1,anchorMetaName:S}=d;return mount(this.instance,this,g,A,w,C,x,S,b)}function wrappedUnmount(d={}){const{id:g}=d;unmount(this.instance,this,g)}const createCNode=function(d,g,b,A){return{instance:d,$:g,props:b,children:A,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$4=function(d,g,b,A){return Array.isArray(g)?createCNode(d,{$:null},null,g):Array.isArray(b)?createCNode(d,g,null,b):Array.isArray(A)?createCNode(d,g,b,A):createCNode(d,g,b,null)};function CssRender(d={}){let g=null;const b={c:(...A)=>c$4(b,...A),use:(A,...w)=>A.install(b,...w),find:queryElement,context:{},config:d,get __styleSheet(){if(!g){const A=document.createElement("style");return document.head.appendChild(A),g=document.styleSheets[document.styleSheets.length-1],g}return g}};return b}function exists(d,g){if(d===void 0)return!1;if(g){const{context:{ids:b}}=g;return b.has(d)}return queryElement(d)!==null}function plugin$1(d){let g=".",b="__",A="--",w;if(d){let R=d.blockPrefix;R&&(g=R),R=d.elementPrefix,R&&(b=R),R=d.modifierPrefix,R&&(A=R)}const C={install(R){w=R.c;const F=R.context;F.bem={},F.bem.b=null,F.bem.els=null}};function x(R){let F,L;return{before(z){F=z.bem.b,L=z.bem.els,z.bem.els=null},after(z){z.bem.b=F,z.bem.els=L},$({context:z,props:U}){return R=typeof R=="string"?R:R({context:z,props:U}),z.bem.b=R,`${(U==null?void 0:U.bPrefix)||g}${z.bem.b}`}}}function S(R){let F;return{before(L){F=L.bem.els},after(L){L.bem.els=F},$({context:L,props:z}){return R=typeof R=="string"?R:R({context:L,props:z}),L.bem.els=R.split(",").map(U=>U.trim()),L.bem.els.map(U=>`${(z==null?void 0:z.bPrefix)||g}${L.bem.b}${b}${U}`).join(", ")}}}function E(R){return{$({context:F,props:L}){R=typeof R=="string"?R:R({context:F,props:L});const z=R.split(",").map(V=>V.trim());function U(V){return z.map(Q=>`&${(L==null?void 0:L.bPrefix)||g}${F.bem.b}${V!==void 0?`${b}${V}`:""}${A}${Q}`).join(", ")}const W=F.bem.els;return W!==null?U(W[0]):U()}}}function B(R){return{$({context:F,props:L}){R=typeof R=="string"?R:R({context:F,props:L});const z=F.bem.els;return`&:not(${(L==null?void 0:L.bPrefix)||g}${F.bem.b}${z!==null&&z.length>0?`${b}${z[0]}`:""}${A}${R})`}}}return Object.assign(C,{cB:(...R)=>w(x(R[0]),R[1],R[2]),cE:(...R)=>w(S(R[0]),R[1],R[2]),cM:(...R)=>w(E(R[0]),R[1],R[2]),cNotM:(...R)=>w(B(R[0]),R[1],R[2])}),C}function createKey(d,g){return d+(g==="default"?"":g.replace(/^[a-z]/,b=>b.toUpperCase()))}createKey("abc","def");const namespace="n",prefix=`.${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:g}})=>`${g||prefix}modal, ${g||prefix}drawer`,[d])}function insidePopover(d){return c$3(({props:{bPrefix:g}})=>`${g||prefix}popover`,[d])}function asModal(d){return c$3(({props:{bPrefix:g}})=>`&${g||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,g,b){if(!g)return d;const A=ref(d.value);let w=null;return watch(d,C=>{w!==null&&window.clearTimeout(w),C===!0?b&&!b.value?A.value=!0:w=window.setTimeout(()=>{A.value=!0},g):A.value=!1}),A}function useFalseUntilTruthy(d){const g=ref(!!d.value);if(g.value)return readonly(g);const b=watch(d,A=>{A&&(g.value=!0,b())});return readonly(g)}function useMemo(d){const g=computed(d),b=ref(g.value);return watch(g,A=>{b.value=A}),typeof d=="function"?b:{__v_isRef:!0,get value(){return b.value},set value(A){d.set(A)}}}function hasInstance(){return getCurrentInstance()!==null}const isBrowser$1=typeof window<"u";let fontsReady,isFontReady;const init=()=>{var d,g;fontsReady=isBrowser$1?(g=(d=document)===null||d===void 0?void 0:d.fonts)===null||g===void 0?void 0:g.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init();function onFontsReady(d){if(isFontReady)return;let g=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{g||d()})}),onBeforeUnmount(()=>{g=!0})}function getEventTarget(d){return d.composedPath()[0]}const traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(d,g,b){if(d==="mousemoveoutside"){const A=w=>{g.contains(getEventTarget(w))||b(w)};return{mousemove:A,touchstart:A}}else if(d==="clickoutside"){let A=!1;const w=x=>{A=!g.contains(getEventTarget(x))},C=x=>{A&&(g.contains(getEventTarget(x))||b(x))};return{mousedown:w,mouseup:C,touchstart:w,touchend:C}}return console.error(`[evtd/create-trap-handler]: name \`${d}\` is invalid. This could be a bug of evtd.`),{}}function ensureTrapHandlers(d,g,b){const A=traps[d];let w=A.get(g);w===void 0&&A.set(g,w=new WeakMap);let C=w.get(b);return C===void 0&&w.set(b,C=createTrapHandler(d,g,b)),C}function trapOn(d,g,b,A){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,g,b);return Object.keys(w).forEach(C=>{on(C,document,w[C],A)}),!0}return!1}function trapOff(d,g,b,A){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,g,b);return Object.keys(w).forEach(C=>{off(C,document,w[C],A)}),!0}return!1}function createDelegate(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const d=new WeakMap,g=new WeakMap;function b(){d.set(this,!0)}function A(){d.set(this,!0),g.set(this,!0)}function w(G,X,J){const re=G[X];return G[X]=function(){return J.apply(G,arguments),re.apply(G,arguments)},G}function C(G,X){G[X]=Event.prototype[X]}const x=new WeakMap,S=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function E(){var G;return(G=x.get(this))!==null&&G!==void 0?G:null}function B(G,X){S!==void 0&&Object.defineProperty(G,"currentTarget",{configurable:!0,enumerable:!0,get:X!=null?X:S.get})}const $={bubble:{},capture:{}},P={};function k(){const G=function(X){const{type:J,eventPhase:re,bubbles:fe}=X,Z=getEventTarget(X);if(re===2)return;const ie=re===1?"capture":"bubble";let ce=Z;const me=[];for(;ce===null&&(ce=window),me.push(ce),ce!==window;)ce=ce.parentNode||null;const ne=$.capture[J],te=$.bubble[J];if(w(X,"stopPropagation",b),w(X,"stopImmediatePropagation",A),B(X,E),ie==="capture"){if(ne===void 0)return;for(let ue=me.length-1;ue>=0&&!d.has(X);--ue){const ae=me[ue],ye=ne.get(ae);if(ye!==void 0){x.set(X,ae);for(const Oe of ye){if(g.has(X))break;Oe(X)}}if(ue===0&&!fe&&te!==void 0){const Oe=te.get(ae);if(Oe!==void 0)for(const Ye of Oe){if(g.has(X))break;Ye(X)}}}}else if(ie==="bubble"){if(te===void 0)return;for(let ue=0;ue<me.length&&!d.has(X);++ue){const ae=me[ue],ye=te.get(ae);if(ye!==void 0){x.set(X,ae);for(const Oe of ye){if(g.has(X))break;Oe(X)}}}}C(X,"stopPropagation"),C(X,"stopImmediatePropagation"),B(X)};return G.displayName="evtdUnifiedHandler",G}function M(){const G=function(X){const{type:J,eventPhase:re}=X;if(re!==2)return;const fe=P[J];fe!==void 0&&fe.forEach(Z=>Z(X))};return G.displayName="evtdUnifiedWindowEventHandler",G}const R=k(),F=M();function L(G,X){const J=$[G];return J[X]===void 0&&(J[X]=new Map,window.addEventListener(X,R,G==="capture")),J[X]}function z(G){return P[G]===void 0&&(P[G]=new Set,window.addEventListener(G,F)),P[G]}function U(G,X){let J=G.get(X);return J===void 0&&G.set(X,J=new Set),J}function W(G,X,J,re){const fe=$[X][J];if(fe!==void 0){const Z=fe.get(G);if(Z!==void 0&&Z.has(re))return!0}return!1}function V(G,X){const J=P[G];return!!(J!==void 0&&J.has(X))}function Q(G,X,J,re){let fe;if(typeof re=="object"&&re.once===!0?fe=ne=>{K(G,X,fe,re),J(ne)}:fe=J,trapOn(G,X,fe,re))return;const ie=re===!0||typeof re=="object"&&re.capture===!0?"capture":"bubble",ce=L(ie,G),me=U(ce,X);if(me.has(fe)||me.add(fe),X===window){const ne=z(G);ne.has(fe)||ne.add(fe)}}function K(G,X,J,re){if(trapOff(G,X,J,re))return;const Z=re===!0||typeof re=="object"&&re.capture===!0,ie=Z?"capture":"bubble",ce=L(ie,G),me=U(ce,X);if(X===window&&!W(X,Z?"bubble":"capture",G,J)&&V(G,J)){const te=P[G];te.delete(J),te.size===0&&(window.removeEventListener(G,F),P[G]=void 0)}me.has(J)&&me.delete(J),me.size===0&&ce.delete(X),ce.size===0&&(window.removeEventListener(G,R,ie==="capture"),$[ie][G]=void 0)}return{on:Q,off:K}}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:g}=d;if(g instanceof Element){const{left:b,top:A,width:w,height:C}=g.getBoundingClientRect();b>0||A>0?mousePositionRef.value={x:b+w/2,y:A+C/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 g=ref(!1);let b=null;function A(){b!==null&&window.clearTimeout(b)}function w(){A(),g.value=!0,b=window.setTimeout(()=>{g.value=!1},d)}usedCount===0&&on("click",window,handleClick,!0);const C=()=>{usedCount+=1,on("click",window,w,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(C),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off("click",window,handleClick,!0),off("click",window,w,!0),A()})):C(),readonly(g)}function useMergedState(d,g){return watch(d,b=>{b!==void 0&&(g.value=b)}),computed(()=>d.value===void 0?g.value:d.value)}function isMounted(){const d=ref(!1);return onMounted(()=>{d.value=!0}),readonly(d)}function useCompitable(d,g){return computed(()=>{for(const b of g)if(d[b]!==void 0)return d[b];return d[g[g.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: ${d}px)`}const mqlMap={};function useBreakpoints(d=defaultBreakpointOptions){if(!isBrowser$1)return computed(()=>[]);if(typeof window.matchMedia!="function")return computed(()=>[]);const g=ref({}),b=Object.keys(d),A=(w,C)=>{w.matches?g.value[C]=!0:g.value[C]=!1};return b.forEach(w=>{const C=d[w];let x,S;mqlMap[C]===void 0?(x=window.matchMedia(createMediaQuery(C)),x.addEventListener?x.addEventListener("change",E=>{S.forEach(B=>{B(E,w)})}):x.addListener&&x.addListener(E=>{S.forEach(B=>{B(E,w)})}),S=new Set,mqlMap[C]={mql:x,cbs:S}):(x=mqlMap[C].mql,S=mqlMap[C].cbs),S.add(A),x.matches&&S.forEach(E=>{E(x,w)})}),onBeforeUnmount(()=>{b.forEach(w=>{const{cbs:C}=mqlMap[d[w]];C.has(A)&&C.delete(A)})}),computed(()=>{const{value:w}=g;return b.filter(C=>w[C])})}function useKeyboard(d={},g){const b=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:A,keyup:w}=d,C=E=>{switch(E.key){case"Control":b.ctrl=!0;break;case"Meta":b.command=!0,b.win=!0;break;case"Shift":b.shift=!0;break;case"Tab":b.tab=!0;break}A!==void 0&&Object.keys(A).forEach(B=>{if(B!==E.key)return;const $=A[B];if(typeof $=="function")$(E);else{const{stop:P=!1,prevent:k=!1}=$;P&&E.stopPropagation(),k&&E.preventDefault(),$.handler(E)}})},x=E=>{switch(E.key){case"Control":b.ctrl=!1;break;case"Meta":b.command=!1,b.win=!1;break;case"Shift":b.shift=!1;break;case"Tab":b.tab=!1;break}w!==void 0&&Object.keys(w).forEach(B=>{if(B!==E.key)return;const $=w[B];if(typeof $=="function")$(E);else{const{stop:P=!1,prevent:k=!1}=$;P&&E.stopPropagation(),k&&E.preventDefault(),$.handler(E)}})},S=()=>{(g===void 0||g.value)&&(on("keydown",document,C),on("keyup",document,x)),g!==void 0&&watch(g,E=>{E?(on("keydown",document,C),on("keyup",document,x)):(off("keydown",document,C),off("keyup",document,x))})};return hasInstance()?(onBeforeMount(S),onBeforeUnmount(()=>{(g===void 0||g.value)&&(off("keydown",document,C),off("keyup",document,x))})):S(),readonly(b)}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 g=inject(modalBodyInjectionKey,null),b=inject(drawerBodyInjectionKey,null),A=inject(popoverBodyInjectionKey,null),w=inject(internalSelectionMenuBodyInjectionKey,null),C=ref();if(typeof document<"u"){C.value=document.fullscreenElement;const x=()=>{C.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,x)}),onBeforeUnmount(()=>{off("fullscreenchange",document,x)})}return useMemo(()=>{var x;const{to:S}=d;return S!==void 0?S===!1?teleportDisabled:S===!0?C.value||"body":S:g!=null&&g.value?(x=g.value.$el)!==null&&x!==void 0?x:g.value:b!=null&&b.value?b.value:A!=null&&A.value?A.value:w!=null&&w.value?w.value:S!=null?S:C.value||"body"})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(d,g,b="default"){const A=g[b];if(A===void 0)throw new Error(`[vueuc/${d}]: slot[${b}] is empty.`);return A()}function flatten$3(d,g=!0,b=[]){return d.forEach(A=>{if(A!==null){if(typeof A!="object"){(typeof A=="string"||typeof A=="number")&&b.push(createTextVNode(String(A)));return}if(Array.isArray(A)){flatten$3(A,g,b);return}if(A.type===Fragment){if(A.children===null)return;Array.isArray(A.children)&&flatten$3(A.children,g,b)}else A.type!==Comment&&b.push(A)}}),b}function getFirstVNode(d,g,b="default"){const A=g[b];if(A===void 0)throw new Error(`[vueuc/${d}]: slot[${b}] is empty.`);const w=flatten$3(A());if(w.length===1)return w[0];throw new Error(`[vueuc/${d}]: slot[${b}] 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,g){const b=ensureViewBoundingRect();return{top:g,left:d,height:0,width:0,right:b.width-d,bottom:b.height-g}}function getRect$1(d){const g=d.getBoundingClientRect(),b=ensureViewBoundingRect();return{left:g.left-b.left,top:g.top-b.top,bottom:b.height+b.top-g.bottom,right:b.width+b.left-g.right,width:g.width,height:g.height}}function getParentNode(d){return d.nodeType===9?null:d.parentNode}function getScrollParent(d){if(d===null)return null;const g=getParentNode(d);if(g===null)return null;if(g.nodeType===9)return document;if(g.nodeType===1){const{overflow:b,overflowX:A,overflowY:w}=getComputedStyle(g);if(/(auto|scroll|overlay)/.test(b+w+A))return g}return getScrollParent(g)}const Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(d){var g;provide("VBinder",(g=getCurrentInstance())===null||g===void 0?void 0:g.proxy);const b=inject("VBinder",null),A=ref(null),w=z=>{A.value=z,b&&d.syncTargetWithParent&&b.setTargetRef(z)};let C=[];const x=()=>{let z=A.value;for(;z=getScrollParent(z),z!==null;)C.push(z);for(const U of C)on("scroll",U,P,!0)},S=()=>{for(const z of C)off("scroll",z,P,!0);C=[]},E=new Set,B=z=>{E.size===0&&x(),E.has(z)||E.add(z)},$=z=>{E.has(z)&&E.delete(z),E.size===0&&S()},P=()=>{beforeNextFrameOnce(k)},k=()=>{E.forEach(z=>z())},M=new Set,R=z=>{M.size===0&&on("resize",window,L),M.has(z)||M.add(z)},F=z=>{M.has(z)&&M.delete(z),M.size===0&&off("resize",window,L)},L=()=>{M.forEach(z=>z())};return onBeforeUnmount(()=>{off("resize",window,L),S()}),{targetRef:A,setTargetRef:w,addScrollListener:B,removeScrollListener:$,addResizeListener:R,removeResizeListener:F}},render(){return getSlot("binder",this.$slots)}}),VBinder=Binder,VTarget=defineComponent({name:"Target",setup(){const{setTargetRef:d,syncTarget:g}=inject("VBinder");return{syncTarget:g,setTargetDirective:{mounted:d,updated:d}}},render(){const{syncTarget:d,setTargetDirective:g}=this;return d?withDirectives(getFirstVNode("follower",this.$slots),[[g]]):getFirstVNode("follower",this.$slots)}}),ctxKey$1="@@mmoContext",mousemoveoutside={mounted(d,{value:g}){d[ctxKey$1]={handler:void 0},typeof g=="function"&&(d[ctxKey$1].handler=g,on("mousemoveoutside",d,g))},updated(d,{value:g}){const b=d[ctxKey$1];typeof g=="function"?b.handler?b.handler!==g&&(off("mousemoveoutside",d,b.handler),b.handler=g,on("mousemoveoutside",d,g)):(d[ctxKey$1].handler=g,on("mousemoveoutside",d,g)):b.handler&&(off("mousemoveoutside",d,b.handler),b.handler=void 0)},unmounted(d){const{handler:g}=d[ctxKey$1];g&&off("mousemoveoutside",d,g),d[ctxKey$1].handler=void 0}},mousemoveoutside$1=mousemoveoutside,ctxKey="@@coContext",clickoutside={mounted(d,{value:g,modifiers:b}){d[ctxKey]={handler:void 0},typeof g=="function"&&(d[ctxKey].handler=g,on("clickoutside",d,g,{capture:b.capture}))},updated(d,{value:g,modifiers:b}){const A=d[ctxKey];typeof g=="function"?A.handler?A.handler!==g&&(off("clickoutside",d,A.handler,{capture:b.capture}),A.handler=g,on("clickoutside",d,g,{capture:b.capture})):(d[ctxKey].handler=g,on("clickoutside",d,g,{capture:b.capture})):A.handler&&(off("clickoutside",d,A.handler,{capture:b.capture}),A.handler=void 0)},unmounted(d,{modifiers:g}){const{handler:b}=d[ctxKey];b&&off("clickoutside",d,b,{capture:g.capture}),d[ctxKey].handler=void 0}},clickoutside$1=clickoutside;function warn$2(d,g){console.error(`[vdirs/${d}]: ${g}`)}class ZIndexManager{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(g,b){const{elementZIndex:A}=this;if(b!==void 0){g.style.zIndex=`${b}`,A.delete(g);return}const{nextZIndex:w}=this;A.has(g)&&A.get(g)+1===this.nextZIndex||(g.style.zIndex=`${w}`,A.set(g,w),this.nextZIndex=w+1,this.squashState())}unregister(g,b){const{elementZIndex:A}=this;A.has(g)?A.delete(g):b===void 0&&warn$2("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:g}=this;g||(this.nextZIndex=2e3),this.nextZIndex-g>2500&&this.rearrange()}rearrange(){const g=Array.from(this.elementZIndex.entries());g.sort((b,A)=>b[1]-A[1]),this.nextZIndex=2e3,g.forEach(b=>{const A=b[0],w=this.nextZIndex++;`${w}`!==A.style.zIndex&&(A.style.zIndex=`${w}`)})}}const zIndexManager=new ZIndexManager,ctx="@@ziContext",zindexable={mounted(d,g){const{value:b={}}=g,{zIndex:A,enabled:w}=b;d[ctx]={enabled:!!w,initialized:!1},w&&(zIndexManager.ensureZIndex(d,A),d[ctx].initialized=!0)},updated(d,g){const{value:b={}}=g,{zIndex:A,enabled:w}=b,C=d[ctx].enabled;w&&!C&&(zIndexManager.ensureZIndex(d,A),d[ctx].initialized=!0),d[ctx].enabled=!!w},unmounted(d,g){if(!d[ctx].initialized)return;const{value:b={}}=g,{zIndex:A}=b;zIndexManager.unregister(d,A)}},zindexable$1=zindexable,ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(d,g){return`<style cssr-id="${d}">
  30. ${g}
  31. </style>`}function ssrAdapter(d,g){const b=inject(ssrContextKey,null);if(b===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:A,ids:w}=b;w.has(d)||A!==null&&(w.add(d),A.push(createStyleString(d,g)))}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,g){console.error(`[vueuc/${d}]: ${g}`)}const{c:c$2}=CssRender(),cssrAnchorMetaName$1="vueuc-style";function lowBit(d){return d&-d}class FinweckTree{constructor(g,b){this.l=g,this.min=b;const A=new Array(g+1);for(let w=0;w<g+1;++w)A[w]=0;this.ft=A}add(g,b){if(b===0)return;const{l:A,ft:w}=this;for(g+=1;g<=A;)w[g]+=b,g+=lowBit(g)}get(g){return this.sum(g+1)-this.sum(g)}sum(g){if(g===void 0&&(g=this.l),g<=0)return 0;const{ft:b,min:A,l:w}=this;if(g>w)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let C=g*A;for(;g>0;)C+=b[g],g-=lowBit(g);return C}getBound(g){let b=0,A=this.l;for(;A>b;){const w=Math.floor((b+A)/2),C=this.sum(w);if(C>g){A=w;continue}else if(C<g){if(b===w)return this.sum(b+1)<=g?b+1:w;b=w}else return w}return b}}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:g}=d;return g!=null?g:"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,g,b,A,w,C){if(!w||C)return{placement:d,top:0,left:0};const[x,S]=d.split("-");let E=S!=null?S:"center",B={top:0,left:0};const $=(M,R,F)=>{let L=0,z=0;const U=b[M]-g[R]-g[M];return U>0&&A&&(F?z=keepOffsetDirection[R]?U:-U:L=keepOffsetDirection[R]?U:-U),{left:L,top:z}},P=x==="left"||x==="right";if(E!=="center"){const M=oppositeAlignCssPositionProps[d],R=oppositionPositions[M],F=propToCompare[M];if(b[F]>g[F]){if(g[M]+g[F]<b[F]){const L=(b[F]-g[F])/2;g[M]<L||g[R]<L?g[M]<g[R]?(E=oppositeAligns[S],B=$(F,R,P)):B=$(F,M,P):E="center"}}else b[F]<g[F]&&g[R]<0&&g[M]>g[R]&&(E=oppositeAligns[S])}else{const M=x==="bottom"||x==="top"?"left":"top",R=oppositionPositions[M],F=propToCompare[M],L=(b[F]-g[F])/2;(g[M]<L||g[R]<L)&&(g[M]>g[R]?(E=cssPositionToOppositeAlign[M],B=$(F,M,P)):(E=cssPositionToOppositeAlign[R],B=$(F,R,P)))}let k=x;return g[x]<b[propToCompare[x]]&&g[x]<g[oppositionPositions[x]]&&(k=oppositionPositions[x]),{placement:E!=="center"?`${k}-${E}`:k,left:B.left,top:B.top}}function getProperTransformOrigin(d,g){return g?overlapTransformOrigin[d]:transformOrigins[d]}function getOffset(d,g,b,A,w,C){if(C)switch(d){case"bottom-start":return{top:`${Math.round(b.top-g.top+b.height)}px`,left:`${Math.round(b.left-g.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(b.top-g.top+b.height)}px`,left:`${Math.round(b.left-g.left+b.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(b.top-g.top)}px`,left:`${Math.round(b.left-g.left)}px`,transform:""};case"top-end":return{top:`${Math.round(b.top-g.top)}px`,left:`${Math.round(b.left-g.left+b.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(b.top-g.top)}px`,left:`${Math.round(b.left-g.left+b.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(b.top-g.top+b.height)}px`,left:`${Math.round(b.left-g.left+b.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(b.top-g.top)}px`,left:`${Math.round(b.left-g.left)}px`,transform:""};case"left-end":return{top:`${Math.round(b.top-g.top+b.height)}px`,left:`${Math.round(b.left-g.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(b.top-g.top)}px`,left:`${Math.round(b.left-g.left+b.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(b.top-g.top+b.height/2)}px`,left:`${Math.round(b.left-g.left+b.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(b.top-g.top+b.height/2)}px`,left:`${Math.round(b.left-g.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(b.top-g.top+b.height)}px`,left:`${Math.round(b.left-g.left+b.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(d){case"bottom-start":return{top:`${Math.round(b.top-g.top+b.height+A)}px`,left:`${Math.round(b.left-g.left+w)}px`,transform:""};case"bottom-end":return{top:`${Math.round(b.top-g.top+b.height+A)}px`,left:`${Math.round(b.left-g.left+b.width+w)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(b.top-g.top+A)}px`,left:`${Math.round(b.left-g.left+w)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(b.top-g.top+A)}px`,left:`${Math.round(b.left-g.left+b.width+w)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(b.top-g.top+A)}px`,left:`${Math.round(b.left-g.left+b.width+w)}px`,transform:""};case"right-end":return{top:`${Math.round(b.top-g.top+b.height+A)}px`,left:`${Math.round(b.left-g.left+b.width+w)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(b.top-g.top+A)}px`,left:`${Math.round(b.left-g.left+w)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(b.top-g.top+b.height+A)}px`,left:`${Math.round(b.left-g.left+w)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(b.top-g.top+A)}px`,left:`${Math.round(b.left-g.left+b.width/2+w)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(b.top-g.top+b.height/2+A)}px`,left:`${Math.round(b.left-g.left+b.width+w)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(b.top-g.top+b.height/2+A)}px`,left:`${Math.round(b.left-g.left+w)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(b.top-g.top+b.height+A)}px`,left:`${Math.round(b.left-g.left+b.width/2+w)}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 g=inject("VBinder"),b=useMemo(()=>d.enabled!==void 0?d.enabled:d.show),A=ref(null),w=ref(null),C=()=>{const{syncTrigger:k}=d;k.includes("scroll")&&g.addScrollListener(E),k.includes("resize")&&g.addResizeListener(E)},x=()=>{g.removeScrollListener(E),g.removeResizeListener(E)};onMounted(()=>{b.value&&(E(),C())});const S=useSsrAdapter();style$s.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:S}),onBeforeUnmount(()=>{x()}),onFontsReady(()=>{b.value&&E()});const E=()=>{if(!b.value)return;const k=A.value;if(k===null)return;const M=g.targetRef,{x:R,y:F,overlap:L}=d,z=R!==void 0&&F!==void 0?getPointRect(R,F):getRect$1(M);k.style.setProperty("--v-target-width",`${Math.round(z.width)}px`),k.style.setProperty("--v-target-height",`${Math.round(z.height)}px`);const{width:U,minWidth:W,placement:V,internalShift:Q,flip:K}=d;k.setAttribute("v-placement",V),L?k.setAttribute("v-overlap",""):k.removeAttribute("v-overlap");const{style:G}=k;U==="target"?G.width=`${z.width}px`:U!==void 0?G.width=U:G.width="",W==="target"?G.minWidth=`${z.width}px`:W!==void 0?G.minWidth=W:G.minWidth="";const X=getRect$1(k),J=getRect$1(w.value),{left:re,top:fe,placement:Z}=getPlacementAndOffsetOfFollower(V,z,X,Q,K,L),ie=getProperTransformOrigin(Z,L),{left:ce,top:me,transform:ne}=getOffset(Z,J,z,fe,re,L);k.setAttribute("v-placement",Z),k.style.setProperty("--v-offset-left",`${Math.round(re)}px`),k.style.setProperty("--v-offset-top",`${Math.round(fe)}px`),k.style.transform=`translateX(${ce}) translateY(${me}) ${ne}`,k.style.setProperty("--v-transform-origin",ie),k.style.transformOrigin=ie};watch(b,k=>{k?(C(),B()):x()});const B=()=>{nextTick().then(E).catch(k=>console.error(k))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(k=>{watch(toRef$1(d,k),E)}),["teleportDisabled"].forEach(k=>{watch(toRef$1(d,k),B)}),watch(toRef$1(d,"syncTrigger"),k=>{k.includes("resize")?g.addResizeListener(E):g.removeResizeListener(E),k.includes("scroll")?g.addScrollListener(E):g.removeScrollListener(E)});const $=isMounted(),P=useMemo(()=>{const{to:k}=d;if(k!==void 0)return k;$.value});return{VBinder:g,mergedEnabled:b,offsetContainerRef:w,followerRef:A,mergedTo:P,syncPosition:E}},render(){return h$1(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var d,g;const b=h$1("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h$1("div",{class:"v-binder-follower-content",ref:"followerRef"},(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d))]);return this.zindexable?withDirectives(b,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):b}})}});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(g,b){this.inlineSize=g,this.blockSize=b,freeze(this)}return d}(),DOMRectReadOnly=function(){function d(g,b,A,w){return this.x=g,this.y=b,this.width=A,this.height=w,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 g=this,b=g.x,A=g.y,w=g.top,C=g.right,x=g.bottom,S=g.left,E=g.width,B=g.height;return{x:b,y:A,top:w,right:C,bottom:x,left:S,width:E,height:B}},d.fromRect=function(g){return new d(g.x,g.y,g.width,g.height)},d}(),isSVG=function(d){return d instanceof SVGElement&&"getBBox"in d},isHidden=function(d){if(isSVG(d)){var g=d.getBBox(),b=g.width,A=g.height;return!b&&!A}var w=d,C=w.offsetWidth,x=w.offsetHeight;return!(C||x||d.getClientRects().length)},isElement=function(d){var g;if(d instanceof Element)return!0;var b=(g=d==null?void 0:d.ownerDocument)===null||g===void 0?void 0:g.defaultView;return!!(b&&d instanceof b.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,g,b){return d===void 0&&(d=0),g===void 0&&(g=0),b===void 0&&(b=!1),new ResizeObserverSize((b?g:d)||0,(b?d:g)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(d,g){if(g===void 0&&(g=!1),cache.has(d)&&!g)return cache.get(d);if(isHidden(d))return cache.set(d,zeroBoxes),zeroBoxes;var b=getComputedStyle(d),A=isSVG(d)&&d.ownerSVGElement&&d.getBBox(),w=!IE&&b.boxSizing==="border-box",C=verticalRegexp.test(b.writingMode||""),x=!A&&scrollRegexp.test(b.overflowY||""),S=!A&&scrollRegexp.test(b.overflowX||""),E=A?0:parseDimension(b.paddingTop),B=A?0:parseDimension(b.paddingRight),$=A?0:parseDimension(b.paddingBottom),P=A?0:parseDimension(b.paddingLeft),k=A?0:parseDimension(b.borderTopWidth),M=A?0:parseDimension(b.borderRightWidth),R=A?0:parseDimension(b.borderBottomWidth),F=A?0:parseDimension(b.borderLeftWidth),L=P+B,z=E+$,U=F+M,W=k+R,V=S?d.offsetHeight-W-d.clientHeight:0,Q=x?d.offsetWidth-U-d.clientWidth:0,K=w?L+U:0,G=w?z+W:0,X=A?A.width:parseDimension(b.width)-K-Q,J=A?A.height:parseDimension(b.height)-G-V,re=X+L+Q+U,fe=J+z+V+W,Z=freeze({devicePixelContentBoxSize:size(Math.round(X*devicePixelRatio),Math.round(J*devicePixelRatio),C),borderBoxSize:size(re,fe,C),contentBoxSize:size(X,J,C),contentRect:new DOMRectReadOnly(P,E,X,J)});return cache.set(d,Z),Z},calculateBoxSize=function(d,g,b){var A=calculateBoxSizes(d,b),w=A.borderBoxSize,C=A.contentBoxSize,x=A.devicePixelContentBoxSize;switch(g){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return x;case ResizeObserverBoxOptions.BORDER_BOX:return w;default:return C}},ResizeObserverEntry=function(){function d(g){var b=calculateBoxSizes(g);this.target=g,this.contentRect=b.contentRect,this.borderBoxSize=freeze([b.borderBoxSize]),this.contentBoxSize=freeze([b.contentBoxSize]),this.devicePixelContentBoxSize=freeze([b.devicePixelContentBoxSize])}return d}(),calculateDepthForNode=function(d){if(isHidden(d))return 1/0;for(var g=0,b=d.parentNode;b;)g+=1,b=b.parentNode;return g},broadcastActiveObservations=function(){var d=1/0,g=[];resizeObservers.forEach(function(x){if(x.activeTargets.length!==0){var S=[];x.activeTargets.forEach(function(B){var $=new ResizeObserverEntry(B.target),P=calculateDepthForNode(B.target);S.push($),B.lastReportedSize=calculateBoxSize(B.target,B.observedBox),P<d&&(d=P)}),g.push(function(){x.callback.call(x.observer,S,x.observer)}),x.activeTargets.splice(0,x.activeTargets.length)}});for(var b=0,A=g;b<A.length;b++){var w=A[b];w()}return d},gatherActiveObservationsAtDepth=function(d){resizeObservers.forEach(function(b){b.activeTargets.splice(0,b.activeTargets.length),b.skippedTargets.splice(0,b.skippedTargets.length),b.observationTargets.forEach(function(w){w.isActive()&&(calculateDepthForNode(w.target)>d?b.activeTargets.push(w):b.skippedTargets.push(w))})})},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 g=0,b=document.createTextNode(""),A={characterData:!0};new MutationObserver(function(){return notify()}).observe(b,A),trigger=function(){b.textContent="".concat(g?g--:g++)}}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 g=this;this.stopped=!0,this.listener=function(){return g.schedule()}}return d.prototype.run=function(g){var b=this;if(g===void 0&&(g=CATCH_PERIOD),!scheduled){scheduled=!0;var A=time$1(g);queueResizeObserver(function(){var w=!1;try{w=process$1()}finally{if(scheduled=!1,g=A-time$1(),!isWatching())return;w?b.run(1e3):g>0?b.run(g):b.start()}})}},d.prototype.schedule=function(){this.stop(),this.run()},d.prototype.observe=function(){var g=this,b=function(){return g.observer&&g.observer.observe(document.body,observerConfig)};document.body?b():global$1.addEventListener("DOMContentLoaded",b)},d.prototype.start=function(){var g=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(b){return global$1.addEventListener(b,g.listener,!0)}))},d.prototype.stop=function(){var g=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(b){return global$1.removeEventListener(b,g.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(g,b){this.target=g,this.observedBox=b||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return d.prototype.isActive=function(){var g=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=g),this.lastReportedSize.inlineSize!==g.inlineSize||this.lastReportedSize.blockSize!==g.blockSize},d}(),ResizeObserverDetail=function(){function d(g,b){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=g,this.callback=b}return d}(),observerMap=new WeakMap,getObservationIndex=function(d,g){for(var b=0;b<d.length;b+=1)if(d[b].target===g)return b;return-1},ResizeObserverController=function(){function d(){}return d.connect=function(g,b){var A=new ResizeObserverDetail(g,b);observerMap.set(g,A)},d.observe=function(g,b,A){var w=observerMap.get(g),C=w.observationTargets.length===0;getObservationIndex(w.observationTargets,b)<0&&(C&&resizeObservers.push(w),w.observationTargets.push(new ResizeObservation(b,A&&A.box)),updateCount(1),scheduler.schedule())},d.unobserve=function(g,b){var A=observerMap.get(g),w=getObservationIndex(A.observationTargets,b),C=A.observationTargets.length===1;w>=0&&(C&&resizeObservers.splice(resizeObservers.indexOf(A),1),A.observationTargets.splice(w,1),updateCount(-1))},d.disconnect=function(g){var b=this,A=observerMap.get(g);A.observationTargets.slice().forEach(function(w){return b.unobserve(g,w.target)}),A.activeTargets.splice(0,A.activeTargets.length)},d}(),ResizeObserver=function(){function d(g){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof g!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,g)}return d.prototype.observe=function(g,b){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(g))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,g,b)},d.prototype.unobserve=function(g){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(g))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,g)},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(g){for(const b of g){const A=this.elHandlersMap.get(b.target);A!==void 0&&A(b)}}registerHandler(g,b){this.elHandlersMap.set(g,b),this.observer.observe(g)}unregisterHandler(g){this.elHandlersMap.has(g)&&(this.elHandlersMap.delete(g),this.observer.unobserve(g))}}const resizeObserverManager=new ResizeObserverDelegate,VResizeObserver=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(d){let g=!1;const b=getCurrentInstance().proxy;function A(w){const{onResize:C}=d;C!==void 0&&C(w)}onMounted(()=>{const w=b.$el;if(w===void 0){warn$1("resize-observer","$el does not exist.");return}if(w.nextElementSibling!==w.nextSibling&&w.nodeType===3&&w.nodeValue!==""){warn$1("resize-observer","$el can not be observed (it may be a text node).");return}w.nextElementSibling!==null&&(resizeObserverManager.registerHandler(w.nextElementSibling,A),g=!0)}),onBeforeUnmount(()=>{g&&resizeObserverManager.unregisterHandler(b.$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 g=useSsrAdapter();styles$8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:g}),onMounted(()=>{const{defaultScrollIndex:fe,defaultScrollKey:Z}=d;fe!=null?R({index:fe}):Z!=null&&R({key:Z})});let b=!1,A=!1;onActivated(()=>{if(b=!1,!A){A=!0;return}R({top:P.value,left:$})}),onDeactivated(()=>{b=!0,A||(A=!0)});const w=computed(()=>{const fe=new Map,{keyField:Z}=d;return d.items.forEach((ie,ce)=>{fe.set(ie[Z],ce)}),fe}),C=ref(null),x=ref(void 0),S=new Map,E=computed(()=>{const{items:fe,itemSize:Z,keyField:ie}=d,ce=new FinweckTree(fe.length,Z);return fe.forEach((me,ne)=>{const te=me[ie],ue=S.get(te);ue!==void 0&&ce.add(ne,ue)}),ce}),B=ref(0);let $=0;const P=ref(0),k=useMemo(()=>Math.max(E.value.getBound(P.value-depx(d.paddingTop))-1,0)),M=computed(()=>{const{value:fe}=x;if(fe===void 0)return[];const{items:Z,itemSize:ie}=d,ce=k.value,me=Math.min(ce+Math.ceil(fe/ie+1),Z.length-1),ne=[];for(let te=ce;te<=me;++te)ne.push(Z[te]);return ne}),R=(fe,Z)=>{if(typeof fe=="number"){U(fe,Z,"auto");return}const{left:ie,top:ce,index:me,key:ne,position:te,behavior:ue,debounce:ae=!0}=fe;if(ie!==void 0||ce!==void 0)U(ie,ce,ue);else if(me!==void 0)z(me,ue,ae);else if(ne!==void 0){const ye=w.value.get(ne);ye!==void 0&&z(ye,ue,ae)}else te==="bottom"?U(0,Number.MAX_SAFE_INTEGER,ue):te==="top"&&U(0,0,ue)};let F,L=null;function z(fe,Z,ie){const{value:ce}=E,me=ce.sum(fe)+depx(d.paddingTop);if(!ie)C.value.scrollTo({left:0,top:me,behavior:Z});else{F=fe,L!==null&&window.clearTimeout(L),L=window.setTimeout(()=>{F=void 0,L=null},16);const{scrollTop:ne,offsetHeight:te}=C.value;if(me>ne){const ue=ce.get(fe);me+ue<=ne+te||C.value.scrollTo({left:0,top:me+ue-te,behavior:Z})}else C.value.scrollTo({left:0,top:me,behavior:Z})}}function U(fe,Z,ie){C.value.scrollTo({left:fe,top:Z,behavior:ie})}function W(fe,Z){var ie,ce,me;if(b||d.ignoreItemResize||re(Z.target))return;const{value:ne}=E,te=w.value.get(fe),ue=ne.get(te),ae=(me=(ce=(ie=Z.borderBoxSize)===null||ie===void 0?void 0:ie[0])===null||ce===void 0?void 0:ce.blockSize)!==null&&me!==void 0?me:Z.contentRect.height;if(ae===ue)return;ae-d.itemSize===0?S.delete(fe):S.set(fe,ae-d.itemSize);const Oe=ae-ue;if(Oe===0)return;ne.add(te,Oe);const Ye=C.value;if(Ye!=null){if(F===void 0){const et=ne.sum(te);Ye.scrollTop>et&&Ye.scrollBy(0,Oe)}else if(te<F)Ye.scrollBy(0,Oe);else if(te===F){const et=ne.sum(te);ae+et>Ye.scrollTop+Ye.offsetHeight&&Ye.scrollBy(0,Oe)}J()}B.value++}const V=!ensureMaybeTouch();let Q=!1;function K(fe){var Z;(Z=d.onScroll)===null||Z===void 0||Z.call(d,fe),(!V||!Q)&&J()}function G(fe){var Z;if((Z=d.onWheel)===null||Z===void 0||Z.call(d,fe),V){const ie=C.value;if(ie!=null){if(fe.deltaX===0&&(ie.scrollTop===0&&fe.deltaY<=0||ie.scrollTop+ie.offsetHeight>=ie.scrollHeight&&fe.deltaY>=0))return;fe.preventDefault(),ie.scrollTop+=fe.deltaY/ensureWheelScale(),ie.scrollLeft+=fe.deltaX/ensureWheelScale(),J(),Q=!0,beforeNextFrameOnce(()=>{Q=!1})}}}function X(fe){if(b||re(fe.target)||fe.contentRect.height===x.value)return;x.value=fe.contentRect.height;const{onResize:Z}=d;Z!==void 0&&Z(fe)}function J(){const{value:fe}=C;fe!=null&&(P.value=fe.scrollTop,$=fe.scrollLeft)}function re(fe){let Z=fe;for(;Z!==null;){if(Z.style.display==="none")return!0;Z=Z.parentElement}return!1}return{listHeight:x,listStyle:{overflow:"auto"},keyToIndex:w,itemsStyle:computed(()=>{const{itemResizable:fe}=d,Z=pxfy(E.value.sum());return B.value,[d.itemsStyle,{boxSizing:"content-box",height:fe?"":Z,minHeight:fe?Z:"",paddingTop:pxfy(d.paddingTop),paddingBottom:pxfy(d.paddingBottom)}]}),visibleItemsStyle:computed(()=>(B.value,{transform:`translateY(${pxfy(E.value.sum(k.value))})`})),viewportItems:M,listElRef:C,itemsElRef:ref(null),scrollTo:R,handleListResize:X,handleListScroll:K,handleListWheel:G,handleItemResize:W}},render(){const{itemResizable:d,keyField:g,keyToIndex:b,visibleItemsTag:A}=this;return h$1(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var w,C;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(A,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(x=>{const S=x[g],E=b.get(S),B=this.$slots.default({item:x,index:E})[0];return d?h$1(VResizeObserver,{key:S,onResize:$=>this.handleItemResize(S,$)},{default:()=>B}):(B.key=S,B)})})]):(C=(w=this.$slots).empty)===null||C===void 0?void 0:C.call(w)])}})}}),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 g(w){!(w.currentTarget.offsetWidth<w.currentTarget.scrollWidth)||w.deltaY===0||(w.currentTarget.scrollLeft+=w.deltaY+w.deltaX,w.preventDefault())}const b=useSsrAdapter();return styles$7.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:b}),Object.assign({selfRef:d,handleWheel:g},{scrollTo(...w){var C;(C=d.value)===null||C===void 0||C.scrollTo(...w)}})},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:g}){const b=ref(null),A=ref(null);function w(){const{value:x}=b,{getCounter:S,getTail:E}=d;let B;if(S!==void 0?B=S():B=A.value,!x||!B)return;B.hasAttribute(hiddenAttr)&&B.removeAttribute(hiddenAttr);const{children:$}=x,P=x.offsetWidth,k=[],M=g.tail?E==null?void 0:E():null;let R=M?M.offsetWidth:0,F=!1;const L=x.children.length-(g.tail?1:0);for(let U=0;U<L-1;++U){if(U<0)continue;const W=$[U];if(F){W.hasAttribute(hiddenAttr)||W.setAttribute(hiddenAttr,"");continue}else W.hasAttribute(hiddenAttr)&&W.removeAttribute(hiddenAttr);const V=W.offsetWidth;if(R+=V,k[U]=V,R>P){const{updateCounter:Q}=d;for(let K=U;K>=0;--K){const G=L-1-K;Q!==void 0?Q(G):B.textContent=`${G}`;const X=B.offsetWidth;if(R-=k[K],R+X<=P||K===0){F=!0,U=K-1,M&&(U===-1?(M.style.maxWidth=`${P-X}px`,M.style.boxSizing="border-box"):M.style.maxWidth="");break}}}}const{onUpdateOverflow:z}=d;F?z!==void 0&&z(!0):(z!==void 0&&z(!1),B.setAttribute(hiddenAttr,""))}const C=useSsrAdapter();return style$r.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:C}),onMounted(w),{selfRef:b,counterRef:A,sync:w}},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 g=0;g<d.childNodes.length;g++){const b=d.childNodes[g];if(isHTMLElement(b)&&(attemptFocus(b)||focusFirstDescendant(b)))return!0}return!1}function focusLastDescendant(d){for(let g=d.childNodes.length-1;g>=0;g--){const b=d.childNodes[g];if(isHTMLElement(b)&&(attemptFocus(b)||focusLastDescendant(b)))return!0}return!1}function attemptFocus(d){if(!isFocusable(d))return!1;try{d.focus({preventScroll:!0})}catch(g){}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 g=createId(),b=ref(null),A=ref(null);let w=!1,C=!1;const x=typeof document>"u"?null:document.activeElement;function S(){return stack[stack.length-1]===g}function E(L){var z;L.code==="Escape"&&S()&&((z=d.onEsc)===null||z===void 0||z.call(d,L))}onMounted(()=>{watch(()=>d.active,L=>{L?(P(),on("keydown",document,E)):(off("keydown",document,E),w&&k())},{immediate:!0})}),onBeforeUnmount(()=>{off("keydown",document,E),w&&k()});function B(L){if(!C&&S()){const z=$();if(z===null||z.contains(getPreciseEventTarget(L)))return;M("first")}}function $(){const L=b.value;if(L===null)return null;let z=L;for(;z=z.nextSibling,!(z===null||z instanceof Element&&z.tagName==="DIV"););return z}function P(){var L;if(!d.disabled){if(stack.push(g),d.autoFocus){const{initialFocusTo:z}=d;z===void 0?M("first"):(L=resolveTo(z))===null||L===void 0||L.focus({preventScroll:!0})}w=!0,document.addEventListener("focus",B,!0)}}function k(){var L;if(d.disabled||(document.removeEventListener("focus",B,!0),stack=stack.filter(U=>U!==g),S()))return;const{finalFocusTo:z}=d;z!==void 0?(L=resolveTo(z))===null||L===void 0||L.focus({preventScroll:!0}):d.returnFocusOnDeactivated&&x instanceof HTMLElement&&(C=!0,x.focus({preventScroll:!0}),C=!1)}function M(L){if(S()&&d.active){const z=b.value,U=A.value;if(z!==null&&U!==null){const W=$();if(W==null||W===U){C=!0,z.focus({preventScroll:!0}),C=!1;return}C=!0;const V=L==="first"?focusFirstDescendant(W):focusLastDescendant(W);C=!1,V||(C=!0,z.focus({preventScroll:!0}),C=!1)}}}function R(L){if(C)return;const z=$();z!==null&&(L.relatedTarget!==null&&z.contains(L.relatedTarget)?M("last"):M("first"))}function F(L){C||(L.relatedTarget!==null&&L.relatedTarget===b.value?M("last"):M("first"))}return{focusableStartRef:b,focusableEndRef:A,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:R,handleEndFocus:F}},render(){const{default:d}=this.$slots;if(d===void 0)return null;if(this.disabled)return d();const{active:g,focusableStyle:b}=this;return h$1(Fragment,null,[h$1("div",{"aria-hidden":"true",tabindex:g?"0":"-1",ref:"focusableStartRef",style:b,onFocus:this.handleStartFocus}),d(),h$1("div",{"aria-hidden":"true",style:b,ref:"focusableEndRef",tabindex:g?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(d,g){g&&(onMounted(()=>{const{value:b}=d;b&&resizeObserverManager.registerHandler(b,g)}),onBeforeUnmount(()=>{const{value:b}=d;b&&resizeObserverManager.unregisterHandler(b)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(d){if(typeof document>"u")return;const g=document.documentElement;let b,A=!1;const w=()=>{g.style.marginRight=originalMarginRight,g.style.overflow=originalOverflow,g.style.overflowX=originalOverflowX,g.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{b=watch(d,C=>{if(C){if(!lockCount){const x=window.innerWidth-g.offsetWidth;x>0&&(originalMarginRight=g.style.marginRight,g.style.marginRight=`${x}px`,lockHtmlScrollRightCompensationRef.value=`${x}px`),originalOverflow=g.style.overflow,originalOverflowX=g.style.overflowX,originalOverflowY=g.style.overflowY,g.style.overflow="hidden",g.style.overflowX="hidden",g.style.overflowY="hidden"}A=!0,lockCount++}else lockCount--,lockCount||w(),A=!1},{immediate:!0})}),onBeforeUnmount(()=>{b==null||b(),A&&(lockCount--,lockCount||w(),A=!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 g={isDeactivated:!1};let b=!1;return onActivated(()=>{if(g.isDeactivated=!1,!b){b=!0;return}d()}),onDeactivated(()=>{g.isDeactivated=!0,b||(b=!0)}),g}const formItemInjectionKey="n-form-item";function useFormItem(d,{defaultSize:g="medium",mergedSize:b,mergedDisabled:A}={}){const w=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const C=computed(b?()=>b(w):()=>{const{size:E}=d;if(E)return E;if(w){const{mergedSize:B}=w;if(B.value!==void 0)return B.value}return g}),x=computed(A?()=>A(w):()=>{const{disabled:E}=d;return E!==void 0?E:w?w.disabled.value:!1}),S=computed(()=>{const{status:E}=d;return E||(w==null?void 0:w.mergedValidationStatus.value)});return onBeforeUnmount(()=>{w&&w.restoreValidation()}),{mergedSizeRef:C,mergedDisabledRef:x,mergedStatusRef:S,nTriggerFormBlur(){w&&w.handleContentBlur()},nTriggerFormChange(){w&&w.handleContentChange()},nTriggerFormFocus(){w&&w.handleContentFocus()},nTriggerFormInput(){w&&w.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 g=hasOwnProperty$c.call(d,symToStringTag$1),b=d[symToStringTag$1];try{d[symToStringTag$1]=void 0;var A=!0}catch(C){}var w=nativeObjectToString$1.call(d);return A&&(g?d[symToStringTag$1]=b:delete d[symToStringTag$1]),w}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,g){for(var b=-1,A=d==null?0:d.length,w=Array(A);++b<A;)w[b]=g(d[b],b,d);return w}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 g=d+"";return g=="0"&&1/d==-INFINITY$1?"-0":g}var reWhitespace=/\s/;function trimmedEndIndex(d){for(var g=d.length;g--&&reWhitespace.test(d.charAt(g)););return g}var reTrimStart=/^\s+/;function baseTrim(d){return d&&d.slice(0,trimmedEndIndex(d)+1).replace(reTrimStart,"")}function isObject$1(d){var g=typeof d;return d!=null&&(g=="object"||g=="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 g=typeof d.valueOf=="function"?d.valueOf():d;d=isObject$1(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=baseTrim(d);var b=reIsBinary.test(d);return b||reIsOctal.test(d)?freeParseInt(d.slice(2),b?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 g=baseGetTag(d);return g==funcTag$1||g==genTag||g==asyncTag||g==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(g){}try{return d+""}catch(g){}}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 g=isFunction$1(d)?reIsNative:reIsHostCtor;return g.test(toSource(d))}function getValue(d,g){return d==null?void 0:d[g]}function getNative(d,g){var b=getValue(d,g);return baseIsNative(b)?b:void 0}var WeakMap$1=getNative(root$2,"WeakMap");const WeakMap$2=WeakMap$1;var objectCreate=Object.create,baseCreate=function(){function d(){}return function(g){if(!isObject$1(g))return{};if(objectCreate)return objectCreate(g);d.prototype=g;var b=new d;return d.prototype=void 0,b}}();const baseCreate$1=baseCreate;function apply(d,g,b){switch(b.length){case 0:return d.call(g);case 1:return d.call(g,b[0]);case 2:return d.call(g,b[0],b[1]);case 3:return d.call(g,b[0],b[1],b[2])}return d.apply(g,b)}function copyArray(d,g){var b=-1,A=d.length;for(g||(g=Array(A));++b<A;)g[b]=d[b];return g}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(d){var g=0,b=0;return function(){var A=nativeNow(),w=HOT_SPAN-(A-b);if(b=A,w>0){if(++g>=HOT_COUNT)return arguments[0]}else g=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(g){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(d,g){return defineProperty$1(d,"toString",{configurable:!0,enumerable:!1,value:constant(g),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,g){var b=typeof d;return g=g==null?MAX_SAFE_INTEGER$1:g,!!g&&(b=="number"||b!="symbol"&&reIsUint.test(d))&&d>-1&&d%1==0&&d<g}function baseAssignValue(d,g,b){g=="__proto__"&&defineProperty$1?defineProperty$1(d,g,{configurable:!0,enumerable:!0,value:b,writable:!0}):d[g]=b}function eq(d,g){return d===g||d!==d&&g!==g}var objectProto$c=Object.prototype,hasOwnProperty$a=objectProto$c.hasOwnProperty;function assignValue(d,g,b){var A=d[g];(!(hasOwnProperty$a.call(d,g)&&eq(A,b))||b===void 0&&!(g in d))&&baseAssignValue(d,g,b)}function copyObject(d,g,b,A){var w=!b;b||(b={});for(var C=-1,x=g.length;++C<x;){var S=g[C],E=A?A(b[S],d[S],S,b,d):void 0;E===void 0&&(E=d[S]),w?baseAssignValue(b,S,E):assignValue(b,S,E)}return b}var nativeMax$1=Math.max;function overRest(d,g,b){return g=nativeMax$1(g===void 0?d.length-1:g,0),function(){for(var A=arguments,w=-1,C=nativeMax$1(A.length-g,0),x=Array(C);++w<C;)x[w]=A[g+w];w=-1;for(var S=Array(g+1);++w<g;)S[w]=A[w];return S[g]=b(x),apply(d,this,S)}}function baseRest(d,g){return setToString$1(overRest(d,g,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,g,b){if(!isObject$1(b))return!1;var A=typeof g;return(A=="number"?isArrayLike(b)&&isIndex(g,b.length):A=="string"&&g in b)?eq(b[g],d):!1}function createAssigner(d){return baseRest(function(g,b){var A=-1,w=b.length,C=w>1?b[w-1]:void 0,x=w>2?b[2]:void 0;for(C=d.length>3&&typeof C=="function"?(w--,C):void 0,x&&isIterateeCall(b[0],b[1],x)&&(C=w<3?void 0:C,w=1),g=Object(g);++A<w;){var S=b[A];S&&d(g,S,A,C)}return g})}var objectProto$b=Object.prototype;function isPrototype(d){var g=d&&d.constructor,b=typeof g=="function"&&g.prototype||objectProto$b;return d===b}function baseTimes(d,g){for(var b=-1,A=Array(d);++b<d;)A[b]=g(b);return A}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(g){return d(g)}}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(g){}}();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,g){var b=isArray$2(d),A=!b&&isArguments$1(d),w=!b&&!A&&isBuffer$1(d),C=!b&&!A&&!w&&isTypedArray$1(d),x=b||A||w||C,S=x?baseTimes(d.length,String):[],E=S.length;for(var B in d)(g||hasOwnProperty$8.call(d,B))&&!(x&&(B=="length"||w&&(B=="offset"||B=="parent")||C&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||isIndex(B,E)))&&S.push(B);return S}function overArg$1(d,g){return function(b){return d(g(b))}}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 g=[];for(var b in Object(d))hasOwnProperty$7.call(d,b)&&b!="constructor"&&g.push(b);return g}function keys$2(d){return isArrayLike(d)?arrayLikeKeys(d):baseKeys(d)}function nativeKeysIn(d){var g=[];if(d!=null)for(var b in Object(d))g.push(b);return g}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeysIn(d){if(!isObject$1(d))return nativeKeysIn(d);var g=isPrototype(d),b=[];for(var A in d)A=="constructor"&&(g||!hasOwnProperty$6.call(d,A))||b.push(A);return b}function keysIn(d){return isArrayLike(d)?arrayLikeKeys(d,!0):baseKeysIn(d)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(d,g){if(isArray$2(d))return!1;var b=typeof d;return b=="number"||b=="symbol"||b=="boolean"||d==null||isSymbol(d)?!0:reIsPlainProp.test(d)||!reIsDeepProp.test(d)||g!=null&&d in Object(g)}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 g=this.has(d)&&delete this.__data__[d];return this.size-=g?1:0,g}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashGet(d){var g=this.__data__;if(nativeCreate$1){var b=g[d];return b===HASH_UNDEFINED$2?void 0:b}return hasOwnProperty$5.call(g,d)?g[d]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashHas(d){var g=this.__data__;return nativeCreate$1?g[d]!==void 0:hasOwnProperty$4.call(g,d)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(d,g){var b=this.__data__;return this.size+=this.has(d)?0:1,b[d]=nativeCreate$1&&g===void 0?HASH_UNDEFINED$1:g,this}function Hash(d){var g=-1,b=d==null?0:d.length;for(this.clear();++g<b;){var A=d[g];this.set(A[0],A[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,g){for(var b=d.length;b--;)if(eq(d[b][0],g))return b;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(d){var g=this.__data__,b=assocIndexOf(g,d);if(b<0)return!1;var A=g.length-1;return b==A?g.pop():splice.call(g,b,1),--this.size,!0}function listCacheGet(d){var g=this.__data__,b=assocIndexOf(g,d);return b<0?void 0:g[b][1]}function listCacheHas(d){return assocIndexOf(this.__data__,d)>-1}function listCacheSet(d,g){var b=this.__data__,A=assocIndexOf(b,d);return A<0?(++this.size,b.push([d,g])):b[A][1]=g,this}function ListCache(d){var g=-1,b=d==null?0:d.length;for(this.clear();++g<b;){var A=d[g];this.set(A[0],A[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 g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function getMapData(d,g){var b=d.__data__;return isKeyable(g)?b[typeof g=="string"?"string":"hash"]:b.map}function mapCacheDelete(d){var g=getMapData(this,d).delete(d);return this.size-=g?1:0,g}function mapCacheGet(d){return getMapData(this,d).get(d)}function mapCacheHas(d){return getMapData(this,d).has(d)}function mapCacheSet(d,g){var b=getMapData(this,d),A=b.size;return b.set(d,g),this.size+=b.size==A?0:1,this}function MapCache(d){var g=-1,b=d==null?0:d.length;for(this.clear();++g<b;){var A=d[g];this.set(A[0],A[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,g){if(typeof d!="function"||g!=null&&typeof g!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var b=function(){var A=arguments,w=g?g.apply(this,A):A[0],C=b.cache;if(C.has(w))return C.get(w);var x=d.apply(this,A);return b.cache=C.set(w,x)||C,x};return b.cache=new(memoize.Cache||MapCache),b}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(d){var g=memoize(d,function(A){return b.size===MAX_MEMOIZE_SIZE&&b.clear(),A}),b=g.cache;return g}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(rePropName,function(b,A,w,C){g.push(w?C.replace(reEscapeChar,"$1"):A||b)}),g});const stringToPath$1=stringToPath;function toString(d){return d==null?"":baseToString(d)}function castPath(d,g){return isArray$2(d)?d:isKey(d,g)?[d]:stringToPath$1(toString(d))}var INFINITY=1/0;function toKey(d){if(typeof d=="string"||isSymbol(d))return d;var g=d+"";return g=="0"&&1/d==-INFINITY?"-0":g}function baseGet(d,g){g=castPath(g,d);for(var b=0,A=g.length;d!=null&&b<A;)d=d[toKey(g[b++])];return b&&b==A?d:void 0}function get(d,g,b){var A=d==null?void 0:baseGet(d,g);return A===void 0?b:A}function arrayPush(d,g){for(var b=-1,A=g.length,w=d.length;++b<A;)d[w+b]=g[b];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 g=getPrototype$2(d);if(g===null)return!0;var b=hasOwnProperty$3.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&funcToString$1.call(b)==objectCtorString$1}function baseSlice(d,g,b){var A=-1,w=d.length;g<0&&(g=-g>w?0:w+g),b=b>w?w:b,b<0&&(b+=w),w=g>b?0:b-g>>>0,g>>>=0;for(var C=Array(w);++A<w;)C[A]=d[A+g];return C}function castSlice(d,g,b){var A=d.length;return b=b===void 0?A:b,!g&&b>=A?d:baseSlice(d,g,b)}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(g){g=toString(g);var b=hasUnicode(g)?stringToArray(g):void 0,A=b?b[0]:g.charAt(0),w=b?castSlice(b,1).join(""):g.slice(1);return A[d]()+w}}var upperFirst=createCaseFirst("toUpperCase");const upperFirst$1=upperFirst;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(d){var g=this.__data__,b=g.delete(d);return this.size=g.size,b}function stackGet(d){return this.__data__.get(d)}function stackHas(d){return this.__data__.has(d)}var LARGE_ARRAY_SIZE=200;function stackSet(d,g){var b=this.__data__;if(b instanceof ListCache){var A=b.__data__;if(!Map$2||A.length<LARGE_ARRAY_SIZE-1)return A.push([d,g]),this.size=++b.size,this;b=this.__data__=new MapCache(A)}return b.set(d,g),this.size=b.size,this}function Stack(d){var g=this.__data__=new ListCache(d);this.size=g.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,g){if(g)return d.slice();var b=d.length,A=allocUnsafe?allocUnsafe(b):new d.constructor(b);return d.copy(A),A}function arrayFilter(d,g){for(var b=-1,A=d==null?0:d.length,w=0,C=[];++b<A;){var x=d[b];g(x,b,d)&&(C[w++]=x)}return C}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(g){return propertyIsEnumerable.call(d,g)}))}:stubArray;const getSymbols$1=getSymbols;function baseGetAllKeys(d,g,b){var A=g(d);return isArray$2(d)?A:arrayPush(A,b(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 g=baseGetTag(d),b=g==objectTag$2?d.constructor:void 0,A=b?toSource(b):"";if(A)switch(A){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return g});const getTag$1=getTag;var Uint8Array$1=root$2.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(d){var g=new d.constructor(d.byteLength);return new Uint8Array$2(g).set(new Uint8Array$2(d)),g}function cloneTypedArray(d,g){var b=g?cloneArrayBuffer(d.buffer):d.buffer;return new d.constructor(b,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 g=-1,b=d==null?0:d.length;for(this.__data__=new MapCache;++g<b;)this.add(d[g])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(d,g){for(var b=-1,A=d==null?0:d.length;++b<A;)if(g(d[b],b,d))return!0;return!1}function cacheHas(d,g){return d.has(g)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(d,g,b,A,w,C){var x=b&COMPARE_PARTIAL_FLAG$5,S=d.length,E=g.length;if(S!=E&&!(x&&E>S))return!1;var B=C.get(d),$=C.get(g);if(B&&$)return B==g&&$==d;var P=-1,k=!0,M=b&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(C.set(d,g),C.set(g,d);++P<S;){var R=d[P],F=g[P];if(A)var L=x?A(F,R,P,g,d,C):A(R,F,P,d,g,C);if(L!==void 0){if(L)continue;k=!1;break}if(M){if(!arraySome(g,function(z,U){if(!cacheHas(M,U)&&(R===z||w(R,z,b,A,C)))return M.push(U)})){k=!1;break}}else if(!(R===F||w(R,F,b,A,C))){k=!1;break}}return C.delete(d),C.delete(g),k}function mapToArray(d){var g=-1,b=Array(d.size);return d.forEach(function(A,w){b[++g]=[w,A]}),b}function setToArray(d){var g=-1,b=Array(d.size);return d.forEach(function(A){b[++g]=A}),b}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,g,b,A,w,C,x){switch(b){case dataViewTag:if(d.byteLength!=g.byteLength||d.byteOffset!=g.byteOffset)return!1;d=d.buffer,g=g.buffer;case arrayBufferTag:return!(d.byteLength!=g.byteLength||!C(new Uint8Array$2(d),new Uint8Array$2(g)));case boolTag:case dateTag:case numberTag:return eq(+d,+g);case errorTag:return d.name==g.name&&d.message==g.message;case regexpTag:case stringTag:return d==g+"";case mapTag:var S=mapToArray;case setTag:var E=A&COMPARE_PARTIAL_FLAG$4;if(S||(S=setToArray),d.size!=g.size&&!E)return!1;var B=x.get(d);if(B)return B==g;A|=COMPARE_UNORDERED_FLAG$2,x.set(d,g);var $=equalArrays(S(d),S(g),A,w,C,x);return x.delete(d),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(d)==symbolValueOf.call(g)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function equalObjects(d,g,b,A,w,C){var x=b&COMPARE_PARTIAL_FLAG$3,S=getAllKeys(d),E=S.length,B=getAllKeys(g),$=B.length;if(E!=$&&!x)return!1;for(var P=E;P--;){var k=S[P];if(!(x?k in g:hasOwnProperty$2.call(g,k)))return!1}var M=C.get(d),R=C.get(g);if(M&&R)return M==g&&R==d;var F=!0;C.set(d,g),C.set(g,d);for(var L=x;++P<E;){k=S[P];var z=d[k],U=g[k];if(A)var W=x?A(U,z,k,g,d,C):A(z,U,k,d,g,C);if(!(W===void 0?z===U||w(z,U,b,A,C):W)){F=!1;break}L||(L=k=="constructor")}if(F&&!L){var V=d.constructor,Q=g.constructor;V!=Q&&"constructor"in d&&"constructor"in g&&!(typeof V=="function"&&V instanceof V&&typeof Q=="function"&&Q instanceof Q)&&(F=!1)}return C.delete(d),C.delete(g),F}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,g,b,A,w,C){var x=isArray$2(d),S=isArray$2(g),E=x?arrayTag:getTag$1(d),B=S?arrayTag:getTag$1(g);E=E==argsTag?objectTag$1:E,B=B==argsTag?objectTag$1:B;var $=E==objectTag$1,P=B==objectTag$1,k=E==B;if(k&&isBuffer$1(d)){if(!isBuffer$1(g))return!1;x=!0,$=!1}if(k&&!$)return C||(C=new Stack),x||isTypedArray$1(d)?equalArrays(d,g,b,A,w,C):equalByTag(d,g,E,b,A,w,C);if(!(b&COMPARE_PARTIAL_FLAG$2)){var M=$&&hasOwnProperty$1.call(d,"__wrapped__"),R=P&&hasOwnProperty$1.call(g,"__wrapped__");if(M||R){var F=M?d.value():d,L=R?g.value():g;return C||(C=new Stack),w(F,L,b,A,C)}}return k?(C||(C=new Stack),equalObjects(d,g,b,A,w,C)):!1}function baseIsEqual(d,g,b,A,w){return d===g?!0:d==null||g==null||!isObjectLike$1(d)&&!isObjectLike$1(g)?d!==d&&g!==g:baseIsEqualDeep(d,g,b,A,baseIsEqual,w)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(d,g,b,A){var w=b.length,C=w,x=!A;if(d==null)return!C;for(d=Object(d);w--;){var S=b[w];if(x&&S[2]?S[1]!==d[S[0]]:!(S[0]in d))return!1}for(;++w<C;){S=b[w];var E=S[0],B=d[E],$=S[1];if(x&&S[2]){if(B===void 0&&!(E in d))return!1}else{var P=new Stack;if(A)var k=A(B,$,E,d,g,P);if(!(k===void 0?baseIsEqual($,B,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,A,P):k))return!1}}return!0}function isStrictComparable(d){return d===d&&!isObject$1(d)}function getMatchData(d){for(var g=keys$2(d),b=g.length;b--;){var A=g[b],w=d[A];g[b]=[A,w,isStrictComparable(w)]}return g}function matchesStrictComparable(d,g){return function(b){return b==null?!1:b[d]===g&&(g!==void 0||d in Object(b))}}function baseMatches(d){var g=getMatchData(d);return g.length==1&&g[0][2]?matchesStrictComparable(g[0][0],g[0][1]):function(b){return b===d||baseIsMatch(b,d,g)}}function baseHasIn(d,g){return d!=null&&g in Object(d)}function hasPath(d,g,b){g=castPath(g,d);for(var A=-1,w=g.length,C=!1;++A<w;){var x=toKey(g[A]);if(!(C=d!=null&&b(d,x)))break;d=d[x]}return C||++A!=w?C:(w=d==null?0:d.length,!!w&&isLength(w)&&isIndex(x,w)&&(isArray$2(d)||isArguments$1(d)))}function hasIn(d,g){return d!=null&&hasPath(d,g,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(d,g){return isKey(d)&&isStrictComparable(g)?matchesStrictComparable(toKey(d),g):function(b){var A=get(b,d);return A===void 0&&A===g?hasIn(b,d):baseIsEqual(g,A,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(d){return function(g){return g==null?void 0:g[d]}}function basePropertyDeep(d){return function(g){return baseGet(g,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(g,b,A){for(var w=-1,C=Object(g),x=A(g),S=x.length;S--;){var E=x[d?S:++w];if(b(C[E],E,C)===!1)break}return g}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn(d,g){return d&&baseFor$1(d,g,keys$2)}function createBaseEach(d,g){return function(b,A){if(b==null)return b;if(!isArrayLike(b))return d(b,A);for(var w=b.length,C=g?w:-1,x=Object(b);(g?C--:++C<w)&&A(x[C],C,x)!==!1;);return b}}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,g,b){var A,w,C,x,S,E,B=0,$=!1,P=!1,k=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT$1);g=toNumber$2(g)||0,isObject$1(b)&&($=!!b.leading,P="maxWait"in b,C=P?nativeMax(toNumber$2(b.maxWait)||0,g):C,k="trailing"in b?!!b.trailing:k);function M(K){var G=A,X=w;return A=w=void 0,B=K,x=d.apply(X,G),x}function R(K){return B=K,S=setTimeout(z,g),$?M(K):x}function F(K){var G=K-E,X=K-B,J=g-G;return P?nativeMin(J,C-X):J}function L(K){var G=K-E,X=K-B;return E===void 0||G>=g||G<0||P&&X>=C}function z(){var K=now$2();if(L(K))return U(K);S=setTimeout(z,F(K))}function U(K){return S=void 0,k&&A?M(K):(A=w=void 0,x)}function W(){S!==void 0&&clearTimeout(S),B=0,A=E=w=S=void 0}function V(){return S===void 0?x:U(now$2())}function Q(){var K=now$2(),G=L(K);if(A=arguments,w=this,E=K,G){if(S===void 0)return R(E);if(P)return clearTimeout(S),S=setTimeout(z,g),M(E)}return S===void 0&&(S=setTimeout(z,g)),x}return Q.cancel=W,Q.flush=V,Q}function assignMergeValue(d,g,b){(b!==void 0&&!eq(d[g],b)||b===void 0&&!(g in d))&&baseAssignValue(d,g,b)}function isArrayLikeObject(d){return isObjectLike$1(d)&&isArrayLike(d)}function safeGet(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}function toPlainObject(d){return copyObject(d,keysIn(d))}function baseMergeDeep(d,g,b,A,w,C,x){var S=safeGet(d,b),E=safeGet(g,b),B=x.get(E);if(B){assignMergeValue(d,b,B);return}var $=C?C(S,E,b+"",d,g,x):void 0,P=$===void 0;if(P){var k=isArray$2(E),M=!k&&isBuffer$1(E),R=!k&&!M&&isTypedArray$1(E);$=E,k||M||R?isArray$2(S)?$=S:isArrayLikeObject(S)?$=copyArray(S):M?(P=!1,$=cloneBuffer(E,!0)):R?(P=!1,$=cloneTypedArray(E,!0)):$=[]:isPlainObject$2(E)||isArguments$1(E)?($=S,isArguments$1(S)?$=toPlainObject(S):(!isObject$1(S)||isFunction$1(S))&&($=initCloneObject(E))):P=!1}P&&(x.set(E,$),w($,E,A,C,x),x.delete(E)),assignMergeValue(d,b,$)}function baseMerge(d,g,b,A,w){d!==g&&baseFor$1(g,function(C,x){if(w||(w=new Stack),isObject$1(C))baseMergeDeep(d,g,x,b,baseMerge,A,w);else{var S=A?A(safeGet(d,x),C,x+"",d,g,w):void 0;S===void 0&&(S=C),assignMergeValue(d,x,S)}},keysIn)}function baseMap(d,g){var b=-1,A=isArrayLike(d)?Array(d.length):[];return baseEach$1(d,function(w,C,x){A[++b]=g(w,C,x)}),A}function map(d,g){var b=isArray$2(d)?arrayMap:baseMap;return b(d,baseIteratee(g))}var merge$1=createAssigner(function(d,g,b){baseMerge(d,g,b)});const merge$2=merge$1;var FUNC_ERROR_TEXT="Expected a function";function throttle(d,g,b){var A=!0,w=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$1(b)&&(A="leading"in b?!!b.leading:A,w="trailing"in b?!!b.trailing:w),debounce(d,g,{leading:A,maxWait:g,trailing:w})}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",`
  32. margin: 0;
  33. font-size: ${fontSize};
  34. font-family: ${fontFamily};
  35. line-height: ${lineHeight};
  36. -webkit-text-size-adjust: 100%;
  37. -webkit-tap-highlight-color: transparent;
  38. `,[c$3("input",`
  39. font-family: inherit;
  40. font-size: inherit;
  41. `)]),configProviderInjectionKey="n-config-provider",cssrAnchorMetaName="naive-ui-style";function createTheme(d){return d}function useTheme(d,g,b,A,w,C){const x=useSsrAdapter(),S=inject(configProviderInjectionKey,null);if(b){const B=()=>{const $=C==null?void 0:C.value;b.mount({id:$===void 0?g:$+g,head:!0,props:{bPrefix:$?`.${$}-`:void 0},anchorMetaName:cssrAnchorMetaName,ssr:x}),S!=null&&S.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:x})};x?B():onBeforeMount(B)}return computed(()=>{var B;const{theme:{common:$,self:P,peers:k={}}={},themeOverrides:M={},builtinThemeOverrides:R={}}=w,{common:F,peers:L}=M,{common:z=void 0,[d]:{common:U=void 0,self:W=void 0,peers:V={}}={}}=(S==null?void 0:S.mergedThemeRef.value)||{},{common:Q=void 0,[d]:K={}}=(S==null?void 0:S.mergedThemeOverridesRef.value)||{},{common:G,peers:X={}}=K,J=merge$2({},$||U||z||A.common,Q,G,F),re=merge$2((B=P||W||A.self)===null||B===void 0?void 0:B(J),R,K,M);return{common:J,self:re,peers:merge$2({},A.peers,V,k),peerOverrides:merge$2({},R.peers,X,L)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(d={},g={defaultBordered:!0}){const b=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:b==null?void 0:b.inlineThemeDisabled,mergedRtlRef:b==null?void 0:b.mergedRtlRef,mergedComponentPropsRef:b==null?void 0:b.mergedComponentPropsRef,mergedBreakpointsRef:b==null?void 0:b.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var A,w;const{bordered:C}=d;return C!==void 0?C:(w=(A=b==null?void 0:b.mergedBorderedRef.value)!==null&&A!==void 0?A:g.defaultBordered)!==null&&w!==void 0?w:!0}),mergedClsPrefixRef:computed(()=>(b==null?void 0:b.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed(()=>b==null?void 0:b.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 ${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 ${d} items`,selected:d=>`${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 g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=g.width?String(g.width):d.defaultWidth,A=d.formats[b]||d.formats[d.defaultWidth];return A}}function buildLocalizeFn(d){return function(g,b){var A=b!=null&&b.context?String(b.context):"standalone",w;if(A==="formatting"&&d.formattingValues){var C=d.defaultFormattingWidth||d.defaultWidth,x=b!=null&&b.width?String(b.width):C;w=d.formattingValues[x]||d.formattingValues[C]}else{var S=d.defaultWidth,E=b!=null&&b.width?String(b.width):d.defaultWidth;w=d.values[E]||d.values[S]}var B=d.argumentCallback?d.argumentCallback(g):g;return w[B]}}function buildMatchFn(d){return function(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=b.width,w=A&&d.matchPatterns[A]||d.matchPatterns[d.defaultMatchWidth],C=g.match(w);if(!C)return null;var x=C[0],S=A&&d.parsePatterns[A]||d.parsePatterns[d.defaultParseWidth],E=Array.isArray(S)?findIndex(S,function(P){return P.test(x)}):findKey(S,function(P){return P.test(x)}),B;B=d.valueCallback?d.valueCallback(E):E,B=b.valueCallback?b.valueCallback(B):B;var $=g.slice(x.length);return{value:B,rest:$}}}function findKey(d,g){for(var b in d)if(d.hasOwnProperty(b)&&g(d[b]))return b}function findIndex(d,g){for(var b=0;b<d.length;b++)if(g(d[b]))return b}function buildMatchPatternFn(d){return function(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=g.match(d.matchPattern);if(!A)return null;var w=A[0],C=g.match(d.parsePattern);if(!C)return null;var x=d.valueCallback?d.valueCallback(C[0]):C[0];x=b.valueCallback?b.valueCallback(x):x;var S=g.slice(w.length);return{value:x,rest:S}}}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(g,b,A){var w,C=formatDistanceLocale[g];return typeof C=="string"?w=C:b===1?w=C.one:w=C.other.replace("{{count}}",b.toString()),A!=null&&A.addSuffix?A.comparison&&A.comparison>0?"in "+w:w+" ago":w};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(g,b,A,w){return formatRelativeLocale[g]};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(g,b){var A=Number(g),w=A%100;if(w>20||w<10)switch(w%10){case 1:return A+"st";case 2:return A+"nd";case 3:return A+"rd"}return A+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function d(g){return g-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(g){return parseInt(g,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function d(g){return g+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:g,mergedDateLocaleRef:b}=inject(configProviderInjectionKey,null)||{},A=computed(()=>{var C,x;return(x=(C=g==null?void 0:g.value)===null||C===void 0?void 0:C[d])!==null&&x!==void 0?x:enUS$1[d]});return{dateLocaleRef:computed(()=>{var C;return(C=b==null?void 0:b.value)!==null&&C!==void 0?C:dateEnUS}),localeRef:A}}function useStyle(d,g,b){if(!g)return;const A=useSsrAdapter(),w=inject(configProviderInjectionKey,null),C=()=>{const x=b==null?void 0:b.value;g.mount({id:x===void 0?d:x+d,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:x?`.${x}-`:void 0},ssr:A}),w!=null&&w.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:A})};A?C():onBeforeMount(C)}function useThemeClass(d,g,b,A){var w;b||throwError("useThemeClass","cssVarsRef is not passed");const C=(w=inject(configProviderInjectionKey,null))===null||w===void 0?void 0:w.mergedThemeHashRef,x=ref(""),S=useSsrAdapter();let E;const B=`__${d}`,$=()=>{let P=B;const k=g?g.value:void 0,M=C==null?void 0:C.value;M&&(P+="-"+M),k&&(P+="-"+k);const{themeOverrides:R,builtinThemeOverrides:F}=A;R&&(P+="-"+murmur2(JSON.stringify(R))),F&&(P+="-"+murmur2(JSON.stringify(F))),x.value=P,E=()=>{const L=b.value;let z="";for(const U in L)z+=`${U}: ${L[U]};`;c$3(`.${P}`,z).mount({id:P,ssr:S}),E=void 0}};return watchEffect(()=>{$()}),{themeClass:x,onRender:()=>{E==null||E()}}}function useRtl(d,g,b){if(!g)return;const A=useSsrAdapter(),w=computed(()=>{const{value:x}=g;if(!x)return;const S=x[d];if(S)return S}),C=()=>{watchEffect(()=>{const{value:x}=b,S=`${x}${d}Rtl`;if(exists(S,A))return;const{value:E}=w;E&&E.style.mount({id:S,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:x?`.${x}-`:void 0},ssr:A})})};return A?C():onBeforeMount(C),w}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,g){return defineComponent({name:upperFirst$1(d),setup(){var b;const A=(b=inject(configProviderInjectionKey,null))===null||b===void 0?void 0:b.mergedIconsRef;return()=>{var w;const C=(w=A==null?void 0:A.value)===null||w===void 0?void 0:w[d];return C?C():g}}})}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:`
  42. fill: none;
  43. stroke: currentColor;
  44. stroke-linecap: round;
  45. stroke-linejoin: round;
  46. stroke-width: 32px;
  47. `}))}}),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:g}){const b=isMounted();return()=>h$1(Transition,{name:"icon-switch-transition",appear:b.value},g)}}),NFadeInExpandTransition=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(d,{slots:g}){function b(S){d.width?S.style.maxWidth=`${S.offsetWidth}px`:S.style.maxHeight=`${S.offsetHeight}px`,S.offsetWidth}function A(S){d.width?S.style.maxWidth="0":S.style.maxHeight="0",S.offsetWidth;const{onLeave:E}=d;E&&E()}function w(S){d.width?S.style.maxWidth="":S.style.maxHeight="";const{onAfterLeave:E}=d;E&&E()}function C(S){if(S.style.transition="none",d.width){const E=S.offsetWidth;S.style.maxWidth="0",S.offsetWidth,S.style.transition="",S.style.maxWidth=`${E}px`}else if(d.reverse)S.style.maxHeight=`${S.offsetHeight}px`,S.offsetHeight,S.style.transition="",S.style.maxHeight="0";else{const E=S.offsetHeight;S.style.maxHeight="0",S.offsetWidth,S.style.transition="",S.style.maxHeight=`${E}px`}S.offsetWidth}function x(S){var E;d.width?S.style.maxWidth="":d.reverse||(S.style.maxHeight=""),(E=d.onAfterEnter)===null||E===void 0||E.call(d)}return()=>{const{group:S,width:E,appear:B,mode:$}=d,P=S?TransitionGroup:Transition,k={name:E?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:B,onEnter:C,onAfterEnter:x,onBeforeLeave:b,onLeave:A,onAfterLeave:w};return S||(k.mode=$),h$1(P,k,g)}}}),style$q=cB("base-icon",`
  48. height: 1em;
  49. width: 1em;
  50. line-height: 1em;
  51. text-align: center;
  52. display: inline-block;
  53. position: relative;
  54. fill: currentColor;
  55. transform: translateZ(0);
  56. `,[c$3("svg",`
  57. height: 1em;
  58. width: 1em;
  59. `)]),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:`${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",`
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. cursor: pointer;
  64. background-color: transparent;
  65. color: var(--n-close-icon-color);
  66. border-radius: var(--n-close-border-radius);
  67. height: var(--n-close-size);
  68. width: var(--n-close-size);
  69. font-size: var(--n-close-icon-size);
  70. outline: none;
  71. border: none;
  72. position: relative;
  73. padding: 0;
  74. `,[cM("absolute",`
  75. height: var(--n-close-icon-size);
  76. width: var(--n-close-icon-size);
  77. `),c$3("&::before",`
  78. content: "";
  79. position: absolute;
  80. width: var(--n-close-size);
  81. height: var(--n-close-size);
  82. left: 50%;
  83. top: 50%;
  84. transform: translateY(-50%) translateX(-50%);
  85. transition: inherit;
  86. border-radius: inherit;
  87. `),cNotM("disabled",[c$3("&:hover",`
  88. color: var(--n-close-icon-color-hover);
  89. `),c$3("&:hover::before",`
  90. background-color: var(--n-close-color-hover);
  91. `),c$3("&:focus::before",`
  92. background-color: var(--n-close-color-hover);
  93. `),c$3("&:active",`
  94. color: var(--n-close-icon-color-pressed);
  95. `),c$3("&:active::before",`
  96. background-color: var(--n-close-color-pressed);
  97. `)]),cM("disabled",`
  98. cursor: not-allowed;
  99. color: var(--n-close-icon-color-disabled);
  100. background-color: transparent;
  101. `),cM("round",[c$3("&::before",`
  102. border-radius: 50%;
  103. `)])]),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:g,disabled:b,absolute:A,round:w,isButtonTag:C}=d;return h$1(C?"button":"div",{type:C?"button":void 0,tabindex:b||!d.focusable?-1:0,"aria-disabled":b,"aria-label":"close",role:C?void 0:"button",disabled:b,class:[`${g}-base-close`,A&&`${g}-base-close--absolute`,b&&`${g}-base-close--disabled`,w&&`${g}-base-close--round`],onMousedown:S=>{d.focusable||S.preventDefault()},onClick:d.onClick},h$1(NBaseIcon,{clsPrefix:g},{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:g=0,top:b=0,transition:A=`all .3s ${cubicBezierEaseInOut$3} !important`}={}){return[c$3("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:d+" scale(0.75)",left:g,top:b,opacity:0}),c$3("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${d}`,left:g,top:b,opacity:1}),c$3("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:g,top:b,transition:A})]}const style$o=c$3([c$3("@keyframes loading-container-rotate",`
  104. to {
  105. -webkit-transform: rotate(360deg);
  106. transform: rotate(360deg);
  107. }
  108. `),c$3("@keyframes loading-layer-rotate",`
  109. 12.5% {
  110. -webkit-transform: rotate(135deg);
  111. transform: rotate(135deg);
  112. }
  113. 25% {
  114. -webkit-transform: rotate(270deg);
  115. transform: rotate(270deg);
  116. }
  117. 37.5% {
  118. -webkit-transform: rotate(405deg);
  119. transform: rotate(405deg);
  120. }
  121. 50% {
  122. -webkit-transform: rotate(540deg);
  123. transform: rotate(540deg);
  124. }
  125. 62.5% {
  126. -webkit-transform: rotate(675deg);
  127. transform: rotate(675deg);
  128. }
  129. 75% {
  130. -webkit-transform: rotate(810deg);
  131. transform: rotate(810deg);
  132. }
  133. 87.5% {
  134. -webkit-transform: rotate(945deg);
  135. transform: rotate(945deg);
  136. }
  137. 100% {
  138. -webkit-transform: rotate(1080deg);
  139. transform: rotate(1080deg);
  140. }
  141. `),c$3("@keyframes loading-left-spin",`
  142. from {
  143. -webkit-transform: rotate(265deg);
  144. transform: rotate(265deg);
  145. }
  146. 50% {
  147. -webkit-transform: rotate(130deg);
  148. transform: rotate(130deg);
  149. }
  150. to {
  151. -webkit-transform: rotate(265deg);
  152. transform: rotate(265deg);
  153. }
  154. `),c$3("@keyframes loading-right-spin",`
  155. from {
  156. -webkit-transform: rotate(-265deg);
  157. transform: rotate(-265deg);
  158. }
  159. 50% {
  160. -webkit-transform: rotate(-130deg);
  161. transform: rotate(-130deg);
  162. }
  163. to {
  164. -webkit-transform: rotate(-265deg);
  165. transform: rotate(-265deg);
  166. }
  167. `),cB("base-loading",`
  168. position: relative;
  169. line-height: 0;
  170. width: 1em;
  171. height: 1em;
  172. `,[cE("transition-wrapper",`
  173. position: absolute;
  174. width: 100%;
  175. height: 100%;
  176. `,[iconSwitchTransition()]),cE("container",`
  177. display: inline-flex;
  178. position: relative;
  179. direction: ltr;
  180. line-height: 0;
  181. animation: loading-container-rotate 1568.2352941176ms linear infinite;
  182. font-size: 0;
  183. letter-spacing: 0;
  184. white-space: nowrap;
  185. opacity: 1;
  186. width: 100%;
  187. height: 100%;
  188. `,[cE("svg",`
  189. stroke: var(--n-text-color);
  190. fill: transparent;
  191. position: absolute;
  192. height: 100%;
  193. overflow: hidden;
  194. `),cE("container-layer",`
  195. position: absolute;
  196. width: 100%;
  197. height: 100%;
  198. animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  199. `,[cE("container-layer-left",`
  200. display: inline-flex;
  201. position: relative;
  202. width: 50%;
  203. height: 100%;
  204. overflow: hidden;
  205. `,[cE("svg",`
  206. animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  207. width: 200%;
  208. `)]),cE("container-layer-patch",`
  209. position: absolute;
  210. top: 0;
  211. left: 47.5%;
  212. box-sizing: border-box;
  213. width: 5%;
  214. height: 100%;
  215. overflow: hidden;
  216. `,[cE("svg",`
  217. left: -900%;
  218. width: 2000%;
  219. transform: rotate(180deg);
  220. `)]),cE("container-layer-right",`
  221. display: inline-flex;
  222. position: relative;
  223. width: 50%;
  224. height: 100%;
  225. overflow: hidden;
  226. `,[cE("svg",`
  227. animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  228. left: -100%;
  229. width: 200%;
  230. `)])])]),cE("placeholder",`
  231. position: absolute;
  232. left: 50%;
  233. top: 50%;
  234. transform: translateX(-50%) translateY(-50%);
  235. `,[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:g,strokeWidth:b,stroke:A,scale:w}=this,C=g/w;return h$1("div",{class:`${d}-base-loading`,role:"img","aria-label":"loading"},h$1(NIconSwitchTransition,null,{default:()=>this.show?h$1("div",{key:"icon",class:`${d}-base-loading__transition-wrapper`},h$1("div",{class:`${d}-base-loading__container`},h$1("div",{class:`${d}-base-loading__container-layer`},h$1("div",{class:`${d}-base-loading__container-layer-left`},h$1("svg",{class:`${d}-base-loading__svg`,viewBox:`0 0 ${2*C} ${2*C}`,xmlns:"http://www.w3.org/2000/svg",style:{color:A}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":b,"stroke-linecap":"round",cx:C,cy:C,r:g-b/2,"stroke-dasharray":4.91*g,"stroke-dashoffset":2.46*g}))),h$1("div",{class:`${d}-base-loading__container-layer-patch`},h$1("svg",{class:`${d}-base-loading__svg`,viewBox:`0 0 ${2*C} ${2*C}`,xmlns:"http://www.w3.org/2000/svg",style:{color:A}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":b,"stroke-linecap":"round",cx:C,cy:C,r:g-b/2,"stroke-dasharray":4.91*g,"stroke-dashoffset":2.46*g}))),h$1("div",{class:`${d}-base-loading__container-layer-right`},h$1("svg",{class:`${d}-base-loading__svg`,viewBox:`0 0 ${2*C} ${2*C}`,xmlns:"http://www.w3.org/2000/svg",style:{color:A}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":b,"stroke-linecap":"round",cx:C,cy:C,r:g-b/2,"stroke-dasharray":4.91*g,"stroke-dashoffset":2.46*g})))))):h$1("div",{key:"placeholder",class:`${d}-base-loading__placeholder`},this.$slots)}))}});function toArray(d){return Array.isArray(d)?d:[d]}const TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(d,g){const b=g(d);d.children!==void 0&&b!==TRAVERSE_COMMAND.STOP&&d.children.forEach(A=>traverseWithCb(A,g))}function getNonLeafKeys(d,g={}){const{preserveGroup:b=!1}=g,A=[],w=b?x=>{x.isLeaf||(A.push(x.key),C(x.children))}:x=>{x.isLeaf||(x.isGroup||A.push(x.key),C(x.children))};function C(x){x.forEach(w)}return C(d),A}function isLeaf(d,g){const{isLeaf:b}=d;return b!==void 0?b:!g(d)}function defaultGetChildren(d){return d.children}function defaultGetKey(d){return d.key}function isIgnored(){return!1}function isShallowLoaded(d,g){const{isLeaf:b}=d;return!(b===!1&&!Array.isArray(g(d)))}function isDisabled(d){return d.disabled===!0}function isExpilicitlyNotLoaded(d,g){return d.isLeaf===!1&&!Array.isArray(g(d))}function unwrapCheckedKeys(d){var g;return d==null?[]:Array.isArray(d)?d:(g=d.checkedKeys)!==null&&g!==void 0?g:[]}function unwrapIndeterminateKeys(d){var g;return d==null||Array.isArray(d)?[]:(g=d.indeterminateKeys)!==null&&g!==void 0?g:[]}function merge(d,g){const b=new Set(d);return g.forEach(A=>{b.has(A)||b.add(A)}),Array.from(b)}function minus(d,g){const b=new Set(d);return g.forEach(A=>{b.has(A)&&b.delete(A)}),Array.from(b)}function isGroup(d){return(d==null?void 0:d.type)==="group"}function createIndexGetter(d){const g=new Map;return d.forEach((b,A)=>{g.set(b.key,A)}),b=>{var A;return(A=g.get(b))!==null&&A!==void 0?A:null}}class SubtreeNotLoadedError extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function getExtendedCheckedKeySetAfterCheck(d,g,b,A){return getExtendedCheckedKeySet(g.concat(d),b,A,!1)}function getAvailableAscendantNodeSet(d,g){const b=new Set;return d.forEach(A=>{const w=g.treeNodeMap.get(A);if(w!==void 0){let C=w.parent;for(;C!==null&&!(C.disabled||b.has(C.key));)b.add(C.key),C=C.parent}}),b}function getExtendedCheckedKeySetAfterUncheck(d,g,b,A){const w=getExtendedCheckedKeySet(g,b,A,!1),C=getExtendedCheckedKeySet(d,b,A,!0),x=getAvailableAscendantNodeSet(d,b),S=[];return w.forEach(E=>{(C.has(E)||x.has(E))&&S.push(E)}),S.forEach(E=>w.delete(E)),w}function getCheckedKeys(d,g){const{checkedKeys:b,keysToCheck:A,keysToUncheck:w,indeterminateKeys:C,cascade:x,leafOnly:S,checkStrategy:E,allowNotLoaded:B}=d;if(!x)return A!==void 0?{checkedKeys:merge(b,A),indeterminateKeys:Array.from(C)}:w!==void 0?{checkedKeys:minus(b,w),indeterminateKeys:Array.from(C)}:{checkedKeys:Array.from(b),indeterminateKeys:Array.from(C)};const{levelTreeNodeMap:$}=g;let P;w!==void 0?P=getExtendedCheckedKeySetAfterUncheck(w,b,g,B):A!==void 0?P=getExtendedCheckedKeySetAfterCheck(A,b,g,B):P=getExtendedCheckedKeySet(b,g,B,!1);const k=E==="parent",M=E==="child"||S,R=P,F=new Set,L=Math.max.apply(null,Array.from($.keys()));for(let z=L;z>=0;z-=1){const U=z===0,W=$.get(z);for(const V of W){if(V.isLeaf)continue;const{key:Q,shallowLoaded:K}=V;if(M&&K&&V.children.forEach(re=>{!re.disabled&&!re.isLeaf&&re.shallowLoaded&&R.has(re.key)&&R.delete(re.key)}),V.disabled||!K)continue;let G=!0,X=!1,J=!0;for(const re of V.children){const fe=re.key;if(!re.disabled){if(J&&(J=!1),R.has(fe))X=!0;else if(F.has(fe)){X=!0,G=!1;break}else if(G=!1,X)break}}G&&!J?(k&&V.children.forEach(re=>{!re.disabled&&R.has(re.key)&&R.delete(re.key)}),R.add(Q)):X&&F.add(Q),U&&M&&R.has(Q)&&R.delete(Q)}}return{checkedKeys:Array.from(R),indeterminateKeys:Array.from(F)}}function getExtendedCheckedKeySet(d,g,b,A){const{treeNodeMap:w,getChildren:C}=g,x=new Set,S=new Set(d);return d.forEach(E=>{const B=w.get(E);B!==void 0&&traverseWithCb(B,$=>{if($.disabled)return TRAVERSE_COMMAND.STOP;const{key:P}=$;if(!x.has(P)&&(x.add(P),S.add(P),isExpilicitlyNotLoaded($.rawNode,C))){if(A)return TRAVERSE_COMMAND.STOP;if(!b)throw new SubtreeNotLoadedError}})}),S}function getPath(d,{includeGroup:g=!1,includeSelf:b=!0},A){var w;const C=A.treeNodeMap;let x=d==null?null:(w=C.get(d))!==null&&w!==void 0?w:null;const S={keyPath:[],treeNodePath:[],treeNode:x};if(x!=null&&x.ignored)return S.treeNode=null,S;for(;x;)!x.ignored&&(g||!x.isGroup)&&S.treeNodePath.push(x),x=x.parent;return S.treeNodePath.reverse(),b||S.treeNodePath.pop(),S.keyPath=S.treeNodePath.map(E=>E.key),S}function getFirstAvailableNode(d){if(d.length===0)return null;const g=d[0];return g.isGroup||g.ignored||g.disabled?g.getNext():g}function rawGetNext(d,g){const b=d.siblings,A=b.length,{index:w}=d;return g?b[(w+1)%A]:w===b.length-1?null:b[w+1]}function move(d,g,{loop:b=!1,includeDisabled:A=!1}={}){const w=g==="prev"?rawGetPrev:rawGetNext,C={reverse:g==="prev"};let x=!1,S=null;function E(B){if(B!==null){if(B===d){if(!x)x=!0;else if(!d.disabled&&!d.isGroup){S=d;return}}else if((!B.disabled||A)&&!B.ignored&&!B.isGroup){S=B;return}if(B.isGroup){const $=getChild(B,C);$!==null?S=$:E(w(B,b))}else{const $=w(B,!1);if($!==null)E($);else{const P=rawGetParent(B);P!=null&&P.isGroup?E(w(P,b)):b&&E(w(B,!0))}}}}return E(d),S}function rawGetPrev(d,g){const b=d.siblings,A=b.length,{index:w}=d;return g?b[(w-1+A)%A]:w===0?null:b[w-1]}function rawGetParent(d){return d.parent}function getChild(d,g={}){const{reverse:b=!1}=g,{children:A}=d;if(A){const{length:w}=A,C=b?w-1:0,x=b?-1:w,S=b?-1:1;for(let E=C;E!==x;E+=S){const B=A[E];if(!B.disabled&&!B.ignored)if(B.isGroup){const $=getChild(B,g);if($!==null)return $}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,g){const b=g?new Set(g):void 0,A=[];function w(C){C.forEach(x=>{A.push(x),!(x.isLeaf||!x.children||x.ignored)&&(x.isGroup||b===void 0||b.has(x.key))&&w(x.children)})}return w(d),A}function contains(d,g){const b=d.key;for(;g;){if(g.key===b)return!0;g=g.parent}return!1}function createTreeNodes(d,g,b,A,w,C=null,x=0){const S=[];return d.forEach((E,B)=>{var $;const P=Object.create(A);if(P.rawNode=E,P.siblings=S,P.level=x,P.index=B,P.isFirstChild=B===0,P.isLastChild=B+1===d.length,P.parent=C,!P.ignored){const k=w(E);Array.isArray(k)&&(P.children=createTreeNodes(k,g,b,A,w,P,x+1))}S.push(P),g.set(P.key,P),b.has(x)||b.set(x,[]),($=b.get(x))===null||$===void 0||$.push(P)}),S}function createTreeMate(d,g={}){var b;const A=new Map,w=new Map,{getDisabled:C=isDisabled,getIgnored:x=isIgnored,getIsGroup:S=isGroup,getKey:E=defaultGetKey}=g,B=(b=g.getChildren)!==null&&b!==void 0?b:defaultGetChildren,$=g.ignoreEmptyChildren?V=>{const Q=B(V);return Array.isArray(Q)?Q.length?Q:null:Q}:B,P=Object.assign({get key(){return E(this.rawNode)},get disabled(){return C(this.rawNode)},get isGroup(){return S(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,$)},get shallowLoaded(){return isShallowLoaded(this.rawNode,$)},get ignored(){return x(this.rawNode)},contains(V){return contains(this,V)}},moveMethods),k=createTreeNodes(d,A,w,P,$);function M(V){if(V==null)return null;const Q=A.get(V);return Q&&!Q.isGroup&&!Q.ignored?Q:null}function R(V){if(V==null)return null;const Q=A.get(V);return Q&&!Q.ignored?Q:null}function F(V,Q){const K=R(V);return K?K.getPrev(Q):null}function L(V,Q){const K=R(V);return K?K.getNext(Q):null}function z(V){const Q=R(V);return Q?Q.getParent():null}function U(V){const Q=R(V);return Q?Q.getChild():null}const W={treeNodes:k,treeNodeMap:A,levelTreeNodeMap:w,maxLevel:Math.max(...w.keys()),getChildren:$,getFlattenedNodes(V){return flatten$2(k,V)},getNode:M,getPrev:F,getNext:L,getParent:z,getChild:U,getFirstAvailableNode(){return getFirstAvailableNode(k)},getPath(V,Q={}){return getPath(V,Q,W)},getCheckedKeys(V,Q={}){const{cascade:K=!0,leafOnly:G=!1,checkStrategy:X="all",allowNotLoaded:J=!1}=Q;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(V),indeterminateKeys:unwrapIndeterminateKeys(V),cascade:K,leafOnly:G,checkStrategy:X,allowNotLoaded:J},W)},check(V,Q,K={}){const{cascade:G=!0,leafOnly:X=!1,checkStrategy:J="all",allowNotLoaded:re=!1}=K;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(Q),indeterminateKeys:unwrapIndeterminateKeys(Q),keysToCheck:V==null?[]:toArray(V),cascade:G,leafOnly:X,checkStrategy:J,allowNotLoaded:re},W)},uncheck(V,Q,K={}){const{cascade:G=!0,leafOnly:X=!1,checkStrategy:J="all",allowNotLoaded:re=!1}=K;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(Q),indeterminateKeys:unwrapIndeterminateKeys(Q),keysToUncheck:V==null?[]:toArray(V),cascade:G,leafOnly:X,checkStrategy:J,allowNotLoaded:re},W)},getNonLeafKeys(V={}){return getNonLeafKeys(k,V)}};return W}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 g=Array.from(baseInvertBackgroundRgb$1);return g[3]=Number(d),composite(baseBackgroundRgb$1,g)}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 g=Array.from(baseInvertBackgroundRgb);return g[3]=Number(d),composite(baseBackgroundRgb,g)}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:g,iconColor:b,textColor2:A,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:x,fontSizeHuge:S}=d;return Object.assign(Object.assign({},commonVars$c),{fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:x,fontSizeHuge:S,textColor:g,iconColor:b,extraTextColor:A})},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",`
  236. display: flex;
  237. flex-direction: column;
  238. align-items: center;
  239. font-size: var(--n-font-size);
  240. `,[cE("icon",`
  241. width: var(--n-icon-size);
  242. height: var(--n-icon-size);
  243. font-size: var(--n-icon-size);
  244. line-height: var(--n-icon-size);
  245. color: var(--n-icon-color);
  246. transition:
  247. color .3s var(--n-bezier);
  248. `,[c$3("+",[cE("description",`
  249. margin-top: 8px;
  250. `)])]),cE("description",`
  251. transition: color .3s var(--n-bezier);
  252. color: var(--n-text-color);
  253. `),cE("extra",`
  254. text-align: center;
  255. transition: color .3s var(--n-bezier);
  256. margin-top: 12px;
  257. color: var(--n-extra-text-color);
  258. `)]),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:g,inlineThemeDisabled:b}=useConfig(d),A=useTheme("Empty","-empty",style$n,emptyLight$1,d,g),{localeRef:w}=useLocale("Empty"),C=inject(configProviderInjectionKey,null),x=computed(()=>{var $,P,k;return($=d.description)!==null&&$!==void 0?$:(k=(P=C==null?void 0:C.mergedComponentPropsRef.value)===null||P===void 0?void 0:P.Empty)===null||k===void 0?void 0:k.description}),S=computed(()=>{var $,P;return((P=($=C==null?void 0:C.mergedComponentPropsRef.value)===null||$===void 0?void 0:$.Empty)===null||P===void 0?void 0:P.renderIcon)||(()=>h$1(EmptyIcon,null))}),E=computed(()=>{const{size:$}=d,{common:{cubicBezierEaseInOut:P},self:{[createKey("iconSize",$)]:k,[createKey("fontSize",$)]:M,textColor:R,iconColor:F,extraTextColor:L}}=A.value;return{"--n-icon-size":k,"--n-font-size":M,"--n-bezier":P,"--n-text-color":R,"--n-icon-color":F,"--n-extra-text-color":L}}),B=b?useThemeClass("empty",computed(()=>{let $="";const{size:P}=d;return $+=P[0],$}),E,d):void 0;return{mergedClsPrefix:g,mergedRenderIcon:S,localizedDescription:computed(()=>x.value||w.value.description),cssVars:b?void 0:E,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const{$slots:d,mergedClsPrefix:g,onRender:b}=this;return b==null||b(),h$1("div",{class:[`${g}-empty`,this.themeClass],style:this.cssVars},this.showIcon?h$1("div",{class:`${g}-empty__icon`},d.icon?d.icon():h$1(NBaseIcon,{clsPrefix:g},{default:this.mergedRenderIcon})):null,this.showDescription?h$1("div",{class:`${g}-empty__description`},d.default?d.default():this.localizedDescription):null,d.extra?h$1("div",{class:`${g}-empty__extra`},d.extra()):null)}}),self$T=d=>{const{scrollbarColor:g,scrollbarColorHover:b}=d;return{color:g,colorHover:b}},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:g="0.2s",leaveDuration:b="0.2s",enterCubicBezier:A=cubicBezierEaseInOut$2,leaveCubicBezier:w=cubicBezierEaseInOut$2}={}){return[c$3(`&.${d}-transition-enter-active`,{transition:`all ${g} ${A}!important`}),c$3(`&.${d}-transition-leave-active`,{transition:`all ${b} ${w}!important`}),c$3(`&.${d}-transition-enter-from, &.${d}-transition-leave-to`,{opacity:0}),c$3(`&.${d}-transition-leave-from, &.${d}-transition-enter-to`,{opacity:1})]}const style$m=cB("scrollbar",`
  259. overflow: hidden;
  260. position: relative;
  261. z-index: auto;
  262. height: 100%;
  263. width: 100%;
  264. `,[c$3(">",[cB("scrollbar-container",`
  265. width: 100%;
  266. overflow: scroll;
  267. height: 100%;
  268. max-height: inherit;
  269. scrollbar-width: none;
  270. `,[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  271. width: 0;
  272. height: 0;
  273. display: none;
  274. `),c$3(">",[cB("scrollbar-content",`
  275. box-sizing: border-box;
  276. min-width: 100%;
  277. `)])])]),c$3(">, +",[cB("scrollbar-rail",`
  278. position: absolute;
  279. pointer-events: none;
  280. user-select: none;
  281. -webkit-user-select: none;
  282. `,[cM("horizontal",`
  283. left: 2px;
  284. right: 2px;
  285. bottom: 4px;
  286. height: var(--n-scrollbar-height);
  287. `,[c$3(">",[cE("scrollbar",`
  288. height: var(--n-scrollbar-height);
  289. border-radius: var(--n-scrollbar-border-radius);
  290. right: 0;
  291. `)])]),cM("vertical",`
  292. right: 4px;
  293. top: 2px;
  294. bottom: 2px;
  295. width: var(--n-scrollbar-width);
  296. `,[c$3(">",[cE("scrollbar",`
  297. width: var(--n-scrollbar-width);
  298. border-radius: var(--n-scrollbar-border-radius);
  299. bottom: 0;
  300. `)])]),cM("disabled",[c$3(">",[cE("scrollbar",{pointerEvents:"none"})])]),c$3(">",[cE("scrollbar",`
  301. position: absolute;
  302. cursor: pointer;
  303. pointer-events: all;
  304. background-color: var(--n-scrollbar-color);
  305. transition: background-color .2s var(--n-scrollbar-bezier);
  306. `,[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:g,inlineThemeDisabled:b,mergedRtlRef:A}=useConfig(d),w=useRtl("Scrollbar",A,g),C=ref(null),x=ref(null),S=ref(null),E=ref(null),B=ref(null),$=ref(null),P=ref(null),k=ref(null),M=ref(null),R=ref(null),F=ref(null),L=ref(0),z=ref(0),U=ref(!1),W=ref(!1);let V=!1,Q=!1,K,G,X=0,J=0,re=0,fe=0;const Z=useIsIos(),ie=computed(()=>{const{value:be}=k,{value:Fe}=$,{value:We}=R;return be===null||Fe===null||We===null?0:Math.min(be,We*be/Fe+d.size*1.5)}),ce=computed(()=>`${ie.value}px`),me=computed(()=>{const{value:be}=M,{value:Fe}=P,{value:We}=F;return be===null||Fe===null||We===null?0:We*be/Fe+d.size*1.5}),ne=computed(()=>`${me.value}px`),te=computed(()=>{const{value:be}=k,{value:Fe}=L,{value:We}=$,{value:it}=R;if(be===null||We===null||it===null)return 0;{const gt=We-be;return gt?Fe/gt*(it-ie.value):0}}),ue=computed(()=>`${te.value}px`),ae=computed(()=>{const{value:be}=M,{value:Fe}=z,{value:We}=P,{value:it}=F;if(be===null||We===null||it===null)return 0;{const gt=We-be;return gt?Fe/gt*(it-me.value):0}}),ye=computed(()=>`${ae.value}px`),Oe=computed(()=>{const{value:be}=k,{value:Fe}=$;return be!==null&&Fe!==null&&Fe>be}),Ye=computed(()=>{const{value:be}=M,{value:Fe}=P;return be!==null&&Fe!==null&&Fe>be}),et=computed(()=>{const{trigger:be}=d;return be==="none"||U.value}),ht=computed(()=>{const{trigger:be}=d;return be==="none"||W.value}),Te=computed(()=>{const{container:be}=d;return be?be():x.value}),Le=computed(()=>{const{content:be}=d;return be?be():S.value}),Re=useReactivated(()=>{d.container||rt({top:L.value,left:z.value})}),$e=()=>{Re.isDeactivated||Qe()},qe=be=>{if(Re.isDeactivated)return;const{onResize:Fe}=d;Fe&&Fe(be),Qe()},rt=(be,Fe)=>{if(!d.scrollable)return;if(typeof be=="number"){he(Fe!=null?Fe:0,be,0,!1,"auto");return}const{left:We,top:it,index:gt,elSize:yt,position:Ae,behavior:Ie,el:ze,debounce:Ve=!0}=be;(We!==void 0||it!==void 0)&&he(We!=null?We:0,it!=null?it:0,0,!1,Ie),ze!==void 0?he(0,ze.offsetTop,ze.offsetHeight,Ve,Ie):gt!==void 0&&yt!==void 0?he(0,gt*yt,yt,Ve,Ie):Ae==="bottom"?he(0,Number.MAX_SAFE_INTEGER,0,!1,Ie):Ae==="top"&&he(0,0,0,!1,Ie)},Xe=(be,Fe)=>{if(!d.scrollable)return;const{value:We}=Te;We&&(typeof be=="object"?We.scrollBy(be):We.scrollBy(be,Fe||0))};function he(be,Fe,We,it,gt){const{value:yt}=Te;if(yt){if(it){const{scrollTop:Ae,offsetHeight:Ie}=yt;if(Fe>Ae){Fe+We<=Ae+Ie||yt.scrollTo({left:be,top:Fe+We-Ie,behavior:gt});return}}yt.scrollTo({left:be,top:Fe,behavior:gt})}}function we(){se(),ge(),Qe()}function Be(){Ne()}function Ne(){Se(),q()}function Se(){G!==void 0&&window.clearTimeout(G),G=window.setTimeout(()=>{W.value=!1},d.duration)}function q(){K!==void 0&&window.clearTimeout(K),K=window.setTimeout(()=>{U.value=!1},d.duration)}function se(){K!==void 0&&window.clearTimeout(K),U.value=!0}function ge(){G!==void 0&&window.clearTimeout(G),W.value=!0}function de(be){const{onScroll:Fe}=d;Fe&&Fe(be),ve()}function ve(){const{value:be}=Te;be&&(L.value=be.scrollTop,z.value=be.scrollLeft*(w!=null&&w.value?-1:1))}function Pe(){const{value:be}=Le;be&&($.value=be.offsetHeight,P.value=be.offsetWidth);const{value:Fe}=Te;Fe&&(k.value=Fe.offsetHeight,M.value=Fe.offsetWidth);const{value:We}=B,{value:it}=E;We&&(F.value=We.offsetWidth),it&&(R.value=it.offsetHeight)}function De(){const{value:be}=Te;be&&(L.value=be.scrollTop,z.value=be.scrollLeft*(w!=null&&w.value?-1:1),k.value=be.offsetHeight,M.value=be.offsetWidth,$.value=be.scrollHeight,P.value=be.scrollWidth);const{value:Fe}=B,{value:We}=E;Fe&&(F.value=Fe.offsetWidth),We&&(R.value=We.offsetHeight)}function Qe(){d.scrollable&&(d.useUnifiedContainer?De():(Pe(),ve()))}function ot(be){var Fe;return!(!((Fe=C.value)===null||Fe===void 0)&&Fe.contains(getPreciseEventTarget(be)))}function st(be){be.preventDefault(),be.stopPropagation(),Q=!0,on("mousemove",window,ut,!0),on("mouseup",window,He,!0),J=z.value,re=w!=null&&w.value?window.innerWidth-be.clientX:be.clientX}function ut(be){if(!Q)return;K!==void 0&&window.clearTimeout(K),G!==void 0&&window.clearTimeout(G);const{value:Fe}=M,{value:We}=P,{value:it}=me;if(Fe===null||We===null)return;const yt=(w!=null&&w.value?window.innerWidth-be.clientX-re:be.clientX-re)*(We-Fe)/(Fe-it),Ae=We-Fe;let Ie=J+yt;Ie=Math.min(Ae,Ie),Ie=Math.max(Ie,0);const{value:ze}=Te;if(ze){ze.scrollLeft=Ie*(w!=null&&w.value?-1:1);const{internalOnUpdateScrollLeft:Ve}=d;Ve&&Ve(Ie)}}function He(be){be.preventDefault(),be.stopPropagation(),off("mousemove",window,ut,!0),off("mouseup",window,He,!0),Q=!1,Qe(),ot(be)&&Ne()}function ct(be){be.preventDefault(),be.stopPropagation(),V=!0,on("mousemove",window,mt,!0),on("mouseup",window,_t,!0),X=L.value,fe=be.clientY}function mt(be){if(!V)return;K!==void 0&&window.clearTimeout(K),G!==void 0&&window.clearTimeout(G);const{value:Fe}=k,{value:We}=$,{value:it}=ie;if(Fe===null||We===null)return;const yt=(be.clientY-fe)*(We-Fe)/(Fe-it),Ae=We-Fe;let Ie=X+yt;Ie=Math.min(Ae,Ie),Ie=Math.max(Ie,0);const{value:ze}=Te;ze&&(ze.scrollTop=Ie)}function _t(be){be.preventDefault(),be.stopPropagation(),off("mousemove",window,mt,!0),off("mouseup",window,_t,!0),V=!1,Qe(),ot(be)&&Ne()}watchEffect(()=>{const{value:be}=Ye,{value:Fe}=Oe,{value:We}=g,{value:it}=B,{value:gt}=E;it&&(be?it.classList.remove(`${We}-scrollbar-rail--disabled`):it.classList.add(`${We}-scrollbar-rail--disabled`)),gt&&(Fe?gt.classList.remove(`${We}-scrollbar-rail--disabled`):gt.classList.add(`${We}-scrollbar-rail--disabled`))}),onMounted(()=>{d.container||Qe()}),onBeforeUnmount(()=>{K!==void 0&&window.clearTimeout(K),G!==void 0&&window.clearTimeout(G),off("mousemove",window,mt,!0),off("mouseup",window,_t,!0)});const ft=useTheme("Scrollbar","-scrollbar",style$m,scrollbarLight$1,d,g),Ct=computed(()=>{const{common:{cubicBezierEaseInOut:be,scrollbarBorderRadius:Fe,scrollbarHeight:We,scrollbarWidth:it},self:{color:gt,colorHover:yt}}=ft.value;return{"--n-scrollbar-bezier":be,"--n-scrollbar-color":gt,"--n-scrollbar-color-hover":yt,"--n-scrollbar-border-radius":Fe,"--n-scrollbar-width":it,"--n-scrollbar-height":We}}),pt=b?useThemeClass("scrollbar",void 0,Ct,d):void 0;return Object.assign(Object.assign({},{scrollTo:rt,scrollBy:Xe,sync:Qe,syncUnifiedContainer:De,handleMouseEnterWrapper:we,handleMouseLeaveWrapper:Be}),{mergedClsPrefix:g,rtlEnabled:w,containerScrollTop:L,wrapperRef:C,containerRef:x,contentRef:S,yRailRef:E,xRailRef:B,needYBar:Oe,needXBar:Ye,yBarSizePx:ce,xBarSizePx:ne,yBarTopPx:ue,xBarLeftPx:ye,isShowXBar:et,isShowYBar:ht,isIos:Z,handleScroll:de,handleContentResize:$e,handleContainerResize:qe,handleYScrollMouseDown:ct,handleXScrollMouseDown:st,cssVars:b?void 0:Ct,themeClass:pt==null?void 0:pt.themeClass,onRender:pt==null?void 0:pt.onRender})},render(){var d;const{$slots:g,mergedClsPrefix:b,triggerDisplayManually:A,rtlEnabled:w,internalHoistYRail:C}=this;if(!this.scrollable)return(d=g.default)===null||d===void 0?void 0:d.call(g);const x=this.trigger==="none",S=()=>h$1("div",{ref:"yRailRef",class:[`${b}-scrollbar-rail`,`${b}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},h$1(x?Wrapper:Transition,x?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h$1("div",{class:`${b}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),E=()=>{var $,P;return($=this.onRender)===null||$===void 0||$.call(this),h$1("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${b}-scrollbar`,this.themeClass,w&&`${b}-scrollbar--rtl`],style:this.cssVars,onMouseenter:A?void 0:this.handleMouseEnterWrapper,onMouseleave:A?void 0:this.handleMouseLeaveWrapper}),[this.container?(P=g.default)===null||P===void 0?void 0:P.call(g):h$1("div",{role:"none",ref:"containerRef",class:[`${b}-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:[`${b}-scrollbar-content`,this.contentClass]},g)})),C?null:S(),this.xScrollable&&h$1("div",{ref:"xRailRef",class:[`${b}-scrollbar-rail`,`${b}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h$1(x?Wrapper:Transition,x?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h$1("div",{class:`${b}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:w?this.xBarLeftPx:void 0,left:w?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},B=this.container?E():h$1(VResizeObserver,{onResize:this.handleContainerResize},{default:E});return C?h$1(Fragment,null,B,S()):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:g,popoverColor:b,textColor3:A,dividerColor:w,textColor2:C,primaryColorPressed:x,textColorDisabled:S,primaryColor:E,opacityDisabled:B,hoverColor:$,fontSizeSmall:P,fontSizeMedium:k,fontSizeLarge:M,fontSizeHuge:R,heightSmall:F,heightMedium:L,heightLarge:z,heightHuge:U}=d;return Object.assign(Object.assign({},commonVariables$l),{optionFontSizeSmall:P,optionFontSizeMedium:k,optionFontSizeLarge:M,optionFontSizeHuge:R,optionHeightSmall:F,optionHeightMedium:L,optionHeightLarge:z,optionHeightHuge:U,borderRadius:g,color:b,groupHeaderTextColor:A,actionDividerColor:w,optionTextColor:C,optionTextColorPressed:x,optionTextColorDisabled:S,optionTextColorActive:E,optionOpacityDisabled:B,optionCheckColor:E,optionColorPending:$,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:$,actionTextColor:C,loadingColor:E})},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,g){return h$1(Transition,{name:"fade-in-scale-up-transition"},{default:()=>d?h$1(NBaseIcon,{clsPrefix:g,class:`${g}-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:g,pendingTmNodeRef:b,multipleRef:A,valueSetRef:w,renderLabelRef:C,renderOptionRef:x,labelFieldRef:S,valueFieldRef:E,showCheckmarkRef:B,nodePropsRef:$,handleOptionClick:P,handleOptionMouseEnter:k}=inject(internalSelectionMenuInjectionKey),M=useMemo(()=>{const{value:z}=b;return z?d.tmNode.key===z.key:!1});function R(z){const{tmNode:U}=d;U.disabled||P(z,U)}function F(z){const{tmNode:U}=d;U.disabled||k(z,U)}function L(z){const{tmNode:U}=d,{value:W}=M;U.disabled||W||k(z,U)}return{multiple:A,isGrouped:useMemo(()=>{const{tmNode:z}=d,{parent:U}=z;return U&&U.rawNode.type==="group"}),showCheckmark:B,nodeProps:$,isPending:M,isSelected:useMemo(()=>{const{value:z}=g,{value:U}=A;if(z===null)return!1;const W=d.tmNode.rawNode[E.value];if(U){const{value:V}=w;return V.has(W)}else return z===W}),labelField:S,renderLabel:C,renderOption:x,handleMouseMove:L,handleMouseEnter:F,handleClick:R}},render(){const{clsPrefix:d,tmNode:{rawNode:g},isSelected:b,isPending:A,isGrouped:w,showCheckmark:C,nodeProps:x,renderOption:S,renderLabel:E,handleClick:B,handleMouseEnter:$,handleMouseMove:P}=this,k=renderCheckMark(b,d),M=E?[E(g,b),C&&k]:[render$1(g[this.labelField],g,b),C&&k],R=x==null?void 0:x(g),F=h$1("div",Object.assign({},R,{class:[`${d}-base-select-option`,g.class,R==null?void 0:R.class,{[`${d}-base-select-option--disabled`]:g.disabled,[`${d}-base-select-option--selected`]:b,[`${d}-base-select-option--grouped`]:w,[`${d}-base-select-option--pending`]:A,[`${d}-base-select-option--show-checkmark`]:C}],style:[(R==null?void 0:R.style)||"",g.style||""],onClick:mergeEventHandlers([B,R==null?void 0:R.onClick]),onMouseenter:mergeEventHandlers([$,R==null?void 0:R.onMouseenter]),onMousemove:mergeEventHandlers([P,R==null?void 0:R.onMousemove])}),h$1("div",{class:`${d}-base-select-option__content`},M));return g.render?g.render({node:F,option:g,selected:b}):S?S({node:F,option:g,selected:b}):F}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:d,renderOptionRef:g,labelFieldRef:b,nodePropsRef:A}=inject(internalSelectionMenuInjectionKey);return{labelField:b,nodeProps:A,renderLabel:d,renderOption:g}},render(){const{clsPrefix:d,renderLabel:g,renderOption:b,nodeProps:A,tmNode:{rawNode:w}}=this,C=A==null?void 0:A(w),x=g?g(w,!1):render$1(w[this.labelField],w,!1),S=h$1("div",Object.assign({},C,{class:[`${d}-base-select-group-header`,C==null?void 0:C.class]}),x);return w.render?w.render({node:S,option:w}):b?b({node:S,option:w,selected:!1}):S}}),{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$m;function fadeInScaleUpTransition({transformOrigin:d="inherit",duration:g=".2s",enterScale:b=".9",originalTransform:A="",originalTransition:w=""}={}){return[c$3("&.fade-in-scale-up-transition-leave-active",{transformOrigin:d,transition:`opacity ${g} ${cubicBezierEaseIn$1}, transform ${g} ${cubicBezierEaseIn$1} ${w&&","+w}`}),c$3("&.fade-in-scale-up-transition-enter-active",{transformOrigin:d,transition:`opacity ${g} ${cubicBezierEaseOut$1}, transform ${g} ${cubicBezierEaseOut$1} ${w&&","+w}`}),c$3("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${A} scale(${b})`}),c$3("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${A} scale(1)`})]}const style$l=cB("base-select-menu",`
  307. line-height: 1.5;
  308. outline: none;
  309. z-index: 0;
  310. position: relative;
  311. border-radius: var(--n-border-radius);
  312. transition:
  313. background-color .3s var(--n-bezier),
  314. box-shadow .3s var(--n-bezier);
  315. background-color: var(--n-color);
  316. `,[cB("scrollbar",`
  317. max-height: var(--n-height);
  318. `),cB("virtual-list",`
  319. max-height: var(--n-height);
  320. `),cB("base-select-option",`
  321. min-height: var(--n-option-height);
  322. font-size: var(--n-option-font-size);
  323. display: flex;
  324. align-items: center;
  325. `,[cE("content",`
  326. z-index: 1;
  327. white-space: nowrap;
  328. text-overflow: ellipsis;
  329. overflow: hidden;
  330. `)]),cB("base-select-group-header",`
  331. min-height: var(--n-option-height);
  332. font-size: .93em;
  333. display: flex;
  334. align-items: center;
  335. `),cB("base-select-menu-option-wrapper",`
  336. position: relative;
  337. width: 100%;
  338. `),cE("loading, empty",`
  339. display: flex;
  340. padding: 12px 32px;
  341. flex: 1;
  342. justify-content: center;
  343. `),cE("loading",`
  344. color: var(--n-loading-color);
  345. font-size: var(--n-loading-size);
  346. `),cE("action",`
  347. padding: 8px var(--n-option-padding-left);
  348. font-size: var(--n-option-font-size);
  349. transition:
  350. color .3s var(--n-bezier),
  351. border-color .3s var(--n-bezier);
  352. border-top: 1px solid var(--n-action-divider-color);
  353. color: var(--n-action-text-color);
  354. `),cB("base-select-group-header",`
  355. position: relative;
  356. cursor: default;
  357. padding: var(--n-option-padding);
  358. color: var(--n-group-header-text-color);
  359. `),cB("base-select-option",`
  360. cursor: pointer;
  361. position: relative;
  362. padding: var(--n-option-padding);
  363. transition:
  364. color .3s var(--n-bezier),
  365. opacity .3s var(--n-bezier);
  366. box-sizing: border-box;
  367. color: var(--n-option-text-color);
  368. opacity: 1;
  369. `,[cM("show-checkmark",`
  370. padding-right: calc(var(--n-option-padding-right) + 20px);
  371. `),c$3("&::before",`
  372. content: "";
  373. position: absolute;
  374. left: 4px;
  375. right: 4px;
  376. top: 0;
  377. bottom: 0;
  378. border-radius: var(--n-border-radius);
  379. transition: background-color .3s var(--n-bezier);
  380. `),c$3("&:active",`
  381. color: var(--n-option-text-color-pressed);
  382. `),cM("grouped",`
  383. padding-left: calc(var(--n-option-padding-left) * 1.5);
  384. `),cM("pending",[c$3("&::before",`
  385. background-color: var(--n-option-color-pending);
  386. `)]),cM("selected",`
  387. color: var(--n-option-text-color-active);
  388. `,[c$3("&::before",`
  389. background-color: var(--n-option-color-active);
  390. `),cM("pending",[c$3("&::before",`
  391. background-color: var(--n-option-color-active-pending);
  392. `)])]),cM("disabled",`
  393. cursor: not-allowed;
  394. `,[cNotM("selected",`
  395. color: var(--n-option-text-color-disabled);
  396. `),cM("selected",`
  397. opacity: var(--n-option-opacity-disabled);
  398. `)]),cE("check",`
  399. font-size: 16px;
  400. position: absolute;
  401. right: calc(var(--n-option-padding-right) - 4px);
  402. top: calc(50% - 7px);
  403. color: var(--n-option-check-color);
  404. transition: color .3s var(--n-bezier);
  405. `,[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 g=useTheme("InternalSelectMenu","-internal-select-menu",style$l,internalSelectMenuLight$1,d,toRef$1(d,"clsPrefix")),b=ref(null),A=ref(null),w=ref(null),C=computed(()=>d.treeMate.getFlattenedNodes()),x=computed(()=>createIndexGetter(C.value)),S=ref(null);function E(){const{treeMate:ae}=d;let ye=null;const{value:Oe}=d;Oe===null?ye=ae.getFirstAvailableNode():(d.multiple?ye=ae.getNode((Oe||[])[(Oe||[]).length-1]):ye=ae.getNode(Oe),(!ye||ye.disabled)&&(ye=ae.getFirstAvailableNode())),fe(ye||null)}function B(){const{value:ae}=S;ae&&!d.treeMate.getNode(ae.key)&&(S.value=null)}let $;watch(()=>d.show,ae=>{ae?$=watch(()=>d.treeMate,()=>{d.resetMenuOnOptionsChange?(d.autoPending?E():B(),nextTick(Z)):B()},{immediate:!0}):$==null||$()},{immediate:!0}),onBeforeUnmount(()=>{$==null||$()});const P=computed(()=>depx(g.value.self[createKey("optionHeight",d.size)])),k=computed(()=>getMargin(g.value.self[createKey("padding",d.size)])),M=computed(()=>d.multiple&&Array.isArray(d.value)?new Set(d.value):new Set),R=computed(()=>{const ae=C.value;return ae&&ae.length===0});function F(ae){const{onToggle:ye}=d;ye&&ye(ae)}function L(ae){const{onScroll:ye}=d;ye&&ye(ae)}function z(ae){var ye;(ye=w.value)===null||ye===void 0||ye.sync(),L(ae)}function U(){var ae;(ae=w.value)===null||ae===void 0||ae.sync()}function W(){const{value:ae}=S;return ae||null}function V(ae,ye){ye.disabled||fe(ye,!1)}function Q(ae,ye){ye.disabled||F(ye)}function K(ae){var ye;happensIn(ae,"action")||(ye=d.onKeyup)===null||ye===void 0||ye.call(d,ae)}function G(ae){var ye;happensIn(ae,"action")||(ye=d.onKeydown)===null||ye===void 0||ye.call(d,ae)}function X(ae){var ye;(ye=d.onMousedown)===null||ye===void 0||ye.call(d,ae),!d.focusable&&ae.preventDefault()}function J(){const{value:ae}=S;ae&&fe(ae.getNext({loop:!0}),!0)}function re(){const{value:ae}=S;ae&&fe(ae.getPrev({loop:!0}),!0)}function fe(ae,ye=!1){S.value=ae,ye&&Z()}function Z(){var ae,ye;const Oe=S.value;if(!Oe)return;const Ye=x.value(Oe.key);Ye!==null&&(d.virtualScroll?(ae=A.value)===null||ae===void 0||ae.scrollTo({index:Ye}):(ye=w.value)===null||ye===void 0||ye.scrollTo({index:Ye,elSize:P.value}))}function ie(ae){var ye,Oe;!((ye=b.value)===null||ye===void 0)&&ye.contains(ae.target)&&((Oe=d.onFocus)===null||Oe===void 0||Oe.call(d,ae))}function ce(ae){var ye,Oe;!((ye=b.value)===null||ye===void 0)&&ye.contains(ae.relatedTarget)||(Oe=d.onBlur)===null||Oe===void 0||Oe.call(d,ae)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:V,handleOptionClick:Q,valueSetRef:M,pendingTmNodeRef:S,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,b),onMounted(()=>{const{value:ae}=w;ae&&ae.sync()});const me=computed(()=>{const{size:ae}=d,{common:{cubicBezierEaseInOut:ye},self:{height:Oe,borderRadius:Ye,color:et,groupHeaderTextColor:ht,actionDividerColor:Te,optionTextColorPressed:Le,optionTextColor:Re,optionTextColorDisabled:$e,optionTextColorActive:qe,optionOpacityDisabled:rt,optionCheckColor:Xe,actionTextColor:he,optionColorPending:we,optionColorActive:Be,loadingColor:Ne,loadingSize:Se,optionColorActivePending:q,[createKey("optionFontSize",ae)]:se,[createKey("optionHeight",ae)]:ge,[createKey("optionPadding",ae)]:de}}=g.value;return{"--n-height":Oe,"--n-action-divider-color":Te,"--n-action-text-color":he,"--n-bezier":ye,"--n-border-radius":Ye,"--n-color":et,"--n-option-font-size":se,"--n-group-header-text-color":ht,"--n-option-check-color":Xe,"--n-option-color-pending":we,"--n-option-color-active":Be,"--n-option-color-active-pending":q,"--n-option-height":ge,"--n-option-opacity-disabled":rt,"--n-option-text-color":Re,"--n-option-text-color-active":qe,"--n-option-text-color-disabled":$e,"--n-option-text-color-pressed":Le,"--n-option-padding":de,"--n-option-padding-left":getMargin(de,"left"),"--n-option-padding-right":getMargin(de,"right"),"--n-loading-color":Ne,"--n-loading-size":Se}}),{inlineThemeDisabled:ne}=d,te=ne?useThemeClass("internal-select-menu",computed(()=>d.size[0]),me,d):void 0,ue={selfRef:b,next:J,prev:re,getPendingTmNode:W};return useOnResize(b,d.onResize),Object.assign({mergedTheme:g,virtualListRef:A,scrollbarRef:w,itemSize:P,padding:k,flattenedNodes:C,empty:R,virtualListContainer(){const{value:ae}=A;return ae==null?void 0:ae.listElRef},virtualListContent(){const{value:ae}=A;return ae==null?void 0:ae.itemsElRef},doScroll:L,handleFocusin:ie,handleFocusout:ce,handleKeyUp:K,handleKeyDown:G,handleMouseDown:X,handleVirtualListResize:U,handleVirtualListScroll:z,cssVars:ne?void 0:me,themeClass:te==null?void 0:te.themeClass,onRender:te==null?void 0:te.onRender},ue)},render(){const{$slots:d,virtualScroll:g,clsPrefix:b,mergedTheme:A,themeClass:w,onRender:C}=this;return C==null||C(),h$1("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${b}-base-select-menu`,w,this.multiple&&`${b}-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:`${b}-base-select-menu__loading`},h$1(NBaseLoading,{clsPrefix:b,strokeWidth:20})):this.empty?h$1("div",{class:`${b}-base-select-menu__empty`,"data-empty":!0},resolveSlot(d.empty,()=>[h$1(NEmpty,{theme:A.peers.Empty,themeOverrides:A.peerOverrides.Empty})])):h$1(NScrollbar$1,{ref:"scrollbarRef",theme:A.peers.Scrollbar,themeOverrides:A.peerOverrides.Scrollbar,scrollable:this.scrollable,container:g?this.virtualListContainer:void 0,content:g?this.virtualListContent:void 0,onScroll:g?void 0:this.doScroll},{default:()=>g?h$1(VVirtualList,{ref:"virtualListRef",class:`${b}-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:x})=>x.isGroup?h$1(NSelectGroupHeader,{key:x.key,clsPrefix:b,tmNode:x}):x.ignored?null:h$1(NSelectOption,{clsPrefix:b,key:x.key,tmNode:x})}):h$1("div",{class:`${b}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(x=>x.isGroup?h$1(NSelectGroupHeader,{key:x.key,clsPrefix:b,tmNode:x}):h$1(NSelectOption,{clsPrefix:b,key:x.key,tmNode:x})))}),resolveWrappedSlot(d.action,x=>x&&[h$1("div",{class:`${b}-base-select-menu__action`,"data-action":!0,key:"action"},x),h$1(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$k=cB("base-wave",`
  406. position: absolute;
  407. left: 0;
  408. right: 0;
  409. top: 0;
  410. bottom: 0;
  411. border-radius: inherit;
  412. `),NBaseWave=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(d){useStyle("-base-wave",style$k,toRef$1(d,"clsPrefix"));const g=ref(null),b=ref(!1);let A=null;return onBeforeUnmount(()=>{A!==null&&window.clearTimeout(A)}),{active:b,selfRef:g,play(){A!==null&&(window.clearTimeout(A),b.value=!1,A=null),nextTick(()=>{var w;(w=g.value)===null||w===void 0||w.offsetHeight,b.value=!0,A=window.setTimeout(()=>{b.value=!1,A=null},1e3)})}}},render(){const{clsPrefix:d}=this;return h$1("div",{ref:"selfRef","aria-hidden":!0,class:[`${d}-base-wave`,this.active&&`${d}-base-wave--active`]})}}),commonVariables$k={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self$R=d=>{const{boxShadow2:g,popoverColor:b,textColor2:A,borderRadius:w,fontSize:C,dividerColor:x}=d;return Object.assign(Object.assign({},commonVariables$k),{fontSize:C,borderRadius:w,color:b,dividerColor:x,textColor:A,boxShadow:g})},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",`
  413. transition:
  414. box-shadow .3s var(--n-bezier),
  415. background-color .3s var(--n-bezier),
  416. color .3s var(--n-bezier);
  417. position: relative;
  418. font-size: var(--n-font-size);
  419. color: var(--n-text-color);
  420. box-shadow: var(--n-box-shadow);
  421. word-break: break-word;
  422. `,[c$3(">",[cB("scrollbar",`
  423. height: inherit;
  424. max-height: inherit;
  425. `)]),cNotM("raw",`
  426. background-color: var(--n-color);
  427. border-radius: var(--n-border-radius);
  428. `,[cNotM("scrollable",[cNotM("show-header-or-footer","padding: var(--n-padding);")])]),cE("header",`
  429. padding: var(--n-padding);
  430. border-bottom: 1px solid var(--n-divider-color);
  431. transition: border-color .3s var(--n-bezier);
  432. `),cE("footer",`
  433. padding: var(--n-padding);
  434. border-top: 1px solid var(--n-divider-color);
  435. transition: border-color .3s var(--n-bezier);
  436. `),cM("scrollable, show-header-or-footer",[cE("content",`
  437. padding: var(--n-padding);
  438. `)])]),cB("popover-shared",`
  439. transform-origin: inherit;
  440. `,[cB("popover-arrow-wrapper",`
  441. position: absolute;
  442. overflow: hidden;
  443. pointer-events: none;
  444. `,[cB("popover-arrow",`
  445. transition: background-color .3s var(--n-bezier);
  446. position: absolute;
  447. display: block;
  448. width: calc(${arrowSize});
  449. height: calc(${arrowSize});
  450. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  451. transform: rotate(45deg);
  452. background-color: var(--n-color);
  453. pointer-events: all;
  454. `)]),c$3("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  455. opacity: 0;
  456. transform: scale(.85);
  457. `),c$3("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  458. transform: scale(1);
  459. opacity: 1;
  460. `),c$3("&.popover-transition-enter-active",`
  461. transition:
  462. box-shadow .3s var(--n-bezier),
  463. background-color .3s var(--n-bezier),
  464. color .3s var(--n-bezier),
  465. opacity .15s var(--n-bezier-ease-out),
  466. transform .15s var(--n-bezier-ease-out);
  467. `),c$3("&.popover-transition-leave-active",`
  468. transition:
  469. box-shadow .3s var(--n-bezier),
  470. background-color .3s var(--n-bezier),
  471. color .3s var(--n-bezier),
  472. opacity .15s var(--n-bezier-ease-in),
  473. transform .15s var(--n-bezier-ease-in);
  474. `)]),placementStyle("top-start",`
  475. top: calc(${arrowSize} / -2);
  476. left: calc(${getArrowOffset("top-start")} - var(--v-offset-left));
  477. `),placementStyle("top",`
  478. top: calc(${arrowSize} / -2);
  479. transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
  480. left: 50%;
  481. `),placementStyle("top-end",`
  482. top: calc(${arrowSize} / -2);
  483. right: calc(${getArrowOffset("top-end")} + var(--v-offset-left));
  484. `),placementStyle("bottom-start",`
  485. bottom: calc(${arrowSize} / -2);
  486. left: calc(${getArrowOffset("bottom-start")} - var(--v-offset-left));
  487. `),placementStyle("bottom",`
  488. bottom: calc(${arrowSize} / -2);
  489. transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
  490. left: 50%;
  491. `),placementStyle("bottom-end",`
  492. bottom: calc(${arrowSize} / -2);
  493. right: calc(${getArrowOffset("bottom-end")} + var(--v-offset-left));
  494. `),placementStyle("left-start",`
  495. left: calc(${arrowSize} / -2);
  496. top: calc(${getArrowOffset("left-start")} - var(--v-offset-top));
  497. `),placementStyle("left",`
  498. left: calc(${arrowSize} / -2);
  499. transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
  500. top: 50%;
  501. `),placementStyle("left-end",`
  502. left: calc(${arrowSize} / -2);
  503. bottom: calc(${getArrowOffset("left-end")} + var(--v-offset-top));
  504. `),placementStyle("right-start",`
  505. right: calc(${arrowSize} / -2);
  506. top: calc(${getArrowOffset("right-start")} - var(--v-offset-top));
  507. `),placementStyle("right",`
  508. right: calc(${arrowSize} / -2);
  509. transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
  510. top: 50%;
  511. `),placementStyle("right-end",`
  512. right: calc(${arrowSize} / -2);
  513. bottom: calc(${getArrowOffset("right-end")} + var(--v-offset-top));
  514. `),...map({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(d,g)=>{const b=["right","left"].includes(g),A=b?"width":"height";return d.map(w=>{const C=w.split("-")[1]==="end",S=`calc((${`var(--v-target-${A}, 0px)`} - ${arrowSize}) / 2)`,E=getArrowOffset(w);return c$3(`[v-placement="${w}"] >`,[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow",`${g}: calc(max(${S}, ${E}) ${C?"+":"-"} var(--v-offset-${b?"left":"top"}));`)])])])})})]);function getArrowOffset(d){return["top","bottom"].includes(d.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function placementStyle(d,g){const b=d.split("-")[0],A=["top","bottom"].includes(b)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$3(`[v-placement="${d}"] >`,[cB("popover-shared",`
  515. margin-${oppositePlacement[b]}: var(--n-space);
  516. `,[cM("show-arrow",`
  517. margin-${oppositePlacement[b]}: var(--n-space-arrow);
  518. `),cM("overlap",`
  519. margin: 0;
  520. `),cCB("popover-arrow-wrapper",`
  521. right: 0;
  522. left: 0;
  523. top: 0;
  524. bottom: 0;
  525. ${b}: 100%;
  526. ${oppositePlacement[b]}: auto;
  527. ${A}
  528. `,[cB("popover-arrow",g)])])])}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:g})=>h$1("div",{key:"__popover-arrow__",class:`${g}-popover-arrow-wrapper`},h$1("div",{class:`${g}-popover-arrow`,style:d})),NPopoverBody=defineComponent({name:"PopoverBody",inheritAttrs:!1,props:popoverBodyProps,setup(d,{slots:g,attrs:b}){const{namespaceRef:A,mergedClsPrefixRef:w,inlineThemeDisabled:C}=useConfig(d),x=useTheme("Popover","-popover",style$j,popoverLight$1,d,w),S=ref(null),E=inject("NPopover"),B=ref(null),$=ref(d.show),P=ref(!1);watchEffect(()=>{const{show:G}=d;G&&!isJsdom()&&!d.internalDeactivateImmediately&&(P.value=!0)});const k=computed(()=>{const{trigger:G,onClickoutside:X}=d,J=[],{positionManuallyRef:{value:re}}=E;return re||(G==="click"&&!X&&J.push([clickoutside$1,V,void 0,{capture:!0}]),G==="hover"&&J.push([mousemoveoutside$1,W])),X&&J.push([clickoutside$1,V,void 0,{capture:!0}]),(d.displayDirective==="show"||d.animated&&P.value)&&J.push([vShow,d.show]),J}),M=computed(()=>{const G=d.width==="trigger"?void 0:formatLength(d.width),X=[];G&&X.push({width:G});const{maxWidth:J,minWidth:re}=d;return J&&X.push({maxWidth:formatLength(J)}),re&&X.push({maxWidth:formatLength(re)}),C||X.push(R.value),X}),R=computed(()=>{const{common:{cubicBezierEaseInOut:G,cubicBezierEaseIn:X,cubicBezierEaseOut:J},self:{space:re,spaceArrow:fe,padding:Z,fontSize:ie,textColor:ce,dividerColor:me,color:ne,boxShadow:te,borderRadius:ue,arrowHeight:ae,arrowOffset:ye,arrowOffsetVertical:Oe}}=x.value;return{"--n-box-shadow":te,"--n-bezier":G,"--n-bezier-ease-in":X,"--n-bezier-ease-out":J,"--n-font-size":ie,"--n-text-color":ce,"--n-color":ne,"--n-divider-color":me,"--n-border-radius":ue,"--n-arrow-height":ae,"--n-arrow-offset":ye,"--n-arrow-offset-vertical":Oe,"--n-padding":Z,"--n-space":re,"--n-space-arrow":fe}}),F=C?useThemeClass("popover",void 0,R,d):void 0;E.setBodyInstance({syncPosition:L}),onBeforeUnmount(()=>{E.setBodyInstance(null)}),watch(toRef$1(d,"show"),G=>{d.animated||(G?$.value=!0:$.value=!1)});function L(){var G;(G=S.value)===null||G===void 0||G.syncPosition()}function z(G){d.trigger==="hover"&&d.keepAliveOnHover&&d.show&&E.handleMouseEnter(G)}function U(G){d.trigger==="hover"&&d.keepAliveOnHover&&E.handleMouseLeave(G)}function W(G){d.trigger==="hover"&&!Q().contains(getPreciseEventTarget(G))&&E.handleMouseMoveOutside(G)}function V(G){(d.trigger==="click"&&!Q().contains(getPreciseEventTarget(G))||d.onClickoutside)&&E.handleClickOutside(G)}function Q(){return E.getTriggerElement()}provide(popoverBodyInjectionKey,B),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function K(){if(F==null||F.onRender(),!(d.displayDirective==="show"||d.show||d.animated&&P.value))return null;let X;const J=E.internalRenderBodyRef.value,{value:re}=w;if(J)X=J([`${re}-popover-shared`,F==null?void 0:F.themeClass.value,d.overlap&&`${re}-popover-shared--overlap`,d.showArrow&&`${re}-popover-shared--show-arrow`,d.arrowPointToCenter&&`${re}-popover-shared--center-arrow`],B,M.value,z,U);else{const{value:fe}=E.extraClassRef,{internalTrapFocus:Z}=d,ie=!isSlotEmpty(g.header)||!isSlotEmpty(g.footer),ce=()=>{var me;const ne=ie?h$1(Fragment,null,resolveWrappedSlot(g.header,ae=>ae?h$1("div",{class:`${re}-popover__header`,style:d.headerStyle},ae):null),resolveWrappedSlot(g.default,ae=>ae?h$1("div",{class:`${re}-popover__content`,style:d.contentStyle},g):null),resolveWrappedSlot(g.footer,ae=>ae?h$1("div",{class:`${re}-popover__footer`,style:d.footerStyle},ae):null)):d.scrollable?(me=g.default)===null||me===void 0?void 0:me.call(g):h$1("div",{class:`${re}-popover__content`,style:d.contentStyle},g),te=d.scrollable?h$1(XScrollbar,{contentClass:ie?void 0:`${re}-popover__content`,contentStyle:ie?void 0:d.contentStyle},{default:()=>ne}):ne,ue=d.showArrow?renderArrow({arrowStyle:d.arrowStyle,clsPrefix:re}):null;return[te,ue]};X=h$1("div",mergeProps({class:[`${re}-popover`,`${re}-popover-shared`,F==null?void 0:F.themeClass.value,fe.map(me=>`${re}-${me}`),{[`${re}-popover--scrollable`]:d.scrollable,[`${re}-popover--show-header-or-footer`]:ie,[`${re}-popover--raw`]:d.raw,[`${re}-popover-shared--overlap`]:d.overlap,[`${re}-popover-shared--show-arrow`]:d.showArrow,[`${re}-popover-shared--center-arrow`]:d.arrowPointToCenter}],ref:B,style:M.value,onKeydown:E.handleKeydown,onMouseenter:z,onMouseleave:U},b),Z?h$1(FocusTrap,{active:d.show,autoFocus:!0},{default:ce}):ce())}return withDirectives(X,k.value)}return{displayed:P,namespace:A,isMounted:E.isMountedRef,zIndex:E.zIndexRef,followerRef:S,adjustedTo:useAdjustedTo(d),followerEnabled:$,renderContentNode:K}},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,g,b){triggerEventMap[g].forEach(A=>{d.props?d.props=Object.assign({},d.props):d.props={};const w=d.props[A],C=b[A];w?d.props[A]=(...x)=>{w(...x),C(...x)}:d.props[A]=C})}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 g=isMounted(),b=ref(null),A=computed(()=>d.show),w=ref(d.defaultShow),C=useMergedState(A,w),x=useMemo(()=>d.disabled?!1:C.value),S=()=>{if(d.disabled)return!0;const{getDisabled:ce}=d;return!!(ce!=null&&ce())},E=()=>S()?!1:C.value,B=useCompitable(d,["arrow","showArrow"]),$=computed(()=>d.overlap?!1:B.value);let P=null;const k=ref(null),M=ref(null),R=useMemo(()=>d.x!==void 0&&d.y!==void 0);function F(ce){const{"onUpdate:show":me,onUpdateShow:ne,onShow:te,onHide:ue}=d;w.value=ce,me&&call$1(me,ce),ne&&call$1(ne,ce),ce&&te&&call$1(te,!0),ce&&ue&&call$1(ue,!1)}function L(){P&&P.syncPosition()}function z(){const{value:ce}=k;ce&&(window.clearTimeout(ce),k.value=null)}function U(){const{value:ce}=M;ce&&(window.clearTimeout(ce),M.value=null)}function W(){const ce=S();if(d.trigger==="focus"&&!ce){if(E())return;F(!0)}}function V(){const ce=S();if(d.trigger==="focus"&&!ce){if(!E())return;F(!1)}}function Q(){const ce=S();if(d.trigger==="hover"&&!ce){if(U(),k.value!==null||E())return;const me=()=>{F(!0),k.value=null},{delay:ne}=d;ne===0?me():k.value=window.setTimeout(me,ne)}}function K(){const ce=S();if(d.trigger==="hover"&&!ce){if(z(),M.value!==null||!E())return;const me=()=>{F(!1),M.value=null},{duration:ne}=d;ne===0?me():M.value=window.setTimeout(me,ne)}}function G(){K()}function X(ce){var me;E()&&(d.trigger==="click"&&(z(),U(),F(!1)),(me=d.onClickoutside)===null||me===void 0||me.call(d,ce))}function J(){if(d.trigger==="click"&&!S()){z(),U();const ce=!E();F(ce)}}function re(ce){d.internalTrapFocus&&ce.key==="Escape"&&(z(),U(),F(!1))}function fe(ce){w.value=ce}function Z(){var ce;return(ce=b.value)===null||ce===void 0?void 0:ce.targetRef}function ie(ce){P=ce}return provide("NPopover",{getTriggerElement:Z,handleKeydown:re,handleMouseEnter:Q,handleMouseLeave:K,handleClickOutside:X,handleMouseMoveOutside:G,setBodyInstance:ie,positionManuallyRef:R,isMountedRef:g,zIndexRef:toRef$1(d,"zIndex"),extraClassRef:toRef$1(d,"internalExtraClass"),internalRenderBodyRef:toRef$1(d,"internalRenderBody")}),watchEffect(()=>{C.value&&S()&&F(!1)}),{binderInstRef:b,positionManually:R,mergedShowConsideringDisabledProp:x,uncontrolledShow:w,mergedShowArrow:$,getMergedShow:E,setShow:fe,handleClick:J,handleMouseEnter:Q,handleMouseLeave:K,handleFocus:W,handleBlur:V,syncPosition:L}},render(){var d;const{positionManually:g,$slots:b}=this;let A,w=!1;if(!g&&(b.activator?A=getFirstSlotVNode(b,"activator"):A=getFirstSlotVNode(b,"trigger"),A)){A=cloneVNode(A),A=A.type===Text?h$1("span",[A]):A;const C={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((d=A.type)===null||d===void 0)&&d.__popover__)w=!0,A.props||(A.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),A.props.internalSyncTargetWithParent=!0,A.props.internalInheritedEventHandlers?A.props.internalInheritedEventHandlers=[C,...A.props.internalInheritedEventHandlers]:A.props.internalInheritedEventHandlers=[C];else{const{internalInheritedEventHandlers:x}=this,S=[C,...x],E={onBlur:B=>{S.forEach($=>{$.onBlur(B)})},onFocus:B=>{S.forEach($=>{$.onFocus(B)})},onClick:B=>{S.forEach($=>{$.onClick(B)})},onMouseenter:B=>{S.forEach($=>{$.onMouseenter(B)})},onMouseleave:B=>{S.forEach($=>{$.onMouseleave(B)})}};appendEvents(A,x?"nested":g?"manual":this.trigger,E)}}return h$1(VBinder,{ref:"binderInstRef",syncTarget:!w,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const C=this.getMergedShow();return[this.internalTrapFocus&&C?withDirectives(h$1("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:C,zIndex:this.zIndex}]]):null,g?null:h$1(VTarget,null,{default:()=>A}),h$1(NPopoverBody,keep(this.$props,bodyPropKeys,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:C})),{default:()=>{var x,S;return(S=(x=this.$slots).default)===null||S===void 0?void 0:S.call(x)},header:()=>{var x,S;return(S=(x=this.$slots).header)===null||S===void 0?void 0:S.call(x)},footer:()=>{var x,S;return(S=(x=this.$slots).footer)===null||S===void 0?void 0:S.call(x)}})]}})}}),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:g,primaryColorHover:b,primaryColorPressed:A,primaryColor:w,infoColor:C,successColor:x,warningColor:S,errorColor:E,baseColor:B,borderColor:$,tagColor:P,opacityDisabled:k,closeIconColor:M,closeIconColorHover:R,closeIconColorPressed:F,closeColorHover:L,closeColorPressed:z,borderRadiusSmall:U,fontSizeMini:W,fontSizeTiny:V,fontSizeSmall:Q,fontSizeMedium:K,heightMini:G,heightTiny:X,heightSmall:J,heightMedium:re,buttonColor2Hover:fe,buttonColor2Pressed:Z,fontWeightStrong:ie}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:U,heightTiny:G,heightSmall:X,heightMedium:J,heightLarge:re,borderRadius:U,opacityDisabled:k,fontSizeTiny:W,fontSizeSmall:V,fontSizeMedium:Q,fontSizeLarge:K,fontWeightStrong:ie,textColorCheckable:g,textColorHoverCheckable:g,textColorPressedCheckable:g,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:fe,colorPressedCheckable:Z,colorChecked:w,colorCheckedHover:b,colorCheckedPressed:A,border:`1px solid ${$}`,textColor:g,color:P,colorBordered:"#0000",closeIconColor:M,closeIconColorHover:R,closeIconColorPressed:F,closeColorHover:L,closeColorPressed:z,borderPrimary:`1px solid ${changeColor(w,{alpha:.3})}`,textColorPrimary:w,colorPrimary:changeColor(w,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:scaleColor(w,{lightness:.7}),closeIconColorHoverPrimary:scaleColor(w,{lightness:.7}),closeIconColorPressedPrimary:scaleColor(w,{lightness:.7}),closeColorHoverPrimary:changeColor(w,{alpha:.16}),closeColorPressedPrimary:changeColor(w,{alpha:.12}),borderInfo:`1px solid ${changeColor(C,{alpha:.3})}`,textColorInfo:C,colorInfo:changeColor(C,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:scaleColor(C,{alpha:.7}),closeIconColorHoverInfo:scaleColor(C,{alpha:.7}),closeIconColorPressedInfo:scaleColor(C,{alpha:.7}),closeColorHoverInfo:changeColor(C,{alpha:.16}),closeColorPressedInfo:changeColor(C,{alpha:.12}),borderSuccess:`1px solid ${changeColor(x,{alpha:.3})}`,textColorSuccess:x,colorSuccess:changeColor(x,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:scaleColor(x,{alpha:.7}),closeIconColorHoverSuccess:scaleColor(x,{alpha:.7}),closeIconColorPressedSuccess:scaleColor(x,{alpha:.7}),closeColorHoverSuccess:changeColor(x,{alpha:.16}),closeColorPressedSuccess:changeColor(x,{alpha:.12}),borderWarning:`1px solid ${changeColor(S,{alpha:.3})}`,textColorWarning:S,colorWarning:changeColor(S,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:scaleColor(S,{alpha:.7}),closeIconColorHoverWarning:scaleColor(S,{alpha:.7}),closeIconColorPressedWarning:scaleColor(S,{alpha:.7}),closeColorHoverWarning:changeColor(S,{alpha:.16}),closeColorPressedWarning:changeColor(S,{alpha:.11}),borderError:`1px solid ${changeColor(E,{alpha:.3})}`,textColorError:E,colorError:changeColor(E,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:scaleColor(E,{alpha:.7}),closeIconColorHoverError:scaleColor(E,{alpha:.7}),closeIconColorPressedError:scaleColor(E,{alpha:.7}),closeColorHoverError:changeColor(E,{alpha:.16}),closeColorPressedError:changeColor(E,{alpha:.12})})}},tagDark$1=tagDark,self$Q=d=>{const{textColor2:g,primaryColorHover:b,primaryColorPressed:A,primaryColor:w,infoColor:C,successColor:x,warningColor:S,errorColor:E,baseColor:B,borderColor:$,opacityDisabled:P,tagColor:k,closeIconColor:M,closeIconColorHover:R,closeIconColorPressed:F,borderRadiusSmall:L,fontSizeMini:z,fontSizeTiny:U,fontSizeSmall:W,fontSizeMedium:V,heightMini:Q,heightTiny:K,heightSmall:G,heightMedium:X,closeColorHover:J,closeColorPressed:re,buttonColor2Hover:fe,buttonColor2Pressed:Z,fontWeightStrong:ie}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:L,heightTiny:Q,heightSmall:K,heightMedium:G,heightLarge:X,borderRadius:L,opacityDisabled:P,fontSizeTiny:z,fontSizeSmall:U,fontSizeMedium:W,fontSizeLarge:V,fontWeightStrong:ie,textColorCheckable:g,textColorHoverCheckable:g,textColorPressedCheckable:g,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:fe,colorPressedCheckable:Z,colorChecked:w,colorCheckedHover:b,colorCheckedPressed:A,border:`1px solid ${$}`,textColor:g,color:k,colorBordered:"rgb(250, 250, 252)",closeIconColor:M,closeIconColorHover:R,closeIconColorPressed:F,closeColorHover:J,closeColorPressed:re,borderPrimary:`1px solid ${changeColor(w,{alpha:.3})}`,textColorPrimary:w,colorPrimary:changeColor(w,{alpha:.12}),colorBorderedPrimary:changeColor(w,{alpha:.1}),closeIconColorPrimary:w,closeIconColorHoverPrimary:w,closeIconColorPressedPrimary:w,closeColorHoverPrimary:changeColor(w,{alpha:.12}),closeColorPressedPrimary:changeColor(w,{alpha:.18}),borderInfo:`1px solid ${changeColor(C,{alpha:.3})}`,textColorInfo:C,colorInfo:changeColor(C,{alpha:.12}),colorBorderedInfo:changeColor(C,{alpha:.1}),closeIconColorInfo:C,closeIconColorHoverInfo:C,closeIconColorPressedInfo:C,closeColorHoverInfo:changeColor(C,{alpha:.12}),closeColorPressedInfo:changeColor(C,{alpha:.18}),borderSuccess:`1px solid ${changeColor(x,{alpha:.3})}`,textColorSuccess:x,colorSuccess:changeColor(x,{alpha:.12}),colorBorderedSuccess:changeColor(x,{alpha:.1}),closeIconColorSuccess:x,closeIconColorHoverSuccess:x,closeIconColorPressedSuccess:x,closeColorHoverSuccess:changeColor(x,{alpha:.12}),closeColorPressedSuccess:changeColor(x,{alpha:.18}),borderWarning:`1px solid ${changeColor(S,{alpha:.35})}`,textColorWarning:S,colorWarning:changeColor(S,{alpha:.15}),colorBorderedWarning:changeColor(S,{alpha:.12}),closeIconColorWarning:S,closeIconColorHoverWarning:S,closeIconColorPressedWarning:S,closeColorHoverWarning:changeColor(S,{alpha:.12}),closeColorPressedWarning:changeColor(S,{alpha:.18}),borderError:`1px solid ${changeColor(E,{alpha:.23})}`,textColorError:E,colorError:changeColor(E,{alpha:.1}),colorBorderedError:changeColor(E,{alpha:.08}),closeIconColorError:E,closeIconColorHoverError:E,closeIconColorPressedError:E,closeColorHoverError:changeColor(E,{alpha:.12}),closeColorPressedError:changeColor(E,{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",`
  529. white-space: nowrap;
  530. position: relative;
  531. box-sizing: border-box;
  532. cursor: default;
  533. display: inline-flex;
  534. align-items: center;
  535. flex-wrap: nowrap;
  536. padding: var(--n-padding);
  537. border-radius: var(--n-border-radius);
  538. color: var(--n-text-color);
  539. background-color: var(--n-color);
  540. transition:
  541. border-color .3s var(--n-bezier),
  542. background-color .3s var(--n-bezier),
  543. color .3s var(--n-bezier),
  544. box-shadow .3s var(--n-bezier),
  545. opacity .3s var(--n-bezier);
  546. line-height: 1;
  547. height: var(--n-height);
  548. font-size: var(--n-font-size);
  549. `,[cM("strong",`
  550. font-weight: var(--n-font-weight-strong);
  551. `),cE("border",`
  552. pointer-events: none;
  553. position: absolute;
  554. left: 0;
  555. right: 0;
  556. top: 0;
  557. bottom: 0;
  558. border-radius: inherit;
  559. border: var(--n-border);
  560. transition: border-color .3s var(--n-bezier);
  561. `),cE("icon",`
  562. display: flex;
  563. margin: 0 4px 0 0;
  564. color: var(--n-text-color);
  565. transition: color .3s var(--n-bezier);
  566. font-size: var(--n-avatar-size-override);
  567. `),cE("avatar",`
  568. display: flex;
  569. margin: 0 6px 0 0;
  570. `),cE("close",`
  571. margin: var(--n-close-margin);
  572. transition:
  573. background-color .3s var(--n-bezier),
  574. color .3s var(--n-bezier);
  575. `),cM("round",`
  576. padding: 0 calc(var(--n-height) / 3);
  577. border-radius: calc(var(--n-height) / 2);
  578. `,[cE("icon",`
  579. margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
  580. `),cE("avatar",`
  581. margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
  582. `),cM("closable",`
  583. padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
  584. `)]),cM("icon, avatar",[cM("round",`
  585. padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
  586. `)]),cM("disabled",`
  587. cursor: not-allowed !important;
  588. opacity: var(--n-opacity-disabled);
  589. `),cM("checkable",`
  590. cursor: pointer;
  591. box-shadow: none;
  592. color: var(--n-text-color-checkable);
  593. background-color: var(--n-color-checkable);
  594. `,[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",`
  595. color: var(--n-text-color-checked);
  596. background-color: var(--n-color-checked);
  597. `,[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 g=ref(null),{mergedBorderedRef:b,mergedClsPrefixRef:A,inlineThemeDisabled:w,mergedRtlRef:C}=useConfig(d),x=useTheme("Tag","-tag",style$i,tagLight$1,d,A);provide(tagInjectionKey,{roundRef:toRef$1(d,"round")});function S(M){if(!d.disabled&&d.checkable){const{checked:R,onCheckedChange:F,onUpdateChecked:L,"onUpdate:checked":z}=d;L&&L(!R),z&&z(!R),F&&F(!R)}}function E(M){if(d.triggerClickOnClose||M.stopPropagation(),!d.disabled){const{onClose:R}=d;R&&call$1(R,M)}}const B={setTextContent(M){const{value:R}=g;R&&(R.textContent=M)}},$=useRtl("Tag",C,A),P=computed(()=>{const{type:M,size:R,color:{color:F,textColor:L}={}}=d,{common:{cubicBezierEaseInOut:z},self:{padding:U,closeMargin:W,closeMarginRtl:V,borderRadius:Q,opacityDisabled:K,textColorCheckable:G,textColorHoverCheckable:X,textColorPressedCheckable:J,textColorChecked:re,colorCheckable:fe,colorHoverCheckable:Z,colorPressedCheckable:ie,colorChecked:ce,colorCheckedHover:me,colorCheckedPressed:ne,closeBorderRadius:te,fontWeightStrong:ue,[createKey("colorBordered",M)]:ae,[createKey("closeSize",R)]:ye,[createKey("closeIconSize",R)]:Oe,[createKey("fontSize",R)]:Ye,[createKey("height",R)]:et,[createKey("color",M)]:ht,[createKey("textColor",M)]:Te,[createKey("border",M)]:Le,[createKey("closeIconColor",M)]:Re,[createKey("closeIconColorHover",M)]:$e,[createKey("closeIconColorPressed",M)]:qe,[createKey("closeColorHover",M)]:rt,[createKey("closeColorPressed",M)]:Xe}}=x.value;return{"--n-font-weight-strong":ue,"--n-avatar-size-override":`calc(${et} - 8px)`,"--n-bezier":z,"--n-border-radius":Q,"--n-border":Le,"--n-close-icon-size":Oe,"--n-close-color-pressed":Xe,"--n-close-color-hover":rt,"--n-close-border-radius":te,"--n-close-icon-color":Re,"--n-close-icon-color-hover":$e,"--n-close-icon-color-pressed":qe,"--n-close-icon-color-disabled":Re,"--n-close-margin":W,"--n-close-margin-rtl":V,"--n-close-size":ye,"--n-color":F||(b.value?ae:ht),"--n-color-checkable":fe,"--n-color-checked":ce,"--n-color-checked-hover":me,"--n-color-checked-pressed":ne,"--n-color-hover-checkable":Z,"--n-color-pressed-checkable":ie,"--n-font-size":Ye,"--n-height":et,"--n-opacity-disabled":K,"--n-padding":U,"--n-text-color":L||Te,"--n-text-color-checkable":G,"--n-text-color-checked":re,"--n-text-color-hover-checkable":X,"--n-text-color-pressed-checkable":J}}),k=w?useThemeClass("tag",computed(()=>{let M="";const{type:R,size:F,color:{color:L,textColor:z}={}}=d;return M+=R[0],M+=F[0],L&&(M+=`a${color2Class(L)}`),z&&(M+=`b${color2Class(z)}`),b.value&&(M+="c"),M}),P,d):void 0;return Object.assign(Object.assign({},B),{rtlEnabled:$,mergedClsPrefix:A,contentRef:g,mergedBordered:b,handleClick:S,handleCloseClick:E,cssVars:w?void 0:P,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender})},render(){var d,g;const{mergedClsPrefix:b,rtlEnabled:A,closable:w,color:{borderColor:C}={},round:x,onRender:S,$slots:E}=this;S==null||S();const B=resolveWrappedSlot(E.avatar,P=>P&&h$1("div",{class:`${b}-tag__avatar`},P)),$=resolveWrappedSlot(E.icon,P=>P&&h$1("div",{class:`${b}-tag__icon`},P));return h$1("div",{class:[`${b}-tag`,this.themeClass,{[`${b}-tag--rtl`]:A,[`${b}-tag--strong`]:this.strong,[`${b}-tag--disabled`]:this.disabled,[`${b}-tag--checkable`]:this.checkable,[`${b}-tag--checked`]:this.checkable&&this.checked,[`${b}-tag--round`]:x,[`${b}-tag--avatar`]:B,[`${b}-tag--icon`]:$,[`${b}-tag--closable`]:w}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},$||B,h$1("span",{class:`${b}-tag__content`,ref:"contentRef"},(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d)),!this.checkable&&w?h$1(NBaseClose,{clsPrefix:b,class:`${b}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:x,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h$1("div",{class:`${b}-tag__border`,style:{borderColor:C}}):null)}}),style$h=cB("base-clear",`
  598. flex-shrink: 0;
  599. height: 1em;
  600. width: 1em;
  601. position: relative;
  602. `,[c$3(">",[cE("clear",`
  603. font-size: var(--n-clear-size);
  604. height: 1em;
  605. width: 1em;
  606. cursor: pointer;
  607. color: var(--n-clear-color);
  608. transition: color .3s var(--n-bezier);
  609. display: flex;
  610. `,[c$3("&:hover",`
  611. color: var(--n-clear-color-hover)!important;
  612. `),c$3("&:active",`
  613. color: var(--n-clear-color-pressed)!important;
  614. `)]),cE("placeholder",`
  615. display: flex;
  616. `),cE("clear, placeholder",`
  617. position: absolute;
  618. left: 50%;
  619. top: 50%;
  620. transform: translateX(-50%) translateY(-50%);
  621. `,[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(g){g.preventDefault()}}},render(){const{clsPrefix:d}=this;return h$1("div",{class:`${d}-base-clear`},h$1(NIconSwitchTransition,null,{default:()=>{var g,b;return this.show?h$1("div",{key:"dismiss",class:`${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:`${d}-base-clear__placeholder`},(b=(g=this.$slots).placeholder)===null||b===void 0?void 0:b.call(g))}}))}}),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:g}){return()=>{const{clsPrefix:b}=d;return h$1(NBaseLoading,{clsPrefix:b,class:`${b}-base-suffix`,strokeWidth:24,scale:.85,show:d.loading},{default:()=>d.showArrow?h$1(NBaseClear,{clsPrefix:b,show:d.showClear,onClear:d.onClear},{placeholder:()=>h$1(NBaseIcon,{clsPrefix:b,class:`${b}-base-suffix__arrow`},{default:()=>resolveSlot(g.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:g,textColor2:b,textColorDisabled:A,inputColor:w,inputColorDisabled:C,primaryColor:x,primaryColorHover:S,warningColor:E,warningColorHover:B,errorColor:$,errorColorHover:P,borderColor:k,iconColor:M,iconColorDisabled:R,clearColor:F,clearColorHover:L,clearColorPressed:z,placeholderColor:U,placeholderColorDisabled:W,fontSizeTiny:V,fontSizeSmall:Q,fontSizeMedium:K,fontSizeLarge:G,heightTiny:X,heightSmall:J,heightMedium:re,heightLarge:fe}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:V,fontSizeSmall:Q,fontSizeMedium:K,fontSizeLarge:G,heightTiny:X,heightSmall:J,heightMedium:re,heightLarge:fe,borderRadius:g,textColor:b,textColorDisabled:A,placeholderColor:U,placeholderColorDisabled:W,color:w,colorDisabled:C,colorActive:w,border:`1px solid ${k}`,borderHover:`1px solid ${S}`,borderActive:`1px solid ${x}`,borderFocus:`1px solid ${S}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${changeColor(x,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${changeColor(x,{alpha:.2})}`,caretColor:x,arrowColor:M,arrowColorDisabled:R,loadingColor:x,borderWarning:`1px solid ${E}`,borderHoverWarning:`1px solid ${B}`,borderActiveWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${B}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${changeColor(E,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(E,{alpha:.2})}`,colorActiveWarning:w,caretColorWarning:E,borderError:`1px solid ${$}`,borderHoverError:`1px solid ${P}`,borderActiveError:`1px solid ${$}`,borderFocusError:`1px solid ${P}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${changeColor($,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${changeColor($,{alpha:.2})}`,colorActiveError:w,caretColorError:$,clearColor:F,clearColorHover:L,clearColorPressed:z})},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:g,textColor2:b,textColorDisabled:A,inputColor:w,inputColorDisabled:C,primaryColor:x,primaryColorHover:S,warningColor:E,warningColorHover:B,errorColor:$,errorColorHover:P,iconColor:k,iconColorDisabled:M,clearColor:R,clearColorHover:F,clearColorPressed:L,placeholderColor:z,placeholderColorDisabled:U,fontSizeTiny:W,fontSizeSmall:V,fontSizeMedium:Q,fontSizeLarge:K,heightTiny:G,heightSmall:X,heightMedium:J,heightLarge:re}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:W,fontSizeSmall:V,fontSizeMedium:Q,fontSizeLarge:K,heightTiny:G,heightSmall:X,heightMedium:J,heightLarge:re,borderRadius:g,textColor:b,textColorDisabled:A,placeholderColor:z,placeholderColorDisabled:U,color:w,colorDisabled:C,colorActive:changeColor(x,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${S}`,borderActive:`1px solid ${x}`,borderFocus:`1px solid ${S}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${changeColor(x,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${changeColor(x,{alpha:.4})}`,caretColor:x,arrowColor:k,arrowColorDisabled:M,loadingColor:x,borderWarning:`1px solid ${E}`,borderHoverWarning:`1px solid ${B}`,borderActiveWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${B}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${changeColor(E,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(E,{alpha:.4})}`,colorActiveWarning:changeColor(E,{alpha:.1}),caretColorWarning:E,borderError:`1px solid ${$}`,borderHoverError:`1px solid ${P}`,borderActiveError:`1px solid ${$}`,borderFocusError:`1px solid ${P}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${changeColor($,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${changeColor($,{alpha:.4})}`,colorActiveError:changeColor($,{alpha:.1}),caretColorError:$,clearColor:R,clearColorHover:F,clearColorPressed:L})}},internalSelectionDark$1=internalSelectionDark,style$g=c$3([cB("base-selection",`
  622. position: relative;
  623. z-index: auto;
  624. box-shadow: none;
  625. width: 100%;
  626. max-width: 100%;
  627. display: inline-block;
  628. vertical-align: bottom;
  629. border-radius: var(--n-border-radius);
  630. min-height: var(--n-height);
  631. line-height: 1.5;
  632. font-size: var(--n-font-size);
  633. `,[cB("base-loading",`
  634. color: var(--n-loading-color);
  635. `),cB("base-selection-tags","min-height: var(--n-height);"),cE("border, state-border",`
  636. position: absolute;
  637. left: 0;
  638. right: 0;
  639. top: 0;
  640. bottom: 0;
  641. pointer-events: none;
  642. border: var(--n-border);
  643. border-radius: inherit;
  644. transition:
  645. box-shadow .3s var(--n-bezier),
  646. border-color .3s var(--n-bezier);
  647. `),cE("state-border",`
  648. z-index: 1;
  649. border-color: #0000;
  650. `),cB("base-suffix",`
  651. cursor: pointer;
  652. position: absolute;
  653. top: 50%;
  654. transform: translateY(-50%);
  655. right: 10px;
  656. `,[cE("arrow",`
  657. font-size: var(--n-arrow-size);
  658. color: var(--n-arrow-color);
  659. transition: color .3s var(--n-bezier);
  660. `)]),cB("base-selection-overlay",`
  661. display: flex;
  662. align-items: center;
  663. white-space: nowrap;
  664. pointer-events: none;
  665. position: absolute;
  666. top: 0;
  667. right: 0;
  668. bottom: 0;
  669. left: 0;
  670. padding: var(--n-padding-single);
  671. transition: color .3s var(--n-bezier);
  672. `,[cE("wrapper",`
  673. flex-basis: 0;
  674. flex-grow: 1;
  675. overflow: hidden;
  676. text-overflow: ellipsis;
  677. `)]),cB("base-selection-placeholder",`
  678. color: var(--n-placeholder-color);
  679. `,[cE("inner",`
  680. max-width: 100%;
  681. overflow: hidden;
  682. `)]),cB("base-selection-tags",`
  683. cursor: pointer;
  684. outline: none;
  685. box-sizing: border-box;
  686. position: relative;
  687. z-index: auto;
  688. display: flex;
  689. padding: var(--n-padding-multiple);
  690. flex-wrap: wrap;
  691. align-items: center;
  692. width: 100%;
  693. vertical-align: bottom;
  694. background-color: var(--n-color);
  695. border-radius: inherit;
  696. transition:
  697. color .3s var(--n-bezier),
  698. box-shadow .3s var(--n-bezier),
  699. background-color .3s var(--n-bezier);
  700. `),cB("base-selection-label",`
  701. height: var(--n-height);
  702. display: inline-flex;
  703. width: 100%;
  704. vertical-align: bottom;
  705. cursor: pointer;
  706. outline: none;
  707. z-index: auto;
  708. box-sizing: border-box;
  709. position: relative;
  710. transition:
  711. color .3s var(--n-bezier),
  712. box-shadow .3s var(--n-bezier),
  713. background-color .3s var(--n-bezier);
  714. border-radius: inherit;
  715. background-color: var(--n-color);
  716. align-items: center;
  717. `,[cB("base-selection-input",`
  718. font-size: inherit;
  719. line-height: inherit;
  720. outline: none;
  721. cursor: pointer;
  722. box-sizing: border-box;
  723. border:none;
  724. width: 100%;
  725. padding: var(--n-padding-single);
  726. background-color: #0000;
  727. color: var(--n-text-color);
  728. transition: color .3s var(--n-bezier);
  729. caret-color: var(--n-caret-color);
  730. `,[cE("content",`
  731. text-overflow: ellipsis;
  732. overflow: hidden;
  733. white-space: nowrap;
  734. `)]),cE("render-label",`
  735. color: var(--n-text-color);
  736. `)]),cNotM("disabled",[c$3("&:hover",[cE("state-border",`
  737. box-shadow: var(--n-box-shadow-hover);
  738. border: var(--n-border-hover);
  739. `)]),cM("focus",[cE("state-border",`
  740. box-shadow: var(--n-box-shadow-focus);
  741. border: var(--n-border-focus);
  742. `)]),cM("active",[cE("state-border",`
  743. box-shadow: var(--n-box-shadow-active);
  744. border: var(--n-border-active);
  745. `),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",`
  746. color: var(--n-arrow-color-disabled);
  747. `),cB("base-selection-label",`
  748. cursor: not-allowed;
  749. background-color: var(--n-color-disabled);
  750. `,[cB("base-selection-input",`
  751. cursor: not-allowed;
  752. color: var(--n-text-color-disabled);
  753. `),cE("render-label",`
  754. color: var(--n-text-color-disabled);
  755. `)]),cB("base-selection-tags",`
  756. cursor: not-allowed;
  757. background-color: var(--n-color-disabled);
  758. `),cB("base-selection-placeholder",`
  759. cursor: not-allowed;
  760. color: var(--n-placeholder-color-disabled);
  761. `)]),cB("base-selection-input-tag",`
  762. height: calc(var(--n-height) - 6px);
  763. line-height: calc(var(--n-height) - 6px);
  764. outline: none;
  765. display: none;
  766. position: relative;
  767. margin-bottom: 3px;
  768. max-width: 100%;
  769. vertical-align: bottom;
  770. `,[cE("input",`
  771. font-size: inherit;
  772. font-family: inherit;
  773. min-width: 1px;
  774. padding: 0;
  775. background-color: #0000;
  776. outline: none;
  777. border: none;
  778. max-width: 100%;
  779. overflow: hidden;
  780. width: 1em;
  781. line-height: inherit;
  782. cursor: pointer;
  783. color: var(--n-text-color);
  784. caret-color: var(--n-caret-color);
  785. `),cE("mirror",`
  786. position: absolute;
  787. left: 0;
  788. top: 0;
  789. white-space: pre;
  790. visibility: hidden;
  791. user-select: none;
  792. -webkit-user-select: none;
  793. opacity: 0;
  794. `)]),["warning","error"].map(d=>cM(`${d}-status`,[cE("state-border",`border: var(--n-border-${d});`),cNotM("disabled",[c$3("&:hover",[cE("state-border",`
  795. box-shadow: var(--n-box-shadow-hover-${d});
  796. border: var(--n-border-hover-${d});
  797. `)]),cM("active",[cE("state-border",`
  798. box-shadow: var(--n-box-shadow-active-${d});
  799. border: var(--n-border-active-${d});
  800. `),cB("base-selection-label",`background-color: var(--n-color-active-${d});`),cB("base-selection-tags",`background-color: var(--n-color-active-${d});`)]),cM("focus",[cE("state-border",`
  801. box-shadow: var(--n-box-shadow-focus-${d});
  802. border: var(--n-border-focus-${d});
  803. `)])])]))]),cB("base-selection-popover",`
  804. margin-bottom: -3px;
  805. display: flex;
  806. flex-wrap: wrap;
  807. margin-right: -8px;
  808. `),cB("base-selection-tag-wrapper",`
  809. max-width: 100%;
  810. display: inline-flex;
  811. padding: 0 7px 3px 0;
  812. `,[c$3("&:last-child","padding-right: 0;"),cB("tag",`
  813. font-size: 14px;
  814. max-width: 100%;
  815. `,[cE("content",`
  816. line-height: 1.25;
  817. text-overflow: ellipsis;
  818. overflow: hidden;
  819. `)])])]),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 g=ref(null),b=ref(null),A=ref(null),w=ref(null),C=ref(null),x=ref(null),S=ref(null),E=ref(null),B=ref(null),$=ref(null),P=ref(!1),k=ref(!1),M=ref(!1),R=useTheme("InternalSelection","-internal-selection",style$g,internalSelectionLight$1,d,toRef$1(d,"clsPrefix")),F=computed(()=>d.clearable&&!d.disabled&&(M.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),z=computed(()=>{const ve=d.selectedOption;if(ve)return ve[d.labelField]}),U=computed(()=>d.multiple?!!(Array.isArray(d.selectedOptions)&&d.selectedOptions.length):d.selectedOption!==null);function W(){var ve;const{value:Pe}=g;if(Pe){const{value:De}=b;De&&(De.style.width=`${Pe.offsetWidth}px`,d.maxTagCount!=="responsive"&&((ve=B.value)===null||ve===void 0||ve.sync()))}}function V(){const{value:ve}=$;ve&&(ve.style.display="none")}function Q(){const{value:ve}=$;ve&&(ve.style.display="inline-block")}watch(toRef$1(d,"active"),ve=>{ve||V()}),watch(toRef$1(d,"pattern"),()=>{d.multiple&&nextTick(W)});function K(ve){const{onFocus:Pe}=d;Pe&&Pe(ve)}function G(ve){const{onBlur:Pe}=d;Pe&&Pe(ve)}function X(ve){const{onDeleteOption:Pe}=d;Pe&&Pe(ve)}function J(ve){const{onClear:Pe}=d;Pe&&Pe(ve)}function re(ve){const{onPatternInput:Pe}=d;Pe&&Pe(ve)}function fe(ve){var Pe;(!ve.relatedTarget||!(!((Pe=A.value)===null||Pe===void 0)&&Pe.contains(ve.relatedTarget)))&&K(ve)}function Z(ve){var Pe;!((Pe=A.value)===null||Pe===void 0)&&Pe.contains(ve.relatedTarget)||G(ve)}function ie(ve){J(ve)}function ce(){M.value=!0}function me(){M.value=!1}function ne(ve){!d.active||!d.filterable||ve.target!==b.value&&ve.preventDefault()}function te(ve){X(ve)}function ue(ve){if(ve.key==="Backspace"&&!ae.value&&!d.pattern.length){const{selectedOptions:Pe}=d;Pe!=null&&Pe.length&&te(Pe[Pe.length-1])}}const ae=ref(!1);let ye=null;function Oe(ve){const{value:Pe}=g;if(Pe){const De=ve.target.value;Pe.textContent=De,W()}d.ignoreComposition&&ae.value?ye=ve:re(ve)}function Ye(){ae.value=!0}function et(){ae.value=!1,d.ignoreComposition&&re(ye),ye=null}function ht(ve){var Pe;k.value=!0,(Pe=d.onPatternFocus)===null||Pe===void 0||Pe.call(d,ve)}function Te(ve){var Pe;k.value=!1,(Pe=d.onPatternBlur)===null||Pe===void 0||Pe.call(d,ve)}function Le(){var ve,Pe;if(d.filterable)k.value=!1,(ve=x.value)===null||ve===void 0||ve.blur(),(Pe=b.value)===null||Pe===void 0||Pe.blur();else if(d.multiple){const{value:De}=w;De==null||De.blur()}else{const{value:De}=C;De==null||De.blur()}}function Re(){var ve,Pe,De;d.filterable?(k.value=!1,(ve=x.value)===null||ve===void 0||ve.focus()):d.multiple?(Pe=w.value)===null||Pe===void 0||Pe.focus():(De=C.value)===null||De===void 0||De.focus()}function $e(){const{value:ve}=b;ve&&(Q(),ve.focus())}function qe(){const{value:ve}=b;ve&&ve.blur()}function rt(ve){const{value:Pe}=S;Pe&&Pe.setTextContent(`+${ve}`)}function Xe(){const{value:ve}=E;return ve}function he(){return b.value}let we=null;function Be(){we!==null&&window.clearTimeout(we)}function Ne(){d.disabled||d.active||(Be(),we=window.setTimeout(()=>{U.value&&(P.value=!0)},100))}function Se(){Be()}function q(ve){ve||(Be(),P.value=!1)}watch(U,ve=>{ve||(P.value=!1)}),onMounted(()=>{watchEffect(()=>{const ve=x.value;ve&&(ve.tabIndex=d.disabled||k.value?-1:0)})}),useOnResize(A,d.onResize);const{inlineThemeDisabled:se}=d,ge=computed(()=>{const{size:ve}=d,{common:{cubicBezierEaseInOut:Pe},self:{borderRadius:De,color:Qe,placeholderColor:ot,textColor:st,paddingSingle:ut,paddingMultiple:He,caretColor:ct,colorDisabled:mt,textColorDisabled:_t,placeholderColorDisabled:ft,colorActive:Ct,boxShadowFocus:pt,boxShadowActive:bt,boxShadowHover:be,border:Fe,borderFocus:We,borderHover:it,borderActive:gt,arrowColor:yt,arrowColorDisabled:Ae,loadingColor:Ie,colorActiveWarning:ze,boxShadowFocusWarning:Ve,boxShadowActiveWarning:Ke,boxShadowHoverWarning:dt,borderWarning:Et,borderFocusWarning:Ft,borderHoverWarning:wt,borderActiveWarning:Mt,colorActiveError:_e,boxShadowFocusError:je,boxShadowActiveError:lt,boxShadowHoverError:Tt,borderError:Ht,borderFocusError:Nt,borderHoverError:er,borderActiveError:Wt,clearColor:Dt,clearColorHover:dr,clearColorPressed:Sr,clearSize:an,arrowSize:br,[createKey("height",ve)]:In,[createKey("fontSize",ve)]:Mn}}=R.value;return{"--n-bezier":Pe,"--n-border":Fe,"--n-border-active":gt,"--n-border-focus":We,"--n-border-hover":it,"--n-border-radius":De,"--n-box-shadow-active":bt,"--n-box-shadow-focus":pt,"--n-box-shadow-hover":be,"--n-caret-color":ct,"--n-color":Qe,"--n-color-active":Ct,"--n-color-disabled":mt,"--n-font-size":Mn,"--n-height":In,"--n-padding-single":ut,"--n-padding-multiple":He,"--n-placeholder-color":ot,"--n-placeholder-color-disabled":ft,"--n-text-color":st,"--n-text-color-disabled":_t,"--n-arrow-color":yt,"--n-arrow-color-disabled":Ae,"--n-loading-color":Ie,"--n-color-active-warning":ze,"--n-box-shadow-focus-warning":Ve,"--n-box-shadow-active-warning":Ke,"--n-box-shadow-hover-warning":dt,"--n-border-warning":Et,"--n-border-focus-warning":Ft,"--n-border-hover-warning":wt,"--n-border-active-warning":Mt,"--n-color-active-error":_e,"--n-box-shadow-focus-error":je,"--n-box-shadow-active-error":lt,"--n-box-shadow-hover-error":Tt,"--n-border-error":Ht,"--n-border-focus-error":Nt,"--n-border-hover-error":er,"--n-border-active-error":Wt,"--n-clear-size":an,"--n-clear-color":Dt,"--n-clear-color-hover":dr,"--n-clear-color-pressed":Sr,"--n-arrow-size":br}}),de=se?useThemeClass("internal-selection",computed(()=>d.size[0]),ge,d):void 0;return{mergedTheme:R,mergedClearable:F,patternInputFocused:k,filterablePlaceholder:L,label:z,selected:U,showTagsPanel:P,isComposing:ae,counterRef:S,counterWrapperRef:E,patternInputMirrorRef:g,patternInputRef:b,selfRef:A,multipleElRef:w,singleElRef:C,patternInputWrapperRef:x,overflowRef:B,inputTagElRef:$,handleMouseDown:ne,handleFocusin:fe,handleClear:ie,handleMouseEnter:ce,handleMouseLeave:me,handleDeleteOption:te,handlePatternKeyDown:ue,handlePatternInputInput:Oe,handlePatternInputBlur:Te,handlePatternInputFocus:ht,handleMouseEnterCounter:Ne,handleMouseLeaveCounter:Se,handleFocusout:Z,handleCompositionEnd:et,handleCompositionStart:Ye,onPopoverUpdateShow:q,focus:Re,focusInput:$e,blur:Le,blurInput:qe,updateCounter:rt,getCounter:Xe,getTail:he,renderLabel:d.renderLabel,cssVars:se?void 0:ge,themeClass:de==null?void 0:de.themeClass,onRender:de==null?void 0:de.onRender}},render(){const{status:d,multiple:g,size:b,disabled:A,filterable:w,maxTagCount:C,bordered:x,clsPrefix:S,onRender:E,renderTag:B,renderLabel:$}=this;E==null||E();const P=C==="responsive",k=typeof C=="number",M=P||k,R=h$1(Wrapper,null,{default:()=>h$1(NBaseSuffix,{clsPrefix:S,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var L,z;return(z=(L=this.$slots).arrow)===null||z===void 0?void 0:z.call(L)}})});let F;if(g){const{labelField:L}=this,z=Z=>h$1("div",{class:`${S}-base-selection-tag-wrapper`,key:Z.value},B?B({option:Z,handleClose:()=>{this.handleDeleteOption(Z)}}):h$1(NTag,{size:b,closable:!Z.disabled,disabled:A,onClose:()=>{this.handleDeleteOption(Z)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>$?$(Z,!0):render$1(Z[L],Z,!0)})),U=()=>(k?this.selectedOptions.slice(0,C):this.selectedOptions).map(z),W=w?h$1("div",{class:`${S}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:A,value:this.pattern,autofocus:this.autofocus,class:`${S}-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:`${S}-base-selection-input-tag__mirror`},this.pattern)):null,V=P?()=>h$1("div",{class:`${S}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},h$1(NTag,{size:b,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:A})):void 0;let Q;if(k){const Z=this.selectedOptions.length-C;Z>0&&(Q=h$1("div",{class:`${S}-base-selection-tag-wrapper`,key:"__counter__"},h$1(NTag,{size:b,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:A},{default:()=>`+${Z}`})))}const K=P?w?h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:U,counter:V,tail:()=>W}):h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:U,counter:V}):k?U().concat(Q):U(),G=M?()=>h$1("div",{class:`${S}-base-selection-popover`},P?U():this.selectedOptions.map(z)):void 0,X=M?{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,re=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h$1("div",{class:`${S}-base-selection-placeholder ${S}-base-selection-overlay`},h$1("div",{class:`${S}-base-selection-placeholder__inner`},this.placeholder)):null,fe=w?h$1("div",{ref:"patternInputWrapperRef",class:`${S}-base-selection-tags`},K,P?null:W,R):h$1("div",{ref:"multipleElRef",class:`${S}-base-selection-tags`,tabindex:A?void 0:0},K,R);F=h$1(Fragment,null,M?h$1(NPopover,Object.assign({},X,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>fe,default:G}):fe,re)}else if(w){const L=this.pattern||this.isComposing,z=this.active?!L:!this.selected,U=this.active?!1:this.selected;F=h$1("div",{ref:"patternInputWrapperRef",class:`${S}-base-selection-label`},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${S}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:A,disabled:A,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),U?h$1("div",{class:`${S}-base-selection-label__render-label ${S}-base-selection-overlay`,key:"input"},h$1("div",{class:`${S}-base-selection-overlay__wrapper`},B?B({option:this.selectedOption,handleClose:()=>{}}):$?$(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):null,z?h$1("div",{class:`${S}-base-selection-placeholder ${S}-base-selection-overlay`,key:"placeholder"},h$1("div",{class:`${S}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,R)}else F=h$1("div",{ref:"singleElRef",class:`${S}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?h$1("div",{class:`${S}-base-selection-input`,title:getTitleAttribute(this.label),key:"input"},h$1("div",{class:`${S}-base-selection-input__content`},B?B({option:this.selectedOption,handleClose:()=>{}}):$?$(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):h$1("div",{class:`${S}-base-selection-placeholder ${S}-base-selection-overlay`,key:"placeholder"},h$1("div",{class:`${S}-base-selection-placeholder__inner`},this.placeholder)),R);return h$1("div",{ref:"selfRef",class:[`${S}-base-selection`,this.themeClass,d&&`${S}-base-selection--${d}-status`,{[`${S}-base-selection--active`]:this.active,[`${S}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${S}-base-selection--disabled`]:this.disabled,[`${S}-base-selection--multiple`]:this.multiple,[`${S}-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},F,x?h$1("div",{class:`${S}-base-selection__border`}):null,x?h$1("div",{class:`${S}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$1}=commonVariables$m;function fadeInWidthExpandTransition({duration:d=".2s",delay:g=".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",`
  820. opacity: 0!important;
  821. margin-left: 0!important;
  822. margin-right: 0!important;
  823. `),c$3("&.fade-in-width-expand-transition-leave-active",`
  824. overflow: hidden;
  825. transition:
  826. opacity ${d} ${cubicBezierEaseInOut$1},
  827. max-width ${d} ${cubicBezierEaseInOut$1} ${g},
  828. margin-left ${d} ${cubicBezierEaseInOut$1} ${g},
  829. margin-right ${d} ${cubicBezierEaseInOut$1} ${g};
  830. `),c$3("&.fade-in-width-expand-transition-enter-active",`
  831. overflow: hidden;
  832. transition:
  833. opacity ${d} ${cubicBezierEaseInOut$1} ${g},
  834. max-width ${d} ${cubicBezierEaseInOut$1},
  835. margin-left ${d} ${cubicBezierEaseInOut$1},
  836. margin-right ${d} ${cubicBezierEaseInOut$1};
  837. `)]}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:g,borderRadius:b,fontWeightStrong:A,dividerColor:w,inputColor:C,textColor1:x,textColor2:S,closeColorHover:E,closeColorPressed:B,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,infoColorSuppl:M,successColorSuppl:R,warningColorSuppl:F,errorColorSuppl:L,fontSize:z}=d;return Object.assign(Object.assign({},commonVars$a),{fontSize:z,lineHeight:g,titleFontWeight:A,borderRadius:b,border:`1px solid ${w}`,color:C,titleTextColor:x,iconColor:S,contentTextColor:S,closeBorderRadius:b,closeColorHover:E,closeColorPressed:B,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,borderInfo:`1px solid ${changeColor(M,{alpha:.35})}`,colorInfo:changeColor(M,{alpha:.25}),titleTextColorInfo:x,iconColorInfo:M,contentTextColorInfo:S,closeColorHoverInfo:E,closeColorPressedInfo:B,closeIconColorInfo:$,closeIconColorHoverInfo:P,closeIconColorPressedInfo:k,borderSuccess:`1px solid ${changeColor(R,{alpha:.35})}`,colorSuccess:changeColor(R,{alpha:.25}),titleTextColorSuccess:x,iconColorSuccess:R,contentTextColorSuccess:S,closeColorHoverSuccess:E,closeColorPressedSuccess:B,closeIconColorSuccess:$,closeIconColorHoverSuccess:P,closeIconColorPressedSuccess:k,borderWarning:`1px solid ${changeColor(F,{alpha:.35})}`,colorWarning:changeColor(F,{alpha:.25}),titleTextColorWarning:x,iconColorWarning:F,contentTextColorWarning:S,closeColorHoverWarning:E,closeColorPressedWarning:B,closeIconColorWarning:$,closeIconColorHoverWarning:P,closeIconColorPressedWarning:k,borderError:`1px solid ${changeColor(L,{alpha:.35})}`,colorError:changeColor(L,{alpha:.25}),titleTextColorError:x,iconColorError:L,contentTextColorError:S,closeColorHoverError:E,closeColorPressedError:B,closeIconColorError:$,closeIconColorHoverError:P,closeIconColorPressedError:k})}},alertDark$1=alertDark,{cubicBezierEaseInOut,cubicBezierEaseOut,cubicBezierEaseIn}=commonVariables$m;function fadeInHeightExpandTransition({overflow:d="hidden",duration:g=".3s",originalTransition:b="",leavingDelay:A="0s",foldPadding:w=!1,enterToProps:C=void 0,leaveToProps:x=void 0,reverse:S=!1}={}){const E=S?"leave":"enter",B=S?"enter":"leave";return[c$3(`&.fade-in-height-expand-transition-${B}-from,
  838. &.fade-in-height-expand-transition-${E}-to`,Object.assign(Object.assign({},C),{opacity:1})),c$3(`&.fade-in-height-expand-transition-${B}-to,
  839. &.fade-in-height-expand-transition-${E}-from`,Object.assign(Object.assign({},x),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:w?"0 !important":void 0,paddingBottom:w?"0 !important":void 0})),c$3(`&.fade-in-height-expand-transition-${B}-active`,`
  840. overflow: ${d};
  841. transition:
  842. max-height ${g} ${cubicBezierEaseInOut} ${A},
  843. opacity ${g} ${cubicBezierEaseOut} ${A},
  844. margin-top ${g} ${cubicBezierEaseInOut} ${A},
  845. margin-bottom ${g} ${cubicBezierEaseInOut} ${A},
  846. padding-top ${g} ${cubicBezierEaseInOut} ${A},
  847. padding-bottom ${g} ${cubicBezierEaseInOut} ${A}
  848. ${b?","+b:""}
  849. `),c$3(`&.fade-in-height-expand-transition-${E}-active`,`
  850. overflow: ${d};
  851. transition:
  852. max-height ${g} ${cubicBezierEaseInOut},
  853. opacity ${g} ${cubicBezierEaseIn},
  854. margin-top ${g} ${cubicBezierEaseInOut},
  855. margin-bottom ${g} ${cubicBezierEaseInOut},
  856. padding-top ${g} ${cubicBezierEaseInOut},
  857. padding-bottom ${g} ${cubicBezierEaseInOut}
  858. ${b?","+b:""}
  859. `)]}const commonVars$9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},self$O=d=>{const{borderRadius:g,railColor:b,primaryColor:A,primaryColorHover:w,primaryColorPressed:C,textColor2:x}=d;return Object.assign(Object.assign({},commonVars$9),{borderRadius:g,railColor:b,railColorActive:A,linkColor:changeColor(A,{alpha:.15}),linkTextColor:x,linkTextColorHover:w,linkTextColorPressed:C,linkTextColorActive:A})},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,g){try{return!!(1+g.toString().toLowerCase().indexOf(d.trim().toLowerCase()))}catch(b){return!1}}function createTmOptions(d,g){return{getIsGroup,getIgnored,getKey(A){return getIsGroup(A)?A.name||A.key||"key-required":A[d]},getChildren(A){return A[g]}}}function filterOptions(d,g,b,A){if(!g)return d;function w(C){if(!Array.isArray(C))return[];const x=[];for(const S of C)if(getIsGroup(S)){const E=w(S[A]);E.length&&x.push(Object.assign({},S,{[A]:E}))}else{if(getIgnored(S))continue;g(b,S)&&x.push(S)}return x}return w(d)}function createValOptMap(d,g,b){const A=new Map;return d.forEach(w=>{getIsGroup(w)?w[b].forEach(C=>{A.set(C[g],C)}):A.set(w[g],w)}),A}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:g,textColor3:b,textColorDisabled:A,primaryColor:w,primaryColorHover:C,inputColor:x,inputColorDisabled:S,warningColor:E,warningColorHover:B,errorColor:$,errorColorHover:P,borderRadius:k,lineHeight:M,fontSizeTiny:R,fontSizeSmall:F,fontSizeMedium:L,fontSizeLarge:z,heightTiny:U,heightSmall:W,heightMedium:V,heightLarge:Q,clearColor:K,clearColorHover:G,clearColorPressed:X,placeholderColor:J,placeholderColorDisabled:re,iconColor:fe,iconColorDisabled:Z,iconColorHover:ie,iconColorPressed:ce}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:A,countTextColor:b,heightTiny:U,heightSmall:W,heightMedium:V,heightLarge:Q,fontSizeTiny:R,fontSizeSmall:F,fontSizeMedium:L,fontSizeLarge:z,lineHeight:M,lineHeightTextarea:M,borderRadius:k,iconSize:"16px",groupLabelColor:x,textColor:g,textColorDisabled:A,textDecorationColor:g,groupLabelTextColor:g,caretColor:w,placeholderColor:J,placeholderColorDisabled:re,color:x,colorDisabled:S,colorFocus:changeColor(w,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${C}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${C}`,boxShadowFocus:`0 0 8px 0 ${changeColor(w,{alpha:.3})}`,loadingColor:w,loadingColorWarning:E,borderWarning:`1px solid ${E}`,borderHoverWarning:`1px solid ${B}`,colorFocusWarning:changeColor(E,{alpha:.1}),borderFocusWarning:`1px solid ${B}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(E,{alpha:.3})}`,caretColorWarning:E,loadingColorError:$,borderError:`1px solid ${$}`,borderHoverError:`1px solid ${P}`,colorFocusError:changeColor($,{alpha:.1}),borderFocusError:`1px solid ${P}`,boxShadowFocusError:`0 0 8px 0 ${changeColor($,{alpha:.3})}`,caretColorError:$,clearColor:K,clearColorHover:G,clearColorPressed:X,iconColor:fe,iconColorDisabled:Z,iconColorHover:ie,iconColorPressed:ce,suffixTextColor:g})}},inputDark$1=inputDark,self$N=d=>{const{textColor2:g,textColor3:b,textColorDisabled:A,primaryColor:w,primaryColorHover:C,inputColor:x,inputColorDisabled:S,borderColor:E,warningColor:B,warningColorHover:$,errorColor:P,errorColorHover:k,borderRadius:M,lineHeight:R,fontSizeTiny:F,fontSizeSmall:L,fontSizeMedium:z,fontSizeLarge:U,heightTiny:W,heightSmall:V,heightMedium:Q,heightLarge:K,actionColor:G,clearColor:X,clearColorHover:J,clearColorPressed:re,placeholderColor:fe,placeholderColorDisabled:Z,iconColor:ie,iconColorDisabled:ce,iconColorHover:me,iconColorPressed:ne}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:A,countTextColor:b,heightTiny:W,heightSmall:V,heightMedium:Q,heightLarge:K,fontSizeTiny:F,fontSizeSmall:L,fontSizeMedium:z,fontSizeLarge:U,lineHeight:R,lineHeightTextarea:R,borderRadius:M,iconSize:"16px",groupLabelColor:G,groupLabelTextColor:g,textColor:g,textColorDisabled:A,textDecorationColor:g,caretColor:w,placeholderColor:fe,placeholderColorDisabled:Z,color:x,colorDisabled:S,colorFocus:x,groupLabelBorder:`1px solid ${E}`,border:`1px solid ${E}`,borderHover:`1px solid ${C}`,borderDisabled:`1px solid ${E}`,borderFocus:`1px solid ${C}`,boxShadowFocus:`0 0 0 2px ${changeColor(w,{alpha:.2})}`,loadingColor:w,loadingColorWarning:B,borderWarning:`1px solid ${B}`,borderHoverWarning:`1px solid ${$}`,colorFocusWarning:x,borderFocusWarning:`1px solid ${$}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(B,{alpha:.2})}`,caretColorWarning:B,loadingColorError:P,borderError:`1px solid ${P}`,borderHoverError:`1px solid ${k}`,colorFocusError:x,borderFocusError:`1px solid ${k}`,boxShadowFocusError:`0 0 0 2px ${changeColor(P,{alpha:.2})}`,caretColorError:P,clearColor:X,clearColorHover:J,clearColorPressed:re,iconColor:ie,iconColorDisabled:ce,iconColorHover:me,iconColorPressed:ne,suffixTextColor:g})},inputLight={name:"Input",common:commonLight,self:self$N},inputLight$1=inputLight,inputInjectionKey="n-input";function len(d){let g=0;for(const b of d)g++;return g}function isEmptyInputValue(d){return d===""||d==null}function useCursor(d){const g=ref(null);function b(){const{value:C}=d;if(!(C!=null&&C.focus)){w();return}const{selectionStart:x,selectionEnd:S,value:E}=C;if(x==null||S==null){w();return}g.value={start:x,end:S,beforeText:E.slice(0,x),afterText:E.slice(S)}}function A(){var C;const{value:x}=g,{value:S}=d;if(!x||!S)return;const{value:E}=S,{start:B,beforeText:$,afterText:P}=x;let k=E.length;if(E.endsWith(P))k=E.length-P.length;else if(E.startsWith($))k=$.length;else{const M=$[B-1],R=E.indexOf(M,B-1);R!==-1&&(k=R+1)}(C=S.setSelectionRange)===null||C===void 0||C.call(S,k,k)}function w(){g.value=null}return watch(d,w),{recordCursor:b,restoreCursor:A}}const WordCount=defineComponent({name:"InputWordCount",setup(d,{slots:g}){const{mergedValueRef:b,maxlengthRef:A,mergedClsPrefixRef:w,countGraphemesRef:C}=inject(inputInjectionKey),x=computed(()=>{const{value:S}=b;return S===null||Array.isArray(S)?0:(C.value||len)(S)});return()=>{const{value:S}=A,{value:E}=b;return h$1("span",{class:`${w.value}-input-word-count`},resolveSlotWithProps(g.default,{value:E===null||Array.isArray(E)?"":E},()=>[S===void 0?x.value:`${x.value} / ${S}`]))}}}),style$f=cB("input",`
  860. max-width: 100%;
  861. cursor: text;
  862. line-height: 1.5;
  863. z-index: auto;
  864. outline: none;
  865. box-sizing: border-box;
  866. position: relative;
  867. display: inline-flex;
  868. border-radius: var(--n-border-radius);
  869. background-color: var(--n-color);
  870. transition: background-color .3s var(--n-bezier);
  871. font-size: var(--n-font-size);
  872. --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
  873. `,[cE("input, textarea",`
  874. overflow: hidden;
  875. flex-grow: 1;
  876. position: relative;
  877. `),cE("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
  878. box-sizing: border-box;
  879. font-size: inherit;
  880. line-height: 1.5;
  881. font-family: inherit;
  882. border: none;
  883. outline: none;
  884. background-color: #0000;
  885. text-align: inherit;
  886. transition:
  887. -webkit-text-fill-color .3s var(--n-bezier),
  888. caret-color .3s var(--n-bezier),
  889. color .3s var(--n-bezier),
  890. text-decoration-color .3s var(--n-bezier);
  891. `),cE("input-el, textarea-el",`
  892. -webkit-appearance: none;
  893. scrollbar-width: none;
  894. width: 100%;
  895. min-width: 0;
  896. text-decoration-color: var(--n-text-decoration-color);
  897. color: var(--n-text-color);
  898. caret-color: var(--n-caret-color);
  899. background-color: transparent;
  900. `,[c$3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  901. width: 0;
  902. height: 0;
  903. display: none;
  904. `),c$3("&::placeholder",`
  905. color: #0000;
  906. -webkit-text-fill-color: transparent !important;
  907. `),c$3("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder",`
  908. pointer-events: none;
  909. position: absolute;
  910. left: 0;
  911. right: 0;
  912. top: 0;
  913. bottom: 0;
  914. overflow: hidden;
  915. color: var(--n-placeholder-color);
  916. `,[c$3("span",`
  917. width: 100%;
  918. display: inline-block;
  919. `)]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el",`
  920. position: absolute;
  921. top: 0;
  922. left: 0;
  923. height: 100%;
  924. `)]),cB("input-wrapper",`
  925. overflow: hidden;
  926. display: inline-flex;
  927. flex-grow: 1;
  928. position: relative;
  929. padding-left: var(--n-padding-left);
  930. padding-right: var(--n-padding-right);
  931. `),cE("input-mirror",`
  932. padding: 0;
  933. height: var(--n-height);
  934. line-height: var(--n-height);
  935. overflow: hidden;
  936. visibility: hidden;
  937. position: static;
  938. white-space: pre;
  939. pointer-events: none;
  940. `),cE("input-el",`
  941. padding: 0;
  942. height: var(--n-height);
  943. line-height: var(--n-height);
  944. `,[c$3("+",[cE("placeholder",`
  945. display: flex;
  946. align-items: center;
  947. `)])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye",`
  948. display: flex;
  949. align-items: center;
  950. justify-content: center;
  951. transition: color .3s var(--n-bezier);
  952. `),cM("textarea","width: 100%;",[cB("input-word-count",`
  953. position: absolute;
  954. right: var(--n-padding-right);
  955. bottom: var(--n-padding-vertical);
  956. `),cM("resizable",[cB("input-wrapper",`
  957. resize: vertical;
  958. min-height: var(--n-height);
  959. `)]),cE("textarea-el, textarea-mirror, placeholder",`
  960. height: 100%;
  961. padding-left: 0;
  962. padding-right: 0;
  963. padding-top: var(--n-padding-vertical);
  964. padding-bottom: var(--n-padding-vertical);
  965. word-break: break-word;
  966. display: inline-block;
  967. vertical-align: bottom;
  968. box-sizing: border-box;
  969. line-height: var(--n-line-height-textarea);
  970. margin: 0;
  971. resize: none;
  972. white-space: pre-wrap;
  973. `),cE("textarea-mirror",`
  974. width: 100%;
  975. pointer-events: none;
  976. overflow: hidden;
  977. visibility: hidden;
  978. position: static;
  979. white-space: pre-wrap;
  980. overflow-wrap: break-word;
  981. `)]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator",`
  982. display: flex;
  983. align-items: center;
  984. transition: color .3s var(--n-bezier);
  985. color: var(--n-text-color);
  986. white-space: nowrap;
  987. `,[cB("icon",`
  988. color: var(--n-icon-color);
  989. `),cB("base-icon",`
  990. color: var(--n-icon-color);
  991. `)])]),cM("disabled",`
  992. cursor: not-allowed;
  993. background-color: var(--n-color-disabled);
  994. `,[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el",`
  995. cursor: not-allowed;
  996. color: var(--n-text-color-disabled);
  997. text-decoration-color: var(--n-text-color-disabled);
  998. `),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon",`
  999. color: var(--n-icon-color-disabled);
  1000. `),cB("base-icon",`
  1001. color: var(--n-icon-color-disabled);
  1002. `)]),cB("input-word-count",`
  1003. color: var(--n-count-text-color-disabled);
  1004. `),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon",`
  1005. color: var(--n-icon-color-disabled);
  1006. `),cB("internal-icon",`
  1007. color: var(--n-icon-color-disabled);
  1008. `)])]),cNotM("disabled",[cE("eye",`
  1009. color: var(--n-icon-color);
  1010. cursor: pointer;
  1011. `,[c$3("&:hover",`
  1012. color: var(--n-icon-color-hover);
  1013. `),c$3("&:active",`
  1014. color: var(--n-icon-color-pressed);
  1015. `)]),c$3("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border",`
  1016. border: var(--n-border-focus);
  1017. box-shadow: var(--n-box-shadow-focus);
  1018. `)])]),cE("border, state-border",`
  1019. box-sizing: border-box;
  1020. position: absolute;
  1021. left: 0;
  1022. right: 0;
  1023. top: 0;
  1024. bottom: 0;
  1025. pointer-events: none;
  1026. border-radius: inherit;
  1027. border: var(--n-border);
  1028. transition:
  1029. box-shadow .3s var(--n-bezier),
  1030. border-color .3s var(--n-bezier);
  1031. `),cE("state-border",`
  1032. border-color: #0000;
  1033. z-index: 1;
  1034. `),cE("prefix","margin-right: 4px;"),cE("suffix",`
  1035. margin-left: 4px;
  1036. `),cE("suffix, prefix",`
  1037. transition: color .3s var(--n-bezier);
  1038. flex-wrap: nowrap;
  1039. flex-shrink: 0;
  1040. line-height: var(--n-height);
  1041. white-space: nowrap;
  1042. display: inline-flex;
  1043. align-items: center;
  1044. justify-content: center;
  1045. color: var(--n-suffix-text-color);
  1046. `,[cB("base-loading",`
  1047. font-size: var(--n-icon-size);
  1048. margin: 0 2px;
  1049. color: var(--n-loading-color);
  1050. `),cB("base-clear",`
  1051. font-size: var(--n-icon-size);
  1052. `,[cE("placeholder",[cB("base-icon",`
  1053. transition: color .3s var(--n-bezier);
  1054. color: var(--n-icon-color);
  1055. font-size: var(--n-icon-size);
  1056. `)])]),c$3(">",[cB("icon",`
  1057. transition: color .3s var(--n-bezier);
  1058. color: var(--n-icon-color);
  1059. font-size: var(--n-icon-size);
  1060. `)]),cB("base-icon",`
  1061. font-size: var(--n-icon-size);
  1062. `)]),cB("input-word-count",`
  1063. pointer-events: none;
  1064. line-height: 1.5;
  1065. font-size: .85em;
  1066. color: var(--n-count-text-color);
  1067. transition: color .3s var(--n-bezier);
  1068. margin-left: 4px;
  1069. font-variant: tabular-nums;
  1070. `),["warning","error"].map(d=>cM(`${d}-status`,[cNotM("disabled",[cB("base-loading",`
  1071. color: var(--n-loading-color-${d})
  1072. `),cE("input-el, textarea-el",`
  1073. caret-color: var(--n-caret-color-${d});
  1074. `),cE("state-border",`
  1075. border: var(--n-border-${d});
  1076. `),c$3("&:hover",[cE("state-border",`
  1077. border: var(--n-border-hover-${d});
  1078. `)]),c$3("&:focus",`
  1079. background-color: var(--n-color-focus-${d});
  1080. `,[cE("state-border",`
  1081. box-shadow: var(--n-box-shadow-focus-${d});
  1082. border: var(--n-border-focus-${d});
  1083. `)]),cM("focus",`
  1084. background-color: var(--n-color-focus-${d});
  1085. `,[cE("state-border",`
  1086. box-shadow: var(--n-box-shadow-focus-${d});
  1087. border: var(--n-border-focus-${d});
  1088. `)])])]))]),safariStyle=cB("input",[cM("disabled",[cE("input-el, textarea-el",`
  1089. -webkit-text-fill-color: var(--n-text-color-disabled);
  1090. `)])]),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:g,mergedBorderedRef:b,inlineThemeDisabled:A,mergedRtlRef:w}=useConfig(d),C=useTheme("Input","-input",style$f,inputLight$1,d,g);isSafari&&useStyle("-input-safari",safariStyle,g);const x=ref(null),S=ref(null),E=ref(null),B=ref(null),$=ref(null),P=ref(null),k=ref(null),M=useCursor(k),R=ref(null),{localeRef:F}=useLocale("Input"),L=ref(d.defaultValue),z=toRef$1(d,"value"),U=useMergedState(z,L),W=useFormItem(d),{mergedSizeRef:V,mergedDisabledRef:Q,mergedStatusRef:K}=W,G=ref(!1),X=ref(!1),J=ref(!1),re=ref(!1);let fe=null;const Z=computed(()=>{const{placeholder:_e,pair:je}=d;return je?Array.isArray(_e)?_e:_e===void 0?["",""]:[_e,_e]:_e===void 0?[F.value.placeholder]:[_e]}),ie=computed(()=>{const{value:_e}=J,{value:je}=U,{value:lt}=Z;return!_e&&(isEmptyInputValue(je)||Array.isArray(je)&&isEmptyInputValue(je[0]))&&lt[0]}),ce=computed(()=>{const{value:_e}=J,{value:je}=U,{value:lt}=Z;return!_e&&lt[1]&&(isEmptyInputValue(je)||Array.isArray(je)&&isEmptyInputValue(je[1]))}),me=useMemo(()=>d.internalForceFocus||G.value),ne=useMemo(()=>{if(Q.value||d.readonly||!d.clearable||!me.value&&!X.value)return!1;const{value:_e}=U,{value:je}=me;return d.pair?!!(Array.isArray(_e)&&(_e[0]||_e[1]))&&(X.value||je):!!_e&&(X.value||je)}),te=computed(()=>{const{showPasswordOn:_e}=d;if(_e)return _e;if(d.showPasswordToggle)return"click"}),ue=ref(!1),ae=computed(()=>{const{textDecoration:_e}=d;return _e?Array.isArray(_e)?_e.map(je=>({textDecoration:je})):[{textDecoration:_e}]:["",""]}),ye=ref(void 0),Oe=()=>{var _e,je;if(d.type==="textarea"){const{autosize:lt}=d;if(lt&&(ye.value=(je=(_e=R.value)===null||_e===void 0?void 0:_e.$el)===null||je===void 0?void 0:je.offsetWidth),!S.value||typeof lt=="boolean")return;const{paddingTop:Tt,paddingBottom:Ht,lineHeight:Nt}=window.getComputedStyle(S.value),er=Number(Tt.slice(0,-2)),Wt=Number(Ht.slice(0,-2)),Dt=Number(Nt.slice(0,-2)),{value:dr}=E;if(!dr)return;if(lt.minRows){const Sr=Math.max(lt.minRows,1),an=`${er+Wt+Dt*Sr}px`;dr.style.minHeight=an}if(lt.maxRows){const Sr=`${er+Wt+Dt*lt.maxRows}px`;dr.style.maxHeight=Sr}}},Ye=computed(()=>{const{maxlength:_e}=d;return _e===void 0?void 0:Number(_e)});onMounted(()=>{const{value:_e}=U;Array.isArray(_e)||Ae(_e)});const et=getCurrentInstance().proxy;function ht(_e){const{onUpdateValue:je,"onUpdate:value":lt,onInput:Tt}=d,{nTriggerFormInput:Ht}=W;je&&call$1(je,_e),lt&&call$1(lt,_e),Tt&&call$1(Tt,_e),L.value=_e,Ht()}function Te(_e){const{onChange:je}=d,{nTriggerFormChange:lt}=W;je&&call$1(je,_e),L.value=_e,lt()}function Le(_e){const{onBlur:je}=d,{nTriggerFormBlur:lt}=W;je&&call$1(je,_e),lt()}function Re(_e){const{onFocus:je}=d,{nTriggerFormFocus:lt}=W;je&&call$1(je,_e),lt()}function $e(_e){const{onClear:je}=d;je&&call$1(je,_e)}function qe(_e){const{onInputBlur:je}=d;je&&call$1(je,_e)}function rt(_e){const{onInputFocus:je}=d;je&&call$1(je,_e)}function Xe(){const{onDeactivate:_e}=d;_e&&call$1(_e)}function he(){const{onActivate:_e}=d;_e&&call$1(_e)}function we(_e){const{onClick:je}=d;je&&call$1(je,_e)}function Be(_e){const{onWrapperFocus:je}=d;je&&call$1(je,_e)}function Ne(_e){const{onWrapperBlur:je}=d;je&&call$1(je,_e)}function Se(){J.value=!0}function q(_e){J.value=!1,_e.target===P.value?se(_e,1):se(_e,0)}function se(_e,je=0,lt="input"){const Tt=_e.target.value;if(Ae(Tt),_e instanceof InputEvent&&!_e.isComposing&&(J.value=!1),d.type==="textarea"){const{value:Nt}=R;Nt&&Nt.syncUnifiedContainer()}if(fe=Tt,J.value)return;M.recordCursor();const Ht=ge(Tt);if(Ht)if(!d.pair)lt==="input"?ht(Tt):Te(Tt);else{let{value:Nt}=U;Array.isArray(Nt)?Nt=[Nt[0],Nt[1]]:Nt=["",""],Nt[je]=Tt,lt==="input"?ht(Nt):Te(Nt)}et.$forceUpdate(),Ht||nextTick(M.restoreCursor)}function ge(_e){const{countGraphemes:je,maxlength:lt,minlength:Tt}=d;if(je){let Nt;if(lt!==void 0&&(Nt===void 0&&(Nt=je(_e)),Nt>Number(lt))||Tt!==void 0&&(Nt===void 0&&(Nt=je(_e)),Nt<Number(lt)))return!1}const{allowInput:Ht}=d;return typeof Ht=="function"?Ht(_e):!0}function de(_e){qe(_e),_e.relatedTarget===x.value&&Xe(),_e.relatedTarget!==null&&(_e.relatedTarget===$.value||_e.relatedTarget===P.value||_e.relatedTarget===S.value)||(re.value=!1),Qe(_e,"blur"),k.value=null}function ve(_e,je){rt(_e),G.value=!0,re.value=!0,he(),Qe(_e,"focus"),je===0?k.value=$.value:je===1?k.value=P.value:je===2&&(k.value=S.value)}function Pe(_e){d.passivelyActivated&&(Ne(_e),Qe(_e,"blur"))}function De(_e){d.passivelyActivated&&(G.value=!0,Be(_e),Qe(_e,"focus"))}function Qe(_e,je){_e.relatedTarget!==null&&(_e.relatedTarget===$.value||_e.relatedTarget===P.value||_e.relatedTarget===S.value||_e.relatedTarget===x.value)||(je==="focus"?(Re(_e),G.value=!0):je==="blur"&&(Le(_e),G.value=!1))}function ot(_e,je){se(_e,je,"change")}function st(_e){we(_e)}function ut(_e){$e(_e),d.pair?(ht(["",""]),Te(["",""])):(ht(""),Te(""))}function He(_e){const{onMousedown:je}=d;je&&je(_e);const{tagName:lt}=_e.target;if(lt!=="INPUT"&&lt!=="TEXTAREA"){if(d.resizable){const{value:Tt}=x;if(Tt){const{left:Ht,top:Nt,width:er,height:Wt}=Tt.getBoundingClientRect(),Dt=14;if(Ht+er-Dt<_e.clientX&&_e.clientX<Ht+er&&Nt+Wt-Dt<_e.clientY&&_e.clientY<Nt+Wt)return}}_e.preventDefault(),G.value||be()}}function ct(){var _e;X.value=!0,d.type==="textarea"&&((_e=R.value)===null||_e===void 0||_e.handleMouseEnterWrapper())}function mt(){var _e;X.value=!1,d.type==="textarea"&&((_e=R.value)===null||_e===void 0||_e.handleMouseLeaveWrapper())}function _t(){Q.value||te.value==="click"&&(ue.value=!ue.value)}function ft(_e){if(Q.value)return;_e.preventDefault();const je=Tt=>{Tt.preventDefault(),off("mouseup",document,je)};if(on("mouseup",document,je),te.value!=="mousedown")return;ue.value=!0;const lt=()=>{ue.value=!1,off("mouseup",document,lt)};on("mouseup",document,lt)}function Ct(_e){var je;switch((je=d.onKeydown)===null||je===void 0||je.call(d,_e),_e.key){case"Escape":bt();break;case"Enter":pt(_e);break}}function pt(_e){var je,lt;if(d.passivelyActivated){const{value:Tt}=re;if(Tt){d.internalDeactivateOnEnter&&bt();return}_e.preventDefault(),d.type==="textarea"?(je=S.value)===null||je===void 0||je.focus():(lt=$.value)===null||lt===void 0||lt.focus()}}function bt(){d.passivelyActivated&&(re.value=!1,nextTick(()=>{var _e;(_e=x.value)===null||_e===void 0||_e.focus()}))}function be(){var _e,je,lt;Q.value||(d.passivelyActivated?(_e=x.value)===null||_e===void 0||_e.focus():((je=S.value)===null||je===void 0||je.focus(),(lt=$.value)===null||lt===void 0||lt.focus()))}function Fe(){var _e;!((_e=x.value)===null||_e===void 0)&&_e.contains(document.activeElement)&&document.activeElement.blur()}function We(){var _e,je;(_e=S.value)===null||_e===void 0||_e.select(),(je=$.value)===null||je===void 0||je.select()}function it(){Q.value||(S.value?S.value.focus():$.value&&$.value.focus())}function gt(){const{value:_e}=x;_e!=null&&_e.contains(document.activeElement)&&_e!==document.activeElement&&bt()}function yt(_e){if(d.type==="textarea"){const{value:je}=S;je==null||je.scrollTo(_e)}else{const{value:je}=$;je==null||je.scrollTo(_e)}}function Ae(_e){const{type:je,pair:lt,autosize:Tt}=d;if(!lt&&Tt)if(je==="textarea"){const{value:Ht}=E;Ht&&(Ht.textContent=(_e!=null?_e:"")+`\r
  1091. `)}else{const{value:Ht}=B;Ht&&(_e?Ht.textContent=_e:Ht.innerHTML="&nbsp;")}}function Ie(){Oe()}const ze=ref({top:"0"});function Ve(_e){var je;const{scrollTop:lt}=_e.target;ze.value.top=`${-lt}px`,(je=R.value)===null||je===void 0||je.syncUnifiedContainer()}let Ke=null;watchEffect(()=>{const{autosize:_e,type:je}=d;_e&&je==="textarea"?Ke=watch(U,lt=>{!Array.isArray(lt)&&lt!==fe&&Ae(lt)}):Ke==null||Ke()});let dt=null;watchEffect(()=>{d.type==="textarea"?dt=watch(U,_e=>{var je;!Array.isArray(_e)&&_e!==fe&&((je=R.value)===null||je===void 0||je.syncUnifiedContainer())}):dt==null||dt()}),provide(inputInjectionKey,{mergedValueRef:U,maxlengthRef:Ye,mergedClsPrefixRef:g,countGraphemesRef:toRef$1(d,"countGraphemes")});const Et={wrapperElRef:x,inputElRef:$,textareaElRef:S,isCompositing:J,focus:be,blur:Fe,select:We,deactivate:gt,activate:it,scrollTo:yt},Ft=useRtl("Input",w,g),wt=computed(()=>{const{value:_e}=V,{common:{cubicBezierEaseInOut:je},self:{color:lt,borderRadius:Tt,textColor:Ht,caretColor:Nt,caretColorError:er,caretColorWarning:Wt,textDecorationColor:Dt,border:dr,borderDisabled:Sr,borderHover:an,borderFocus:br,placeholderColor:In,placeholderColorDisabled:Mn,lineHeightTextarea:To,colorDisabled:Po,colorFocus:An,textColorDisabled:Nr,boxShadowFocus:wn,iconSize:Bo,colorFocusWarning:$o,boxShadowFocusWarning:ko,borderWarning:Jn,borderFocusWarning:sn,borderHoverWarning:Zn,colorFocusError:Io,boxShadowFocusError:Dr,borderError:Mo,borderFocusError:No,borderHoverError:eo,clearSize:to,clearColor:ro,clearColorHover:Nn,clearColorPressed:Cn,iconColor:no,iconColorDisabled:xn,suffixTextColor:oo,countTextColor:io,countTextColorDisabled:ao,iconColorHover:so,iconColorPressed:ln,loadingColor:Do,loadingColorError:lo,loadingColorWarning:Dn,[createKey("padding",_e)]:On,[createKey("fontSize",_e)]:Zr,[createKey("height",_e)]:co}}=C.value,{left:uo,right:Oo}=getMargin(On);return{"--n-bezier":je,"--n-count-text-color":io,"--n-count-text-color-disabled":ao,"--n-color":lt,"--n-font-size":Zr,"--n-border-radius":Tt,"--n-height":co,"--n-padding-left":uo,"--n-padding-right":Oo,"--n-text-color":Ht,"--n-caret-color":Nt,"--n-text-decoration-color":Dt,"--n-border":dr,"--n-border-disabled":Sr,"--n-border-hover":an,"--n-border-focus":br,"--n-placeholder-color":In,"--n-placeholder-color-disabled":Mn,"--n-icon-size":Bo,"--n-line-height-textarea":To,"--n-color-disabled":Po,"--n-color-focus":An,"--n-text-color-disabled":Nr,"--n-box-shadow-focus":wn,"--n-loading-color":Do,"--n-caret-color-warning":Wt,"--n-color-focus-warning":$o,"--n-box-shadow-focus-warning":ko,"--n-border-warning":Jn,"--n-border-focus-warning":sn,"--n-border-hover-warning":Zn,"--n-loading-color-warning":Dn,"--n-caret-color-error":er,"--n-color-focus-error":Io,"--n-box-shadow-focus-error":Dr,"--n-border-error":Mo,"--n-border-focus-error":No,"--n-border-hover-error":eo,"--n-loading-color-error":lo,"--n-clear-color":ro,"--n-clear-size":to,"--n-clear-color-hover":Nn,"--n-clear-color-pressed":Cn,"--n-icon-color":no,"--n-icon-color-hover":so,"--n-icon-color-pressed":ln,"--n-icon-color-disabled":xn,"--n-suffix-text-color":oo}}),Mt=A?useThemeClass("input",computed(()=>{const{value:_e}=V;return _e[0]}),wt,d):void 0;return Object.assign(Object.assign({},Et),{wrapperElRef:x,inputElRef:$,inputMirrorElRef:B,inputEl2Ref:P,textareaElRef:S,textareaMirrorElRef:E,textareaScrollbarInstRef:R,rtlEnabled:Ft,uncontrolledValue:L,mergedValue:U,passwordVisible:ue,mergedPlaceholder:Z,showPlaceholder1:ie,showPlaceholder2:ce,mergedFocus:me,isComposing:J,activated:re,showClearButton:ne,mergedSize:V,mergedDisabled:Q,textDecorationStyle:ae,mergedClsPrefix:g,mergedBordered:b,mergedShowPasswordOn:te,placeholderStyle:ze,mergedStatus:K,textAreaScrollContainerWidth:ye,handleTextAreaScroll:Ve,handleCompositionStart:Se,handleCompositionEnd:q,handleInput:se,handleInputBlur:de,handleInputFocus:ve,handleWrapperBlur:Pe,handleWrapperFocus:De,handleMouseEnter:ct,handleMouseLeave:mt,handleMouseDown:He,handleChange:ot,handleClick:st,handleClear:ut,handlePasswordToggleClick:_t,handlePasswordToggleMousedown:ft,handleWrapperKeydown:Ct,handleTextAreaMirrorResize:Ie,getTextareaScrollContainer:()=>S.value,mergedTheme:C,cssVars:A?void 0:wt,themeClass:Mt==null?void 0:Mt.themeClass,onRender:Mt==null?void 0:Mt.onRender})},render(){var d,g;const{mergedClsPrefix:b,mergedStatus:A,themeClass:w,type:C,countGraphemes:x,onRender:S}=this,E=this.$slots;return S==null||S(),h$1("div",{ref:"wrapperElRef",class:[`${b}-input`,w,A&&`${b}-input--${A}-status`,{[`${b}-input--rtl`]:this.rtlEnabled,[`${b}-input--disabled`]:this.mergedDisabled,[`${b}-input--textarea`]:C==="textarea",[`${b}-input--resizable`]:this.resizable&&!this.autosize,[`${b}-input--autosize`]:this.autosize,[`${b}-input--round`]:this.round&&C!=="textarea",[`${b}-input--pair`]:this.pair,[`${b}-input--focus`]:this.mergedFocus,[`${b}-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:`${b}-input-wrapper`},resolveWrappedSlot(E.prefix,B=>B&&h$1("div",{class:`${b}-input__prefix`},B)),C==="textarea"?h$1(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:`${b}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var B,$;const{textAreaScrollContainerWidth:P}=this,k={width:this.autosize&&P&&`${P}px`};return h$1(Fragment,null,h$1("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${b}-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:x?void 0:this.maxlength,minlength:x?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],($=this.inputProps)===null||$===void 0?void 0:$.style,k],onBlur:this.handleInputBlur,onFocus:M=>{this.handleInputFocus(M,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h$1("div",{class:`${b}-input__placeholder`,style:[this.placeholderStyle,k],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h$1(VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>h$1("div",{ref:"textareaMirrorElRef",class:`${b}-input__textarea-mirror`,key:"mirror"})}):null)}}):h$1("div",{class:`${b}-input__input`},h$1("input",Object.assign({type:C==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":C},this.inputProps,{ref:"inputElRef",class:[`${b}-input__input-el`,(d=this.inputProps)===null||d===void 0?void 0:d.class],style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:x?void 0:this.maxlength,minlength:x?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:`${b}-input__placeholder`},h$1("span",null,this.mergedPlaceholder[0])):null,this.autosize?h$1("div",{class:`${b}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&resolveWrappedSlot(E.suffix,B=>B||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h$1("div",{class:`${b}-input__suffix`},[resolveWrappedSlot(E["clear-icon-placeholder"],$=>(this.clearable||$)&&h$1(NBaseClear,{clsPrefix:b,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>$,icon:()=>{var P,k;return(k=(P=this.$slots)["clear-icon"])===null||k===void 0?void 0:k.call(P)}})),this.internalLoadingBeforeSuffix?null:B,this.loading!==void 0?h$1(NBaseSuffix,{clsPrefix:b,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:$=>{var P;return(P=E.count)===null||P===void 0?void 0:P.call(E,$)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h$1("div",{class:`${b}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(E["password-visible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(EyeIcon,null)})]):resolveSlot(E["password-invisible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:b},{default:()=>h$1(EyeOffIcon,null)})])):null]):null)),this.pair?h$1("span",{class:`${b}-input__separator`},resolveSlot(E.separator,()=>[this.separator])):null,this.pair?h$1("div",{class:`${b}-input-wrapper`},h$1("div",{class:`${b}-input__input`},h$1("input",{ref:"inputEl2Ref",type:this.type,class:`${b}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:x?void 0:this.maxlength,minlength:x?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:`${b}-input__placeholder`},h$1("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(E.suffix,B=>(this.clearable||B)&&h$1("div",{class:`${b}-input__suffix`},[this.clearable&&h$1(NBaseClear,{clsPrefix:b,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var $;return($=E["clear-icon"])===null||$===void 0?void 0:$.call(E)},placeholder:()=>{var $;return($=E["clear-icon-placeholder"])===null||$===void 0?void 0:$.call(E)}}),B]))):null,this.mergedBordered?h$1("div",{class:`${b}-input__border`}):null,this.mergedBordered?h$1("div",{class:`${b}-input__state-border`}):null,this.showCount&&C==="textarea"?h$1(WordCount,null,{default:B=>{var $;const{renderCount:P}=this;return P?P(B):($=E.count)===null||$===void 0?void 0:$.call(E,B)}}):null)}});function self$M(d){const{boxShadow2:g}=d;return{menuBoxShadow:g}}const autoCompleteDark={name:"AutoComplete",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self:self$M},autoCompleteDark$1=autoCompleteDark,self$L=d=>{const{borderRadius:g,avatarColor:b,cardColor:A,fontSize:w,heightTiny:C,heightSmall:x,heightMedium:S,heightLarge:E,heightHuge:B,modalColor:$,popoverColor:P}=d;return{borderRadius:g,fontSize:w,border:`2px solid ${A}`,heightTiny:C,heightSmall:x,heightMedium:S,heightLarge:E,heightHuge:B,color:composite(A,b),colorModal:composite($,b),colorPopover:composite(P,b)}},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:g,textColor2:b,primaryColorHover:A,primaryColorPressed:w}=d;return Object.assign(Object.assign({},commonVariables$h),{color:g,textColor:b,iconColor:b,iconColorHover:A,iconColorPressed:w,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:g,infoColorSuppl:b,successColorSuppl:A,warningColorSuppl:w,fontFamily:C}=d;return{color:g,colorInfo:b,colorSuccess:A,colorError:g,colorWarning:w,fontSize:"12px",fontFamily:C}}},badgeDark$1=badgeDark,commonVariables$g={fontWeightActive:"400"},self$J=d=>{const{fontSize:g,textColor3:b,textColor2:A,borderRadius:w,buttonColor2Hover:C,buttonColor2Pressed:x}=d;return Object.assign(Object.assign({},commonVariables$g),{fontSize:g,itemLineHeight:"1.25",itemTextColor:b,itemTextColorHover:A,itemTextColorPressed:A,itemTextColorActive:A,itemBorderRadius:w,itemColorHover:C,itemColorPressed:x,separatorColor:b})},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:g,heightSmall:b,heightMedium:A,heightLarge:w,borderRadius:C,fontSizeTiny:x,fontSizeSmall:S,fontSizeMedium:E,fontSizeLarge:B,opacityDisabled:$,textColor2:P,textColor3:k,primaryColorHover:M,primaryColorPressed:R,borderColor:F,primaryColor:L,baseColor:z,infoColor:U,infoColorHover:W,infoColorPressed:V,successColor:Q,successColorHover:K,successColorPressed:G,warningColor:X,warningColorHover:J,warningColorPressed:re,errorColor:fe,errorColorHover:Z,errorColorPressed:ie,fontWeight:ce,buttonColor2:me,buttonColor2Hover:ne,buttonColor2Pressed:te,fontWeightStrong:ue}=d;return Object.assign(Object.assign({},commonVariables$f),{heightTiny:g,heightSmall:b,heightMedium:A,heightLarge:w,borderRadiusTiny:C,borderRadiusSmall:C,borderRadiusMedium:C,borderRadiusLarge:C,fontSizeTiny:x,fontSizeSmall:S,fontSizeMedium:E,fontSizeLarge:B,opacityDisabled:$,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:me,colorSecondaryHover:ne,colorSecondaryPressed:te,colorTertiary:me,colorTertiaryHover:ne,colorTertiaryPressed:te,colorQuaternary:"#0000",colorQuaternaryHover:ne,colorQuaternaryPressed:te,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:P,textColorTertiary:k,textColorHover:M,textColorPressed:R,textColorFocus:M,textColorDisabled:P,textColorText:P,textColorTextHover:M,textColorTextPressed:R,textColorTextFocus:M,textColorTextDisabled:P,textColorGhost:P,textColorGhostHover:M,textColorGhostPressed:R,textColorGhostFocus:M,textColorGhostDisabled:P,border:`1px solid ${F}`,borderHover:`1px solid ${M}`,borderPressed:`1px solid ${R}`,borderFocus:`1px solid ${M}`,borderDisabled:`1px solid ${F}`,rippleColor:L,colorPrimary:L,colorHoverPrimary:M,colorPressedPrimary:R,colorFocusPrimary:M,colorDisabledPrimary:L,textColorPrimary:z,textColorHoverPrimary:z,textColorPressedPrimary:z,textColorFocusPrimary:z,textColorDisabledPrimary:z,textColorTextPrimary:L,textColorTextHoverPrimary:M,textColorTextPressedPrimary:R,textColorTextFocusPrimary:M,textColorTextDisabledPrimary:P,textColorGhostPrimary:L,textColorGhostHoverPrimary:M,textColorGhostPressedPrimary:R,textColorGhostFocusPrimary:M,textColorGhostDisabledPrimary:L,borderPrimary:`1px solid ${L}`,borderHoverPrimary:`1px solid ${M}`,borderPressedPrimary:`1px solid ${R}`,borderFocusPrimary:`1px solid ${M}`,borderDisabledPrimary:`1px solid ${L}`,rippleColorPrimary:L,colorInfo:U,colorHoverInfo:W,colorPressedInfo:V,colorFocusInfo:W,colorDisabledInfo:U,textColorInfo:z,textColorHoverInfo:z,textColorPressedInfo:z,textColorFocusInfo:z,textColorDisabledInfo:z,textColorTextInfo:U,textColorTextHoverInfo:W,textColorTextPressedInfo:V,textColorTextFocusInfo:W,textColorTextDisabledInfo:P,textColorGhostInfo:U,textColorGhostHoverInfo:W,textColorGhostPressedInfo:V,textColorGhostFocusInfo:W,textColorGhostDisabledInfo:U,borderInfo:`1px solid ${U}`,borderHoverInfo:`1px solid ${W}`,borderPressedInfo:`1px solid ${V}`,borderFocusInfo:`1px solid ${W}`,borderDisabledInfo:`1px solid ${U}`,rippleColorInfo:U,colorSuccess:Q,colorHoverSuccess:K,colorPressedSuccess:G,colorFocusSuccess:K,colorDisabledSuccess:Q,textColorSuccess:z,textColorHoverSuccess:z,textColorPressedSuccess:z,textColorFocusSuccess:z,textColorDisabledSuccess:z,textColorTextSuccess:Q,textColorTextHoverSuccess:K,textColorTextPressedSuccess:G,textColorTextFocusSuccess:K,textColorTextDisabledSuccess:P,textColorGhostSuccess:Q,textColorGhostHoverSuccess:K,textColorGhostPressedSuccess:G,textColorGhostFocusSuccess:K,textColorGhostDisabledSuccess:Q,borderSuccess:`1px solid ${Q}`,borderHoverSuccess:`1px solid ${K}`,borderPressedSuccess:`1px solid ${G}`,borderFocusSuccess:`1px solid ${K}`,borderDisabledSuccess:`1px solid ${Q}`,rippleColorSuccess:Q,colorWarning:X,colorHoverWarning:J,colorPressedWarning:re,colorFocusWarning:J,colorDisabledWarning:X,textColorWarning:z,textColorHoverWarning:z,textColorPressedWarning:z,textColorFocusWarning:z,textColorDisabledWarning:z,textColorTextWarning:X,textColorTextHoverWarning:J,textColorTextPressedWarning:re,textColorTextFocusWarning:J,textColorTextDisabledWarning:P,textColorGhostWarning:X,textColorGhostHoverWarning:J,textColorGhostPressedWarning:re,textColorGhostFocusWarning:J,textColorGhostDisabledWarning:X,borderWarning:`1px solid ${X}`,borderHoverWarning:`1px solid ${J}`,borderPressedWarning:`1px solid ${re}`,borderFocusWarning:`1px solid ${J}`,borderDisabledWarning:`1px solid ${X}`,rippleColorWarning:X,colorError:fe,colorHoverError:Z,colorPressedError:ie,colorFocusError:Z,colorDisabledError:fe,textColorError:z,textColorHoverError:z,textColorPressedError:z,textColorFocusError:z,textColorDisabledError:z,textColorTextError:fe,textColorTextHoverError:Z,textColorTextPressedError:ie,textColorTextFocusError:Z,textColorTextDisabledError:P,textColorGhostError:fe,textColorGhostHoverError:Z,textColorGhostPressedError:ie,textColorGhostFocusError:Z,textColorGhostDisabledError:fe,borderError:`1px solid ${fe}`,borderHoverError:`1px solid ${Z}`,borderPressedError:`1px solid ${ie}`,borderFocusError:`1px solid ${Z}`,borderDisabledError:`1px solid ${fe}`,rippleColorError:fe,waveOpacity:"0.6",fontWeight:ce,fontWeightStrong:ue})},buttonLight={name:"Button",common:commonLight,self:self$I},buttonLight$1=buttonLight,buttonDark={name:"Button",common:commonDark,self(d){const g=self$I(d);return g.waveOpacity="0.8",g.colorOpacitySecondary="0.16",g.colorOpacitySecondaryHover="0.2",g.colorOpacitySecondaryPressed="0.12",g}},buttonDark$1=buttonDark,style$e=c$3([cB("button",`
  1092. margin: 0;
  1093. font-weight: var(--n-font-weight);
  1094. line-height: 1;
  1095. font-family: inherit;
  1096. padding: var(--n-padding);
  1097. height: var(--n-height);
  1098. font-size: var(--n-font-size);
  1099. border-radius: var(--n-border-radius);
  1100. color: var(--n-text-color);
  1101. background-color: var(--n-color);
  1102. width: var(--n-width);
  1103. white-space: nowrap;
  1104. outline: none;
  1105. position: relative;
  1106. z-index: auto;
  1107. border: none;
  1108. display: inline-flex;
  1109. flex-wrap: nowrap;
  1110. flex-shrink: 0;
  1111. align-items: center;
  1112. justify-content: center;
  1113. user-select: none;
  1114. -webkit-user-select: none;
  1115. text-align: center;
  1116. cursor: pointer;
  1117. text-decoration: none;
  1118. transition:
  1119. color .3s var(--n-bezier),
  1120. background-color .3s var(--n-bezier),
  1121. opacity .3s var(--n-bezier),
  1122. border-color .3s var(--n-bezier);
  1123. `,[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",`
  1124. pointer-events: none;
  1125. top: 0;
  1126. right: 0;
  1127. bottom: 0;
  1128. left: 0;
  1129. animation-iteration-count: 1;
  1130. animation-duration: var(--n-ripple-duration);
  1131. animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
  1132. `,[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",`
  1133. position: absolute;
  1134. left: 0;
  1135. top: 0;
  1136. right: 0;
  1137. bottom: 0;
  1138. border-radius: inherit;
  1139. transition: border-color .3s var(--n-bezier);
  1140. pointer-events: none;
  1141. `),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("icon",`
  1142. margin: var(--n-icon-margin);
  1143. margin-left: 0;
  1144. height: var(--n-icon-size);
  1145. width: var(--n-icon-size);
  1146. max-width: var(--n-icon-size);
  1147. font-size: var(--n-icon-size);
  1148. position: relative;
  1149. flex-shrink: 0;
  1150. `,[cB("icon-slot",`
  1151. height: var(--n-icon-size);
  1152. width: var(--n-icon-size);
  1153. position: absolute;
  1154. left: 0;
  1155. top: 50%;
  1156. transform: translateY(-50%);
  1157. display: flex;
  1158. align-items: center;
  1159. justify-content: center;
  1160. `,[iconSwitchTransition({top:"50%",originalTransform:"translateY(-50%)"})]),fadeInWidthExpandTransition()]),cE("content",`
  1161. display: flex;
  1162. align-items: center;
  1163. flex-wrap: nowrap;
  1164. min-width: 0;
  1165. `,[c$3("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block",`
  1166. display: flex;
  1167. width: 100%;
  1168. `),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 g=ref(null),b=ref(null),A=ref(!1),w=useMemo(()=>!d.quaternary&&!d.tertiary&&!d.secondary&&!d.text&&(!d.color||d.ghost||d.dashed)&&d.bordered),C=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:x}=useFormItem({},{defaultSize:"medium",mergedSize:V=>{const{size:Q}=d;if(Q)return Q;const{size:K}=C;if(K)return K;const{mergedSize:G}=V||{};return G?G.value:"medium"}}),S=computed(()=>d.focusable&&!d.disabled),E=V=>{var Q;S.value||V.preventDefault(),!d.nativeFocusBehavior&&(V.preventDefault(),!d.disabled&&S.value&&((Q=g.value)===null||Q===void 0||Q.focus({preventScroll:!0})))},B=V=>{var Q;if(!d.disabled&&!d.loading){const{onClick:K}=d;K&&call$1(K,V),d.text||(Q=b.value)===null||Q===void 0||Q.play()}},$=V=>{switch(V.key){case"Enter":if(!d.keyboard)return;A.value=!1}},P=V=>{switch(V.key){case"Enter":if(!d.keyboard||d.loading){V.preventDefault();return}A.value=!0}},k=()=>{A.value=!1},{inlineThemeDisabled:M,mergedClsPrefixRef:R,mergedRtlRef:F}=useConfig(d),L=useTheme("Button","-button",style$e,buttonLight$1,d,R),z=useRtl("Button",F,R),U=computed(()=>{const V=L.value,{common:{cubicBezierEaseInOut:Q,cubicBezierEaseOut:K},self:G}=V,{rippleDuration:X,opacityDisabled:J,fontWeight:re,fontWeightStrong:fe}=G,Z=x.value,{dashed:ie,type:ce,ghost:me,text:ne,color:te,round:ue,circle:ae,textColor:ye,secondary:Oe,tertiary:Ye,quaternary:et,strong:ht}=d,Te={"font-weight":ht?fe:re};let Le={"--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 Re=ce==="tertiary",$e=ce==="default",qe=Re?"default":ce;if(ne){const de=ye||te;Le={"--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":de||G[createKey("textColorText",qe)],"--n-text-color-hover":de?createHoverColor(de):G[createKey("textColorTextHover",qe)],"--n-text-color-pressed":de?createPressedColor(de):G[createKey("textColorTextPressed",qe)],"--n-text-color-focus":de?createHoverColor(de):G[createKey("textColorTextHover",qe)],"--n-text-color-disabled":de||G[createKey("textColorTextDisabled",qe)]}}else if(me||ie){const de=ye||te;Le={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":te||G[createKey("rippleColor",qe)],"--n-text-color":de||G[createKey("textColorGhost",qe)],"--n-text-color-hover":de?createHoverColor(de):G[createKey("textColorGhostHover",qe)],"--n-text-color-pressed":de?createPressedColor(de):G[createKey("textColorGhostPressed",qe)],"--n-text-color-focus":de?createHoverColor(de):G[createKey("textColorGhostHover",qe)],"--n-text-color-disabled":de||G[createKey("textColorGhostDisabled",qe)]}}else if(Oe){const de=$e?G.textColor:Re?G.textColorTertiary:G[createKey("color",qe)],ve=te||de,Pe=ce!=="default"&&ce!=="tertiary";Le={"--n-color":Pe?changeColor(ve,{alpha:Number(G.colorOpacitySecondary)}):G.colorSecondary,"--n-color-hover":Pe?changeColor(ve,{alpha:Number(G.colorOpacitySecondaryHover)}):G.colorSecondaryHover,"--n-color-pressed":Pe?changeColor(ve,{alpha:Number(G.colorOpacitySecondaryPressed)}):G.colorSecondaryPressed,"--n-color-focus":Pe?changeColor(ve,{alpha:Number(G.colorOpacitySecondaryHover)}):G.colorSecondaryHover,"--n-color-disabled":G.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ve,"--n-text-color-hover":ve,"--n-text-color-pressed":ve,"--n-text-color-focus":ve,"--n-text-color-disabled":ve}}else if(Ye||et){const de=$e?G.textColor:Re?G.textColorTertiary:G[createKey("color",qe)],ve=te||de;Ye?(Le["--n-color"]=G.colorTertiary,Le["--n-color-hover"]=G.colorTertiaryHover,Le["--n-color-pressed"]=G.colorTertiaryPressed,Le["--n-color-focus"]=G.colorSecondaryHover,Le["--n-color-disabled"]=G.colorTertiary):(Le["--n-color"]=G.colorQuaternary,Le["--n-color-hover"]=G.colorQuaternaryHover,Le["--n-color-pressed"]=G.colorQuaternaryPressed,Le["--n-color-focus"]=G.colorQuaternaryHover,Le["--n-color-disabled"]=G.colorQuaternary),Le["--n-ripple-color"]="#0000",Le["--n-text-color"]=ve,Le["--n-text-color-hover"]=ve,Le["--n-text-color-pressed"]=ve,Le["--n-text-color-focus"]=ve,Le["--n-text-color-disabled"]=ve}else Le={"--n-color":te||G[createKey("color",qe)],"--n-color-hover":te?createHoverColor(te):G[createKey("colorHover",qe)],"--n-color-pressed":te?createPressedColor(te):G[createKey("colorPressed",qe)],"--n-color-focus":te?createHoverColor(te):G[createKey("colorFocus",qe)],"--n-color-disabled":te||G[createKey("colorDisabled",qe)],"--n-ripple-color":te||G[createKey("rippleColor",qe)],"--n-text-color":ye||(te?G.textColorPrimary:Re?G.textColorTertiary:G[createKey("textColor",qe)]),"--n-text-color-hover":ye||(te?G.textColorHoverPrimary:G[createKey("textColorHover",qe)]),"--n-text-color-pressed":ye||(te?G.textColorPressedPrimary:G[createKey("textColorPressed",qe)]),"--n-text-color-focus":ye||(te?G.textColorFocusPrimary:G[createKey("textColorFocus",qe)]),"--n-text-color-disabled":ye||(te?G.textColorDisabledPrimary:G[createKey("textColorDisabled",qe)])};let rt={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ne?rt={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:rt={"--n-border":G[createKey("border",qe)],"--n-border-hover":G[createKey("borderHover",qe)],"--n-border-pressed":G[createKey("borderPressed",qe)],"--n-border-focus":G[createKey("borderFocus",qe)],"--n-border-disabled":G[createKey("borderDisabled",qe)]};const{[createKey("height",Z)]:Xe,[createKey("fontSize",Z)]:he,[createKey("padding",Z)]:we,[createKey("paddingRound",Z)]:Be,[createKey("iconSize",Z)]:Ne,[createKey("borderRadius",Z)]:Se,[createKey("iconMargin",Z)]:q,waveOpacity:se}=G,ge={"--n-width":ae&&!ne?Xe:"initial","--n-height":ne?"initial":Xe,"--n-font-size":he,"--n-padding":ae||ne?"initial":ue?Be:we,"--n-icon-size":Ne,"--n-icon-margin":q,"--n-border-radius":ne?"initial":ae||ue?Xe:Se};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":Q,"--n-bezier-ease-out":K,"--n-ripple-duration":X,"--n-opacity-disabled":J,"--n-wave-opacity":se},Te),Le),rt),ge)}),W=M?useThemeClass("button",computed(()=>{let V="";const{dashed:Q,type:K,ghost:G,text:X,color:J,round:re,circle:fe,textColor:Z,secondary:ie,tertiary:ce,quaternary:me,strong:ne}=d;Q&&(V+="a"),G&&(V+="b"),X&&(V+="c"),re&&(V+="d"),fe&&(V+="e"),ie&&(V+="f"),ce&&(V+="g"),me&&(V+="h"),ne&&(V+="i"),J&&(V+="j"+color2Class(J)),Z&&(V+="k"+color2Class(Z));const{value:te}=x;return V+="l"+te[0],V+="m"+K[0],V}),U,d):void 0;return{selfElRef:g,waveElRef:b,mergedClsPrefix:R,mergedFocusable:S,mergedSize:x,showBorder:w,enterPressed:A,rtlEnabled:z,handleMousedown:E,handleKeydown:P,handleBlur:k,handleKeyup:$,handleClick:B,customColorCssVars:computed(()=>{const{color:V}=d;if(!V)return null;const Q=createHoverColor(V);return{"--n-border-color":V,"--n-border-color-hover":Q,"--n-border-color-pressed":createPressedColor(V),"--n-border-color-focus":Q,"--n-border-color-disabled":V}}),cssVars:M?void 0:U,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender}},render(){const{mergedClsPrefix:d,tag:g,onRender:b}=this;b==null||b();const A=resolveWrappedSlot(this.$slots.default,w=>w&&h$1("span",{class:`${d}-button__content`},w));return h$1(g,{ref:"selfElRef",class:[this.themeClass,`${d}-button`,`${d}-button--${this.type}-type`,`${d}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${d}-button--rtl`,this.disabled&&`${d}-button--disabled`,this.block&&`${d}-button--block`,this.enterPressed&&`${d}-button--pressed`,!this.text&&this.dashed&&`${d}-button--dashed`,this.color&&`${d}-button--color`,this.secondary&&`${d}-button--secondary`,this.loading&&`${d}-button--loading`,this.ghost&&`${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"&&A,h$1(NFadeInExpandTransition,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,w=>(this.loading||this.renderIcon||w)&&h$1("span",{class:`${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:`${d}-icon-slot`,strokeWidth:20}):h$1("div",{key:"icon",class:`${d}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():w)})))}),this.iconPlacement==="left"&&A,this.text?null:h$1(NBaseWave,{ref:"waveElRef",clsPrefix:d}),this.showBorder?h$1("div",{"aria-hidden":!0,class:`${d}-button__border`,style:this.customColorCssVars}):null,this.showBorder?h$1("div",{"aria-hidden":!0,class:`${d}-button__state-border`,style:this.customColorCssVars}):null)}}),NButton=Button,XButton=Button,commonVariables$e={titleFontSize:"22px"},self$H=d=>{const{borderRadius:g,fontSize:b,lineHeight:A,textColor2:w,textColor1:C,textColorDisabled:x,dividerColor:S,fontWeightStrong:E,primaryColor:B,baseColor:$,hoverColor:P,cardColor:k,modalColor:M,popoverColor:R}=d;return Object.assign(Object.assign({},commonVariables$e),{borderRadius:g,borderColor:composite(k,S),borderColorModal:composite(M,S),borderColorPopover:composite(R,S),textColor:w,titleFontWeight:E,titleTextColor:C,dayTextColor:x,fontSize:b,lineHeight:A,dateColorCurrent:B,dateTextColorCurrent:$,cellColorHover:composite(k,P),cellColorHoverModal:composite(M,P),cellColorHoverPopover:composite(R,P),cellColor:k,cellColorModal:M,cellColorPopover:R,barColor:B})},calendarDark={name:"Calendar",common:commonDark,peers:{Button:buttonDark$1},self:self$H},calendarDark$1=calendarDark,self$G=d=>{const{fontSize:g,boxShadow2:b,popoverColor:A,textColor2:w,borderRadius:C,borderColor:x,heightSmall:S,heightMedium:E,heightLarge:B,fontSizeSmall:$,fontSizeMedium:P,fontSizeLarge:k,dividerColor:M}=d;return{panelFontSize:g,boxShadow:b,color:A,textColor:w,borderRadius:C,border:`1px solid ${x}`,heightSmall:S,heightMedium:E,heightLarge:B,fontSizeSmall:$,fontSizeMedium:P,fontSizeLarge:k,dividerColor:M}},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:g,borderRadius:b,lineHeight:A,fontSize:w,cardColor:C,textColor2:x,textColor1:S,dividerColor:E,fontWeightStrong:B,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,closeColorHover:M,closeColorPressed:R,modalColor:F,boxShadow1:L,popoverColor:z,actionColor:U}=d;return Object.assign(Object.assign({},commonVariables$d),{lineHeight:A,color:C,colorModal:F,colorPopover:z,colorTarget:g,colorEmbedded:U,colorEmbeddedModal:U,colorEmbeddedPopover:U,textColor:x,titleTextColor:S,borderColor:E,actionColor:U,titleFontWeight:B,closeColorHover:M,closeColorPressed:R,closeBorderRadius:b,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,fontSizeSmall:w,fontSizeMedium:w,fontSizeLarge:w,fontSizeHuge:w,boxShadow:L,borderRadius:b})},cardLight={name:"Card",common:commonLight,self:self$F},cardLight$1=cardLight,cardDark={name:"Card",common:commonDark,self(d){const g=self$F(d),{cardColor:b,modalColor:A,popoverColor:w}=d;return g.colorEmbedded=b,g.colorEmbeddedModal=A,g.colorEmbeddedPopover=w,g}},cardDark$1=cardDark,style$d=c$3([cB("card",`
  1169. font-size: var(--n-font-size);
  1170. line-height: var(--n-line-height);
  1171. display: flex;
  1172. flex-direction: column;
  1173. width: 100%;
  1174. box-sizing: border-box;
  1175. position: relative;
  1176. border-radius: var(--n-border-radius);
  1177. background-color: var(--n-color);
  1178. color: var(--n-text-color);
  1179. word-break: break-word;
  1180. transition:
  1181. color .3s var(--n-bezier),
  1182. background-color .3s var(--n-bezier),
  1183. box-shadow .3s var(--n-bezier),
  1184. border-color .3s var(--n-bezier);
  1185. `,[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",`
  1186. margin: 0 var(--n-padding-left);
  1187. padding: var(--n-padding-bottom) 0;
  1188. `)])]),cM("footer-segmented",[c$3(">",[cE("footer",{paddingTop:"var(--n-padding-bottom)"})])]),cM("footer-soft-segmented",[c$3(">",[cE("footer",`
  1189. padding: var(--n-padding-bottom) 0;
  1190. margin: 0 var(--n-padding-left);
  1191. `)])]),c$3(">",[cB("card-header",`
  1192. box-sizing: border-box;
  1193. display: flex;
  1194. align-items: center;
  1195. font-size: var(--n-title-font-size);
  1196. padding:
  1197. var(--n-padding-top)
  1198. var(--n-padding-left)
  1199. var(--n-padding-bottom)
  1200. var(--n-padding-left);
  1201. `,[cE("main",`
  1202. font-weight: var(--n-title-font-weight);
  1203. transition: color .3s var(--n-bezier);
  1204. flex: 1;
  1205. min-width: 0;
  1206. color: var(--n-title-text-color);
  1207. `),cE("extra",`
  1208. display: flex;
  1209. align-items: center;
  1210. font-size: var(--n-font-size);
  1211. font-weight: 400;
  1212. transition: color .3s var(--n-bezier);
  1213. color: var(--n-text-color);
  1214. `),cE("close",`
  1215. margin: 0 0 0 8px;
  1216. transition:
  1217. background-color .3s var(--n-bezier),
  1218. color .3s var(--n-bezier);
  1219. `)]),cE("action",`
  1220. box-sizing: border-box;
  1221. transition:
  1222. background-color .3s var(--n-bezier),
  1223. border-color .3s var(--n-bezier);
  1224. background-clip: padding-box;
  1225. background-color: var(--n-action-color);
  1226. `),cE("content","flex: 1; min-width: 0;"),cE("content, footer",`
  1227. box-sizing: border-box;
  1228. padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
  1229. font-size: var(--n-font-size);
  1230. `,[c$3("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),cE("action",`
  1231. background-color: var(--n-action-color);
  1232. padding: var(--n-padding-bottom) var(--n-padding-left);
  1233. border-bottom-left-radius: var(--n-border-radius);
  1234. border-bottom-right-radius: var(--n-border-radius);
  1235. `)]),cB("card-cover",`
  1236. overflow: hidden;
  1237. width: 100%;
  1238. border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
  1239. `,[c$3("img",`
  1240. display: block;
  1241. width: 100%;
  1242. `)]),cM("bordered",`
  1243. border: 1px solid var(--n-border-color);
  1244. `,[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",`
  1245. background-color: var(--n-color-embedded);
  1246. `)]),insideModal(cB("card",`
  1247. background: var(--n-color-modal);
  1248. `,[cM("embedded",`
  1249. background-color: var(--n-color-embedded-modal);
  1250. `)])),insidePopover(cB("card",`
  1251. background: var(--n-color-popover);
  1252. `,[cM("embedded",`
  1253. background-color: var(--n-color-embedded-popover);
  1254. `)]))]),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 g=()=>{const{onClose:B}=d;B&&call$1(B)},{inlineThemeDisabled:b,mergedClsPrefixRef:A,mergedRtlRef:w}=useConfig(d),C=useTheme("Card","-card",style$d,cardLight$1,d,A),x=useRtl("Card",w,A),S=computed(()=>{const{size:B}=d,{self:{color:$,colorModal:P,colorTarget:k,textColor:M,titleTextColor:R,titleFontWeight:F,borderColor:L,actionColor:z,borderRadius:U,lineHeight:W,closeIconColor:V,closeIconColorHover:Q,closeIconColorPressed:K,closeColorHover:G,closeColorPressed:X,closeBorderRadius:J,closeIconSize:re,closeSize:fe,boxShadow:Z,colorPopover:ie,colorEmbedded:ce,colorEmbeddedModal:me,colorEmbeddedPopover:ne,[createKey("padding",B)]:te,[createKey("fontSize",B)]:ue,[createKey("titleFontSize",B)]:ae},common:{cubicBezierEaseInOut:ye}}=C.value,{top:Oe,left:Ye,bottom:et}=getMargin(te);return{"--n-bezier":ye,"--n-border-radius":U,"--n-color":$,"--n-color-modal":P,"--n-color-popover":ie,"--n-color-embedded":ce,"--n-color-embedded-modal":me,"--n-color-embedded-popover":ne,"--n-color-target":k,"--n-text-color":M,"--n-line-height":W,"--n-action-color":z,"--n-title-text-color":R,"--n-title-font-weight":F,"--n-close-icon-color":V,"--n-close-icon-color-hover":Q,"--n-close-icon-color-pressed":K,"--n-close-color-hover":G,"--n-close-color-pressed":X,"--n-border-color":L,"--n-box-shadow":Z,"--n-padding-top":Oe,"--n-padding-bottom":et,"--n-padding-left":Ye,"--n-font-size":ue,"--n-title-font-size":ae,"--n-close-size":fe,"--n-close-icon-size":re,"--n-close-border-radius":J}}),E=b?useThemeClass("card",computed(()=>d.size[0]),S,d):void 0;return{rtlEnabled:x,mergedClsPrefix:A,mergedTheme:C,handleCloseClick:g,cssVars:b?void 0:S,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{segmented:d,bordered:g,hoverable:b,mergedClsPrefix:A,rtlEnabled:w,onRender:C,embedded:x,tag:S,$slots:E}=this;return C==null||C(),h$1(S,{class:[`${A}-card`,this.themeClass,x&&`${A}-card--embedded`,{[`${A}-card--rtl`]:w,[`${A}-card--content${typeof d!="boolean"&&d.content==="soft"?"-soft":""}-segmented`]:d===!0||d!==!1&&d.content,[`${A}-card--footer${typeof d!="boolean"&&d.footer==="soft"?"-soft":""}-segmented`]:d===!0||d!==!1&&d.footer,[`${A}-card--action-segmented`]:d===!0||d!==!1&&d.action,[`${A}-card--bordered`]:g,[`${A}-card--hoverable`]:b}],style:this.cssVars,role:this.role},resolveWrappedSlot(E.cover,B=>B&&h$1("div",{class:`${A}-card-cover`,role:"none"},B)),resolveWrappedSlot(E.header,B=>B||this.title||this.closable?h$1("div",{class:`${A}-card-header`,style:this.headerStyle},h$1("div",{class:`${A}-card-header__main`,role:"heading"},B||this.title),resolveWrappedSlot(E["header-extra"],$=>$&&h$1("div",{class:`${A}-card-header__extra`,style:this.headerExtraStyle},$)),this.closable?h$1(NBaseClose,{clsPrefix:A,class:`${A}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(E.default,B=>B&&h$1("div",{class:`${A}-card__content`,style:this.contentStyle,role:"none"},B)),resolveWrappedSlot(E.footer,B=>B&&[h$1("div",{class:`${A}-card__footer`,style:this.footerStyle,role:"none"},B)]),resolveWrappedSlot(E.action,B=>B&&h$1("div",{class:`${A}-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:g,inputColorDisabled:b,cardColor:A,modalColor:w,popoverColor:C,textColorDisabled:x,borderColor:S,primaryColor:E,textColor2:B,fontSizeSmall:$,fontSizeMedium:P,fontSizeLarge:k,borderRadiusSmall:M,lineHeight:R}=d;return Object.assign(Object.assign({},commonVariables$c),{labelLineHeight:R,fontSizeSmall:$,fontSizeMedium:P,fontSizeLarge:k,borderRadius:M,color:g,colorChecked:E,colorDisabled:b,colorDisabledChecked:b,colorTableHeader:A,colorTableHeaderModal:w,colorTableHeaderPopover:C,checkMarkColor:g,checkMarkColorDisabled:x,checkMarkColorDisabledChecked:x,border:`1px solid ${S}`,borderDisabled:`1px solid ${S}`,borderDisabledChecked:`1px solid ${S}`,borderChecked:`1px solid ${E}`,borderFocus:`1px solid ${E}`,boxShadowFocus:`0 0 0 2px ${changeColor(E,{alpha:.3})}`,textColor:B,textColorDisabled:x})},checkboxDark={name:"Checkbox",common:commonDark,self(d){const{cardColor:g}=d,b=self$D(d);return b.color="#0000",b.checkMarkColor=g,b}},checkboxDark$1=checkboxDark,self$C=d=>{const{borderRadius:g,boxShadow2:b,popoverColor:A,textColor2:w,textColor3:C,primaryColor:x,textColorDisabled:S,dividerColor:E,hoverColor:B,fontSizeMedium:$,heightMedium:P}=d;return{menuBorderRadius:g,menuColor:A,menuBoxShadow:b,menuDividerColor:E,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:C,optionHeight:P,optionFontSize:$,optionColorHover:B,optionTextColor:w,optionTextColorActive:x,optionTextColorDisabled:S,optionCheckMarkColor:x,loadingColor:x,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:g,fontSize:b,fontWeightStrong:A,textColor3:w}=d;return{textColor:g,fontSize:b,fontWeightStrong:A,"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:w}}},codeDark$1=codeDark,self$B=d=>{const{fontWeight:g,textColor1:b,textColor2:A,textColorDisabled:w,dividerColor:C,fontSize:x}=d;return{titleFontSize:x,titleFontWeight:g,dividerColor:C,titleTextColor:b,titleTextColorDisabled:w,fontSize:x,textColor:A,arrowColor:A,arrowColorDisabled:w,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:g}=d;return{bezier:g}},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 g=inject(configProviderInjectionKey,null),b=computed(()=>{const{theme:R}=d;if(R===null)return;const F=g==null?void 0:g.mergedThemeRef.value;return R===void 0?F:F===void 0?R:Object.assign({},F,R)}),A=computed(()=>{const{themeOverrides:R}=d;if(R!==null){if(R===void 0)return g==null?void 0:g.mergedThemeOverridesRef.value;{const F=g==null?void 0:g.mergedThemeOverridesRef.value;return F===void 0?R:merge$2({},F,R)}}}),w=useMemo(()=>{const{namespace:R}=d;return R===void 0?g==null?void 0:g.mergedNamespaceRef.value:R}),C=useMemo(()=>{const{bordered:R}=d;return R===void 0?g==null?void 0:g.mergedBorderedRef.value:R}),x=computed(()=>{const{icons:R}=d;return R===void 0?g==null?void 0:g.mergedIconsRef.value:R}),S=computed(()=>{const{componentOptions:R}=d;return R!==void 0?R:g==null?void 0:g.mergedComponentPropsRef.value}),E=computed(()=>{const{clsPrefix:R}=d;return R!==void 0?R:g==null?void 0:g.mergedClsPrefixRef.value}),B=computed(()=>{var R;const{rtl:F}=d;if(F===void 0)return g==null?void 0:g.mergedRtlRef.value;const L={};for(const z of F)L[z.name]=markRaw(z),(R=z.peers)===null||R===void 0||R.forEach(U=>{U.name in L||(L[U.name]=markRaw(U))});return L}),$=computed(()=>d.breakpoints||(g==null?void 0:g.mergedBreakpointsRef.value)),P=d.inlineThemeDisabled||(g==null?void 0:g.inlineThemeDisabled),k=d.preflightStyleDisabled||(g==null?void 0:g.preflightStyleDisabled),M=computed(()=>{const{value:R}=b,{value:F}=A,L=F&&Object.keys(F).length!==0,z=R==null?void 0:R.name;return z?L?`${z}-${murmur2(JSON.stringify(A.value))}`:z:L?murmur2(JSON.stringify(A.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:M,mergedBreakpointsRef:$,mergedRtlRef:B,mergedIconsRef:x,mergedComponentPropsRef:S,mergedBorderedRef:C,mergedNamespaceRef:w,mergedClsPrefixRef:E,mergedLocaleRef:computed(()=>{const{locale:R}=d;if(R!==null)return R===void 0?g==null?void 0:g.mergedLocaleRef.value:R}),mergedDateLocaleRef:computed(()=>{const{dateLocale:R}=d;if(R!==null)return R===void 0?g==null?void 0:g.mergedDateLocaleRef.value:R}),mergedHljsRef:computed(()=>{const{hljs:R}=d;return R===void 0?g==null?void 0:g.mergedHljsRef.value:R}),mergedKatexRef:computed(()=>{const{katex:R}=d;return R===void 0?g==null?void 0:g.mergedKatexRef.value:R}),mergedThemeRef:b,mergedThemeOverridesRef:A,inlineThemeDisabled:P||!1,preflightStyleDisabled:k||!1}),{mergedClsPrefix:E,mergedBordered:C,mergedNamespace:w,mergedTheme:b,mergedThemeOverrides:A}},render(){var d,g,b,A;return this.abstract?(A=(b=this.$slots).default)===null||A===void 0?void 0:A.call(b):h$1(this.as||this.tag,{class:`${this.mergedClsPrefix||defaultClsPrefix}-config-provider`},(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d))}}),popselect={name:"Popselect",common:commonDark,peers:{Popover:popoverDark$1,InternalSelectMenu:internalSelectMenuDark$1}},popselectDark=popselect;function self$z(d){const{boxShadow2:g}=d;return{menuBoxShadow:g}}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",`
  1255. z-index: auto;
  1256. outline: none;
  1257. width: 100%;
  1258. position: relative;
  1259. `),cB("select-menu",`
  1260. margin: 4px 0;
  1261. box-shadow: var(--n-menu-box-shadow);
  1262. `,[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:g,mergedBorderedRef:b,namespaceRef:A,inlineThemeDisabled:w}=useConfig(d),C=useTheme("Select","-select",style$c,selectLight$1,d,g),x=ref(d.defaultValue),S=toRef$1(d,"value"),E=useMergedState(S,x),B=ref(!1),$=ref(""),P=computed(()=>{const{valueField:be,childrenField:Fe}=d,We=createTmOptions(be,Fe);return createTreeMate(Z.value,We)}),k=computed(()=>createValOptMap(re.value,d.valueField,d.childrenField)),M=ref(!1),R=useMergedState(toRef$1(d,"show"),M),F=ref(null),L=ref(null),z=ref(null),{localeRef:U}=useLocale("Select"),W=computed(()=>{var be;return(be=d.placeholder)!==null&&be!==void 0?be:U.value.placeholder}),V=useCompitable(d,["items","options"]),Q=[],K=ref([]),G=ref([]),X=ref(new Map),J=computed(()=>{const{fallbackOption:be}=d;if(be===void 0){const{labelField:Fe,valueField:We}=d;return it=>({[Fe]:String(it),[We]:it})}return be===!1?!1:Fe=>Object.assign(be(Fe),{value:Fe})}),re=computed(()=>G.value.concat(K.value).concat(V.value)),fe=computed(()=>{const{filter:be}=d;if(be)return be;const{labelField:Fe,valueField:We}=d;return(it,gt)=>{if(!gt)return!1;const yt=gt[Fe];if(typeof yt=="string")return patternMatched(it,yt);const Ae=gt[We];return typeof Ae=="string"?patternMatched(it,Ae):typeof Ae=="number"?patternMatched(it,String(Ae)):!1}}),Z=computed(()=>{if(d.remote)return V.value;{const{value:be}=re,{value:Fe}=$;return!Fe.length||!d.filterable?be:filterOptions(be,fe.value,Fe,d.childrenField)}});function ie(be){const Fe=d.remote,{value:We}=X,{value:it}=k,{value:gt}=J,yt=[];return be.forEach(Ae=>{if(it.has(Ae))yt.push(it.get(Ae));else if(Fe&&We.has(Ae))yt.push(We.get(Ae));else if(gt){const Ie=gt(Ae);Ie&&yt.push(Ie)}}),yt}const ce=computed(()=>{if(d.multiple){const{value:be}=E;return Array.isArray(be)?ie(be):[]}return null}),me=computed(()=>{const{value:be}=E;return!d.multiple&&!Array.isArray(be)?be===null?null:ie([be])[0]||null:null}),ne=useFormItem(d),{mergedSizeRef:te,mergedDisabledRef:ue,mergedStatusRef:ae}=ne;function ye(be,Fe){const{onChange:We,"onUpdate:value":it,onUpdateValue:gt}=d,{nTriggerFormChange:yt,nTriggerFormInput:Ae}=ne;We&&call$1(We,be,Fe),gt&&call$1(gt,be,Fe),it&&call$1(it,be,Fe),x.value=be,yt(),Ae()}function Oe(be){const{onBlur:Fe}=d,{nTriggerFormBlur:We}=ne;Fe&&call$1(Fe,be),We()}function Ye(){const{onClear:be}=d;be&&call$1(be)}function et(be){const{onFocus:Fe,showOnFocus:We}=d,{nTriggerFormFocus:it}=ne;Fe&&call$1(Fe,be),it(),We&&$e()}function ht(be){const{onSearch:Fe}=d;Fe&&call$1(Fe,be)}function Te(be){const{onScroll:Fe}=d;Fe&&call$1(Fe,be)}function Le(){var be;const{remote:Fe,multiple:We}=d;if(Fe){const{value:it}=X;if(We){const{valueField:gt}=d;(be=ce.value)===null||be===void 0||be.forEach(yt=>{it.set(yt[gt],yt)})}else{const gt=me.value;gt&&it.set(gt[d.valueField],gt)}}}function Re(be){const{onUpdateShow:Fe,"onUpdate:show":We}=d;Fe&&call$1(Fe,be),We&&call$1(We,be),M.value=be}function $e(){ue.value||(Re(!0),M.value=!0,d.filterable&&_t())}function qe(){Re(!1)}function rt(){$.value="",G.value=Q}const Xe=ref(!1);function he(){d.filterable&&(Xe.value=!0)}function we(){d.filterable&&(Xe.value=!1,R.value||rt())}function Be(){ue.value||(R.value?d.filterable?_t():qe():$e())}function Ne(be){var Fe,We;!((We=(Fe=z.value)===null||Fe===void 0?void 0:Fe.selfRef)===null||We===void 0)&&We.contains(be.relatedTarget)||(B.value=!1,Oe(be),qe())}function Se(be){et(be),B.value=!0}function q(be){B.value=!0}function se(be){var Fe;!((Fe=F.value)===null||Fe===void 0)&&Fe.$el.contains(be.relatedTarget)||(B.value=!1,Oe(be),qe())}function ge(){var be;(be=F.value)===null||be===void 0||be.focus(),qe()}function de(be){var Fe;R.value&&(!((Fe=F.value)===null||Fe===void 0)&&Fe.$el.contains(getPreciseEventTarget(be))||qe())}function ve(be){if(!Array.isArray(be))return[];if(J.value)return Array.from(be);{const{remote:Fe}=d,{value:We}=k;if(Fe){const{value:it}=X;return be.filter(gt=>We.has(gt)||it.has(gt))}else return be.filter(it=>We.has(it))}}function Pe(be){De(be.rawNode)}function De(be){if(ue.value)return;const{tag:Fe,remote:We,clearFilterAfterSelect:it,valueField:gt}=d;if(Fe&&!We){const{value:yt}=G,Ae=yt[0]||null;if(Ae){const Ie=K.value;Ie.length?Ie.push(Ae):K.value=[Ae],G.value=Q}}if(We&&X.value.set(be[gt],be),d.multiple){const yt=ve(E.value),Ae=yt.findIndex(Ie=>Ie===be[gt]);if(~Ae){if(yt.splice(Ae,1),Fe&&!We){const Ie=Qe(be[gt]);~Ie&&(K.value.splice(Ie,1),it&&($.value=""))}}else yt.push(be[gt]),it&&($.value="");ye(yt,ie(yt))}else{if(Fe&&!We){const yt=Qe(be[gt]);~yt?K.value=[K.value[yt]]:K.value=Q}mt(),qe(),ye(be[gt],be)}}function Qe(be){return K.value.findIndex(We=>We[d.valueField]===be)}function ot(be){R.value||$e();const{value:Fe}=be.target;$.value=Fe;const{tag:We,remote:it}=d;if(ht(Fe),We&&!it){if(!Fe){G.value=Q;return}const{onCreate:gt}=d,yt=gt?gt(Fe):{[d.labelField]:Fe,[d.valueField]:Fe},{valueField:Ae}=d;V.value.some(Ie=>Ie[Ae]===yt[Ae])||K.value.some(Ie=>Ie[Ae]===yt[Ae])?G.value=Q:G.value=[yt]}}function st(be){be.stopPropagation();const{multiple:Fe}=d;!Fe&&d.filterable&&qe(),Ye(),Fe?ye([],[]):ye(null,null)}function ut(be){!happensIn(be,"action")&&!happensIn(be,"empty")&&be.preventDefault()}function He(be){Te(be)}function ct(be){var Fe,We,it,gt,yt;if(!d.keyboard){be.preventDefault();return}switch(be.key){case" ":if(d.filterable)break;be.preventDefault();case"Enter":if(!(!((Fe=F.value)===null||Fe===void 0)&&Fe.isComposing)){if(R.value){const Ae=(We=z.value)===null||We===void 0?void 0:We.getPendingTmNode();Ae?Pe(Ae):d.filterable||(qe(),mt())}else if($e(),d.tag&&Xe.value){const Ae=G.value[0];if(Ae){const Ie=Ae[d.valueField],{value:ze}=E;d.multiple&&Array.isArray(ze)&&ze.some(Ve=>Ve===Ie)||De(Ae)}}}be.preventDefault();break;case"ArrowUp":if(be.preventDefault(),d.loading)return;R.value&&((it=z.value)===null||it===void 0||it.prev());break;case"ArrowDown":if(be.preventDefault(),d.loading)return;R.value?(gt=z.value)===null||gt===void 0||gt.next():$e();break;case"Escape":R.value&&(markEventEffectPerformed(be),qe()),(yt=F.value)===null||yt===void 0||yt.focus();break}}function mt(){var be;(be=F.value)===null||be===void 0||be.focus()}function _t(){var be;(be=F.value)===null||be===void 0||be.focusInput()}function ft(){var be;R.value&&((be=L.value)===null||be===void 0||be.syncPosition())}Le(),watch(toRef$1(d,"options"),Le);const Ct={focus:()=>{var be;(be=F.value)===null||be===void 0||be.focus()},blur:()=>{var be;(be=F.value)===null||be===void 0||be.blur()}},pt=computed(()=>{const{self:{menuBoxShadow:be}}=C.value;return{"--n-menu-box-shadow":be}}),bt=w?useThemeClass("select",void 0,pt,d):void 0;return Object.assign(Object.assign({},Ct),{mergedStatus:ae,mergedClsPrefix:g,mergedBordered:b,namespace:A,treeMate:P,isMounted:isMounted(),triggerRef:F,menuRef:z,pattern:$,uncontrolledShow:M,mergedShow:R,adjustedTo:useAdjustedTo(d),uncontrolledValue:x,mergedValue:E,followerRef:L,localizedPlaceholder:W,selectedOption:me,selectedOptions:ce,mergedSize:te,mergedDisabled:ue,focused:B,activeWithoutMenuOpen:Xe,inlineThemeDisabled:w,onTriggerInputFocus:he,onTriggerInputBlur:we,handleTriggerOrMenuResize:ft,handleMenuFocus:q,handleMenuBlur:se,handleMenuTabOut:ge,handleTriggerClick:Be,handleToggle:Pe,handleDeleteOption:De,handlePatternInput:ot,handleClear:st,handleTriggerBlur:Ne,handleTriggerFocus:Se,handleKeydown:ct,handleMenuAfterLeave:rt,handleMenuClickOutside:de,handleMenuScroll:He,handleMenuKeydown:ct,handleMenuMousedown:ut,mergedTheme:C,cssVars:w?void 0:pt,themeClass:bt==null?void 0:bt.themeClass,onRender:bt==null?void 0:bt.onRender})},render(){return h$1("div",{class:`${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,g;return[(g=(d=this.$slots).arrow)===null||g===void 0?void 0:g.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,g,b;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:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(g=this.menuProps)===null||g===void 0?void 0:g.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:[(b=this.menuProps)===null||b===void 0?void 0:b.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 A,w;return[(w=(A=this.$slots).empty)===null||w===void 0?void 0:w.call(A)]},action:()=>{var A,w;return[(w=(A=this.$slots).action)===null||w===void 0?void 0:w.call(A)]}}),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:g,primaryColor:b,primaryColorHover:A,primaryColorPressed:w,inputColorDisabled:C,textColorDisabled:x,borderColor:S,borderRadius:E,fontSizeTiny:B,fontSizeSmall:$,fontSizeMedium:P,heightTiny:k,heightSmall:M,heightMedium:R}=d;return Object.assign(Object.assign({},commonVariables$b),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${S}`,buttonBorderHover:`1px solid ${S}`,buttonBorderPressed:`1px solid ${S}`,buttonIconColor:g,buttonIconColorHover:g,buttonIconColorPressed:g,itemTextColor:g,itemTextColorHover:A,itemTextColorPressed:w,itemTextColorActive:b,itemTextColorDisabled:x,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:C,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${b}`,itemBorderDisabled:`1px solid ${S}`,itemBorderRadius:E,itemSizeSmall:k,itemSizeMedium:M,itemSizeLarge:R,itemFontSizeSmall:B,itemFontSizeMedium:$,itemFontSizeLarge:P,jumperFontSizeSmall:B,jumperFontSizeMedium:$,jumperFontSizeLarge:P,jumperTextColor:g,jumperTextColorDisabled:x})},paginationDark={name:"Pagination",common:commonDark,peers:{Select:selectDark$1,Input:inputDark$1,Popselect:popselectDark},self(d){const{primaryColor:g,opacity3:b}=d,A=changeColor(g,{alpha:Number(b)}),w=self$y(d);return w.itemBorderActive=`1px solid ${A}`,w.itemBorderDisabled="1px solid #0000",w}},paginationDark$1=paginationDark,commonVars$8={padding:"8px 14px"},tooltipDark={name:"Tooltip",common:commonDark,peers:{Popover:popoverDark$1},self(d){const{borderRadius:g,boxShadow2:b,popoverColor:A,textColor2:w}=d;return Object.assign(Object.assign({},commonVars$8),{borderRadius:g,boxShadow:b,color:A,textColor:w})}},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:g,primaryColor:b,baseColor:A,textColorDisabled:w,inputColorDisabled:C,textColor2:x,opacityDisabled:S,borderRadius:E,fontSizeSmall:B,fontSizeMedium:$,fontSizeLarge:P,heightSmall:k,heightMedium:M,heightLarge:R,lineHeight:F}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:F,buttonHeightSmall:k,buttonHeightMedium:M,buttonHeightLarge:R,fontSizeSmall:B,fontSizeMedium:$,fontSizeLarge:P,boxShadow:`inset 0 0 0 1px ${g}`,boxShadowActive:`inset 0 0 0 1px ${b}`,boxShadowFocus:`inset 0 0 0 1px ${b}, 0 0 0 2px ${changeColor(b,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${b}`,boxShadowDisabled:`inset 0 0 0 1px ${g}`,color:"#0000",colorDisabled:C,colorActive:"#0000",textColor:x,textColorDisabled:w,dotColorActive:b,dotColorDisabled:g,buttonBorderColor:g,buttonBorderColorActive:b,buttonBorderColorHover:b,buttonColor:"#0000",buttonColorActive:b,buttonTextColor:x,buttonTextColorActive:A,buttonTextColorHover:b,opacityDisabled:S,buttonBoxShadowFocus:`inset 0 0 0 1px ${b}, 0 0 0 2px ${changeColor(b,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${b}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:E})}},radioDark$1=radioDark,self$x=d=>{const{borderColor:g,primaryColor:b,baseColor:A,textColorDisabled:w,inputColorDisabled:C,textColor2:x,opacityDisabled:S,borderRadius:E,fontSizeSmall:B,fontSizeMedium:$,fontSizeLarge:P,heightSmall:k,heightMedium:M,heightLarge:R,lineHeight:F}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:F,buttonHeightSmall:k,buttonHeightMedium:M,buttonHeightLarge:R,fontSizeSmall:B,fontSizeMedium:$,fontSizeLarge:P,boxShadow:`inset 0 0 0 1px ${g}`,boxShadowActive:`inset 0 0 0 1px ${b}`,boxShadowFocus:`inset 0 0 0 1px ${b}, 0 0 0 2px ${changeColor(b,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${b}`,boxShadowDisabled:`inset 0 0 0 1px ${g}`,color:A,colorDisabled:C,colorActive:"#0000",textColor:x,textColorDisabled:w,dotColorActive:b,dotColorDisabled:g,buttonBorderColor:g,buttonBorderColorActive:b,buttonBorderColorHover:g,buttonColor:A,buttonColorActive:A,buttonTextColor:x,buttonTextColorActive:b,buttonTextColorHover:b,opacityDisabled:S,buttonBoxShadowFocus:`inset 0 0 0 1px ${b}, 0 0 0 2px ${changeColor(b,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:E})},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:g,textColor2:b,dividerColor:A,hoverColor:w,popoverColor:C,invertedColor:x,borderRadius:S,fontSizeSmall:E,fontSizeMedium:B,fontSizeLarge:$,fontSizeHuge:P,heightSmall:k,heightMedium:M,heightLarge:R,heightHuge:F,textColor3:L,opacityDisabled:z}=d;return Object.assign(Object.assign({},commonVariables$9),{optionHeightSmall:k,optionHeightMedium:M,optionHeightLarge:R,optionHeightHuge:F,borderRadius:S,fontSizeSmall:E,fontSizeMedium:B,fontSizeLarge:$,fontSizeHuge:P,optionTextColor:b,optionTextColorHover:b,optionTextColorActive:g,optionTextColorChildActive:g,color:C,dividerColor:A,suffixColor:b,prefixColor:b,optionColorHover:w,optionColorActive:changeColor(g,{alpha:.1}),groupHeaderTextColor:L,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:x,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:g,optionColorActiveInverted:g,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:z})},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:g,primaryColor:b,popoverColor:A}=d,w=self$w(d);return w.colorInverted=A,w.optionColorActive=changeColor(b,{alpha:.15}),w.optionColorActiveInverted=g,w.optionColorHoverInverted=g,w}},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:g,modalColor:b,popoverColor:A,textColor2:w,textColor1:C,tableHeaderColor:x,tableColorHover:S,iconColor:E,primaryColor:B,fontWeightStrong:$,borderRadius:P,lineHeight:k,fontSizeSmall:M,fontSizeMedium:R,fontSizeLarge:F,dividerColor:L,heightSmall:z,opacityDisabled:U,tableColorStriped:W}=d;return Object.assign(Object.assign({},commonVariables$8),{actionDividerColor:L,lineHeight:k,borderRadius:P,fontSizeSmall:M,fontSizeMedium:R,fontSizeLarge:F,borderColor:composite(g,L),tdColorHover:composite(g,S),tdColorStriped:composite(g,W),thColor:composite(g,x),thColorHover:composite(composite(g,x),S),tdColor:g,tdTextColor:w,thTextColor:C,thFontWeight:$,thButtonColorHover:S,thIconColor:E,thIconColorActive:B,borderColorModal:composite(b,L),tdColorHoverModal:composite(b,S),tdColorStripedModal:composite(b,W),thColorModal:composite(b,x),thColorHoverModal:composite(composite(b,x),S),tdColorModal:b,borderColorPopover:composite(A,L),tdColorHoverPopover:composite(A,S),tdColorStripedPopover:composite(A,W),thColorPopover:composite(A,x),thColorHoverPopover:composite(composite(A,x),S),tdColorPopover:A,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:z,opacityLoading:U})},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 g=self$v(d);return g.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",g.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",g}},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 g=useFormItem(d,{mergedSize(U){const{size:W}=d;if(W!==void 0)return W;if(x){const{mergedSizeRef:{value:V}}=x;if(V!==void 0)return V}return U?U.mergedSize.value:"medium"},mergedDisabled(U){return!!(d.disabled||x!=null&&x.disabledRef.value||U!=null&&U.disabled.value)}}),{mergedSizeRef:b,mergedDisabledRef:A}=g,w=ref(null),C=ref(null),x=inject(radioGroupInjectionKey,null),S=ref(d.defaultChecked),E=toRef$1(d,"checked"),B=useMergedState(E,S),$=useMemo(()=>x?x.valueRef.value===d.value:B.value),P=useMemo(()=>{const{name:U}=d;if(U!==void 0)return U;if(x)return x.nameRef.value}),k=ref(!1);function M(){if(x){const{doUpdateValue:U}=x,{value:W}=d;call$1(U,W)}else{const{onUpdateChecked:U,"onUpdate:checked":W}=d,{nTriggerFormInput:V,nTriggerFormChange:Q}=g;U&&call$1(U,!0),W&&call$1(W,!0),V(),Q(),S.value=!0}}function R(){A.value||$.value||M()}function F(){R()}function L(){k.value=!1}function z(){k.value=!0}return{mergedClsPrefix:x?x.mergedClsPrefixRef:useConfig(d).mergedClsPrefixRef,inputRef:w,labelRef:C,mergedName:P,mergedDisabled:A,uncontrolledChecked:S,renderSafeChecked:$,focus:k,mergedSize:b,handleRadioInputChange:F,handleRadioInputBlur:L,handleRadioInputFocus:z}}const style$b=cB("radio",`
  1263. line-height: var(--n-label-line-height);
  1264. outline: none;
  1265. position: relative;
  1266. user-select: none;
  1267. -webkit-user-select: none;
  1268. display: inline-flex;
  1269. align-items: flex-start;
  1270. flex-wrap: nowrap;
  1271. font-size: var(--n-font-size);
  1272. word-break: break-word;
  1273. `,[cM("checked",[cE("dot",`
  1274. background-color: var(--n-color-active);
  1275. `)]),cE("dot-wrapper",`
  1276. position: relative;
  1277. flex-shrink: 0;
  1278. flex-grow: 0;
  1279. width: var(--n-radio-size);
  1280. `),cB("radio-input",`
  1281. position: absolute;
  1282. border: 0;
  1283. border-radius: inherit;
  1284. left: 0;
  1285. right: 0;
  1286. top: 0;
  1287. bottom: 0;
  1288. opacity: 0;
  1289. z-index: 1;
  1290. cursor: pointer;
  1291. `),cE("dot",`
  1292. position: absolute;
  1293. top: 50%;
  1294. left: 0;
  1295. transform: translateY(-50%);
  1296. height: var(--n-radio-size);
  1297. width: var(--n-radio-size);
  1298. background: var(--n-color);
  1299. box-shadow: var(--n-box-shadow);
  1300. border-radius: 50%;
  1301. transition:
  1302. background-color .3s var(--n-bezier),
  1303. box-shadow .3s var(--n-bezier);
  1304. `,[c$3("&::before",`
  1305. content: "";
  1306. opacity: 0;
  1307. position: absolute;
  1308. left: 4px;
  1309. top: 4px;
  1310. height: calc(100% - 8px);
  1311. width: calc(100% - 8px);
  1312. border-radius: 50%;
  1313. transform: scale(.8);
  1314. background: var(--n-dot-color-active);
  1315. transition:
  1316. opacity .3s var(--n-bezier),
  1317. background-color .3s var(--n-bezier),
  1318. transform .3s var(--n-bezier);
  1319. `),cM("checked",{boxShadow:"var(--n-box-shadow-active)"},[c$3("&::before",`
  1320. opacity: 1;
  1321. transform: scale(1);
  1322. `)])]),cE("label",`
  1323. color: var(--n-text-color);
  1324. padding: var(--n-label-padding);
  1325. font-weight: var(--n-label-font-weight);
  1326. display: inline-block;
  1327. transition: color .3s var(--n-bezier);
  1328. `),cNotM("disabled",`
  1329. cursor: pointer;
  1330. `,[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",`
  1331. cursor: not-allowed;
  1332. `,[cE("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[c$3("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),cM("checked",`
  1333. opacity: 1;
  1334. `)]),cE("label",{color:"var(--n-text-color-disabled)"}),cB("radio-input",`
  1335. cursor: not-allowed;
  1336. `)])]),NRadio=defineComponent({name:"Radio",props:Object.assign(Object.assign({},useTheme.props),radioProps),setup(d){const g=setup(d),b=useTheme("Radio","-radio",style$b,radioLight$1,d,g.mergedClsPrefix),A=computed(()=>{const{mergedSize:{value:B}}=g,{common:{cubicBezierEaseInOut:$},self:{boxShadow:P,boxShadowActive:k,boxShadowDisabled:M,boxShadowFocus:R,boxShadowHover:F,color:L,colorDisabled:z,colorActive:U,textColor:W,textColorDisabled:V,dotColorActive:Q,dotColorDisabled:K,labelPadding:G,labelLineHeight:X,labelFontWeight:J,[createKey("fontSize",B)]:re,[createKey("radioSize",B)]:fe}}=b.value;return{"--n-bezier":$,"--n-label-line-height":X,"--n-label-font-weight":J,"--n-box-shadow":P,"--n-box-shadow-active":k,"--n-box-shadow-disabled":M,"--n-box-shadow-focus":R,"--n-box-shadow-hover":F,"--n-color":L,"--n-color-active":U,"--n-color-disabled":z,"--n-dot-color-active":Q,"--n-dot-color-disabled":K,"--n-font-size":re,"--n-radio-size":fe,"--n-text-color":W,"--n-text-color-disabled":V,"--n-label-padding":G}}),{inlineThemeDisabled:w,mergedClsPrefixRef:C,mergedRtlRef:x}=useConfig(d),S=useRtl("Radio",x,C),E=w?useThemeClass("radio",computed(()=>g.mergedSize.value[0]),A,d):void 0;return Object.assign(g,{rtlEnabled:S,cssVars:w?void 0:A,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){const{$slots:d,mergedClsPrefix:g,onRender:b,label:A}=this;return b==null||b(),h$1("label",{class:[`${g}-radio`,this.themeClass,{[`${g}-radio--rtl`]:this.rtlEnabled,[`${g}-radio--disabled`]:this.mergedDisabled,[`${g}-radio--checked`]:this.renderSafeChecked,[`${g}-radio--focus`]:this.focus}],style:this.cssVars},h$1("input",{ref:"inputRef",type:"radio",class:`${g}-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:`${g}-radio__dot-wrapper`}," ",h$1("div",{class:[`${g}-radio__dot`,this.renderSafeChecked&&`${g}-radio__dot--checked`]})),resolveWrappedSlot(d.default,w=>!w&&!A?null:h$1("div",{ref:"labelRef",class:`${g}-radio__label`},w||A)))}}),style$a=cB("radio-group",`
  1337. display: inline-block;
  1338. font-size: var(--n-font-size);
  1339. `,[cE("splitor",`
  1340. display: inline-block;
  1341. vertical-align: bottom;
  1342. width: 1px;
  1343. transition:
  1344. background-color .3s var(--n-bezier),
  1345. opacity .3s var(--n-bezier);
  1346. background: var(--n-button-border-color);
  1347. `,[cM("checked",{backgroundColor:"var(--n-button-border-color-active)"}),cM("disabled",{opacity:"var(--n-opacity-disabled)"})]),cM("button-group",`
  1348. white-space: nowrap;
  1349. height: var(--n-height);
  1350. line-height: var(--n-height);
  1351. `,[cB("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),cE("splitor",{height:"var(--n-height)"})]),cB("radio-button",`
  1352. vertical-align: bottom;
  1353. outline: none;
  1354. position: relative;
  1355. user-select: none;
  1356. -webkit-user-select: none;
  1357. display: inline-block;
  1358. box-sizing: border-box;
  1359. padding-left: 14px;
  1360. padding-right: 14px;
  1361. white-space: nowrap;
  1362. transition:
  1363. background-color .3s var(--n-bezier),
  1364. opacity .3s var(--n-bezier),
  1365. border-color .3s var(--n-bezier),
  1366. color .3s var(--n-bezier);
  1367. color: var(--n-button-text-color);
  1368. border-top: 1px solid var(--n-button-border-color);
  1369. border-bottom: 1px solid var(--n-button-border-color);
  1370. `,[cB("radio-input",`
  1371. pointer-events: none;
  1372. position: absolute;
  1373. border: 0;
  1374. border-radius: inherit;
  1375. left: 0;
  1376. right: 0;
  1377. top: 0;
  1378. bottom: 0;
  1379. opacity: 0;
  1380. z-index: 1;
  1381. `),cE("state-border",`
  1382. z-index: 1;
  1383. pointer-events: none;
  1384. position: absolute;
  1385. box-shadow: var(--n-button-box-shadow);
  1386. transition: box-shadow .3s var(--n-bezier);
  1387. left: -1px;
  1388. bottom: -1px;
  1389. right: -1px;
  1390. top: -1px;
  1391. `),c$3("&:first-child",`
  1392. border-top-left-radius: var(--n-button-border-radius);
  1393. border-bottom-left-radius: var(--n-button-border-radius);
  1394. border-left: 1px solid var(--n-button-border-color);
  1395. `,[cE("state-border",`
  1396. border-top-left-radius: var(--n-button-border-radius);
  1397. border-bottom-left-radius: var(--n-button-border-radius);
  1398. `)]),c$3("&:last-child",`
  1399. border-top-right-radius: var(--n-button-border-radius);
  1400. border-bottom-right-radius: var(--n-button-border-radius);
  1401. border-right: 1px solid var(--n-button-border-color);
  1402. `,[cE("state-border",`
  1403. border-top-right-radius: var(--n-button-border-radius);
  1404. border-bottom-right-radius: var(--n-button-border-radius);
  1405. `)]),cNotM("disabled",`
  1406. cursor: pointer;
  1407. `,[c$3("&:hover",[cE("state-border",`
  1408. transition: box-shadow .3s var(--n-bezier);
  1409. box-shadow: var(--n-button-box-shadow-hover);
  1410. `),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",`
  1411. background: var(--n-button-color-active);
  1412. color: var(--n-button-text-color-active);
  1413. border-color: var(--n-button-border-color-active);
  1414. `),cM("disabled",`
  1415. cursor: not-allowed;
  1416. opacity: var(--n-opacity-disabled);
  1417. `)])]);function mapSlot(d,g,b){var A;const w=[];let C=!1;for(let x=0;x<d.length;++x){const S=d[x],E=(A=S.type)===null||A===void 0?void 0:A.name;E==="RadioButton"&&(C=!0);const B=S.props;if(E!=="RadioButton"){w.push(S);continue}if(x===0)w.push(S);else{const $=w[w.length-1].props,P=g===$.value,k=$.disabled,M=g===B.value,R=B.disabled,F=(P?2:0)+(k?0:1),L=(M?2:0)+(R?0:1),z={[`${b}-radio-group__splitor--disabled`]:k,[`${b}-radio-group__splitor--checked`]:P},U={[`${b}-radio-group__splitor--disabled`]:R,[`${b}-radio-group__splitor--checked`]:M},W=F<L?U:z;w.push(h$1("div",{class:[`${b}-radio-group__splitor`,W]}),S)}}return{children:w,isButtonGroup:C}}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 g=ref(null),{mergedSizeRef:b,mergedDisabledRef:A,nTriggerFormChange:w,nTriggerFormInput:C,nTriggerFormBlur:x,nTriggerFormFocus:S}=useFormItem(d),{mergedClsPrefixRef:E,inlineThemeDisabled:B,mergedRtlRef:$}=useConfig(d),P=useTheme("Radio","-radio-group",style$a,radioLight$1,d,E),k=ref(d.defaultValue),M=toRef$1(d,"value"),R=useMergedState(M,k);function F(Q){const{onUpdateValue:K,"onUpdate:value":G}=d;K&&call$1(K,Q),G&&call$1(G,Q),k.value=Q,w(),C()}function L(Q){const{value:K}=g;K&&(K.contains(Q.relatedTarget)||S())}function z(Q){const{value:K}=g;K&&(K.contains(Q.relatedTarget)||x())}provide(radioGroupInjectionKey,{mergedClsPrefixRef:E,nameRef:toRef$1(d,"name"),valueRef:R,disabledRef:A,mergedSizeRef:b,doUpdateValue:F});const U=useRtl("Radio",$,E),W=computed(()=>{const{value:Q}=b,{common:{cubicBezierEaseInOut:K},self:{buttonBorderColor:G,buttonBorderColorActive:X,buttonBorderRadius:J,buttonBoxShadow:re,buttonBoxShadowFocus:fe,buttonBoxShadowHover:Z,buttonColorActive:ie,buttonTextColor:ce,buttonTextColorActive:me,buttonTextColorHover:ne,opacityDisabled:te,[createKey("buttonHeight",Q)]:ue,[createKey("fontSize",Q)]:ae}}=P.value;return{"--n-font-size":ae,"--n-bezier":K,"--n-button-border-color":G,"--n-button-border-color-active":X,"--n-button-border-radius":J,"--n-button-box-shadow":re,"--n-button-box-shadow-focus":fe,"--n-button-box-shadow-hover":Z,"--n-button-color-active":ie,"--n-button-text-color":ce,"--n-button-text-color-hover":ne,"--n-button-text-color-active":me,"--n-height":ue,"--n-opacity-disabled":te}}),V=B?useThemeClass("radio-group",computed(()=>b.value[0]),W,d):void 0;return{selfElRef:g,rtlEnabled:U,mergedClsPrefix:E,mergedValue:R,handleFocusout:z,handleFocusin:L,cssVars:B?void 0:W,themeClass:V==null?void 0:V.themeClass,onRender:V==null?void 0:V.onRender}},render(){var d;const{mergedValue:g,mergedClsPrefix:b,handleFocusin:A,handleFocusout:w}=this,{children:C,isButtonGroup:x}=mapSlot(flatten$4(getSlot$1(this)),g,b);return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{onFocusin:A,onFocusout:w,ref:"selfElRef",class:[`${b}-radio-group`,this.rtlEnabled&&`${b}-radio-group--rtl`,this.themeClass,x&&`${b}-radio-group--button-group`],style:this.cssVars},C)}}),NDropdownDivider=defineComponent({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h$1("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),self$u=d=>{const{textColorBase:g,opacity1:b,opacity2:A,opacity3:w,opacity4:C,opacity5:x}=d;return{color:g,opacity1Depth:b,opacity2Depth:A,opacity3Depth:w,opacity4Depth:C,opacity5Depth:x}},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",`
  1418. height: 1em;
  1419. width: 1em;
  1420. line-height: 1em;
  1421. text-align: center;
  1422. display: inline-block;
  1423. position: relative;
  1424. fill: currentColor;
  1425. transform: translateZ(0);
  1426. `,[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:g,inlineThemeDisabled:b}=useConfig(d),A=useTheme("Icon","-icon",style$9,iconLight$1,d,g),w=computed(()=>{const{depth:x}=d,{common:{cubicBezierEaseInOut:S},self:E}=A.value;if(x!==void 0){const{color:B,[`opacity${x}Depth`]:$}=E;return{"--n-bezier":S,"--n-color":B,"--n-opacity":$}}return{"--n-bezier":S,"--n-color":"","--n-opacity":""}}),C=b?useThemeClass("icon",computed(()=>`${d.depth||"d"}`),w,d):void 0;return{mergedClsPrefix:g,mergedStyle:computed(()=>{const{size:x,color:S}=d;return{fontSize:formatLength(x),color:S}}),cssVars:b?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var d;const{$parent:g,depth:b,mergedClsPrefix:A,component:w,onRender:C,themeClass:x}=this;return!((d=g==null?void 0:g.$options)===null||d===void 0)&&d._n_icon__&&warn$3("icon","don't wrap `n-icon` inside `n-icon`"),C==null||C(),h$1("i",mergeProps(this.$attrs,{role:"img",class:[`${A}-icon`,x,{[`${A}-icon--depth`]:b,[`${A}-icon--color-transition`]:b!==void 0}],style:[this.cssVars,this.mergedStyle]}),w?h$1(w):this.$slots)}}),dropdownMenuInjectionKey="n-dropdown-menu",dropdownInjectionKey="n-dropdown",dropdownOptionInjectionKey="n-dropdown-option";function isSubmenuNode(d,g){return d.type==="submenu"||d.type===void 0&&d[g]!==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 g=inject(dropdownInjectionKey),{hoverKeyRef:b,keyboardKeyRef:A,lastToggledSubmenuKeyRef:w,pendingKeyPathRef:C,activeKeyPathRef:x,animatedRef:S,mergedShowRef:E,renderLabelRef:B,renderIconRef:$,labelFieldRef:P,childrenFieldRef:k,renderOptionRef:M,nodePropsRef:R,menuPropsRef:F}=g,L=inject(dropdownOptionInjectionKey,null),z=inject(dropdownMenuInjectionKey),U=inject(popoverBodyInjectionKey),W=computed(()=>d.tmNode.rawNode),V=computed(()=>{const{value:te}=k;return isSubmenuNode(d.tmNode.rawNode,te)}),Q=computed(()=>{const{disabled:te}=d.tmNode;return te}),K=computed(()=>{if(!V.value)return!1;const{key:te,disabled:ue}=d.tmNode;if(ue)return!1;const{value:ae}=b,{value:ye}=A,{value:Oe}=w,{value:Ye}=C;return ae!==null?Ye.includes(te):ye!==null?Ye.includes(te)&&Ye[Ye.length-1]!==te:Oe!==null?Ye.includes(te):!1}),G=computed(()=>A.value===null&&!S.value),X=useDeferredTrue(K,300,G),J=computed(()=>!!(L!=null&&L.enteringSubmenuRef.value)),re=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:re});function fe(){re.value=!0}function Z(){re.value=!1}function ie(){const{parentKey:te,tmNode:ue}=d;ue.disabled||E.value&&(w.value=te,A.value=null,b.value=ue.key)}function ce(){const{tmNode:te}=d;te.disabled||E.value&&b.value!==te.key&&ie()}function me(te){if(d.tmNode.disabled||!E.value)return;const{relatedTarget:ue}=te;ue&&!happensIn({target:ue},"dropdownOption")&&!happensIn({target:ue},"scrollbarRail")&&(b.value=null)}function ne(){const{value:te}=V,{tmNode:ue}=d;E.value&&!te&&!ue.disabled&&(g.doSelect(ue.key,ue.rawNode),g.doUpdateShow(!1))}return{labelField:P,renderLabel:B,renderIcon:$,siblingHasIcon:z.showIconRef,siblingHasSubmenu:z.hasSubmenuRef,menuProps:F,popoverBody:U,animated:S,mergedShowSubmenu:computed(()=>X.value&&!J.value),rawNode:W,hasSubmenu:V,pending:useMemo(()=>{const{value:te}=C,{key:ue}=d.tmNode;return te.includes(ue)}),childActive:useMemo(()=>{const{value:te}=x,{key:ue}=d.tmNode,ae=te.findIndex(ye=>ue===ye);return ae===-1?!1:ae<te.length-1}),active:useMemo(()=>{const{value:te}=x,{key:ue}=d.tmNode,ae=te.findIndex(ye=>ue===ye);return ae===-1?!1:ae===te.length-1}),mergedDisabled:Q,renderOption:M,nodeProps:R,handleClick:ne,handleMouseMove:ce,handleMouseEnter:ie,handleMouseLeave:me,handleSubmenuBeforeEnter:fe,handleSubmenuAfterEnter:Z}},render(){var d,g;const{animated:b,rawNode:A,mergedShowSubmenu:w,clsPrefix:C,siblingHasIcon:x,siblingHasSubmenu:S,renderLabel:E,renderIcon:B,renderOption:$,nodeProps:P,props:k,scrollable:M}=this;let R=null;if(w){const U=(d=this.menuProps)===null||d===void 0?void 0:d.call(this,A,A.children);R=h$1(NDropdownMenu,Object.assign({},U,{clsPrefix:C,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const F={class:[`${C}-dropdown-option-body`,this.pending&&`${C}-dropdown-option-body--pending`,this.active&&`${C}-dropdown-option-body--active`,this.childActive&&`${C}-dropdown-option-body--child-active`,this.mergedDisabled&&`${C}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},L=P==null?void 0:P(A),z=h$1("div",Object.assign({class:[`${C}-dropdown-option`,L==null?void 0:L.class],"data-dropdown-option":!0},L),h$1("div",mergeProps(F,k),[h$1("div",{class:[`${C}-dropdown-option-body__prefix`,x&&`${C}-dropdown-option-body__prefix--show-icon`]},[B?B(A):render$1(A.icon)]),h$1("div",{"data-dropdown-option":!0,class:`${C}-dropdown-option-body__label`},E?E(A):render$1((g=A[this.labelField])!==null&&g!==void 0?g:A.title)),h$1("div",{"data-dropdown-option":!0,class:[`${C}-dropdown-option-body__suffix`,S&&`${C}-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:`${C}-dropdown-offset-container`},h$1(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:M&&this.popoverBody||void 0,teleportDisabled:!M},{default:()=>h$1("div",{class:`${C}-dropdown-menu-wrapper`},b?h$1(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>R}):R)}))})]}):null);return $?$({node:z,option:A}):z}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:d,hasSubmenuRef:g}=inject(dropdownMenuInjectionKey),{renderLabelRef:b,labelFieldRef:A,nodePropsRef:w,renderOptionRef:C}=inject(dropdownInjectionKey);return{labelField:A,showIcon:d,hasSubmenu:g,renderLabel:b,nodeProps:w,renderOption:C}},render(){var d;const{clsPrefix:g,hasSubmenu:b,showIcon:A,nodeProps:w,renderLabel:C,renderOption:x}=this,{rawNode:S}=this.tmNode,E=h$1("div",Object.assign({class:`${g}-dropdown-option`},w==null?void 0:w(S)),h$1("div",{class:`${g}-dropdown-option-body ${g}-dropdown-option-body--group`},h$1("div",{"data-dropdown-option":!0,class:[`${g}-dropdown-option-body__prefix`,A&&`${g}-dropdown-option-body__prefix--show-icon`]},render$1(S.icon)),h$1("div",{class:`${g}-dropdown-option-body__label`,"data-dropdown-option":!0},C?C(S):render$1((d=S.title)!==null&&d!==void 0?d:S[this.labelField])),h$1("div",{class:[`${g}-dropdown-option-body__suffix`,b&&`${g}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return x?x({node:E,option:S}):E}}),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:g,clsPrefix:b}=this,{children:A}=d;return h$1(Fragment,null,h$1(NDropdownGroupHeader,{clsPrefix:b,tmNode:d,key:d.key}),A==null?void 0:A.map(w=>{const{rawNode:C}=w;return C.show===!1?null:isDividerNode(C)?h$1(NDropdownDivider,{clsPrefix:b,key:w.key}):w.isGroup?(warn$3("dropdown","`group` node is not allowed to be put in `group` node."),null):h$1(NDropdownOption,{clsPrefix:b,tmNode:w,parentKey:g,key:w.key})}))}}),NDropdownRenderOption=defineComponent({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:d,props:g}}=this.tmNode;return h$1("div",g,[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:g,childrenFieldRef:b}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const w=g.value;return d.tmNodes.some(C=>{var x;if(C.isGroup)return(x=C.children)===null||x===void 0?void 0:x.some(({rawNode:E})=>w?w(E):E.icon);const{rawNode:S}=C;return w?w(S):S.icon})}),hasSubmenuRef:computed(()=>{const{value:w}=b;return d.tmNodes.some(C=>{var x;if(C.isGroup)return(x=C.children)===null||x===void 0?void 0:x.some(({rawNode:E})=>isSubmenuNode(E,w));const{rawNode:S}=C;return isSubmenuNode(S,w)})})});const A=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,A),{bodyRef:A}},render(){const{parentKey:d,clsPrefix:g,scrollable:b}=this,A=this.tmNodes.map(w=>{const{rawNode:C}=w;return C.show===!1?null:isRenderNode(C)?h$1(NDropdownRenderOption,{tmNode:w,key:w.key}):isDividerNode(C)?h$1(NDropdownDivider,{clsPrefix:g,key:w.key}):isGroupNode(C)?h$1(NDropdownGroup,{clsPrefix:g,tmNode:w,parentKey:d,key:w.key}):h$1(NDropdownOption,{clsPrefix:g,tmNode:w,parentKey:d,key:w.key,props:C.props,scrollable:b})});return h$1("div",{class:[`${g}-dropdown-menu`,b&&`${g}-dropdown-menu--scrollable`],ref:"bodyRef"},b?h$1(XScrollbar,{contentClass:`${g}-dropdown-menu__content`},{default:()=>A}):A,this.showArrow?renderArrow({clsPrefix:g,arrowStyle:this.arrowStyle}):null)}}),style$8=cB("dropdown-menu",`
  1427. transform-origin: var(--v-transform-origin);
  1428. background-color: var(--n-color);
  1429. border-radius: var(--n-border-radius);
  1430. box-shadow: var(--n-box-shadow);
  1431. position: relative;
  1432. transition:
  1433. background-color .3s var(--n-bezier),
  1434. box-shadow .3s var(--n-bezier);
  1435. `,[fadeInScaleUpTransition(),cB("dropdown-option",`
  1436. position: relative;
  1437. `,[c$3("a",`
  1438. text-decoration: none;
  1439. color: inherit;
  1440. outline: none;
  1441. `,[c$3("&::before",`
  1442. content: "";
  1443. position: absolute;
  1444. left: 0;
  1445. right: 0;
  1446. top: 0;
  1447. bottom: 0;
  1448. `)]),cB("dropdown-option-body",`
  1449. display: flex;
  1450. cursor: pointer;
  1451. position: relative;
  1452. height: var(--n-option-height);
  1453. line-height: var(--n-option-height);
  1454. font-size: var(--n-font-size);
  1455. color: var(--n-option-text-color);
  1456. transition: color .3s var(--n-bezier);
  1457. `,[c$3("&::before",`
  1458. content: "";
  1459. position: absolute;
  1460. top: 0;
  1461. bottom: 0;
  1462. left: 4px;
  1463. right: 4px;
  1464. transition: background-color .3s var(--n-bezier);
  1465. border-radius: var(--n-border-radius);
  1466. `),cNotM("disabled",[cM("pending",`
  1467. color: var(--n-option-text-color-hover);
  1468. `,[cE("prefix, suffix",`
  1469. color: var(--n-option-text-color-hover);
  1470. `),c$3("&::before","background-color: var(--n-option-color-hover);")]),cM("active",`
  1471. color: var(--n-option-text-color-active);
  1472. `,[cE("prefix, suffix",`
  1473. color: var(--n-option-text-color-active);
  1474. `),c$3("&::before","background-color: var(--n-option-color-active);")]),cM("child-active",`
  1475. color: var(--n-option-text-color-child-active);
  1476. `,[cE("prefix, suffix",`
  1477. color: var(--n-option-text-color-child-active);
  1478. `)])]),cM("disabled",`
  1479. cursor: not-allowed;
  1480. opacity: var(--n-option-opacity-disabled);
  1481. `),cM("group",`
  1482. font-size: calc(var(--n-font-size) - 1px);
  1483. color: var(--n-group-header-text-color);
  1484. `,[cE("prefix",`
  1485. width: calc(var(--n-option-prefix-width) / 2);
  1486. `,[cM("show-icon",`
  1487. width: calc(var(--n-option-icon-prefix-width) / 2);
  1488. `)])]),cE("prefix",`
  1489. width: var(--n-option-prefix-width);
  1490. display: flex;
  1491. justify-content: center;
  1492. align-items: center;
  1493. color: var(--n-prefix-color);
  1494. transition: color .3s var(--n-bezier);
  1495. z-index: 1;
  1496. `,[cM("show-icon",`
  1497. width: var(--n-option-icon-prefix-width);
  1498. `),cB("icon",`
  1499. font-size: var(--n-option-icon-size);
  1500. `)]),cE("label",`
  1501. white-space: nowrap;
  1502. flex: 1;
  1503. z-index: 1;
  1504. `),cE("suffix",`
  1505. box-sizing: border-box;
  1506. flex-grow: 0;
  1507. flex-shrink: 0;
  1508. display: flex;
  1509. justify-content: flex-end;
  1510. align-items: center;
  1511. min-width: var(--n-option-suffix-width);
  1512. padding: 0 8px;
  1513. transition: color .3s var(--n-bezier);
  1514. color: var(--n-suffix-color);
  1515. z-index: 1;
  1516. `,[cM("has-submenu",`
  1517. width: var(--n-option-icon-suffix-width);
  1518. `),cB("icon",`
  1519. font-size: var(--n-option-icon-size);
  1520. `)]),cB("dropdown-menu","pointer-events: all;")]),cB("dropdown-offset-container",`
  1521. pointer-events: none;
  1522. position: absolute;
  1523. left: 0;
  1524. right: 0;
  1525. top: -4px;
  1526. bottom: -4px;
  1527. `)]),cB("dropdown-divider",`
  1528. transition: background-color .3s var(--n-bezier);
  1529. background-color: var(--n-divider-color);
  1530. height: 1px;
  1531. margin: 4px 0;
  1532. `),cB("dropdown-menu-wrapper",`
  1533. transform-origin: var(--v-transform-origin);
  1534. width: fit-content;
  1535. `),c$3(">",[cB("scrollbar",`
  1536. height: inherit;
  1537. max-height: inherit;
  1538. `)]),cNotM("scrollable",`
  1539. padding: var(--n-padding);
  1540. `),cM("scrollable",[cE("content",`
  1541. padding: var(--n-padding);
  1542. `)])]),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 g=ref(!1),b=useMergedState(toRef$1(d,"show"),g),A=computed(()=>{const{keyField:Z,childrenField:ie}=d;return createTreeMate(d.options,{getKey(ce){return ce[Z]},getDisabled(ce){return ce.disabled===!0},getIgnored(ce){return ce.type==="divider"||ce.type==="render"},getChildren(ce){return ce[ie]}})}),w=computed(()=>A.value.treeNodes),C=ref(null),x=ref(null),S=ref(null),E=computed(()=>{var Z,ie,ce;return(ce=(ie=(Z=C.value)!==null&&Z!==void 0?Z:x.value)!==null&&ie!==void 0?ie:S.value)!==null&&ce!==void 0?ce:null}),B=computed(()=>A.value.getPath(E.value).keyPath),$=computed(()=>A.value.getPath(d.value).keyPath),P=useMemo(()=>d.keyboard&&b.value);useKeyboard({keydown:{ArrowUp:{prevent:!0,handler:Q},ArrowRight:{prevent:!0,handler:V},ArrowDown:{prevent:!0,handler:K},ArrowLeft:{prevent:!0,handler:W},Enter:{prevent:!0,handler:G},Escape:U}},P);const{mergedClsPrefixRef:k,inlineThemeDisabled:M}=useConfig(d),R=useTheme("Dropdown","-dropdown",style$8,dropdownLight$1,d,k);provide(dropdownInjectionKey,{labelFieldRef:toRef$1(d,"labelField"),childrenFieldRef:toRef$1(d,"childrenField"),renderLabelRef:toRef$1(d,"renderLabel"),renderIconRef:toRef$1(d,"renderIcon"),hoverKeyRef:C,keyboardKeyRef:x,lastToggledSubmenuKeyRef:S,pendingKeyPathRef:B,activeKeyPathRef:$,animatedRef:toRef$1(d,"animated"),mergedShowRef:b,nodePropsRef:toRef$1(d,"nodeProps"),renderOptionRef:toRef$1(d,"renderOption"),menuPropsRef:toRef$1(d,"menuProps"),doSelect:F,doUpdateShow:L}),watch(b,Z=>{!d.animated&&!Z&&z()});function F(Z,ie){const{onSelect:ce}=d;ce&&call$1(ce,Z,ie)}function L(Z){const{"onUpdate:show":ie,onUpdateShow:ce}=d;ie&&call$1(ie,Z),ce&&call$1(ce,Z),g.value=Z}function z(){C.value=null,x.value=null,S.value=null}function U(){L(!1)}function W(){J("left")}function V(){J("right")}function Q(){J("up")}function K(){J("down")}function G(){const Z=X();Z!=null&&Z.isLeaf&&b.value&&(F(Z.key,Z.rawNode),L(!1))}function X(){var Z;const{value:ie}=A,{value:ce}=E;return!ie||ce===null?null:(Z=ie.getNode(ce))!==null&&Z!==void 0?Z:null}function J(Z){const{value:ie}=E,{value:{getFirstAvailableNode:ce}}=A;let me=null;if(ie===null){const ne=ce();ne!==null&&(me=ne.key)}else{const ne=X();if(ne){let te;switch(Z){case"down":te=ne.getNext();break;case"up":te=ne.getPrev();break;case"right":te=ne.getChild();break;case"left":te=ne.getParent();break}te&&(me=te.key)}}me!==null&&(C.value=null,x.value=me)}const re=computed(()=>{const{size:Z,inverted:ie}=d,{common:{cubicBezierEaseInOut:ce},self:me}=R.value,{padding:ne,dividerColor:te,borderRadius:ue,optionOpacityDisabled:ae,[createKey("optionIconSuffixWidth",Z)]:ye,[createKey("optionSuffixWidth",Z)]:Oe,[createKey("optionIconPrefixWidth",Z)]:Ye,[createKey("optionPrefixWidth",Z)]:et,[createKey("fontSize",Z)]:ht,[createKey("optionHeight",Z)]:Te,[createKey("optionIconSize",Z)]:Le}=me,Re={"--n-bezier":ce,"--n-font-size":ht,"--n-padding":ne,"--n-border-radius":ue,"--n-option-height":Te,"--n-option-prefix-width":et,"--n-option-icon-prefix-width":Ye,"--n-option-suffix-width":Oe,"--n-option-icon-suffix-width":ye,"--n-option-icon-size":Le,"--n-divider-color":te,"--n-option-opacity-disabled":ae};return ie?(Re["--n-color"]=me.colorInverted,Re["--n-option-color-hover"]=me.optionColorHoverInverted,Re["--n-option-color-active"]=me.optionColorActiveInverted,Re["--n-option-text-color"]=me.optionTextColorInverted,Re["--n-option-text-color-hover"]=me.optionTextColorHoverInverted,Re["--n-option-text-color-active"]=me.optionTextColorActiveInverted,Re["--n-option-text-color-child-active"]=me.optionTextColorChildActiveInverted,Re["--n-prefix-color"]=me.prefixColorInverted,Re["--n-suffix-color"]=me.suffixColorInverted,Re["--n-group-header-text-color"]=me.groupHeaderTextColorInverted):(Re["--n-color"]=me.color,Re["--n-option-color-hover"]=me.optionColorHover,Re["--n-option-color-active"]=me.optionColorActive,Re["--n-option-text-color"]=me.optionTextColor,Re["--n-option-text-color-hover"]=me.optionTextColorHover,Re["--n-option-text-color-active"]=me.optionTextColorActive,Re["--n-option-text-color-child-active"]=me.optionTextColorChildActive,Re["--n-prefix-color"]=me.prefixColor,Re["--n-suffix-color"]=me.suffixColor,Re["--n-group-header-text-color"]=me.groupHeaderTextColor),Re}),fe=M?useThemeClass("dropdown",computed(()=>`${d.size[0]}${d.inverted?"i":""}`),re,d):void 0;return{mergedClsPrefix:k,mergedTheme:R,tmNodes:w,mergedShow:b,handleAfterLeave:()=>{d.animated&&z()},doUpdateShow:L,cssVars:M?void 0:re,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender}},render(){const d=(A,w,C,x,S)=>{var E;const{mergedClsPrefix:B,menuProps:$}=this;(E=this.onRender)===null||E===void 0||E.call(this);const P=($==null?void 0:$(void 0,this.tmNodes.map(M=>M.rawNode)))||{},k={ref:createRefSetter(w),class:[A,`${B}-dropdown`,this.themeClass],clsPrefix:B,tmNodes:this.tmNodes,style:[C,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:x,onMouseleave:S};return h$1(NDropdownMenu,mergeProps(this.$attrs,k,P))},{mergedTheme:g}=this,b={show:this.mergedShow,theme:g.peers.Popover,themeOverrides:g.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:d,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h$1(NPopover,Object.assign({},keep(this.$props,popoverPropKeys),b),{trigger:()=>{var A,w;return(w=(A=this.$slots).default)===null||w===void 0?void 0:w.call(A)}})}}),commonVars$7={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},self$t=d=>{const{popoverColor:g,textColor2:b,primaryColor:A,hoverColor:w,dividerColor:C,opacityDisabled:x,boxShadow2:S,borderRadius:E,iconColor:B,iconColorDisabled:$}=d;return Object.assign(Object.assign({},commonVars$7),{panelColor:g,panelBoxShadow:S,panelDividerColor:C,itemTextColor:b,itemTextColorActive:A,itemColorHover:w,itemOpacityDisabled:x,itemBorderRadius:E,borderRadius:E,iconColor:B,iconColorDisabled:$})},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:g,fontSize:b,textColor2:A,textColorDisabled:w,popoverColor:C,primaryColor:x,borderRadiusSmall:S,iconColor:E,iconColorDisabled:B,textColor1:$,dividerColor:P,boxShadow2:k,borderRadius:M,fontWeightStrong:R}=d;return Object.assign(Object.assign({},commonVars$6),{itemFontSize:b,calendarDaysFontSize:b,calendarTitleFontSize:b,itemTextColor:A,itemTextColorDisabled:w,itemTextColorActive:C,itemTextColorCurrent:x,itemColorIncluded:changeColor(x,{alpha:.1}),itemColorHover:g,itemColorDisabled:g,itemColorActive:x,itemBorderRadius:S,panelColor:C,panelTextColor:A,arrowColor:E,calendarTitleTextColor:$,calendarTitleColorHover:g,calendarDaysTextColor:A,panelHeaderDividerColor:P,calendarDaysDividerColor:P,calendarDividerColor:P,panelActionDividerColor:P,panelBoxShadow:k,panelBorderRadius:M,calendarTitleFontWeight:R,scrollItemBorderRadius:M,iconColor:E,iconColorDisabled:B})},datePickerDark={name:"DatePicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,TimePicker:timePickerDark$1,Scrollbar:scrollbarDark$1},self(d){const{popoverColor:g,hoverColor:b,primaryColor:A}=d,w=self$s(d);return w.itemColorDisabled=composite(g,b),w.itemColorIncluded=changeColor(A,{alpha:.15}),w.itemColorHover=composite(g,b),w}},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:g,textColor2:b,textColor1:A,cardColor:w,modalColor:C,popoverColor:x,dividerColor:S,borderRadius:E,fontWeightStrong:B,lineHeight:$,fontSizeSmall:P,fontSizeMedium:k,fontSizeLarge:M}=d;return Object.assign(Object.assign({},commonVariables$7),{lineHeight:$,fontSizeSmall:P,fontSizeMedium:k,fontSizeLarge:M,titleTextColor:A,thColor:composite(w,g),thColorModal:composite(C,g),thColorPopover:composite(x,g),thTextColor:A,thFontWeight:B,tdTextColor:b,tdColor:w,tdColorModal:C,tdColorPopover:x,borderColor:composite(w,S),borderColorModal:composite(C,S),borderColorPopover:composite(x,S),borderRadius:E})},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:g,textColor2:b,modalColor:A,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:x,closeColorHover:S,closeColorPressed:E,infoColor:B,successColor:$,warningColor:P,errorColor:k,primaryColor:M,dividerColor:R,borderRadius:F,fontWeightStrong:L,lineHeight:z,fontSize:U}=d;return Object.assign(Object.assign({},commonVars$5),{fontSize:U,lineHeight:z,border:`1px solid ${R}`,titleTextColor:g,textColor:b,color:A,closeColorHover:S,closeColorPressed:E,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:x,closeBorderRadius:F,iconColor:M,iconColorInfo:B,iconColorSuccess:$,iconColorWarning:P,iconColorError:k,borderRadius:F,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",`
  1543. word-break: break-word;
  1544. line-height: var(--n-line-height);
  1545. position: relative;
  1546. background: var(--n-color);
  1547. color: var(--n-text-color);
  1548. box-sizing: border-box;
  1549. margin: auto;
  1550. border-radius: var(--n-border-radius);
  1551. padding: var(--n-padding);
  1552. transition:
  1553. border-color .3s var(--n-bezier),
  1554. background-color .3s var(--n-bezier),
  1555. color .3s var(--n-bezier);
  1556. `,[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",`
  1557. padding-right: calc(var(--n-close-size) + 6px);
  1558. `)])]),cE("close",`
  1559. position: absolute;
  1560. right: 0;
  1561. top: 0;
  1562. margin: var(--n-close-margin);
  1563. transition:
  1564. background-color .3s var(--n-bezier),
  1565. color .3s var(--n-bezier);
  1566. z-index: 1;
  1567. `),cE("content",`
  1568. font-size: var(--n-font-size);
  1569. margin: var(--n-content-margin);
  1570. position: relative;
  1571. word-break: break-word;
  1572. `,[cM("last","margin-bottom: 0;")]),cE("action",`
  1573. display: flex;
  1574. justify-content: flex-end;
  1575. `,[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",`
  1576. transition: color .3s var(--n-bezier);
  1577. display: flex;
  1578. align-items: center;
  1579. font-size: var(--n-title-font-size);
  1580. font-weight: var(--n-title-font-weight);
  1581. color: var(--n-title-text-color);
  1582. `),cB("dialog-icon-container",{display:"flex",justifyContent:"center"})]),insideModal(cB("dialog",`
  1583. width: 446px;
  1584. max-width: calc(100vw - 32px);
  1585. `)),cB("dialog",[asModal(`
  1586. width: 446px;
  1587. max-width: calc(100vw - 32px);
  1588. `)])]),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:g,mergedClsPrefixRef:b,inlineThemeDisabled:A}=useConfig(d),w=computed(()=>{var P,k;const{iconPlacement:M}=d;return M||((k=(P=g==null?void 0:g.value)===null||P===void 0?void 0:P.Dialog)===null||k===void 0?void 0:k.iconPlacement)||"left"});function C(P){const{onPositiveClick:k}=d;k&&k(P)}function x(P){const{onNegativeClick:k}=d;k&&k(P)}function S(){const{onClose:P}=d;P&&P()}const E=useTheme("Dialog","-dialog",style$7,dialogLight$1,d,b),B=computed(()=>{const{type:P}=d,k=w.value,{common:{cubicBezierEaseInOut:M},self:{fontSize:R,lineHeight:F,border:L,titleTextColor:z,textColor:U,color:W,closeBorderRadius:V,closeColorHover:Q,closeColorPressed:K,closeIconColor:G,closeIconColorHover:X,closeIconColorPressed:J,closeIconSize:re,borderRadius:fe,titleFontWeight:Z,titleFontSize:ie,padding:ce,iconSize:me,actionSpace:ne,contentMargin:te,closeSize:ue,[k==="top"?"iconMarginIconTop":"iconMargin"]:ae,[k==="top"?"closeMarginIconTop":"closeMargin"]:ye,[createKey("iconColor",P)]:Oe}}=E.value;return{"--n-font-size":R,"--n-icon-color":Oe,"--n-bezier":M,"--n-close-margin":ye,"--n-icon-margin":ae,"--n-icon-size":me,"--n-close-size":ue,"--n-close-icon-size":re,"--n-close-border-radius":V,"--n-close-color-hover":Q,"--n-close-color-pressed":K,"--n-close-icon-color":G,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":J,"--n-color":W,"--n-text-color":U,"--n-border-radius":fe,"--n-padding":ce,"--n-line-height":F,"--n-border":L,"--n-content-margin":te,"--n-title-font-size":ie,"--n-title-font-weight":Z,"--n-title-text-color":z,"--n-action-space":ne}}),$=A?useThemeClass("dialog",computed(()=>`${d.type[0]}${w.value[0]}`),B,d):void 0;return{mergedClsPrefix:b,mergedIconPlacement:w,mergedTheme:E,handlePositiveClick:C,handleNegativeClick:x,handleCloseClick:S,cssVars:A?void 0:B,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){var d;const{bordered:g,mergedIconPlacement:b,cssVars:A,closable:w,showIcon:C,title:x,content:S,action:E,negativeText:B,positiveText:$,positiveButtonProps:P,negativeButtonProps:k,handlePositiveClick:M,handleNegativeClick:R,mergedTheme:F,loading:L,type:z,mergedClsPrefix:U}=this;(d=this.onRender)===null||d===void 0||d.call(this);const W=C?h$1(NBaseIcon,{clsPrefix:U,class:`${U}-dialog__icon`},{default:()=>resolveWrappedSlot(this.$slots.icon,Q=>Q||(this.icon?render$1(this.icon):iconRenderMap$2[this.type]()))}):null,V=resolveWrappedSlot(this.$slots.action,Q=>Q||$||B||E?h$1("div",{class:`${U}-dialog__action`},Q||(E?[render$1(E)]:[this.negativeText&&h$1(NButton,Object.assign({theme:F.peers.Button,themeOverrides:F.peerOverrides.Button,ghost:!0,size:"small",onClick:R},k),{default:()=>render$1(this.negativeText)}),this.positiveText&&h$1(NButton,Object.assign({theme:F.peers.Button,themeOverrides:F.peerOverrides.Button,size:"small",type:z==="default"?"primary":z,disabled:L,loading:L,onClick:M},P),{default:()=>render$1(this.positiveText)})])):null);return h$1("div",{class:[`${U}-dialog`,this.themeClass,this.closable&&`${U}-dialog--closable`,`${U}-dialog--icon-${b}`,g&&`${U}-dialog--bordered`],style:A,role:"dialog"},w?h$1(NBaseClose,{clsPrefix:U,class:`${U}-dialog__close`,onClick:this.handleCloseClick}):null,C&&b==="top"?h$1("div",{class:`${U}-dialog-icon-container`},W):null,h$1("div",{class:`${U}-dialog__title`},C&&b==="left"?W:null,resolveSlot(this.$slots.header,()=>[render$1(x)])),h$1("div",{class:[`${U}-dialog__content`,V?"":`${U}-dialog__content--last`]},resolveSlot(this.$slots.default,()=>[render$1(S)])),V)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$p=d=>{const{modalColor:g,textColor2:b,boxShadow3:A}=d;return{color:g,textColor:b,boxShadow:A}},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 g=ref(null),b=ref(null),A=ref(d.show),w=ref(null),C=ref(null);watch(toRef$1(d,"show"),L=>{L&&(A.value=!0)}),useLockHtmlScroll(computed(()=>d.blockScroll&&A.value));const x=inject(modalInjectionKey);function S(){if(x.transformOriginRef.value==="center")return"";const{value:L}=w,{value:z}=C;if(L===null||z===null)return"";if(b.value){const U=b.value.containerScrollTop;return`${L}px ${z+U}px`}return""}function E(L){if(x.transformOriginRef.value==="center")return;const z=x.getMousePosition();if(!z||!b.value)return;const U=b.value.containerScrollTop,{offsetLeft:W,offsetTop:V}=L;if(z){const Q=z.y,K=z.x;w.value=-(W-K),C.value=-(V-Q-U)}L.style.transformOrigin=S()}function B(L){nextTick(()=>{E(L)})}function $(L){L.style.transformOrigin=S(),d.onBeforeLeave()}function P(){A.value=!1,w.value=null,C.value=null,d.onAfterLeave()}function k(){const{onClose:L}=d;L&&L()}function M(){d.onNegativeClick()}function R(){d.onPositiveClick()}const F=ref(null);return watch(F,L=>{L&&nextTick(()=>{const z=L.el;z&&g.value!==z&&(g.value=z)})}),provide(modalBodyInjectionKey,g),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:x.mergedThemeRef,appear:x.appearRef,isMounted:x.isMountedRef,mergedClsPrefix:x.mergedClsPrefixRef,bodyRef:g,scrollbarRef:b,displayed:A,childNodeRef:F,handlePositiveClick:R,handleNegativeClick:M,handleCloseClick:k,handleAfterLeave:P,handleBeforeLeave:$,handleEnter:B}},render(){const{$slots:d,$attrs:g,handleEnter:b,handleAfterLeave:A,handleBeforeLeave:w,preset:C,mergedClsPrefix:x}=this;let S=null;if(!C){if(S=getFirstSlotVNode(d),!S){warn$3("modal","default slot is empty");return}S=cloneVNode(S),S.props=mergeProps({class:`${x}-modal`},g,S.props||{})}return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h$1("div",{role:"none",class:`${x}-modal-body-wrapper`},h$1(NScrollbar$1,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${x}-modal-scroll-content`},{default:()=>{var E;return[(E=this.renderMask)===null||E===void 0?void 0:E.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:b,onAfterEnter:this.onAfterEnter,onAfterLeave:A,onBeforeLeave:w},{default:()=>{const $=[[vShow,this.show]],{onClickoutside:P}=this;return P&&$.push([clickoutside$1,this.onClickoutside,void 0,{capture:!0}]),withDirectives(this.preset==="confirm"||this.preset==="dialog"?h$1(NDialog,Object.assign({},this.$attrs,{class:[`${x}-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:[`${x}-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=S,$)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$6=c$3([cB("modal-container",`
  1589. position: fixed;
  1590. left: 0;
  1591. top: 0;
  1592. height: 0;
  1593. width: 0;
  1594. display: flex;
  1595. `),cB("modal-mask",`
  1596. position: fixed;
  1597. left: 0;
  1598. right: 0;
  1599. top: 0;
  1600. bottom: 0;
  1601. background-color: rgba(0, 0, 0, .4);
  1602. `,[fadeInTransition({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),cB("modal-body-wrapper",`
  1603. position: fixed;
  1604. left: 0;
  1605. right: 0;
  1606. top: 0;
  1607. bottom: 0;
  1608. overflow: visible;
  1609. `,[cB("modal-scroll-content",`
  1610. min-height: 100%;
  1611. display: flex;
  1612. position: relative;
  1613. `)]),cB("modal",`
  1614. position: relative;
  1615. align-self: center;
  1616. color: var(--n-text-color);
  1617. margin: auto;
  1618. box-shadow: var(--n-box-shadow);
  1619. `,[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 g=ref(null),{mergedClsPrefixRef:b,namespaceRef:A,inlineThemeDisabled:w}=useConfig(d),C=useTheme("Modal","-modal",style$6,modalLight$1,d,b),x=useClicked(64),S=useClickPosition(),E=isMounted(),B=d.internalDialog?inject(dialogProviderInjectionKey,null):null,$=useIsComposing();function P(Q){const{onUpdateShow:K,"onUpdate:show":G,onHide:X}=d;K&&call$1(K,Q),G&&call$1(G,Q),X&&!Q&&X(Q)}function k(){const{onClose:Q}=d;Q?Promise.resolve(Q()).then(K=>{K!==!1&&P(!1)}):P(!1)}function M(){const{onPositiveClick:Q}=d;Q?Promise.resolve(Q()).then(K=>{K!==!1&&P(!1)}):P(!1)}function R(){const{onNegativeClick:Q}=d;Q?Promise.resolve(Q()).then(K=>{K!==!1&&P(!1)}):P(!1)}function F(){const{onBeforeLeave:Q,onBeforeHide:K}=d;Q&&call$1(Q),K&&K()}function L(){const{onAfterLeave:Q,onAfterHide:K}=d;Q&&call$1(Q),K&&K()}function z(Q){var K;const{onMaskClick:G}=d;G&&G(Q),d.maskClosable&&!((K=g.value)===null||K===void 0)&&K.contains(getPreciseEventTarget(Q))&&P(!1)}function U(Q){var K;(K=d.onEsc)===null||K===void 0||K.call(d),d.show&&d.closeOnEsc&&eventEffectNotPerformed(Q)&&!$.value&&P(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(B){const{clickedRef:Q,clickPositionRef:K}=B;if(Q.value&&K.value)return K.value}return x.value?S.value:null},mergedClsPrefixRef:b,mergedThemeRef:C,isMountedRef:E,appearRef:toRef$1(d,"internalAppear"),transformOriginRef:toRef$1(d,"transformOrigin")});const W=computed(()=>{const{common:{cubicBezierEaseOut:Q},self:{boxShadow:K,color:G,textColor:X}}=C.value;return{"--n-bezier-ease-out":Q,"--n-box-shadow":K,"--n-color":G,"--n-text-color":X}}),V=w?useThemeClass("theme-class",void 0,W,d):void 0;return{mergedClsPrefix:b,namespace:A,isMounted:E,containerRef:g,presetProps:computed(()=>keep(d,presetPropsKeys)),handleEsc:U,handleAfterLeave:L,handleClickoutside:z,handleBeforeLeave:F,doUpdateShow:P,handleNegativeClick:R,handlePositiveClick:M,handleCloseClick:k,cssVars:w?void 0:W,themeClass:V==null?void 0:V.themeClass,onRender:V==null?void 0:V.onRender}},render(){const{mergedClsPrefix:d}=this;return h$1(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var g;(g=this.onRender)===null||g===void 0||g.call(this);const{unstableShowMask:b}=this;return withDirectives(h$1("div",{role:"none",ref:"containerRef",class:[`${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:b?void 0:this.handleClickoutside,renderMask:b?()=>{var A;return h$1(Transition,{name:"fade-in-transition",key:"mask",appear:(A=this.internalAppear)!==null&&A!==void 0?A:this.isMounted},{default:()=>this.show?h$1("div",{"aria-hidden":!0,ref:"containerRef",class:`${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 g=ref(!0);function b(){const{onInternalAfterLeave:$,internalKey:P,onAfterLeave:k}=d;$&&$(P),k&&k()}function A($){const{onPositiveClick:P}=d;P?Promise.resolve(P($)).then(k=>{k!==!1&&E()}):E()}function w($){const{onNegativeClick:P}=d;P?Promise.resolve(P($)).then(k=>{k!==!1&&E()}):E()}function C(){const{onClose:$}=d;$?Promise.resolve($()).then(P=>{P!==!1&&E()}):E()}function x($){const{onMaskClick:P,maskClosable:k}=d;P&&(P($),k&&E())}function S(){const{onEsc:$}=d;$&&$()}function E(){g.value=!1}function B($){g.value=$}return{show:g,hide:E,handleUpdateShow:B,handleAfterLeave:b,handleCloseClick:C,handleNegativeClick:w,handlePositiveClick:A,handleMaskClick:x,handleEsc:S}},render(){const{handlePositiveClick:d,handleUpdateShow:g,handleNegativeClick:b,handleCloseClick:A,handleAfterLeave:w,handleMaskClick:C,handleEsc:x,to:S,maskClosable:E,show:B}=this;return h$1(NModal,{show:B,onUpdateShow:g,onMaskClick:C,onEsc:x,to:S,maskClosable:E,onAfterEnter:this.onAfterEnter,onAfterLeave:w,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:A,onNegativeClick:b,onPositiveClick:d}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const d=ref([]),g={};function b(S={}){const E=createId(),B=reactive(Object.assign(Object.assign({},S),{key:E,destroy:()=>{g[`n-dialog-${E}`].hide()}}));return d.value.push(B),B}const A=["info","success","warning","error"].map(S=>E=>b(Object.assign(Object.assign({},E),{type:S})));function w(S){const{value:E}=d;E.splice(E.findIndex(B=>B.key===S),1)}function C(){Object.values(g).forEach(S=>{S.hide()})}const x={create:b,destroyAll:C,info:A[0],success:A[1],warning:A[2],error:A[3]};return provide(dialogApiInjectionKey,x),provide(dialogProviderInjectionKey,{clickedRef:useClicked(64),clickPositionRef:useClickPosition()}),provide(dialogReactiveListInjectionKey,d),Object.assign(Object.assign({},x),{dialogList:d,dialogInstRefs:g,handleAfterLeave:w})},render(){var d,g;return h$1(Fragment,null,[this.dialogList.map(b=>h$1(NDialogEnvironment,omit(b,["destroy","style"],{internalStyle:b.style,to:this.to,ref:A=>{A===null?delete this.dialogInstRefs[`n-dialog-${b.key}`]:this.dialogInstRefs[`n-dialog-${b.key}`]=A},internalKey:b.key,onInternalAfterLeave:this.handleAfterLeave}))),(g=(d=this.$slots).default)===null||g===void 0?void 0:g.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:g,dividerColor:b,fontWeightStrong:A}=d;return{textColor:g,color:b,fontWeight:A}},dividerDark={name:"Divider",common:commonDark,self:self$o},dividerDark$1=dividerDark,self$n=d=>{const{modalColor:g,textColor1:b,textColor2:A,boxShadow3:w,lineHeight:C,fontWeightStrong:x,dividerColor:S,closeColorHover:E,closeColorPressed:B,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,borderRadius:M,primaryColorHover:R}=d;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:g,textColor:A,titleTextColor:b,titleFontSize:"18px",titleFontWeight:x,boxShadow:w,lineHeight:C,headerBorderBottom:`1px solid ${S}`,footerBorderTop:`1px solid ${S}`,closeIconColor:$,closeIconColorHover:P,closeIconColorPressed:k,closeSize:"22px",closeIconSize:"18px",closeColorHover:E,closeColorPressed:B,closeBorderRadius:M,resizableTriggerColorHover:R}},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 g=d.scrollHeight===1;return document.body.removeChild(d),supportFlexGap=g}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:g,mergedRtlRef:b}=useConfig(d),A=useTheme("Space","-space",void 0,spaceLight$1,d,g),w=useRtl("Space",b,g);return{useGap:ensureSupportFlexGap(),rtlEnabled:w,mergedClsPrefix:g,margin:computed(()=>{const{size:C}=d;if(Array.isArray(C))return{horizontal:C[0],vertical:C[1]};if(typeof C=="number")return{horizontal:C,vertical:C};const{self:{[createKey("gap",C)]:x}}=A.value,{row:S,col:E}=getGap(x);return{horizontal:depx(E),vertical:depx(S)}})}},render(){const{vertical:d,align:g,inline:b,justify:A,itemStyle:w,margin:C,wrap:x,mergedClsPrefix:S,rtlEnabled:E,useGap:B,wrapItem:$,internalUseGap:P}=this,k=flatten$4(getSlot$1(this));if(!k.length)return null;const M=`${C.horizontal}px`,R=`${C.horizontal/2}px`,F=`${C.vertical}px`,L=`${C.vertical/2}px`,z=k.length-1,U=A.startsWith("space-");return h$1("div",{role:"none",class:[`${S}-space`,E&&`${S}-space--rtl`],style:{display:b?"inline-flex":"flex",flexDirection:d?"column":"row",justifyContent:["start","end"].includes(A)?"flex-"+A:A,flexWrap:!x||d?"nowrap":"wrap",marginTop:B||d?"":`-${L}`,marginBottom:B||d?"":`-${L}`,alignItems:g,gap:B?`${C.vertical}px ${C.horizontal}px`:""}},!$&&(B||P)?k:k.map((W,V)=>h$1("div",{role:"none",style:[w,{maxWidth:"100%"},B?"":d?{marginBottom:V!==z?F:""}:E?{marginLeft:U?A==="space-between"&&V===z?"":R:V!==z?M:"",marginRight:U?A==="space-between"&&V===0?"":R:"",paddingTop:L,paddingBottom:L}:{marginRight:U?A==="space-between"&&V===z?"":R:V!==z?M:"",marginLeft:U?A==="space-between"&&V===0?"":R:"",paddingTop:L,paddingBottom:L}]},W)))}}),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:g,heightMedium:b,heightLarge:A,textColor1:w,errorColor:C,warningColor:x,lineHeight:S,textColor3:E}=d;return Object.assign(Object.assign({},commonVariables$5),{blankHeightSmall:g,blankHeightMedium:b,blankHeightLarge:A,lineHeight:S,labelTextColor:w,asteriskColor:C,feedbackTextColorError:C,feedbackTextColorWarning:x,feedbackTextColor:E})},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:g,itemStyleRef:b,overflowRef:A,layoutShiftDisabledRef:w}=inject(gridInjectionKey),C=getCurrentInstance();return{overflow:A,itemStyle:b,layoutShiftDisabled:w,mergedXGap:computed(()=>pxfy(g.value||0)),deriveStyle:()=>{d.value;const{privateSpan:x=defaultSpan,privateShow:S=!0,privateColStart:E=void 0,privateOffset:B=0}=C.vnode.props,{value:$}=g,P=pxfy($||0);return{display:S?"":"none",gridColumn:`${E!=null?E:`span ${x}`} / span ${x}`,marginLeft:B?`calc((100% - (${x} - 1) * ${P}) / ${x} * ${B} + ${P} * ${B})`:""}}}},render(){var d,g;if(this.layoutShiftDisabled){const{span:b,offset:A,mergedXGap:w}=this;return h$1("div",{style:{gridColumn:`span ${b} / span ${b}`,marginLeft:A?`calc((100% - (${b} - 1) * ${w}) / ${b} * ${A} + ${w} * ${A})`:""}},this.$slots)}return h$1("div",{style:[this.itemStyle,this.deriveStyle()]},(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d,{overflow:this.overflow}))}}),gradientTextDark={name:"GradientText",common:commonDark,self(d){const{primaryColor:g,successColor:b,warningColor:A,errorColor:w,infoColor:C,primaryColorSuppl:x,successColorSuppl:S,warningColorSuppl:E,errorColorSuppl:B,infoColorSuppl:$,fontWeightStrong:P}=d;return{fontWeight:P,rotate:"252deg",colorStartPrimary:g,colorEndPrimary:x,colorStartInfo:C,colorEndInfo:$,colorStartWarning:A,colorEndWarning:E,colorStartError:w,colorEndError:B,colorStartSuccess:b,colorEndSuccess:S}}},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:g,mergedBreakpointsRef:b}=useConfig(d),A=/^\d+$/,w=ref(void 0),C=useBreakpoints((b==null?void 0:b.value)||defaultBreakpoints),x=useMemo(()=>!!(d.itemResponsive||!A.test(d.cols.toString())||!A.test(d.xGap.toString())||!A.test(d.yGap.toString()))),S=computed(()=>{if(x.value)return d.responsive==="self"?w.value:C.value}),E=useMemo(()=>{var z;return(z=Number(parseResponsivePropValue(d.cols.toString(),S.value)))!==null&&z!==void 0?z:defaultCols}),B=useMemo(()=>parseResponsivePropValue(d.xGap.toString(),S.value)),$=useMemo(()=>parseResponsivePropValue(d.yGap.toString(),S.value)),P=z=>{w.value=z.contentRect.width},k=z=>{beforeNextFrameOnce(P,z)},M=ref(!1),R=computed(()=>{if(d.responsive==="self")return k}),F=ref(!1),L=ref();return onMounted(()=>{const{value:z}=L;z&&z.hasAttribute(SSR_ATTR_NAME)&&(z.removeAttribute(SSR_ATTR_NAME),F.value=!0)}),provide(gridInjectionKey,{layoutShiftDisabledRef:toRef$1(d,"layoutShiftDisabled"),isSsrRef:F,itemStyleRef:toRef$1(d,"itemStyle"),xGapRef:B,overflowRef:M}),{isSsr:!isBrowser$2,contentEl:L,mergedClsPrefix:g,style:computed(()=>d.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${d.cols}, minmax(0, 1fr))`,columnGap:pxfy(d.xGap),rowGap:pxfy(d.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${E.value}, minmax(0, 1fr))`,columnGap:pxfy(B.value),rowGap:pxfy($.value)}),isResponsive:x,responsiveQuery:S,responsiveCols:E,handleResize:R,overflow:M}},render(){if(this.layoutShiftDisabled)return h$1("div",mergeProps({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const d=()=>{var g,b,A,w,C,x,S;this.overflow=!1;const E=flatten$4(getSlot$1(this)),B=[],{collapsed:$,collapsedRows:P,responsiveCols:k,responsiveQuery:M}=this;E.forEach(U=>{var W,V,Q,K;if(((W=U==null?void 0:U.type)===null||W===void 0?void 0:W.__GRID_ITEM__)!==!0)return;if(isNodeVShowFalse(U)){const J=cloneVNode(U);J.props?J.props.privateShow=!1:J.props={privateShow:!1},B.push({child:J,rawChildSpan:0});return}U.dirs=((V=U.dirs)===null||V===void 0?void 0:V.filter(({dir:J})=>J!==vShow))||null;const G=cloneVNode(U),X=Number((K=parseResponsivePropValue((Q=G.props)===null||Q===void 0?void 0:Q.span,M))!==null&&K!==void 0?K:defaultSpan$1);X!==0&&B.push({child:G,rawChildSpan:X})});let R=0;const F=(g=B[B.length-1])===null||g===void 0?void 0:g.child;if(F!=null&&F.props){const U=(b=F.props)===null||b===void 0?void 0:b.suffix;U!==void 0&&U!==!1&&(R=(w=(A=F.props)===null||A===void 0?void 0:A.span)!==null&&w!==void 0?w:defaultSpan$1,F.props.privateSpan=R,F.props.privateColStart=k+1-R,F.props.privateShow=(C=F.props.privateShow)!==null&&C!==void 0?C:!0)}let L=0,z=!1;for(const{child:U,rawChildSpan:W}of B){if(z&&(this.overflow=!0),!z){const V=Number((S=parseResponsivePropValue((x=U.props)===null||x===void 0?void 0:x.offset,M))!==null&&S!==void 0?S:0),Q=Math.min(W+V,k);if(U.props?(U.props.privateSpan=Q,U.props.privateOffset=V):U.props={privateSpan:Q,privateOffset:V},$){const K=L%k;Q+K>k&&(L+=k-K),Q+L+R>P*k?z=!0:L+=Q}}z&&(U.props?U.props.privateShow!==!0&&(U.props.privateShow=!1):U.props={privateShow:!1})}return h$1("div",mergeProps({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[SSR_ATTR_NAME]:this.isSsr||void 0},this.$attrs),B.map(({child:U})=>U))};return this.isResponsive&&this.responsive==="self"?h$1(VResizeObserver,{onResize:this.handleResize},{default:d}):d()}}),self$k=d=>{const{primaryColor:g,baseColor:b}=d;return{color:g,iconColor:b}},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:g,successColor:b,infoColor:A,warningColor:w,errorColor:C,popoverColor:x,closeIconColor:S,closeIconColorHover:E,closeIconColorPressed:B,closeColorHover:$,closeColorPressed:P,textColor1:k,textColor3:M,borderRadius:R,fontWeightStrong:F,boxShadow2:L,lineHeight:z,fontSize:U}=d;return Object.assign(Object.assign({},commonVars$3),{borderRadius:R,lineHeight:z,fontSize:U,headerFontWeight:F,iconColor:g,iconColorSuccess:b,iconColorInfo:A,iconColorWarning:w,iconColorError:C,color:x,textColor:g,closeIconColor:S,closeIconColorHover:E,closeIconColorPressed:B,closeBorderRadius:R,closeColorHover:$,closeColorPressed:P,headerTextColor:k,descriptionTextColor:M,actionTextColor:g,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:g,closeIconColor:b,closeIconColorHover:A,closeIconColorPressed:w,infoColor:C,successColor:x,errorColor:S,warningColor:E,popoverColor:B,boxShadow2:$,primaryColor:P,lineHeight:k,borderRadius:M,closeColorHover:R,closeColorPressed:F}=d;return Object.assign(Object.assign({},commonVariables$4),{closeBorderRadius:M,textColor:g,textColorInfo:g,textColorSuccess:g,textColorError:g,textColorWarning:g,textColorLoading:g,color:B,colorInfo:B,colorSuccess:B,colorError:B,colorWarning:B,colorLoading:B,boxShadow:$,boxShadowInfo:$,boxShadowSuccess:$,boxShadowError:$,boxShadowWarning:$,boxShadowLoading:$,iconColor:g,iconColorInfo:C,iconColorSuccess:x,iconColorWarning:E,iconColorError:S,iconColorLoading:P,closeColorHover:R,closeColorPressed:F,closeIconColor:b,closeIconColorHover:A,closeIconColorPressed:w,closeColorHoverInfo:R,closeColorPressedInfo:F,closeIconColorInfo:b,closeIconColorHoverInfo:A,closeIconColorPressedInfo:w,closeColorHoverSuccess:R,closeColorPressedSuccess:F,closeIconColorSuccess:b,closeIconColorHoverSuccess:A,closeIconColorPressedSuccess:w,closeColorHoverError:R,closeColorPressedError:F,closeIconColorError:b,closeIconColorHoverError:A,closeIconColorPressedError:w,closeColorHoverWarning:R,closeColorPressedWarning:F,closeIconColorWarning:b,closeIconColorHoverWarning:A,closeIconColorPressedWarning:w,closeColorHoverLoading:R,closeColorPressedLoading:F,closeIconColorLoading:b,closeIconColorHoverLoading:A,closeIconColorPressedLoading:w,loadingColor:P,lineHeight:k,borderRadius:M})},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:g}=d;return{iconColorDisabled:g}}},inputNumberDark$1=inputNumberDark,self$h=d=>{const{textColorDisabled:g}=d;return{iconColorDisabled:g}},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:g,bodyColor:b,popoverColor:A,cardColor:w,dividerColor:C,scrollbarColor:x,scrollbarColorHover:S}=d;return{textColor:g,textColorInverted:g,color:b,colorEmbedded:b,headerColor:w,headerColorInverted:w,footerColor:w,footerColorInverted:w,headerBorderColor:C,headerBorderColorInverted:C,footerBorderColor:C,footerBorderColorInverted:C,siderBorderColor:C,siderBorderColorInverted:C,siderColor:w,siderColorInverted:w,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:A,siderToggleButtonIconColor:g,siderToggleButtonIconColorInverted:g,siderToggleBarColor:composite(b,x),siderToggleBarColorHover:composite(b,S),__invertScrollbar:"false"}}},layoutDark$1=layoutDark,self$g=d=>{const{textColor2:g,cardColor:b,modalColor:A,popoverColor:w,dividerColor:C,borderRadius:x,fontSize:S,hoverColor:E}=d;return{textColor:g,color:b,colorHover:E,colorModal:A,colorHoverModal:composite(A,E),colorPopover:w,colorHoverPopover:composite(w,E),borderColor:C,borderColorModal:composite(A,C),borderColorPopover:composite(w,C),borderRadius:x,fontSize:S}},listDark$1={name:"List",common:commonDark,self:self$g},listDark$2=listDark$1,loadingBarDark={name:"LoadingBar",common:commonDark,self(d){const{primaryColor:g}=d;return{colorError:"red",colorLoading:g,height:"2px"}}},loadingBarDark$1=loadingBarDark,logDark={name:"Log",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Code:codeDark$1},self(d){const{textColor2:g,inputColor:b,fontSize:A,primaryColor:w}=d;return{loaderFontSize:A,loaderTextColor:g,loaderColor:b,loaderBorder:"1px solid #0000",loadingColor:w}}},logDark$1=logDark,listDark={name:"Mention",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self(d){const{boxShadow2:g}=d;return{menuBoxShadow:g}}},mentionDark=listDark;function createPartialInvertedVars(d,g,b,A){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:g,itemColorActiveHoverInverted:g,itemColorActiveCollapsedInverted:g,itemTextColorInverted:d,itemTextColorHoverInverted:b,itemTextColorChildActiveInverted:b,itemTextColorChildActiveHoverInverted:b,itemTextColorActiveInverted:b,itemTextColorActiveHoverInverted:b,itemTextColorHorizontalInverted:d,itemTextColorHoverHorizontalInverted:b,itemTextColorChildActiveHorizontalInverted:b,itemTextColorChildActiveHoverHorizontalInverted:b,itemTextColorActiveHorizontalInverted:b,itemTextColorActiveHoverHorizontalInverted:b,itemIconColorInverted:d,itemIconColorHoverInverted:b,itemIconColorActiveInverted:b,itemIconColorActiveHoverInverted:b,itemIconColorChildActiveInverted:b,itemIconColorChildActiveHoverInverted:b,itemIconColorCollapsedInverted:d,itemIconColorHorizontalInverted:d,itemIconColorHoverHorizontalInverted:b,itemIconColorActiveHorizontalInverted:b,itemIconColorActiveHoverHorizontalInverted:b,itemIconColorChildActiveHorizontalInverted:b,itemIconColorChildActiveHoverHorizontalInverted:b,arrowColorInverted:d,arrowColorHoverInverted:b,arrowColorActiveInverted:b,arrowColorActiveHoverInverted:b,arrowColorChildActiveInverted:b,arrowColorChildActiveHoverInverted:b,groupTextColorInverted:A}}const self$f=d=>{const{borderRadius:g,textColor3:b,primaryColor:A,textColor2:w,textColor1:C,fontSize:x,dividerColor:S,hoverColor:E,primaryColorHover:B}=d;return Object.assign({borderRadius:g,color:"#0000",groupTextColor:b,itemColorHover:E,itemColorActive:changeColor(A,{alpha:.1}),itemColorActiveHover:changeColor(A,{alpha:.1}),itemColorActiveCollapsed:changeColor(A,{alpha:.1}),itemTextColor:w,itemTextColorHover:w,itemTextColorActive:A,itemTextColorActiveHover:A,itemTextColorChildActive:A,itemTextColorChildActiveHover:A,itemTextColorHorizontal:w,itemTextColorHoverHorizontal:B,itemTextColorActiveHorizontal:A,itemTextColorActiveHoverHorizontal:A,itemTextColorChildActiveHorizontal:A,itemTextColorChildActiveHoverHorizontal:A,itemIconColor:C,itemIconColorHover:C,itemIconColorActive:A,itemIconColorActiveHover:A,itemIconColorChildActive:A,itemIconColorChildActiveHover:A,itemIconColorCollapsed:C,itemIconColorHorizontal:C,itemIconColorHoverHorizontal:B,itemIconColorActiveHorizontal:A,itemIconColorActiveHoverHorizontal:A,itemIconColorChildActiveHorizontal:A,itemIconColorChildActiveHoverHorizontal:A,itemHeight:"42px",arrowColor:w,arrowColorHover:w,arrowColorActive:A,arrowColorActiveHover:A,arrowColorChildActive:A,arrowColorChildActiveHover:A,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:x,dividerColor:S},createPartialInvertedVars("#BBB",A,"#FFF","#AAA"))},menuDark={name:"Menu",common:commonDark,peers:{Tooltip:tooltipDark$1,Dropdown:dropdownDark$1},self(d){const{primaryColor:g,primaryColorSuppl:b}=d,A=self$f(d);return A.itemColorActive=changeColor(g,{alpha:.15}),A.itemColorActiveHover=changeColor(g,{alpha:.15}),A.itemColorActiveCollapsed=changeColor(g,{alpha:.15}),A.itemColorActiveInverted=b,A.itemColorActiveHoverInverted=b,A.itemColorActiveCollapsedInverted=b,A}},menuDark$1=menuDark,common={titleFontSize:"18px",backSize:"22px"};function self$e(d){const{textColor1:g,textColor2:b,textColor3:A,fontSize:w,fontWeightStrong:C,primaryColorHover:x,primaryColorPressed:S}=d;return Object.assign(Object.assign({},common),{titleFontWeight:C,fontSize:w,titleTextColor:g,backColor:b,backColorHover:x,backColorPressed:S,subtitleTextColor:A})}const pageHeaderDark={name:"PageHeader",common:commonDark,self:self$e},commonVars$2={iconSize:"22px"},self$d=d=>{const{fontSize:g,warningColor:b}=d;return Object.assign(Object.assign({},commonVars$2),{fontSize:g,iconColor:b})},popconfirmDark={name:"Popconfirm",common:commonDark,peers:{Button:buttonDark$1,Popover:popoverDark$1},self:self$d},popconfirmDark$1=popconfirmDark,self$c=d=>{const{infoColor:g,successColor:b,warningColor:A,errorColor:w,textColor2:C,progressRailColor:x,fontSize:S,fontWeight:E}=d;return{fontSize:S,fontSizeCircle:"28px",fontWeightCircle:E,railColor:x,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:g,iconColorInfo:g,iconColorSuccess:b,iconColorWarning:A,iconColorError:w,textColorCircle:C,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:C,fillColor:g,fillColorInfo:g,fillColorSuccess:b,fillColorWarning:A,fillColorError:w,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressDark={name:"Progress",common:commonDark,self(d){const g=self$c(d);return g.textColorLineInner="rgb(0, 0, 0)",g.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",g}},progressDark$1=progressDark,rateDark={name:"Rate",common:commonDark,self(d){const{railColor:g}=d;return{itemColor:g,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:g,textColor1:b,errorColor:A,successColor:w,infoColor:C,warningColor:x,lineHeight:S,fontWeightStrong:E}=d;return Object.assign(Object.assign({},commonVariables$3),{lineHeight:S,titleFontWeight:E,titleTextColor:b,textColor:g,iconColorError:A,iconColorSuccess:w,iconColorInfo:C,iconColorWarning:x})},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 g="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:b,modalColor:A,primaryColorSuppl:w,popoverColor:C,textColor2:x,cardColor:S,borderRadius:E,fontSize:B,opacityDisabled:$}=d;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:B,markFontSize:B,railColor:b,railColorHover:b,fillColor:w,fillColorHover:w,opacityDisabled:$,handleColor:"#FFF",dotColor:S,dotColorModal:A,dotColorPopover:C,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:C,indicatorBoxShadow:g,indicatorTextColor:x,indicatorBorderRadius:E,dotBorder:`2px solid ${b}`,dotBorderActive:`2px solid ${w}`,dotBoxShadow:""})}},sliderDark$1=sliderDark,self$a=d=>{const{opacityDisabled:g,heightTiny:b,heightSmall:A,heightMedium:w,heightLarge:C,heightHuge:x,primaryColor:S,fontSize:E}=d;return{fontSize:E,textColor:S,sizeTiny:b,sizeSmall:A,sizeMedium:w,sizeLarge:C,sizeHuge:x,color:S,opacitySpinning:g}},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:g,textColor3:b,fontSize:A,fontWeight:w}=d;return{labelFontSize:A,labelFontWeight:w,valueFontWeight:w,valueFontSize:"24px",labelTextColor:b,valuePrefixTextColor:g,valueSuffixTextColor:g,valueTextColor:g}},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:g,baseColor:b,textColorDisabled:A,primaryColor:w,errorColor:C,textColor1:x,textColor2:S}=d;return Object.assign(Object.assign({},commonVariables$2),{stepHeaderFontWeight:g,indicatorTextColorProcess:b,indicatorTextColorWait:A,indicatorTextColorFinish:w,indicatorTextColorError:C,indicatorBorderColorProcess:w,indicatorBorderColorWait:A,indicatorBorderColorFinish:w,indicatorBorderColorError:C,indicatorColorProcess:w,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:A,splitorColorWait:A,splitorColorFinish:w,splitorColorError:A,headerTextColorProcess:x,headerTextColorWait:A,headerTextColorFinish:A,headerTextColorError:C,descriptionTextColorProcess:S,descriptionTextColorWait:A,descriptionTextColorFinish:A,descriptionTextColorError:C})},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:g,opacityDisabled:b,borderRadius:A,primaryColor:w,textColor2:C,baseColor:x}=d,S="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},commonVars$1),{iconColor:x,textColor:C,loadingColor:g,opacityDisabled:b,railColor:S,railColorActive:g,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:A,railBorderRadiusMedium:A,railBorderRadiusLarge:A,buttonBorderRadiusSmall:A,buttonBorderRadiusMedium:A,buttonBorderRadiusLarge:A,boxShadowFocus:`0 0 8px 0 ${changeColor(w,{alpha:.3})}`})}},switchDark$1=switchDark,sizeVariables$2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},self$7=d=>{const{dividerColor:g,cardColor:b,modalColor:A,popoverColor:w,tableHeaderColor:C,tableColorStriped:x,textColor1:S,textColor2:E,borderRadius:B,fontWeightStrong:$,lineHeight:P,fontSizeSmall:k,fontSizeMedium:M,fontSizeLarge:R}=d;return Object.assign(Object.assign({},sizeVariables$2),{fontSizeSmall:k,fontSizeMedium:M,fontSizeLarge:R,lineHeight:P,borderRadius:B,borderColor:composite(b,g),borderColorModal:composite(A,g),borderColorPopover:composite(w,g),tdColor:b,tdColorModal:A,tdColorPopover:w,tdColorStriped:composite(b,x),tdColorStripedModal:composite(A,x),tdColorStripedPopover:composite(w,x),thColor:composite(b,C),thColorModal:composite(A,C),thColorPopover:composite(w,C),thTextColor:S,tdTextColor:E,thFontWeight:$})},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:g,primaryColor:b,textColorDisabled:A,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:x,closeColorHover:S,closeColorPressed:E,tabColor:B,baseColor:$,dividerColor:P,fontWeight:k,textColor1:M,borderRadius:R,fontSize:F,fontWeightStrong:L}=d;return Object.assign(Object.assign({},sizeVariables$1),{colorSegment:B,tabFontSizeCard:F,tabTextColorLine:M,tabTextColorActiveLine:b,tabTextColorHoverLine:b,tabTextColorDisabledLine:A,tabTextColorSegment:M,tabTextColorActiveSegment:g,tabTextColorHoverSegment:g,tabTextColorDisabledSegment:A,tabTextColorBar:M,tabTextColorActiveBar:b,tabTextColorHoverBar:b,tabTextColorDisabledBar:A,tabTextColorCard:M,tabTextColorHoverCard:M,tabTextColorActiveCard:b,tabTextColorDisabledCard:A,barColor:b,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:x,closeColorHover:S,closeColorPressed:E,closeBorderRadius:R,tabColor:B,tabColorSegment:$,tabBorderColor:P,tabFontWeightActive:k,tabFontWeight:k,tabBorderRadius:R,paneTextColor:g,fontWeightStrong:L})},tabsLight={name:"Tabs",common:commonLight,self:self$6},tabsLight$1=tabsLight,tabsDark={name:"Tabs",common:commonDark,self(d){const g=self$6(d),{inputColor:b}=d;return g.colorSegment=b,g.tabColorSegment=b,g}},tabsDark$1=tabsDark,self$5=d=>{const{textColor1:g,textColor2:b,fontWeightStrong:A,fontSize:w}=d;return{fontSize:w,titleTextColor:g,textColor:b,titleFontWeight:A}},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:g,infoColorSuppl:b,errorColorSuppl:A,successColorSuppl:w,warningColorSuppl:C,textColor1:x,textColor2:S,railColor:E,fontWeightStrong:B,fontSize:$}=d;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:$,titleFontWeight:B,circleBorder:`2px solid ${g}`,circleBorderInfo:`2px solid ${b}`,circleBorderError:`2px solid ${A}`,circleBorderSuccess:`2px solid ${w}`,circleBorderWarning:`2px solid ${C}`,iconColor:g,iconColorInfo:b,iconColorError:A,iconColorSuccess:w,iconColorWarning:C,titleTextColor:x,contentTextColor:S,metaTextColor:g,lineColor:E})}},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:g,fontSizeLarge:b,fontSizeMedium:A,fontSizeSmall:w,heightLarge:C,heightMedium:x,borderRadius:S,inputColor:E,tableHeaderColor:B,textColor1:$,textColorDisabled:P,textColor2:k,textColor3:M,hoverColor:R,closeColorHover:F,closeColorPressed:L,closeIconColor:z,closeIconColorHover:U,closeIconColorPressed:W,dividerColor:V}=d;return Object.assign(Object.assign({},commonVariables$1),{itemHeightSmall:x,itemHeightMedium:x,itemHeightLarge:C,fontSizeSmall:w,fontSizeMedium:A,fontSizeLarge:b,borderRadius:S,dividerColor:V,borderColor:"#0000",listColor:E,headerColor:B,titleTextColor:$,titleTextColorDisabled:P,extraTextColor:M,extraTextColorDisabled:P,itemTextColor:k,itemTextColorDisabled:P,itemColorPending:R,titleFontWeight:g,closeColorHover:F,closeColorPressed:L,closeIconColor:z,closeIconColorHover:U,closeIconColorPressed:W})}},transferDark$2=transferDark$1,self$4=d=>{const{borderRadiusSmall:g,hoverColor:b,pressedColor:A,primaryColor:w,textColor3:C,textColor2:x,textColorDisabled:S,fontSize:E}=d;return{fontSize:E,nodeBorderRadius:g,nodeColorHover:b,nodeColorPressed:A,nodeColorActive:changeColor(w,{alpha:.1}),arrowColor:C,nodeTextColor:x,nodeTextColorDisabled:S,loadingColor:w,dropMarkColor:w}},treeDark={name:"Tree",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self(d){const{primaryColor:g}=d,b=self$4(d);return b.nodeColorActive=changeColor(g,{alpha:.15}),b}},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:g,textColor2:b,borderColor:A,lineHeight:w,fontSize:C,borderRadiusSmall:x,dividerColor:S,fontWeightStrong:E,textColor1:B,textColor3:$,infoColor:P,warningColor:k,errorColor:M,successColor:R,codeColor:F}=d;return Object.assign(Object.assign({},commonVars),{aTextColor:g,blockquoteTextColor:b,blockquotePrefixColor:A,blockquoteLineHeight:w,blockquoteFontSize:C,codeBorderRadius:x,liTextColor:b,liLineHeight:w,liFontSize:C,hrColor:S,headerFontWeight:E,headerTextColor:B,pTextColor:b,pTextColor1Depth:B,pTextColor2Depth:b,pTextColor3Depth:$,pLineHeight:w,pFontSize:C,headerBarColor:g,headerBarColorPrimary:g,headerBarColorInfo:P,headerBarColorError:M,headerBarColorWarning:k,headerBarColorSuccess:R,textColor:b,textColor1Depth:B,textColor2Depth:b,textColor3Depth:$,textColorPrimary:g,textColorInfo:P,textColorSuccess:R,textColorWarning:k,textColorError:M,codeTextColor:b,codeColor:F,codeBorder:"1px solid #0000"})},typographyDark={name:"Typography",common:commonDark,self:self$3},typographyDark$1=typographyDark,self$2=d=>{const{iconColor:g,primaryColor:b,errorColor:A,textColor2:w,successColor:C,opacityDisabled:x,actionColor:S,borderColor:E,hoverColor:B,lineHeight:$,borderRadius:P,fontSize:k}=d;return{fontSize:k,lineHeight:$,borderRadius:P,draggerColor:S,draggerBorder:`1px dashed ${E}`,draggerBorderHover:`1px dashed ${b}`,itemColorHover:B,itemColorHoverError:changeColor(A,{alpha:.06}),itemTextColor:w,itemTextColorError:A,itemTextColorSuccess:C,itemIconColor:g,itemDisabledOpacity:x,itemBorderImageCardError:`1px solid ${A}`,itemBorderImageCard:`1px solid ${E}`}},uploadDark={name:"Upload",common:commonDark,peers:{Button:buttonDark$1,Progress:progressDark$1},self(d){const{errorColor:g}=d,b=self$2(d);return b.itemColorHoverError=changeColor(g,{alpha:.09}),b}},uploadDark$1=uploadDark,watermarkDark={name:"Watermark",common:commonDark,self(d){const{fontFamily:g}=d;return{fontFamily:g}}},watermarkDark$1=watermarkDark,rowDark={name:"Row",common:commonDark},rowDark$1=rowDark,imageDark={name:"Image",common:commonDark,peers:{Tooltip:tooltipDark$1},self:d=>{const{textColor2:g}=d;return{toolbarIconColor:g,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,g){return d==null?"":g===void 0?String(d):d.toFixed(g)}function parseNumber(d){if(d===null)return null;if(typeof d=="number")return d;{const g=Number(d);return Number.isNaN(g)?null:g}}const style$5=c$3([cB("input-number-suffix",`
  1620. display: inline-block;
  1621. margin-right: 10px;
  1622. `),cB("input-number-prefix",`
  1623. display: inline-block;
  1624. margin-left: 10px;
  1625. `)]),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:g,mergedClsPrefixRef:b,mergedRtlRef:A}=useConfig(d),w=useTheme("InputNumber","-input-number",style$5,inputNumberLight$1,d,b),{localeRef:C}=useLocale("InputNumber"),x=useFormItem(d),{mergedSizeRef:S,mergedDisabledRef:E,mergedStatusRef:B}=x,$=ref(null),P=ref(null),k=ref(null),M=ref(d.defaultValue),R=toRef$1(d,"value"),F=useMergedState(R,M),L=ref(""),z=q=>{const se=String(q).split(".")[1];return se?se.length:0},U=q=>{const se=[d.min,d.max,d.step,q].map(ge=>ge===void 0?0:z(ge));return Math.max(...se)},W=useMemo(()=>{const{placeholder:q}=d;return q!==void 0?q:C.value.placeholder}),V=useMemo(()=>{const q=parseNumber(d.step);return q!==null?q===0?1:Math.abs(q):1}),Q=useMemo(()=>{const q=parseNumber(d.min);return q!==null?q:null}),K=useMemo(()=>{const q=parseNumber(d.max);return q!==null?q:null}),G=q=>{const{value:se}=F;if(q===se){J();return}const{"onUpdate:value":ge,onUpdateValue:de,onChange:ve}=d,{nTriggerFormInput:Pe,nTriggerFormChange:De}=x;ve&&call$1(ve,q),de&&call$1(de,q),ge&&call$1(ge,q),M.value=q,Pe(),De()},X=({offset:q,doUpdateIfValid:se,fixPrecision:ge,isInputing:de})=>{const{value:ve}=L;if(de&&isWipValue(ve))return!1;const Pe=(d.parse||parse)(ve);if(Pe===null)return se&&G(null),null;if(validator(Pe)){const De=z(Pe),{precision:Qe}=d;if(Qe!==void 0&&Qe<De&&!ge)return!1;let ot=parseFloat((Pe+q).toFixed(Qe!=null?Qe:U(Pe)));if(validator(ot)){const{value:st}=K,{value:ut}=Q;if(st!==null&&ot>st){if(!se||de)return!1;ot=st}if(ut!==null&&ot<ut){if(!se||de)return!1;ot=ut}return d.validator&&!d.validator(ot)?!1:(se&&G(ot),ot)}}return!1},J=()=>{const{value:q}=F;if(validator(q)){const{format:se,precision:ge}=d;se?L.value=se(q):q===null||ge===void 0||z(q)>ge?L.value=format(q,void 0):L.value=format(q,ge)}else L.value=String(q)};J();const re=useMemo(()=>X({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),fe=useMemo(()=>{const{value:q}=F;if(d.validator&&q===null)return!1;const{value:se}=V;return X({offset:-se,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),Z=useMemo(()=>{const{value:q}=F;if(d.validator&&q===null)return!1;const{value:se}=V;return X({offset:+se,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ie(q){const{onFocus:se}=d,{nTriggerFormFocus:ge}=x;se&&call$1(se,q),ge()}function ce(q){var se,ge;if(q.target===((se=$.value)===null||se===void 0?void 0:se.wrapperElRef))return;const de=X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(de!==!1){const De=(ge=$.value)===null||ge===void 0?void 0:ge.inputElRef;De&&(De.value=String(de||"")),F.value===de&&J()}else J();const{onBlur:ve}=d,{nTriggerFormBlur:Pe}=x;ve&&call$1(ve,q),Pe(),nextTick(()=>{J()})}function me(q){const{onClear:se}=d;se&&call$1(se,q)}function ne(){const{value:q}=Z;if(!q){Re();return}const{value:se}=F;if(se===null)d.validator||G(ye());else{const{value:ge}=V;X({offset:ge,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function te(){const{value:q}=fe;if(!q){Le();return}const{value:se}=F;if(se===null)d.validator||G(ye());else{const{value:ge}=V;X({offset:-ge,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const ue=ie,ae=ce;function ye(){if(d.validator)return null;const{value:q}=Q,{value:se}=K;return q!==null?Math.max(0,q):se!==null?Math.min(0,se):0}function Oe(q){me(q),G(null)}function Ye(q){var se,ge,de;!((se=k.value)===null||se===void 0)&&se.$el.contains(q.target)&&q.preventDefault(),!((ge=P.value)===null||ge===void 0)&&ge.$el.contains(q.target)&&q.preventDefault(),(de=$.value)===null||de===void 0||de.activate()}let et=null,ht=null,Te=null;function Le(){Te&&(window.clearTimeout(Te),Te=null),et&&(window.clearInterval(et),et=null)}function Re(){qe&&(window.clearTimeout(qe),qe=null),ht&&(window.clearInterval(ht),ht=null)}function $e(){Le(),Te=window.setTimeout(()=>{et=window.setInterval(()=>{te()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,Le,{once:!0})}let qe=null;function rt(){Re(),qe=window.setTimeout(()=>{ht=window.setInterval(()=>{ne()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,Re,{once:!0})}const Xe=()=>{ht||ne()},he=()=>{et||te()};function we(q){var se,ge;if(q.key==="Enter"){if(q.target===((se=$.value)===null||se===void 0?void 0:se.wrapperElRef))return;X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ge=$.value)===null||ge===void 0||ge.deactivate())}else if(q.key==="ArrowUp"){if(!Z.value||d.keyboard.ArrowUp===!1)return;q.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ne()}else if(q.key==="ArrowDown"){if(!fe.value||d.keyboard.ArrowDown===!1)return;q.preventDefault(),X({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&te()}}function Be(q){L.value=q,d.updateValueOnInput&&!d.format&&!d.parse&&d.precision===void 0&&X({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch(F,()=>{J()});const Ne={focus:()=>{var q;return(q=$.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=$.value)===null||q===void 0?void 0:q.blur()}},Se=useRtl("InputNumber",A,b);return Object.assign(Object.assign({},Ne),{rtlEnabled:Se,inputInstRef:$,minusButtonInstRef:P,addButtonInstRef:k,mergedClsPrefix:b,mergedBordered:g,uncontrolledValue:M,mergedValue:F,mergedPlaceholder:W,displayedValueInvalid:re,mergedSize:S,mergedDisabled:E,displayedValue:L,addable:Z,minusable:fe,mergedStatus:B,handleFocus:ue,handleBlur:ae,handleClear:Oe,handleMouseDown:Ye,handleAddClick:Xe,handleMinusClick:he,handleAddMousedown:rt,handleMinusMousedown:$e,handleKeyDown:we,handleUpdateDisplayedValue:Be,mergedTheme:w,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:q}}=w.value,[se,ge,de,ve]=rgba(q);return{textColorTextDisabled:`rgb(${se}, ${ge}, ${de})`,opacityDisabled:`${ve}`}})})},render(){const{mergedClsPrefix:d,$slots:g}=this,b=()=>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(g["minus-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(RemoveIcon,null)})])}),A=()=>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(g["add-icon"],()=>[h$1(NBaseIcon,{clsPrefix:d},{default:()=>h$1(AddIcon,null)})])});return h$1("div",{class:[`${d}-input-number`,this.rtlEnabled&&`${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 w;return this.showButton&&this.buttonPlacement==="both"?[b(),resolveWrappedSlot(g.prefix,C=>C?h$1("span",{class:`${d}-input-number-prefix`},C):null)]:(w=g.prefix)===null||w===void 0?void 0:w.call(g)},suffix:()=>{var w;return this.showButton?[resolveWrappedSlot(g.suffix,C=>C?h$1("span",{class:`${d}-input-number-suffix`},C):null),this.buttonPlacement==="right"?b():null,A()]:(w=g.suffix)===null||w===void 0?void 0:w.call(g)}}))}}),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:g,iconColor:b,fontWeight:A,fontSizeLarge:w,fontSizeMedium:C,fontSizeSmall:x,heightLarge:S,heightMedium:E,heightSmall:B,borderRadius:$,inputColor:P,tableHeaderColor:k,textColor1:M,textColorDisabled:R,textColor2:F,hoverColor:L}=d;return Object.assign(Object.assign({},commonVariables),{itemHeightSmall:B,itemHeightMedium:E,itemHeightLarge:S,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:w,borderRadius:$,borderColor:"#0000",listColor:P,headerColor:k,titleTextColor:M,titleTextColorDisabled:R,extraTextColor:F,filterDividerColor:"#0000",itemTextColor:F,itemTextColorDisabled:R,itemColorPending:L,titleFontWeight:A,iconColor:b,iconColorDisabled:g})}},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",`
  1626. margin: var(--n-margin);
  1627. z-index: 0;
  1628. transform-origin: top center;
  1629. display: flex;
  1630. `,[fadeInHeightExpandTransition({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),cB("message",`
  1631. box-sizing: border-box;
  1632. display: flex;
  1633. align-items: center;
  1634. transition:
  1635. color .3s var(--n-bezier),
  1636. box-shadow .3s var(--n-bezier),
  1637. background-color .3s var(--n-bezier),
  1638. opacity .3s var(--n-bezier),
  1639. transform .3s var(--n-bezier),
  1640. margin-bottom .3s var(--n-bezier);
  1641. padding: var(--n-padding);
  1642. border-radius: var(--n-border-radius);
  1643. flex-wrap: nowrap;
  1644. overflow: hidden;
  1645. max-width: var(--n-max-width);
  1646. color: var(--n-text-color);
  1647. background-color: var(--n-color);
  1648. box-shadow: var(--n-box-shadow);
  1649. `,[cE("content",`
  1650. display: inline-block;
  1651. line-height: var(--n-line-height);
  1652. font-size: var(--n-font-size);
  1653. `),cE("icon",`
  1654. position: relative;
  1655. margin: var(--n-icon-margin);
  1656. height: var(--n-icon-size);
  1657. width: var(--n-icon-size);
  1658. font-size: var(--n-icon-size);
  1659. flex-shrink: 0;
  1660. `,[["default","info","success","warning","error","loading"].map(d=>cM(`${d}-type`,[c$3("> *",`
  1661. color: var(--n-icon-color-${d});
  1662. transition: color .3s var(--n-bezier);
  1663. `)])),c$3("> *",`
  1664. position: absolute;
  1665. left: 0;
  1666. top: 0;
  1667. right: 0;
  1668. bottom: 0;
  1669. `,[iconSwitchTransition()])]),cE("close",`
  1670. margin: var(--n-close-margin);
  1671. transition:
  1672. background-color .3s var(--n-bezier),
  1673. color .3s var(--n-bezier);
  1674. flex-shrink: 0;
  1675. `,[c$3("&:hover",`
  1676. color: var(--n-close-icon-color-hover);
  1677. `),c$3("&:active",`
  1678. color: var(--n-close-icon-color-pressed);
  1679. `)])]),cB("message-container",`
  1680. z-index: 6000;
  1681. position: fixed;
  1682. height: 0;
  1683. overflow: visible;
  1684. display: flex;
  1685. flex-direction: column;
  1686. align-items: center;
  1687. `,[cM("top",`
  1688. top: 12px;
  1689. left: 0;
  1690. right: 0;
  1691. `),cM("top-left",`
  1692. top: 12px;
  1693. left: 12px;
  1694. right: 0;
  1695. align-items: flex-start;
  1696. `),cM("top-right",`
  1697. top: 12px;
  1698. left: 0;
  1699. right: 12px;
  1700. align-items: flex-end;
  1701. `),cM("bottom",`
  1702. bottom: 4px;
  1703. left: 0;
  1704. right: 0;
  1705. justify-content: flex-end;
  1706. `),cM("bottom-left",`
  1707. bottom: 4px;
  1708. left: 12px;
  1709. right: 0;
  1710. justify-content: flex-end;
  1711. align-items: flex-start;
  1712. `),cM("bottom-right",`
  1713. bottom: 4px;
  1714. left: 0;
  1715. right: 12px;
  1716. justify-content: flex-end;
  1717. align-items: flex-end;
  1718. `)])]),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:g,mergedRtlRef:b}=useConfig(d),{props:A,mergedClsPrefixRef:w}=inject(messageProviderInjectionKey),C=useRtl("Message",b,w),x=useTheme("Message","-message",style$4,messageLight$1,A,w),S=computed(()=>{const{type:B}=d,{common:{cubicBezierEaseInOut:$},self:{padding:P,margin:k,maxWidth:M,iconMargin:R,closeMargin:F,closeSize:L,iconSize:z,fontSize:U,lineHeight:W,borderRadius:V,iconColorInfo:Q,iconColorSuccess:K,iconColorWarning:G,iconColorError:X,iconColorLoading:J,closeIconSize:re,closeBorderRadius:fe,[createKey("textColor",B)]:Z,[createKey("boxShadow",B)]:ie,[createKey("color",B)]:ce,[createKey("closeColorHover",B)]:me,[createKey("closeColorPressed",B)]:ne,[createKey("closeIconColor",B)]:te,[createKey("closeIconColorPressed",B)]:ue,[createKey("closeIconColorHover",B)]:ae}}=x.value;return{"--n-bezier":$,"--n-margin":k,"--n-padding":P,"--n-max-width":M,"--n-font-size":U,"--n-icon-margin":R,"--n-icon-size":z,"--n-close-icon-size":re,"--n-close-border-radius":fe,"--n-close-size":L,"--n-close-margin":F,"--n-text-color":Z,"--n-color":ce,"--n-box-shadow":ie,"--n-icon-color-info":Q,"--n-icon-color-success":K,"--n-icon-color-warning":G,"--n-icon-color-error":X,"--n-icon-color-loading":J,"--n-close-color-hover":me,"--n-close-color-pressed":ne,"--n-close-icon-color":te,"--n-close-icon-color-pressed":ue,"--n-close-icon-color-hover":ae,"--n-line-height":W,"--n-border-radius":V}}),E=g?useThemeClass("message",computed(()=>d.type[0]),S,{}):void 0;return{mergedClsPrefix:w,rtlEnabled:C,messageProviderProps:A,handleClose(){var B;(B=d.onClose)===null||B===void 0||B.call(d)},cssVars:g?void 0:S,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender,placement:A.placement}},render(){const{render:d,type:g,closable:b,content:A,mergedClsPrefix:w,cssVars:C,themeClass:x,onRender:S,icon:E,handleClose:B,showIcon:$}=this;S==null||S();let P;return h$1("div",{class:[`${w}-message-wrapper`,x],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},C]},d?d(this.$props):h$1("div",{class:[`${w}-message ${w}-message--${g}-type`,this.rtlEnabled&&`${w}-message--rtl`]},(P=createIconVNode(E,g,w))&&$?h$1("div",{class:`${w}-message__icon ${w}-message__icon--${g}-type`},h$1(NIconSwitchTransition,null,{default:()=>P})):null,h$1("div",{class:`${w}-message__content`},render$1(A)),b?h$1(NBaseClose,{clsPrefix:w,class:`${w}-message__close`,onClick:B,absolute:!0}):null))}});function createIconVNode(d,g,b){if(typeof d=="function")return d();{const A=g==="loading"?h$1(NBaseLoading,{clsPrefix:b,strokeWidth:24,scale:.85}):iconRenderMap$1[g]();return A?h$1(NBaseIcon,{clsPrefix:b,key:g},{default:()=>A}):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 g=null;const b=ref(!0);onMounted(()=>{A()});function A(){const{duration:$}=d;$&&(g=window.setTimeout(x,$))}function w($){$.currentTarget===$.target&&g!==null&&(window.clearTimeout(g),g=null)}function C($){$.currentTarget===$.target&&A()}function x(){const{onHide:$}=d;b.value=!1,g&&(window.clearTimeout(g),g=null),$&&$()}function S(){const{onClose:$}=d;$&&$(),x()}function E(){const{onAfterLeave:$,onInternalAfterLeave:P,onAfterHide:k,internalKey:M}=d;$&&$(),P&&P(M),k&&k()}function B(){x()}return{show:b,hide:x,handleClose:S,handleAfterLeave:E,handleMouseleave:C,handleMouseenter:w,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:g}=useConfig(d),b=ref([]),A=ref({}),w={create(E,B){return C(E,Object.assign({type:"default"},B))},info(E,B){return C(E,Object.assign(Object.assign({},B),{type:"info"}))},success(E,B){return C(E,Object.assign(Object.assign({},B),{type:"success"}))},warning(E,B){return C(E,Object.assign(Object.assign({},B),{type:"warning"}))},error(E,B){return C(E,Object.assign(Object.assign({},B),{type:"error"}))},loading(E,B){return C(E,Object.assign(Object.assign({},B),{type:"loading"}))},destroyAll:S};provide(messageProviderInjectionKey,{props:d,mergedClsPrefixRef:g}),provide(messageApiInjectionKey,w);function C(E,B){const $=createId(),P=reactive(Object.assign(Object.assign({},B),{content:E,key:$,destroy:()=>{var M;(M=A.value[$])===null||M===void 0||M.hide()}})),{max:k}=d;return k&&b.value.length>=k&&b.value.shift(),b.value.push(P),P}function x(E){b.value.splice(b.value.findIndex(B=>B.key===E),1),delete A.value[E]}function S(){Object.values(A.value).forEach(E=>{E.hide()})}return Object.assign({mergedClsPrefix:g,messageRefs:A,messageList:b,handleAfterLeave:x},w)},render(){var d,g,b;return h$1(Fragment,null,(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d),this.messageList.length?h$1(Teleport,{to:(b=this.to)!==null&&b!==void 0?b:"body"},h$1("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(A=>h$1(MessageEnvironment,Object.assign({ref:w=>{w&&(this.messageRefs[A.key]=w)},internalKey:A.key,onInternalAfterLeave:this.handleAfterLeave},omit(A,["destroy"],void 0),{duration:A.duration===void 0?this.duration:A.duration,keepAliveOnHover:A.keepAliveOnHover===void 0?this.keepAliveOnHover:A.keepAliveOnHover,closable:A.closable===void 0?this.closable:A.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:g,wipTransitionCountRef:b}=inject(notificationProviderInjectionKey),A=ref(null);return watchEffect(()=>{var w,C;b.value>0?(w=A==null?void 0:A.value)===null||w===void 0||w.classList.add("transitioning"):(C=A==null?void 0:A.value)===null||C===void 0||C.classList.remove("transitioning")}),{selfRef:A,mergedTheme:d,mergedClsPrefix:g,transitioning:b}},render(){const{$slots:d,scrollable:g,mergedClsPrefix:b,mergedTheme:A,placement:w}=this;return h$1("div",{ref:"selfRef",class:[`${b}-notification-container`,g&&`${b}-notification-container--scrollable`,`${b}-notification-container--${w}`]},g?h$1(NScrollbar$1,{theme:A.peers.Scrollbar,themeOverrides:A.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:g,mergedThemeRef:b,props:A}=inject(notificationProviderInjectionKey),{inlineThemeDisabled:w,mergedRtlRef:C}=useConfig(),x=useRtl("Notification",C,g),S=computed(()=>{const{type:B}=d,{self:{color:$,textColor:P,closeIconColor:k,closeIconColorHover:M,closeIconColorPressed:R,headerTextColor:F,descriptionTextColor:L,actionTextColor:z,borderRadius:U,headerFontWeight:W,boxShadow:V,lineHeight:Q,fontSize:K,closeMargin:G,closeSize:X,width:J,padding:re,closeIconSize:fe,closeBorderRadius:Z,closeColorHover:ie,closeColorPressed:ce,titleFontSize:me,metaFontSize:ne,descriptionFontSize:te,[createKey("iconColor",B)]:ue},common:{cubicBezierEaseOut:ae,cubicBezierEaseIn:ye,cubicBezierEaseInOut:Oe}}=b.value,{left:Ye,right:et,top:ht,bottom:Te}=getMargin(re);return{"--n-color":$,"--n-font-size":K,"--n-text-color":P,"--n-description-text-color":L,"--n-action-text-color":z,"--n-title-text-color":F,"--n-title-font-weight":W,"--n-bezier":Oe,"--n-bezier-ease-out":ae,"--n-bezier-ease-in":ye,"--n-border-radius":U,"--n-box-shadow":V,"--n-close-border-radius":Z,"--n-close-color-hover":ie,"--n-close-color-pressed":ce,"--n-close-icon-color":k,"--n-close-icon-color-hover":M,"--n-close-icon-color-pressed":R,"--n-line-height":Q,"--n-icon-color":ue,"--n-close-margin":G,"--n-close-size":X,"--n-close-icon-size":fe,"--n-width":J,"--n-padding-left":Ye,"--n-padding-right":et,"--n-padding-top":ht,"--n-padding-bottom":Te,"--n-title-font-size":me,"--n-meta-font-size":ne,"--n-description-font-size":te}}),E=w?useThemeClass("notification",computed(()=>d.type[0]),S,A):void 0;return{mergedClsPrefix:g,showAvatar:computed(()=>d.avatar||d.type!=="default"),handleCloseClick(){d.onClose()},rtlEnabled:x,cssVars:w?void 0:S,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){var d;const{mergedClsPrefix:g}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{class:[`${g}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},h$1("div",{class:[`${g}-notification`,this.rtlEnabled&&`${g}-notification--rtl`,this.themeClass,{[`${g}-notification--closable`]:this.closable,[`${g}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?h$1("div",{class:`${g}-notification__avatar`},this.avatar?render$1(this.avatar):this.type!=="default"?h$1(NBaseIcon,{clsPrefix:g},{default:()=>iconRenderMap[this.type]()}):null):null,this.closable?h$1(NBaseClose,{clsPrefix:g,class:`${g}-notification__close`,onClick:this.handleCloseClick}):null,h$1("div",{ref:"bodyRef",class:`${g}-notification-main`},this.title?h$1("div",{class:`${g}-notification-main__header`},render$1(this.title)):null,this.description?h$1("div",{class:`${g}-notification-main__description`},render$1(this.description)):null,this.content?h$1("pre",{class:`${g}-notification-main__content`},render$1(this.content)):null,this.meta||this.action?h$1("div",{class:`${g}-notification-main-footer`},this.meta?h$1("div",{class:`${g}-notification-main-footer__meta`},render$1(this.meta)):null,this.action?h$1("div",{class:`${g}-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:g}=inject(notificationProviderInjectionKey),b=ref(!0);let A=null;function w(){b.value=!1,A&&window.clearTimeout(A)}function C(R){g.value++,nextTick(()=>{R.style.height=`${R.offsetHeight}px`,R.style.maxHeight="0",R.style.transition="none",R.offsetHeight,R.style.transition="",R.style.maxHeight=R.style.height})}function x(R){g.value--,R.style.height="",R.style.maxHeight="";const{onAfterEnter:F,onAfterShow:L}=d;F&&F(),L&&L()}function S(R){g.value++,R.style.maxHeight=`${R.offsetHeight}px`,R.style.height=`${R.offsetHeight}px`,R.offsetHeight}function E(R){const{onHide:F}=d;F&&F(),R.style.maxHeight="0",R.offsetHeight}function B(){g.value--;const{onAfterLeave:R,onInternalAfterLeave:F,onAfterHide:L,internalKey:z}=d;R&&R(),F(z),L&&L()}function $(){const{duration:R}=d;R&&(A=window.setTimeout(w,R))}function P(R){R.currentTarget===R.target&&A!==null&&(window.clearTimeout(A),A=null)}function k(R){R.currentTarget===R.target&&$()}function M(){const{onClose:R}=d;R?Promise.resolve(R()).then(F=>{F!==!1&&w()}):w()}return onMounted(()=>{d.duration&&(A=window.setTimeout(w,d.duration))}),{show:b,hide:w,handleClose:M,handleAfterLeave:B,handleLeave:E,handleBeforeLeave:S,handleAfterEnter:x,handleBeforeEnter:C,handleMouseenter:P,handleMouseleave:k}},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",`
  1719. z-index: 4000;
  1720. position: fixed;
  1721. overflow: visible;
  1722. display: flex;
  1723. flex-direction: column;
  1724. align-items: flex-end;
  1725. `,[c$3(">",[cB("scrollbar",`
  1726. width: initial;
  1727. overflow: visible;
  1728. height: -moz-fit-content !important;
  1729. height: fit-content !important;
  1730. max-height: 100vh !important;
  1731. `,[c$3(">",[cB("scrollbar-container",`
  1732. height: -moz-fit-content !important;
  1733. height: fit-content !important;
  1734. max-height: 100vh !important;
  1735. `,[cB("scrollbar-content",`
  1736. padding-top: 12px;
  1737. padding-bottom: 33px;
  1738. `)])])])]),cM("top, top-right, top-left",`
  1739. top: 12px;
  1740. `,[c$3("&.transitioning >",[cB("scrollbar",[c$3(">",[cB("scrollbar-container",`
  1741. min-height: 100vh !important;
  1742. `)])])])]),cM("bottom, bottom-right, bottom-left",`
  1743. bottom: 12px;
  1744. `,[c$3(">",[cB("scrollbar",[c$3(">",[cB("scrollbar-container",[cB("scrollbar-content",`
  1745. padding-bottom: 12px;
  1746. `)])])])]),cB("notification-wrapper",`
  1747. display: flex;
  1748. align-items: flex-end;
  1749. margin-bottom: 0;
  1750. margin-top: 12px;
  1751. `)]),cM("top, bottom",`
  1752. left: 50%;
  1753. transform: translateX(-50%);
  1754. `,[cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1755. transform: scale(0.85);
  1756. `),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1757. transform: scale(1);
  1758. `)])]),cM("top",[cB("notification-wrapper",`
  1759. transform-origin: top center;
  1760. `)]),cM("bottom",[cB("notification-wrapper",`
  1761. transform-origin: bottom center;
  1762. `)]),cM("top-right, bottom-right",[cB("notification",`
  1763. margin-left: 28px;
  1764. margin-right: 16px;
  1765. `)]),cM("top-left, bottom-left",[cB("notification",`
  1766. margin-left: 16px;
  1767. margin-right: 28px;
  1768. `)]),cM("top-right",`
  1769. right: 0;
  1770. `,[placementTransformStyle("top-right")]),cM("top-left",`
  1771. left: 0;
  1772. `,[placementTransformStyle("top-left")]),cM("bottom-right",`
  1773. right: 0;
  1774. `,[placementTransformStyle("bottom-right")]),cM("bottom-left",`
  1775. left: 0;
  1776. `,[placementTransformStyle("bottom-left")]),cM("scrollable",[cM("top-right",`
  1777. top: 0;
  1778. `),cM("top-left",`
  1779. top: 0;
  1780. `),cM("bottom-right",`
  1781. bottom: 0;
  1782. `),cM("bottom-left",`
  1783. bottom: 0;
  1784. `)]),cB("notification-wrapper",`
  1785. margin-bottom: 12px;
  1786. `,[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1787. opacity: 0;
  1788. margin-top: 0 !important;
  1789. margin-bottom: 0 !important;
  1790. `),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1791. opacity: 1;
  1792. `),c$3("&.notification-transition-leave-active",`
  1793. transition:
  1794. background-color .3s var(--n-bezier),
  1795. color .3s var(--n-bezier),
  1796. opacity .3s var(--n-bezier),
  1797. transform .3s var(--n-bezier-ease-in),
  1798. max-height .3s var(--n-bezier),
  1799. margin-top .3s linear,
  1800. margin-bottom .3s linear,
  1801. box-shadow .3s var(--n-bezier);
  1802. `),c$3("&.notification-transition-enter-active",`
  1803. transition:
  1804. background-color .3s var(--n-bezier),
  1805. color .3s var(--n-bezier),
  1806. opacity .3s var(--n-bezier),
  1807. transform .3s var(--n-bezier-ease-out),
  1808. max-height .3s var(--n-bezier),
  1809. margin-top .3s linear,
  1810. margin-bottom .3s linear,
  1811. box-shadow .3s var(--n-bezier);
  1812. `)]),cB("notification",`
  1813. background-color: var(--n-color);
  1814. color: var(--n-text-color);
  1815. transition:
  1816. background-color .3s var(--n-bezier),
  1817. color .3s var(--n-bezier),
  1818. opacity .3s var(--n-bezier),
  1819. box-shadow .3s var(--n-bezier);
  1820. font-family: inherit;
  1821. font-size: var(--n-font-size);
  1822. font-weight: 400;
  1823. position: relative;
  1824. display: flex;
  1825. overflow: hidden;
  1826. flex-shrink: 0;
  1827. padding-left: var(--n-padding-left);
  1828. padding-right: var(--n-padding-right);
  1829. width: var(--n-width);
  1830. border-radius: var(--n-border-radius);
  1831. box-shadow: var(--n-box-shadow);
  1832. box-sizing: border-box;
  1833. opacity: 1;
  1834. `,[cE("avatar",[cB("icon",{color:"var(--n-icon-color)"}),cB("base-icon",{color:"var(--n-icon-color)"})]),cM("show-avatar",[cB("notification-main",`
  1835. margin-left: 40px;
  1836. width: calc(100% - 40px);
  1837. `)]),cM("closable",[cB("notification-main",[c$3("> *:first-child",{paddingRight:"20px"})]),cE("close",`
  1838. position: absolute;
  1839. top: 0;
  1840. right: 0;
  1841. margin: var(--n-close-margin);
  1842. transition:
  1843. background-color .3s var(--n-bezier),
  1844. color .3s var(--n-bezier);
  1845. `)]),cE("avatar",`
  1846. position: absolute;
  1847. top: var(--n-padding-top);
  1848. left: var(--n-padding-left);
  1849. width: 28px;
  1850. height: 28px;
  1851. font-size: 28px;
  1852. display: flex;
  1853. align-items: center;
  1854. justify-content: center;
  1855. `,[cB("icon","transition: color .3s var(--n-bezier);")]),cB("notification-main",`
  1856. padding-top: var(--n-padding-top);
  1857. padding-bottom: var(--n-padding-bottom);
  1858. box-sizing: border-box;
  1859. display: flex;
  1860. flex-direction: column;
  1861. margin-left: 8px;
  1862. width: calc(100% - 8px);
  1863. `,[cB("notification-main-footer",`
  1864. display: flex;
  1865. align-items: center;
  1866. justify-content: space-between;
  1867. margin-top: 12px;
  1868. `,[cE("meta",`
  1869. font-size: var(--n-meta-font-size);
  1870. transition: color .3s var(--n-bezier-ease-out);
  1871. color: var(--n-description-text-color);
  1872. `),cE("action",`
  1873. cursor: pointer;
  1874. transition: color .3s var(--n-bezier-ease-out);
  1875. color: var(--n-action-text-color);
  1876. `)]),cE("header",`
  1877. font-weight: var(--n-title-font-weight);
  1878. font-size: var(--n-title-font-size);
  1879. transition: color .3s var(--n-bezier-ease-out);
  1880. color: var(--n-title-text-color);
  1881. `),cE("description",`
  1882. margin-top: 8px;
  1883. font-size: var(--n-description-font-size);
  1884. white-space: pre-wrap;
  1885. word-wrap: break-word;
  1886. transition: color .3s var(--n-bezier-ease-out);
  1887. color: var(--n-description-text-color);
  1888. `),cE("content",`
  1889. line-height: var(--n-line-height);
  1890. margin: 12px 0 0 0;
  1891. font-family: inherit;
  1892. white-space: pre-wrap;
  1893. word-wrap: break-word;
  1894. transition: color .3s var(--n-bezier-ease-out);
  1895. color: var(--n-text-color);
  1896. `,[c$3("&:first-child",{margin:0})])])])])]);function placementTransformStyle(d){const b=d.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",A="0";return cB("notification-wrapper",[c$3("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1897. transform: translate(${b}, 0);
  1898. `),c$3("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1899. transform: translate(${A}, 0);
  1900. `)])}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:g}=useConfig(d),b=ref([]),A={},w=new Set;function C(M){const R=createId(),F=()=>{w.add(R),A[R]&&A[R].hide()},L=reactive(Object.assign(Object.assign({},M),{key:R,destroy:F,hide:F,deactivate:F})),{max:z}=d;if(z&&b.value.length-w.size>=z){let U=!1,W=0;for(const V of b.value){if(!w.has(V.key)){A[V.key]&&(V.destroy(),U=!0);break}W++}U||b.value.splice(W,1)}return b.value.push(L),L}const x=["info","success","warning","error"].map(M=>R=>C(Object.assign(Object.assign({},R),{type:M})));function S(M){w.delete(M),b.value.splice(b.value.findIndex(R=>R.key===M),1)}const E=useTheme("Notification","-notification",style$3,notificationLight$1,d,g),B={create:C,info:x[0],success:x[1],warning:x[2],error:x[3],open:P,destroyAll:k},$=ref(0);provide(notificationApiInjectionKey,B),provide(notificationProviderInjectionKey,{props:d,mergedClsPrefixRef:g,mergedThemeRef:E,wipTransitionCountRef:$});function P(M){return C(M)}function k(){Object.values(b.value).forEach(M=>{M.hide()})}return Object.assign({mergedClsPrefix:g,notificationList:b,notificationRefs:A,handleAfterLeave:S},B)},render(){var d,g,b;const{placement:A}=this;return h$1(Fragment,null,(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d),this.notificationList.length?h$1(Teleport,{to:(b=this.to)!==null&&b!==void 0?b:"body"},h$1(NotificationContainer,{style:this.containerStyle,scrollable:this.scrollable&&A!=="top"&&A!=="bottom",placement:A},{default:()=>this.notificationList.map(w=>h$1(NotificationEnvironment,Object.assign({ref:C=>{const x=w.key;C===null?delete this.notificationRefs[x]:this.notificationRefs[x]=C}},omit(w,["destroy","hide","deactivate"]),{internalKey:w.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:w.keepAliveOnHover===void 0?this.keepAliveOnHover:w.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:(...b)=>{var A;(A=d.value)===null||A===void 0||A.scrollTo(b[0],b[1])},scrollBy:(...b)=>{var A;(A=d.value)===null||A===void 0||A.scrollBy(b[0],b[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:g,heightMedium:b,heightLarge:A,borderRadius:w}=d;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:w,heightSmall:g,heightMedium:b,heightLarge:A}}},style$2=c$3([c$3("@keyframes spin-rotate",`
  1901. from {
  1902. transform: rotate(0);
  1903. }
  1904. to {
  1905. transform: rotate(360deg);
  1906. }
  1907. `),cB("spin-container",{position:"relative"},[cB("spin-body",`
  1908. position: absolute;
  1909. top: 50%;
  1910. left: 50%;
  1911. transform: translateX(-50%) translateY(-50%);
  1912. `,[fadeInTransition()])]),cB("spin-body",`
  1913. display: inline-flex;
  1914. align-items: center;
  1915. justify-content: center;
  1916. flex-direction: column;
  1917. `),cB("spin",`
  1918. display: inline-flex;
  1919. height: var(--n-size);
  1920. width: var(--n-size);
  1921. font-size: var(--n-size);
  1922. color: var(--n-color);
  1923. `,[cM("rotate",`
  1924. animation: spin-rotate 2s linear infinite;
  1925. `)]),cB("spin-description",`
  1926. display: inline-block;
  1927. font-size: var(--n-font-size);
  1928. color: var(--n-text-color);
  1929. transition: color .3s var(--n-bezier);
  1930. margin-top: 8px;
  1931. `),cB("spin-content",`
  1932. opacity: 1;
  1933. transition: opacity .3s var(--n-bezier);
  1934. pointer-events: all;
  1935. `,[cM("spinning",`
  1936. user-select: none;
  1937. -webkit-user-select: none;
  1938. pointer-events: none;
  1939. opacity: var(--n-opacity-spinning);
  1940. `)])]),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:g,inlineThemeDisabled:b}=useConfig(d),A=useTheme("Spin","-spin",style$2,spinLight$1,d,g),w=computed(()=>{const{size:x}=d,{common:{cubicBezierEaseInOut:S},self:E}=A.value,{opacitySpinning:B,color:$,textColor:P}=E,k=typeof x=="number"?pxfy(x):E[createKey("size",x)];return{"--n-bezier":S,"--n-opacity-spinning":B,"--n-size":k,"--n-color":$,"--n-text-color":P}}),C=b?useThemeClass("spin",computed(()=>{const{size:x}=d;return typeof x=="number"?String(x):x[0]}),w,d):void 0;return{mergedClsPrefix:g,compitableShow:useCompitable(d,["spinning","show"]),mergedStrokeWidth:computed(()=>{const{strokeWidth:x}=d;if(x!==void 0)return x;const{size:S}=d;return STROKE_WIDTH[typeof S=="number"?"medium":S]}),cssVars:b?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var d,g;const{$slots:b,mergedClsPrefix:A,description:w}=this,C=b.icon&&this.rotate,x=(w||b.description)&&h$1("div",{class:`${A}-spin-description`},w||((d=b.description)===null||d===void 0?void 0:d.call(b))),S=b.icon?h$1("div",{class:[`${A}-spin-body`,this.themeClass]},h$1("div",{class:[`${A}-spin`,C&&`${A}-spin--rotate`],style:b.default?"":this.cssVars},b.icon()),x):h$1("div",{class:[`${A}-spin-body`,this.themeClass]},h$1(NBaseLoading,{clsPrefix:A,style:b.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${A}-spin`}),x);return(g=this.onRender)===null||g===void 0||g.call(this),b.default?h$1("div",{class:[`${A}-spin-container`,this.themeClass],style:this.cssVars},h$1("div",{class:[`${A}-spin-content`,this.compitableShow&&`${A}-spin-content--spinning`]},b),h$1(Transition,{name:"fade-in-transition"},{default:()=>this.compitableShow?S:null})):S}}),style$1=c$3([cB("table",`
  1941. font-size: var(--n-font-size);
  1942. font-variant-numeric: tabular-nums;
  1943. line-height: var(--n-line-height);
  1944. width: 100%;
  1945. border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
  1946. text-align: left;
  1947. border-collapse: separate;
  1948. border-spacing: 0;
  1949. overflow: hidden;
  1950. background-color: var(--n-td-color);
  1951. border-color: var(--n-merged-border-color);
  1952. transition:
  1953. background-color .3s var(--n-bezier),
  1954. border-color .3s var(--n-bezier),
  1955. color .3s var(--n-bezier);
  1956. --n-merged-border-color: var(--n-border-color);
  1957. `,[c$3("th",`
  1958. white-space: nowrap;
  1959. transition:
  1960. background-color .3s var(--n-bezier),
  1961. border-color .3s var(--n-bezier),
  1962. color .3s var(--n-bezier);
  1963. text-align: inherit;
  1964. padding: var(--n-th-padding);
  1965. vertical-align: inherit;
  1966. text-transform: none;
  1967. border: 0px solid var(--n-merged-border-color);
  1968. font-weight: var(--n-th-font-weight);
  1969. color: var(--n-th-text-color);
  1970. background-color: var(--n-th-color);
  1971. border-bottom: 1px solid var(--n-merged-border-color);
  1972. border-right: 1px solid var(--n-merged-border-color);
  1973. `,[c$3("&:last-child",`
  1974. border-right: 0px solid var(--n-merged-border-color);
  1975. `)]),c$3("td",`
  1976. transition:
  1977. background-color .3s var(--n-bezier),
  1978. border-color .3s var(--n-bezier),
  1979. color .3s var(--n-bezier);
  1980. padding: var(--n-td-padding);
  1981. color: var(--n-td-text-color);
  1982. background-color: var(--n-td-color);
  1983. border: 0px solid var(--n-merged-border-color);
  1984. border-right: 1px solid var(--n-merged-border-color);
  1985. border-bottom: 1px solid var(--n-merged-border-color);
  1986. `,[c$3("&:last-child",`
  1987. border-right: 0px solid var(--n-merged-border-color);
  1988. `)]),cM("bordered",`
  1989. border: 1px solid var(--n-merged-border-color);
  1990. border-radius: var(--n-border-radius);
  1991. `,[c$3("tr",[c$3("&:last-child",[c$3("td",`
  1992. border-bottom: 0 solid var(--n-merged-border-color);
  1993. `)])])]),cM("single-line",[c$3("th",`
  1994. border-right: 0px solid var(--n-merged-border-color);
  1995. `),c$3("td",`
  1996. border-right: 0px solid var(--n-merged-border-color);
  1997. `)]),cM("single-column",[c$3("tr",[c$3("&:not(:last-child)",[c$3("td",`
  1998. border-bottom: 0px solid var(--n-merged-border-color);
  1999. `)])])]),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",`
  2000. border-bottom: 0px solid var(--n-merged-border-color);
  2001. `)])])])]),insideModal(cB("table",`
  2002. background-color: var(--n-td-color-modal);
  2003. --n-merged-border-color: var(--n-border-color-modal);
  2004. `,[c$3("th",`
  2005. background-color: var(--n-th-color-modal);
  2006. `),c$3("td",`
  2007. background-color: var(--n-td-color-modal);
  2008. `)])),insidePopover(cB("table",`
  2009. background-color: var(--n-td-color-popover);
  2010. --n-merged-border-color: var(--n-border-color-popover);
  2011. `,[c$3("th",`
  2012. background-color: var(--n-th-color-popover);
  2013. `),c$3("td",`
  2014. background-color: var(--n-td-color-popover);
  2015. `)]))]),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:g,inlineThemeDisabled:b,mergedRtlRef:A}=useConfig(d),w=useTheme("Table","-table",style$1,tableLight$1,d,g),C=useRtl("Table",A,g),x=computed(()=>{const{size:E}=d,{self:{borderColor:B,tdColor:$,tdColorModal:P,tdColorPopover:k,thColor:M,thColorModal:R,thColorPopover:F,thTextColor:L,tdTextColor:z,borderRadius:U,thFontWeight:W,lineHeight:V,borderColorModal:Q,borderColorPopover:K,tdColorStriped:G,tdColorStripedModal:X,tdColorStripedPopover:J,[createKey("fontSize",E)]:re,[createKey("tdPadding",E)]:fe,[createKey("thPadding",E)]:Z},common:{cubicBezierEaseInOut:ie}}=w.value;return{"--n-bezier":ie,"--n-td-color":$,"--n-td-color-modal":P,"--n-td-color-popover":k,"--n-td-text-color":z,"--n-border-color":B,"--n-border-color-modal":Q,"--n-border-color-popover":K,"--n-border-radius":U,"--n-font-size":re,"--n-th-color":M,"--n-th-color-modal":R,"--n-th-color-popover":F,"--n-th-font-weight":W,"--n-th-text-color":L,"--n-line-height":V,"--n-td-padding":fe,"--n-th-padding":Z,"--n-td-color-striped":G,"--n-td-color-striped-modal":X,"--n-td-color-striped-popover":J}}),S=b?useThemeClass("table",computed(()=>d.size[0]),x,d):void 0;return{rtlEnabled:C,mergedClsPrefix:g,cssVars:b?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){var d;const{mergedClsPrefix:g}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("table",{class:[`${g}-table`,this.themeClass,{[`${g}-table--rtl`]:this.rtlEnabled,[`${g}-table--bottom-bordered`]:this.bottomBordered,[`${g}-table--bordered`]:this.bordered,[`${g}-table--single-line`]:this.singleLine,[`${g}-table--single-column`]:this.singleColumn,[`${g}-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 g=inject(tabsInjectionKey,null);return g||throwError("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:g.paneStyleRef,class:g.paneClassRef,mergedClsPrefix:g.mergedClsPrefixRef}},render(){return h$1("div",{class:[`${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:g,valueRef:b,typeRef:A,closableRef:w,tabStyleRef:C,tabChangeIdRef:x,onBeforeLeaveRef:S,triggerRef:E,handleAdd:B,activateTab:$,handleClose:P}=inject(tabsInjectionKey);return{trigger:E,mergedClosable:computed(()=>{if(d.internalAddable)return!1;const{closable:k}=d;return k===void 0?w.value:k}),style:C,clsPrefix:g,value:b,type:A,handleClose(k){k.stopPropagation(),!d.disabled&&P(d.name)},activateTab(){if(d.disabled)return;if(d.internalAddable){B();return}const{name:k}=d,M=++x.id;if(k!==b.value){const{value:R}=S;R?Promise.resolve(R(d.name,b.value)).then(F=>{F&&x.id===M&&$(k)}):$(k)}}}},render(){const{internalAddable:d,clsPrefix:g,name:b,disabled:A,label:w,tab:C,value:x,mergedClosable:S,style:E,trigger:B,$slots:{default:$}}=this,P=w!=null?w:C;return h$1("div",{class:`${g}-tabs-tab-wrapper`},this.internalLeftPadded?h$1("div",{class:`${g}-tabs-tab-pad`}):null,h$1("div",Object.assign({key:b,"data-name":b,"data-disabled":A?!0:void 0},mergeProps({class:[`${g}-tabs-tab`,x===b&&`${g}-tabs-tab--active`,A&&`${g}-tabs-tab--disabled`,S&&`${g}-tabs-tab--closable`,d&&`${g}-tabs-tab--addable`],onClick:B==="click"?this.activateTab:void 0,onMouseenter:B==="hover"?this.activateTab:void 0,style:d?void 0:E},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h$1("span",{class:`${g}-tabs-tab__label`},d?h$1(Fragment,null,h$1("div",{class:`${g}-tabs-tab__height-placeholder`}," "),h$1(NBaseIcon,{clsPrefix:g},{default:()=>h$1(AddIcon,null)})):$?$():typeof P=="object"?P:render$1(P!=null?P:b)),S&&this.type==="card"?h$1(NBaseClose,{clsPrefix:g,class:`${g}-tabs-tab__close`,onClick:this.handleClose,disabled:A}):null))}}),style=cB("tabs",`
  2016. box-sizing: border-box;
  2017. width: 100%;
  2018. display: flex;
  2019. flex-direction: column;
  2020. transition:
  2021. background-color .3s var(--n-bezier),
  2022. border-color .3s var(--n-bezier);
  2023. `,[cM("segment-type",[cB("tabs-rail",[c$3("&.transition-disabled","color: red;",[cB("tabs-tab",`
  2024. transition: none;
  2025. `)])])]),cM("top",[cB("tab-pane",`
  2026. padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
  2027. `)]),cM("left",[cB("tab-pane",`
  2028. padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
  2029. `)]),cM("left, right",`
  2030. flex-direction: row;
  2031. `,[cB("tabs-bar",`
  2032. width: 2px;
  2033. right: 0;
  2034. transition:
  2035. top .2s var(--n-bezier),
  2036. max-height .2s var(--n-bezier),
  2037. background-color .3s var(--n-bezier);
  2038. `),cB("tabs-tab",`
  2039. padding: var(--n-tab-padding-vertical);
  2040. `)]),cM("right",`
  2041. flex-direction: row-reverse;
  2042. `,[cB("tab-pane",`
  2043. padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
  2044. `),cB("tabs-bar",`
  2045. left: 0;
  2046. `)]),cM("bottom",`
  2047. flex-direction: column-reverse;
  2048. justify-content: flex-end;
  2049. `,[cB("tab-pane",`
  2050. padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
  2051. `),cB("tabs-bar",`
  2052. top: 0;
  2053. `)]),cB("tabs-rail",`
  2054. padding: 3px;
  2055. border-radius: var(--n-tab-border-radius);
  2056. width: 100%;
  2057. background-color: var(--n-color-segment);
  2058. transition: background-color .3s var(--n-bezier);
  2059. display: flex;
  2060. align-items: center;
  2061. `,[cB("tabs-tab-wrapper",`
  2062. flex-basis: 0;
  2063. flex-grow: 1;
  2064. display: flex;
  2065. align-items: center;
  2066. justify-content: center;
  2067. `,[cB("tabs-tab",`
  2068. overflow: hidden;
  2069. border-radius: var(--n-tab-border-radius);
  2070. width: 100%;
  2071. display: flex;
  2072. align-items: center;
  2073. justify-content: center;
  2074. `,[cM("active",`
  2075. font-weight: var(--n-font-weight-strong);
  2076. color: var(--n-tab-text-color-active);
  2077. background-color: var(--n-tab-color-segment);
  2078. box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
  2079. `),c$3("&:hover",`
  2080. color: var(--n-tab-text-color-hover);
  2081. `)])])]),cM("flex",[cB("tabs-nav",{width:"100%"},[cB("tabs-wrapper",{width:"100%"},[cB("tabs-tab",{marginRight:0})])])]),cB("tabs-nav",`
  2082. box-sizing: border-box;
  2083. line-height: 1.5;
  2084. display: flex;
  2085. transition: border-color .3s var(--n-bezier);
  2086. `,[cE("prefix, suffix",`
  2087. display: flex;
  2088. align-items: center;
  2089. `),cE("prefix","padding-right: 16px;"),cE("suffix","padding-left: 16px;")]),cM("top, bottom",[cB("tabs-nav-scroll-wrapper",[c$3("&::before",`
  2090. top: 0;
  2091. bottom: 0;
  2092. left: 0;
  2093. width: 20px;
  2094. `),c$3("&::after",`
  2095. top: 0;
  2096. bottom: 0;
  2097. right: 0;
  2098. width: 20px;
  2099. `),cM("shadow-start",[c$3("&::before",`
  2100. box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
  2101. `)]),cM("shadow-end",[c$3("&::after",`
  2102. box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
  2103. `)])])]),cM("left, right",[cB("tabs-nav-scroll-wrapper",[c$3("&::before",`
  2104. top: 0;
  2105. left: 0;
  2106. right: 0;
  2107. height: 20px;
  2108. `),c$3("&::after",`
  2109. bottom: 0;
  2110. left: 0;
  2111. right: 0;
  2112. height: 20px;
  2113. `),cM("shadow-start",[c$3("&::before",`
  2114. box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
  2115. `)]),cM("shadow-end",[c$3("&::after",`
  2116. box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
  2117. `)])])]),cB("tabs-nav-scroll-wrapper",`
  2118. flex: 1;
  2119. position: relative;
  2120. overflow: hidden;
  2121. `,[cB("tabs-nav-y-scroll",`
  2122. height: 100%;
  2123. width: 100%;
  2124. overflow-y: auto;
  2125. scrollbar-width: none;
  2126. `,[c$3("&::-webkit-scrollbar",`
  2127. width: 0;
  2128. height: 0;
  2129. `)]),c$3("&::before, &::after",`
  2130. transition: box-shadow .3s var(--n-bezier);
  2131. pointer-events: none;
  2132. content: "";
  2133. position: absolute;
  2134. z-index: 1;
  2135. `)]),cB("tabs-nav-scroll-content",`
  2136. display: flex;
  2137. position: relative;
  2138. min-width: 100%;
  2139. width: fit-content;
  2140. box-sizing: border-box;
  2141. `),cB("tabs-wrapper",`
  2142. display: inline-flex;
  2143. flex-wrap: nowrap;
  2144. position: relative;
  2145. `),cB("tabs-tab-wrapper",`
  2146. display: flex;
  2147. flex-wrap: nowrap;
  2148. flex-shrink: 0;
  2149. flex-grow: 0;
  2150. `),cB("tabs-tab",`
  2151. cursor: pointer;
  2152. white-space: nowrap;
  2153. flex-wrap: nowrap;
  2154. display: inline-flex;
  2155. align-items: center;
  2156. color: var(--n-tab-text-color);
  2157. font-size: var(--n-tab-font-size);
  2158. background-clip: padding-box;
  2159. padding: var(--n-tab-padding);
  2160. transition:
  2161. box-shadow .3s var(--n-bezier),
  2162. color .3s var(--n-bezier),
  2163. background-color .3s var(--n-bezier),
  2164. border-color .3s var(--n-bezier);
  2165. `,[cM("disabled",{cursor:"not-allowed"}),cE("close",`
  2166. margin-left: 6px;
  2167. transition:
  2168. background-color .3s var(--n-bezier),
  2169. color .3s var(--n-bezier);
  2170. `),cE("label",`
  2171. display: flex;
  2172. align-items: center;
  2173. `)]),cB("tabs-bar",`
  2174. position: absolute;
  2175. bottom: 0;
  2176. height: 2px;
  2177. border-radius: 1px;
  2178. background-color: var(--n-bar-color);
  2179. transition:
  2180. left .2s var(--n-bezier),
  2181. max-width .2s var(--n-bezier),
  2182. background-color .3s var(--n-bezier);
  2183. `,[c$3("&.transition-disabled",`
  2184. transition: none;
  2185. `),cM("disabled",`
  2186. background-color: var(--n-tab-text-color-disabled)
  2187. `)]),cB("tabs-pane-wrapper",`
  2188. position: relative;
  2189. overflow: hidden;
  2190. transition: max-height .2s var(--n-bezier);
  2191. `),cB("tab-pane",`
  2192. color: var(--n-pane-text-color);
  2193. width: 100%;
  2194. transition:
  2195. color .3s var(--n-bezier),
  2196. background-color .3s var(--n-bezier),
  2197. opacity .2s var(--n-bezier);
  2198. left: 0;
  2199. right: 0;
  2200. top: 0;
  2201. `,[c$3("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
  2202. transition:
  2203. color .3s var(--n-bezier),
  2204. background-color .3s var(--n-bezier),
  2205. transform .2s var(--n-bezier),
  2206. opacity .2s var(--n-bezier);
  2207. `),c$3("&.next-transition-leave-active, &.prev-transition-leave-active",`
  2208. position: absolute;
  2209. `),c$3("&.next-transition-enter-from, &.prev-transition-leave-to",`
  2210. transform: translateX(32px);
  2211. opacity: 0;
  2212. `),c$3("&.next-transition-leave-to, &.prev-transition-enter-from",`
  2213. transform: translateX(-32px);
  2214. opacity: 0;
  2215. `),c$3("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
  2216. transform: translateX(0);
  2217. opacity: 1;
  2218. `)]),cB("tabs-tab-pad",`
  2219. box-sizing: border-box;
  2220. width: var(--n-tab-gap);
  2221. flex-grow: 0;
  2222. flex-shrink: 0;
  2223. `),cM("line-type, bar-type",[cB("tabs-tab",`
  2224. font-weight: var(--n-tab-font-weight);
  2225. box-sizing: border-box;
  2226. vertical-align: bottom;
  2227. `,[c$3("&:hover",{color:"var(--n-tab-text-color-hover)"}),cM("active",`
  2228. color: var(--n-tab-text-color-active);
  2229. font-weight: var(--n-tab-font-weight-active);
  2230. `),cM("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),cB("tabs-nav",[cM("line-type",[cM("top",[cE("prefix, suffix",`
  2231. border-bottom: 1px solid var(--n-tab-border-color);
  2232. `),cB("tabs-nav-scroll-content",`
  2233. border-bottom: 1px solid var(--n-tab-border-color);
  2234. `),cB("tabs-bar",`
  2235. bottom: -1px;
  2236. `)]),cM("left",[cE("prefix, suffix",`
  2237. border-right: 1px solid var(--n-tab-border-color);
  2238. `),cB("tabs-nav-scroll-content",`
  2239. border-right: 1px solid var(--n-tab-border-color);
  2240. `),cB("tabs-bar",`
  2241. right: -1px;
  2242. `)]),cM("right",[cE("prefix, suffix",`
  2243. border-left: 1px solid var(--n-tab-border-color);
  2244. `),cB("tabs-nav-scroll-content",`
  2245. border-left: 1px solid var(--n-tab-border-color);
  2246. `),cB("tabs-bar",`
  2247. left: -1px;
  2248. `)]),cM("bottom",[cE("prefix, suffix",`
  2249. border-top: 1px solid var(--n-tab-border-color);
  2250. `),cB("tabs-nav-scroll-content",`
  2251. border-top: 1px solid var(--n-tab-border-color);
  2252. `),cB("tabs-bar",`
  2253. top: -1px;
  2254. `)]),cE("prefix, suffix",`
  2255. transition: border-color .3s var(--n-bezier);
  2256. `),cB("tabs-nav-scroll-content",`
  2257. transition: border-color .3s var(--n-bezier);
  2258. `),cB("tabs-bar",`
  2259. border-radius: 0;
  2260. `)]),cM("card-type",[cE("prefix, suffix",`
  2261. transition: border-color .3s var(--n-bezier);
  2262. border-bottom: 1px solid var(--n-tab-border-color);
  2263. `),cB("tabs-pad",`
  2264. flex-grow: 1;
  2265. transition: border-color .3s var(--n-bezier);
  2266. border-bottom: 1px solid var(--n-tab-border-color);
  2267. `),cB("tabs-tab-pad",`
  2268. transition: border-color .3s var(--n-bezier);
  2269. `),cB("tabs-tab",`
  2270. font-weight: var(--n-tab-font-weight);
  2271. border: 1px solid var(--n-tab-border-color);
  2272. background-color: var(--n-tab-color);
  2273. box-sizing: border-box;
  2274. position: relative;
  2275. vertical-align: bottom;
  2276. display: flex;
  2277. justify-content: space-between;
  2278. font-size: var(--n-tab-font-size);
  2279. color: var(--n-tab-text-color);
  2280. `,[cM("addable",`
  2281. padding-left: 8px;
  2282. padding-right: 8px;
  2283. font-size: 16px;
  2284. `,[cE("height-placeholder",`
  2285. width: 0;
  2286. font-size: var(--n-tab-font-size);
  2287. `),cNotM("disabled",[c$3("&:hover",`
  2288. color: var(--n-tab-text-color-hover);
  2289. `)])]),cM("closable","padding-right: 8px;"),cM("active",`
  2290. background-color: #0000;
  2291. font-weight: var(--n-tab-font-weight-active);
  2292. color: var(--n-tab-text-color-active);
  2293. `),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",`
  2294. flex-direction: column;
  2295. `,[cB("tabs-tab-wrapper",`
  2296. flex-direction: column;
  2297. `,[cB("tabs-tab-pad",`
  2298. height: var(--n-tab-gap-vertical);
  2299. width: 100%;
  2300. `)])])]),cM("top",[cM("card-type",[cB("tabs-tab",`
  2301. border-top-left-radius: var(--n-tab-border-radius);
  2302. border-top-right-radius: var(--n-tab-border-radius);
  2303. `,[cM("active",`
  2304. border-bottom: 1px solid #0000;
  2305. `)]),cB("tabs-tab-pad",`
  2306. border-bottom: 1px solid var(--n-tab-border-color);
  2307. `)])]),cM("left",[cM("card-type",[cB("tabs-tab",`
  2308. border-top-left-radius: var(--n-tab-border-radius);
  2309. border-bottom-left-radius: var(--n-tab-border-radius);
  2310. `,[cM("active",`
  2311. border-right: 1px solid #0000;
  2312. `)]),cB("tabs-tab-pad",`
  2313. border-right: 1px solid var(--n-tab-border-color);
  2314. `)])]),cM("right",[cM("card-type",[cB("tabs-tab",`
  2315. border-top-right-radius: var(--n-tab-border-radius);
  2316. border-bottom-right-radius: var(--n-tab-border-radius);
  2317. `,[cM("active",`
  2318. border-left: 1px solid #0000;
  2319. `)]),cB("tabs-tab-pad",`
  2320. border-left: 1px solid var(--n-tab-border-color);
  2321. `)])]),cM("bottom",[cM("card-type",[cB("tabs-tab",`
  2322. border-bottom-left-radius: var(--n-tab-border-radius);
  2323. border-bottom-right-radius: var(--n-tab-border-radius);
  2324. `,[cM("active",`
  2325. border-top: 1px solid #0000;
  2326. `)]),cB("tabs-tab-pad",`
  2327. border-top: 1px solid var(--n-tab-border-color);
  2328. `)])])])]),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:g}){var b,A,w,C;const{mergedClsPrefixRef:x,inlineThemeDisabled:S}=useConfig(d),E=useTheme("Tabs","-tabs",style,tabsLight$1,d,x),B=ref(null),$=ref(null),P=ref(null),k=ref(null),M=ref(null),R=ref(!0),F=ref(!0),L=useCompitable(d,["labelSize","size"]),z=useCompitable(d,["activeName","value"]),U=ref((A=(b=z.value)!==null&&b!==void 0?b:d.defaultValue)!==null&&A!==void 0?A:g.default?(C=(w=flatten$4(g.default())[0])===null||w===void 0?void 0:w.props)===null||C===void 0?void 0:C.name:null),W=useMergedState(z,U),V={id:0},Q=computed(()=>{if(!(!d.justifyContent||d.type==="card"))return{display:"flex",justifyContent:d.justifyContent}});watch(W,()=>{V.id=0,J(),re()});function K(){var Se;const{value:q}=W;return q===null?null:(Se=B.value)===null||Se===void 0?void 0:Se.querySelector(`[data-name="${q}"]`)}function G(Se){if(d.type==="card")return;const{value:q}=$;if(q&&Se){const se=`${x.value}-tabs-bar--disabled`,{barWidth:ge,placement:de}=d;if(Se.dataset.disabled==="true"?q.classList.add(se):q.classList.remove(se),["top","bottom"].includes(de)){if(X(["top","maxHeight","height"]),typeof ge=="number"&&Se.offsetWidth>=ge){const ve=Math.floor((Se.offsetWidth-ge)/2)+Se.offsetLeft;q.style.left=`${ve}px`,q.style.maxWidth=`${ge}px`}else q.style.left=`${Se.offsetLeft}px`,q.style.maxWidth=`${Se.offsetWidth}px`;q.style.width="8192px",q.offsetWidth}else{if(X(["left","maxWidth","width"]),typeof ge=="number"&&Se.offsetHeight>=ge){const ve=Math.floor((Se.offsetHeight-ge)/2)+Se.offsetTop;q.style.top=`${ve}px`,q.style.maxHeight=`${ge}px`}else q.style.top=`${Se.offsetTop}px`,q.style.maxHeight=`${Se.offsetHeight}px`;q.style.height="8192px",q.offsetHeight}}}function X(Se){const{value:q}=$;if(q)for(const se of Se)q.style[se]=""}function J(){if(d.type==="card")return;const Se=K();Se&&G(Se)}function re(Se){var q;const se=(q=M.value)===null||q===void 0?void 0:q.$el;if(!se)return;const ge=K();if(!ge)return;const{scrollLeft:de,offsetWidth:ve}=se,{offsetLeft:Pe,offsetWidth:De}=ge;de>Pe?se.scrollTo({top:0,left:Pe,behavior:"smooth"}):Pe+De>de+ve&&se.scrollTo({top:0,left:Pe+De-ve,behavior:"smooth"})}const fe=ref(null);let Z=0,ie=null;function ce(Se){const q=fe.value;if(q){Z=Se.getBoundingClientRect().height;const se=`${Z}px`,ge=()=>{q.style.height=se,q.style.maxHeight=se};ie?(ge(),ie(),ie=null):ie=ge}}function me(Se){const q=fe.value;if(q){const se=Se.getBoundingClientRect().height,ge=()=>{document.body.offsetHeight,q.style.maxHeight=`${se}px`,q.style.height=`${Math.max(Z,se)}px`};ie?(ie(),ie=null,ge()):ie=ge}}function ne(){const Se=fe.value;Se&&(Se.style.maxHeight="",Se.style.height="")}const te={value:[]},ue=ref("next");function ae(Se){const q=W.value;let se="next";for(const ge of te.value){if(ge===q)break;if(ge===Se){se="prev";break}}ue.value=se,ye(Se)}function ye(Se){const{onActiveNameChange:q,onUpdateValue:se,"onUpdate:value":ge}=d;q&&call$1(q,Se),se&&call$1(se,Se),ge&&call$1(ge,Se),U.value=Se}function Oe(Se){const{onClose:q}=d;q&&call$1(q,Se)}function Ye(){const{value:Se}=$;if(!Se)return;const q="transition-disabled";Se.classList.add(q),J(),Se.classList.remove(q)}let et=0;function ht(Se){var q;if(Se.contentRect.width===0&&Se.contentRect.height===0||et===Se.contentRect.width)return;et=Se.contentRect.width;const{type:se}=d;(se==="line"||se==="bar")&&Ye(),se!=="segment"&&rt((q=M.value)===null||q===void 0?void 0:q.$el)}const Te=throttle(ht,64);watch([()=>d.justifyContent,()=>d.size],()=>{nextTick(()=>{const{type:Se}=d;(Se==="line"||Se==="bar")&&Ye()})});const Le=ref(!1);function Re(Se){var q;const{target:se,contentRect:{width:ge}}=Se,de=se.parentElement.offsetWidth;if(!Le.value)de<ge&&(Le.value=!0);else{const{value:ve}=k;if(!ve)return;de-ge>ve.$el.offsetWidth&&(Le.value=!1)}rt((q=M.value)===null||q===void 0?void 0:q.$el)}const $e=throttle(Re,64);function qe(){const{onAdd:Se}=d;Se&&Se(),nextTick(()=>{const q=K(),{value:se}=M;!q||!se||se.scrollTo({left:q.offsetLeft,top:0,behavior:"smooth"})})}function rt(Se){if(!Se)return;const{placement:q}=d;if(q==="top"||q==="bottom"){const{scrollLeft:se,scrollWidth:ge,offsetWidth:de}=Se;R.value=se<=0,F.value=se+de>=ge}else{const{scrollTop:se,scrollHeight:ge,offsetHeight:de}=Se;R.value=se<=0,F.value=se+de>=ge}}const Xe=throttle(Se=>{rt(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:x,typeRef:toRef$1(d,"type"),closableRef:toRef$1(d,"closable"),valueRef:W,tabChangeIdRef:V,onBeforeLeaveRef:toRef$1(d,"onBeforeLeave"),activateTab:ae,handleClose:Oe,handleAdd:qe}),onFontsReady(()=>{J(),re()}),watchEffect(()=>{const{value:Se}=P;if(!Se)return;const{value:q}=x,se=`${q}-tabs-nav-scroll-wrapper--shadow-start`,ge=`${q}-tabs-nav-scroll-wrapper--shadow-end`;R.value?Se.classList.remove(se):Se.classList.add(se),F.value?Se.classList.remove(ge):Se.classList.add(ge)});const he=ref(null);watch(W,()=>{if(d.type==="segment"){const Se=he.value;Se&&nextTick(()=>{Se.classList.add("transition-disabled"),Se.offsetWidth,Se.classList.remove("transition-disabled")})}});const we={syncBarPosition:()=>{J()}},Be=computed(()=>{const{value:Se}=L,{type:q}=d,se={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[q],ge=`${Se}${se}`,{self:{barColor:de,closeIconColor:ve,closeIconColorHover:Pe,closeIconColorPressed:De,tabColor:Qe,tabBorderColor:ot,paneTextColor:st,tabFontWeight:ut,tabBorderRadius:He,tabFontWeightActive:ct,colorSegment:mt,fontWeightStrong:_t,tabColorSegment:ft,closeSize:Ct,closeIconSize:pt,closeColorHover:bt,closeColorPressed:be,closeBorderRadius:Fe,[createKey("panePadding",Se)]:We,[createKey("tabPadding",ge)]:it,[createKey("tabPaddingVertical",ge)]:gt,[createKey("tabGap",ge)]:yt,[createKey("tabGap",`${ge}Vertical`)]:Ae,[createKey("tabTextColor",q)]:Ie,[createKey("tabTextColorActive",q)]:ze,[createKey("tabTextColorHover",q)]:Ve,[createKey("tabTextColorDisabled",q)]:Ke,[createKey("tabFontSize",Se)]:dt},common:{cubicBezierEaseInOut:Et}}=E.value;return{"--n-bezier":Et,"--n-color-segment":mt,"--n-bar-color":de,"--n-tab-font-size":dt,"--n-tab-text-color":Ie,"--n-tab-text-color-active":ze,"--n-tab-text-color-disabled":Ke,"--n-tab-text-color-hover":Ve,"--n-pane-text-color":st,"--n-tab-border-color":ot,"--n-tab-border-radius":He,"--n-close-size":Ct,"--n-close-icon-size":pt,"--n-close-color-hover":bt,"--n-close-color-pressed":be,"--n-close-border-radius":Fe,"--n-close-icon-color":ve,"--n-close-icon-color-hover":Pe,"--n-close-icon-color-pressed":De,"--n-tab-color":Qe,"--n-tab-font-weight":ut,"--n-tab-font-weight-active":ct,"--n-tab-padding":it,"--n-tab-padding-vertical":gt,"--n-tab-gap":yt,"--n-tab-gap-vertical":Ae,"--n-pane-padding-left":getMargin(We,"left"),"--n-pane-padding-right":getMargin(We,"right"),"--n-pane-padding-top":getMargin(We,"top"),"--n-pane-padding-bottom":getMargin(We,"bottom"),"--n-font-weight-strong":_t,"--n-tab-color-segment":ft}}),Ne=S?useThemeClass("tabs",computed(()=>`${L.value[0]}${d.type[0]}`),Be,d):void 0;return Object.assign({mergedClsPrefix:x,mergedValue:W,renderedNames:new Set,tabsRailElRef:he,tabsPaneWrapperRef:fe,tabsElRef:B,barElRef:$,addTabInstRef:k,xScrollInstRef:M,scrollWrapperElRef:P,addTabFixed:Le,tabWrapperStyle:Q,handleNavResize:Te,mergedSize:L,handleScroll:Xe,handleTabsResize:$e,cssVars:S?void 0:Be,themeClass:Ne==null?void 0:Ne.themeClass,animationDirection:ue,renderNameListRef:te,onAnimationBeforeLeave:ce,onAnimationEnter:me,onAnimationAfterEnter:ne,onRender:Ne==null?void 0:Ne.onRender},we)},render(){const{mergedClsPrefix:d,type:g,placement:b,addTabFixed:A,addable:w,mergedSize:C,renderNameListRef:x,onRender:S,paneWrapperClass:E,paneWrapperStyle:B,$slots:{default:$,prefix:P,suffix:k}}=this;S==null||S();const M=$?flatten$4($()).filter(Q=>Q.type.__TAB_PANE__===!0):[],R=$?flatten$4($()).filter(Q=>Q.type.__TAB__===!0):[],F=!R.length,L=g==="card",z=g==="segment",U=!L&&!z&&this.justifyContent;x.value=[];const W=()=>{const Q=h$1("div",{style:this.tabWrapperStyle,class:[`${d}-tabs-wrapper`]},U?null:h$1("div",{class:`${d}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),F?M.map((K,G)=>(x.value.push(K.props.name),justifyTabDynamicProps(h$1(Tab,Object.assign({},K.props,{internalCreatedByPane:!0,internalLeftPadded:G!==0&&(!U||U==="center"||U==="start"||U==="end")}),K.children?{default:K.children.tab}:void 0)))):R.map((K,G)=>(x.value.push(K.props.name),justifyTabDynamicProps(G!==0&&!U?createLeftPaddedTabVNode(K):K))),!A&&w&&L?createAddTag(w,(F?M.length:R.length)!==0):null,U?null:h$1("div",{class:`${d}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return h$1("div",{ref:"tabsElRef",class:`${d}-tabs-nav-scroll-content`},L&&w?h$1(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>Q}):Q,L?h$1("div",{class:`${d}-tabs-pad`}):null,L?null:h$1("div",{ref:"barElRef",class:`${d}-tabs-bar`}))},V=z?"top":b;return h$1("div",{class:[`${d}-tabs`,this.themeClass,`${d}-tabs--${g}-type`,`${d}-tabs--${C}-size`,U&&`${d}-tabs--flex`,`${d}-tabs--${V}`],style:this.cssVars},h$1("div",{class:[`${d}-tabs-nav--${g}-type`,`${d}-tabs-nav--${V}`,`${d}-tabs-nav`]},resolveWrappedSlot(P,Q=>Q&&h$1("div",{class:`${d}-tabs-nav__prefix`},Q)),z?h$1("div",{class:`${d}-tabs-rail`,ref:"tabsRailElRef"},F?M.map((Q,K)=>(x.value.push(Q.props.name),h$1(Tab,Object.assign({},Q.props,{internalCreatedByPane:!0,internalLeftPadded:K!==0}),Q.children?{default:Q.children.tab}:void 0))):R.map((Q,K)=>(x.value.push(Q.props.name),K===0?Q:createLeftPaddedTabVNode(Q)))):h$1(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h$1("div",{class:`${d}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(V)?h$1(VXScroll,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:W}):h$1("div",{class:`${d}-tabs-nav-y-scroll`,onScroll:this.handleScroll},W()))}),A&&w&&L?createAddTag(w,!0):null,resolveWrappedSlot(k,Q=>Q&&h$1("div",{class:`${d}-tabs-nav__suffix`},Q))),F&&(this.animated&&(V==="top"||V==="bottom")?h$1("div",{ref:"tabsPaneWrapperRef",style:B,class:[`${d}-tabs-pane-wrapper`,E]},filterMapTabPanes(M,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes(M,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(d,g,b,A,w,C,x){const S=[];return d.forEach(E=>{const{name:B,displayDirective:$,"display-directive":P}=E.props,k=R=>$===R||P===R,M=g===B;if(E.key!==void 0&&(E.key=B),M||k("show")||k("show:lazy")&&b.has(B)){b.has(B)||b.add(B);const R=!k("if");S.push(R?withDirectives(E,[[vShow,M]]):E)}}),x?h$1(TransitionGroup,{name:`${x}-transition`,onBeforeLeave:A,onEnter:w,onAfterEnter:C},{default:()=>S}):S}function createAddTag(d,g){return h$1(Tab,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:g,disabled:typeof d=="object"&&d.disabled})}function createLeftPaddedTabVNode(d){const g=cloneVNode(d);return g.props?g.props.internalLeftPadded=!0:g.props={internalLeftPadded:!0},g}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",g=lighten(d,6),b={common:{primaryColor:d,primaryColorHover:g,primaryColorPressed:g},LoadingBar:{colorLoading:d}},A=getQuery(),w=async()=>storeData.platformType==="TEACHER"?await teacherQueryUserInfo():await studentQueryUserInfo(),C=async()=>{const S=await w();if(S.code===5e3){const B=browser();showToast(S.message),B.isApp?postMessage({api:"login"}):window.location.href=`${/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin}/classroom`;return}const E=(S==null?void 0:S.data)||{};setUserInfo(E)};onBeforeMount(()=>{A.Authorization&&setToken(A.Authorization),C()});const x=computed(()=>storeData.status==="login"||A.dev);return()=>createVNode(NConfigProvider,{inlineThemeDisabled:!0,themeOverrides:b,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):x.value?createVNode(RouterView,null,null):null]})]})]})]})}});var version$1="6.2.2",version_1=version$1,TimingCallbacks$2=function(d,g){var b=this;if(g||(g={}),b.qpm=g.qpm?parseInt(g.qpm,10):null,!b.qpm){var A=d.metaText?d.metaText.tempo:null;b.qpm=d.getBpm(A)}b.extraMeasuresAtBeginning=g.extraMeasuresAtBeginning?parseInt(g.extraMeasuresAtBeginning,10):0,b.beatCallback=g.beatCallback,b.eventCallback=g.eventCallback,b.lineEndCallback=g.lineEndCallback,b.lineEndAnticipation=g.lineEndAnticipation?parseInt(g.lineEndAnticipation,10):0,b.beatSubdivisions=g.beatSubdivisions?parseInt(g.beatSubdivisions,10):1,b.joggerTimer=null,b.replaceTarget=function(C){b.noteTimings=C.setTiming(b.qpm,b.extraMeasuresAtBeginning),C.noteTimings.length===0&&(b.noteTimings=C.setTiming(0,0)),b.lineEndCallback&&(b.lineEndTimings=getLineEndTimings(C.noteTimings,b.lineEndAnticipation)),b.startTime=null,b.currentBeat=0,b.currentEvent=0,b.currentLine=0,b.currentTime=0,b.isPaused=!1,b.isRunning=!1,b.pausedPercent=null,b.justUnpaused=!1,b.newSeekPercent=0,b.lastTimestamp=0,b.noteTimings.length!==0&&(b.millisecondsPerBeat=1e3/(b.qpm/60)/b.beatSubdivisions,b.lastMoment=b.noteTimings[b.noteTimings.length-1].milliseconds,b.totalBeats=Math.round(b.lastMoment/b.millisecondsPerBeat))},b.replaceTarget(d),b.doTiming=function(C){if(b.lastTimestamp!==C&&(b.lastTimestamp=C,b.startTime||(b.startTime=C),!b.isPaused&&b.isRunning)){for(b.currentTime=C-b.startTime,b.currentTime+=16;b.noteTimings.length>b.currentEvent&&b.noteTimings[b.currentEvent].milliseconds<b.currentTime;){if(b.eventCallback&&b.noteTimings[b.currentEvent].type==="event"){var x=b.startTime;b.eventCallback(b.noteTimings[b.currentEvent]),x!==b.startTime&&(b.currentTime=C-b.startTime)}b.currentEvent++}if(b.lineEndCallback&&b.lineEndTimings.length>b.currentLine&&b.lineEndTimings[b.currentLine].milliseconds<b.currentTime&&b.currentEvent<b.noteTimings.length){var S=b.noteTimings[b.currentEvent].milliseconds===b.currentTime?b.noteTimings[b.currentEvent]:b.noteTimings[b.currentEvent-1];b.lineEndCallback(b.lineEndTimings[b.currentLine],S,{line:b.currentLine,endTimings:b.lineEndTimings,currentTime:b.currentTime}),b.currentLine++}if(b.currentTime<b.lastMoment){if(requestAnimationFrame(b.doTiming),b.currentBeat*b.millisecondsPerBeat<b.currentTime){var E=b.doBeatCallback(C);E!==null&&(b.currentTime=E)}}else if(b.currentBeat<=b.totalBeats&&b.beatCallback){var B=b.doBeatCallback(C);B!==null&&(b.currentTime=B),requestAnimationFrame(b.doTiming)}if(b.currentTime>=b.lastMoment)if(b.eventCallback){var $=b.eventCallback(null);b.shouldStop($).then(function(P){P&&b.stop()})}else b.stop()}},b.shouldStop=function(C){return new Promise(function(x){if(!C)return x(!0);if(C==="continue")return x(!1);C.then&&C.then(function(S){x(S!=="continue")})})},b.doBeatCallback=function(C){if(b.beatCallback){for(var x=b.currentEvent;x<b.noteTimings.length&&b.noteTimings[x].left===null;)x++;var S,E;if(x<b.noteTimings.length){for(S=b.noteTimings[x].milliseconds,x=Math.max(0,b.currentEvent-1);x>=0&&b.noteTimings[x].left===null;)x--;E=b.noteTimings[x]}var B={},$={};if(E){B.top=E.top,B.height=E.height;var P=Math.max(0,C-b.startTime-E.milliseconds),k=S-E.milliseconds,M=E.endX-E.left,R=k?P*M/k:0;B.left=E.left+R,b.currentEvent===0&&E.milliseconds>C-b.startTime&&(B.left=void 0),$={timestamp:C,startTime:b.startTime,ev:E,endMs:S,offMs:P,offPx:R,gapMs:k,gapPx:M}}else $={timestamp:C,startTime:b.startTime};var F=b.startTime;if(b.beatCallback(b.currentBeat/b.beatSubdivisions,b.totalBeats/b.beatSubdivisions,b.lastMoment,B,$),F!==b.startTime)return C-b.startTime;b.currentBeat++}return null};var w=60;b.animationJogger=function(){b.isRunning&&(b.doTiming(performance.now()),b.joggerTimer=setTimeout(b.animationJogger,w))},b.start=function(C,x){if(b.isRunning=!0,b.isPaused&&(b.isPaused=!1,C===void 0&&(b.justUnpaused=!0)),C)b.setProgress(C,x);else if(C===0)b.reset();else if(b.pausedPercent!==null){var S=performance.now();b.currentTime=b.lastMoment*b.pausedPercent,b.startTime=S-b.currentTime,b.pausedPercent=null,b.reportNext=!0}requestAnimationFrame(b.doTiming),b.joggerTimer=setTimeout(b.animationJogger,w)},b.pause=function(){b.isPaused=!0;var C=performance.now();b.pausedPercent=(C-b.startTime)/b.lastMoment,b.isRunning=!1,b.joggerTimer&&(clearTimeout(b.joggerTimer),b.joggerTimer=null)},b.currentMillisecond=function(){return b.currentTime},b.reset=function(){b.currentBeat=0,b.currentEvent=0,b.currentLine=0,b.startTime=null,b.pausedPercent=null},b.stop=function(){b.pause(),b.reset()},b.setProgress=function(C,x){var S;switch(x){case"seconds":b.currentTime=C*1e3,b.currentTime<0&&(b.currentTime=0),b.currentTime>b.lastMoment&&(b.currentTime=b.lastMoment),S=b.currentTime/b.lastMoment;break;case"beats":b.currentTime=C*b.millisecondsPerBeat*b.beatSubdivisions,b.currentTime<0&&(b.currentTime=0),b.currentTime>b.lastMoment&&(b.currentTime=b.lastMoment),S=b.currentTime/b.lastMoment;break;default:S=C,S<0&&(S=0),S>1&&(S=1),b.currentTime=b.lastMoment*S;break}b.isRunning||(b.pausedPercent=S);var E=performance.now();for(b.startTime=E-b.currentTime,b.currentEvent,b.currentEvent=0;b.noteTimings.length>b.currentEvent&&b.noteTimings[b.currentEvent].milliseconds<b.currentTime;)b.currentEvent++;if(b.lineEndCallback)for(b.currentLine=0;b.lineEndTimings.length>b.currentLine&&b.lineEndTimings[b.currentLine].milliseconds+b.lineEndAnticipation<b.currentTime;)b.currentLine++;var B=b.currentBeat;b.currentBeat=Math.floor(b.currentTime/b.millisecondsPerBeat),b.beatCallback&&B!==b.currentBeat&&b.doBeatCallback(b.startTime+b.currentTime),b.eventCallback&&b.currentEvent>=0&&b.noteTimings[b.currentEvent].type==="event"&&b.eventCallback(b.noteTimings[b.currentEvent]),b.lineEndCallback&&b.lineEndCallback(b.lineEndTimings[b.currentLine],b.noteTimings[b.currentEvent],{line:b.currentLine,endTimings:b.lineEndTimings}),b.joggerTimer=setTimeout(b.animationJogger,w)}};function getLineEndTimings(d,g){for(var b=[],A=null,w=0;w<d.length;w++){var C=d[w];C.type!=="end"&&C.top!==A&&(b.push({measureNumber:C.measureNumber,milliseconds:C.milliseconds-g,top:C.top,bottom:C.top+C.height}),A=C.top)}return b}var abc_timing_callbacks=TimingCallbacks$2,TimingCallbacks$1=abc_timing_callbacks,animation$1={};(function(){var d,g;animation$1.startAnimation=function(b,A,w){d&&(d.stop(),d=void 0),w.showCursor&&(g=b.querySelector(".abcjs-cursor"),g||(g=document.createElement("DIV"),g.className="abcjs-cursor cursor",g.style.position="absolute",b.appendChild(g),b.style.position="relative"));function C(k){for(var M=0;M<k.length;M++){var R=k[M];R.classList.contains("abcjs-bar")||(R.style.display="none")}}var x;function S(k){if(x){var M=b.querySelectorAll(x);C(M)}x=k}function E(k){var M=b.querySelectorAll(k);C(M)}function B(k){w.hideCurrentMeasure?E(k):w.hideFinishedMeasures&&S(k)}function $(k){return".abcjs-l"+k.line+".abcjs-m"+k.measureNumber}function P(k){if(k){if(k.measureStart){var M=$(k);M&&B(M)}g&&(g.style.left=k.left+"px",g.style.top=k.top+"px",g.style.width=k.width+"px",g.style.height=k.height+"px")}else d.stop(),d=void 0}d=new TimingCallbacks$1(A,{qpm:w.bpm,eventCallback:P}),d.start()},animation$1.pauseAnimation=function(b){d&&(b?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 g={};for(var b in d)d.hasOwnProperty(b)&&(g[b]=d[b]);return g};parseCommon$e.cloneArray=function(d){for(var g=[],b=0;b<d.length;b++)g.push(parseCommon$e.clone(d[b]));return g};parseCommon$e.cloneHashOfHash=function(d){var g={};for(var b in d)d.hasOwnProperty(b)&&(g[b]=parseCommon$e.clone(d[b]));return g};parseCommon$e.cloneHashOfArrayOfHash=function(d){var g={};for(var b in d)d.hasOwnProperty(b)&&(g[b]=parseCommon$e.cloneArray(d[b]));return g};parseCommon$e.strip=function(d){return d.replace(/^\s+/,"").replace(/\s+$/,"")};parseCommon$e.startsWith=function(d,g){return d.indexOf(g)===0};parseCommon$e.endsWith=function(d,g){var b=d.length-g.length;return b>=0&&d.lastIndexOf(g)===b};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,g,b,A,w;parseDirective$3.initialize=function(ne,te,ue,ae,ye){d=ne,g=te,b=ue,A=ae,w=ye,C()};function C(){b.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},b.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},b.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},b.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},b.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},A.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},A.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},A.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},A.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},A.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},A.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},A.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},A.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},A.formatting.annotationfont=b.annotationfont,A.formatting.gchordfont=b.gchordfont,A.formatting.historyfont=b.historyfont,A.formatting.infofont=b.infofont,A.formatting.measurefont=b.measurefont,A.formatting.partsfont=b.partsfont,A.formatting.repeatfont=b.repeatfont,A.formatting.textfont=b.textfont,A.formatting.tripletfont=b.tripletfont,A.formatting.vocalfont=b.vocalfont,A.formatting.wordsfont=b.wordsfont}var x={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},S=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}},E=function(ne,te,ue,ae,ye){function Oe(){var Be=parseInt(ne[0].token);return ne.shift(),te?ne.length===0?{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Be}:ne.length===1&&ne[0].token==="box"&&x[ye]?{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Be,box:!0}:(g("Extra parameters in font definition.",ue,ae),{face:te.face,weight:te.weight,style:te.style,decoration:te.decoration,size:Be}):(g("Can't set just the size of the font since there is no default value.",ue,ae),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Be})}if(ne[0].token==="*"){if(ne.shift(),ne[0].type==="number")return Oe();g("Expected font size number after *.",ue,ae)}if(ne[0].type==="number")return Oe();for(var Ye=[],et,ht="normal",Te="normal",Le="none",Re=!1,$e="face",qe=!1;ne.length;){var rt=ne.shift(),Xe=rt.token.toLowerCase();switch($e){case"face":qe||Xe!=="utf"&&rt.type!=="number"&&Xe!=="bold"&&Xe!=="italic"&&Xe!=="underline"&&Xe!=="box"?Ye.length>0&&rt.token==="-"?(qe=!0,Ye[Ye.length-1]=Ye[Ye.length-1]+rt.token):qe?(qe=!1,Ye[Ye.length-1]=Ye[Ye.length-1]+rt.token):Ye.push(rt.token):rt.type==="number"?(et?g("Font size specified twice in font definition.",ue,ae):et=rt.token,$e="modifier"):Xe==="bold"?ht="bold":Xe==="italic"?Te="italic":Xe==="underline"?Le="underline":Xe==="box"?(x[ye]?Re=!0:g(`This font style doesn't support "box"`,ue,ae),$e="finished"):Xe==="utf"?(rt=ne.shift(),$e="size"):g("Unknown parameter "+rt.token+" in font definition.",ue,ae);break;case"size":rt.type==="number"?et?g("Font size specified twice in font definition.",ue,ae):et=rt.token:g("Expected font size in font definition.",ue,ae),$e="modifier";break;case"modifier":Xe==="bold"?ht="bold":Xe==="italic"?Te="italic":Xe==="underline"?Le="underline":Xe==="box"?(x[ye]?Re=!0:g(`This font style doesn't support "box"`,ue,ae),$e="finished"):g("Unknown parameter "+rt.token+" in font definition.",ue,ae);break;case"finished":g('Extra characters found after "box" in font definition.',ue,ae);break}}et===void 0?te?et=te.size:(g("Must specify the size of the font since there is no default value.",ue,ae),et=12):et=parseFloat(et),Ye=Ye.join(" "),Ye===""&&(te?Ye=te.face:(g("Must specify the name of the font since there is no default value.",ue,ae),Ye="sans-serif"));var he=S(Ye),we={};return he?(we.face=he.face,we.weight=he.weight,we.style=he.style,we.decoration=he.decoration,we.size=et,Re&&(we.box=!0),we):(we.face=Ye,we.weight=ht,we.style=Te,we.decoration=Le,we.size=et,Re&&(we.box=!0),we)},B=function(ne,te,ue){return te.length===0?'Directive "'+ne+'" requires a font as a parameter.':(b[ne]=E(te,b[ne],ue,0,ne),b.is_in_header&&(A.formatting[ne]=b[ne]),null)},$=function(ne,te,ue){return te.length===0?'Directive "'+ne+'" requires a font as a parameter.':(A.formatting[ne]=E(te,A.formatting[ne],ue,0,ne),null)},P=function(ne,te){var ue="";te.forEach(function(ye){ue+=ye.token});var ae=parseFloat(ue);if(isNaN(ae)||ae===0)return'Directive "'+ne+'" requires a number as a parameter.';A.formatting.scale=ae},k=["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"],M=function(ne){var te=ne.split(/\s+/);if(te.length!==2&&te.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var ue=te[0],ae=parseInt(te[1],10);if((isNaN(ae)||ae<35||ae>81)&&te[1]&&(ae=k.indexOf(te[1].toLowerCase())+35),isNaN(ae)||ae<35||ae>81)return{error:'Expected drum name, received "'+te[1]+'"'};var ye={sound:ae};return te.length===3&&(ye.noteHead=te[2]),{key:ue,value:ye}},R=function(ne,te){var ue=d.getMeasurement(te);return ue.used===0||te.length!==0?{error:'Directive "'+ne+'" requires a measurement as a parameter.'}:ue.value},F=function(ne,te){var ue=d.getMeasurement(te);return ue.used===0||te.length!==0?'Directive "'+ne+'" requires a measurement as a parameter.':(A.formatting[ne]=ue.value,null)},L=function(ne,te,ue,ae,ye){if(ue.length!==1||ue[0].type!=="number")return'Directive "'+te+'" requires a number as a parameter.';var Oe=ue[0].intt;return ae!==void 0&&Oe<ae?'Directive "'+te+'" requires a number greater than or equal to '+ae+" as a parameter.":ye!==void 0&&Oe>ye?'Directive "'+te+'" requires a number less than or equal to '+ye+" as a parameter.":(b[ne]=Oe,null)},z=function(ne,te,ue){if(ue.length===1&&(ue[0].token==="true"||ue[0].token==="false"))return b[ne]=ue[0].token==="true",null;var ae=L(ne,te,ue,0,1);return ae!==null?ae:(b[ne]=b[ne]===1,null)},U=function(ne,te,ue,ae){if(ue.length!==1)return'Directive "'+te+'" requires one of [ '+ae.join(", ")+" ] as a parameter.";for(var ye=ue[0].token,Oe=!1,Ye=0;!Oe&&Ye<ae.length;Ye++)ae[Ye]===ye&&(Oe=!0);return Oe?(b[ne]=ye,null):'Directive "'+te+'" requires one of [ '+ae.join(", ")+" ] as a parameter."},W=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],V=["gchord","ptstress","beatstring"],Q=["bassvol","chordvol","bassprog","chordprog","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],K=["program"],G=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],X=["beat"],J=["drone"],re=["portamento"],fe=["expand","grace","trim"],Z=["drum","chordname"],ie=function(ne,te,ue){var ae=ne.shift().token,ye=[];if(W.indexOf(ae)>=0)ne.length!==0&&g("Unexpected parameter in MIDI "+ae,ue,0);else if(V.indexOf(ae)>=0)ne.length!==1?g("Expected one parameter in MIDI "+ae,ue,0):ye.push(ne[0].token);else if(Q.indexOf(ae)>=0)ne.length!==1?g("Expected one parameter in MIDI "+ae,ue,0):ne[0].type!=="number"?g("Expected one integer parameter in MIDI "+ae,ue,0):ye.push(ne[0].intt);else if(K.indexOf(ae)>=0)ne.length!==1&&ne.length!==2?g("Expected one or two parameters in MIDI "+ae,ue,0):ne[0].type!=="number"||ne.length===2&&ne[1].type!=="number"?g("Expected integer parameter in MIDI "+ae,ue,0):(ye.push(ne[0].intt),ne.length===2&&ye.push(ne[1].intt));else if(G.indexOf(ae)>=0)ne.length!==2?g("Expected two parameters in MIDI "+ae,ue,0):ne[0].type!=="number"||ne[1].type!=="number"?g("Expected two integer parameters in MIDI "+ae,ue,0):(ye.push(ne[0].intt),ye.push(ne[1].intt));else if(re.indexOf(ae)>=0)ne.length!==2?g("Expected two parameters in MIDI "+ae,ue,0):ne[0].type!=="alpha"||ne[1].type!=="number"?g("Expected one string and one integer parameters in MIDI "+ae,ue,0):(ye.push(ne[0].token),ye.push(ne[1].intt));else if(ae==="drummap")ne.length===2&&ne[0].type==="alpha"&&ne[1].type==="number"?(te.formatting||(te.formatting={}),te.formatting.midi||(te.formatting.midi={}),te.formatting.midi.drummap||(te.formatting.midi.drummap={}),te.formatting.midi.drummap[ne[0].token]=ne[1].intt,ye=te.formatting.midi.drummap):ne.length===3&&ne[0].type==="punct"&&ne[1].type==="alpha"&&ne[2].type==="number"?(te.formatting||(te.formatting={}),te.formatting.midi||(te.formatting.midi={}),te.formatting.midi.drummap||(te.formatting.midi.drummap={}),te.formatting.midi.drummap[ne[0].token+ne[1].token]=ne[2].intt,ye=te.formatting.midi.drummap):g("Expected one note name and one integer parameter in MIDI "+ae,ue,0);else if(fe.indexOf(ae)>=0)ne.length!==3||ne[0].type!=="number"||ne[1].token!=="/"||ne[2].type!=="number"?g("Expected fraction parameter in MIDI "+ae,ue,0):(ye.push(ne[0].intt),ye.push(ne[2].intt));else if(X.indexOf(ae)>=0)ne.length!==4?g("Expected four parameters in MIDI "+ae,ue,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"?g("Expected four integer parameters in MIDI "+ae,ue,0):(ye.push(ne[0].intt),ye.push(ne[1].intt),ye.push(ne[2].intt),ye.push(ne[3].intt));else if(J.indexOf(ae)>=0)ne.length!==5?g("Expected five parameters in MIDI "+ae,ue,0):ne[0].type!=="number"||ne[1].type!=="number"||ne[2].type!=="number"||ne[3].type!=="number"||ne[4].type!=="number"?g("Expected five integer parameters in MIDI "+ae,ue,0):(ye.push(ne[0].intt),ye.push(ne[1].intt),ye.push(ne[2].intt),ye.push(ne[3].intt),ye.push(ne[4].intt));else if(K.indexOf(ae)>=0)ne.length!==1||ne.length!==4?g("Expected one or two parameters in MIDI "+ae,ue,0):ne[0].type!=="number"?g("Expected integer parameter in MIDI "+ae,ue,0):ne.length===4?(ne[1].token!=="octave"&&g("Expected octave parameter in MIDI "+ae,ue,0),ne[2].token!=="="&&g("Expected octave parameter in MIDI "+ae,ue,0),ne[3].type!=="number"&&g("Expected integer parameter for octave in MIDI "+ae,ue,0)):(ye.push(ne[0].intt),ne.length===4&&ye.push(ne[3].intt));else if(Z.indexOf(ae)>=0)if(ne.length<2)g("Expected string parameter and at least one integer parameter in MIDI "+ae,ue,0);else if(ne[0].type!=="alpha")g("Expected string parameter and at least one integer parameter in MIDI "+ae,ue,0);else{var Oe=ne.shift();for(ye.push(Oe.token);ne.length>0;)Oe=ne.shift(),Oe.type!=="number"&&g("Expected integer parameter in MIDI "+ae,ue,0),ye.push(Oe.intt)}w.hasBeginMusic()?w.appendElement("midi",-1,-1,{cmd:ae,params:ye}):(te.formatting.midi===void 0&&(te.formatting.midi={}),te.formatting.midi[ae]=ye)};parseDirective$3.parseFontChangeLine=function(ne){var te=ne.split("$");if(te.length>1&&b.setfont){for(var ue=[{text:te[0]}],ae=1;ae<te.length;ae++)te[ae][0]==="0"?ue.push({text:te[ae].substring(1)}):te[ae][0]==="1"&&b.setfont[1]?ue.push({font:b.setfont[1],text:te[ae].substring(1)}):te[ae][0]==="2"&&b.setfont[2]?ue.push({font:b.setfont[2],text:te[ae].substring(1)}):te[ae][0]==="3"&&b.setfont[3]?ue.push({font:b.setfont[3],text:te[ae].substring(1)}):te[ae][0]==="4"&&b.setfont[4]?ue.push({font:b.setfont[4],text:te[ae].substring(1)}):ue[ue.length-1].text+="$"+te[ae];if(ue.length>1)return ue}return ne};var ce=["auto","above","below","hidden"];parseDirective$3.addDirective=function(ne){var te=d.tokenize(ne,0,ne.length);if(te.length===0||te[0].type!=="alpha")return null;var ue=ne.substring(ne.indexOf(te[0].token)+te[0].token.length);ue=d.stripComment(ue);var ae=te.shift().token.toLowerCase(),ye="",Oe;switch(ae){case"bagpipes":A.formatting.bagpipes=!0;break;case"flatbeams":A.formatting.flatbeams=!0;break;case"jazzchords":A.formatting.jazzchords=!0;break;case"germanAlphabet":A.formatting.germanAlphabet=!0;break;case"landscape":b.landscape=!0;break;case"papersize":b.papersize=ue;break;case"graceslurs":if(te.length!==1)return"Directive graceslurs requires one parameter: 0 or 1";if(te[0].token==="0"||te[0].token==="false")A.formatting.graceSlurs=!1;else if(te[0].token==="1"||te[0].token==="true")A.formatting.graceSlurs=!0;else return"Directive graceslurs requires one parameter: 0 or 1 (received "+te[0].token+")";break;case"lineThickness":var Ye=me(te);if(Ye.value!==void 0&&(A.formatting.lineThickness=Ye.value),Ye.error)return Ye.error;break;case"stretchlast":var et=me(te);if(et.value!==void 0&&(A.formatting.stretchlast=et.value),et.error)return et.error;break;case"titlecaps":b.titlecaps=!0;break;case"titleleft":A.formatting.titleleft=!0;break;case"measurebox":A.formatting.measurebox=!0;break;case"vocal":return U("vocalPosition",ae,te,ce);case"dynamic":return U("dynamicPosition",ae,te,ce);case"gchord":return U("chordPosition",ae,te,ce);case"ornament":return U("ornamentPosition",ae,te,ce);case"volume":return U("volumePosition",ae,te,ce);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 F(ae,te);case"voicescale":if(te.length!==1||te[0].type!=="number")return"voicescale requires one float as a parameter";var ht=te.shift();return b.currentVoice&&(b.currentVoice.scale=ht.floatt,w.changeVoiceScale(b.currentVoice.scale)),null;case"voicecolor":if(te.length!==1)return"voicecolor requires one string as a parameter";var Te=te.shift();return b.currentVoice&&(b.currentVoice.color=Te.token,w.changeVoiceColor(b.currentVoice.color)),null;case"vskip":var Le=Math.round(R(ae,te));return Le.error?Le.error:(w.addSpacing(Le),null);case"scale":P(ae,te);break;case"sep":if(te.length===0)w.addSeparator(14,14,85,{startChar:b.iChar,endChar:b.iChar+5});else{var Re=d.getMeasurement(te);if(Re.used===0)return'Directive "'+ae+'" requires 3 numbers: space above, space below, length of line';var $e=Re.value;if(Re=d.getMeasurement(te),Re.used===0)return'Directive "'+ae+'" requires 3 numbers: space above, space below, length of line';var qe=Re.value;if(Re=d.getMeasurement(te),Re.used===0||te.length!==0)return'Directive "'+ae+'" requires 3 numbers: space above, space below, length of line';var rt=Re.value;w.addSeparator($e,qe,rt,{startChar:b.iChar,endChar:b.iChar+ue.length})}break;case"barsperstaff":if(ye=L("barsperstaff",ae,te),ye!==null)return ye;break;case"staffnonote":if(te.length!==1)return"Directive staffnonote requires one parameter: 0 or 1";if(te[0].token==="0")b.staffnonote=!0;else if(te[0].token==="1")b.staffnonote=!1;else return"Directive staffnonote requires one parameter: 0 or 1 (received "+te[0].token+")";break;case"printtempo":if(ye=z("printTempo",ae,te),ye!==null)return ye;break;case"partsbox":if(ye=z("partsBox",ae,te),ye!==null)return ye;b.partsfont.box=b.partsBox;break;case"freegchord":if(ye=z("freegchord",ae,te),ye!==null)return ye;break;case"measurenb":case"barnumbers":if(ye=L("barNumbers",ae,te),ye!==null)return ye;break;case"setbarnb":if(te.length!==1||te[0].type!=="number")return"Directive setbarnb requires a number as a parameter.";b.currBarNumber=w.setBarNumberImmediate(te[0].intt);break;case"begintext":var Xe="";for(Oe=d.nextLine();Oe&&Oe.indexOf("%%endtext")!==0;)parseCommon$d.startsWith(Oe,"%%")?Xe+=Oe.substring(2)+`
  2329. `:Xe+=Oe+`
  2330. `,Oe=d.nextLine();w.addText(Xe,{startChar:b.iChar,endChar:b.iChar+Xe.length+7});break;case"continueall":b.continueall=!0;break;case"beginps":for(Oe=d.nextLine();Oe&&Oe.indexOf("%%endps")!==0;)d.nextLine();g("Postscript ignored",ne,0);break;case"deco":ue.length>0&&b.ignoredDecorations.push(ue.substring(0,ue.indexOf(" "))),g("Decoration redefinition ignored",ne,0);break;case"text":var he=d.translateString(ue);w.addText(parseDirective$3.parseFontChangeLine(he),{startChar:b.iChar,endChar:b.iChar+ue.length+7});break;case"center":var we=d.translateString(ue);w.addCentered(parseDirective$3.parseFontChangeLine(we));break;case"font":break;case"setfont":var Be=d.tokenize(ue,0,ue.length);if(Be.length>=4&&Be[0].token==="-"&&Be[1].type==="number"){var Ne=parseInt(Be[1].token);Ne>=1&&Ne<=4&&(b.setfont||(b.setfont=[]),Be.shift(),Be.shift(),b.setfont[Ne]=E(Be,b.setfont[Ne],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(ae,te,ne);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return $(ae,te,ne);case"barlabelfont":case"barnumberfont":case"barnumfont":return B("measurefont",te,ne);case"staves":case"score":b.score_is_present=!0;for(var Se=function(it,gt,yt,Ae,Ie){(gt||b.staves.length===0)&&b.staves.push({index:b.staves.length,numVoices:0});var ze=parseCommon$d.last(b.staves);yt!==void 0&&ze.bracket===void 0&&(ze.bracket=yt),Ae!==void 0&&ze.brace===void 0&&(ze.brace=Ae),Ie&&(ze.connectBarLines="end"),b.voices[it]===void 0&&(b.voices[it]={staffNum:ze.index,index:ze.numVoices},ze.numVoices++)},q=!1,se=!1,ge=!1,de=!1,ve=!1,Pe=!1,De=!1,Qe,ot=function(){if(De=!0,Qe){var it="start";Qe.staffNum>0&&(b.staves[Qe.staffNum-1].connectBarLines==="start"||b.staves[Qe.staffNum-1].connectBarLines==="continue")&&(it="continue"),b.staves[Qe.staffNum].connectBarLines=it}};te.length;){var st=te.shift();switch(st.token){case"(":q?g("Can't nest parenthesis in %%score",ne,st.start):(q=!0,de=!0);break;case")":!q||de?g("Unexpected close parenthesis in %%score",ne,st.start):q=!1;break;case"[":se?g("Can't nest brackets in %%score",ne,st.start):(se=!0,ve=!0);break;case"]":!se||ve?g("Unexpected close bracket in %%score",ne,st.start):(se=!1,b.staves[Qe.staffNum].bracket="end");break;case"{":ge?g("Can't nest braces in %%score",ne,st.start):(ge=!0,Pe=!0);break;case"}":!ge||Pe?g("Unexpected close brace in %%score",ne,st.start):(ge=!1,b.staves[Qe.staffNum].brace="end");break;case"|":ot();break;default:for(var ut="";(st.type==="alpha"||st.type==="number")&&(ut+=st.token,st.continueId);)st=te.shift();var He=!q||de,ct=ve?"start":se?"continue":void 0,mt=Pe?"start":ge?"continue":void 0;Se(ut,He,ct,mt,De),de=!1,ve=!1,Pe=!1,De=!1,Qe=b.voices[ut],ae==="staves"&&ot();break}}break;case"newpage":var _t=d.getInt(ue);w.addNewPage(_t.digits===0?-1:_t.value);break;case"abc":var ft=ue.split(" ");switch(ft[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Ct=ft.shift();w.addMetaText(ae+Ct,ft.join(" "),{startChar:b.iChar,endChar:b.iChar+ue.length+5});break;default:return"Unknown directive: "+ae+ft[0]}break;case"header":case"footer":var pt=d.getMeat(ue,0,ue.length);pt=ue.substring(pt.start,pt.end),pt[0]==='"'&&pt[pt.length-1]==='"'&&(pt=pt.substring(1,pt.length-1));var bt=pt.split(" "),be={};bt.length===1?be={left:"",center:bt[0],right:""}:bt.length===2?be={left:bt[0],center:bt[1],right:""}:be={left:bt[0],center:bt[1],right:bt[2]},bt.length>3&&g("Too many tabs in "+ae+": "+bt.length+" found.",ue,0),w.addMetaTextObj(ae,be,{startChar:b.iChar,endChar:b.iChar+ne.length});break;case"midi":var Fe=d.tokenize(ue,0,ue.length,!0);Fe.length>0&&Fe[0].token==="="&&Fe.shift(),Fe.length===0?g("Expected midi command",ue,0):ie(Fe,A,ue);break;case"percmap":var We=M(ue);We.error?g(We.error,ne,8):(A.formatting.percmap||(A.formatting.percmap={}),A.formatting.percmap[We.key]=We.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":A.formatting[ae]=ue;break;default:return"Unknown directive: "+ae}return null},parseDirective$3.globalFormatting=function(ne){for(var te in ne)if(ne.hasOwnProperty(te)){var ue=""+ne[te],ae=d.tokenize(ue,0,ue.length),ye;switch(te){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(te,ae,ue);break;case"scale":P(te,ae);break;case"partsbox":ye=z("partsBox",te,ae),ye!==null&&g(ye),b.partsfont.box=b.partsBox;break;case"freegchord":ye=z("freegchord",te,ae),ye!==null&&g(ye);break;case"fontboxpadding":(ae.length!==1||ae[0].type!=="number")&&g('Directive "'+te+'" requires a number as a parameter.'),A.formatting.fontboxpadding=ae[0].floatt;break;case"stretchlast":var Oe=me(ae);if(Oe.value!==void 0&&(A.formatting.stretchlast=Oe.value),Oe.error)return Oe.error;break;default:g("Formatting directive unrecognized: ",te,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,g,b,A){if(!g||g%12===0)return d;for(;g<0;)g+=12;g>11&&(g=g%12);var w=d.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!w)return d;var C=w[1],x=w[2],S=w[3],E=w[4],B=sharpChords.indexOf(C);if(B<0&&(B=flatChords.indexOf(C)),B<0&&(B=sharpChordsFree.indexOf(C)),B<0&&(B=flatChordsFree.indexOf(C)),B<0)return d;if(B+=g,B=B%12,b?A?d=flatChordsFree[B]:d=flatChords[B]:A?d=sharpChordsFree[B]:d=sharpChords[B],x&&(d+=x),S){var B=sharpChords.indexOf(S);B<0&&(B=flatChords.indexOf(S)),B<0&&(B=sharpChordsFree.indexOf(S)),B<0&&(B=flatChordsFree.indexOf(S)),d+="/",B>=0?(B+=g,B=B%12,b?A?d+=flatChordsFree[B]:d+=flatChords[B]:A?d+=sharpChordsFree[B]:d+=sharpChords[B]):d+=S}return E&&(d+=E),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),g=0;g<d.length;g++){var b=keys$1[d[g]];keyReverse[d[g].toLowerCase()]=d[g];for(var A=0;A<b.modes.length;A++){var w=b.modes[A].toLowerCase();keyReverse[w]=d[g]}}}function relativeMajor$2(d){keyReverse||createKeyReverse();var g=d.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);if(!g||!g[2])return d;g=g[1]+g[2];var b=keyReverse[g];return b||d}function relativeMode$1(d,g){var b=keys$1[d];if(!b||g==="")return d;var A=g.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!A)return d;for(var w=A[1],C=0;C<b.modes.length;C++){var x=b.modes[C],S=x.toLowerCase().indexOf(w);if(S!==-1&&S===x.length-w.length)return x.substring(0,x.length-w.length)}return d}function transposeKey$1(d,g){var b=keys$1[d];if(!b)return d;for(;g<0;)g+=12;for(var A=(b.stepsFromC+g)%12,w=0;w<Object.keys(keys$1).length;w++){var C=Object.keys(keys$1)[w];if(keys$1[C].stepsFromC===A)return C}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 g=keys[relativeMajor$1(d)];return g?JSON.parse(JSON.stringify(g)):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,g,b,A,w){if(d.clef.type==="perc"||d.clef.type==="none")return{accidentals:keyAccidentals$1(g),root:b,acc:A};w||(w=0),d.localTransposeVerticalMovement=0,d.localTransposePreferFlats=!1;var C=keyAccidentals$1(g);if(!C)return d.key;if(d.localTranspose=(d.globalTranspose?d.globalTranspose:0)+w,!d.localTranspose)return{accidentals:C,root:b,acc:A};if(d.globalTransposeOrigKeySig=C,d.localTranspose%12===0)return d.localTransposeVerticalMovement=d.localTranspose/12*7,{accidentals:C,root:b,acc:A};var x=g[0];g[1]==="b"||g[1]==="#"?(x+=g[1],g=g.substr(2)):g=g.substr(1);var S=keyIndex[x],E=S!==void 0;E||(S=0,x="C",g="");for(var B=S+d.localTranspose;B<0;)B+=12;B>11&&(B=B%12);var $=g[0]==="m"?newKeyMinor[B]:newKey[B],P=$+g,k=keyAccidentals$1(P);k.length>0&&k[0].acc==="flat"&&(d.localTransposePreferFlats=!0);var M=P.charCodeAt(0)-x.charCodeAt(0);return d.localTranspose>0?(M<0||M===0&&(x[1]==="#"||P[1]==="b"))&&(M+=7):d.localTranspose<0&&(M>0||M===0&&(x[1]==="b"||P[1]==="#"))&&(M-=7),d.localTranspose>0?d.localTransposeVerticalMovement=M+Math.floor(d.localTranspose/12)*7:d.localTransposeVerticalMovement=M+Math.ceil(d.localTranspose/12)*7,E?{accidentals:k,root:$[0],acc:$.length>1?$[1]:""}:{accidentals:[],root:b,acc:A}};transpose$2.chordName=function(d,g){return transposeChordName$1(g,d.localTranspose,d.localTransposePreferFlats,d.freegchord)};var pitchToLetter=["c","d","e","f","g","a","b"];function accidentalChange(d,g,b,A,w){for(var C=pitchToLetter[(d+49)%7],x=0,S=0;S<A.length;S++)A[S].note.toLowerCase()===C&&(x=accidentals$1[A[S].acc]);for(var E=accidentals$1[b],B=E-x,$=pitchToLetter[(g+49)%7],P=0,k=0;k<w.accidentals.length;k++)w.accidentals[k].note.toLowerCase()===$&&(P=accidentals$1[w.accidentals[k].acc]);var M=B+P;return M<-2&&(g--,M+=$==="c"||$==="f"?1:2),M>2&&(g++,M-=$==="b"||$==="e"?1:2),[g,M]}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,g){if(!(!d.localTranspose||d.clef.type==="perc")){var b=g.pitch;if(d.localTransposeVerticalMovement&&(g.pitch=g.pitch+d.localTransposeVerticalMovement,g.name)){var A=g.accidental?g.name.substring(1):g.name,w=g.accidental?g.name[0]:"",C=allNotes.pitchIndex(A);g.name=w+allNotes.noteName(C+d.localTransposeVerticalMovement)}if(g.accidental){var x=accidentalChange(b,g.pitch,g.accidental,d.globalTransposeOrigKeySig,d.targetKey);g.pitch=x[0],g.accidental=accidentals2[x[1]],g.name&&(g.name=accidentals3[x[1]]+g.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,g,b,A;parseKeyVoice$3.initialize=function($,P,k,M,R){d=$,g=P,b=k,A=R},parseKeyVoice$3.standardKey=function($,P,k,M){return transpose$1.keySignature(b,$,P,k,M)};var w={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}},C=function($,P){var k=w[$],M=k?k.mid:0;return M+P};parseKeyVoice$3.fixClef=function($){var P=w[$.type];P&&($.clefPos=P.pitch,$.type=P.clef)},parseKeyVoice$3.deepCopyKey=function($){var P={accidentals:[],root:$.root,acc:$.acc,mode:$.mode};return $.accidentals.forEach(function(k){P.accidentals.push(parseCommon$c.clone(k))}),P};var x={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($,P){var k=$.verticalPos;P.accidentals.forEach(function(M){var R=x[M.note];R=R-k,M.verticalPos=R}),P.impliedNaturals&&P.impliedNaturals.forEach(function(M){var R=x[M.note];R=R-k,M.verticalPos=R}),k<-10?(P.accidentals.forEach(function(M){M.verticalPos-=7,(M.verticalPos>=11||M.verticalPos===10&&M.acc==="flat")&&(M.verticalPos-=7),M.note==="A"&&M.acc==="sharp"&&(M.verticalPos-=7),(M.note==="G"||M.note==="F")&&M.acc==="flat"&&(M.verticalPos-=7)}),P.impliedNaturals&&P.impliedNaturals.forEach(function(M){M.verticalPos-=7,(M.verticalPos>=11||M.verticalPos===10&&M.acc==="flat")&&(M.verticalPos-=7),M.note==="A"&&M.acc==="sharp"&&(M.verticalPos-=7),(M.note==="G"||M.note==="F")&&M.acc==="flat"&&(M.verticalPos-=7)})):k<-4?(P.accidentals.forEach(function(M){M.verticalPos-=7,k===-8&&(M.note==="f"||M.note==="g")&&M.acc==="sharp"&&(M.verticalPos-=7)}),P.impliedNaturals&&P.impliedNaturals.forEach(function(M){M.verticalPos-=7,k===-8&&(M.note==="f"||M.note==="g")&&M.acc==="sharp"&&(M.verticalPos-=7)})):k>=7&&(P.accidentals.forEach(function(M){M.verticalPos+=7}),P.impliedNaturals&&P.impliedNaturals.forEach(function(M){M.verticalPos+=7}))},parseKeyVoice$3.fixKey=function($,P){var k=parseCommon$c.clone(P);return parseKeyVoice$3.addPosToKey($,k),k};var S=function($){var P=0,k=$[P++];(k==="^"||k==="_")&&(k=$[P++]);var M=x[k];for(M===void 0&&(M=6);P<$.length;P++)if($[P]===",")M-=7;else if($[P]==="'")M+=7;else break;return{mid:M-6,str:$.substring(P)}},E=function($){for(var P=0;P<$.length;P++)$[P].note==="b"?$[P].note="B":$[P].note==="a"?$[P].note="A":$[P].note==="F"?$[P].note="f":$[P].note==="E"?$[P].note="e":$[P].note==="D"?$[P].note="d":$[P].note==="C"?$[P].note="c":$[P].note==="G"&&$[P].acc==="sharp"?$[P].note="g":$[P].note==="g"&&$[P].acc==="flat"&&($[P].note="G")};parseKeyVoice$3.parseKey=function($,P){$.length===0&&($="none");var k=d.tokenize($,0,$.length),M={};if(k.length===0)return g("Must pass in key signature.",$,0),M;switch(k[0].token){case"HP":parseDirective$2.addDirective("bagpipes"),b.key={root:"HP",accidentals:[],acc:"",mode:""},M.foundKey=!0,k.shift();break;case"Hp":parseDirective$2.addDirective("bagpipes"),b.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},M.foundKey=!0,k.shift();break;case"none":b.key={root:"none",accidentals:[],acc:"",mode:""},M.foundKey=!0,k.shift();break;default:var R=d.getKeyPitch(k[0].token);if(R.len>0){M.foundKey=!0;var F="",L="";k[0].token.length>1?k[0].token=k[0].token.substring(1):k.shift();var z=R.token;if(k.length>0){var U=d.getSharpFlat(k[0].token);if(U.len>0&&(k[0].token.length>1?k[0].token=k[0].token.substring(1):k.shift(),z+=U.token,F=U.token),k.length>0){var W=d.getMode(k[0].token);W.len>0&&(k.shift(),z+=W.token,L=W.token)}if(parseKeyVoice$3.standardKey(z,R.token,F,0)===void 0)return g("Unsupported key signature: "+z,$,0),M}var V=parseKeyVoice$3.deepCopyKey(b.key),Q=!P&&b.globalTranspose?-b.globalTranspose:0,K;if(P&&(K=b.globalTransposeOrigKeySig),b.key=parseKeyVoice$3.deepCopyKey(parseKeyVoice$3.standardKey(z,R.token,F,Q)),P&&(b.globalTransposeOrigKeySig=K),b.key.mode=L,V){for(var G,X=0;X<b.key.accidentals.length;X++)for(G=0;G<V.accidentals.length;G++)V.accidentals[G].note&&b.key.accidentals[X].note.toLowerCase()===V.accidentals[G].note.toLowerCase()&&(V.accidentals[G].note=null);for(G=0;G<V.accidentals.length;G++)V.accidentals[G].note&&(b.key.impliedNaturals||(b.key.impliedNaturals=[]),b.key.impliedNaturals.push({acc:"natural",note:V.accidentals[G].note}))}}break}if(k.length===0||(k[0].token==="exp"&&k.shift(),k.length===0)||(k[0].token==="oct"&&k.shift(),k.length===0))return M;var J=d.getKeyAccidentals2(k);if(J.warn&&g(J.warn,$,0),J.accs){M.foundKey||(M.foundKey=!0,b.key={root:"none",acc:"",mode:"",accidentals:[]}),E(J.accs);for(var re=0;re<J.accs.length;re++){for(var fe=!1,Z=0;Z<b.key.accidentals.length&&!fe;Z++)b.key.accidentals[Z].note===J.accs[re].note&&(fe=!0,b.key.accidentals[Z].acc!==J.accs[re].acc&&(b.key.accidentals[Z].acc=J.accs[re].acc,b.key.explicitAccidentals||(b.key.explicitAccidentals=[]),b.key.explicitAccidentals.push(J.accs[re])));if(!fe&&(b.key.explicitAccidentals||(b.key.explicitAccidentals=[]),b.key.explicitAccidentals.push(J.accs[re]),b.key.accidentals.push(J.accs[re]),b.key.impliedNaturals))for(var ie=0;ie<b.key.impliedNaturals.length;ie++)b.key.impliedNaturals[ie].note===J.accs[re].note&&b.key.impliedNaturals.splice(ie,1)}}for(var ce;k.length>0;)switch(k[0].token){case"m":case"middle":if(k.shift(),k.length===0)return g("Expected = after middle",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after middle",$,ce.start);break}if(k.length===0)return g("Expected parameter after middle=",$,0),M;var me=d.getPitchFromTokens(k);me.warn&&g(me.warn,$,0),me.position&&(b.clef.verticalPos=me.position-6);break;case"transpose":if(k.shift(),k.length===0)return g("Expected = after transpose",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after transpose",$,ce.start);break}if(k.length===0)return g("Expected parameter after transpose=",$,0),M;if(k[0].type!=="number"){g("Expected number after transpose",$,k[0].start);break}b.clef.transpose=k[0].intt,k.shift();break;case"stafflines":if(k.shift(),k.length===0)return g("Expected = after stafflines",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after stafflines",$,ce.start);break}if(k.length===0)return g("Expected parameter after stafflines=",$,0),M;if(k[0].type!=="number"){g("Expected number after stafflines",$,k[0].start);break}b.clef.stafflines=k[0].intt,k.shift();break;case"staffscale":if(k.shift(),k.length===0)return g("Expected = after staffscale",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after staffscale",$,ce.start);break}if(k.length===0)return g("Expected parameter after staffscale=",$,0),M;if(k[0].type!=="number"){g("Expected number after staffscale",$,k[0].start);break}b.clef.staffscale=k[0].floatt,k.shift();break;case"octave":if(k.shift(),k.length===0)return g("Expected = after octave",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after octave",$,ce.start);break}if(k.length===0)return g("Expected parameter after octave=",$,0),M;if(k[0].type!=="number"){g("Expected number after octave",$,k[0].start);break}b.octave=k[0].intt,k.shift();break;case"style":if(k.shift(),k.length===0)return g("Expected = after style",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after style",$,ce.start);break}if(k.length===0)return g("Expected parameter after style=",$,0),M;switch(k[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":b.style=k[0].token,k.shift();break;default:g("error parsing style element: "+k[0].token,$,k[0].start);break}break;case"clef":if(k.shift(),k.length===0)return g("Expected = after clef",$,0),M;if(ce=k.shift(),ce.token!=="="){g("Expected = after clef",$,ce.start);break}if(k.length===0)return g("Expected parameter after clef=",$,0),M;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var ne=k.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:g("Expected clef name. Found "+ne.token,$,ne.start);break}k.length>0&&k[0].type==="number"&&(ne.token+=k[0].token,k.shift()),k.length>1&&(k[0].token==="-"||k[0].token==="+"||k[0].token==="^"||k[0].token==="_")&&k[1].token==="8"&&(ne.token+=k[0].token+k[1].token,k.shift(),k.shift()),b.clef={type:ne.token,verticalPos:C(ne.token,0)},b.currentVoice&&b.currentVoice.transpose!==void 0&&(b.clef.transpose=b.currentVoice.transpose),M.foundClef=!0;break;default:g("Unknown parameter: "+k[0].token,$,k[0].start),k.shift()}return M};var B=function($){b.currentVoice=b.voices[$],A.setCurrentVoice(b.currentVoice.staffNum,b.currentVoice.index)};parseKeyVoice$3.parseVoice=function($,P,k){var M=d.getMeat($,P,k),R=M.start,F=M.end,L=d.getToken($,R,F);if(L.length===0){g("Expected a voice id",$,R);return}var z=!1;b.voices[L]===void 0&&(b.voices[L]={},z=!0,b.score_is_present&&g("Can't have an unknown V: id when the %score directive is present",$,R)),R+=L.length,R+=d.eatWhiteSpace($,R);for(var U={startStaff:z},W=function(me){var ne=d.getVoiceToken($,R,F);ne.warn!==void 0?g("Expected value for "+me+" in voice: "+ne.warn,$,R):ne.err!==void 0?g("Expected value for "+me+" in voice: "+ne.err,$,R):ne.token.length===0&&$[R]!=='"'?g("Expected value for "+me+" in voice",$,R):U[me]=ne.token,R+=ne.len},V=function(me,ne,te){var ue=d.getVoiceToken($,R,F);ue.warn!==void 0?g("Expected value for "+ne+" in voice: "+ue.warn,$,R):ue.err!==void 0?g("Expected value for "+ne+" in voice: "+ue.err,$,R):ue.token.length===0&&$[R]!=='"'?g("Expected value for "+ne+" in voice",$,R):(te==="number"&&(ue.token=parseFloat(ue.token)),b.voices[me][ne]=ue.token),R+=ue.len},Q=function(me,ne){var te=d.getVoiceToken($,R,F);if(te.warn!==void 0)g("Expected value for "+me+" in voice: "+te.warn,$,R);else if(te.err!==void 0)g("Expected value for "+me+" in voice: "+te.err,$,R);else if(te.token.length===0&&$[R]!=='"')g("Expected value for "+me+" in voice",$,R);else return ne==="number"&&(te.token=parseFloat(te.token)),te.token;R+=te.len},K=function(me,ne){var te={_B:2,_E:9,_b:-10,_e:-3},ue=d.getVoiceToken($,R,F);if(ue.warn!==void 0)g("Expected one of (_B, _E, _b, _e) for "+ne+" in voice: "+ue.warn,$,R);else if(ue.token.length===0&&$[R]!=='"')g("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",$,R);else{var ae=te[ue.token];ae?b.voices[me][ne]=ae:g("Expected one of (_B, _E, _b, _e) for "+ne+" in voice",$,R)}R+=ue.len};R<F;){var G=d.getVoiceToken($,R,F);if(R+=G.len,G.warn)g("Error parsing voice: "+G.warn,$,R);else{var X=null;switch(G.token){case"clef":case"cl":W("clef");var J=0;U.clef!==void 0&&(U.clef=U.clef.replace(/[',]/g,""),U.clef.indexOf("+16")!==-1&&(J+=14,U.clef=U.clef.replace("+16","")),U.verticalPos=C(U.clef,J));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 re=0;U.clef=G.token.replace(/[',]/g,""),U.verticalPos=C(U.clef,re),b.voices[L].clef=G.token;break;case"staves":case"stave":case"stv":W("staves");break;case"brace":case"brc":W("brace");break;case"bracket":case"brk":W("bracket");break;case"name":case"nm":W("name");break;case"subname":case"sname":case"snm":W("subname");break;case"merge":U.startStaff=!1;break;case"stem":case"stems":X=d.getVoiceToken($,R,F),X.warn!==void 0?g("Expected value for stems in voice: "+X.warn,$,R):X.err!==void 0?g("Expected value for stems in voice: "+X.err,$,R):X.token==="up"||X.token==="down"?b.voices[L].stem=X.token:g("Expected up or down for voice stem",$,R),R+=X.len;break;case"up":case"down":b.voices[L].stem=G.token;break;case"middle":case"m":W("verticalPos"),U.verticalPos=S(U.verticalPos).mid;break;case"gchords":case"gch":b.voices[L].suppressChords=!0,X=d.getVoiceToken($,R,F),X.token==="0"&&(R=R+X.len);break;case"space":case"spc":W("spacing");break;case"scale":V(L,"scale","number");break;case"score":K(L,"scoreTranspose");break;case"transpose":V(L,"transpose","number");break;case"stafflines":V(L,"stafflines","number");break;case"staffscale":V(L,"staffscale","number");break;case"octave":V(L,"octave","number");break;case"volume":V(L,"volume","number");break;case"cue":var fe=Q("cue","string");fe==="on"?b.voices[L].scale=.6:b.voices[L].scale=1;break;case"style":X=d.getVoiceToken($,R,F),X.warn!==void 0?g("Expected value for style in voice: "+X.warn,$,R):X.err!==void 0?g("Expected value for style in voice: "+X.err,$,R):X.token==="normal"||X.token==="harmonic"||X.token==="rhythm"||X.token==="x"||X.token==="triangle"?b.voices[L].style=X.token:g("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",$,R),R+=X.len;break}}R+=d.eatWhiteSpace($,R)}if((U.startStaff||b.staves.length===0)&&(b.staves.push({index:b.staves.length,meter:b.origMeter}),b.score_is_present||(b.staves[b.staves.length-1].numVoices=0)),b.voices[L].staffNum===void 0){b.voices[L].staffNum=b.staves.length-1;var Z=0;for(var ie in b.voices)b.voices.hasOwnProperty(ie)&&b.voices[ie].staffNum===b.voices[L].staffNum&&Z++;b.voices[L].index=Z-1}var ce=b.staves[b.voices[L].staffNum];b.score_is_present||ce.numVoices++,U.clef&&(ce.clef={type:U.clef,verticalPos:U.verticalPos}),U.spacing&&(ce.spacing_below_offset=U.spacing),U.verticalPos&&(ce.verticalPos=U.verticalPos),U.name&&(ce.name?ce.name.push(U.name):ce.name=[U.name]),U.subname&&(ce.subname?ce.subname.push(U.subname):ce.subname=[U.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,g,b,A,w){this.reset=function(S,E,B,$){parseKeyVoice$2.initialize(S,E,B,$,w),parseDirective$1.initialize(S,E,B,$,w)},this.reset(d,g,b,A),this.setTitle=function(S){if(b.hasMainTitle)w.addSubtitle(d.translateString(d.stripComment(S)),{startChar:b.iChar,endChar:b.iChar+S.length+2});else{var E=d.translateString(d.theReverser(d.stripComment(S)));b.titlecaps&&(E=E.toUpperCase()),w.addMetaText("title",E,{startChar:b.iChar,endChar:b.iChar+S.length+2}),b.hasMainTitle=!0}},this.setMeter=function(S){if(S=d.stripComment(S),S==="C")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"common_time"};if(S==="C|")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"cut_time"};if(S==="o")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"tempus_perfectum"};if(S==="c")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"tempus_imperfectum"};if(S==="o.")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if(S==="c.")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(S.length===0||S.toLowerCase()==="none")return b.havent_set_length===!0&&(b.default_length=.125,b.havent_set_length=!1),null;var E=d.tokenize(S,0,S.length);try{var B=function(){var F={value:0,num:""},L=E.shift();for(L.token==="("&&(L=E.shift());;){if(L.type!=="number")throw"Expected top number of meter";if(F.value+=parseInt(L.token),F.num+=L.token,E.length===0||E[0].token==="/")return F;if(L=E.shift(),L.token===")"){if(E.length===0||E[0].token==="/")return F;throw"Unexpected paren in meter"}if(L.token!=="."&&L.token!=="+"||(F.num+=L.token,E.length===0))throw"Expected top number of meter";L=E.shift()}return F},$=function(){var F=B();if(E.length===0)return F;var L=E.shift();if(L.token!=="/")throw"Expected slash in meter";if(L=E.shift(),L.type!=="number")throw"Expected bottom number of meter";return F.den=L.token,F.value=F.value/parseInt(F.den),F};if(E.length===0)throw"Expected meter definition in M: line";for(var P={type:"specified",value:[]},k=0;;){var M=$();k+=M.value;var R={num:M.num};if(M.den!==void 0&&(R.den=M.den),P.value.push(R),E.length===0)break}return b.havent_set_length===!0&&(b.default_length=k<.75?.0625:.125,b.havent_set_length=!1),P}catch(F){g(F,S,0)}return null},this.calcTempo=function(S){var E=.25;b.meter&&b.meter.type==="specified"?E=1/parseInt(b.meter.value[0].den):b.origMeter&&b.origMeter.type==="specified"&&(E=1/parseInt(b.origMeter.value[0].den));for(var B=0;B<S.duration;B++)S.duration[B]=E*S.duration[B];return S},this.resolveTempo=function(){b.tempo&&(this.calcTempo(b.tempo),A.metaText.tempo=b.tempo,delete b.tempo)},this.addUserDefinition=function(S,E,B){var $=S.indexOf("=",E);if($===-1){g("Need an = in a macro definition",S,E);return}var P=parseCommon$b.strip(S.substring(E,$)),k=parseCommon$b.strip(S.substring($+1));if(P.length!==1){g("Macro definitions can only be one character",S,E);return}var M="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~";if(M.indexOf(P)===-1){g("Macro definitions must be H-Y, h-w, or tilde",S,E);return}if(k.length===0){g("Missing macro definition",S,E);return}b.macros===void 0&&(b.macros={}),b.macros[P]=k},this.setDefaultLength=function(S,E,B){var $=S.substring(E,B).replace(/ /g,""),P=$.split("/");if(P.length===2){var k=parseInt(P[0]),M=parseInt(P[1]);M>0&&(b.default_length=k/M,b.havent_set_length=!1)}else P.length===1&&P[0]==="1"&&(b.default_length=1,b.havent_set_length=!1)};var C={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(S,E,B,$){try{var P=d.tokenize(S,E,B);if(P.length===0)throw"Missing parameter in Q: field";var k={startChar:$+E-2,endChar:$+B},M=!0,R=P.shift();if(R.type==="quote"&&(k.preString=R.token,R=P.shift(),P.length===0))return C[k.preString.toLowerCase()]&&(k.bpm=C[k.preString.toLowerCase()],k.suppressBpm=!0),{type:"immediate",tempo:k};if(R.type==="alpha"&&R.token==="C"){if(P.length===0)throw"Missing tempo after C in Q: field";if(R=P.shift(),R.type==="punct"&&R.token==="="){if(P.length===0)throw"Missing tempo after = in Q: field";if(R=P.shift(),R.type!=="number")throw"Expected number after = in Q: field";k.duration=[1],k.bpm=parseInt(R.token)}else if(R.type==="number"){if(k.duration=[parseInt(R.token)],P.length===0)throw"Missing = after duration in Q: field";if(R=P.shift(),R.type!=="punct"||R.token!=="=")throw"Expected = after duration in Q: field";if(P.length===0)throw"Missing tempo after = in Q: field";if(R=P.shift(),R.type!=="number")throw"Expected number after = in Q: field";k.bpm=parseInt(R.token)}else throw"Expected number or equal after C in Q: field"}else if(R.type==="number"){var F=parseInt(R.token);if(P.length===0||P[0].type==="quote")k.duration=[1],k.bpm=F;else{if(M=!1,R=P.shift(),R.type!=="punct"&&R.token!=="/"||(R=P.shift(),R.type!=="number"))throw"Expected fraction in Q: field";var L=parseInt(R.token);for(k.duration=[F/L];P.length>0&&P[0].token!=="="&&P[0].type!=="quote";){if(R=P.shift(),R.type!=="number"||(F=parseInt(R.token),R=P.shift(),R.type!=="punct"&&R.token!=="/")||(R=P.shift(),R.type!=="number"))throw"Expected fraction in Q: field";L=parseInt(R.token),k.duration.push(F/L)}if(R=P.shift(),R.type!=="punct"&&R.token!=="=")throw"Expected = in Q: field";if(R=P.shift(),R.type!=="number")throw"Expected tempo in Q: field";k.bpm=parseInt(R.token)}}else throw"Unknown value in Q: field";if(P.length!==0&&(R=P.shift(),R.type==="quote"&&(k.postString=R.token,R=P.shift()),P.length!==0))throw"Unexpected string at end of Q: field";return b.printTempo===!1&&(k.suppress=!0),{type:M?"delaySet":"immediate",tempo:k}}catch(z){return g(z,S,E),{type:"none"}}},this.letter_to_inline_header=function(S,E,B){var $=d.eatWhiteSpace(S,E);if(E+=$,S.length>=E+5&&S[E]==="["&&S[E+2]===":"){var P=S.indexOf("]",E),k=b.iChar+E,M=b.iChar+P+1;switch(S.substring(E,E+3)){case"[I:":var R=parseDirective$1.addDirective(S.substring(E+3,P));return R&&g(R,S,E),[P-E+1+$];case"[M:":var F=this.setMeter(S.substring(E+3,P));return w.hasBeginMusic()&&F?w.appendStartingElement("meter",k,M,F):b.meter=F,[P-E+1+$];case"[K:":var L=parseKeyVoice$2.parseKey(S.substring(E+3,P),!0);return L.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",k,M,b.clef),L.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",k,M,parseKeyVoice$2.fixKey(b.clef,b.key)),[P-E+1+$];case"[P:":return B||A.lines.length<=A.lineNum?b.partForNextLine={title:S.substring(E+3,P),startChar:k,endChar:M}:w.appendElement("part",k,M,{title:S.substring(E+3,P)}),[P-E+1+$];case"[L:":return this.setDefaultLength(S,E+3,P),[P-E+1+$];case"[Q:":if(P>0){var z=this.setTempo(S,E+3,P,b.iChar);return z.type==="delaySet"?w.hasBeginMusic()?w.appendElement("tempo",k,M,this.calcTempo(z.tempo)):b.tempoForNextLine=["tempo",k,M,this.calcTempo(z.tempo)]:z.type==="immediate"&&(!B&&w.hasBeginMusic()?w.appendElement("tempo",k,M,z.tempo):b.tempoForNextLine=["tempo",k,M,z.tempo]),[P-E+1+$,S[E+1],S.substring(E+3,P)]}break;case"[V:":if(P>0)return parseKeyVoice$2.parseVoice(S,E+3,P),[P-E+1+$,S[E+1],S.substring(E+3,P)];break;case"[r:":return[P-E+1+$]}}return[0]},this.letter_to_body_header=function(S,E){if(S.length>=E+3)switch(S.substring(E,E+2)){case"I:":var B=parseDirective$1.addDirective(S.substring(E+2));return B&&g(B,S,E),[S.length];case"M:":var $=this.setMeter(S.substring(E+2));return w.hasBeginMusic()&&$&&w.appendStartingElement("meter",b.iChar+E,b.iChar+S.length,$),[S.length];case"K:":var P=parseKeyVoice$2.parseKey(S.substring(E+2),w.hasBeginMusic());return P.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",b.iChar+E,b.iChar+S.length,b.clef),P.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",b.iChar+E,b.iChar+S.length,parseKeyVoice$2.fixKey(b.clef,b.key)),[S.length];case"P:":return w.hasBeginMusic()&&w.appendElement("part",b.iChar+E,b.iChar+S.length,{title:S.substring(E+2)}),[S.length];case"L:":return this.setDefaultLength(S,E+2,S.length),[S.length];case"Q:":var k=S.indexOf("",E+2);k===-1&&(k=S.length);var M=this.setTempo(S,E+2,k,b.iChar);return M.type==="delaySet"?w.appendElement("tempo",b.iChar+E,b.iChar+S.length,this.calcTempo(M.tempo)):M.type==="immediate"&&w.appendElement("tempo",b.iChar+E,b.iChar+S.length,M.tempo),[k,S[E],parseCommon$b.strip(S.substring(E+2))];case"V:":return parseKeyVoice$2.parseVoice(S,E+2,S.length),[S.length,S[E],parseCommon$b.strip(S.substring(E+2))]}return[0]};var x={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(S){var E=x[S[0]];if(E!==void 0)return E==="unalignedWords"?w.addMetaTextArray(E,parseDirective$1.parseFontChangeLine(d.translateString(d.stripComment(S.substring(2)))),{startChar:b.iChar,endChar:b.iChar+S.length}):w.addMetaText(E,d.translateString(d.stripComment(S.substring(2))),{startChar:b.iChar,endChar:b.iChar+S.length}),{};var B=b.iChar,$=B+S.length;switch(S[0]){case"H":for(w.addMetaText("history",d.translateString(d.stripComment(S.substring(2))),{startChar:b.iChar,endChar:b.iChar+S.length}),S=d.peekLine();S&&S[1]!==":";)d.nextLine(),w.addMetaText("history",d.translateString(d.stripComment(S)),{startChar:b.iChar,endChar:b.iChar+S.length}),S=d.peekLine();break;case"K":this.resolveTempo();var P=parseKeyVoice$2.parseKey(S.substring(2),!1);!b.is_in_header&&w.hasBeginMusic()&&(P.foundClef&&w.appendStartingElement("clef",B,$,b.clef),P.foundKey&&w.appendStartingElement("key",B,$,parseKeyVoice$2.fixKey(b.clef,b.key))),b.is_in_header=!1;break;case"L":this.setDefaultLength(S,2,S.length);break;case"M":b.origMeter=b.meter=this.setMeter(S.substring(2));break;case"P":b.is_in_header?w.addMetaText("partOrder",d.translateString(d.stripComment(S.substring(2))),{startChar:b.iChar,endChar:b.iChar+S.length}):b.partForNextLine={title:d.translateString(d.stripComment(S.substring(2))),startChar:B,endChar:$};break;case"Q":var k=this.setTempo(S,2,S.length,b.iChar);k.type==="delaySet"?b.tempo=k.tempo:k.type==="immediate"&&(A.metaText.tempo?b.tempoForNextLine=["tempo",B,$,k.tempo]:A.metaText.tempo=k.tempo);break;case"T":this.setTitle(S.substring(2));break;case"U":this.addUserDefinition(S,2,S.length);break;case"V":if(parseKeyVoice$2.parseVoice(S,2,S.length),!b.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":g("Ignored header",S,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,g,b,A,w,C){tokenizer=d,warn=g,multilineVars=b,tune=A,tuneBuilder$1=w,header=C,this.lineContinuation=!1},nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",isInTie=function(d,g,b){if(d.inTie[g]===void 0)return!1;var A=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;return!!(d.inTie[g][A]&&(b.pitches!==void 0||b.rest.type!=="spacer"))},el={};MusicParser.prototype.parseMusic=function(d){header.resolveTempo(),multilineVars.is_in_header=!1;for(var g=0,b=multilineVars.iChar;tokenizer.isWhiteSpace(d[g])&&g<d.length;)g++;if(!(g===d.length||d[g]==="%")){var A=multilineVars.start_new_line;multilineVars.continueall===void 0?multilineVars.start_new_line=!0:multilineVars.start_new_line=!1;var w=0,C=header.letter_to_body_header(d,g);C[0]>0&&(g+=C[0],C[1]==="V"&&this.startNewLine());for(var x=0;g<d.length;){var S=g;if(d[g]==="%")break;var E=header.letter_to_inline_header(d,g,A);if(E[0]>0)g+=E[0],E[1]==="V"&&(A=!0);else{(!tuneBuilder$1.hasBeginMusic()||A&&!this.lineContinuation)&&(this.startNewLine(),A=!1);for(var B;;)if(B=tokenizer.eatWhiteSpace(d,g),B>0&&(g+=B),g>0&&d[g-1]===""&&(B=header.letter_to_body_header(d,g),B[0]>0&&(B[1]==="V"&&this.startNewLine(),g=B[0],multilineVars.start_new_line=!1)),B=letter_to_spacer(d,g),B[0]>0&&(g+=B[0]),B=letter_to_chord(d,g),B[0]>0){el.chord||(el.chord=[]);var $=tokenizer.translateString(B[1]);$=$.replace(/;/g,`
  2331. `);for(var P=!1,k=0;k<el.chord.length;k++)el.chord[k].position===B[2]&&(P=!0,el.chord[k].name+=`
  2332. `+$);P===!1&&(B[2]===null&&B[3]?el.chord.push({name:$,rel_position:B[3]}):el.chord.push({name:$,position:B[2]})),g+=B[0];var M=tokenizer.skipWhiteSpace(d.substring(g));M>0&&(el.force_end_beam_last=!0),g+=M}else if(nonDecorations.indexOf(d[g])===-1?B=letter_to_accent(d,g):B=[0],B[0]>0)B[1]===null?g+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]))),g+=B[0];else if(B=letter_to_grace(d,g),B[0]>0)el.gracenotes=B[1],g+=B[0];else break;if(B=letter_to_bar(d,g),B[0]>0){x=0,el.gracenotes!==void 0&&(el.rest={type:"spacer"},el.duration=.125,multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",b+g,b+g+B[0],el),multilineVars.measureNotEmpty=!0,el={});var R={type:B[1]};if(R.type.length===0)warn("Unknown bar type",d,g);else{if(multilineVars.inEnding&&R.type!=="bar_thin"&&(R.endEnding=!0,multilineVars.inEnding=!1),B[2]&&(R.startEnding=B[2],multilineVars.inEnding&&(R.endEnding=!0),multilineVars.inEnding=!0,B[1]==="bar_right_repeat"?multilineVars.restoreStartEndingHoldOvers():multilineVars.duplicateStartEndingHoldOvers()),el.decoration!==void 0&&(R.decoration=el.decoration),el.chord!==void 0&&(R.chord=el.chord),R.startEnding&&multilineVars.barFirstEndingNum===void 0?multilineVars.barFirstEndingNum=multilineVars.currBarNumber:R.startEnding&&R.endEnding&&multilineVars.barFirstEndingNum?multilineVars.currBarNumber=multilineVars.barFirstEndingNum:R.endEnding&&(multilineVars.barFirstEndingNum=void 0),R.type!=="bar_invisible"&&multilineVars.measureNotEmpty){var F=multilineVars.currentVoice===void 0||multilineVars.currentVoice.staffNum===0&&multilineVars.currentVoice.index===0;F&&(multilineVars.currBarNumber++,multilineVars.barNumbers&&multilineVars.currBarNumber%multilineVars.barNumbers===0&&(R.barNumber=multilineVars.currBarNumber))}multilineVars.addFormattingOptions(el,tune.formatting,"bar"),tuneBuilder$1.appendElement("bar",b+S,b+g+B[0],R),multilineVars.measureNotEmpty=!1,el={}}g+=B[0]}else if(d[g]==="&")B=letter_to_overlay(d,g),B[0]>0&&(tuneBuilder$1.appendElement("overlay",b,b+1,{}),g+=1,x++);else{if(B=letter_to_open_slurs_and_triplets(d,g),B.consumed>0&&(B.startSlur!==void 0&&(el.startSlur=B.startSlur),B.dottedSlur&&(el.dottedSlur=!0),B.triplet!==void 0&&(w>0?warn("Can't nest triplets",d,g):(el.startTriplet=B.triplet,el.tripletMultiplier=B.tripletQ/B.triplet,el.tripletR=B.num_notes,w=B.num_notes===void 0?B.triplet:B.num_notes)),g+=B.consumed),d[g]==="["){g++;for(var L=null,z=!1,U=!1;!U;){var W=letter_to_accent(d,g);W[0]>0&&(g+=W[0]);var V=getCoreNote(d,g,{},!1);if(V!==null&&V.pitch!==void 0)W[0]>0&&W[1].indexOf("style=")!==0&&(el.decoration===void 0&&(el.decoration=[]),el.decoration.push(W[1])),V.end_beam&&(el.end_beam=!0,delete V.end_beam),el.pitches===void 0?(el.duration=V.duration,el.pitches=[V]):el.pitches.push(V),delete V.duration,W[0]>0&&W[1].indexOf("style=")===0&&(el.pitches[el.pitches.length-1].style=W[1].substr(6)),multilineVars.inTieChord[el.pitches.length]&&(V.endTie=!0,multilineVars.inTieChord[el.pitches.length]=void 0),V.startTie&&(multilineVars.inTieChord[el.pitches.length]=!0),g=V.endChar,delete V.endChar;else if(d[g]===" ")warn("Spaces are not allowed in chords",d,g),g++;else{if(g<d.length&&d[g]==="]"){g++,multilineVars.next_note_duration!==0&&(el.duration=el.duration*multilineVars.next_note_duration,multilineVars.next_note_duration=0),isInTie(multilineVars,x,el)&&(el.pitches.forEach(function(Z){Z.endTie=!0}),setIsInTie(multilineVars,x,!1)),w>0&&!(el.rest&&el.rest.type==="spacer")&&(w--,w===0&&(el.endTriplet=!0));for(var Q=!1;g<d.length&&!Q;){switch(d[g]){case" ":case" ":addEndBeam(el);break;case")":el.endSlur===void 0?el.endSlur=1:el.endSlur++;break;case"-":el.pitches.forEach(function(Z){Z.startTie={}}),setIsInTie(multilineVars,x,!0);break;case">":case"<":var K=getBrokenRhythm(d,g);g+=K[0]-1,multilineVars.next_note_duration=K[2],L?L=L*K[1]:L=K[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var G=tokenizer.getFraction(d,g);L=G.value,g=G.index;var X=d[g];X===" "&&(z=!0),X==="-"||X===")"||X===" "||X==="<"||X===">"?g--:Q=!0;break;default:Q=!0;break}Q||g++}}else warn("Expected ']' to end the chords",d,g);el.pitches!==void 0&&(L!==null&&(el.duration=el.duration*L,z&&addEndBeam(el)),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",b+S,b+g,el),multilineVars.measureNotEmpty=!0,el={}),U=!0}}}else{var J={},re=getCoreNote(d,g,J,!0);if(J.endTie!==void 0&&setIsInTie(multilineVars,x,!0),re!==null){re.pitch!==void 0?(el.pitches=[{}],re.accidental!==void 0&&(el.pitches[0].accidental=re.accidental),el.pitches[0].pitch=re.pitch,el.pitches[0].name=re.name,(re.midipitch||re.midipitch===0)&&(el.pitches[0].midipitch=re.midipitch),re.endSlur!==void 0&&(el.pitches[0].endSlur=re.endSlur),re.endTie!==void 0&&(el.pitches[0].endTie=re.endTie),re.startSlur!==void 0&&(el.pitches[0].startSlur=re.startSlur),el.startSlur!==void 0&&(el.pitches[0].startSlur=el.startSlur),el.dottedSlur!==void 0&&(el.pitches[0].dottedSlur=!0),re.startTie!==void 0&&(el.pitches[0].startTie=re.startTie),el.startTie!==void 0&&(el.pitches[0].startTie=el.startTie)):(el.rest=re.rest,re.endSlur!==void 0&&(el.endSlur=re.endSlur),re.endTie!==void 0&&(el.rest.endTie=re.endTie),re.startSlur!==void 0&&(el.startSlur=re.startSlur),re.startTie!==void 0&&(el.rest.startTie=re.startTie),el.startTie!==void 0&&(el.rest.startTie=el.startTie)),re.chord!==void 0&&(el.chord=re.chord),re.duration!==void 0&&(el.duration=re.duration),re.decoration!==void 0&&(el.decoration=re.decoration),re.graceNotes!==void 0&&(el.graceNotes=re.graceNotes),delete el.startSlur,delete el.dottedSlur,isInTie(multilineVars,x,el)&&(el.pitches!==void 0?el.pitches[0].endTie=!0:el.rest.type!=="spacer"&&(el.rest.endTie=!0),setIsInTie(multilineVars,x,!1)),(re.startTie||el.startTie)&&setIsInTie(multilineVars,x,!0),g=re.endChar,w>0&&!(re.rest&&re.rest.type==="spacer")&&(w--,w===0&&(el.endTriplet=!0)),re.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 fe=[.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&&fe.indexOf(el.duration)===-1&&el.duration!==0&&(!el.rest||el.rest.type!=="spacer")&&warn("Duration not representable: "+d.substring(S,g),d,g),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",b+S,b+g,el),multilineVars.measureNotEmpty=!0,el={}}}g===S&&(d[g]!==" "&&d[g]!=="`"&&warn("Unknown character ignored",d,g),g++)}}}this.lineContinuation=d.indexOf("")>=0||C[0]>0,this.lineContinuation||(el={})}};var setIsInTie=function(d,g,b){var A=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;d.inTie[g]===void 0&&(d.inTie[g]=[]),d.inTie[g][A]=b},letter_to_chord=function(d,g){if(d[g]==='"'){var b=tokenizer.getBrackettedSubstring(d,g,5);if(b[2]||warn("Missing the closing quote while parsing the chord symbol",d,g),b[0]>0&&b[1].length>0&&b[1][0]==="^")b[1]=b[1].substring(1),b[2]="above";else if(b[0]>0&&b[1].length>0&&b[1][0]==="_")b[1]=b[1].substring(1),b[2]="below";else if(b[0]>0&&b[1].length>0&&b[1][0]==="<")b[1]=b[1].substring(1),b[2]="left";else if(b[0]>0&&b[1].length>0&&b[1][0]===">")b[1]=b[1].substring(1),b[2]="right";else if(b[0]>0&&b[1].length>0&&b[1][0]==="@"){b[1]=b[1].substring(1);var A=tokenizer.getFloat(b[1]);A.digits===0&&warn("Missing first position in absolutely positioned annotation.",d,g),b[1]=b[1].substring(A.digits),b[1][0]!==","&&warn("Missing comma absolutely positioned annotation.",d,g),b[1]=b[1].substring(1);var w=tokenizer.getFloat(b[1]);w.digits===0&&warn("Missing second position in absolutely positioned annotation.",d,g),b[1]=b[1].substring(w.digits);var C=tokenizer.skipWhiteSpace(b[1]);b[1]=b[1].substring(C),b[2]=null,b[3]={x:A.value,y:w.value}}else multilineVars.freegchord!==!0&&(b[1]=b[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),b[1]=b[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),b[1]=b[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),b[1]=b[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),b[1]=b[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),b[1]=b[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),b[2]="default",b[1]=transpose.chordName(multilineVars,b[1]);return b}return[0,""]},letter_to_grace=function(d,g){if(d[g]==="{"){var b=tokenizer.getBrackettedSubstring(d,g,1,"}");b[2]||warn("Missing the closing '}' while parsing grace note",d,g),d[g+b[0]]===")"&&(b[0]++,b[1]+=")");for(var A=[],w=0,C=!1;w<b[1].length;){var x=!1;b[1][w]==="/"&&(x=!0,w++);var S=getCoreNote(b[1],w,{},!1);S!==null?(S.duration=S.duration/(multilineVars.default_length*8),x&&(S.acciaccatura=!0),A.push(S),C&&(S.endTie=!0,C=!1),S.startTie&&(C=!0),w=S.endChar,delete S.endChar,S.end_beam&&(S.endBeam=!0,delete S.end_beam)):(b[1][w]===" "?A.length>0&&(A[A.length-1].endBeam=!0):warn("Unknown character '"+b[1][w]+"' while parsing grace note",d,g),w++)}if(A.length)return[b[0],A]}return[0]};function letter_to_overlay(d,g){if(d[g]==="&"){for(var b=g;d[g]&&d[g]!==":"&&d[g]!=="|";)g++;return[g-b,d.substring(b+1,g)]}return[0]}function durationOfMeasure(d){var g=d.origMeter;return!g||g.type!=="specified"||!g.value||g.value.length===0?1:parseInt(g.value[0].num,10)/parseInt(g.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,g){var b=multilineVars.macros[d[g]];if(b!==void 0)return(b[0]==="!"||b[0]==="+")&&(b=b.substring(1)),(b[b.length-1]==="!"||b[b.length-1]==="+")&&(b=b.substring(0,b.length-1)),legalAccents.includes(b)?[1,b]:volumeDecorations.includes(b)?(multilineVars.volumePosition==="hidden"&&(b=""),[1,b]):dynamicDecorations.includes(b)?(multilineVars.dynamicPosition==="hidden"&&(b=""),[1,b]):(multilineVars.ignoredDecorations.includes(b)||warn("Unknown macro: "+b,d,g),[1,""]);switch(d[g]){case".":if(d[g+1]==="("||d[g+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var A=tokenizer.getBrackettedSubstring(d,g,5);if(A[1].length>1&&(A[1][0]==="^"||A[1][0]==="_")&&(A[1]=A[1].substring(1)),legalAccents.includes(A[1]))return A;if(volumeDecorations.includes(A[1]))return multilineVars.volumePosition==="hidden"&&(A[1]=""),A;if(dynamicDecorations.includes(A[1]))return multilineVars.dynamicPosition==="hidden"&&(A[1]=""),A;var w=accentPseudonyms.findIndex(function(C){return A[1]===C[0]});return w>=0?(A[1]=accentPseudonyms[w][1],A):(w=accentDynamicPseudonyms.findIndex(function(C){return A[1]===C[0]}),w>=0?(A[1]=accentDynamicPseudonyms[w][1],multilineVars.dynamicPosition==="hidden"&&(A[1]=""),A):d[g]==="!"&&(A[0]===1||d[g+A[0]-1]!=="!")?[1,null]:(warn("Unknown decoration: "+A[1],d,g),A[1]="",A));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,g){for(var b=g;tokenizer.isWhiteSpace(d[g]);)g++;return[g-b]},letter_to_bar=function(d,g){var b=tokenizer.getBarLine(d,g);if(b.len===0)return[0,""];if(b.warn)return warn(b.warn,d,g),[b.len,""];for(var A=0;A<d.length&&d[g+b.len+A]===" ";A++);var w=b.len;if(d[g+b.len+A]==="["&&(b.len+=A+1),d[g+b.len]==='"'&&d[g+b.len-1]==="["){var C=tokenizer.getBrackettedSubstring(d,g+b.len,5);return[b.len+C[0],b.token,C[1]]}var x=tokenizer.getTokenOf(d.substring(g+b.len),"1234567890-,");return x.len===0||x.token[0]==="-"?[w,b.token]:[b.len+x.len,b.token,x.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,g){var b={},A=g;for(d[g]==="."&&d[g+1]==="("&&(b.dottedSlur=!0,g++);d[g]==="("||tokenizer.isWhiteSpace(d[g]);)d[g]==="("&&(g+1<d.length&&d[g+1]>="2"&&d[g+1]<="9"?(b.triplet!==void 0?warn("Can't nest triplets",d,g):(b.triplet=d[g+1]-"0",b.tripletQ=tripletQ[b.triplet],b.num_notes=b.triplet,g+2<d.length&&d[g+2]===":"&&(g+3<d.length&&d[g+3]===":"?g+4<d.length&&d[g+4]>="1"&&d[g+4]<="9"?(b.num_notes=d[g+4]-"0",g+=3):warn("expected number after the two colons after the triplet to mark the duration",d,g):g+3<d.length&&d[g+3]>="1"&&d[g+3]<="9"?(b.tripletQ=d[g+3]-"0",g+4<d.length&&d[g+4]===":"?g+5<d.length&&d[g+5]>="1"&&d[g+5]<="9"&&(b.num_notes=d[g+5]-"0",g+=4):g+=2):warn("expected number after the triplet to mark the duration",d,g))),g++):b.startSlur===void 0?b.startSlur=1:b.startSlur++),g++;return b.consumed=g-A,b};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 g=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,g),d.key.mode=multilineVars.key.mode,multilineVars.key.impliedNaturals&&(d.key.impliedNaturals=multilineVars.key.impliedNaturals),multilineVars.key.explicitAccidentals)for(var b=0;b<multilineVars.key.explicitAccidentals.length;b++){for(var A=!1,w=0;w<d.key.accidentals.length;w++)d.key.accidentals[w].note===multilineVars.key.explicitAccidentals[b].note&&(d.key.accidentals[w].acc=multilineVars.key.explicitAccidentals[b].acc,A=!0);A||d.key.accidentals.push(multilineVars.key.explicitAccidentals[b])}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(S){S.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 C=multilineVars.staves[multilineVars.currentVoice.staffNum];C.brace&&(d.brace=C.brace),C.bracket&&(d.bracket=C.bracket),C.connectBarLines&&(d.connectBarLines=C.connectBarLines),C.name&&(d.name=C.name[multilineVars.currentVoice.index]),C.subname&&(d.subname=C.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 x=multilineVars.currentVoice===void 0||multilineVars.currentVoice.staffNum===0&&multilineVars.currentVoice.index===0;multilineVars.barNumbers===0&&x&&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,g,b,A){var w=function(k){return k==="octave"||k==="duration"||k==="Zduration"||k==="broken_rhythm"||k==="end_slur"},C;d[g]==="."&&d[g+1]==="-"&&(C=!0,g++);for(var x="startSlur",S=!1;;){switch(d[g]){case"(":if(x==="startSlur")b.startSlur===void 0?b.startSlur=1:b.startSlur++;else return w(x)?(b.endChar=g,b):null;break;case")":if(w(x))b.endSlur===void 0?b.endSlur=1:b.endSlur++;else return null;break;case"^":if(x==="startSlur")b.accidental="sharp",x="sharp2";else if(x==="sharp2")b.accidental="dblsharp",x="pitch";else return w(x)?(b.endChar=g,b):null;break;case"_":if(x==="startSlur")b.accidental="flat",x="flat2";else if(x==="flat2")b.accidental="dblflat",x="pitch";else return w(x)?(b.endChar=g,b):null;break;case"=":if(x==="startSlur")b.accidental="natural",x="pitch";else return w(x)?(b.endChar=g,b):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(x==="startSlur"||x==="sharp2"||x==="flat2"||x==="pitch"){if(b.pitch=pitches[d[g]],b.pitch+=7*(multilineVars.currentVoice&&multilineVars.currentVoice.octave!==void 0?multilineVars.currentVoice.octave:multilineVars.octave),b.name=d[g],b.accidental&&(b.name=accMap[b.accidental]+b.name),transpose.note(multilineVars,b),x="octave",A&&multilineVars.next_note_duration!==0?(b.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,S=!0):b.duration=multilineVars.default_length,multilineVars.clef&&multilineVars.clef.type==="perc"||multilineVars.currentVoice&&multilineVars.currentVoice.clef==="perc"){var E=d[g];b.accidental&&(E=accMap[b.accidental]+E),tune.formatting&&tune.formatting.midi&&tune.formatting.midi.drummap&&(b.midipitch=tune.formatting.midi.drummap[E])}}else return w(x)?(b.endChar=g,b):null;break;case",":if(x==="octave")b.pitch-=7,b.name+=",";else return w(x)?(b.endChar=g,b):null;break;case"'":if(x==="octave")b.pitch+=7,b.name+="'";else return w(x)?(b.endChar=g,b):null;break;case"x":case"X":case"y":case"z":case"Z":if(x==="startSlur")b.rest={type:rests[d[g]]},delete b.accidental,delete b.startSlur,delete b.startTie,delete b.endSlur,delete b.endTie,delete b.end_beam,delete b.grace_notes,b.rest.type.indexOf("multimeasure")>=0?(b.duration=tune.getBarLength(),b.rest.text=1,x="Zduration"):(A&&multilineVars.next_note_duration!==0?(b.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,S=!0):b.duration=multilineVars.default_length,x="duration");else return w(x)?(b.endChar=g,b):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(x==="octave"||x==="duration"){var B=tokenizer.getFraction(d,g);for(b.duration=b.duration*B.value,b.endChar=B.index;B.index<d.length&&(tokenizer.isWhiteSpace(d[B.index])||d[B.index]==="-");)d[B.index]==="-"?b.startTie={}:b=addEndBeam(b),B.index++;g=B.index-1,x="broken_rhythm"}else if(x==="sharp2")b.accidental="quartersharp",x="pitch";else if(x==="flat2")b.accidental="quarterflat",x="pitch";else if(x==="Zduration"){var $=tokenizer.getNumber(d,g);return b.duration=$.num*tune.getBarLength(),b.rest.text=$.num,b.endChar=$.index,b}else return null;break;case"-":if(x==="startSlur")tuneBuilder$1.addTieToLastNote(C),b.endTie=!0;else if(x==="octave"||x==="duration"||x==="end_slur")if(b.startTie={},!S&&A)x="broken_rhythm";else return tokenizer.isWhiteSpace(d[g+1])&&addEndBeam(b),b.endChar=g+1,b;else return x==="broken_rhythm"?(b.endChar=g,b):null;break;case" ":case" ":if(w(x)){b.end_beam=!0,C=!1;do d[g]==="."&&d[g+1]==="-"&&(C=!0,g++),d[g]==="-"&&(b.startTie={},C&&(b.startTie.style="dotted")),g++;while(g<d.length&&(tokenizer.isWhiteSpace(d[g])||d[g]==="-")||d[g]==="."&&d[g+1]==="-");if(b.endChar=g,!S&&A&&(d[g]==="<"||d[g]===">"))g--,x="broken_rhythm";else return b}else return null;break;case">":case"<":if(w(x))if(A){var P=getBrokenRhythm(d,g);g+=P[0]-1,multilineVars.next_note_duration=P[2],b.duration=P[1]*b.duration,x="end_slur"}else return b.endChar=g,b;else return null;break;default:return w(x)?(b.endChar=g,b):null}if(g++,g===d.length)return w(x)?(b.endChar=g,b):null}return null},getBrokenRhythm=function(d,g){switch(d[g]){case">":return g<d.length-2&&d[g+1]===">"&&d[g+2]===">"?[3,1.875,.125]:g<d.length-1&&d[g+1]===">"?[2,1.75,.25]:[1,1.5,.5];case"<":return g<d.length-2&&d[g+1]==="<"&&d[g+2]==="<"?[3,.125,1.875]:g<d.length-1&&d[g+1]==="<"?[2,.25,1.75]:[1,.5,1.5]}return null},abc_parse_music=MusicParser,parseCommon$9=abc_common,Tokenizer$1=function(d,g){this.lineIndex=0,this.lines=d,this.multilineVars=g,this.skipWhiteSpace=function(B){for(var $=0;$<B.length;$++)if(!this.isWhiteSpace(B[$]))return $;return B.length};var b=function(B,$){return $>=B.length};this.eatWhiteSpace=function(B,$){for(var P=$;P<B.length;P++)if(!this.isWhiteSpace(B[P]))return P-$;return P-$},this.getKeyPitch=function(B){var $=this.skipWhiteSpace(B);if(b(B,$))return{len:0};switch(B[$]){case"A":return{len:$+1,token:"A"};case"B":return{len:$+1,token:"B"};case"C":return{len:$+1,token:"C"};case"D":return{len:$+1,token:"D"};case"E":return{len:$+1,token:"E"};case"F":return{len:$+1,token:"F"};case"G":return{len:$+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 $=function(M,R){for(;R<M.length&&(M[R]>="a"&&M[R]<="z"||M[R]>="A"&&M[R]<="Z");)R++;return R},P=this.skipWhiteSpace(B);if(b(B,P))return{len:0};var k=B.substring(P,P+3).toLowerCase();switch((k.length>1&&k[1]===" "||k[1]==="^"||k[1]==="_"||k[1]==="=")&&(k=k[0]),k){case"mix":return{len:$(B,P),token:"Mix"};case"dor":return{len:$(B,P),token:"Dor"};case"phr":return{len:$(B,P),token:"Phr"};case"lyd":return{len:$(B,P),token:"Lyd"};case"loc":return{len:$(B,P),token:"Loc"};case"aeo":return{len:$(B,P),token:"m"};case"maj":return{len:$(B,P),token:""};case"ion":return{len:$(B,P),token:""};case"min":return{len:$(B,P),token:"m"};case"m":return{len:$(B,P),token:"m"}}return{len:0}},this.getClef=function(B,$){var P=B,k=this.skipWhiteSpace(B);if(b(B,k))return{len:0};var M=!1,R=B.substring(k);if(parseCommon$9.startsWith(R,"clef=")&&(M=!0,R=R.substring(5),k+=5),R.length===0&&M)return{len:k+5,warn:"No clef specified: "+P};var F=this.skipWhiteSpace(R);if(b(R,F))return{len:0};F>0&&(k+=F,R=R.substring(F));var L=null;if(parseCommon$9.startsWith(R,"treble"))L="treble";else if(parseCommon$9.startsWith(R,"bass3"))L="bass3";else if(parseCommon$9.startsWith(R,"bass"))L="bass";else if(parseCommon$9.startsWith(R,"tenor"))L="tenor";else if(parseCommon$9.startsWith(R,"alto2"))L="alto2";else if(parseCommon$9.startsWith(R,"alto1"))L="alto1";else if(parseCommon$9.startsWith(R,"alto"))L="alto";else if(!$&&M&&parseCommon$9.startsWith(R,"none"))L="none";else if(parseCommon$9.startsWith(R,"perc"))L="perc";else if(!$&&M&&parseCommon$9.startsWith(R,"C"))L="tenor";else if(!$&&M&&parseCommon$9.startsWith(R,"F"))L="bass";else if(!$&&M&&parseCommon$9.startsWith(R,"G"))L="treble";else return{len:k+5,warn:"Unknown clef specified: "+P};return R=R.substring(L.length),F=this.isMatch(R,"+8"),F>0?L+="+8":(F=this.isMatch(R,"-8"),F>0&&(L+="-8")),{len:k+L.length,token:L,explicit:M}},this.getBarLine=function(B,$){switch(B[$]){case"]":switch(++$,B[$]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++$,B[$]>="1"&&B[$]<="9"||B[$]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++$,B[$]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++$,B[$]){case"]":switch(++$,B[$]){case"|":return++$,B[$]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++$,B[$]===":"?{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(++$,B[$]==="|")switch(++$,B[$]){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[$]>="1"&&B[$]<="9"||B[$]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++$,B[$]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++$,B[$]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var P=0;B[$+P]===":";)P++;return{len:1+P,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(B,$){for(var P=0;P<B.length;P++)if($.indexOf(B[P])<0)return{len:P,token:B.substring(0,P)};return{len:P,token:B}},this.getToken=function(B,$,P){for(var k=$;k<P&&!this.isWhiteSpace(B[k]);)k++;return B.substring($,k)},this.isMatch=function(B,$){var P=this.skipWhiteSpace(B);return b(B,P)?0:parseCommon$9.startsWith(B.substring(P),$)?P+$.length:0},this.getPitchFromTokens=function(B){var $={},P={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($.position=P[B[0].token],$.position===void 0)return{warn:"Pitch expected. Found: "+B[0].token};for(B.shift();B.length;)switch(B[0].token){case",":$.position-=7,B.shift();break;case"'":$.position+=7,B.shift();break;default:return $}return $},this.getKeyAccidentals2=function(B){for(var $;B.length>0;){var P;if(B[0].token==="^"){if(P="sharp",B.shift(),B.length===0)return{accs:$,warn:"Expected note name after "+P};switch(B[0].token){case"^":P="dblsharp",B.shift();break;case"/":P="quartersharp",B.shift();break}}else if(B[0].token==="=")P="natural",B.shift();else if(B[0].token==="_"){if(P="flat",B.shift(),B.length===0)return{accs:$,warn:"Expected note name after "+P};switch(B[0].token){case"_":P="dblflat",B.shift();break;case"/":P="quarterflat",B.shift();break}}else return{accs:$};if(B.length===0)return{accs:$,warn:"Expected note name after "+P};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":$===void 0&&($=[]),$.push({acc:P,note:B[0].token[0]}),B[0].token.length===1?B.shift():B[0].token=B[0].token.substring(1);break;default:return{accs:$,warn:"Expected note name after "+P+" Found: "+B[0].token}}}return{accs:$}},this.getKeyAccidental=function(B){var $={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},P=this.skipWhiteSpace(B);if(b(B,P))return{len:0};var k=null;switch(B[P]){case"^":case"_":case"=":k=B[P];break;default:return{len:0}}if(P++,b(B,P))return{len:1,warn:"Expected note name after accidental"};switch(B[P]){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:P+1,token:{acc:$[k],note:B[P]}};case"^":case"_":case"/":if(k+=B[P],P++,b(B,P))return{len:2,warn:"Expected note name after accidental"};switch(B[P]){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:P+1,token:{acc:$[k],note:B[P]}};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,$,P){var k=B.indexOf("%",$);for(k>=0&&k<P&&(P=k);$<P&&(B[$]===" "||B[$]===" "||B[$]==="");)$++;for(;$<P&&(B[P-1]===" "||B[P-1]===" "||B[P-1]==="");)P--;return{start:$,end:P}};var A=function(B){return B>="A"&&B<="Z"||B>="a"&&B<="z"},w=function(B){return B>="0"&&B<="9"};this.tokenize=function(B,$,P,k){var M=this.getMeat(B,$,P);$=M.start,P=M.end;for(var R=[],F;$<P;){if(B[$]==='"'){for(F=$+1;F<P&&B[F]!=='"';)F++;R.push({type:"quote",token:B.substring($+1,F),start:$+1,end:F}),F++}else if(A(B[$])){if(F=$+1,k)for(;F<P&&!this.isWhiteSpace(B[F]);)F++;else for(;F<P&&A(B[F]);)F++;R.push({type:"alpha",token:B.substring($,F),continueId:w(B[F]),start:$,end:F}),$=F+1}else if(B[$]==="."&&w(B[F+1])){F=$+1;for(var L=null,z=null;F<P&&w(B[F]);)F++;z=parseFloat(B.substring($,F)),R.push({type:"number",token:B.substring($,F),intt:L,floatt:z,continueId:A(B[F]),start:$,end:F}),$=F+1}else if(w(B[$])||B[$]==="-"&&w(B[F+1])){F=$+1;for(var U=null,W=null;F<P&&w(B[F]);)F++;if(B[F]==="."&&w(B[F+1]))for(F++;F<P&&w(B[F]);)F++;else U=parseInt(B.substring($,F));W=parseFloat(B.substring($,F)),R.push({type:"number",token:B.substring($,F),intt:U,floatt:W,continueId:A(B[F]),start:$,end:F}),$=F+1}else B[$]===" "||B[$]===" "||R.push({type:"punct",token:B[$],start:$,end:$+1}),F=$+1;$=F}return R},this.getVoiceToken=function(B,$,P){for(var k=$;k<P&&this.isWhiteSpace(B[k])||B[k]==="=";)k++;if(B[k]==='"'){var M=B.indexOf('"',k+1);return M===-1||M>=P?{len:1,err:"Missing close quote"}:{len:M-$+1,token:this.translateString(B.substring(k+1,M))}}else{for(var R=k;R<P&&!this.isWhiteSpace(B[R])&&B[R]!=="=";)R++;return{len:R-$+1,token:B.substring(k,R)}}};var C={"`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:"ž"},x={"#":"♯",b:"♭","=":"♮"},S={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 $=B.split("\\");if($.length===1)return B;var P=null;return $.forEach(function(k){if(P===null)P=k;else{var M=C[k.substring(0,2)];M!==void 0?P+=M+k.substring(2):(M=S[k.substring(0,3)],M!==void 0?P+=M+k.substring(3):(M=x[k.substring(0,1)],M!==void 0?P+=M+k.substring(1):P+="\\"+k))}}),P},this.getNumber=function(B,$){for(var P=0;$<B.length;)switch(B[$]){case"0":P=P*10,$++;break;case"1":P=P*10+1,$++;break;case"2":P=P*10+2,$++;break;case"3":P=P*10+3,$++;break;case"4":P=P*10+4,$++;break;case"5":P=P*10+5,$++;break;case"6":P=P*10+6,$++;break;case"7":P=P*10+7,$++;break;case"8":P=P*10+8,$++;break;case"9":P=P*10+9,$++;break;default:return{num:P,index:$}}return{num:P,index:$}},this.getFraction=function(B,$){var P=1,k=1;if(B[$]!=="/"){var M=this.getNumber(B,$);P=M.num,$=M.index}if(B[$]==="/")if($++,B[$]==="/"){for(var R=.5;B[$++]==="/";)R=R/2;return{value:P*R,index:$-1}}else{var F=$,L=this.getNumber(B,$);L.num===0&&F===$&&(L.num=2),L.num!==0&&(k=L.num),$=L.index}return{value:P/k,index:$}},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 $=B.indexOf("%");return $>=0?parseCommon$9.strip(B.substring(0,$)):parseCommon$9.strip(B)},this.getInt=function(B){var $=parseInt(B);if(isNaN($))return{digits:0};var P=""+$,k=B.indexOf(P);return{value:$,digits:k+P.length}},this.getFloat=function(B){var $=parseFloat(B);if(isNaN($))return{digits:0};var P=""+$,k=B.indexOf(P);return{value:$,digits:k+P.length}},this.getMeasurement=function(B){if(B.length===0)return{used:0};var $=1,P="";if(B[0].token==="-")B.shift(),P="-",$++;else if(B[0].type!=="number")return{used:0};if(P+=B.shift().token,B.length===0)return{used:1,value:parseInt(P)};var k=B.shift();if(k.token==="."){if($++,B.length===0)return{used:$,value:parseInt(P)};if(B[0].type==="number"&&(k=B.shift(),P=P+"."+k.token,$++,B.length===0))return{used:$,value:parseFloat(P)};k=B.shift()}switch(k.token){case"pt":return{used:$+1,value:parseFloat(P)};case"px":return{used:$+1,value:parseFloat(P)};case"cm":return{used:$+1,value:parseFloat(P)/2.54*72};case"in":return{used:$+1,value:parseFloat(P)*72};default:return B.unshift(k),{used:$,value:parseFloat(P)}}};var E=function(B){return B=B.replace(/\\n/g,`
  2333. `),B=B.replace(/\\"/g,'"'),B};this.getBrackettedSubstring=function(B,$,P,k){for(var M=k||B[$],R=$+1,F=!1;R<B.length&&(F||B[R]!==M);)F=B[R]==="\\",++R;return B[R]===M?[R-$+1,E(B.substring($+1,R)),!0]:(R=$+P,R>B.length-1&&(R=B.length-1),[R-$+1,E(B.substring($+1,R)),!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,g,b){if(!(!g||d.lines.length===0)){var A=d.deline({lineBreaks:!1}),w=findLineBreaks(A,g);d.lines=addLineBreaks(A,w,b),d.lineBreaks=w}}function addLineBreaks(d,g,b){for(var A=[],w=[],C=[],x=1,S=0;S<g.length;S++){var E=g[S];if(d[E.ogLine].staff){var B=d[E.ogLine].staff[E.staff];if(A[E.line]||(A[E.line]={staff:[]}),!A[E.line].staff[E.staff]){A[E.line].staff[E.staff]={voices:[]},b!==void 0&&E.staff===0&&E.line>0&&(A[E.line].staff[E.staff].barNumber=x);for(var $=Object.keys(B),P=0;P<$.length;P++){var k=$[P]==="voices";$[P]==="meter"&&E.line!==0&&(k=!0),k||(A[E.line].staff[E.staff][$[P]]=B[$[P]])}w[E.staff]&&(A[E.line].staff[E.staff].key=w[E.staff])}A[E.line].staff[E.staff].voices[E.voice]||(A[E.line].staff[E.staff].voices[E.voice]=[]),A[E.line].staff[E.staff].voices[E.voice]=d[E.ogLine].staff[E.staff].voices[E.voice].slice(E.start,E.end+1),C[E.staff*10+E.voice]&&A[E.line].staff[E.staff].voices[E.voice].unshift({el_type:"stem",direction:C[E.staff*10+E.voice].direction});for(var M=A[E.line].staff[E.staff].voices[E.voice],R=M.length-1;R>=0;R--)if(M[R].el_type==="key"){w[E.staff]={root:M[R].root,acc:M[R].acc,mode:M[R].mode,accidentals:M[R].accidentals.filter(function(L){return L.acc!=="natural"})};break}for(R=M.length-1;R>=0;R--)if(M[R].el_type==="stem"){C[E.staff*10+E.voice]={direction:M[R].direction};break}if(b!==void 0&&E.staff===0&&E.voice===0)for(R=0;R<M.length;R++)M[R].el_type==="bar"&&(x++,R===M.length-1?delete M[R].barNumber:M[R].barNumber=x)}else A[E.line]=d[E.ogLine]}for(var F=0;F<A.length;F++)A[F].staff&&(A[F].staff=A[F].staff.filter(function(L){return L!=null}));return A}function findLineBreaks(d,g){for(var b=[],A=0,w=0,C=0,x=0;x<d.length;x++){var S=d[x];if(S.staff){var E=w,B=g[A];A++;for(var $=0;$<S.staff.length;$++)for(var P=S.staff[$],k=0;k<P.voices.length;k++){C=E;for(var M=0,R=0,F=P.voices[k],L=0,z=0;z<F.length;z++){var U=F[z];U.el_type==="bar"&&(B[R]===M&&(b.push({ogLine:x,line:C,staff:$,voice:k,start:L,end:z}),L=z+1,C++,w=Math.max(w,C),R++),M++)}b.push({ogLine:x,line:C,staff:$,voice:k,start:L,end:F.length}),C++,w=Math.max(w,C)}}else b.push({ogLine:x,line:C}),C++,w=Math.max(w,C)}return b}function freeFormLineBreaks(d,g){for(var b=[],A=[],w=0,C=0;C<d.length;C++){var x=d[C],S=w+x;if(S<g)w=S;else{var E=g-w,B=S-g;E<B&&w>0?(b.push(C-1),A.push(Math.round(w-x)),w=x):C<d.length-1&&(b.push(C),A.push(Math.round(w)),w=0)}}return A.push(Math.round(w)),{lineBreaks:b,totals:A}}function clone(d){for(var g=[],b=0;b<d.length;b++)g.push(d[b]);return g}function oneTry(d,g,b,A,w,C,x,S,E,B,$){for(var P=B;P<d.length;P++){var k=d[P];b+=k,A+=k;var M=Math.abs(b-g[S]),R=Math.abs(M-C)<g[0]/10;if(R)if(M<C){var F=clone(w),L=clone(E);L.push(P-1),F.push(A-k),$.push({accumulator:b,lineAccumulator:k,lineWidths:F,lastVariance:Math.abs(b-g[S+1]),highestVariance:Math.max(x,C),currLine:S+1,lineBreaks:L,startIndex:P+1})}else M>C&&P<d.length-1&&(F=clone(w),L=clone(E),$.push({accumulator:b,lineAccumulator:A,lineWidths:F,lastVariance:M,highestVariance:Math.max(x,M),currLine:S,lineBreaks:L,startIndex:P+1}));M>C?(E.push(P-1),S++,x=Math.max(x,C),C=Math.abs(b-g[S]),w.push(A-k),A=k):C=M}w.push(A)}function optimizeLineWidths(d,g,b,A){for(var w=Math.ceil(d.total/g),C=Math.floor(d.total/w),x=[],S=0;S<w;S++)x.push(C*(S+1));var E=[];E.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var B=0;B<E.length;)oneTry(d.measureWidths,x,E[B].accumulator,E[B].lineAccumulator,E[B].lineWidths,E[B].lastVariance,E[B].highestVariance,E[B].currLine,E[B].lineBreaks,E[B].startIndex,E),B++;for(S=0;S<E.length;S++){var $=E[S];$.variances=[],$.aveVariance=0;for(var P=0;P<$.lineWidths.length;P++){var k=$.lineWidths[P];$.variances.push(k-x[0]),$.aveVariance+=Math.abs(k-x[0])}$.aveVariance=$.aveVariance/$.lineWidths.length,A.attempts.push({type:"optimizeLineWidths",lineBreaks:$.lineBreaks,variances:$.variances,aveVariance:$.aveVariance,widths:d.measureWidths})}var M=9999999,R=-1;for(S=0;S<E.length;S++)$=E[S],$.aveVariance<M&&(M=$.aveVariance,R=S);return{failed:!1,lineBreaks:E[R].lineBreaks,variance:E[R].highestVariance}}function fixedMeasureLineBreaks(d,g,b){for(var A=[],w=[],C=0,x=!1,S=0;S<d.length;S++)C+=d[S],C>g&&(x=!0),S%b===b-1&&(S!==d.length-1&&A.push(S),w.push(Math.round(C)),C=0);return{failed:x,totals:w,lineBreaks:A}}function getRevisedTuneParams(d,g,b){var A={lineBreaks:d,staffwidth:g};for(var w in b)b.hasOwnProperty(w)&&w!=="wrap"&&w!=="staffwidth"&&(A[w]=b[w]);return{revisedParams:A}}function calcLineWraps(d,g,b){if(g.length===0||b.staffwidth<g[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:b};var A=b.scale?Math.max(b.scale,.1):1,w=b.wrap.minSpacing?Math.max(parseFloat(b.wrap.minSpacing),1):1,C=b.wrap.minSpacingLimit?Math.max(parseFloat(b.wrap.minSpacingLimit),1):w-.1,x=b.wrap.maxSpacing?Math.max(parseFloat(b.wrap.maxSpacing),1):void 0;b.wrap.lastLineLimit&&!x&&(x=Math.max(parseFloat(b.wrap.lastLineLimit),1));for(var S=b.wrap.preferredMeasuresPerLine?Math.max(parseInt(b.wrap.preferredMeasuresPerLine,10),0):void 0,E=[],B=[],$=0;$<g.length;$++){var P=g[$],k=b.staffwidth-P.left,M=k/w/A,R=k/x/A,F=k/C/A,L={widths:P,lineBreakPoint:M,minLineSize:R,attempts:[],staffWidth:b.staffwidth,minWidth:Math.round(F)},z=null;if(S){var U=fixedMeasureLineBreaks(P.measureWidths,M,S);L.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:S,lineBreaks:U.lineBreaks,failed:U.failed,totals:U.totals}),U.failed||(z=U.lineBreaks)}if(!z){var W=freeFormLineBreaks(P.measureWidths,M);L.attempts.push({type:"Free Form",lineBreaks:W.lineBreaks,totals:W.totals}),z=W.lineBreaks,z.length>0&&P.measureWidths.length<25&&(W=optimizeLineWidths(P,M,z,L),L.attempts.push({type:"Optimize",failed:W.failed,reason:W.reason,lineBreaks:W.lineBreaks,totals:W.totals}),W.failed||(z=W.lineBreaks))}E.push(z),B.push(L)}var V=b.staffwidth,Q=getRevisedTuneParams(E,V,b);return Q.explanation=B,Q.reParse=!0,Q}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,g=128;sequence$2=function(M,R){R=R||{};var F,L=R.program||0,z=R.midiTranspose||0;M.visualTranspose&&(z-=M.visualTranspose);var U=R.channel||0,W=!1,V=R.drum||"",Q=R.drumBars||1,K=R.drumIntro||0,G=V!=="",X=[],J=50;L=parseInt(L,10),z=parseInt(z,10),U=parseInt(U,10),U===10&&(L=g),V=V.split(" "),Q=parseInt(Q,10),K=parseInt(K,10);var re=M.formatting.bagpipes;re&&(L=71);var fe=[];if(M.formatting.midi){var Z=M.formatting.midi;Z.program&&Z.program.length>0&&(L=Z.program[0],Z.program.length>1&&(L=Z.program[1],U=Z.program[0]),W=!0),Z.transpose&&(z=Z.transpose[0]),Z.channel&&(U=Z.channel[0],W=!0),Z.drum&&(V=Z.drum),Z.drumbars&&(Q=Z.drumbars[0]),Z.drumon&&(G=!0),U===10&&(L=g),Z.beat&&fe.push({el_type:"beat",beats:Z.beat}),Z.nobeataccents&&fe.push({el_type:"beataccents",value:!1})}R.qpm?F=parseInt(R.qpm,10):M.metaText.tempo?F=S(M.metaText.tempo,M.getBeatLength()):R.defaultQpm?F=R.defaultQpm:F=180;var ie=[];re&&ie.push({el_type:"bagpipes"}),ie.push({el_type:"instrument",program:L}),U&&ie.push({el_type:"channel",channel:U}),z&&ie.push({el_type:"transpose",transpose:z}),ie.push({el_type:"tempo",qpm:F});for(var ce=0;ce<fe.length;ce++)ie.push(fe[ce]);var me=[],ne=[],te=[],ue=[0],ae={};ae[0]={el_type:"tempo",qpm:F,timing:0};for(var ye,Oe=[],Ye=[],et=!1,ht=M.lines,Te=0;Te<ht.length;Te++){var Le=ht[Te];if(Le.staff){let bt=function(be){var Fe={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]},We;if(be.decoration)if(be.decoration.indexOf("pppp")>=0?We="pppp":be.decoration.indexOf("ppp")>=0?We="ppp":be.decoration.indexOf("pp")>=0?We="pp":be.decoration.indexOf("p")>=0?We="p":be.decoration.indexOf("mp")>=0?We="mp":be.decoration.indexOf("mf")>=0?We="mf":be.decoration.indexOf("f")>=0?We="f":be.decoration.indexOf("ff")>=0?We="ff":be.decoration.indexOf("fff")>=0?We="fff":be.decoration.indexOf("ffff")>=0&&(We="ffff"),We&&(ye=Fe[We].slice(0),me[$e].push({el_type:"beat",beats:ye.slice(0)}),ne[Xe]=!1,te[Xe]=!1),be.decoration.indexOf("crescendo(")>=0){var it=b(he,ge,"crescendo)"),gt=Math.min(127,ye[0]+J),yt=A(he,ge+it+1,Object.keys(Fe));yt&&(gt=Fe[yt][0]),it>0?ne[Xe]=Math.floor((gt-ye[0])/it):ne[Xe]=!1,te[Xe]=!1}else if(be.decoration.indexOf("crescendo)")>=0)ne[Xe]=!1;else if(be.decoration.indexOf("diminuendo(")>=0){var Ae=b(he,ge,"diminuendo)"),Ie=Math.max(15,ye[0]-J),ze=A(he,ge+Ae+1,Object.keys(Fe));ze&&(Ie=Fe[ze][0]),ne[Xe]=!1,Ae>0?te[Xe]=Math.floor((Ie-ye[0])/Ae):te[Xe]=!1}else be.decoration.indexOf("diminuendo)")>=0&&(te[Xe]=!1)};for(var Re=Le.staff,$e=0,qe=0;qe<Re.length;qe++){var rt=Re[qe];if(!(rt.clef&&rt.clef.type==="TAB"))for(var Xe=0;Xe<rt.voices.length;Xe++){var he=rt.voices[Xe];if(!me[$e]){me[$e]=[].concat(JSON.parse(JSON.stringify(ie)));var we=x(Le.staff,$e);we&&me[$e].unshift({el_type:"name",trackName:we})}if(z&&rt.clef.type==="perc"&&me[$e].push({el_type:"transpose",transpose:0}),rt.clef&&rt.clef.type==="perc"&&!W)for(var Be=0;Be<me[$e].length;Be++)me[$e][Be].el_type==="instrument"&&(me[$e][Be].program=g);else rt.key&&$(me[$e],rt.key);rt.meter&&P(me[$e],rt.meter),!et&&G&&(me[$e].push({el_type:"drum",params:{pattern:V,bars:Q,on:G,intro:K}}),et=!0),rt.clef&&rt.clef.type!=="perc"&&rt.clef.transpose&&(rt.clef.el_type="clef",me[$e].push({el_type:"transpose",transpose:rt.clef.transpose})),rt.clef&&rt.clef.type&&(rt.clef.type.indexOf("-8")>=0?me[$e].push({el_type:"transpose",transpose:-12}):rt.clef.type.indexOf("+8")>=0&&me[$e].push({el_type:"transpose",transpose:12})),M.formatting.midi&&M.formatting.midi.drumoff&&(me[$e].push({el_type:"bar"}),me[$e].push({el_type:"drum",params:{pattern:"",on:!1}}));var Ne=0,Se=0,q=0,se=0;ye=[105,95,85,1];for(var ge=0;ge<he.length;ge++){var de=he[ge];switch(de.el_type){case"note":if(ne[Xe]&&(ye[0]+=ne[Xe],ye[1]+=ne[Xe],ye[2]+=ne[Xe],me[$e].push({el_type:"beat",beats:ye.slice(0)})),te[Xe]&&(ye[0]+=te[Xe],ye[1]+=te[Xe],ye[2]+=te[Xe],me[$e].push({el_type:"beat",beats:ye.slice(0)})),bt(de),!de.rest||de.rest.type!=="spacer"){var ve={elem:de,el_type:"note",timing:ue[$e]};if(de.style?ve.style=de.style:X[$e]&&(ve.style=X[$e]),ve.duration=de.duration===0?.25:de.duration,de.startTriplet){if(Se=de.tripletMultiplier,q=de.startTriplet*Se*de.duration,de.startTriplet!==de.tripletR&&ge+de.tripletR<=he.length){for(var Pe=0,De=ge;De<ge+de.tripletR;De++)Pe+=he[De].duration;q=Se*Pe}ve.duration=ve.duration*Se,ve.duration=Math.round(ve.duration*1e6)/1e6,se=ve.duration}else Se&&(de.endTriplet?(Se=0,ve.duration=Math.round((q-se)*1e6)/1e6):(ve.duration=ve.duration*Se,ve.duration=Math.round(ve.duration*1e6)/1e6,se+=ve.duration));de.rest&&(ve.rest=de.rest),de.decoration&&(ve.decoration=de.decoration.slice(0)),de.pitches&&(ve.pitches=parseCommon$8.cloneArray(de.pitches)),de.gracenotes&&(ve.gracenotes=parseCommon$8.cloneArray(de.gracenotes)),de.chord&&(ve.chord=parseCommon$8.cloneArray(de.chord)),me[$e].push(ve),de.style==="rhythm"&&C(me),Ne++,ue[$e]+=ve.duration}break;case"key":case"keySignature":$(me[$e],de);break;case"meter":P(me[$e],de);break;case"clef":de.transpose&&me[$e].push({el_type:"transpose",transpose:de.transpose}),de.type&&(de.type.indexOf("-8")>=0?me[$e].push({el_type:"transpose",transpose:-12}):de.type.indexOf("+8")>=0&&me[$e].push({el_type:"transpose",transpose:12}));break;case"tempo":F=S(de,M.getBeatLength()),me[$e].push({el_type:"tempo",qpm:F,timing:ue[$e]}),ae[""+ue[$e]]={el_type:"tempo",qpm:F,timing:ue[$e]};break;case"bar":Ne>0&&me[$e].push({el_type:"bar"}),bt(de),Ne=0;var Qe=de.type==="bar_right_repeat"||de.type==="bar_dbl_repeat",ot=de.startEnding==="1",st=de.type==="bar_left_repeat"||de.type==="bar_dbl_repeat"||de.type==="bar_right_repeat";if(Qe){var ut=Oe[$e];ut||(ut=0);var He=Ye[$e];He||(He=me[$e].length);for(var ct=ut;ct<He;ct++){var mt=parseCommon$8.clone(me[$e][ct]);mt.pitches&&(mt.pitches=parseCommon$8.cloneArray(mt.pitches)),me[$e].push(mt)}Ye[$e]=void 0,Oe[$e]=void 0}ot&&(Ye[$e]=me[$e].length),st&&(Oe[$e]=me[$e].length);break;case"style":X[$e]=de.head;break;case"timeSignature":me[$e].push(E(de));break;case"part":break;case"stem":case"scale":case"break":case"font":break;case"midi":var _t=!1;switch(de.cmd){case"drumon":G=!0,_t=!0;break;case"drumoff":G=!1,_t=!0;break;case"drum":V=de.params,_t=!0;break;case"drumbars":Q=de.params[0],_t=!0;break;case"drummap":break;case"channel":de.params[0]===10&&me[$e].push({el_type:"instrument",program:g});break;case"program":k(me[$e],{el_type:"instrument",program:de.params[0]}),W=!0;break;case"transpose":me[$e].push({el_type:"transpose",transpose:de.params[0]});break;case"gchordoff":me[$e].push({el_type:"gchord",tacet:!0});break;case"gchordon":me[$e].push({el_type:"gchord",tacet:!1});break;case"beat":me[$e].push({el_type:"beat",beats:de.params});break;case"nobeataccents":me[$e].push({el_type:"beataccents",value:!1});break;case"beataccents":me[$e].push({el_type:"beataccents",value:!0});break;case"vol":me[$e].push({el_type:"vol",volume:de.params[0]});break;case"volinc":me[$e].push({el_type:"volinc",volume:de.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",de.cmd,de)}_t&&(me[0].push({el_type:"drum",params:{pattern:V,bars:Q,intro:K,on:G}}),et=!0);break;default:console.log("MIDI: element type "+de.el_type+" not handled.")}}$e++,ue[$e]||(ue[$e]=0)}}}}if(w(me,ae),K)for(var ft=M.getPickupLength(),Ct=0;Ct<me.length;Ct++){for(var pt=0;me[Ct][pt].el_type!=="note"&&me[Ct].length>pt;)pt++;if(me[Ct].length>pt)for(var De=0;De<K;De++)ft===0||De<K-1?me[Ct].splice(pt,0,{el_type:"note",rest:{type:"rest"},duration:d},{el_type:"bar"}):me[Ct].splice(pt,0,{el_type:"note",rest:{type:"rest"},duration:d-ft})}return me.length>0&&me[0].length>0&&(me[0][0].pickupLength=M.getPickupLength()),me};function b(M,R,F){for(var L=0,z=R+1;z<M.length;z++)if(M[z].el_type==="note"&&L++,M[z].decoration&&M[z].decoration.indexOf(F)>=0)return L;return L}function A(M,R,F){for(var L=Math.min(M.length,R+3),z=R;z<L;z++)if(M[z].el_type==="note"&&M[z].decoration){for(var U=0;U<M[z].decoration.length;U++)if(F.indexOf(M[z].decoration[U])>=0)return M[z].decoration[U]}return null}function w(M,R){if(!(!R||R.length===0))for(var F=Object.keys(R),L=0;L<M.length;L++)for(var z=M[L],U=R[0]?R[0].qpm:0,W=0;W<z.length;W++){var V=z[W];V.el_type==="tempo"&&(U=V.qpm),F.indexOf(""+V.timing)>=0&&U!==R[""+V.timing].qpm&&(U=R[""+V.timing].qpm,V.el_type==="tempo"?(V.qpm=R[""+V.timing].qpm,W++):(M[L].splice(W,0,{el_type:"tempo",qpm:R[""+V.timing].qpm,timing:V.timing}),W+=2))}}function C(M){for(var R=0;R<M.length;R++)for(var F=M[R],L=F.length-1;L>=0&&F[L].el_type!=="bar";)F[L].noChordVoice=!0,L--}function x(M,R){if(!(!M||M.length<=R||!M[R].title))return M[R].title.join(" ")}function S(M,R){var F=.25;M.duration&&(F=M.duration[0]);var L=60;return M.bpm&&(L=M.bpm),F*L/R}function E(M){var R;switch(M.type){case"common_time":R={el_type:"meter",num:4,den:4};break;case"cut_time":R={el_type:"meter",num:2,den:2};break;case"specified":R={el_type:"meter",num:M.value[0].num,den:M.value[0].den};break;default:R={el_type:"meter"}}return d=R.num/R.den,R}function B(M){for(var R=[],F=0;F<M.length;F++)M[F].acc!=="natural"&&R.push(M[F]);return R}function $(M,R){var F;R.root==="HP"?F={el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:F={el_type:"key",accidentals:B(R.accidentals)},k(M,F)}function P(M,R){var F=E(R);k(M,F)}function k(M,R){for(var F=M.length-1;F>=0;F--)if(M[F].el_type===R.el_type){JSON.stringify(M[F])!==JSON.stringify(R)&&M.push(R);return}M.push(R)}})();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 g=(d.accidental?d.accidental[0]:"x")+d.verticalPos;return pitchMap[g]}var pitchesToPerc_1=pitchesToPerc$2,flatten$1,parseCommon$7=abc_common,pitchesToPerc$1=pitchesToPerc_1;(function(){var d,g,b,A,w,C=1,x,S,E,B,$,P={num:4,den:4},k,M,R,F,L=0,z=0,U=128,W=64,V=48,Q,K,G,X,J=!1,re=!1,fe=!0,Z=105,ie=95,ce=85,me=.25,ne,te,ue=0,ae,ye={},Oe,Ye=0,et,ht=0,Te=-.001,Le=.4;flatten$1=function(Ae,Ie,ze,Ve){Ie||(Ie={}),Ve||(Ve={}),d=[],g=[0,0,0,0,0,0,0],A=[],w=Ie.qpm,C=1,x=void 0,S=void 0,E=void 0,B=void 0,$=0,et=ze,P={num:4,den:4},k=[],M=!1,F=Ae.length,R=!1,Q=[],L=Ve.bassprog&&Ve.bassprog.length===1?Ve.bassprog[0]:0,z=Ve.chordprog&&Ve.chordprog.length===1?Ve.chordprog[0]:0,W=Ve.bassvol&&Ve.bassvol.length===1?Ve.bassvol[0]:64,V=Ve.chordvol&&Ve.chordvol.length===1?Ve.chordvol[0]:48,K=void 0,G=void 0,J=!!Ie.chordsOff,re=!1,fe=!0,Z=105,ie=95,ce=85,me=.25,ne=void 0,te=void 0,ue=0,ae=[],ye={},Oe=1,Ae.length>0&&Ae[0].length>0&&(Ye=Ae[0][0].pickupLength),Xe(Ae,Ie);for(var Ke=0;Ke<Ae.length;Ke++){b=0;var dt=Ae[Ke];E=[{cmd:"program",channel:Ke,instrument:x}],B=void 0,X=0;var Et=!1;(Ie.voicesOff===!0||Ie.voicesOff&&Ie.voicesOff.length&&Ie.voicesOff.indexOf(Ke)>=0)&&(Et=!0);for(var Ft=0;Ft<dt.length;Ft++){var wt=dt[Ft];switch(wt.el_type){case"name":B={cmd:"text",type:"name",text:wt.trackName};break;case"note":var Mt=de(wt,Et);Mt&&(M=Ke);break;case"key":g=Qe(wt);break;case"meter":P=wt,me=he(P),it();break;case"tempo":w?C=wt.qpm?w/wt.qpm:1:w=wt.qpm;break;case"transpose":b=wt.transpose;break;case"bar":k.length>0&&(M===!1||Ke===M)&&(Fe(X,qe(wt.time)),Q=[]),d=[],Ke===0&&gt(Ae.length+1),re=!1,G=K,X=qe(wt.time);break;case"bagpipes":break;case"instrument":if(x===void 0&&(x=wt.program),S=wt.program,E.length>0&&E[E.length-1].cmd==="program")E[E.length-1].instrument=wt.program;else{var _e;for(_e=E.length-1;_e>=0&&E[_e].cmd!=="program";_e--);(_e<0||E[_e].instrument!==wt.program)&&E.push({cmd:"program",channel:0,instrument:wt.program})}break;case"channel":Re(wt.channel);break;case"drum":ye=We(wt.params),it();break;case"gchord":Ie.chordsOff||(J=wt.tacet);break;case"beat":Z=wt.beats[0],ie=wt.beats[1],ce=wt.beats[2];break;case"vol":ne=wt.volume;break;case"volinc":te=wt.volume;break;case"beataccents":fe=wt.value;break;default:console.log("MIDI creation. Unknown el_type: "+wt.el_type+`
  2334. `);break}}E[0].instrument===void 0&&(E[0].instrument=x||0),B&&E.unshift(B),A.push(E),$e()||(R=!0),ae.length>0}return Ie.detuneOctave&&yt(A,parseInt(Ie.detuneOctave,10)),$e()||A.push(k),ae.length>0&&A.push(ae),{tempo:w,instrument:x,tracks:A,totalDuration:$}};function Re(Ae){for(var Ie=E.length-1;Ie>=0;Ie--)if(E[Ie].cmd==="program"){E[Ie].channel=Ae;return}}function $e(){for(var Ae=!0,Ie=0;Ie<k.length&&Ae;Ie++)k[Ie].cmd==="note"&&(Ae=!1);return Ae}function qe(Ae){return Ae/1e6}function rt(Ae){return Math.round(Ae*C*1e6)/1e6}function Xe(Ae,Ie){for(var ze=0;ze<Ae.length;ze++){for(var Ve=Ae[ze],Ke={},dt=Ie.qpm,Et=0,Ft=1,wt=0;wt<Ve.length;wt++){var Mt=Ve[wt];if(Mt.el_type==="tempo"){dt?Ft=Mt.qpm?dt/Mt.qpm:1:dt=Mt.qpm;continue}Mt.time=Et;var _e=Mt.duration?Mt.duration:0;if(Et+=Math.round(_e*Ft*1e6),Mt.pitches){for(var je=0;je<Mt.pitches.length;je++){var lt=Mt.pitches[je];if(lt){if(lt.duration=Mt.duration,lt.startTie)Ke[lt.pitch]===void 0?Ke[lt.pitch]={el:wt,pitch:je}:(Ve[Ke[lt.pitch].el].pitches[Ke[lt.pitch].pitch].duration+=lt.duration,Mt.pitches[je]=null);else if(lt.endTie){var Tt=Ke[lt.pitch];if(Tt){var Ht=lt.duration;delete Ve[Tt.el].pitches[Tt.pitch].startTie,Ve[Tt.el].pitches[Tt.pitch].duration+=Ht,Mt.pitches[je]=null,delete Ke[lt.pitch]}else delete lt.endTie}}}delete Mt.duration}}for(var Nt in Ke)if(Ke.hasOwnProperty(Nt)){var er=Ke[Nt];delete Ve[er.el].pitches[er.pitch].startTie}}}function he(Ae){switch(parseInt(Ae.den,10)){case 2:return .5;case 4:return .25;case 8:return Ae.num%3===0?.375:.125;case 16:return .125}return .25}var we=["break","(break)","no chord","n.c.","tacet"];function Be(Ae){if(J)return"break";if(R||!Ae.chord||Ae.chord.length===0)return null;for(var Ie=0;Ie<Ae.chord.length;Ie++){var ze=Ae.chord[Ie];if(ze.position==="default")return ze.name;if(we.indexOf(ze.name.toLowerCase())>=0)return"break"}return null}function Ne(Ae,Ie,ze){var Ve=ze-Ae;return Ve/Ie}function Se(Ae,Ie){if(Ie)return 0;var ze;if(ne)ze=ne,ne=void 0;else if(!fe)ze=ie;else if(Ye>Ae)ze=ce;else{P.num/P.den;var Ve=Ne(X,he(P),Ae);Ve===0?ze=Z:parseInt(Ve,10)===Ve?ze=ie:ze=ce}return te&&(ze+=te,te=void 0),ze<0&&(ze=0),ze>127&&(ze=127),Ie?0:ze}function q(Ae){var Ie=!1,ze=Be(Ae);if(ze){var Ve=_t(ze);if(Ve){k.length===0&&(Ie=!0,k.push({cmd:"program",channel:F,instrument:z})),K=Ve;var Ke=Ne(X,he(P),qe(Ae.time));Q.push({chord:K,beat:Ke,start:qe(Ae.time)})}}return Ie}function se(Ae,Ie){var ze={};if(Ae.decoration)for(var Ve=0;Ve<Ae.decoration.length;Ve++)Ae.decoration[Ve]==="staccato"?ze.thisBreakBetweenNotes="staccato":Ae.decoration[Ve]==="tenuto"?ze.thisBreakBetweenNotes="tenuto":Ae.decoration[Ve]==="accent"?ze.velocity=Math.min(127,Ie*1.5):Ae.decoration[Ve]==="trill"?ze.noteModification="trill":Ae.decoration[Ve]==="lowermordent"?ze.noteModification="lowermordent":Ae.decoration[Ve]==="uppermordent"||Ae.decoration[Ve]==="mordent"?ze.noteModification="mordent":Ae.decoration[Ve]==="turn"?ze.noteModification="turn":Ae.decoration[Ve]==="roll"&&(ze.noteModification="roll");return ze}function ge(Ae,Ie){var ze=Ie.start,Ve=Ie.duration,Ke=rt(1/32);switch(Ae){case"trill":for(var dt=1;Ve>0;)E.push({cmd:"note",pitch:Ie.pitch+dt,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),dt=dt===1?0:1,Ve-=Ke,ze+=Ke;break;case"mordent":E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),Ve-=Ke,ze+=Ke,E.push({cmd:"note",pitch:Ie.pitch+1,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),Ve-=Ke,ze+=Ke,E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ve,gap:0,instrument:S});break;case"lowermordent":E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),Ve-=Ke,ze+=Ke,E.push({cmd:"note",pitch:Ie.pitch-1,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),Ve-=Ke,ze+=Ke,E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ve,gap:0,instrument:S});break;case"turn":Ke=Ie.duration/5,E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),E.push({cmd:"note",pitch:Ie.pitch+1,volume:Ie.volume,start:ze+Ke,duration:Ke,gap:0,instrument:S,style:"decoration"}),E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze+Ke*2,duration:Ke,gap:0,instrument:S,style:"decoration"}),E.push({cmd:"note",pitch:Ie.pitch+1,volume:Ie.volume,start:ze+Ke*3,duration:Ke,gap:0,instrument:S,style:"decoration"}),E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze+Ke*4,duration:Ke,gap:0,instrument:S});break;case"roll":for(;Ve>0;)E.push({cmd:"note",pitch:Ie.pitch,volume:Ie.volume,start:ze,duration:Ke,gap:0,instrument:S,style:"decoration"}),Ve-=Ke*2,ze+=Ke*2;break}}function de(Ae,Ie){E.length;var ze=Se(qe(Ae.time),Ie),Ve=q(Ae),Ke;if(Ae.gracenotes&&Ae.pitches&&Ae.pitches.length>0&&Ae.pitches[0]&&(Ke=ot(Ae.gracenotes,Ae.pitches[0].duration),Ae.elem&&(Ae.elem.midiGraceNotePitches=st(Ke,qe(Ae.time),ze*2/3,S))),Ae.elem){var dt=qe(Ae.time),Et=dt/me/w*60*1e3;if(Ae.elem.currentTrackMilliseconds===void 0)Ae.elem.currentTrackMilliseconds=Et,Ae.elem.currentTrackWholeNotes=dt;else if(Ae.elem.currentTrackMilliseconds.length===void 0)Ae.elem.currentTrackMilliseconds!==Et&&(Ae.elem.currentTrackMilliseconds=[Ae.elem.currentTrackMilliseconds,Et],Ae.elem.currentTrackWholeNotes=[Ae.elem.currentTrackWholeNotes,dt]);else{for(var Ft=!1,wt=0;wt<Ae.elem.currentTrackMilliseconds.length;wt++)Ae.elem.currentTrackMilliseconds[wt]===Et&&(Ft=!0);Ft||(Ae.elem.currentTrackMilliseconds.push(Et),Ae.elem.currentTrackWholeNotes.push(dt))}}if(Ae.pitches){var Mt="",_e=se(Ae,ze);_e.thisBreakBetweenNotes&&(Mt=_e.thisBreakBetweenNotes),_e.velocity&&(ze=_e.velocity);var je=Ae.pitches;if(Ae.style==="rhythm"&&(re=!0,K&&K.chick)){je=[];for(var lt=0;lt<K.chick.length;lt++){var Tt=parseCommon$7.clone(Ae.pitches[0]);Tt.actualPitch=K.chick[lt],je.push(Tt)}}Ae.elem&&(Ae.elem.midiPitches=[]);for(var Ht=0;Ht<je.length;Ht++){var Nt=je[Ht];if(Nt){Nt.startSlur&&(ue+=Nt.startSlur.length),Nt.endSlur&&(ue-=Nt.endSlur.length);var er=Nt.actualPitch?Nt.actualPitch:De(Nt);if(S===U&&et){var Wt=pitchesToPerc$1(Nt);Wt&&et[Wt]&&(er=et[Wt].sound)}var Dt={cmd:"note",pitch:er,volume:ze,start:qe(Ae.time),duration:rt(Nt.duration),instrument:S,startChar:Ae.elem.startChar,endChar:Ae.elem.endChar};if(Dt=ut(Dt),Ae.gracenotes&&(Dt.duration=Dt.duration/2,Dt.start=Dt.start+Dt.duration),Ae.elem&&Ae.elem.midiPitches.push(Dt),_e.noteModification)ge(_e.noteModification,Dt);else{switch(ue>0?Dt.endType="tenuto":Mt&&(Dt.endType=Mt),Dt.endType){case"tenuto":Dt.gap=Te;break;case"staccato":var dr=Dt.duration*Le;Dt.gap=w/60*dr;break;default:Dt.gap=ht;break}E.push(Dt)}}}E.length-1}var Sr=ve(Ae);return $=Math.max($,qe(Ae.time)+rt(Sr)),Ve}function ve(Ae){return Ae.pitches&&Ae.pitches.length>0&&Ae.pitches[0]?Ae.pitches[0].duration:Ae.elem?Ae.elem.duration:Ae.duration}var Pe=[0,2,4,5,7,9,11];function De(Ae){if(Ae.midipitch!==void 0)return Ae.midipitch;var Ie=Ae.pitch;if(Ae.accidental)switch(Ae.accidental){case"sharp":d[Ie]=1;break;case"flat":d[Ie]=-1;break;case"natural":d[Ie]=0;break;case"dblsharp":d[Ie]=2;break;case"dblflat":d[Ie]=-2;break;case"quartersharp":d[Ie]=.25;break;case"quarterflat":d[Ie]=-.25;break}var ze=He(Ie)*12+Pe[ct(Ie)]+60;return d[Ie]!==void 0?ze+=d[Ie]:ze+=g[ct(Ie)],ze+=b,ze}function Qe(Ae){var Ie=[0,0,0,0,0,0,0];if(!Ae.accidentals)return Ie;for(var ze=0;ze<Ae.accidentals.length;ze++){var Ve=Ae.accidentals[ze],Ke;switch(Ve.acc){case"flat":Ke=-1;break;case"quarterflat":Ke=-.25;break;case"sharp":Ke=1;break;case"quartersharp":Ke=.25;break;default:Ke=0;break}var dt=Ve.note.toLowerCase(),Et=ct(dt.charCodeAt(0)-"c".charCodeAt(0));Ie[Et]+=Ke}return Ie}function ot(Ae,Ie){for(var ze=0,Ve=[],Ke,dt=0;dt<Ae.length;dt++)Ke=Ae[dt],ze+=Ke.duration;var Et=Ie/2/ze;for(dt=0;dt<Ae.length;dt++){Ke=Ae[dt];var Ft=De(Ke);if(S===U&&et){var wt=pitchesToPerc$1(Ke);wt&&et[wt]&&(Ft=et[wt].sound)}var Mt={pitch:Ft,duration:Ke.duration*Et};Mt=ut(Mt),Ve.push(Mt)}return Ve}function st(Ae,Ie,ze,Ve){var Ke=[];ze=Math.round(ze);for(var dt=0;dt<Ae.length;dt++){var Et=Ae[dt];E.push({cmd:"note",pitch:Et.pitch,volume:ze,start:Ie,duration:Et.duration,gap:0,instrument:Ve,style:"grace"}),Ke.push({pitch:Et.pitch,durationInMeasures:Et.duration,volume:ze,instrument:Ve}),Ie+=Et.duration}return Ke}function ut(Ae){var Ie=""+Ae.pitch;return Ie.indexOf(".75")>=0?(Ae.pitch=Math.round(Ae.pitch),Ae.cents=-50):Ie.indexOf(".25")>=0&&(Ae.pitch=Math.round(Ae.pitch),Ae.cents=50),Ae}function He(Ae){return Math.floor(Ae/7)}function ct(Ae){return Ae=Ae%7,Ae<0&&(Ae+=7),Ae}var mt={A:33,B:35,C:36,D:38,E:40,F:41,G:43};function _t(Ae){if(Ae.length!==0){if(Ae==="break")return{chick:[]};var Ie=Ae.substring(0,1);if(Ie==="("){if(Ae=Ae.substring(1,Ae.length-2),Ae.length===0)return;Ie=Ae.substring(0,1)}var ze=mt[Ie];if(ze){for(var Ve=b;Ve<-8;)Ve+=12;for(;Ve>8;)Ve-=12;ze+=Ve;var Ke=ze-5,dt;Ae.length===1&&(dt=Ct(ze,""));var Et=Ae.substring(1),Ft=Et.substring(0,1);Ft==="b"||Ft==="♭"?(ze--,Ke--,Et=Et.substring(1)):(Ft==="#"||Ft==="♯")&&(ze++,Ke++,Et=Et.substring(1));var wt=Et.split("/");if(dt=Ct(ze,wt[0]),dt.length>=3){var Mt=dt[2]-dt[0];Ke=Ke+Mt-7}if(wt.length===2){var _e=mt[wt[1].substring(0,1)];if(_e){var je=wt[1].substring(1),lt={"#":1,"♯":1,b:-1,"♭":-1}[je]||0;ze=mt[wt[1].substring(0,1)]+lt+Ve,Ke=ze}}return{boom:ze,boom2:Ke,chick:dt}}}}var ft={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 Ct(Ae,Ie){var ze=ft[Ie];ze||(Ie.slice(0,2).toLowerCase()==="ma"||Ie[0]==="M"?ze=ft.M:Ie[0]==="m"||Ie[0]==="-"?ze=ft.m:ze=ft.M),Ae+=12;for(var Ve=[],Ke=0;Ke<ze.length;Ke++)Ve.push(Ae+ze[Ke]);return Ve}function pt(Ae,Ie,ze,Ve,Ke){Ae!==void 0&&k.push({cmd:"note",pitch:Ae,volume:ze,start:X+Ve*rt(Ie),duration:rt(Ke),gap:0,instrument:L})}function bt(Ae,Ie,ze,Ve,Ke){for(var dt=0;dt<Ae.length;dt++)k.push({cmd:"note",pitch:Ae[dt],volume:ze,start:X+Ve*rt(Ie),duration:rt(Ke),gap:0,instrument:z})}var be={"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 Fe(Ae,Ie){var ze=P.num,Ve=P.den,Ke=1/Ve,dt=Ke/2,Et=be[ze+"/"+Ve],Ft=parseInt(ze,10)/parseInt(Ve,10),wt=Ft-(Ie-Ae)/C;if(Math.abs(wt)<1e-5&&(wt=!1),!Et||wt){Et=[];for(var Mt=(Ie-Ae)/C/Ke,_e=0;_e<Mt;_e++)Et.push("chick")}if(Q.length===0&&Q.push({beat:0,chord:K}),Q[0].beat!==0&&K&&G&&Q.unshift({beat:0,chord:G}),Q.length===1){for(var je=Q[0].beat;je<Et.length;je++)if(!re)switch(Et[je]){case"boom":pt(Q[0].chord.boom,Ke,W,je,dt);break;case"boom2":pt(Q[0].chord.boom2,Ke,W,je,dt);break;case"chick":bt(Q[0].chord.chick,Ke,V,je,dt);break}return}for(var lt=Ke===.125?3:1,Tt={},Ht=0;Ht<Q.length;Ht++){var Nt=Q[Ht],er=Math.round(Nt.beat*lt);Tt[""+er]=Nt}for(var Wt=0;Wt<Et.length;Wt++){var Dt;Tt[""+Wt]&&(Dt=Tt[""+Wt]);var dr;if(!re&&Dt)switch(Et[Wt]){case"boom":Tt[""+(Wt+1)]?bt(Dt.chord.chick,Ke,V,Wt,dt):(pt(Dt.chord.boom,Ke,W,Wt,dt),dr=Dt.chord.boom);break;case"boom2":Tt[""+(Wt+1)]?bt(Dt.chord.chick,Ke,V,Wt,dt):dr===Dt.chord.boom?(pt(Dt.chord.boom2,Ke,W,Wt,dt),dr=void 0):(pt(Dt.chord.boom,Ke,W,Wt,dt),dr=Dt.chord.boom);break;case"chick":bt(Dt.chord.chick,Ke,V,Wt,dt);break;case"":Tt[""+Wt]&&bt(Dt.chord.chick,Ke,V,Wt,dt);break}}}function We(Ae){if(Ae.pattern.length===0||Ae.on===!1)return{on:!1};for(var Ie=Ae.pattern[0],ze=[],Ve="",Ke=0,dt=0;dt<Ie.length;dt++)if(Ie[dt]==="d"&&Ke++,Ie[dt]==="d"||Ie[dt]==="z")Ve.length!==0?(ze.push(Ve),Ve=Ie[dt]):Ve=Ve+Ie[dt];else{if(Ve.length===0)return{on:!1};Ve=Ve+Ie[dt]}if(Ve.length!==0&&ze.push(Ve),Ae.pattern.length!==Ke*2+1)return{on:!1};for(var Et={on:!0,bars:Ae.bars,pattern:[]},Ft=he(P),wt=0,Mt=0;Mt<ze.length;Mt++){Ve=ze[Mt];for(var _e=1,je=!1,lt=0,Tt=1;Tt<Ve.length;Tt++)switch(Ve[Tt]){case"/":lt!==0&&(_e*=lt),lt=0,je=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":lt=lt*10+Ve[Tt];break;default:return{on:!1}}je?(lt===0&&(lt=2),_e/=lt):lt&&(_e*=lt),Ve[0]==="d"?(Et.pattern.push({len:_e*Ft,pitch:Ae.pattern[1+wt],velocity:Ae.pattern[1+wt+Ke]}),wt++):Et.pattern.push({len:_e*Ft,pitch:null})}return Oe=Ae.bars?Ae.bars:1,Et}function it(){if(!(!ye||!ye.pattern)){for(var Ae=ye,Ie=0,ze=P.num/P.den,Ve=0;Ve<Ae.pattern.length;Ve++)Ie+=Ae.pattern[Ve].len;var Ke=Ie/Oe/ze;for(Ve=0;Ve<Ae.pattern.length;Ve++)Ae.pattern[Ve].len=Ae.pattern[Ve].len/Ke;ye=Ae}}function gt(Ae){if(!(ae.length===0&&!ye.on)){var Ie=P.num/P.den;if(ae.length===0){if($<Ie)return;ae.push({cmd:"program",channel:Ae,instrument:U})}if(ye.on)for(var ze=X,Ve=0;Ve<ye.pattern.length;Ve++){var Ke=rt(ye.pattern[Ve].len);ye.pattern[Ve].pitch&&ae.push({cmd:"note",pitch:ye.pattern[Ve].pitch,volume:ye.pattern[Ve].velocity,start:ze,duration:Ke,gap:0,instrument:U}),ze+=Ke}}}function yt(Ae,Ie){for(var ze={},Ve=0;Ve<Ae.length;Ve++)for(var Ke=0;Ke<Ae[Ve].length;Ke++){var dt=Ae[Ve][Ke];dt.cmd==="note"&&(ze[dt.start]===void 0&&(ze[dt.start]=[]),ze[dt.start].push({track:Ve,event:Ke,pitch:dt.pitch}))}var Et=Object.keys(ze);for(Ve=0;Ve<Et.length;Ve++){var Ft=ze[Et[Ve]];if(Ft.length>1){Ft=Ft.sort(function(lt,Tt){return lt.pitch-Tt.pitch});var wt=Ft[Ft.length-1],Mt=wt.pitch%12,_e=!1;for(Ke=0;!_e&&Ke<Ft.length-1;Ke++)Ft[Ke].pitch%12===Mt&&(_e=!0);if(_e){var je=Ae[wt.track][wt.event];je.cents||(je.cents=0),je.cents+=Ie}}}}})();var abc_midi_flattener=flatten$1;function delineTune$1(d,g){g||(g={});for(var b=!!g.lineBreaks,A=[],w=!1,C=[],x=[],S=[],E=[],B=[],$=[],P=[],k=0;k<d.length;k++){var M=d[k];if(M.staff){if(w&&!M.vskip)for(var R=A[A.length-1],F=0;F<R.staff.length;F++){var L=M.staff[F],z=R.staff[F];if(L&&(objEqual(L.meter,C[F])||(addMeterToVoices(L.meter,L.voices),C[F]=L.meter,delete L.meter),objEqual(L.key,x[F])||(addKeyToVoices(L.key,L.voices),x[F]=L.key,delete L.key),L.title&&(z.abbrevTitle=L.title),objEqual(L.clef,S[F])||(addClefToVoices(L.clef,L.voices),S[F]=L.clef,delete L.clef),objEqual(L.vocalfont,E[F])||(addFontToVoices(L.vocalfont,L.voices,"vocalfont"),E[F]=L.vocalfont,delete L.vocalfont),objEqual(L.gchordfont,B[F])||(addFontToVoices(L.gchordfont,L.voices,"gchordfont"),B[F]=L.gchordfont,delete L.gchordfont),objEqual(L.tripletfont,$[F])||(addFontToVoices(L.tripletfont,L.voices,"tripletfont"),$[F]=L.tripletfont,delete L.tripletfont),objEqual(L.annotationfont,P[F])||(addFontToVoices(L.annotationfont,L.voices,"annotationfont"),P[F]=L.annotationfont,delete L.annotationfont)),L)for(var U=0;U<z.voices.length;U++){var W=z.voices[U],V=L.voices[U];b&&W.push({el_type:"break"}),V&&(z.voices[U]=W.concat(V))}}else{for(var Q=0;Q<M.staff.length;Q++)x[Q]=M.staff[Q].key,C[Q]=M.staff[Q].meter,S[Q]=M.staff[Q].clef;A.push(cloneLine(M))}w=!0}else w=!1,A.push(M)}return A}function replacer(d,g){return d==="abselem"?"abselem":g}function addMeterToVoices(d,g){d.el_type="meter",d.startChar=-1,d.endChar=-1;for(var b=0;b<g.length;b++)g[b].unshift(d)}function addKeyToVoices(d,g){d.el_type="key",d.startChar=-1,d.endChar=-1;for(var b=0;b<g.length;b++)g[b].unshift(d)}function addClefToVoices(d,g){d.el_type="clef",d.startChar=-1,d.endChar=-1;for(var b=0;b<g.length;b++)g[b].unshift(d)}function addFontToVoices(d,g,b){d.el_type="font",d.type=b,d.startChar=-1,d.endChar=-1;for(var A=0;A<g.length;A++)g[A].unshift(d)}function objEqual(d,g){if(!d)return!0;var b=JSON.stringify(d,replacer),A=JSON.stringify(g,replacer);return b===A}function cloneLine(d){for(var g={},b=Object.keys(d),A=0;A<b.length;A++)if(b[A]!=="staff")g[b[A]]=d[b[A]];else{g.staff=[];for(var w=0;w<d.staff.length;w++){for(var C={},x=Object.keys(d.staff[w]),S=0;S<x.length;S++)if(x[S]!=="voices")C[x[S]]=d.staff[w][x[S]];else{C.voices=[];for(var E=0;E<d.staff[w].voices.length;E++)C.voices.push([].concat(d.staff[w].voices[E]))}g.staff.push(C)}}return g}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(x,S,E,B){for(var $=0;$<B.length;$++)x[E][B[$]]=S[E][B[$]]}this.copyTopInfo=function(x){var S=["tempo","title","header","rhythm","origin","composer","author","partOrder"];d(this,x,"metaText",S),d(this,x,"metaTextInfo",S)},this.copyBottomInfo=function(x){var S=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];d(this,x,"metaText",S),d(this,x,"metaTextInfo",S)},this.getBeatLength=function(){var x=this.getMeterFraction(),S=1;return(x.num===6||x.num===9||x.num===12||x.num===3&&x.den===8)&&(S=3),S/x.den};function g(x,S){for(var E=0,B=0;B<x.length;B++)if(x[B].staff)for(var $=0;$<x[B].staff.length;$++)for(var P=0;P<x[B].staff[$].voices.length;P++)for(var k=x[B].staff[$].voices[P],M=1,R=0;R<k.length;R++){var F=k[R].rest&&k[R].rest.type==="spacer";if(k[R].startTriplet&&(M=k[R].tripletMultiplier),k[R].duration&&!F&&k[R].el_type!=="tempo"&&(E+=k[R].duration*M),k[R].endTriplet&&(M=1),E>=S&&(E-=S),k[R].el_type==="bar")return E}return E}this.getPickupLength=function(){var x=this.getBarLength(),S=g(this.lines,x);return S<1e-8||x-S<1e-8?0:S},this.getBarLength=function(){var x=this.getMeterFraction();return x.num/x.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(x){var S;if(x)S=x;else{var E=this.metaText?this.metaText.tempo:null;S=this.getBpm(E)}S<=0&&(S=1);var B=this.getBeatsPerMeasure(),$=B/S;return $*6e4},this.getBeatsPerMeasure=function(){var x=this.getBeatLength(),S=this.getBarLength();return S/x},this.getMeter=function(){for(var x=0;x<this.lines.length;x++){var S=this.lines[x];if(S.staff)for(var E=0;E<S.staff.length;E++){var B=S.staff[E].meter;if(B)return B}}return{type:"common_time"}},this.getMeterFraction=function(){var x=this.getMeter(),S=4,E=4;return x&&(x.type==="specified"?(S=parseInt(x.value[0].num,10),E=parseInt(x.value[0].den,10)):x.type==="cut_time"?(S=2,E=2):x.type==="common_time"&&(S=4,E=4)),this.meter={num:S,den:E},this.meter},this.getKeySignature=function(){for(var x=0;x<this.lines.length;x++){var S=this.lines[x];if(S.staff){for(var E=0;E<S.staff.length;E++)if(S.staff[E].key)return S.staff[E].key}}return{}},this.getElementFromChar=function(x){for(var S=0;S<this.lines.length;S++){var E=this.lines[S];if(E.staff)for(var B=0;B<E.staff.length;B++)for(var $=E.staff[B],P=0;P<$.voices.length;P++)for(var k=$.voices[P],M=0;M<k.length;M++){var R=k[M];if(R.startChar&&R.endChar&&R.startChar<=x&&R.endChar>x)return R}}return null};function b(x){for(var S,E,B,$,P=x.length-1;P>=0;P--){var k=x[P];k.type==="bar"?(k.top=B,k.nextTop=S,S=B,k.bottom=$,k.nextBottom=E,E=$):k.type==="event"&&(B=k.top,$=k.top+k.height)}}function A(x){var S=[];for(var E in x)x.hasOwnProperty(E)&&S.push(x[E]);return S=S.sort(function(B,$){var P=B.milliseconds-$.milliseconds;return P!==0?P:B.type==="bar"?-1:1}),S}this.addElementToEvents=function(x,S,E,B,$,P,k,M,R,F){if(S.hint)return{isTiedState:void 0,duration:0};var L=S.durationClass?S.durationClass:S.duration;if(S.abcelem.rest&&S.abcelem.rest.type==="spacer"&&(L=0),L>0){for(var z=[],U=0;U<S.elemset.length;U++)S.elemset[U]!==null&&z.push(S.elemset[U]);var W=S.startTie;if(R!==void 0)x["event"+R].elements.push(z),F&&(x["event"+E]||(x["event"+E]={type:"event",milliseconds:E,line:P,measureNumber:k,top:B,height:$,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),x["event"+E].measureStart=!0,F=!1),W||(R=void 0);else{if(!x["event"+E])x["event"+E]={type:"event",milliseconds:E,line:P,measureNumber:k,top:B,height:$,left:S.x,width:S.w,elements:[z],startChar:S.abcelem.startChar,endChar:S.abcelem.endChar,startCharArray:[S.abcelem.startChar],endCharArray:[S.abcelem.endChar],midiPitches:S.abcelem.midiPitches?parseCommon$6.cloneArray(S.abcelem.midiPitches):[]},S.abcelem.midiGraceNotePitches&&(x["event"+E].midiGraceNotePitches=parseCommon$6.cloneArray(S.abcelem.midiGraceNotePitches));else{if(x["event"+E].left?x["event"+E].left=Math.min(x["event"+E].left,S.x):x["event"+E].left=S.x,x["event"+E].elements.push(z),x["event"+E].startCharArray.push(S.abcelem.startChar),x["event"+E].endCharArray.push(S.abcelem.endChar),x["event"+E].startChar===null&&(x["event"+E].startChar=S.abcelem.startChar),x["event"+E].endChar===null&&(x["event"+E].endChar=S.abcelem.endChar),S.abcelem.midiPitches&&S.abcelem.midiPitches.length){x["event"+E].midiPitches||(x["event"+E].midiPitches=[]);for(var U=0;U<S.abcelem.midiPitches.length;U++)x["event"+E].midiPitches.push(S.abcelem.midiPitches[U])}if(S.abcelem.midiGraceNotePitches&&S.abcelem.midiGraceNotePitches.length){x["event"+E].midiGraceNotePitches||(x["event"+E].midiGraceNotePitches=[]);for(var V=0;V<S.abcelem.midiGraceNotePitches.length;V++)x["event"+E].midiGraceNotePitches.push(S.abcelem.midiGraceNotePitches[V])}}F&&(x["event"+E].measureStart=!0,F=!1),W&&(R=E)}}return{isTiedState:R,duration:L/M,nextIsBar:F||S.type==="bar"}},this.makeVoicesArray=function(){for(var x=[],S=[],E={},B=0;B<this.engraver.staffgroups.length;B++){var $=this.engraver.staffgroups[B];if($&&$.staffs&&$.staffs.length>0){var P=$.staffs[0],k=P.absoluteY,M=k-P.top*spacing$d.STEP,R=$.staffs[$.staffs.length-1];k=R.absoluteY;for(var F=k-R.bottom*spacing$d.STEP,L=F-M,z=$.voices,U=0;U<z.length;U++)if(!(z[U].staff&&z[U].staff.isTabStaff)){var W=!1;x[U]||(x[U]=[]),S[U]===void 0&&(S[U]=0);for(var V=z[U].children,Q=0;Q<V.length;Q++)V[Q].type==="tempo"&&(E[S[U]]=this.getBpm(V[Q].abcelem)),x[U].push({top:M,height:L,line:$.line,measureNumber:S[U],elem:V[Q]}),V[Q].type==="bar"&&W&&S[U]++,(V[Q].type==="note"||V[Q].type==="rest")&&(W=!0)}}}return this.tempoLocations=E,x},this.setupEvents=function(x,S,E,B){B||(B=1);for(var $=[],P={},k=x,M,R=!0,F=this.makeVoicesArray(),L=0,z=0;z<F.length;z++){var U=k,W=Math.round(U*1e3),V=0,Q=-1,K=F[z],G=E;S=this.getBeatLength()*G/60;for(var X=-1,J=0;J<K.length;J++){var re=K[J].measureNumber;X!==re&&this.tempoLocations[re]&&(G=this.tempoLocations[re],S=B*this.getBeatLength()*G/60,X=re);var fe=K[J].elem,Z=this.addElementToEvents(P,fe,W,K[J].top,K[J].height,K[J].line,K[J].measureNumber,S,M,R);M=Z.isTiedState,R=Z.nextIsBar,U+=Z.duration;var ie;if(fe.duration>0&&P["event"+W]&&(ie="event"+W),W=Math.round(U*1e3),fe.type==="bar"){var ce=fe.abcelem.type,me=ce==="bar_right_repeat"||ce==="bar_dbl_repeat",ne=fe.abcelem.startEnding==="1",te=ce==="bar_left_repeat"||ce==="bar_dbl_repeat"||ce==="bar_right_repeat";if(me){J>0&&(P[ie].endX=fe.x),Q===-1&&(Q=J);var ue=0;X=-1;for(var ae=V;ae<Q;ae++){re=K[ae].measureNumber,X!==re&&this.tempoLocations[re]&&(G=this.tempoLocations[re],S=B*this.getBeatLength()*G/60,X=re);var ye=K[ae].elem;Z=this.addElementToEvents(P,ye,W,K[ae].top,K[ae].height,K[ae].line,K[ae].measureNumber,S,M,R),M=Z.isTiedState,R=Z.nextIsBar,U+=Z.duration,ue=W,W=Math.round(U*1e3)}P["event"+ue]&&(P["event"+ue].endX=K[Q].elem.x),R=!0,Q=-1}ne&&(Q=J),te&&(V=J)}}L=Math.max(L,W)}return $=A(P),b($),C(this.lines,$),$.push({type:"end",milliseconds:L}),this.addUsefulCallbackInfo($,G*B),$},this.addUsefulCallbackInfo=function(x,S){for(var E=this.millisecondsPerMeasure(S),B=0;B<x.length;B++){var $=x[B];$.millisecondsPerMeasure=E}};function w(x,S){for(;S<x.length&&x[S].left===null;)S++;return x[S]}function C(x,S){if(!(S.length<1)){for(var E=0;E<S.length-1;E++){var B=S[E],$=w(S,E+1);if(B.left!==null){var P=$&&B.top===$.top?$.left:x[B.line].staffGroup.w;B.endX!==void 0?P>B.left&&(B.endX=Math.min(B.endX,P)):B.endX=P}}var k=S[S.length-1];k.endX=x[k.line].staffGroup.w}}this.getBpm=function(x){var S;if(x){S=x.bpm;var E=this.getBeatLength(),B=x.duration&&x.duration.length>0?x.duration[0]:E;S=S*B/E}if(!S){S=180;var $=this.getMeterFraction();$&&$.num!==3&&$.num%3===0&&(S=120)}return S},this.setTiming=function(x,S){if(S=S||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var E=this.metaText?this.metaText.tempo:null,B=this.getBpm(E),$=1;x?E&&($=x/B):x=B;var P=this.getBeatLength(),k=x/60,M=this.getBarLength(),R=M/P*S/k;R&&(R-=this.getPickupLength()/P/k);var F=P*k;return this.noteTimings=this.setupEvents(R,F,x,$),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*k):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(x){x||(x={});var S=sequence$1(this,x);return flatten(S,x,this.formatting.percmap,this.formatting.midi)},this.deline=function(x){return delineTune(this.lines,x)}},abc_tune=Tune$1,parseKeyVoice=abc_parse_key_voice,parseCommon$5=abc_common,TuneBuilder$1=function(d){var g=this;this.setVisualTranspose=function(w){w&&(d.visualTranspose=w)},this.resolveOverlays=function(){for(var w=!1,C=[],x=0;x<d.lines.length;x++){var S=d.lines[x];if(S.staff)for(var E=0;E<S.staff.length;E++){for(var B=S.staff[E],$=[],P=0;P<B.voices.length;P++){var k=B.voices[P];$.push({hasOverlay:!1,voice:[],snip:[]}),C[x]=0;for(var M=0,R=!1,F=-1,L=0;L<k.length;L++){var z=k[L];if(z.el_type==="overlay"&&!R){w=!0,R=!0,F=L,$[P].hasOverlay=!0;for(var U=0;U<x;U++)C[U]&&d.lines[U].staff&&B.voices.length>=d.lines[U].staff[0].voices.length&&d.lines[U].staff[0].voices.push([{el_type:"note",duration:C[U],rest:{type:"invisible"},startChar:z.startChar,endChar:z.endChar}])}else z.el_type==="bar"?(R?(R=!1,$[P].snip.push({start:F,len:L-F}),$[P].voice.push(z)):(M>0&&$[P].voice.push({el_type:"note",duration:M,rest:{type:"invisible"},startChar:z.startChar,endChar:z.endChar}),$[P].voice.push(z)),M=0):z.el_type==="note"?R?$[P].voice.push(z):(M+=z.duration,C[x]+=z.duration):(z.el_type==="scale"||z.el_type==="stem"||z.el_type==="overlay"||z.el_type==="style"||z.el_type==="transpose"||z.el_type==="color")&&$[P].voice.push(z)}$[P].hasOverlay&&$[P].snip.length===0&&$[P].snip.push({start:F,len:k.length-F})}for(P=0;P<$.length;P++){var W=$[P];if(W.hasOverlay){W.voice.splice(0,0,{el_type:"stem",direction:"down"}),B.voices.push(W.voice);for(var V=W.snip.length-1;V>=0;V--){var Q=W.snip[V];B.voices[P].splice(Q.start,Q.len),B.voices[P].splice(Q.start+1,0,{el_type:"stem",direction:"auto"});var K=b(B.voices[P],Q.start);B.voices[P].splice(K,0,{el_type:"stem",direction:"up"})}for(V=0;V<B.voices[B.voices.length-1].length;V++){B.voices[B.voices.length-1][V]=parseCommon$5.clone(B.voices[B.voices.length-1][V]);var G=B.voices[B.voices.length-1][V];G.el_type==="bar"&&G.startEnding&&delete G.startEnding,G.el_type==="bar"&&G.endEnding&&delete G.endEnding}}}}}return w};function b(w,C){for(var x=C-1;x>0&&w[x].el_type!=="bar";x--);return x}function A(w){for(var C=!0,x=0;x<w.length;x++){var S=w[x];if(S.staff){for(var E=0;E<S.staff.length;E++){var B=S.staff[E];if(B.title){for(var $=!1,P=0;P<B.title.length;P++)B.title[P]?(B.title[P]=C?B.title[P].name:B.title[P].subname,B.title[P]?$=!0:B.title[P]=""):B.title[P]="";$||delete B.title}}C=!1}}}this.cleanUp=function(w,C,x){this.closeLine(),delete d.runningFonts,d.metaText.tempo&&d.metaText.tempo.bpm&&!d.metaText.tempo.duration&&(d.metaText.tempo.duration=[d.getBeatLength()]);var S=!1,E,B,$;for(E=0;E<d.lines.length;E++)if(d.lines[E].staff!==void 0){var P=!1;for(B=0;B<d.lines[E].staff.length;B++)if(d.lines[E].staff[B]===void 0)S=!0,d.lines[E].staff[B]=null;else for($=0;$<d.lines[E].staff[B].voices.length;$++)d.lines[E].staff[B].voices[$]===void 0?d.lines[E].staff[B].voices[$]=[]:this.containsNotes(d.lines[E].staff[B].voices[$])&&(P=!0);P||(d.lines[E]=null,S=!0)}if(S&&(d.lines=d.lines.filter(function(Q){return!!Q}),d.lines.forEach(function(Q){Q.staff&&(Q.staff=Q.staff.filter(function(K){return!!K}))})),w)for(;F(d.lines,w););if(C){for(S=!1,E=0;E<d.lines.length;E++)if(d.lines[E].staff!==void 0)for(B=0;B<d.lines[E].staff.length;B++){var k=!1;for($=0;$<d.lines[E].staff[B].voices.length;$++)this.containsNotesStrict(d.lines[E].staff[B].voices[$])&&(k=!0);k||(S=!0,d.lines[E].staff[B]=null)}S&&d.lines.forEach(function(Q){Q.staff&&(Q.staff=Q.staff.filter(function(K){return!!K}))})}for(A(d.lines),E=0;E<d.lines.length;E++)if(d.lines[E].staff)for(B=0;B<d.lines[E].staff.length;B++)delete d.lines[E].staff[B].workingClef;for(;this.resolveOverlays(););function M(Q,K,G){x[K]||(x[K]=[]),x[K][G]||(x[K][G]=[]);for(var X,J=function(Oe,Ye,et){if(x[K][G][et]===void 0){for(X=0;X<x[K][G].length;X++)if(x[K][G][X]!==void 0){et=X;break}if(x[K][G][et]===void 0){var ht=et*100+1;Oe.endSlur.forEach(function(Re){ht===Re&&--ht}),x[K][G][et]=[ht]}}for(var Te,Le=0;Le<Ye;Le++)Te=x[K][G][et].pop(),Oe.endSlur.push(Te);return x[K][G][et].length===0&&delete x[K][G][et],Te},re=function(Oe,Ye,et,ht){Oe.startSlur=[],x[K][G][et]===void 0&&(x[K][G][et]=[]);for(var Te=et*100+1,Le=0;Le<Ye;Le++)ht&&(ht.forEach(function(Re){Te===Re&&++Te}),ht.forEach(function(Re){Te===Re&&++Te}),ht.forEach(function(Re){Te===Re&&++Te})),x[K][G][et].forEach(function(Re){Te===Re&&++Te}),x[K][G][et].forEach(function(Re){Te===Re&&++Te}),x[K][G][et].push(Te),Oe.startSlur.push({label:Te}),Oe.dottedSlur&&(Oe.startSlur[Oe.startSlur.length-1].style="dotted",delete Oe.dottedSlur),Te++},fe=0;fe<Q.length;fe++){var Z=Q[fe];if(Z.el_type==="note"){if(Z.gracenotes)for(var ie=0;ie<Z.gracenotes.length;ie++){if(Z.gracenotes[ie].endSlur){var ce=Z.gracenotes[ie].endSlur;Z.gracenotes[ie].endSlur=[];for(var me=0;me<ce;me++)J(Z.gracenotes[ie],1,20)}Z.gracenotes[ie].startSlur&&(X=Z.gracenotes[ie].startSlur,re(Z.gracenotes[ie],X,20))}if(Z.endSlur&&(X=Z.endSlur,Z.endSlur=[],J(Z,X,0)),Z.startSlur&&(X=Z.startSlur,re(Z,X,0)),Z.pitches){for(var ne=[],te=0;te<Z.pitches.length;te++)if(Z.pitches[te].endSlur){var ue=Z.pitches[te].endSlur;Z.pitches[te].endSlur=[];for(var ae=0;ae<ue;ae++){var ye=J(Z.pitches[te],1,te+1);ne.push(ye)}}for(te=0;te<Z.pitches.length;te++)Z.pitches[te].startSlur&&(X=Z.pitches[te].startSlur,re(Z.pitches[te],X,te+1,ne));Z.gracenotes&&Z.pitches[0].endSlur&&Z.pitches[0].endSlur[0]===100&&Z.pitches[0].startSlur&&(Z.gracenotes[0].endSlur?Z.gracenotes[0].endSlur.push(Z.pitches[0].startSlur[0].label):Z.gracenotes[0].endSlur=[Z.pitches[0].startSlur[0].label],Z.pitches[0].endSlur.length===1?delete Z.pitches[0].endSlur:Z.pitches[0].endSlur[0]===100?Z.pitches[0].endSlur.shift():Z.pitches[0].endSlur[Z.pitches[0].endSlur.length-1]===100&&Z.pitches[0].endSlur.pop(),x[K][G][1].length===1?delete x[K][G][1]:x[K][G][1].pop())}}}}function R(Q){parseKeyVoice.fixClef(Q)}function F(Q,K){for(E=0;E<Q.length;E++)if(Q[E].staff!==void 0)for(B=0;B<Q[E].staff.length;B++){var G=[];for($=0;$<Q[E].staff[B].voices.length;$++)for(var X=Q[E].staff[B].voices[$],J=0,re=0;re<X.length;re++)if(X[re].el_type==="bar"){if(J++,J>=K&&re<X.length-1){var fe=L(Q,E);if(!fe){var Z=JSON.parse(JSON.stringify(Q[E]));Q.push(parseCommon$5.clone(Z)),fe=Q[Q.length-1];for(var ie=0;ie<fe.staff.length;ie++)for(var ce=0;ce<fe.staff[ie].voices.length;ce++)fe.staff[ie].voices[ce]=[]}var me=re+1,ne=Q[E].staff[B].voices[$].slice(me);return Q[E].staff[B].voices[$]=Q[E].staff[B].voices[$].slice(0,me),fe.staff[B].voices[$]=G.concat(ne.concat(fe.staff[B].voices[$])),!0}}else X[re].duration||G.push(X[re])}return!1}function L(Q,K){for(K++;Q.length>K;){if(Q[K].staff)return Q[K];K++}return null}for(d.lineNum=0;d.lineNum<d.lines.length;d.lineNum++){var z=d.lines[d.lineNum].staff;if(z)for(d.staffNum=0;d.staffNum<z.length;d.staffNum++)for(z[d.staffNum].clef&&R(z[d.staffNum].clef),d.voiceNum=0;d.voiceNum<z[d.staffNum].voices.length;d.voiceNum++){var U=z[d.staffNum].voices[d.voiceNum];M(U,d.staffNum,d.voiceNum);for(var W=0;W<U.length;W++)U[W].el_type==="clef"&&R(U[W]);if(U.length>0&&U[U.length-1].barNumber){var V=L(d.lines,d.lineNum);V&&(V.staff[0].barNumber=U[U.length-1].barNumber),delete U[U.length-1].barNumber}}}return delete d.staffNum,delete d.voiceNum,delete d.lineNum,delete d.potentialStartBeam,delete d.potentialEndBeam,delete d.vskipPending,x},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 w=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum].length-1;w>=0;w--){var C=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum][w];if(C.el_type==="note")return C}return null},this.addTieToLastNote=function(w){var C=this.getLastNote();return C&&C.pitches&&C.pitches.length>0?(C.pitches[0].startTie={},w&&(C.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(w){return w.duration?w.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(w,C,x,S){var E=d,B=function(M){var R=E.lines[E.lineNum].staff[E.staffNum];if(R){if(M.pitches!==void 0){var F=R.workingClef.verticalPos;M.pitches.forEach(function(z){z.verticalPos=z.pitch-F})}if(M.gracenotes!==void 0){var L=R.workingClef.verticalPos;M.gracenotes.forEach(function(z){z.verticalPos=z.pitch-L})}R.voices[E.voiceNum].push(M)}};S.el_type=w,C!==null&&(S.startChar=C),x!==null&&(S.endChar=x);var $=function(){E.potentialStartBeam.startBeam=!0,S.endBeam=!0,delete E.potentialStartBeam,delete E.potentialEndBeam},P=function(){E.potentialStartBeam!==void 0&&E.potentialEndBeam!==void 0&&(E.potentialStartBeam.startBeam=!0,E.potentialEndBeam.endBeam=!0),delete E.potentialStartBeam,delete E.potentialEndBeam};if(w==="note"){var k=g.getDuration(S);k>=.25||S.force_end_beam_last&&E.potentialStartBeam!==void 0?P():S.end_beam&&E.potentialStartBeam!==void 0?S.rest===void 0?$():P():S.rest===void 0&&(E.potentialStartBeam===void 0?S.end_beam||(E.potentialStartBeam=S,delete E.potentialEndBeam):E.potentialEndBeam=S)}else P();delete S.end_beam,delete S.force_end_beam_last,B(S)},this.appendStartingElement=function(w,C,x,S){this.closeLine();var E;w==="key"&&(E=S.impliedNaturals,delete S.impliedNaturals,delete S.explicitAccidentals);var B=parseCommon$5.clone(S);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=[[]]),w==="clef"&&(d.lines[d.lineNum].staff[d.staffNum].workingClef=B);for(var $=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum],P=0;P<$.length;P++){if($[P].el_type==="note"||$[P].el_type==="bar"){B.el_type=w,B.startChar=C,B.endChar=x,E&&(B.accidentals=E.concat(B.accidentals)),$.push(B);return}if($[P].el_type===w){B.el_type=w,B.startChar=C,B.endChar=x,E&&(B.accidentals=E.concat(B.accidentals)),$[P]=B;return}}d.lines[d.lineNum].staff[d.staffNum][w]=S}},this.pushLine=function(w){d.vskipPending&&(w.vskip=d.vskipPending,delete d.vskipPending),d.lines.push(w)},this.addSubtitle=function(w,C){this.pushLine({subtitle:{text:w,startChar:C.startChar,endChar:C.endChar}})},this.addSpacing=function(w){d.vskipPending=w},this.addNewPage=function(w){this.pushLine({newpage:w})},this.addSeparator=function(w,C,x,S){this.pushLine({separator:{spaceAbove:Math.round(w),spaceBelow:Math.round(C),lineLength:Math.round(x),startChar:S.startChar,endChar:S.endChar}})},this.addText=function(w,C){this.pushLine({text:{text:w,startChar:C.startChar,endChar:C.endChar}})},this.addCentered=function(w){this.pushLine({text:[{text:w,center:!0}]})},this.containsNotes=function(w){for(var C=0;C<w.length;C++)if(w[C].el_type==="note"||w[C].el_type==="bar")return!0;return!1},this.containsNotesStrict=function(w){for(var C=0;C<w.length;C++)if(w[C].el_type==="note"&&(w[C].rest===void 0||w[C].chord!==void 0))return!0;return!1},this.changeVoiceScale=function(w){g.appendElement("scale",null,null,{size:w})},this.changeVoiceColor=function(w){g.appendElement("color",null,null,{color:w})},this.startNewLine=function(w){var C=d;this.closeLine();var x=function(B){var $=C.lines[C.lineNum].staff[C.staffNum];if($.voices[C.voiceNum]=[],$.title||($.title=[]),$.title[C.voiceNum]={name:B.name,subname:B.subname},B.style&&g.appendElement("style",null,null,{head:B.style}),B.stem)g.appendElement("stem",null,null,{direction:B.stem});else if(C.voiceNum>0){if($.voices[0]!==void 0){for(var P=!1,k=0;k<$.voices[0].length;k++)$.voices[0].el_type==="stem"&&(P=!0);if(!P){var M={el_type:"stem",direction:"up"};$.voices[0].splice(0,0,M)}}g.appendElement("stem",null,null,{direction:"down"})}B.scale&&g.appendElement("scale",null,null,{size:B.scale}),B.color&&g.appendElement("color",null,null,{color:B.color})},S=function(B){B.key&&B.key.impliedNaturals&&(B.key.accidentals=B.key.accidentals.concat(B.key.impliedNaturals),delete B.key.impliedNaturals),C.lines[C.lineNum].staff[C.staffNum]={voices:[],clef:B.clef,key:B.key,workingClef:B.clef},B.stafflines!==void 0&&(C.lines[C.lineNum].staff[C.staffNum].clef.stafflines=B.stafflines,C.lines[C.lineNum].staff[C.staffNum].workingClef.stafflines=B.stafflines),B.staffscale&&(C.lines[C.lineNum].staff[C.staffNum].staffscale=B.staffscale),B.annotationfont&&g.setLineFont("annotationfont",B.annotationfont),B.gchordfont&&g.setLineFont("gchordfont",B.gchordfont),B.tripletfont&&g.setLineFont("tripletfont",B.tripletfont),B.vocalfont&&g.setLineFont("vocalfont",B.vocalfont),B.bracket&&(C.lines[C.lineNum].staff[C.staffNum].bracket=B.bracket),B.brace&&(C.lines[C.lineNum].staff[C.staffNum].brace=B.brace),B.connectBarLines&&(C.lines[C.lineNum].staff[C.staffNum].connectBarLines=B.connectBarLines),B.barNumber&&(C.lines[C.lineNum].staff[C.staffNum].barNumber=B.barNumber),x(B),B.part&&g.appendElement("part",B.part.startChar,B.part.endChar,{title:B.part.title}),B.meter!==void 0&&(C.lines[C.lineNum].staff[C.staffNum].meter=B.meter),C.vskipPending&&(C.lines[C.lineNum].vskip=C.vskipPending,delete C.vskipPending)},E=function(B){C.lines[C.lineNum]={staff:[]},S(B)};d.lines[d.lineNum]===void 0?E(w):d.lines[d.lineNum].staff===void 0?(d.lineNum++,this.startNewLine(w)):d.lines[d.lineNum].staff[d.staffNum]===void 0?S(w):d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum]===void 0?x(w):this.containsNotes(d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum])?(d.lineNum++,this.startNewLine(w)):w.part&&g.appendElement("part",w.part.startChar,w.part.endChar,{title:w.part.title})},this.setRunningFont=function(w,C){d.runningFonts[w]=C},this.setLineFont=function(w,C){if(d.runningFonts[w]){for(var x=!1,S=Object.keys(C),E=0;E<S.length;E++)d.runningFonts[w][S[E]]!==C[S[E]]&&(x=!0);x&&(d.lines[d.lineNum].staff[d.staffNum][w]=C)}d.runningFonts[w]=C},this.setBarNumberImmediate=function(w){var C=this.getCurrentVoice();if(C&&C.length>0){var x=C[C.length-1];if(x.el_type==="bar")x.barNumber!==void 0&&(x.barNumber=w);else return w-1}return w},this.hasBeginMusic=function(){for(var w=0;w<d.lines.length;w++)if(d.lines[w].staff)return!0;return!1},this.isFirstLine=function(w){for(var C=w-1;C>=0;C--)if(d.lines[C].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var w=d.lines[d.lineNum];if(!w)return null;var C=w.staff[d.staffNum];return C&&C.voices[d.voiceNum]!==void 0?C.voices[d.voiceNum]:null},this.setCurrentVoice=function(w,C){d.staffNum=w,d.voiceNum=C;for(var x=0;x<d.lines.length;x++)if(d.lines[x].staff&&(d.lines[x].staff[w]===void 0||d.lines[x].staff[w].voices[C]===void 0||!this.containsNotes(d.lines[x].staff[w].voices[C]))){d.lineNum=x;return}d.lineNum=x},this.addMetaText=function(w,C,x){d.metaText[w]===void 0?(d.metaText[w]=C,d.metaTextInfo[w]=x):(d.metaText[w]+=`
  2335. `+C,d.metaTextInfo[w].endChar=x.endChar)},this.addMetaTextArray=function(w,C,x){d.metaText[w]===void 0?(d.metaText[w]=[C],d.metaTextInfo[w]=x):(d.metaText[w].push(C),d.metaTextInfo[w].endChar=x.endChar)},this.addMetaTextObj=function(w,C,x){d.metaText[w]=C,d.metaTextInfo[w]=x}},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,g=new TuneBuilder(d),b,A="",w="";this.getTune=function(){var V={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&&(V.lineBreaks=d.lineBreaks),d.visualTranspose&&(V.visualTranspose=d.visualTranspose),V};function C(V,Q,K){V.positioning||(V.positioning={}),V.positioning[Q]=K}function x(V,Q,K){V.fonts||(V.fonts={}),V.fonts[Q]=K}var S={reset:function(){for(var V in this)this.hasOwnProperty(V)&&typeof this[V]!="function"&&delete this[V];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(V,Q){return this[V].decoration!==Q[V].decoration||this[V].face!==Q[V].face||this[V].size!==Q[V].size||this[V].style!==Q[V].style||this[V].weight!==Q[V].weight},addFormattingOptions:function(V,Q,K){K==="note"?(this.vocalPosition!=="auto"&&C(V,"vocalPosition",this.vocalPosition),this.dynamicPosition!=="auto"&&C(V,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&C(V,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&C(V,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&C(V,"volumePosition",this.volumePosition),this.differentFont("annotationfont",Q)&&x(V,"annotationfont",this.annotationfont),this.differentFont("gchordfont",Q)&&x(V,"gchordfont",this.gchordfont),this.differentFont("vocalfont",Q)&&x(V,"vocalfont",this.vocalfont),this.differentFont("tripletfont",Q)&&x(V,"tripletfont",this.tripletfont)):K==="bar"&&(this.dynamicPosition!=="auto"&&C(V,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&C(V,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&C(V,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&C(V,"volumePosition",this.volumePosition),this.differentFont("measurefont",Q)&&x(V,"measurefont",this.measurefont),this.differentFont("repeatfont",Q)&&x(V,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var V=0;V<this.inTie.length;V++)if(this.endingHoldOver.inTie.push([]),this.inTie[V])for(var Q=0;Q<this.inTie[V].length;Q++)this.endingHoldOver.inTie[V].push(this.inTie[V][Q]);for(var K in this.inTieChord)this.inTieChord.hasOwnProperty(K)&&(this.endingHoldOver.inTieChord[K]=this.inTieChord[K])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var V=0;V<this.endingHoldOver.inTie.length;V++){this.inTie.push([]);for(var Q=0;Q<this.endingHoldOver.inTie[V].length;Q++)this.inTie[V].push(this.endingHoldOver.inTie[V][Q])}for(var K in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(K)&&(this.inTieChord[K]=this.endingHoldOver.inTieChord[K])}}},E=function(V){S.warnings||(S.warnings=[]),S.warnings.push(V)},B=function(V){S.warningObjects||(S.warningObjects=[]),S.warningObjects.push(V)},$=function(V){var Q=V.replace(/\x12/g," ");return Q=Q.replace(/&/g,"&amp;"),Q=Q.replace(/</g,"&lt;"),Q.replace(/>/g,"&gt;")},P=function(V,Q,K){Q||(Q=" ");var G=Q[K];(G===" "||!G)&&(G="SPACE");var X=$(Q.substring(K-64,K))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+G+"</span>"+$(Q.substring(K+1).substring(0,64));E("Music Line:"+b.lineIndex+":"+(K+1)+": "+V+": "+X),B({message:V,line:Q,startChar:S.iChar+K,column:K})},k,M;this.getWarnings=function(){return S.warnings},this.getWarningObjects=function(){return S.warningObjects};var R=function(V,Q){if(Q.indexOf("")>=0){A+=Q;return}if(Q=A+Q,A="",!V){P("Can't add words before the first line of music",V,0);return}Q=parseCommon$4.strip(Q),Q[Q.length-1]!=="-"&&(Q=Q+" ");for(var K=[],G=0,X=!1,J=function(ie){var ce=parseCommon$4.strip(Q.substring(G,ie));if(ce=ce.replace(/\\([-_*|~])/g,"$1"),G=ie+1,ce.length>0){X&&(ce=ce.replace(/~/g," "));var me=Q[ie];return me!=="_"&&me!=="-"&&(me=" "),K.push({syllable:b.translateString(ce),divider:me}),X=!1,!0}return!1},re=!1,fe=0;fe<Q.length;fe++){switch(Q[fe]){case" ":case"":J(fe);break;case"-":!re&&!J(fe)&&K.length>0&&(parseCommon$4.last(K).divider="-",K.push({skip:!0,to:"next"}));break;case"_":re||(J(fe),K.push({skip:!0,to:"slur"}));break;case"*":re||(J(fe),K.push({skip:!0,to:"next"}));break;case"|":re||(J(fe),K.push({skip:!0,to:"bar"}));break;case"~":re||(X=!0);break}re=Q[fe]==="\\"}var Z=!1;V.forEach(function(ie){if(K.length!==0){if(K[0].skip){switch(K[0].to){case"next":ie.el_type==="note"&&ie.pitches!==null&&!Z&&K.shift();break;case"slur":ie.el_type==="note"&&ie.pitches!==null&&K.shift();break;case"bar":ie.el_type==="bar"&&K.shift();break}ie.el_type!=="bar"&&(ie.lyric===void 0?ie.lyric=[{syllable:"",divider:" "}]:ie.lyric.push({syllable:"",divider:" "}))}else if(ie.el_type==="note"&&ie.rest===void 0&&!Z){var ce=K.shift();ce.syllable&&(ce.syllable=ce.syllable.replace(/ +/g," ")),ie.lyric===void 0?ie.lyric=[ce]:ie.lyric.push(ce)}}})},F=function(V,Q){if(Q.indexOf("")>=0){w+=Q;return}if(Q=w+Q,w="",!V){P("Can't add symbols before the first line of music",V,0);return}Q=parseCommon$4.strip(Q),Q[Q.length-1]!=="-"&&(Q=Q+" ");for(var K=[],G=0,X=!1,J=function(Z){var ie=parseCommon$4.strip(Q.substring(G,Z));if(G=Z+1,ie.length>0){X&&(ie=ie.replace(/~/g," "));var ce=Q[Z];return ce!=="_"&&ce!=="-"&&(ce=" "),K.push({syllable:b.translateString(ie),divider:ce}),X=!1,!0}return!1},re=0;re<Q.length;re++)switch(Q[re]){case" ":case"":J(re);break;case"-":!J(re)&&K.length>0&&(parseCommon$4.last(K).divider="-",K.push({skip:!0,to:"next"}));break;case"_":J(re),K.push({skip:!0,to:"slur"});break;case"*":J(re),K.push({skip:!0,to:"next"});break;case"|":J(re),K.push({skip:!0,to:"bar"});break;case"~":X=!0;break}var fe=!1;V.forEach(function(Z){if(K.length!==0){if(K[0].skip)switch(K[0].to){case"next":Z.el_type==="note"&&Z.pitches!==null&&!fe&&K.shift();break;case"slur":Z.el_type==="note"&&Z.pitches!==null&&K.shift();break;case"bar":Z.el_type==="bar"&&K.shift();break}else if(Z.el_type==="note"&&Z.rest===void 0&&!fe){var ie=K.shift();Z.lyric===void 0?Z.lyric=[ie]:Z.lyric.push(ie)}}})},L=function(V){if(parseCommon$4.startsWith(V,"%%")){var Q=parseDirective.addDirective(V.substring(2));Q&&P(Q,V,2);return}var K=V.indexOf("%");if(K>=0&&(V=V.substring(0,K)),V=V.replace(/\s+$/,""),V.length!==0){if(A){R(g.getCurrentVoice(),V.substring(2));return}if(w){F(g.getCurrentVoice(),V.substring(2));return}if(V.length<2||V[1]!==":"||M.lineContinuation){M.parseMusic(V);return}var G=k.parseHeader(V);G.regular&&M.parseMusic(V),G.newline&&M.startNewLine(),G.words&&R(g.getCurrentVoice(),V.substring(2)),G.symbols&&F(g.getCurrentVoice(),V.substring(2))}};function z(V,Q){V.push({el_type:"hint"});for(var K=0;K<Q.length;K++){var G=Q[K],X=parseCommon$4.clone(G);if(V.push(X),G.el_type==="bar")return}}function U(V,Q){for(var K=0;K<V.length;K++){var G=V[K],X=Q[K];if(X)for(var J=0;J<X.voices.length;J++){var re=X.voices[J],fe=G.voices[J];fe&&z(fe,re)}}}function W(){for(var V=0;V<d.lines.length;V++){var Q=d.lines[V].staff;if(Q){for(var K=V+1;K<d.lines.length&&d.lines[K].staff===void 0;)K++;if(K<d.lines.length){var G=d.lines[K].staff;U(Q,G)}}}}this.parse=function(V,Q,K){Q||(Q={}),K||(K=0),d.reset(),V=V.replace(/\r\n?/g,`
  2336. `)+`
  2337. `;var G=V.split(`
  2338. \\`);if(G.length>1){for(var X=1;X<G.length;X++)for(;G[X].length>0&&G[X][0]!==`
  2339. `;)G[X]=G[X].substr(1),G[X-1]+=" ";V=G.join(" ")}V=V.replace(/\\([ \t]*)(%.*)*\n/g,function(me,ne,te){var ue=te?Array(te.length+1).join(" "):"";return ne+""+ue+`
  2340. `});var J=V.split(`
  2341. `);parseCommon$4.last(J).length===0&&J.pop(),b=new Tokenizer(J,S),k=new ParseHeader(b,P,S,d,g),M=new ParseMusic(b,P,S,d,g,k),Q.print&&(d.media="print"),S.reset(),S.iChar=K,Q.visualTranspose?(S.globalTranspose=parseInt(Q.visualTranspose),S.globalTranspose===0?S.globalTranspose=void 0:g.setVisualTranspose(Q.visualTranspose)):S.globalTranspose=void 0,Q.lineBreaks&&(S.lineBreaks=Q.lineBreaks),k.reset(b,P,S,d);try{Q.format&&parseDirective.globalFormatting(Q.format);for(var re=b.nextLine();re;){if(Q.header_only&&S.is_in_header===!1||Q.stop_on_warning&&S.warnings)throw"normal_abort";var fe=S.is_in_header;L(re),fe&&!S.is_in_header&&(g.setRunningFont("annotationfont",S.annotationfont),g.setRunningFont("gchordfont",S.gchordfont),g.setRunningFont("tripletfont",S.tripletfont),g.setRunningFont("vocalfont",S.vocalfont)),re=b.nextLine()}A&&R(g.getCurrentVoice(),""),w&&F(g.getCurrentVoice(),""),S.openSlurs=g.cleanUp(S.barsperstaff,S.staffnonote,S.openSlurs)}catch(me){if(me!=="normal_abort")throw me}var Z=11*72,ie=8.5*72;switch(S.papersize){case"legal":Z=14*72,ie=8.5*72;break;case"A4":Z=11.7*72,ie=8.3*72;break}if(S.landscape){var ce=Z;Z=ie,ie=ce}d.formatting.pagewidth||(d.formatting.pagewidth=ie),d.formatting.pageheight||(d.formatting.pageheight=Z),Q.hint_measures&&W(),wrap$2.wrapLines(d,S.lineBreaks,S.barNumbers)}},abc_parse=Parse$2,parseCommon$3=abc_common,bookParser$1=function(d){var g="",b=d.match(/(\s*)/);d=parseCommon$3.strip(d);for(var A=d.split(`
  2342. X:`),w=1;w<A.length;w++)A[w]="X:"+A[w];var C=b?b[0].length:0,x=[];if(A.forEach(function($){x.push({abc:$,startPos:C}),C+=$.length+1}),x.length>1&&!parseCommon$3.startsWith(x[0].abc,"X:")){var S=x.shift(),E=S.abc.split(`
  2343. `);E.forEach(function($){parseCommon$3.startsWith($,"%%")&&(g+=$+`
  2344. `)})}var B=g;return x.forEach(function($){var P=$.abc.indexOf(`
  2345. `);P>0&&($.abc=$.abc.substring(0,P)),$.pure=$.abc,$.abc=g+$.abc,$.title="";var k=$.pure.split("T:");k.length>1&&(k=k[1].split(`
  2346. `),$.title=parseCommon$3.strip(k[0]));var M=$.pure.substring(2,$.pure.indexOf(`
  2347. `));$.id=parseCommon$3.strip(M)}),{header:B,tunes:x}},abc_parse_book=bookParser$1;function StringTablature$2(d,g){this.numLines=d,this.lineSpace=g,this.verticalSize=this.numLines*this.lineSpace;var b=3;this.bar={pitch:b,pitch2:g*d,height:5}}StringTablature$2.prototype.bypass=function(d){var g=d.staffGroup.voices;return!!(g.length>0&&g[0].isPercussion)};StringTablature$2.prototype.setRelative=function(d,g,b){switch(d.type){case"bar":g.pitch=this.bar.pitch,g.pitch2=this.bar.pitch2,g.height=this.height;break;case"symbol":var A=this.bar.pitch2/2;if(d.name=="dots.dot")return b?(g.pitch=A,!1):(g.pitch=A+this.lineSpace,!0);break}return b};var stringTablature=StringTablature$2;function TabCommon$2(d,g,b){this.tune=d,this.params=b,this.tuneNumber=g,this.inError=!1}TabCommon$2.prototype.setError=function(d){var g=this.tune;d&&(this.error=d,this.inError=!0,g.warnings?g.warnings.push(d):g.warnings=[d])};var tabCommon=TabCommon$2,VoiceElement$3=function d(g,b){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=g,this.voicetotal=b,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 g=!0,b=0;g&&b<this.children.length;b++)this.children[b].type.indexOf("staff-extra")<0&&this.children[b].type!=="tempo"&&(g=!1);g||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=d,this.setRange(d)};VoiceElement$3.prototype.setLimit=function(d,g){var b=g.specialY;b||(b=g),b[d]&&(this.specialY[d]?this.specialY[d]=Math.max(this.specialY[d],b[d]):this.specialY[d]=b[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,g,b,A){if(d)for(var w=0;w<d.length;w++){var C=d[w],x=C.getAttribute("highlight");x||(x="fill"),C.setAttribute(x,A);var S=C.getAttribute("class");S||(S=""),S=S.replace(b,""),S=S.replace(g,""),g.length>0&&(S.length>0&&S[S.length-1]!==" "&&(S+=" "),S+=g),C.setAttribute("class",S)}},setClass_1=setClass$3,setClass$2=setClass_1,highlight$2=function(d,g){d===void 0&&(d="abcjs-note_selected"),g===void 0&&(g="#ff0000"),setClass$2(this.elemset,d,"",g)},highlight_1=highlight$2,setClass$1=setClass_1,unhighlight$2=function(d,g){d===void 0&&(d="abcjs-note_selected"),g===void 0&&(g="#000000"),setClass$1(this.elemset,"",d,g)},unhighlight_1=unhighlight$2,highlight$1=highlight_1,unhighlight$1=unhighlight_1,AbsoluteElement$6=function d(g,b,A,w,C,x){x||(x={}),this.tuneNumber=C,this.abcelem=g,this.duration=b,this.durationClass=x.durationClassOveride?x.durationClassOveride:this.duration,this.minspacing=A||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=w,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 g=d.w/2;-g<this.extraw&&(this.extraw=-g),this.extra[this.extra.length]=d,d.dx+g>this.w&&(this.w=d.dx+g),this.right[this.right.length]=d,this._addChild(d)};AbsoluteElement$6.prototype.setLimit=function(d,g){g[d]&&(this.specialY[d]?this.specialY[d]=Math.max(this.specialY[d],g[d]):this.specialY[d]=g[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 g=0;g<this.children.length;g++)this.children[g].setX(d)};AbsoluteElement$6.prototype.center=function(d,g){var b=(g.x-d.x)/2+d.x;this.x=b-this.w/2;for(var A=0;A<this.children.length;A++)this.children[A].setX(this.x)};AbsoluteElement$6.prototype.setHint=function(){this.hint=!0};AbsoluteElement$6.prototype.highlight=function(d,g){highlight$1.bind(this)(d,g)};AbsoluteElement$6.prototype.unhighlight=function(d,g){unhighlight$1.bind(this)(d,g)};var absoluteElement=AbsoluteElement$6,RelativeElement$a=function d(g,b,A,w,C){switch(C=C||{},this.x=0,this.c=g,this.dx=b,this.w=A,this.pitch=w,this.scalex=C.scalex||1,this.scaley=C.scaley||1,this.type=C.type||"symbol",this.pitch2=C.pitch2,this.linewidth=C.linewidth,this.klass=C.klass,this.anchor=C.anchor?C.anchor:"middle",this.top=w,this.pitch2!==void 0&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=w,this.pitch2!==void 0&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),C.thickness&&(this.top+=C.thickness/2,this.bottom-=C.thickness/2),C.stemHeight&&(C.stemHeight>0?this.top+=C.stemHeight:this.bottom+=C.stemHeight),C.dim&&(this.dim=C.dim),C.position&&(this.position=C.position),this.height=C.height?C.height:4,C.top&&(this.top=C.top),C.bottom&&(this.bottom=C.bottom),C.name?this.name=C.name:this.c?this.name=this.c:this.name=this.type,C.realWidth?this.realWidth=C.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":C.position&&C.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":C.position&&C.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?C.position&&C.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,g=this.type==="chord"?this.realWidth/2:0,b=this.x-g-d,A=b+this.realWidth+d;return{left:b,right:A}};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,g){for(var b in g)g.hasOwnProperty(b)&&(Array.isArray(g[b])||isObject(g[b])||(d[b]=g[b]))}function cloneAbsolute(d){var g=new AbsoluteElement$5("",0,0,"",0);return cloneObject(g,d),g.top=0,g.bottom=-1,d.abcelem&&(g.abcelem={},cloneObject(g.abcelem,d.abcelem),g.abcelem.el_type==="note"&&(g.abcelem.el_type="tabNumber")),d.cloned=g,g}function cloneAbsoluteAndRelatives(d,g){var b=cloneAbsolute(d);if(g)for(var A=d.children,w=!0,C=0;C<A.length;C++){var x=A[C],S=new RelativeElement$9("",0,0,0,"");cloneObject(S,x),w=g.tablature.setRelative(x,S,w),b.children.push(S)}return b}function buildTabAbsolute(d,g,b){var A="tab.tiny",w=7.5;d.isTabBig&&(A="tab.big",w=10);var C={el_type:"tab",icon:A,Ypos:w},x=new AbsoluteElement$5(C,0,0,"symbol",0);x.x=g;var S=new RelativeElement$9(A,0,0,7.5,"tab");return S.x=b,x.children.push(S),x.abcelem.el_type=="tab"&&(S.pitch=w),x}function lyricsDim(d){if(d.extra)for(var g=0;g<d.extra.length;g++){var b=d.extra[g];if(b.type=="lyric")return{bottom:b.bottom,height:b.height}}return null}function TabAbsoluteElements$1(){this.accidentals=null}function getInitialStaffSize(d){for(var g=0,b=0;b<d.length;b++)d[b].tabNameInfos||g++;return g}function buildRelativeTabNote(d,g,b,A,w){var C=A.num;A.note.quarter!=null&&(C=C.toString(),C+=A.note.quarter);var x=d.semantics.stringToPitch(A.str);b.notes.push({num:C,str:A.str,pitch:A.note.emit()});var S={type:"tabNumber"},E=new RelativeElement$9(C,0,0,x+.3,S);return E.x=g,E.isGrace=w,E.isAltered=A.note.isAltered,E}function getXGrace(d,g){var b=0;if(d.extra){for(var A=0;A<d.extra.length;A++)if(d.extra[A].c.indexOf("noteheads")>=0){if(b===g)return d.extra[A].x+d.extra[A].w/2;b++}}return-1}function graceInRest(d){if(d.abcelem){var g=d.abcelem;if(g.rest)return g.gracenotes}return null}function convertToNumber(d,g,b){var A=d.semantics.notesToNumber(g,b);if(A.error)return d._super.setError(A.error),A;if(A.graces&&A.notes){var w=A.notes.length-1;A.notes[w].graces=A.graces}return A}function buildGraceRelativesForRest(d,g,b,A,w){for(var C=0;C<A.length;C++){var x={el_type:"note",startChar:b.abcelem.startChar,endChar:b.abcelem.endChar,notes:[],grace:!0},S=getXGrace(b,C),E=A[C],B=buildRelativeTabNote(d,S,x,E,!0);g.children.push(B),w.push(x)}}TabAbsoluteElements$1.prototype.build=function(d,g,b,A,w,C){var x=getInitialStaffSize(g),S=g[w+A],E=g[x+w+A],B=null,$=null;S.children[0].abcelem.el_type!="clef"&&C!="none"&&S.children.splice(0,0,C);for(var P=0;P<S.children.length;P++){var k=S.children[P],M=k.x,R=M;switch(k.isClef&&(E.children.push(buildTabAbsolute(d,M,R)),k.abcelem.type.indexOf("-8")>=0&&(d.semantics.strings.clefTranspose=-12),k.abcelem.type.indexOf("+8")>=0&&(d.semantics.strings.clefTranspose=12)),k.type){case"staff-extra key-signature":this.accidentals=k.abcelem.accidentals,d.semantics.strings.accidentals=this.accidentals;break;case"bar":d.semantics.strings.measureAccidentals={};var F=!1;P===S.children.length-1&&(F=!0);var L=cloneAbsoluteAndRelatives(k,d);if(L.abcelem.barNumber){delete L.abcelem.barNumber;for(var z=0;z<L.children.length;z++)if(L.children[z].type==="barNumber"){L.children.splice(z,1);break}}L.abcelem.lastBar=F,E.children.push(L),b.push({el_type:k.abcelem.el_type,type:k.abcelem.type,endChar:k.abcelem.endChar,startChar:k.abcelem.startChar,abselem:L});break;case"rest":var U=graceInRest(k);if(U){if(B=convertToNumber(d,null,U),B.error)return;re={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[],grace:!0},buildGraceRelativesForRest(d,W,k,B.graces,b)}break;case"note":var W=cloneAbsolute(k);W.x=k.heads[0].x+k.heads[0].w/2,W.lyricDim=lyricsDim(k);var V=k.abcelem.pitches,Q=k.abcelem.gracenotes;if(W.type="tabNumber",B=convertToNumber(d,V,Q),B.error)return;if(B.graces){var K=B.notes.length-1;B.notes[K].graces=B.graces}$={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[]};for(var G=0;G<B.notes.length;G++){var X=B.notes[G];if(X.graces)for(var J=0;J<X.graces.length;J++){var re={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[],grace:!0},fe=getXGrace(k,J),Z=X.graces[J],ie=buildRelativeTabNote(d,fe,re,Z,!0);W.children.push(ie),b.push(re)}var ce=buildRelativeTabNote(d,W.x+k.heads[G].dx,$,X,!1);W.children.push(ce)}$.notes.length>0&&($.abselem=W,b.push($),E.children.push(W));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 g=0,b=0;b<d.children.length;b++){var A=d.children[b];A.specialY&&A.specialY.lyricHeightBelow>g&&(g=A.specialY.lyricHeightBelow)}return g}function buildTabName(d,g){var b=d.plugin.semantics.strings,A=d.renderer.controller,w=A.getTextSize,C=b.tabInfos(d.plugin),x=w.calc(C,"tablabelfont","text instrumentname");return g.tabNameInfos={textSize:x,name:C},x.height}function TabRenderer$2(d,g,b,A){this.renderer=g,this.plugin=d,this.line=b,this.absolutes=new TabAbsoluteElements,this.staffIndex=A,this.tabStaff={clef:{type:"TAB"}},this.tabSize=d.linePitch*d.nbLines}function islastTabInStaff(d,g){return g[d].isTabStaff?d===g.length-1?!0:!g[d+1].isTabStaff:!1}function getStaffNumbers(d){for(var g=0,b=0;b<d.length;b++)d[b].isTabStaff||g++;return g}function getParentStaffIndex(d,g){for(var b=g;b>=0;b--)if(!d[b].isTabStaff)return b;return-1}function linkStaffAndTabs(d){for(var g=0;g<d.length;g++)if(d[g].isTabStaff){var b=getParentStaffIndex(d,g);d[g].hasStaff=d[b],d[b].hasTab||(d[b].hasTab=[]),d[b].hasTab.push(d[g])}}function isMultiVoiceSingleStaff(d,g){return getStaffNumbers(d)===1&&g.voices.length>1}function getNextTabPos(d,g){for(var b=d.staffIndex,A=0,w=0,C=!0,x=0;C;){if(!g[A])return-1;if(g[A].isTabStaff||(x=g[A].voices.length),g[A].isTabStaff){if(w++,islastTabInStaff(A,g)&&w<x)return A+1}else if(w=0,A>=b&&(A+1==g.length||!g[A+1].isTabStaff))return A+1;if(A++,A>g.length)return-1}}function getLastStaff(d,g){for(var b=g;b>=0;b--)if(!d[b].isTabStaff)return d[b];return null}function checkVoiceKeySig(d,g){var b=d[g],A=b.children[0].abcelem;return A.el_type==="clef"?null:g==0?"none":d[g-1].children[0]}TabRenderer$2.prototype.doLayout=function(){var d=this.line.staff;if(d){var g=d[0];if(g&&g.clef&&g.clef.stafflines==0){this.plugin._super.setError("No tablatures when stafflines=0");return}d.splice(d.length,0,this.tabStaff)}var b=this.line.staffGroup,A=b.voices,w=A[0],C=getLyricHeight(w),x=3,S=this.staffIndex,E=b.staffs[S],B=this.tabSize+x-E.bottom-C;E.isTabStaff&&(B=E.top);var $={bottom:-1,isTabStaff:!0,specialY:initSpecialY(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:B},P=getNextTabPos(this,b.staffs);if(P!==-1){$.parentIndex=P-1,b.staffs.splice(P,0,$),b.height+=this.tabSize+x;var k=getLastStaff(b.staffs,P),M=1;isMultiVoiceSingleStaff(b.staffs,k)&&(M=k.voices.length),this.tabStaff.voices=[];for(var R=0;R<M;R++){var F=new VoiceElement$2(0,0);R>0&&(F.duplicate=!0);var L=buildTabName(this,F)/spacing$c.STEP;L=Math.max(L,1),b.staffs[this.staffIndex].top+=L,b.height+=L*spacing$c.STEP,F.staff=$,A.splice(A.length,0,F);var z=checkVoiceKeySig(A,R+this.staffIndex);this.tabStaff.voices[R]=[],this.absolutes.build(this.plugin,A,this.tabStaff.voices[R],R,this.staffIndex,z)}linkStaffAndTabs(b.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 g=d.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(g&&g.length===5){var b=accidentals[g[1]],A=notesInOrder.indexOf(g[2]),w=g[4].length-g[3].length;return 48+A+b+w*12}return 0}function midiToNote$1(d){d=parseInt(d,10);var g=Math.floor(d/12),b=d%12,A=notesInOrder[b];if(A==="-"&&(A="^"+notesInOrder[b-1]),g>4)for(A=A.toLowerCase(),g-=5;g>0;)A+="'",g--;else for(;g<4;)A+=",",g++;return A}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,g){var b=noteToMidi$1(d);g&&(b+=g);var A=midiToNote(b),w=!1,C=!1,x=!1,S=null,E=null,B=!1,$=0;d.startsWith("_")?(w=!0,$=-1,d[1]=="/"?(w=!1,E="v",$=0):d[1]=="_"&&(B=!0,$-=1)):d.startsWith("^")?(C=!0,$=1,d[1]=="/"?(C=!1,E="^",$=0):d[1]=="^"&&(B=!0,$+=1)):d.startsWith("=")&&(S=!0,$=0),x=w||C||E!=null,(x||S)&&(E!=null||B?A=d.slice(2):A=d.slice(1));var P=(A.match(/,/g)||[]).length,k=(A.match(/'/g)||[]).length;this.pitch=b,this.pitchAltered=0,this.name=A,this.acc=$,this.isSharp=C,this.isKeySharp=!1,this.isDouble=B,this.isAltered=x,this.isFlat=w,this.isKeyFlat=!1,this.natural=S,this.quarter=E,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=P,this.isQuoted=k}function cloneNote(d){var g=d.name,b=new TabNote$2(g);return b.pitch=d.pitch,b.hasComma=d.hasComma,b.isLower=d.isLower,b.isQuoted=d.isQuoted,b.isSharp=d.isSharp,b.isKeySharp=d.isKeySharp,b.isFlat=d.isFlat,b.isKeyFlat=d.isKeyFlat,b}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,g){if(!(this.isAltered||this.natural)){if(g[this.name.toUpperCase()])switch(g[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 b=this.name,A=0;A<d.length;A++){var w=d[A];b==w.note.toUpperCase()&&(w.acc=="flat"&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),w.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 g=0;g<this.isQuoted;g++)d+="'";for(var b=0;b<this.hasComma;b++)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 g=1;g<=this.hasComma;g++)d+=",";if(this.isLower){d=d.toLowerCase();for(var b=1;b<=this.isQuoted;b++)d+="'"}return d};var tabNote={TabNote:TabNote$2,notes:notes$1},TabNote$1=tabNote,notes=TabNote$1.notes;function TabNotes$1(d,g){this.fromN=new TabNote$1.TabNote(d),this.toN=new TabNote$1.TabNote(g)}TabNotes$1.prototype.build=function(){var d=this.fromN,g=this.toN;if(g.isLowerThan(d)){var b=d.emit(),A=g.emit();return{error:"Invalid string Instrument tuning : "+A+" string lower than "+b+" string"}}var w=[],C=notes.indexOf(d.name),x=notes.indexOf(g.name);if(C==-1||x==-1)return w;for(var S=!1;!S;)w.push(d.emit()),d=d.nextNote(),d.sameNoteAs(g)&&(S=!0);return w};var tabNotes=TabNotes$1;const{noteToMidi}=noteToMidi_1;var TabNote=tabNote,TabNotes=tabNotes;function buildCapo(d){var g=null,b=d.tuning;if(d.capo>0){g=[];for(var A=0;A<b.length;A++){for(var w=new TabNote.TabNote(b[A]),C=0;C<d.capo;C++)w=w.nextNote();g[A]=w.emit()}}return g}function buildPatterns(d){var g=[],b=d.tuning;d.capo>0&&(b=d.capoTuning);for(var A=b.length-1,w=0;w<b.length;w++){var C=d.highestNote;w!=b.length-1&&(C=b[w+1]);var x=new TabNotes(b[w],C),S=x.build();if(S.error)return S;g[A--]=S}return g}function buildSecond(d){var g=[];g[0]=[];for(var b=d.strings,A=1;A<b.length;A++)g[A]=b[A-1];return g}function sameString(d,g){for(var b=0;b<g.length-1;b++){var A=g[b],w=g[b+1];if(A.str==w.str){if(A.str==d.strings.length-1){A.num="?",w.num="?";return}w.num<A.num?(w.str++,w=noteToNumber(d,w.note,w.str,d.secondPos,d.strings[w.str].length)):(A.str++,A=noteToNumber(d,A.note,A.str,d.secondPos,d.strings[A.str].length)),g[b]=A,g[b+1]=w}}return null}function handleChordNotes(d,g){for(var b=[],A=0;A<g.length;A++)if(!g[A].endTie){var w=new TabNote.TabNote(g[A].name,d.clefTranspose);w.checkKeyAccidentals(d.accidentals,d.measureAccidentals);var C=toNumber$1(d,w);b.push(C)}return sameString(d,b),b}function noteToNumber(d,g,b,A,w){var C=d.strings;g.checkKeyAccidentals(d.accidentals,d.measureAccidentals),A&&(C=A);var x=g.emitNoAccidentals(),S=C[b].indexOf(x),E=g.acc;if(S!=-1){if(A&&(S+=w),(g.isFlat||g.acc==-1)&&S==0){var B=g.getAccidentalEquiv();b++,S=C[b].indexOf(B.emit()),E=0}return{num:S+E,str:b,note:g}}return null}function toNumber$1(d,g){if(g.isAltered||g.natural){var b;g.isFlat?g.isDouble?b="__":b="_":g.isSharp?g.isDouble?b="^^":b="^":g.natural&&(b="="),d.measureAccidentals[g.name.toUpperCase()]=b}for(var A=d.stringPitches.length-1;A>=0;A--)if(g.pitch+g.pitchAltered>=d.stringPitches[A]){var w=g.pitch+g.pitchAltered-d.stringPitches[A];return g.quarter==="^"?w-=.5:g.quarter==="v"&&(w+=.5),{num:Math.round(w),str:d.stringPitches.length-1-A,note:g}}return{num:"?",str:d.stringPitches.length-1,note:g}}StringPatterns$2.prototype.stringToPitch=function(d){var g=5.3,b=this.strings.length-1;return g+(b-d)*this.linePitch};function invalidNumber(d,g){var b={num:"?",str:0,note:g};d.push(b),d.error=g.emit()+": unexpected note for instrument"}StringPatterns$2.prototype.notesToNumber=function(d,g){var b,A,w=null,C=null;if(d&&(C=[],d.length>1?(C=handleChordNotes(this,d),C.error&&(w=C.error)):d[0].endTie||(b=new TabNote.TabNote(d[0].name,this.clefTranspose),b.checkKeyAccidentals(this.accidentals,this.measureAccidentals),A=toNumber$1(this,b),A?C.push(A):(invalidNumber(C,b),w=C.error))),w)return C;var x=null;if(g){x=[];for(var S=0;S<g.length;S++)b=new TabNote.TabNote(g[S].name,this.clefTranspose),b.checkKeyAccidentals(this.accidentals,this.measureAccidentals),A=toNumber$1(this,b),A?x.push(A):(invalidNumber(x,b),w=C.error)}return{notes:C,graces:x,error:w}};StringPatterns$2.prototype.toString=function(){for(var d=[],g=0;g<this.tuning.length;g++){var b=this.tuning[g].replaceAll(",","").replaceAll("'","").toUpperCase();b[0]==="_"?b=b[1]+"b ":b[0]==="^"&&(b=b[1]+"# "),d.push(b)}return d.join("")};StringPatterns$2.prototype.tabInfos=function(d){var g=d._super,b=g.params.label;if(b){var A=b.indexOf("%T"),w="";return A!=-1&&(w=this.toString(),d.capo>0&&(w+=" capo:"+d.capo),b=b.replace("%T",w)),b}return""};function StringPatterns$2(d){var g=d.tuning,b=d.capo,A=d._super.params.highestNote;this.linePitch=d.linePitch,this.highestNote="a'",A&&(this.highestNote=A),this.measureAccidentals={},this.capo=0,b&&(this.capo=parseInt(b,10)),this.transpose=d.transpose?d.transpose:0,this.tuning=g,this.stringPitches=[];for(var w=0;w<this.tuning.length;w++){var C=noteToMidi(this.tuning[w])+this.capo;this.stringPitches.push(C)}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,g){var b=this.strings;return b.notesToNumber(d,g)};ViolinPatterns$1.prototype.stringToPitch=function(d){var g=this.strings;return g.stringToPitch(d)};var violinPatterns=ViolinPatterns$1,StringTablature$1=stringTablature,TabCommon$1=tabCommon,TabRenderer$1=tabRenderer,ViolinPatterns=violinPatterns;Plugin$1.prototype.init=function(d,g,b){var A=new TabCommon$1(d,g,b);this.abcTune=d,this._super=A,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=b.capo,this.transpose=b.visualTranspose,this.tablature=new StringTablature$1(this.nbLines,this.linePitch);var w=new ViolinPatterns(this);this.semantics=w};Plugin$1.prototype.render=function(d,g,b){if(!this._super.inError&&!this.tablature.bypass(g)){var A=new TabRenderer$1(this,d,g,b);A.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,g){var b=this.strings;return b.notesToNumber(d,g)};GuitarPatterns$1.prototype.stringToPitch=function(d){var g=this.strings;return g.stringToPitch(d)};var guitarPatterns=GuitarPatterns$1,StringTablature=stringTablature,TabCommon=tabCommon,TabRenderer=tabRenderer,GuitarPatterns=guitarPatterns;Plugin.prototype.init=function(d,g,b){var A=new TabCommon(d,g,b);this._super=A,this.abcTune=d,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=b.capo,this.transpose=b.visualTranspose,this.tablature=new StringTablature(this.nbLines,this.linePitch);var w=new GuitarPatterns(this);this.semantics=w};Plugin.prototype.render=function(d,g,b){if(!this._super.inError&&!this.tablature.bypass(g)){var A=new TabRenderer(this,d,g,b);A.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 g=d.name,b=d.tablature;this.plugins[g]=b},setError:function(d,g){d.warnings?d.warning.push(g):d.warnings=[g]},preparePlugins:function(d,g,b){var A=null;if(b.tablature){var w=b.tablature;A=[];for(var C=0;C<w.length;C++){var x=w[C],S=x.instrument;if(S==null)return this.setError(d,"tablature 'instrument' is missing"),A;var E=pluginTab[S],B=null;if(E&&(B=this.plugins[E]),B){b.visualTranspose!=0&&(x.visualTranspose=b.visualTranspose),x.abcSrc=b.tablature.abcSrc;var $={classz:B,tuneNumber:g,params:x,instance:null};A.push($)}else return this.setError(d,"Undefined tablature plugin: "+S),A}}return A},layoutTablatures:function(d,g){for(var b=g.tablatures,A=0;A<g.lines.length;A++){var w=g.lines[A],C=w.staff;if(C){for(var x=0;x<C.length;x++)if(b[x]){var S=b[x];S.instance==null&&(S.instance=new S.classz,S.instance.init(g,S.tuneNumber,S.params,x)),S.instance.render(d,w,x)}}}},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(g){var b=g.split(`
  2348. X:`),A=b.length;return A===0&&(A=1),A};var d=tunebook$2.TuneBook=function(g){var b=bookParser(g);this.header=b.header,this.tunes=b.tunes};d.prototype.getTuneById=function(g){for(var b=0;b<this.tunes.length;b++)if(this.tunes[b].id===""+g)return this.tunes[b];return null},d.prototype.getTuneByTitle=function(g){for(var b=0;b<this.tunes.length;b++)if(this.tunes[b].title===g)return this.tunes[b];return null},tunebook$2.parseOnly=function(g,b){for(var A=tunebook$2.numberOfTunes(g),w=[],C=0;C<A;C++)w.push(1);function x(){}return tunebook$2.renderEngine(x,w,g,b)},tunebook$2.renderEngine=function(g,b,A,w){var C=[],x=function(F){return F&&!F.propertyIsEnumerable("length")&&typeof F=="object"&&typeof F.length=="number"};if(!(b===void 0||A===void 0)){x(b)||(b=[b]),w===void 0&&(w={});for(var S=w.startingTune?parseInt(w.startingTune,10):0,E=new d(A),B=new Parse$1,$=0;$<b.length;$++){var P=b[$];if(P==="*"||typeof P=="string"&&(P=document.getElementById(P)),P)if(S>=0&&S<E.tunes.length){B.parse(E.tunes[S].abc,w,E.tunes[S].startPos-E.header.length);var k=B.getTune();w.tablature&&(tablatures$1.init(),k.tablatures=tablatures$1.preparePlugins(k,S,w));var M=B.getWarnings();M&&(k.warnings=M);var R=g(P,k,$,E.tunes[S].abc);C.push(R||k)}else P.innerHTML&&(P.innerHTML="");S++}return C}},tunebook$2.extractMeasures=function(g){for(var b=[],A=new d(g),w=0;w<A.tunes.length;w++){for(var C=A.tunes[w],x=C.abc.split("K:"),S=x[1].split(`
  2349. `),E=x[0]+"K:"+S[0]+`
  2350. `,B=null,$=null,P=null,k=[],M=!1,R=tunebook$2.parseOnly(C.abc)[0],F=R.getPickupLength()>0,L=0;L<R.lines.length;L++){var z=R.lines[L];if(z.staff)for(var U=0;U<1;U++)for(var W=z.staff[U],V=0;V<1;V++)for(var Q=W.voices[V],K=0;K<Q.length;K++){var G=Q[K];if(P===null&&G.startChar>=0&&(P=G.startChar,G.chord===void 0?$=B:$=null),G.chord&&(B=G),G.el_type==="bar"){if(M){var X=C.abc.substring(P,G.endChar),J={abc:X};B=$&&$.chord&&$.chord.length>0?$.chord[0].name:null,B&&(J.lastChord=B),G.startEnding&&(J.startEnding=G.startEnding),G.endEnding&&(J.endEnding=G.endEnding),k.push(J),P=null,M=!1}}else G.el_type==="note"&&(M=!0)}}b.push({header:E,measures:k,hasPickup:F})}return b}})();var abc_tunebook=tunebook$2,keyAccidentals=keyAccidentals_1,{relativeMajor,transposeKey,relativeMode}=relativeMajor_1,transposeChordName=transposeChord,strTranspose$1;(function(){strTranspose$1=function(W,V,Q){if(V==="TEST")return{keyAccidentals,relativeMajor,transposeKey,relativeMode,transposeChordName};Q=parseInt(Q,10);var K=[],G;for(G=0;G<V.length;G++)K=K.concat(d(W,V[G],Q));K=K.sort(function(re,fe){return fe.start-re.start});var X=W.split("");for(G=0;G<K.length;G++){var J=K[G];X.splice(J.start,J.end-J.start,J.note)}return X.join("")};function d(W,V,Q){var K=[],G=V.getKeySignature();if(G.root==="Hp"||G.root==="HP")return K;K=K.concat(g(W,Q));for(var X=0;X<V.lines.length;X++){var J=V.lines[X].staff;if(J)for(var re=0;re<J.length;re++){var fe=J[re];fe.clef.type!=="perc"&&(K=K.concat(b(W,fe.voices,fe.key,Q)))}}return K}function g(W,V){for(var Q=[],K=W.split("K:"),G=K[0].length,X=1;X<K.length;X++){var J=K[X],re=J.match(/^( *)([A-G])([#b]?)(\w*)/);if(re){var fe=G+2+re[1].length,Z=re[2]+re[3]+re[4],ie=E({root:re[2],acc:re[3],mode:re[4]},V),ce=ie.root+ie.acc+ie.mode;Q.push({start:fe,end:fe+Z.length,note:ce})}G+=J.length+2}return Q}function b(W,V,Q,K){for(var G=[],X=E(Q,K),J=0;J<V.length;J++)G=G.concat(C(W,V[J],Q.root,A(Q),X,K));return G}function A(W){for(var V={},Q=0;Q<W.accidentals.length;Q++){var K=W.accidentals[Q];K.acc==="flat"?V[K.note.toUpperCase()]="_":K.acc==="sharp"&&(V[K.note.toUpperCase()]="^")}return V}function w(W,V,Q){var K=x.indexOf(W.root)-x.indexOf(V);return V==="none"&&(K=x.indexOf(W.root)),K===0?Q>2?K+=7:Q===-12&&(K-=7):Q>0&&K<0?K+=7:Q<0&&K>0&&(K-=7),Q>12?K+=7:Q<-12&&(K-=7),K}function C(W,V,Q,K,G,X){for(var J=[],re=w(G,Q,X),fe={},Z={},ie=0;ie<V.length;ie++){var ce=V[ie];if(ce.chord)for(var me=0;me<ce.chord.length;me++){var ne=ce.chord[me];if(ne.position==="default"){var te=G.accidentals.length&&G.accidentals[0].acc==="flat",ue=transposeChordName(ne.name,X,te,!0);ue=ue.replace(/♭/g,"b").replace(/♯/g,"#"),ue!==ne.name&&J.push(z(W,ce.startChar,ce.endChar,ue))}}if(ce.el_type==="note"&&ce.pitches){for(var ae=0;ae<ce.pitches.length;ae++){var ye=R(ce.pitches[ae].name,Q,K,fe);ye.acc&&(fe[ye.name.toUpperCase()]=ye.acc);var Oe=B(ye,G,re,Z);Oe.acc&&(Z[Oe.upper]=Oe.acc),J.push(F(W,ce.startChar,ce.endChar,Oe.acc+Oe.name,ae))}if(ce.gracenotes)for(var Ye=0;Ye<ce.gracenotes.length;Ye++){var et=R(ce.gracenotes[Ye].name,Q,K,fe);et.acc&&(fe[et.name.toUpperCase()]=et.acc);var ht=B(et,G,re,fe);ht.acc&&(Z[ht.upper]=ht.acc),J.push(L(W,ce.startChar,ce.endChar,ht.acc+ht.name,Ye))}}else ce.el_type==="bar"?(fe={},Z={}):ce.el_type==="keySignature"&&(Q=ce.root,K=A(ce),G=E(ce,X),re=w(G,Q,X))}return J}var x="CDEFGAB",S=[",,,,",",,,",",,",",","","'","''","'''","''''"];function E(W,V){if(W.root==="none")return{root:transposeKey("C",V),mode:"",acc:"",accidentals:[]};var Q=relativeMajor(W.root+W.acc+W.mode),K=transposeKey(Q,V),G=relativeMode(K,W.mode),X=keyAccidentals(K);return{root:G[0],mode:W.mode,acc:G.length>1?G[1]:"",accidentals:X}}function B(W,V,Q,K){for(var G=W.pitch,X=x.indexOf(W.name),J=x.indexOf(V.root),re=(J+G)%7,fe=X+Q,Z=W.oct;fe>6;)Z++,fe-=7;for(;fe<0;)Z--,fe+=7;for(var ie=x[re],ce="",me=W.adj,ne="=",te=0;te<V.accidentals.length;te++)if(V.accidentals[te].note.toLowerCase()===ie.toLowerCase()){me=me+(V.accidentals[te].acc==="flat"?-1:1),ne=V.accidentals[te].acc==="flat"?"_":"^";break}switch(me){case-2:ce="__";break;case-1:ce="_";break;case 0:ce="=";break;case 1:ce="^";break;case 2:ce="^^";break;case-3:var ue={};return ue.pitch=W.pitch-1,ue.oct=W.oct,ue.name=x[x.indexOf(W.name)-1],ue.name||(ue.name="B",ue.oct--),ue.name==="B"||ue.name==="E"?ue.adj=W.adj+1:ue.adj=W.adj+2,B(ue,V,Q+1,K);case 3:var ue={};return ue.pitch=W.pitch+1,ue.oct=W.oct,ue.name=x[x.indexOf(W.name)+1],ue.name||(ue.name="C",ue.oct++),ue.name==="C"||ue.name==="F"?ue.adj=W.adj-1:ue.adj=W.adj-2,B(ue,V,Q+1,K)}switch((K[ie]===ce||!K[ie]&&ce===ne)&&!W.courtesy&&(ce=""),Z){case 0:ie=ie+",,,";break;case 1:ie=ie+",,";break;case 2:ie=ie+",";break;case 4:ie=ie.toLowerCase();break;case 5:ie=ie.toLowerCase()+"'";break;case 6:ie=ie.toLowerCase()+"''";break;case 7:ie=ie.toLowerCase()+"'''";break;case 8:ie=ie.toLowerCase()+"''''";break}return Z>4&&(ie=ie.toLowerCase()),{acc:ce,name:ie,upper:ie.toUpperCase()}}var $=/([_^=]*)([A-Ga-g])([,']*)/,P=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,k=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,M=/(\s*)$/;function R(W,V,Q,K){var G=V==="none"?0:x.indexOf(V),X=W.match($),J=X[2].toUpperCase(),re=x.indexOf(J)-G;re<0&&(re+=7);var fe=S.indexOf(X[3]);J===X[2]&&fe--;var Z=K[J]||Q[J]||"=";return{acc:X[1],name:J,pitch:re,oct:fe,adj:U(X[1],Q[J],K[J]),courtesy:X[1]===Z}}function F(W,V,Q,K,G){var X=W.substring(V,Q),J=X.match(new RegExp(P.source+M.source),"");if(J){var re=J[1].length,fe=J[2].length+J[3].length+J[4].length,Z=Q-V-re-fe;V+=Z,Q-=fe}else{var ie=/([^\[]*)/,ce=/\[/,me=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(J=X.match(new RegExp(ie.source+ce.source+k.source+k.source+k.source+k.source+k.source+k.source+k.source+k.source+me.source+M.source)),J){for(var ne=1+J[1].length,te=0;te<G;te++)J[te*3+2]&&(ne+=J[te*3+2].length),J[te*3+3]&&(ne+=J[te*3+3].length),J[te*3+4]&&(ne+=J[te*3+4].length);V+=ne;var ue=J[G*3+2]?J[G*3+2].length:0;Q=V+ue}}return{start:V,end:Q,note:K}}function L(W,V,Q,K,G){var X=W.substring(V,Q),J=/\{/,re=/\}/,fe=/([^\{]*)/,Z=/(\/*)/,ie=X.match(new RegExp(fe.source+J.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+Z.source+k.source+re.source));if(ie){for(var ce=1+ie[1].length,me=0;me<G;me++)ie[me*3+2]&&(ce+=ie[me*3+2].length),ie[me*3+3]&&(ce+=ie[me*3+3].length),ie[me*3+4]&&(ce+=ie[me*3+4].length),ie[me*3+5]&&(ce+=ie[me*3+5].length);ie[G*3+2]&&(ce+=ie[me*3+2].length),V+=ce;var ne=ie[G*3+3]?ie[G*3+3].length:0;ne+=ie[G*3+4]?ie[G*3+4].length:0,ne+=ie[G*3+5]?ie[G*3+5].length:0,Q=V+ne}return{start:V,end:Q,note:K}}function z(W,V,Q,K){var G=W.substring(V,Q).match(/([^"]+)?(".+")+/);return G[1]&&(V+=G[1].length),Q=V+G[2].length,{start:V+1,end:Q-1,note:K}}function U(W,V,Q){if(!W&&Q&&(W=Q),!W)return 0;switch(V){case void 0:switch(W){case"__":return-2;case"_":return-1;case"=":return 0;case"^":return 1;case"^^":return 2;default:return 0}case"_":switch(W){case"__":return-1;case"_":return 0;case"=":return 1;case"^":return 2;case"^^":return 3;default:return 0}case"^":switch(W){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(g,b,A,w){this.type="BeamElem",this.isflat=!!A,this.isgrace=!!(b&&b==="grace"),this.forceup=!!(this.isgrace||b&&b==="up"),this.forcedown=!!(b&&b==="down"),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=g,this.beams=[],w&&w.duration?(this.duration=w.duration,w.startTriplet&&(this.duration*=w.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 g=d.averagepitch;g!==void 0&&(this.total=Math.round(this.total+g),this.count||(this.count=0),this.count++)};BeamElem$1.prototype.add=function(d){var g=d.abcelem.averagepitch;g!==void 0&&(d.abcelem.rest||(this.allrests=!1),d.beam=this,this.elems.push(d),this.total=Math.round(this.total+g),(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 g=this.stemsUp?"up":"down",b=0;b<this.elems.length;b++)for(var A=0;A<this.elems[b].heads.length;A++)this.elems[b].heads[A].stemDir=g};function calcAverage(d,g){return g?d/g:0}var beamElement=BeamElem$1,BraceElem$1=function d(g,b){this.startVoice=g,this.type=b};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 g=[],b=0,A=d.length;b<A;b++){g[b]=[];for(var w=0,C=d[b].length;w<C;w++)g[b][w]=d[b][w]}return g},pathScale=function(d,g,b){for(var A=0,w=d.length;A<w;A++){var C=d[A],x,S;for(x=1,S=C.length;x<S;x++)C[x]*=x%2?g:b}},Glyphs={printSymbol:function(d,g,b,A,w){if(!glyphs$8[b])return null;var C=pathClone(glyphs$8[b].d);C[0][1]+=d,C[0][2]+=g;for(var x="",S=0;S<C.length;S++)x+=C[S].join(" ");return w.path=x,A.path(w)},getPathForSymbol:function(d,g,b,A,w){if(A=A||1,w=w||1,!glyphs$8[b])return null;var C=pathClone(glyphs$8[b].d);return(A!==1||w!==1)&&pathScale(C,A,w),C[0][1]+=d,C[0][2]+=g,C},getSymbolWidth:function(d){return glyphs$8[d]?glyphs$8[d].w:0},symbolHeightInPitches:function(d){var g=glyphs$8[d]?glyphs$8[d].h:0;return g/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,g){glyphs$8[d]=g}},glyphs_1=Glyphs,AbsoluteElement$4=absoluteElement,glyphs$7=glyphs_1,RelativeElement$8=relativeElement,createClef$1=function(d,g){var b,A=0;d.el_type="clef";var w=new AbsoluteElement$4(d,0,10,"staff-extra clef",g);switch(w.isClef=!0,d.type){case"treble":b="clefs.G";break;case"tenor":b="clefs.C";break;case"alto":b="clefs.C";break;case"bass":b="clefs.F";break;case"treble+8":b="clefs.G",A=1;break;case"tenor+8":b="clefs.C",A=1;break;case"bass+8":b="clefs.F",A=1;break;case"alto+8":b="clefs.C",A=1;break;case"treble-8":b="clefs.G",A=-1;break;case"tenor-8":b="clefs.C",A=-1;break;case"bass-8":b="clefs.F",A=-1;break;case"alto-8":b="clefs.C",A=-1;break;case"none":return null;case"perc":b="clefs.perc";break;default:w.addFixed(new RelativeElement$8("clef="+d.type,0,0,void 0,{type:"debug"}))}var C=5;if(b){var x=glyphs$7.symbolHeightInPitches(b),S=clefOffsets(b);if(w.addRight(new RelativeElement$8(b,C,glyphs$7.getSymbolWidth(b),d.clefPos,{top:x+d.clefPos+S,bottom:d.clefPos+S})),A!==0){var E=.6666666666666666,B=(glyphs$7.getSymbolWidth(b)-glyphs$7.getSymbolWidth("8")*E)/2,$=A>0?w.top+3:w.bottom-1,P=A>0?w.top+3:w.bottom-3,k=P-2;d.type==="bass-8"&&($=3,B=0),w.addRight(new RelativeElement$8("8",C+B,glyphs$7.getSymbolWidth("8")*E,$,{scalex:E,scaley:E,top:P,bottom:k}))}}return w};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,g){if(d.el_type="keySignature",!d.accidentals||d.accidentals.length===0)return null;var b=new AbsoluteElement$3(d,0,10,"staff-extra key-signature",g);b.isKeySig=!0;var A=0;return d.accidentals.forEach(function(w){var C,x=0;switch(w.acc){case"sharp":C="accidentals.sharp",x=-3;break;case"natural":C="accidentals.nat";break;case"flat":C="accidentals.flat",x=-1.2;break;case"quartersharp":C="accidentals.halfsharp",x=-2.5;break;case"quarterflat":C="accidentals.halfflat",x=-1.2;break;default:C="accidentals.flat"}b.addRight(new RelativeElement$7(C,A,glyphs$6.getSymbolWidth(C),w.verticalPos,{thickness:glyphs$6.symbolHeightInPitches(C),top:w.verticalPos+glyphs$6.symbolHeightInPitches(C)+x,bottom:w.verticalPos+x})),A+=glyphs$6.getSymbolWidth(C)+2},this),b},createKeySignature_1=createKeySignature$1,glyphs$5=glyphs_1,RelativeElement$6=relativeElement,createNoteHead$1=function(d,g,b,A){A||(A={});var w=A.dir!==void 0?A.dir:null,C=A.headx!==void 0?A.headx:0,x=A.extrax!==void 0?A.extrax:0,S=A.flag!==void 0?A.flag:null,E=A.dot!==void 0?A.dot:0,B=A.dotshiftx!==void 0?A.dotshiftx:0,$=A.scale!==void 0?A.scale:1,P=A.accidentalSlot!==void 0?A.accidentalSlot:[],k=A.shouldExtendStem!==void 0?A.shouldExtendStem:!1,M=A.printAccidentals!==void 0?A.printAccidentals:!0,R=b.verticalPos,F,L=0,z=0,U=0;if(g===void 0)d.addFixed(new RelativeElement$6("pitch is undefined",0,0,0,{type:"debug"}));else if(g==="")F=new RelativeElement$6(null,0,0,R);else{var W=C;if(b.printer_shift){var V=b.printer_shift==="same"?1:0;W=w==="down"?-glyphs$5.getSymbolWidth(g)*$+V:glyphs$5.getSymbolWidth(g)*$-V}var Q={scalex:$,scaley:$,thickness:glyphs$5.symbolHeightInPitches(g)*$,name:b.name};if(F=new RelativeElement$6(g,W,glyphs$5.getSymbolWidth(g)*$,R,Q),F.stemDir=w,S){var K=R+(w==="down"?-7:7)*$;k&&(w==="down"&&K>6&&(K=6),w==="up"&&K<6&&(K=6));var G=w==="down"?C:C+F.w-.6;d.addRight(new RelativeElement$6(S,G,glyphs$5.getSymbolWidth(S)*$,K,{scalex:$,scaley:$}))}for(z=F.w+B-2+5*E;E>0;E--){var X=1-Math.abs(R)%2;d.addRight(new RelativeElement$6("dots.dot",F.w+B-2+5*E,glyphs$5.getSymbolWidth("dots.dot"),R+X))}}if(F&&(F.highestVert=b.highestVert),M&&b.accidental){var J;switch(b.accidental){case"quartersharp":J="accidentals.halfsharp";break;case"dblsharp":J="accidentals.dblsharp";break;case"sharp":J="accidentals.sharp";break;case"quarterflat":J="accidentals.halfflat";break;case"flat":J="accidentals.flat";break;case"dblflat":J="accidentals.dblflat";break;case"natural":J="accidentals.nat"}for(var re=!1,fe=x,Z=0;Z<P.length;Z++)if(R-P[Z][0]>=6){P[Z][0]=R,fe=P[Z][1],re=!0;break}re===!1&&(fe-=glyphs$5.getSymbolWidth(J)*$+2,P.push([R,fe]),L=glyphs$5.getSymbolWidth(J)*$+2);var ie=glyphs$5.symbolHeightInPitches(J);d.addExtra(new RelativeElement$6(J,fe,glyphs$5.getSymbolWidth(J),R,{scalex:$,scaley:$,top:R+ie/2,bottom:R-ie/2})),U=glyphs$5.getSymbolWidth(J)/2}return{notehead:F,accidentalshiftx:L,dotshiftx:z,extraLeft:U}},createNoteHead_1=createNoteHead$1,AbsoluteElement$2=absoluteElement,glyphs$4=glyphs_1,RelativeElement$5=relativeElement,createTimeSignature$1=function(d,g){d.el_type="timeSignature";var b=new AbsoluteElement$2(d,0,10,"staff-extra time-signature",g);if(d.type==="specified")for(var A=0,w=0;w<d.value.length;w++)if(w!==0&&(b.addRight(new RelativeElement$5("+",A+1,glyphs$4.getSymbolWidth("+"),6,{thickness:glyphs$4.symbolHeightInPitches("+")})),A+=glyphs$4.getSymbolWidth("+")+2),d.value[w].den){for(var C=0,x=0;x<d.value[w].num.length;x++)C+=glyphs$4.getSymbolWidth(d.value[w].num[x]);var S=0;for(x=0;x<d.value[w].num.length;x++)S+=glyphs$4.getSymbolWidth(d.value[w].den[x]);var E=Math.max(C,S);b.addRight(new RelativeElement$5(d.value[w].num,A+(E-C)/2,C,8,{thickness:glyphs$4.symbolHeightInPitches(d.value[w].num[0])})),b.addRight(new RelativeElement$5(d.value[w].den,A+(E-S)/2,S,4,{thickness:glyphs$4.symbolHeightInPitches(d.value[w].den[0])})),A+=E}else{for(var B=0,$=0;$<d.value[w].num.length;$++)B+=glyphs$4.getSymbolWidth(d.value[w].num[$]);b.addRight(new RelativeElement$5(d.value[w].num,A,B,6,{thickness:glyphs$4.symbolHeightInPitches(d.value[w].num[0])})),A+=B}else d.type==="common_time"?b.addRight(new RelativeElement$5("timesig.common",0,glyphs$4.getSymbolWidth("timesig.common"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.common")})):d.type==="cut_time"?b.addRight(new RelativeElement$5("timesig.cut",0,glyphs$4.getSymbolWidth("timesig.cut"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.cut")})):d.type==="tempus_imperfectum"?b.addRight(new RelativeElement$5("timesig.imperfectum",0,glyphs$4.getSymbolWidth("timesig.imperfectum"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.imperfectum")})):d.type==="tempus_imperfectum_prolatio"?b.addRight(new RelativeElement$5("timesig.imperfectum2",0,glyphs$4.getSymbolWidth("timesig.imperfectum2"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.imperfectum2")})):d.type==="tempus_perfectum"?b.addRight(new RelativeElement$5("timesig.perfectum",0,glyphs$4.getSymbolWidth("timesig.perfectum"),6,{thickness:glyphs$4.symbolHeightInPitches("timesig.perfectum")})):d.type==="tempus_perfectum_prolatio"?b.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 b},createTimeSignature_1=createTimeSignature$1,DynamicDecoration$1=function d(g,b,A){this.type="DynamicDecoration",this.anchor=g,this.dec=b,A==="below"?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0},dynamicDecoration=DynamicDecoration$1,CrescendoElem$1=function d(g,b,A,w){this.type="CrescendoElem",this.anchor1=g,this.anchor2=b,this.dir=A,w==="above"?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0},crescendoElement=CrescendoElem$1,GlissandoElem$1=function d(g,b){this.type="GlissandoElem",this.anchor1=g,this.anchor2=b},glissandoElement=GlissandoElem$1,TieElem$2=function d(g){this.type="TieElem",this.anchor1=g.anchor1,this.anchor2=g.anchor2,g.isGrace&&(this.isGrace=!0),g.fixedY&&(this.fixedY=!0),g.stemDir&&(this.stemDir=g.stemDir),g.voiceNumber!==void 0&&(this.voiceNumber=g.voiceNumber),g.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 g=0;g<this.internalNotes.length;g++){var b=this.internalNotes[g];b.stemDir==="down"&&(d=!0)}this.above=d}};TieElem$2.prototype.calcX=function(d,g){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=g};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,g=(this.anchor2.highestVert+this.anchor2.pitch)/2;this.above&&this.anchor2.stemDir==="up"&&!this.fixedY&&!d&&g<this.startY?(this.endY=g,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,g=0;g<this.internalNotes.length;g++)this.internalNotes[g].highestVert>d&&(d=this.internalNotes[g].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,g,b,A,w,C,x,S){for(var E,B=0;B<g.length;B++){if(g[B]==="staccato"||g[B]==="tenuto"||g[B]==="accent"){var $="scripts."+g[B];if(g[B]==="accent"&&($="scripts.sforzato"),E===void 0?E=x==="down"?b+2:S-2:E=x==="down"?E+2:E-2,g[B]==="accent")x==="up"?E--:E++;else switch(E){case 2:case 4:case 6:case 8:case 10:x==="up"?E--:E++;break}b>9&&E++;var P=A/2;glyphs$3.getSymbolAlign($)!=="center"&&(P-=glyphs$3.getSymbolWidth($)/2),w.addFixedX(new RelativeElement$4($,P,glyphs$3.getSymbolWidth($),E))}if(g[B]==="slide"&&w.heads[0]){var k=w.heads[0].pitch;k-=2;var M=new RelativeElement$4("",-C-15,0,k-1),R=new RelativeElement$4("",-C-5,0,k+1);w.addFixedX(M),w.addFixedX(R),d.addOther(new TieElem$1({anchor1:M,anchor2:R,fixedY:!0}))}}return E===void 0&&(E=b),{above:E,below:w.bottom}},volumeDecoration=function(d,g,b,A){for(var w=0;w<g.length;w++)switch(g[w]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var C=new DynamicDecoration(b,g[w],A);d.addOther(C)}},compoundDecoration=function(d,g,b,A,w){function C(){if(A.heads.length===0)return 10;for(var B=A.heads[0].pitch,$=1;$<A.heads.length;$++)B=Math.max(B,A.heads[$].pitch);return B}function x(){if(A.heads.length===0)return 2;for(var B=A.heads[0].pitch,$=1;$<A.heads.length;$++)B=Math.min(B,A.heads[$].pitch);return B}function S(B,$){var P=w==="down"?x()+1:C()+9;w!=="down"&&$===1&&P--;var k=b/2;k+=w==="down"?-5:3;for(var M=0;M<$;M++)P-=1,A.addFixedX(new RelativeElement$4(B,k,glyphs$3.getSymbolWidth(B),P))}for(var E=0;E<d.length;E++)switch(d[E]){case"/":S("flags.ugrace",1);break;case"//":S("flags.ugrace",2);break;case"///":S("flags.ugrace",3);break;case"////":S("flags.ugrace",4);break}},stackedDecoration=function(d,g,b,A,w,C,x){function S(R,F){R==="above"?A.above+=F:A.below-=F}function E(R){var F;return R==="above"?(F=A.above,F<C&&(F=C)):(F=A.below,F>x&&(F=x)),F}function B(R,F,L){var z=E(F),U=2,W=5;b.addFixedX(new RelativeElement$4(R,g/2,0,z+U,{type:"decoration",klass:"ornament",thickness:3,anchor:L})),S(F,W)}function $(R,F){var L=g/2;glyphs$3.getSymbolAlign(R)!=="center"&&(L-=glyphs$3.getSymbolWidth(R)/2);var z=glyphs$3.symbolHeightInPitches(R)+1,U=E(F);U=F==="above"?U+z/2:U-z/2,b.addFixedX(new RelativeElement$4(R,L,glyphs$3.getSymbolWidth(R),U,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches(R)})),S(F,z)}for(var P={"+":"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"},k=!1,M=0;M<d.length;M++)switch(d[M]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":B(d[M],w,"middle"),k=!0;break;case"D.C.alcoda":B("D.C. al coda",w,"end"),k=!0;break;case"D.C.alfine":B("D.C. al fine",w,"end"),k=!0;break;case"D.S.alcoda":B("D.S. al coda",w,"end"),k=!0;break;case"D.S.alfine":B("D.S. al fine",w,"end"),k=!0;break;case"fine":B("FINE",w,"middle"),k=!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":$(P[d[M]],w),k=!0;break;case"invertedfermata":$(P[d[M]],"below"),k=!0;break;case"mark":b.klass="mark";break}return k};function leftDecoration(d,g,b){for(var A=0;A<d.length;A++)switch(d[A]){case"arpeggio":for(var w=g.abcelem.minpitch-1;w<=g.abcelem.maxpitch;w+=2)g.addExtra(new RelativeElement$4("scripts.arpeggio",-glyphs$3.getSymbolWidth("scripts.arpeggio")*2-b,0,w+2,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches("scripts.arpeggio")}));break}}Decoration$1.prototype.dynamicDecoration=function(d,g,b,A){for(var w,C,x,S=0;S<g.length;S++)switch(g[S]){case"diminuendo(":this.startDiminuendoX=b,w=void 0;break;case"diminuendo)":w={start:this.startDiminuendoX,stop:b},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=b,C=void 0;break;case"crescendo)":C={start:this.startCrescendoX,stop:b},this.startCrescendoX=void 0;break;case"glissando(":this.startGlissandoX=b,x=void 0;break;case"glissando)":x={start:this.startGlissandoX,stop:b},this.startGlissandoX=void 0;break}w&&d.addOther(new CrescendoElem(w.start,w.stop,">",A)),C&&d.addOther(new CrescendoElem(C.start,C.stop,"<",A)),x&&d.addOther(new GlissandoElem(x.start,x.stop))};Decoration$1.prototype.createDecoration=function(d,g,b,A,w,C,x,S,E,B){E||(E={ornamentPosition:"above",volumePosition:B?"above":"below",dynamicPosition:B?"above":"below"}),volumeDecoration(d,g,w,E.volumePosition),this.dynamicDecoration(d,g,w,E.dynamicPosition),compoundDecoration(g,b,A,w,x);var $=closeDecoration(d,g,b,A,w,C,x,S);$.above=Math.max($.above,this.minTop),stackedDecoration(g,A,w,$,E.ornamentPosition,this.minTop,this.minBottom),leftDecoration(g,w,C)};var decoration=Decoration$1,EndingElem$1=function d(g,b,A){this.type="EndingElem",this.text=g,this.anchor1=b,this.anchor2=A,this.endingHeightAbove=5,this.pitch=void 0},endingElement=EndingElem$1,calcHeight$1=function(d){for(var g=0,b=0;b<d.voices.length;b++){var A=d.voices[b].staff;d.voices[b].duplicate||(g+=A.top,g+=-A.bottom)}return g},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,g){g.specialY[d]&&(g.staff.specialY[d]?g.staff.specialY[d]=Math.max(g.staff.specialY[d],g.specialY[d]):g.staff.specialY[d]=g.specialY[d])};StaffGroupElement$1.prototype.addVoice=function(d,g,b){var A=this.voices.length;this.voices[A]=d,this.staffs[g]?this.staffs[g].voices.push(A):this.staffs[this.staffs.length]={top:10,bottom:2,lines:b,voices:[A],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[g]};StaffGroupElement$1.prototype.setHeight=function(){this.height=calcHeight(this)};StaffGroupElement$1.prototype.setWidth=function(d){this.w=d;for(var g=0;g<this.voices.length;g++)this.voices[g].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(g,b,A){this.type="TempoElement",this.tempo=g,this.tempo.type="tempo",this.tuneNumber=b,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(A,g,b))};TempoElement$1.prototype.setX=function(d){this.x=d};TempoElement$1.prototype.createNote=function(d,g,b){var A=.75,w=g.duration[0],C=new AbsoluteElement$1(g,w,1,"tempo",b),x,S,E;w<=1/32?(E="noteheads.quarter",S="flags.u32nd",x=0):w<=1/16?(E="noteheads.quarter",S="flags.u16th",x=0):w<=3/32?(E="noteheads.quarter",S="flags.u16nd",x=1):w<=1/8?(E="noteheads.quarter",S="flags.u8th",x=0):w<=3/16?(E="noteheads.quarter",S="flags.u8th",x=1):w<=1/4?(E="noteheads.quarter",x=0):w<=3/8?(E="noteheads.quarter",x=1):w<=1/2?(E="noteheads.half",x=0):w<=3/4?(E="noteheads.half",x=1):w<=1?(E="noteheads.whole",x=0):w<=1.5?(E="noteheads.whole",x=1):w<=2?(E="noteheads.dbl",x=0):(E="noteheads.dbl",x=1);var B=d(C,E,{verticalPos:0},{dir:"up",flag:S,dot:x,scale:A}),$=B.notehead;C.addHead($);var P;if(E!=="noteheads.whole"&&E!=="noteheads.dbl"){var k=.3333333333333333*A,M=5*A,R=$.dx+$.w,F=-.6;P=new RelativeElement$3(null,R,0,k,{type:"stem",pitch2:M,linewidth:F}),C.addRight(P)}return C};var tempoElement=TempoElement$1,TripletElem$1=function d(g,b,A){this.type="TripletElem",this.anchor1=b,this.number=g,this.durationClass=("d"+Math.round(b.parent.durationClass*1e3)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=A.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,g,b){var A=d.split(`
  2351. `);for(let w=0;w<A.length;w++){let x=A[w].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(!x)continue;let S=x[1]||"",E=x[2]||"",B=x[4]||"";b&&(S=germanNote(S),B=germanNote(B));const $=g?"":"",P=B?"/"+B:"";A[w]=[S,E,P].join($)}return A.join(`
  2352. `)}var translateChord_1=translateChord$1,RelativeElement$2=relativeElement,spacing$a=spacing_1;const translateChord=translateChord_1;var addChord$1=function(d,g,b,A,w,C,x,S){for(var E=0;E<b.chord.length;E++)for(var B=b.chord[E].position,$=b.chord[E].rel_position,P=b.chord[E].name.split(`
  2353. `),k=P.length-1;k>=0;k--){var M=P[k],R=0,F,L,z;B==="left"||B==="right"||B==="below"||B==="above"||$?(L="annotationfont",z="annotation"):(L="gchordfont",z="chord",M=translateChord(M,x,S));var U=d.attr(L,z),W=d.calc(M,L,z),V=W.width,Q=W.height/spacing$a.STEP;switch(B){case"left":A+=V+7,R=-A,F=b.averagepitch,g.addExtra(new RelativeElement$2(M,R,V+4,F,{type:"text",height:Q,dim:U,position:"left"}));break;case"right":w+=4,R=w,F=b.averagepitch,g.addRight(new RelativeElement$2(M,R,V+4,F,{type:"text",height:Q,dim:U,position:"right"}));break;case"below":g.addRight(new RelativeElement$2(M,0,0,void 0,{type:"text",position:"below",height:Q,dim:U,realWidth:V}));break;case"above":g.addRight(new RelativeElement$2(M,0,0,void 0,{type:"text",position:"above",height:Q,dim:U,realWidth:V}));break;default:if($){var K=$.y+3*spacing$a.STEP;g.addRight(new RelativeElement$2(M,R+$.x,0,b.minpitch+K/spacing$a.STEP,{position:"relative",type:"text",height:Q,dim:U}))}else{var G="above";b.positioning&&b.positioning.chordPosition&&(G=b.positioning.chordPosition),G!=="hidden"&&g.addCentered(new RelativeElement$2(M,C/2,V,void 0,{type:"chord",position:G,height:Q,dim:U,realWidth:V}))}}}return{roomTaken:A,roomTakenRight:w}},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 g=0;return d.duration&&(g=d.duration),g},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,g,b){this.decoration=new Decoration,this.getTextSize=d,this.tuneNumber=g,this.isBagpipes=b.bagpipes,this.flatBeams=b.flatbeams,this.graceSlurs=b.graceSlurs,this.percmap=b.percmap,this.initialClef=b.initialClef,this.jazzchords=!!b.jazzchords,this.germanAlphabet=!!b.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,g){return"s"+d+"v"+g};AbstractEngraver$1.prototype.pushCrossLineElems=function(d,g){this.slursbyvoice[this.getCurrentVoiceId(d,g)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(d,g)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(d,g)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(d,g)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(d,g)]=this.voiceColor)};AbstractEngraver$1.prototype.popCrossLineElems=function(d,g){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(d,g)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(d,g)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(d,g)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(d,g)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(d,g)]};AbstractEngraver$1.prototype.containsLyrics=function(d){for(var g=0;g<d.length;g++)for(var b=0;b<d[g].voices.length;b++)for(var A=0;A<d[g].voices[b].length;A++){var w=d[g].voices[b][A];if(w.lyric){(!w.positioning||w.positioning.vocalPosition==="below")&&(this.hasVocals=!0);return}}};AbstractEngraver$1.prototype.createABCLine=function(d,g,b){this.minY=2,this.containsLyrics(d);var A=new StaffGroupElement(this.getTextSize);this.tempoSet=!1;for(var w=0;w<d.length;w++)hint&&this.restoreState(),hint=!1,this.createABCStaff(A,d[w],g,w,b);return A};AbstractEngraver$1.prototype.createABCStaff=function(d,g,b,A,w){d.getTextSize.updateFonts(g);for(var C=0;C<g.voices.length;C++){var x=new VoiceElement$1(C,g.voices.length);C===0?(x.barfrom=g.connectBarLines==="start"||g.connectBarLines==="continue",x.barto=g.connectBarLines==="continue"||g.connectBarLines==="end"):x.duplicate=!0,g.title&&g.title[C]&&(x.header=g.title[C].replace(/\\n/g,`
  2354. `),x.headerPosition=6+d.getTextSize.baselineToCenter(x.header,"voicefont","staff-extra voice-name",C,g.voices.length)/spacing$9.STEP),g.clef&&g.clef.type==="perc"&&(x.isPercussion=!0);var S=(!this.initialClef||w===0)&&createClef(g.clef,this.tuneNumber);S&&(C===0&&g.barNumber&&this.addMeasureNumber(g.barNumber,S),x.addChild(S),this.startlimitelem=S);var E=createKeySignature(g.key,this.tuneNumber);if(E&&(x.addChild(E),this.startlimitelem=E),g.meter){g.meter.type==="specified"?this.measureLength=g.meter.value[0].num/g.meter.value[0].den:this.measureLength=1;var B=createTimeSignature(g.meter,this.tuneNumber);x.addChild(B),this.startlimitelem=B}x.duplicate&&(x.children=[]);var $=g.clef.stafflines||g.clef.stafflines===0?g.clef.stafflines:5;d.addVoice(x,A,$);var P=$===1;this.createABCVoice(g.voices[C],b,A,C,P,x),d.setStaffLimits(x),C===0&&(g.brace==="start"||!d.brace&&g.brace?(d.brace||(d.brace=[]),d.brace.push(new BraceElem(x,"brace"))):g.brace==="end"&&d.brace?d.brace[d.brace.length-1].setBottomStaff(x):g.brace==="continue"&&d.brace&&d.brace[d.brace.length-1].continuing(x),g.bracket==="start"||!d.bracket&&g.bracket?(d.bracket||(d.bracket=[]),d.bracket.push(new BraceElem(x,"bracket"))):g.bracket==="end"&&d.bracket?d.bracket[d.bracket.length-1].setBottomStaff(x):g.bracket==="continue"&&d.bracket&&d.bracket[d.bracket.length-1].continuing(x))}};function getBeamGroup(d,g){var b=d[g];if(b.el_type!=="note"||!b.startBeam||b.endBeam)return{count:1,elem:b};for(var A=[];g<d.length&&d[g].el_type==="note"&&(A.push(d[g]),!d[g].endBeam);)g++;return{count:A.length,elem:A}}AbstractEngraver$1.prototype.createABCVoice=function(d,g,b,A,w,C){this.popCrossLineElems(b,A),this.stemdir=this.isBagpipes?"down":null,this.abcline=d,this.partstartelem&&(this.partstartelem=new EndingElem("",null,null),C.addOther(this.partstartelem));var x=C.voicetotal<2?-1:C.voicenumber;for(var S in this.slurs)this.slurs.hasOwnProperty(S)&&(this.slurs[S]=new TieElem({force:this.slurs[S].force,voiceNumber:x,stemDir:this.slurs[S].stemDir,style:this.slurs[S].dotted}),hint&&this.slurs[S].setHint(),C.addOther(this.slurs[S]));for(var E=0;E<this.ties.length;E++)this.ties[E]=new TieElem({force:this.ties[E].force,stemDir:this.ties[E].stemDir,voiceNumber:x,style:this.ties[E].dotted}),hint&&this.ties[E].setHint(),C.addOther(this.ties[E]);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 $=b===0,P=0;P<this.abcline.length;){var k=getBeamGroup(this.abcline,P),M=this.createABCElement($,w,C,k.elem);if(M)for(E=0;E<M.length;E++){if(!this.tempoSet&&g&&!g.suppress){this.tempoSet=!0;var R=new AbsoluteElement(g,0,0,"tempo",this.tuneNumber,{});R.addFixedX(new TempoElement(g,this.tuneNumber,createNoteHead)),C.addChild(R)}C.addChild(M[E])}P+=k.count}this.pushCrossLineElems(b,A)};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,g,b,A){var w=[];switch(A.el_type){case void 0:w=this.createBeam(g,b,A);break;case"note":w[0]=this.createNote(A,!1,g,b),this.triplet&&this.triplet.isClosed()&&(b.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":w[0]=this.createBarLine(b,A,d),b.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"meter":w[0]=createTimeSignature(A,this.tuneNumber),this.startlimitelem=w[0],b.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"clef":if(w[0]=createClef(A,this.tuneNumber),!w[0])return null;b.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"key":var C=createKeySignature(A,this.tuneNumber);C&&(w[0]=C,this.startlimitelem=w[0]),b.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"stem":this.stemdir=A.direction==="auto"?void 0:A.direction;break;case"part":var x=new AbsoluteElement(A,0,0,"part",this.tuneNumber),S=this.getTextSize.calc(A.title,"partsfont","part");x.addFixedX(new RelativeElement$1(A.title,0,0,void 0,{type:"part",height:S.height/spacing$9.STEP})),w[0]=x;break;case"tempo":var E=new AbsoluteElement(A,0,0,"tempo",this.tuneNumber);E.addFixedX(new TempoElement(A,this.tuneNumber,createNoteHead)),w[0]=E;break;case"style":A.head==="normal"?delete this.style:this.style=A.head;break;case"hint":hint=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=A.size;break;case"color":this.voiceColor=A.color,b.color=this.voiceColor;break;default:var B=new AbsoluteElement(A,0,0,"unsupported",this.tuneNumber);B.addFixed(new RelativeElement$1("element type "+A.el_type,0,0,void 0,{type:"debug"})),w[0]=B}return w};function setAveragePitch(d){if(d.pitches){sortPitch(d);for(var g=0,b=0;b<d.pitches.length;b++)g+=d.pitches[b].verticalPos;d.averagepitch=g/d.pitches.length,d.minpitch=d.pitches[0].verticalPos,d.maxpitch=d.pitches[d.pitches.length-1].verticalPos}}AbstractEngraver$1.prototype.createBeam=function(d,g,b){var A=[],w=new BeamElem(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,b[0]);hint&&w.setHint();for(var C=0;C<b.length;C++)w.runningDirection(b[C]);w.setStemDirection();var x=this.stemdir;for(this.stemdir=w.stemsUp?"up":"down",C=0;C<b.length;C++){var S=b[C],E=this.createNote(S,!0,d,g);A.push(E),w.add(E),this.triplet&&this.triplet.isClosed()&&(g.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return w.calcDir(),g.addBeam(w),this.stemdir=x,A};var sortPitch=function(d){var g;do{g=!0;for(var b=0;b<d.pitches.length-1;b++)if(d.pitches[b].pitch>d.pitches[b+1].pitch){g=!1;var A=d.pitches[b];d.pitches[b]=d.pitches[b+1],d.pitches[b+1]=A}}while(!g)},ledgerLines=function(d,g,b,A,w,C,x,S,E){for(var B=b;B>11;B--)B%2===0&&!A&&d.addFixed(new RelativeElement$1(null,S,(w+4)*E,B,{type:"ledger"}));for(B=g;B<1;B++)B%2===0&&!A&&d.addFixed(new RelativeElement$1(null,S,(w+4)*E,B,{type:"ledger"}));for(B=0;B<C.length;B++){var $=w;x==="down"&&($=-$),d.addFixed(new RelativeElement$1(null,$+S,(w+4)*E,C[B],{type:"ledger"}))}};AbstractEngraver$1.prototype.addGraceNotes=function(d,g,b,A,w,C,x){var S=.6,E=3.5/5;w=Math.round(w*E);var B=null,$;d.gracenotes.length>1&&(B=new BeamElem(w,"grace",C),hint&&B.setHint(),B.mainNote=b);var P,k=[];for(P=d.gracenotes.length-1;P>=0;P--)x+=10,k[P]=x,d.gracenotes[P].accidental&&(x+=7);for(P=0;P<d.gracenotes.length;P++){var M=d.gracenotes[P].verticalPos;$=B?null:chartable.uflags[C?5:3];var R=[],F=createNoteHead(b,"noteheads.quarter",d.gracenotes[P],{dir:"up",headx:-k[P],extrax:-k[P],flag:$,scale:S*this.voiceScale,accidentalSlot:R});F.notehead.highestVert=F.notehead.pitch+w;var L=F.notehead;if(this.addSlursAndTies(b,d.gracenotes[P],L,g,"up",!0),b.addExtra(L),d.gracenotes[P].acciaccatura){var z=d.gracenotes[P].verticalPos+7*S,U=B?5:6;b.addRight(new RelativeElement$1("flags.ugrace",-k[P]+U,0,z,{scalex:S,scaley:S}))}if(B){var W=d.gracenotes[P].duration/2;C&&(W/=2);var V={heads:[L],abcelem:{averagepitch:M,minpitch:M,maxpitch:M,duration:W}};B.add(V)}else{var Q=M+.3333333333333333*S,K=M+7*S,G=L.dx+L.w,X=-.6;b.addExtra(new RelativeElement$1(null,G,0,Q,{type:"stem",pitch2:K,linewidth:X}))}ledgerLines(b,M,M,!1,glyphs$2.getSymbolWidth("noteheads.quarter"),[],!0,L.dx-1,.6);var J=d.rest&&(d.rest.type==="spacer"||d.rest.type==="invisible");P===0&&!C&&this.graceSlurs&&!J&&g.addOther(new TieElem({anchor1:L,anchor2:A,isGrace:!0}))}return B&&(B.calcDir(),g.addBeam(B)),x};function addRestToAbsElement(d,g,b,A,w,C,x,S,E){var B,$=7,P,k,M;switch(w&&(C==="down"&&($=3),C==="up"&&($=11)),x&&(b<.5||b<1?$=7:$=5),g.rest.type){case"whole":B=chartable.rest[0],g.averagepitch=$,g.minpitch=$,g.maxpitch=$,A=0;break;case"rest":g.style==="rhythm"?B=chartable.rhythm[-S]:B=chartable.rest[-S],g.averagepitch=$,g.minpitch=$,g.maxpitch=$;break;case"invisible":case"invisible-multimeasure":case"spacer":B="",g.averagepitch=$,g.minpitch=$,g.maxpitch=$;break;case"multimeasure":B=chartable.rest.multi,g.averagepitch=$,g.minpitch=$,g.maxpitch=$,A=0;var R=glyphs$2.getSymbolWidth(B);d.addHead(new RelativeElement$1(B,R,R*2,7));var F=new RelativeElement$1(""+g.rest.text,R,R,16,{type:"multimeasure-text"});d.addExtra(F)}if(g.rest.type.indexOf("multimeasure")<0&&g.rest.type!=="invisible"){var L=createNoteHead(d,B,{verticalPos:$},{dot:A,scale:E});P=L.notehead,P&&(d.addHead(P),k=L.accidentalshiftx,M=L.dotshiftx)}return{noteHead:P,roomTaken:k,roomTakenRight:M}}function addIfNotExist(d,g){for(var b=0;b<d.length;b++)if(JSON.stringify(d[b])===JSON.stringify(g))return;d.push(g)}AbstractEngraver$1.prototype.addNoteToAbcElement=function(d,g,b,A,w,C,x,S,E){var B=0,$,P=0,k=0,M,R,F=[],L=[],z=0,U=g.averagepitch>=6?"down":"up";A&&(U=A),w=g.style?g.style:w,(!w||w==="normal")&&(w="note");var W;C?W=chartable[w].nostem:W=chartable[w][-x],W||console.log("noteSymbol:",w,x,C);var V;for(V=U==="down"?g.pitches.length-2:1;U==="down"?V>=0:V<g.pitches.length;V=U==="down"?V-1:V+1){var Q=g.pitches[U==="down"?V+1:V-1],K=g.pitches[V],G=U==="down"?Q.pitch-K.pitch:K.pitch-Q.pitch;G<=1&&!Q.printer_shift&&(K.printer_shift=G?"different":"same",(K.verticalPos>11||K.verticalPos<1)&&F.push(K.verticalPos-K.verticalPos%2),U==="down"?P=glyphs$2.getSymbolWidth(W)+2:B=glyphs$2.getSymbolWidth(W)+2)}var X=g.pitches.length;for(V=0;V<g.pitches.length;V++){if(!S){var J;U==="down"&&V!==0||U==="up"&&V!==X-1?J=null:J=chartable[U==="down"?"dflags":"uflags"][-x]}var re;if(g.pitches[V].style)re=chartable[g.pitches[V].style][-x];else if(E.isPercussion&&this.percmap){re=W;var fe=this.percmap[pitchesToPerc(g.pitches[V])];fe&&fe.noteHead&&chartable[fe.noteHead]&&(re=chartable[fe.noteHead][-x])}else re=W;g.pitches[V].highestVert=g.pitches[V].verticalPos;var Z=(A==="up"||U==="up")&&V===0,ie=(A==="down"||U==="down")&&V===X-1;if(Z||ie){if((g.startSlur||X===1)&&(g.pitches[V].highestVert=g.pitches[X-1].verticalPos,getDuration(g)<1&&(A==="up"||U==="up")&&(g.pitches[V].highestVert+=6)),g.startSlur)for(g.pitches[V].startSlur||(g.pitches[V].startSlur=[]),R=0;R<g.startSlur.length;R++)addIfNotExist(g.pitches[V].startSlur,g.startSlur[R]);if(g.endSlur)for(g.pitches[V].highestVert=g.pitches[X-1].verticalPos,getDuration(g)<1&&(A==="up"||U==="up")&&(g.pitches[V].highestVert+=6),g.pitches[V].endSlur||(g.pitches[V].endSlur=[]),R=0;R<g.endSlur.length;R++)addIfNotExist(g.pitches[V].endSlur,g.endSlur[R])}var ce=!S&&x<=-1,me=createNoteHead(d,re,g.pitches[V],{dir:U,extrax:-P,flag:J,dot:b,dotshiftx:B,scale:this.voiceScale,accidentalSlot:L,shouldExtendStem:!A,printAccidentals:!E.isPercussion});z=Math.max(glyphs$2.getSymbolWidth(re),z),d.extraw-=me.extraLeft,$=me.notehead,$&&(this.addSlursAndTies(d,g.pitches[V],$,E,ce?U:null,!1),g.gracenotes&&g.gracenotes.length>0&&($.bottom=$.bottom-1),d.addHead($)),P+=me.accidentalshiftx,k=Math.max(k,me.dotshiftx)}if(ce){var ne=Math.round(70*this.voiceScale)/10,te=U==="down"?g.minpitch-ne:g.minpitch+1/3;te>6&&!A&&(te=6);var ue=U==="down"?g.maxpitch-1/3:g.maxpitch+ne;ue<6&&!A&&(ue=6);var ae=U==="down"||d.heads.length===0?0:d.heads[0].w,ye=U==="down"?1:-1;$&&$.c==="noteheads.slash.quarter"&&(U==="down"?ue-=1:te+=1),d.addRight(new RelativeElement$1(null,ae,0,te,{type:"stem",pitch2:ue,linewidth:ye,bottom:te-1})),M=Math.min(te,ue)}return{noteHead:$,roomTaken:P,roomTakenRight:k,min:M,additionalLedgers:F,dir:U,symbolWidth:z}};AbstractEngraver$1.prototype.addLyric=function(d,g){var b="";g.lyric.forEach(function(C){var x=C.divider===" "?"":C.divider;b+=C.syllable+x+`
  2355. `});var A=this.getTextSize.calc(b,"vocalfont","lyric"),w=g.positioning?g.positioning.vocalPosition:"below";d.addCentered(new RelativeElement$1(b,0,A.width,void 0,{type:"lyric",position:w,height:A.height/spacing$9.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))};AbstractEngraver$1.prototype.createNote=function(d,g,b,A){var w=null,C=0,x=0,S=0,E=[],B,$=getDuration(d),P=!1;$===0&&(P=!0,$=.25,g=!0);for(var k=Math.floor(Math.log($)/Math.log(2)),M=0,R=Math.pow(2,k),F=R/2;R<$;M++,R+=F,F/=2);d.startTriplet&&(this.tripletmultiplier=d.tripletMultiplier);var L=$*this.tripletmultiplier;d.rest&&d.rest.type==="multimeasure"&&(L=1),d.rest&&d.rest.type==="invisible-multimeasure"&&(L=this.measureLength*d.rest.text);var z=d.rest?"rest":"note",U=new AbsoluteElement(d,L,1,z,this.tuneNumber,{durationClassOveride:d.duration*this.tripletmultiplier});if(hint&&U.setHint(),d.rest){this.measureLength===$&&d.rest.type!=="invisible"&&d.rest.type!=="spacer"&&d.rest.type.indexOf("multimeasure")<0&&(d.rest.type="whole");var W=addRestToAbsElement(U,d,$,M,A.voicetotal>1,this.stemdir,b,k,this.voiceScale);w=W.noteHead,C=W.roomTaken,x=W.roomTakenRight}else{var V=this.addNoteToAbcElement(U,d,M,this.stemdir,this.style,P,k,g,A);V.min!==void 0&&(this.minY=Math.min(V.min,this.minY)),w=V.noteHead,C=V.roomTaken,x=V.roomTakenRight,E=V.additionalLedgers,B=V.dir,S=V.symbolWidth}if(d.lyric!==void 0&&this.addLyric(U,d),d.gracenotes!==void 0&&(C+=this.addGraceNotes(d,A,U,w,this.stemHeight*this.voiceScale,this.isBagpipes,C)),d.decoration&&this.decoration.createDecoration(A,d.decoration,U.top,w?w.w:0,U,C,B,U.bottom,d.positioning,this.hasVocals),d.barNumber&&U.addFixed(new RelativeElement$1(d.barNumber,-10,0,0,{type:"barNumber"})),ledgerLines(U,d.minpitch,d.maxpitch,d.rest,S,E,B,-2,1),d.chord!==void 0){var Q=addChord(this.getTextSize,U,d,C,x,S,this.jazzchords,this.germanAlphabet);C=Q.roomTaken,x=Q.roomTakenRight}return d.startTriplet&&(this.triplet=new TripletElem(d.startTriplet,w,{flatBeams:this.flatBeams})),d.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(w),this.triplet&&!d.startTriplet&&!d.endTriplet&&!(d.rest&&d.rest.type==="spacer")&&this.triplet.middleNote(w),U};AbstractEngraver$1.prototype.addSlursAndTies=function(d,g,b,A,w,C){if(g.endTie&&this.ties.length>0){for(var x=!1,S=0;S<this.ties.length;S++)if(this.ties[S].anchor1&&this.ties[S].anchor1.pitch===b.pitch){this.ties[S].setEndAnchor(b),A.setRange(this.ties[S]),this.ties.splice(S,1),x=!0;break}x||(this.ties[0].setEndAnchor(b),A.setRange(this.ties[0]),this.ties.splice(0,1))}var E=A.voicetotal<2?-1:A.voicenumber;if(g.startTie){var B=new TieElem({anchor1:b,force:this.stemdir==="down"||this.stemdir==="up",stemDir:this.stemdir,isGrace:C,voiceNumber:E,style:g.startTie.style});hint&&B.setHint(),this.ties[this.ties.length]=B,A.addOther(B),d.startTie=!0}var $,P;if(g.endSlur)for(var k=0;k<g.endSlur.length;k++)P=g.endSlur[k],this.slurs[P]?($=this.slurs[P],$.setEndAnchor(b),A.setRange($),delete this.slurs[P]):($=new TieElem({anchor2:b,stemDir:this.stemdir,voiceNumber:E}),hint&&$.setHint(),A.addOther($)),this.startlimitelem&&$.setStartX(this.startlimitelem);else if(!C)for(var M in this.slurs)this.slurs.hasOwnProperty(M)&&this.slurs[M].addInternalNote(b);if(g.startSlur)for(k=0;k<g.startSlur.length;k++)P=g.startSlur[k].label,$=new TieElem({anchor1:b,stemDir:this.stemdir,voiceNumber:E,style:g.startSlur[k].style}),hint&&$.setHint(),this.slurs[P]=$,A.addOther($)};AbstractEngraver$1.prototype.addMeasureNumber=function(d,g){var b=this.getTextSize.calc(d,"measurefont","bar-number"),A=0;g.isClef&&(A+=b.width/2);var w=b.width>10&&g.abcelem.type==="treble"?13:11;g.addFixed(new RelativeElement$1(d,A,b.width,w+b.height/spacing$9.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};AbstractEngraver$1.prototype.createBarLine=function(d,g,b){var A=new AbsoluteElement(g,0,10,"bar",this.tuneNumber),w=null,C=0;g.barNumber&&this.addMeasureNumber(g.barNumber,A);var x=g.type==="bar_right_repeat"||g.type==="bar_dbl_repeat",S=g.type!=="bar_left_repeat"&&g.type!=="bar_thick_thin"&&g.type!=="bar_invisible",E=g.type==="bar_right_repeat"||g.type==="bar_dbl_repeat"||g.type==="bar_left_repeat"||g.type==="bar_thin_thick"||g.type==="bar_thick_thin",B=g.type==="bar_left_repeat"||g.type==="bar_thick_thin"||g.type==="bar_thin_thin"||g.type==="bar_dbl_repeat",$=g.type==="bar_left_repeat"||g.type==="bar_dbl_repeat";if(x||$){for(var P in this.slurs)this.slurs.hasOwnProperty(P)&&this.slurs[P].setEndX(A);this.startlimitelem=A}if(x&&(A.addRight(new RelativeElement$1("dots.dot",C,1,7)),A.addRight(new RelativeElement$1("dots.dot",C,1,5)),C+=6),S&&(w=new RelativeElement$1(null,C,1,2,{type:"bar",pitch2:10,linewidth:.6}),A.addRight(w)),g.type==="bar_invisible"&&(w=new RelativeElement$1(null,C,1,2,{type:"none",pitch2:10,linewidth:.6}),A.addRight(w)),g.decoration&&this.decoration.createDecoration(d,g.decoration,12,E?3:1,A,0,"down",2,g.positioning,this.hasVocals),E&&(C+=4,w=new RelativeElement$1(null,C,4,2,{type:"bar",pitch2:10,linewidth:4}),A.addRight(w),C+=5),this.partstartelem&&g.endEnding&&(this.partstartelem.anchor2=w,this.partstartelem=null),B&&(C+=3,w=new RelativeElement$1(null,C,1,2,{type:"bar",pitch2:10,linewidth:.6}),A.addRight(w)),$&&(C+=3,A.addRight(new RelativeElement$1("dots.dot",C,1,7)),A.addRight(new RelativeElement$1("dots.dot",C,1,5))),g.startEnding&&b){var k=this.getTextSize.calc(g.startEnding,"repeatfont","").width;A.minspacing+=k+10,this.partstartelem=new EndingElem(g.startEnding,w,null),d.addOther(this.partstartelem)}return A.extraw-=5,g.chord!==void 0&&addChord(this.getTextSize,A,g,0,0,0,!1,this.germanAlphabet),A};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 g=document.createElement("title"),b=document.createTextNode(d);g.appendChild(b),this.svg.insertBefore(g,this.svg.firstChild)};Svg$1.prototype.setResponsiveWidth=function(d,g){if(this.svg.setAttribute("viewBox","0 0 "+d+" "+g),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 b=this.svg.parentNode.getAttribute("class");b?b.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",b+" 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 A=g/d*100;this.svg.parentNode.style["padding-bottom"]=A+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}};Svg$1.prototype.setSize=function(d,g){this.svg.setAttribute("width",d),this.svg.setAttribute("height",g)};Svg$1.prototype.setAttribute=function(d,g){this.svg.setAttribute(d,g)};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 g=document.createElementNS(svgNS,"style");g.textContent=d,this.svg.insertBefore(g,this.svg.firstChild)};Svg$1.prototype.setParentStyles=function(d){for(var g in d)d.hasOwnProperty(g)&&this.svg.parentNode&&(this.svg.parentNode.style[g]=d[g]);if(this.dummySvg){var b=document.querySelector("body");b.removeChild(this.dummySvg),this.dummySvg=null}};function constructHLine(d,g,b){var A=b-d;return"M "+d+" "+g+" l "+A+" 0 l 0 1 l "+-A+" 0 z "}function constructVLine(d,g,b){var A=b-g;return"M "+d+" "+g+" l 0 "+A+" l 1 0 l 0 "+-A+" z "}Svg$1.prototype.rect=function(d){var g=[],b=d.x,A=d.y,w=d.x+d.width,C=d.y+d.height;return g.push(constructHLine(b,A,w)),g.push(constructHLine(b,C,w)),g.push(constructVLine(w,A,C)),g.push(constructVLine(b,C,A)),this.path({path:g.join(" "),stroke:"none","data-name":d["data-name"]})};Svg$1.prototype.dottedLine=function(d){var g=document.createElementNS(svgNS,"line");g.setAttribute("x1",d.x1),g.setAttribute("x2",d.x2),g.setAttribute("y1",d.y1),g.setAttribute("y2",d.y2),g.setAttribute("stroke",d.stroke),g.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(g,this.svg.firstChild)};Svg$1.prototype.rectBeneath=function(d){var g=document.createElementNS(svgNS,"rect");g.setAttribute("x",d.x),g.setAttribute("width",d.width),g.setAttribute("y",d.y),g.setAttribute("height",d.height),d.stroke&&g.setAttribute("stroke",d.stroke),d["stroke-opacity"]&&g.setAttribute("stroke-opacity",d["stroke-opacity"]),d.fill&&g.setAttribute("fill",d.fill),d["fill-opacity"]&&g.setAttribute("fill-opacity",d["fill-opacity"]),this.svg.insertBefore(g,this.svg.firstChild)};Svg$1.prototype.text=function(d,g,b){var A=document.createElementNS(svgNS,"text");A.setAttribute("stroke","none");for(var w in g)g.hasOwnProperty(w)&&A.setAttribute(w,g[w]);for(var C=(""+d).split(`
  2356. `),x=0;x<C.length;x++){var S=document.createElementNS(svgNS,"tspan");if(S.setAttribute("x",g.x?g.x:0),x!==0&&S.setAttribute("dy","1.2em"),C[x].indexOf("")!==-1){var E=C[x].split("");if(S.textContent=E[0],E[1]){var B=document.createElementNS(svgNS,"tspan");B.setAttribute("dy","-0.3em"),B.setAttribute("style","font-size:0.7em"),B.textContent=E[1],S.appendChild(B)}if(E[2]){var $=E[1]?"0.4em":"0.1em",P=document.createElementNS(svgNS,"tspan");P.setAttribute("dy",$),P.setAttribute("style","font-size:0.7em"),P.textContent=E[2],S.appendChild(P)}}else S.textContent=C[x];A.appendChild(S)}return b?b.appendChild(A):this.append(A),A};Svg$1.prototype.guessWidth=function(d,g){var b=this.createDummySvg(),A=this.text(d,g,b),w;try{w=A.getBBox(),isNaN(w.height)||!w.height?w={width:g["font-size"]/2,height:g["font-size"]+2}:w={width:w.width,height:w.height}}catch(C){w={width:g["font-size"]/2,height:g["font-size"]+2}}return b.removeChild(A),w};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 g=document.querySelector("body");g.appendChild(this.dummySvg)}return this.dummySvg};var sizeCache={};Svg$1.prototype.getTextSize=function(d,g,b){if(typeof d=="number"&&(d=""+d),!d||d.match(/^\s+$/))return{width:0,height:0};var A;if(d.length<20&&(A=d+JSON.stringify(g),sizeCache[A]))return sizeCache[A];var w=!b;b||(b=this.text(d,g));var C;try{C=b.getBBox(),isNaN(C.height)||!C.height?C=this.guessWidth(d,g):C={width:C.width,height:C.height}}catch(x){C=this.guessWidth(d,g)}return w&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(b):this.svg.removeChild(b)),A&&(sizeCache[A]=C),C};Svg$1.prototype.openGroup=function(d){d=d||{};var g=document.createElementNS(svgNS,"g");return d.klass&&g.setAttribute("class",d.klass),d.fill&&g.setAttribute("fill",d.fill),d.stroke&&g.setAttribute("stroke",d.stroke),d["data-name"]&&g.setAttribute("data-name",d["data-name"]),d.prepend?this.prepend(g):this.append(g),this.currentGroup.unshift(g),g};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 g=document.createElementNS(svgNS,"path");for(var b in d)d.hasOwnProperty(b)&&(b==="path"?g.setAttributeNS(null,"d",d.path):b==="klass"?g.setAttributeNS(null,"class",d[b]):d[b]!==void 0&&g.setAttributeNS(null,b,d[b]));return this.append(g),g};Svg$1.prototype.pathToBack=function(d){var g=document.createElementNS(svgNS,"path");for(var b in d)d.hasOwnProperty(b)&&(b==="path"?g.setAttributeNS(null,"d",d.path):b==="klass"?g.setAttributeNS(null,"class",d[b]):g.setAttributeNS(null,b,d[b]));return this.prepend(g),g};Svg$1.prototype.lineToBack=function(d){for(var g=document.createElementNS(svgNS,"line"),b=Object.keys(d),A=0;A<b.length;A++)g.setAttribute(b[A],d[b[A]]);return this.prepend(g),g};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,g){for(var b in g)g.hasOwnProperty(b)&&d.setAttributeNS(null,b,g[b])};Svg$1.prototype.moveElementToChild=function(d,g){d.appendChild(g)};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 g(b,A,w,C,x){d.formatting[w]!==void 0?b.padding[A]=d.formatting[w]:b.paddingOverride[A]!==void 0?b.padding[A]=b.paddingOverride[A]:b.isPrint?b.padding[A]=C:b.padding[A]=x}g(this,"top","topmargin",38,15),g(this,"bottom","botmargin",38,15),g(this,"left","leftmargin",68,15),g(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,g){g===void 0&&(g=1),this.y+=d*g};Renderer$1.prototype.absolutemoveY=function(d){this.y=d};var renderer=Renderer$1;function FreeText$1(d,g,b,A,w,C){var x=d.text;this.rows=[];var S;g&&this.rows.push({move:g});var E=b.calc("textfont","defined-text");if(x==="")this.rows.push({move:E.attr["font-size"]*2});else if(typeof x=="string")this.rows.push({move:E.attr["font-size"]/2}),this.rows.push({left:A,text:x,font:"textfont",klass:"defined-text",anchor:"start",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),S=C.calc(x,"textfont","defined-text"),this.rows.push({move:S.height});else if(x){for(var B=0,$=A,P="textfont",k=0;k<x.length;k++)x[k].font?P=x[k].font:P="textfont",this.rows.push({left:$,text:x[k].text,font:P,klass:"defined-text",anchor:"start",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),S=C.calc(x[k].text,b.calc(P,"defined-text").font,"defined-text"),$+=S.width+S.height/2,B=Math.max(B,S.height);this.rows.push({move:B})}else if(d.length===1){var M=w/2;this.rows.push({left:M,text:d[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:d.startChar,endChar:d.endChar,absElemType:"freeText",name:"free-text"}),S=C.calc(d[0].text,"textfont","defined-text"),this.rows.push({move:S.height})}}var freeText=FreeText$1;function Separator$1(d,g,b){this.rows=[],d&&this.rows.push({move:d}),this.rows.push({separator:g,absElemType:"separator"}),b&&this.rows.push({move:b})}var separator$1=Separator$1;function Subtitle$1(d,g,b,A,w,C){this.rows=[],d&&this.rows.push({move:d});var x=g.titleleft?"start":"middle",S=g.titleleft?w:A;this.rows.push({left:S,text:b.text,font:"subtitlefont",klass:"text subtitle",anchor:x,startChar:b.startChar,endChar:b.endChar,absElemType:"subtitle",name:"subtitle"});var E=C.calc(b.text,"subtitlefont","text subtitle");this.rows.push({move:E.height})}var subtitle=Subtitle$1;function addTextIf$2(d,g,b){if(g.text){g.marginLeft||(g.marginLeft=0),g.klass||(g.klass=""),g.anchor||(g.anchor="start"),g.info||(g.info={startChar:-2,endChar:-2}),g.marginTop&&d.push({move:g.marginTop});var A={left:g.marginLeft,text:g.text,font:g.font,anchor:g.anchor,startChar:g.info.startChar,endChar:g.info.endChar};g.absElemType&&(A.absElemType=g.absElemType),g.inGroup||(A.klass=g.klass),g.name&&(A.name=g.name),d.push(A);var w=b.calc("A",g.font,g.klass),C=g.text.split(`
  2357. `).length;if(g.text[g.text.length-1]===`
  2358. `&&C--,!g.noMove){var x=w.height*1.1*C;d.push({move:Math.round(x)}),g.marginBottom&&d.push({move:g.marginBottom})}}}var addTextIf_1=addTextIf$2;const addTextIf$1=addTextIf_1;function TopText$1(d,g,b,A,w,C,x,S,E){if(this.rows=[],d.header&&C){var B=E.calc("X","headerfont","abcjs-header abcjs-meta-top").height;addTextIf$1(this.rows,{marginLeft:x,text:d.header.left,font:"headerfont",klass:"header meta-top",marginTop:-B,info:g.header,name:"header"},E),addTextIf$1(this.rows,{marginLeft:x+w/2,text:d.header.center,font:"headerfont",klass:"header meta-top",marginTop:-B,anchor:"middle",info:g.header,name:"header"},E),addTextIf$1(this.rows,{marginLeft:x+w,text:d.header.right,font:"headerfont",klass:"header meta-top",marginTop:-B,anchor:"end",info:g.header,name:"header"},E)}C&&this.rows.push({move:S.top});var $=b.titleleft?"start":"middle",P=b.titleleft?x:x+w/2;if(d.title&&addTextIf$1(this.rows,{marginLeft:P,text:d.title,font:"titlefont",klass:"title meta-top",marginTop:S.title,anchor:$,absElemType:"title",info:g.title,name:"title"},E),A.length)for(var k=0;k<A.length&&A[k].subtitle;)addTextIf$1(this.rows,{marginLeft:P,text:A[k].subtitle.text,font:"subtitlefont",klass:"text meta-top subtitle",marginTop:S.subtitle,anchor:$,absElemType:"subtitle",info:A[k].subtitle,name:"subtitle"},E),k++;if(d.rhythm||d.origin||d.composer){if(this.rows.push({move:S.composer}),d.rhythm&&d.rhythm.length>0){var M=!!(d.composer||d.origin);addTextIf$1(this.rows,{marginLeft:x,text:d.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:M,info:g.rhythm,name:"rhythm"},E)}var R="";d.composer&&(R+=d.composer),d.origin&&(R+=" ("+d.origin+")"),R.length>0&&addTextIf$1(this.rows,{marginLeft:x+w,text:R,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:g.composer,name:"composer"},E)}d.author&&d.author.length>0&&addTextIf$1(this.rows,{marginLeft:x+w,text:d.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:g.author,name:"author"},E),d.partOrder&&d.partOrder.length>0&&addTextIf$1(this.rows,{marginLeft:x,text:d.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:g.partOrder,name:"part-order"},E)}var topText=TopText$1;const addTextIf=addTextIf_1;function BottomText$1(d,g,b,A,w,C){this.rows=[],d.unalignedWords&&d.unalignedWords.length>0&&this.unalignedWords(d.unalignedWords,A,w,C),this.extraText(d,A,w,C),d.footer&&b&&this.footer(d.footer,g,A,C)}BottomText$1.prototype.unalignedWords=function(d,g,b,A){var w="meta-bottom unaligned-words",C="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var x=A.calc("i",C,w);this.rows.push({move:b.words});for(var S=0;S<d.length;S++)if(d[S]==="")this.rows.push({move:x.height});else if(typeof d[S]=="string")addTextIf(this.rows,{marginLeft:g,text:d[S],font:C,klass:w,inGroup:!0,name:"words"},A);else{for(var E=0,B=0,$=0;$<d[S].length;$++){var P=d[S][$],k=P.font?P.font:C;this.rows.push({left:g+B,text:P.text,font:k,anchor:"start"});var M=A.calc(P.text,C,w);E=Math.max(E,M.height),B+=M.width,P.text[P.text.length-1]===" "&&(B+=x.width)}this.rows.push({move:E})}this.rows.push({move:x.height*2}),this.rows.push({endGroup:"unalignedWords",absElemType:"unalignedWords",startChar:-1,endChar:-1,name:"unalignedWords"})};BottomText$1.prototype.extraText=function(d,g,b,A){var w="";d.book&&(w+="Book: "+d.book+`
  2359. `),d.source&&(w+="Source: "+d.source+`
  2360. `),d.discography&&(w+="Discography: "+d.discography+`
  2361. `),d.notes&&(w+="Notes: "+d.notes+`
  2362. `),d.transcription&&(w+="Transcription: "+d.transcription+`
  2363. `),d.history&&(w+="History: "+d.history+`
  2364. `),d["abc-copyright"]&&(w+="Copyright: "+d["abc-copyright"]+`
  2365. `),d["abc-creator"]&&(w+="Creator: "+d["abc-creator"]+`
  2366. `),d["abc-edited-by"]&&(w+="Edited By: "+d["abc-edited-by"]+`
  2367. `),w.length>0&&addTextIf(this.rows,{marginLeft:g,text:w,font:"historyfont",klass:"meta-bottom extra-text",marginTop:b.info,absElemType:"extraText",name:"description"},A)};BottomText$1.prototype.footer=function(d,g,b,A){var w="header meta-bottom",C="footerfont";this.rows.push({startGroup:"footer",klass:w}),addTextIf(this.rows,{marginLeft:b,text:d.left,font:C,klass:w,name:"footer"},A),addTextIf(this.rows,{marginLeft:b+g/2,text:d.center,font:C,klass:w,anchor:"middle",name:"footer"},A),addTextIf(this.rows,{marginLeft:b+g,text:d.right,font:C,klass:w,anchor:"end",name:"footer"},A)};var bottomText=BottomText$1,spacing$7=spacing_1;function setupSelection$1(d,g){if(d.rangeHighlight=rangeHighlight,d.dragging)for(var b=0;b<d.selectables.length;b++){var A=d.selectables[b];A.svgEl.getAttribute("selectable")==="true"&&(A.svgEl.setAttribute("tabindex",0),A.svgEl.setAttribute("data-index",b),A.svgEl.addEventListener("keydown",keyboardDown.bind(d)),A.svgEl.addEventListener("keyup",keyboardSelection.bind(d)),A.svgEl.addEventListener("focus",elementFocused.bind(d)))}for(var w=0;w<g.length;w++)g[w].addEventListener("touchstart",mouseDown.bind(d),{passive:!0}),g[w].addEventListener("touchmove",mouseMove.bind(d),{passive:!0}),g[w].addEventListener("touchend",mouseUp.bind(d),{passive:!0}),g[w].addEventListener("mousedown",mouseDown.bind(d)),g[w].addEventListener("mousemove",mouseMove.bind(d)),g[w].addEventListener("mouseup",mouseUp.bind(d))}function getCoord(d){var g=1,b=1,A=d.target.closest("svg"),w=0;A&&A.viewBox&&A.viewBox.baseVal&&(A.viewBox.baseVal.width!==0&&(g=A.viewBox.baseVal.width/A.clientWidth),A.viewBox.baseVal.height!==0&&(b=A.viewBox.baseVal.height/A.clientHeight),w=A.viewBox.baseVal.y);var C=d.target&&d.target.tagName==="svg",x,S;return C?(x=d.offsetX,S=d.offsetY):(x=d.layerX,S=d.layerY),x=x*g,S=S*b,[x,S+w]}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 g=!1,b=d.target.dataset.index;switch(d.keyCode){case 13:case 32:g=!0,this.dragTarget=this.selectables[b],this.dragIndex=b,this.dragMechanism="keyboard",mouseUp.bind(this)(d);break;case 38:g=!0,this.dragTarget=this.selectables[b],this.dragIndex=b,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:g=!0,this.dragTarget=this.selectables[b],this.dragIndex=b,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}g&&d.preventDefault()}function findElementInHistory(d,g){for(var b=0;b<d.length;b++)if(g.dataset.index===d[b].svgEl.dataset.index)return b;return-1}function findElementByCoord(d,g,b){for(var A=9999999,w=-1,C=0;C<d.selectables.length&&A>0;C++){var x=d.selectables[C];if(d.getDim(x),x.dim.left<g&&x.dim.right>g&&x.dim.top<b&&x.dim.bottom>b)w=C,A=0;else if(x.dim.top<b&&x.dim.bottom>b){var S=Math.min(Math.abs(x.dim.left-g),Math.abs(x.dim.right-g));S<A&&(A=S,w=C)}else if(x.dim.left<g&&x.dim.right>g){var E=Math.min(Math.abs(x.dim.top-b),Math.abs(x.dim.bottom-b));E<A&&(A=E,w=C)}else{var B=Math.abs(g-x.dim.left)>Math.abs(g-x.dim.right)?Math.abs(g-x.dim.right):Math.abs(g-x.dim.left),$=Math.abs(b-x.dim.top)>Math.abs(b-x.dim.bottom)?Math.abs(b-x.dim.bottom):Math.abs(b-x.dim.top),P=Math.sqrt(B*B+$*$);P<A&&(A=P,w=C)}}return w>=0&&A<=12?w:-1}function getBestMatchCoordinates(d,g,b){if(d.x<=g.offsetX&&d.x+d.width>=g.offsetX&&d.y<=g.offsetY&&d.y+d.height>=g.offsetY)return[g.offsetX,g.offsetY];var A=Math.abs(g.layerY/b-g.offsetY);return A<3?[g.offsetX,g.offsetY]:[g.layerX,g.layerY]}function getTarget(d){if(d.tagName==="svg")return d;for(var g=d.getAttribute("selectable");!g;)d.parentElement?(d=d.parentElement,d.tagName==="svg"?g=!0:g=d.getAttribute("selectable")):g=!0;return d}function getMousePosition(d,g){var b,A,w,C=findElementInHistory(d.selectables,getTarget(g.target));return C>=0?(w=getBestMatchCoordinates(d.selectables[C].svgEl.getBBox(),g,d.scale),b=w[0],A=w[1]):(w=getCoord(g),b=w[0],A=w[1],C=findElementByCoord(d,b,A)),{x:b,y:A,clickedOn:C}}function attachMissingTouchEventAttributes(d){if(!(!d||!d.target||!d.touches||d.touches.length<1)){var g=d.target.getBoundingClientRect(),b=d.touches[0].pageX-g.left,A=d.touches[0].pageY-g.top;d.touches[0].offsetX=b,d.touches[0].offsetY=A,d.touches[0].layerX=d.touches[0].pageX,d.touches[0].layerY=d.touches[0].pageY}}function mouseDown(d){var g=d;d.type==="touchstart"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(g=d.touches[0]));var b=getMousePosition(this,g);b.clickedOn>=0&&(d.type==="touchstart"||d.button===0)&&this.selectables[b.clickedOn]&&(this.dragTarget=this.selectables[b.clickedOn],this.dragIndex=b.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:b.x,y:b.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 g=d;if(d.type==="touchmove"&&(attachMissingTouchEventAttributes(d),d.touches.length>0&&(g=d.touches[0])),this.lastTouchMove=d,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var b=getMousePosition(this,g),A=Math.round((b.y-this.dragMouseStart.y)/spacing$7.STEP);A!==this.dragYStep&&(this.dragYStep=A,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+A*spacing$7.STEP+")"))}}function mouseUp(d){var g=d;d.type==="touchend"&&this.lastTouchMove&&(attachMissingTouchEventAttributes(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(g=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,g),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,g,b,A,w){var C=[];if(d.absEl.elemset){for(var x={},S=0;S<d.absEl.elemset.length;S++){var E=d.absEl.elemset[S];if(E)for(var B=E.getAttribute("class").split(" "),$=0;$<B.length;$++)x[B[$]]=!0}for(var P=0;P<Object.keys(x).length;P++)C.push(Object.keys(x)[P])}for(var k={},M=0;M<C.length;M++)findNumber(C[M],"abcjs-v",k,"voice"),findNumber(C[M],"abcjs-l",k,"line"),findNumber(C[M],"abcjs-m",k,"measure");d.staffPos&&(k.staffPos=d.staffPos);for(var R=w.target;R&&R.dataset&&!R.dataset.name&&R.tagName.toLowerCase()!=="svg";)R=R.parentNode;for(var F=w.target;F&&F.dataset&&!F.dataset.index&&F.tagName.toLowerCase()!=="svg";)F=F.parentNode;F&&F.dataset&&(k.name=F.dataset.name,k.clickedName=R.dataset.name,k.parentClasses=F.classList),R&&R.classList&&(k.clickedClasses=R.classList),k.selectableElement=d.svgEl;for(var L=0;L<this.listeners.length;L++)this.listeners[L](d.absEl.abcelem,d.absEl.tuneNumber,C.join(" "),k,{step:g,max:b,index:A,setSelection:setSelection.bind(this)},w)}function findNumber(d,g,b,A){if(d.indexOf(g)===0){var w=d.replace(g,""),C=parseInt(w,10);""+C===w&&(b[A]=C)}}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,g){clearSelection.bind(this)();for(var b=0;b<this.staffgroups.length;b++)for(var A=this.staffgroups[b].voices,w=0;w<A.length;w++)for(var C=A[w].children,x=0;x<C.length;x++){var S=C[x].abcelem.startChar,E=C[x].abcelem.endChar;(g>S&&d<E||g===d&&g===E)&&(this.selected[this.selected.length]=C[x],C[x].highlight(void 0,this.selectionColor))}}function getClassSet(d){var g=d.getAttribute("class");g||(g="");for(var b=g.split(" "),A={},w=0;w<b.length;w++)A[b[w]]=!0;return A}function setClassSet(d,g){var b=[];for(var A in g)g.hasOwnProperty(A)&&b.push(A);d.setAttribute("class",b.join(" "))}function addGlobalClass(d,g){if(d){var b=getClassSet(d.svg);b[g]=!0,setClassSet(d.svg,b)}}function removeGlobalClass(d,g){if(d){var b=getClassSet(d.svg);delete b[g],setClassSet(d.svg,b)}}var selection=setupSelection$1;function getBarYAt$3(d,g,b,A,w){return g+(A-g)/(b-d)*(w-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 g=calcDy(d.stemsUp,d.isgrace),b=d.elems[0],A=d.elems[d.elems.length-1],w=0,C=d.stemsUp?b.abcelem.maxpitch:b.abcelem.minpitch;w=minStem(b,d.stemsUp,C,w),w=minStem(A,d.stemsUp,C,w),w=Math.max(d.stemHeight,w+3);var x=calcYPos(d.average,d.elems.length,w,d.stemsUp,b.abcelem.averagepitch,A.abcelem.averagepitch,d.isflat,d.min,d.max,d.isgrace),S=calcXPos(d.stemsUp,b,A);d.addBeam({startX:S[0],endX:S[1],startY:x[0],endY:x[1],dy:g});for(var E=createAdditionalBeams(d.elems,d.stemsUp,d.beams[0],d.isgrace,g),B=0;B<E.length;B++)d.addBeam(E[B]);createStems(d.elems,d.stemsUp,d.beams[0],g,d.mainNote)}},getDurlog=function(d){return d===void 0?0:Math.floor(Math.log(d)/Math.log(2))};function minStem(d,g,b,A){if(!d.children)return A;for(var w=0;w<d.children.length;w++){var C=d.children[w];g&&C.top!==void 0&&C.c==="flags.ugrace"?A=Math.max(A,C.top-b):!g&&C.bottom!==void 0&&C.c==="flags.ugrace"&&(A=Math.max(A,b-C.bottom+7))}return A}function calcSlant(d,g,b,A){if(A)return 0;var w=d-g,C=b/2;return w>C&&(w=C),w<-C&&(w=-C),w}function calcDy(d,g){var b=d?spacing$6.STEP:-spacing$6.STEP;return g&&(b=b*.4),b}function calcXPos(d,g,b){var A=g.heads[d?0:g.heads.length-1],w=b.heads[d?0:b.heads.length-1],C=A.x;d&&(C+=A.w-.6);var x=w.x;return x+=d?w.w:.6,[C,x]}function calcYPos(d,g,b,A,w,C,x,S,E,B){var $=b-2,P=b-2,k=Math.round(A?Math.max(d+$,E+P):Math.min(d-$,S-P)),M=calcSlant(w,C,g,x),R=k+Math.floor(M/2),F=k+Math.floor(-M/2);return B||(A&&k<6||!A&&k>6)&&(R=6,F=6),[R,F]}function createStems(d,g,b,A,w){for(var C=0;C<d.length;C++){var x=d[C];if(!x.abcelem.rest){var S=!x.addExtra,E=S?w:x,B=x.heads[g?0:x.heads.length-1],$=1/5,P=B.pitch+(g?$:-$),k=g?B.w:0;S||(k+=B.dx);var M=B.x+k,R=getBarYAt$2(b.startX,b.startY,b.endX,b.endY,M),F=g?-.6:.6;g||(R-=A/2/spacing$6.STEP),S&&(k+=x.heads[0].dx),B.c==="noteheads.slash.quarter"&&(g?P+=1:P-=1);var L=new RelativeElement(null,k,0,P,{type:"stem",pitch2:R,linewidth:F});L.setX(E.x),E.addRight(L)}}}function createAdditionalBeams(d,g,b,A,w){for(var C=[],x=[],S=0;S<d.length;S++){var E=d[S];if(!E.abcelem.rest){var B=E.heads[g?0:E.heads.length-1],$=B.x+(g?B.w:0),P=getBarYAt$2(b.startX,b.startY,b.endX,b.endY,$),k=g?-1.5:1.5;A&&(k=k*2/3);var M=E.abcelem.duration;M===0&&(M=.25);for(var R=getDurlog(M);R<-3;R++){var F=-4-R;if(x[F]?x[F].single=!1:x[F]={x:$+(g?-.6:0),y:P+k*(F+1),durlog:R,single:!0},S>0&&E.abcelem.beambr&&E.abcelem.beambr<=F+1){x[F].split||(x[F].split=[x[F].x]);var L=calcXPos(g,d[S-1],E);x[F].split[x[F].split.length-1]>=L[0]&&(L[0]+=E.w),x[F].split.push(L[0]),x[F].split.push(L[1])}}for(var z=x.length-1;z>=0;z--)if(S===d.length-1||getDurlog(d[S+1].abcelem.duration)>-z-4){var U=$,W=P+k*(z+1);x[z].single&&(U=S===0?$+5:$-5,W=getBarYAt$2(b.startX,b.startY,b.endX,b.endY,U)+k*(z+1));var V={startX:x[z].x,endX:U,startY:x[z].y,endY:W,dy:w};if(x[z].split!==void 0){var Q=x[z].split;V.endX<=Q[Q.length-1]&&(Q[Q.length-1]-=E.w),Q.push(V.endX),V.split=x[z].split}C.push(V),x=x.slice(0,z)}}}return C}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 g=d.anchor1.parent.beam;if(d.hasBeam&&(g.elems[0]!==d.anchor1.parent||g.elems[g.elems.length-1]!==d.anchor2.parent)&&(d.hasBeam=!1),d.hasBeam){var b=isAbove(g)?d.anchor1.x+d.anchor1.w:d.anchor1.x;d.yTextPos=heightAtMidpoint(b,d.anchor2.x,g),d.yTextPos+=isAbove(g)?3:-2,d.xTextPos=xAtMidpoint(b,d.anchor2.x),d.top=d.yTextPos+1,d.bottom=d.yTextPos-2,isAbove(g)&&(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 A=0,w=0;w<d.middleElems.length;w++)A=Math.max(A,d.middleElems[w].top);A+=4,(A>d.startNote||A>d.endNote)&&(d.startNote=A,d.endNote=A),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,g,b){if(b.beams.length===0)return 0;b=b.beams[0];var A=d+(g-d)/2;return getBarYAt$1(b.startX,b.startY,b.endX,b.endY,A)}function xAtMidpoint(d,g){return d+(g-d)/2}var triplet$1=layoutTriplet$1,layoutBeam=beam$1,getBarYAt=getBarYAt_1,layoutTriplet=triplet$1,layoutVoice$1=function(d){for(var g=0;g<d.beams.length;g++)if(d.beams[g].type==="BeamElem"){layoutBeam(d.beams[g]),moveDecorations(d.beams[g]);for(var b=0;b<d.beams[g].elems.length;b++)d.adjustRange(d.beams[g].elems[b])}for(d.staff.specialY.chordLines=setLaneForChord(d.children),g=0;g<d.otherchildren.length;g++){var A=d.otherchildren[g];A.type==="TripletElem"&&(layoutTriplet(A),d.adjustRange(A))}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 g=1.5,b=0;b<d.elems.length;b++){var A=d.elems[b];if(A.top)for(var w=yAtNote(A,d),C=0;C<A.children.length;C++){var x=A.children[C];if(x.klass==="ornament"&&x.bottom-g<w){var S=w-x.bottom+g;x.bottom+=S,x.top+=S,x.pitch+=S,w=A.top=x.top}}}}function placeInLane(d,g){var b=g.getChordDim();if(b){for(var A=0;A<d.length;A++){var w=d[A]<b.left;if(w){A>0&&g.putChordInLane(A),d[A]=b.right;return}}d.push(b.right),g.putChordInLane(d.length-1)}}function setLaneForChord(d){var g=[0],b=[0],A,w,C;for(A=0;A<d.length;A++){for(w=0;w<d[A].children.length;w++)C=d[A].children[w],C.chordHeightAbove&&placeInLane(g,C);for(w=d[A].children.length-1;w>=0;w--)C=d[A].children[w],C.chordHeightBelow&&placeInLane(b,C)}return(g.length>1||b.length>1)&&setLane(d,g.length),{above:g.length,below:b.length}}function numAnnotationsBelow(d){for(var g=0,b=0;b<d.children.length;b++){var A=d.children[b];A.chordHeightBelow&&g++}return g}function setLane(d,g,b){for(var A=0;A<d.length;A++){numAnnotationsBelow(d[A]);for(var w=0;w<d[A].children.length;w++){var C=d[A].children[w];C.chordHeightAbove&&C.invertLane(g)}}}function yAtNote(d,g){return g=g.beams[0],getBarYAt(g.startX,g.startY,g.endX,g.endY,d.x)}var voice$1=layoutVoice$1,spacing$5=spacing_1,setUpperAndLowerElements$1=function(d,g){for(var b,A=0;A<g.staffs.length;A++){var w=g.staffs[A],C={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&&(w.originalTop=w.top,w.originalBottom=w.bottom),incTop(w,C,"lyricHeightAbove"),incTop(w,C,"chordHeightAbove",w.specialY.chordLines.above),w.specialY.endingHeightAbove&&(w.specialY.chordHeightAbove?w.top+=2:w.top+=w.specialY.endingHeightAbove+margin,C.endingHeightAbove=w.top),w.specialY.dynamicHeightAbove&&w.specialY.volumeHeightAbove?(w.top+=Math.max(w.specialY.dynamicHeightAbove,w.specialY.volumeHeightAbove)+margin,C.dynamicHeightAbove=w.top,C.volumeHeightAbove=w.top):(incTop(w,C,"dynamicHeightAbove"),incTop(w,C,"volumeHeightAbove")),incTop(w,C,"partHeightAbove"),incTop(w,C,"tempoHeightAbove"),w.specialY.lyricHeightBelow&&(w.specialY.lyricHeightBelow+=d.spacing.vocal/spacing$5.STEP,C.lyricHeightBelow=w.bottom,w.bottom-=w.specialY.lyricHeightBelow+margin),w.specialY.chordHeightBelow){C.chordHeightBelow=w.bottom;var x=w.specialY.chordHeightBelow;w.specialY.chordLines.below&&(x*=w.specialY.chordLines.below),w.bottom-=x+margin}w.specialY.volumeHeightBelow&&w.specialY.dynamicHeightBelow?(C.volumeHeightBelow=w.bottom,C.dynamicHeightBelow=w.bottom,w.bottom-=Math.max(w.specialY.volumeHeightBelow,w.specialY.dynamicHeightBelow)+margin):w.specialY.volumeHeightBelow?(C.volumeHeightBelow=w.bottom,w.bottom-=w.specialY.volumeHeightBelow+margin):w.specialY.dynamicHeightBelow&&(C.dynamicHeightBelow=w.bottom,w.bottom-=w.specialY.dynamicHeightBelow+margin),d.showDebug&&d.showDebug.indexOf("box")>=0&&(w.positionY=C);for(var S=0;S<w.voices.length;S++){var E=g.voices[w.voices[S]];setUpperAndLowerVoiceElements(C,E,d.spacing)}if(b!==void 0){var B=w.top-10,$=b+B,P=d.spacing.systemStaffSeparation/spacing$5.STEP,k=P-$;k>0&&(w.top+=k)}b=2-w.bottom}},margin=1;function incTop(d,g,b,A){if(d.specialY[b]){var w=d.specialY[b];A&&(w*=A),d.top+=w+margin,g[b]=d.top}}function setUpperAndLowerVoiceElements(d,g,b){var A,w;for(A=0;A<g.children.length;A++)w=g.children[A],setUpperAndLowerAbsoluteElements(d,w,b);for(A=0;A<g.otherchildren.length;A++)switch(w=g.otherchildren[A],w.type){case"CrescendoElem":setUpperAndLowerCrescendoElements(d,w);break;case"DynamicDecoration":setUpperAndLowerDynamicElements(d,w);break;case"EndingElem":setUpperAndLowerEndingElements(d,w);break}}function setUpperAndLowerAbsoluteElements(d,g,b){for(var A=0;A<g.children.length;A++){var w=g.children[A];for(var C in g.specialY)g.specialY.hasOwnProperty(C)&&w[C]&&(w.pitch=d[C],w.top===void 0&&(w.type==="TempoElement"?setUpperAndLowerTempoElement(d,w):setUpperAndLowerRelativeElements(d,w,b),g.pushTop(w.top),g.pushBottom(w.bottom)))}}function setUpperAndLowerCrescendoElements(d,g){g.dynamicHeightAbove?g.pitch=d.dynamicHeightAbove:g.pitch=d.dynamicHeightBelow}function setUpperAndLowerDynamicElements(d,g){g.volumeHeightAbove?g.pitch=d.volumeHeightAbove:g.pitch=d.volumeHeightBelow}function setUpperAndLowerEndingElements(d,g){g.pitch=d.endingHeightAbove-2}function setUpperAndLowerTempoElement(d,g){if(g.pitch=d.tempoHeightAbove,g.top=d.tempoHeightAbove,g.bottom=d.tempoHeightAbove,g.note){var b=g.pitch-g.totalHeightInPitches+1;g.note.top=b,g.note.bottom=b;for(var A=0;A<g.note.children.length;A++){var w=g.note.children[A];w.top+=b,w.bottom+=b,w.pitch+=b,w.pitch2!==void 0&&(w.pitch2+=b)}}}function setUpperAndLowerRelativeElements(d,g,b){switch(g.type){case"part":g.top=d.partHeightAbove+g.height,g.bottom=d.partHeightAbove;break;case"text":case"chord":g.chordHeightAbove?(g.top=d.chordHeightAbove,g.bottom=d.chordHeightAbove):(g.top=d.chordHeightBelow,g.bottom=d.chordHeightBelow);break;case"lyric":g.lyricHeightAbove?(g.top=d.lyricHeightAbove,g.bottom=d.lyricHeightAbove):(g.top=d.lyricHeightBelow+b.vocal/spacing$5.STEP,g.bottom=d.lyricHeightBelow+b.vocal/spacing$5.STEP,g.pitch-=b.vocal/spacing$5.STEP);break;case"debug":g.top=d.chordHeightAbove,g.bottom=d.chordHeightAbove;break}(g.pitch===void 0||g.top===void 0)&&console.error("RelativeElement position not set.",g.type,g.pitch,g.top,d)}var setUpperAndLowerElements_1=setUpperAndLowerElements$1,VoiceElement=function d(){};VoiceElement.beginLayout=function(d,g){g.i=0,g.durationindex=0,g.startx=d,g.minx=d,g.nextx=d,g.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,g,b,A,w){var C=b.children[b.i];if(!C)return 0;var x=d-b.minx,S=b.durationindex+C.duration>0?A:0;if(C.abcelem.el_type==="note"&&!C.abcelem.rest&&b.voicenumber!==0&&w){var E=w.children[w.i],B=E&&(C.abcelem.maxpitch<=E.abcelem.maxpitch+1&&C.abcelem.maxpitch>=E.abcelem.minpitch-1||C.abcelem.minpitch<=E.abcelem.maxpitch+1&&C.abcelem.minpitch>=E.abcelem.minpitch-1);if(B&&C.abcelem.minpitch===E.abcelem.minpitch&&C.abcelem.maxpitch===E.abcelem.maxpitch&&E.heads&&E.heads.length>0&&C.heads&&C.heads.length>0&&E.heads[0].c===C.heads[0].c&&(B=!1),B){var $=E.heads&&E.heads.length>0?E.heads[0].realWidth:E.fixed.w;C.adjustedWidth||(C.adjustedWidth=$+C.w),C.w=C.adjustedWidth;for(var P=0;P<C.children.length;P++){var k=C.children[P];k.name.indexOf("accidental")<0&&(k.adjustedWidth||(k.adjustedWidth=k.dx+$),k.dx=k.adjustedWidth)}}}var M=getExtraWidth(C,S);return x<M&&(b.i===0||C.type!=="bar"||b.children[b.i-1].type!=="part"&&b.children[b.i-1].type!=="tempo")&&(d+=M-x),C.setX(d),b.spacingduration=C.duration,b.minx=d+getMinWidth(C),b.i!==b.children.length-1&&(b.minx+=C.minspacing),this.updateNextX(d,g,b),d};VoiceElement.shiftRight=function(d,g){var b=g.children[g.i];b&&(b.setX(b.x+d),g.minx+=d,g.nextx+=d)};VoiceElement.updateNextX=function(d,g,b){b.nextx=d+g*Math.sqrt(b.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,g){var b=0;return(d.type==="note"||d.type==="bar")&&(b=g),-d.extraw+b}function getMinWidth(d){return d.w}var voiceElements=VoiceElement,layoutVoiceElements=voiceElements;function checkLastBarX(d){for(var g=0,b=0;b<d.length;b++){var A=d[b];if(A.children.length>0){var w=A.children.length-1,C=A.children[w];if(C.abcelem.el_type==="bar"){var x=C.children[0].x;x>g?g=x:C.children[0].x=g}}}}var layoutStaffGroup$1=function(d,g,b,A,w){var C=1e-7,x=0,S=1e3,E=w;A.startx=E;var B,$=0;for(b&&console.log("init layout",d),B=0;B<A.voices.length;B++)layoutVoiceElements.beginLayout(E,A.voices[B]);for(var P=0;!finished(A.voices);){for($=null,B=0;B<A.voices.length;B++)!layoutVoiceElements.layoutEnded(A.voices[B])&&(!$||getDurationIndex(A.voices[B])<$)&&($=getDurationIndex(A.voices[B]));var k=[],M=[];for(B=0;B<A.voices.length;B++){var R=getDurationIndex(A.voices[B]);R-$>C?M.push(A.voices[B]):k.push(A.voices[B])}P=0;var F=0;for(B=0;B<k.length;B++)layoutVoiceElements.getNextX(k[B])>E&&(E=layoutVoiceElements.getNextX(k[B]),P=layoutVoiceElements.getSpacingUnits(k[B]),F=k[B].spacingduration);x+=P,S=Math.min(S,P),b&&console.log("currentduration: ",$,x,S);var L=void 0;for(B=0;B<k.length;B++){var z=k[B];z.voicenumber===0&&(L=B);var U=L!==void 0&&k[L].voicenumber!==z.voicenumber?k[L]:void 0;isSameStaff(z,U)||(U=void 0);var W=layoutVoiceElements.layoutOneItem(E,d,z,g.minPadding,U),V=W-E;if(V>0){E=W;for(var Q=0;Q<B;Q++)layoutVoiceElements.shiftRight(V,k[Q])}}for(B=0;B<M.length;B++)M[B].spacingduration-=F,layoutVoiceElements.updateNextX(E,d,M[B]);for(B=0;B<k.length;B++){var K=k[B];layoutVoiceElements.updateIndices(K)}}for(B=0;B<A.voices.length;B++)layoutVoiceElements.getNextX(A.voices[B])>E&&(E=layoutVoiceElements.getNextX(A.voices[B]),P=layoutVoiceElements.getSpacingUnits(A.voices[B]));return checkLastBarX(A.voices),x+=P,A.setWidth(E),{spacingUnits:x,minSpace:S}};function finished(d){for(var g=0;g<d.length;g++)if(!layoutVoiceElements.layoutEnded(d[g]))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,g){return!d||!d.staff||!d.staff.voices||d.staff.voices.length===0||!g||!g.staff||!g.staff.voices||g.staff.voices.length===0?!1:d.staff.voices[0]===g.staff.voices[0]}var staffGroup$1=layoutStaffGroup$1;function getLeftEdgeOfStaff$1(d,g,b,A,w){var C=d.padding.left,x=0,S,E;for(S=0;S<b.length;S++)b[S].header&&(E=g.calc(b[S].header,"voicefont",""),x=Math.max(x,E.width));if(x=addBraceSize(x,A,g),x=addBraceSize(x,w,g),x){var B=g.calc("A","voicefont","");x+=B.width}C+=x;var $=0;return $=setBraceLocation(A,C,$),$=setBraceLocation(w,C,$),C+$}function addBraceSize(d,g,b){if(g){for(var A=0;A<g.length;A++)if(g[A].header){var w=b.calc(g[A].header,"voicefont","");d=Math.max(d,w.width)}}return d}function setBraceLocation(d,g,b){if(d)for(var A=0;A<d.length;A++)setLocation(g,d[A]),b=Math.max(b,d[A].getWidth());return b}function setLocation(d,g){g.x=d}var getLeftEdgeOfStaff_1=getLeftEdgeOfStaff$1,layoutVoice=voice$1,setUpperAndLowerElements=setUpperAndLowerElements_1,layoutStaffGroup=staffGroup$1,getLeftEdgeOfStaff=getLeftEdgeOfStaff_1,layout$2=function(d,g,b,A){var w,C,x=b;for(w=0;w<g.lines.length;w++)C=g.lines[w],C.staff&&(setXSpacing(d,b,A,C.staffGroup,g.formatting,w===g.lines.length-1,!1),C.staffGroup.w>x&&(x=C.staffGroup.w));for(w=0;w<g.lines.length;w++)if(C=g.lines[w],C.staffGroup&&C.staffGroup.voices){for(var S=0;S<C.staffGroup.voices.length;S++)layoutVoice(C.staffGroup.voices[S]);setUpperAndLowerElements(d,C.staffGroup)}for(w=0;w<g.lines.length;w++)C=g.lines[w],C.staffGroup&&C.staffGroup.setHeight();return x},setXSpacing=function(d,g,b,A,w,C,x){for(var S=getLeftEdgeOfStaff(d,A.getTextSize,A.voices,A.brace,A.bracket),E=b,B=0;B<8;B++){var $=layoutStaffGroup(E,d,x,A,S);if(E=calcHorizontalSpacing(C,w.stretchlast,g+d.padding.left,A.w,E,$.spacingUnits,$.minSpace,d.padding.left+d.padding.right),x&&console.log("setXSpace",B,A.w,E,A.minspace),E===null)break}centerWholeRests(A.voices)};function calcHorizontalSpacing(d,g,b,A,w,C,x,S){if(d)if(g===void 0){if(A/b<.66)return null}else{var E=1-(A+S)/b,B=E<g;if(!B)return null}if(Math.abs(b-A)<2)return null;var $=C*w,P=A-$;return C>0?(w=(b-P)/C,w*x>50&&(w=50/x),w):null}function centerWholeRests(d){for(var g=0;g<d.length;g++)for(var b=d[g],A=1;A<b.children.length-1;A++){var w=b.children[A];if(w.abcelem.rest&&(w.abcelem.rest.type==="whole"||w.abcelem.rest.type==="multimeasure")){var C=b.children[A-1],x=b.children[A+1];w.center(C,x)}}}var layout_1=layout$2,Classes$1=function d(g){this.shouldAddClasses=g.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,g=0;g<this.lineNumber;g++)d+=this.measureTotalPerLine[g]?this.measureTotalPerLine[g]: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 g=[];if(d&&d.length>0&&g.push(d),d==="tab-number")return g.join(" ");if(d==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&g.push("l"+this.lineNumber),this.measureNumber!==null&&g.push("m"+this.measureNumber),this.measureNumber!==null&&g.push("mm"+this.measureTotal()),this.voiceNumber!==null&&g.push("v"+this.voiceNumber),d&&(d.indexOf("note")>=0||d.indexOf("rest")>=0||d.indexOf("lyric")>=0)&&this.noteNumber!==null&&g.push("n"+this.noteNumber),g.length>0){g=g.join(" "),g=g.split(" ");for(var b=0;b<g.length;b++)g[b].indexOf("abcjs-")!==0&&g[b].length>0&&(g[b]="abcjs-"+g[b])}return g.join(" ")};var classes$2=Classes$1,GetFontAndAttr$1=function d(g,b){this.formatting=g,this.classes=b};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,g){var b;typeof d=="string"?(b=this.formatting[d],b?b={face:b.face,size:Math.round(b.size*4/3),decoration:b.decoration,style:b.style,weight:b.weight,box:b.box}:b={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):b={face:d.face,size:Math.round(d.size*4/3),decoration:d.decoration,style:d.style,weight:d.weight,box:d.box};var A=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;b.padding=b.size*A;var w={"font-size":b.size,"font-style":b.style,"font-family":b.face,"font-weight":b.weight,"text-decoration":b.decoration,class:this.classes.generate(g)};return{font:b,attr:w}};var getFontAndAttr=GetFontAndAttr$1,GetTextSize$1=function d(g,b){this.getFontAndAttr=g,this.svg=b};GetTextSize$1.prototype.updateFonts=function(d){this.getFontAndAttr.updateFonts(d)};GetTextSize$1.prototype.attr=function(d,g){return this.getFontAndAttr.calc(d,g)};GetTextSize$1.prototype.calc=function(d,g,b,A){var w;typeof g=="string"?w=this.attr(g,b):w={font:{face:g.face,size:g.size,decoration:g.decoration,style:g.style,weight:g.weight},attr:{"font-size":g.size,"font-style":g.style,"font-family":g.face,"font-weight":g.weight,"text-decoration":g.decoration,class:this.getFontAndAttr.classes.generate(b)}};var C=this.svg.getTextSize(d,w.attr,A);return w.font.box?{height:C.height+w.font.padding*4,width:C.width+w.font.padding*4}:C};GetTextSize$1.prototype.baselineToCenter=function(d,g,b,A,w){var C=this.calc(d,g,b).height,x=this.attr(g,b).font.size;return C*.5+(w-A-2)*x};var getTextSize=GetTextSize$1,sprintf$7=function(){for(var d=0,g,b=arguments[d++],A=[],w,C,x,S;b;){if(w=/^[^\x25]+/.exec(b))A.push(w[0]);else if(w=/^\x25{2}/.exec(b))A.push("%");else if(w=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)){if((g=arguments[w[1]||d++])==null||g==null)throw"Too few arguments.";if(/[^s]/.test(w[7])&&typeof g!="number")throw"Expecting number but found "+typeof g;switch(w[7]){case"b":g=g.toString(2);break;case"c":g=String.fromCharCode(g);break;case"d":g=parseInt(g);break;case"e":g=w[6]?g.toExponential(w[6]):g.toExponential();break;case"f":g=w[6]?parseFloat(g).toFixed(w[6]):parseFloat(g);break;case"o":g=g.toString(8);break;case"s":g=(g=String(g))&&w[6]?g.substring(0,w[6]):g;break;case"u":g=Math.abs(g);break;case"x":g=g.toString(16);break;case"X":g=g.toString(16).toUpperCase();break}g=/[def]/.test(w[7])&&w[2]&&g>0?"+"+g:g,x=w[3]?w[3]=="0"?"0":w[3][1]:" ",S=w[5]-String(g).length,C=w[5]?str_repeat(x,S):"",A.push(w[4]?g+C:C+g)}else throw"Huh ?!";b=b.substring(w[0].length)}return A.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,g,b){var A=g.y;if(g.lane){var w=g.dim.font.size*.25;A+=(g.dim.font.size+w)*g.lane}var C;g.dim?(C=g.dim,C.attr.class=g.klass):C=d.controller.getFontAndAttr.calc(g.type,g.klass),g.anchor&&(C.attr["text-anchor"]=g.anchor),C.attr.x=g.x,C.attr.y=A,g.centerVertically||(C.attr.y+=C.font.size),g.type==="debugfont"&&(console.log("Debug msg: "+g.text),C.attr.stroke="#ff0000"),g.cursor&&(C.attr.cursor=g.cursor);var x=g.text.replace(/\n\n/g,`
  2368. `);x=x.replace(/^\n/,` 
  2369. `),C.font.box&&(b||d.paper.openGroup({klass:C.attr.class,fill:d.foregroundColor,"data-name":g.name}),C.attr["text-anchor"]==="end"?C.attr.x-=C.font.padding:C.attr["text-anchor"]==="start"&&(C.attr.x+=C.font.padding),C.attr.y+=C.font.padding,delete C.attr.class),g.noClass&&delete C.attr.class,C.attr.x=roundNumber$9(C.attr.x),C.attr.y=roundNumber$9(C.attr.y),g.name&&(C.attr["data-name"]=g.name);var S=d.paper.text(x,C.attr);if(C.font.box){var E=S.getBBox(),B=0;C.attr["text-anchor"]==="middle"?B=E.width/2+C.font.padding:C.attr["text-anchor"]==="end"&&(B=E.width+C.font.padding*2);var $=0;g.centerVertically&&($=E.height-C.font.padding),d.paper.rect({"data-name":"box",x:Math.round(g.x-B),y:Math.round(A-$),width:Math.round(E.width+C.font.padding*2),height:Math.round(E.height+C.font.padding*2)}),b||(S=d.paper.closeGroup())}return S}var text=renderText$8,sprintf$6=sprintf_1,spacing$4=spacing_1,renderText$7=text;function drawBrace$1(d,g,b){var A=g.startVoice.staff.absoluteY-spacing$4.STEP*10;return g.endVoice&&g.endVoice.staff?g.endY=g.endVoice.staff.absoluteY-spacing$4.STEP*2:g.lastContinuedVoice&&g.lastContinuedVoice.staff?g.endY=g.lastContinuedVoice.staff.absoluteY-spacing$4.STEP*2:g.endY=g.startVoice.staff.absoluteY-spacing$4.STEP*2,draw$3(d,g.x,A,g.endY,g.type,g.header,b)}function straightPath(d,g,b,A,w){g+=spacing$4.STEP;var C=spacing$4.STEP*.75,x=spacing$4.STEP*.75,S=A-b,E=sprintf$6("M %f %f l %f %f l %f %f l %f %f z",g,b-x,0,S+x*2,C,0,0,-(S+x*2)),B=spacing$4.STEP*2,$=spacing$4.STEP;return E+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",g+C,b-x,B*.6,$*.2,B,-$,-B*.1,$*.3,-B,$+spacing$4.STEP),E+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",g+C,b+x+S,B*.6,-$*.2,B,$,-B*.1,-$*.3,-B,-$-spacing$4.STEP),d.paper.path({path:E,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(w),"data-name":w})}function curvyPath(d,g,b,A,w){var C=A-b,x=curve(g,b,[7.5,-8,21,0,18.5,-10.5,7.5],[0,C/5.5,C/3.14,C/2,C/2.93,C/4.88,0]);return x+=curve(g,b,[0,17.5,-7.5,6.6,-5,20,0],[C/2,C/1.46,C/1.22,C,C/1.19,C/1.42,C/2]),d.paper.path({path:x,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(w),"data-name":w})}function curve(d,g,b,A){return sprintf$6("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",d+b[0],g+A[0],d+b[1],g+A[1],d+b[2],g+A[2],d+b[3],g+A[3],d+b[4],g+A[4],d+b[5],g+A[5],d+b[6],g+A[6])}var draw$3=function(d,g,b,A,w,C,x){var S;if(C){d.paper.openGroup({klass:d.controller.classes.generate("staff-extra voice-name"),"data-name":w});var E=b+(A-b)/2;E=E-d.controller.getTextSize.baselineToCenter(C,"voicefont","staff-extra voice-name",0,1),renderText$7(d,{x:d.padding.left,y:E,text:C,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return w==="brace"?S=curvyPath(d,g,b,A,w):w==="bracket"&&(S=straightPath(d,g,b,A,w)),C&&(S=d.paper.closeGroup()),x.wrapSvgEl({el_type:w,startChar:-1,endChar:-1},S),S},brace=drawBrace$1;function printPath$5(d,g,b){var A=d.paper.path(g);return A}var printPath_1=printPath$5,sprintf$5=sprintf_1,printPath$4=printPath_1,roundNumber$8=roundNumber_1;function drawGlissando$1(d,g,b){(!g.anchor1||!g.anchor2||!g.anchor1.heads||!g.anchor2.heads||g.anchor1.heads.length===0||g.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var A=4,w=d.calcY(g.anchor1.heads[0].pitch),C=d.calcY(g.anchor2.heads[0].pitch),x=g.anchor1.x+g.anchor1.w/2,S=g.anchor2.x+g.anchor2.w/2,E=lineLength(x,w,S,C),B=g.anchor1.w/2+A,$=g.anchor2.w/2+A,P=slope(x,w,S,C),k=getY$1(w,P,B);getY$1(C,P,-$);var M=numSquigglies(E-B-$),R=drawSquiggly(d,x+B,k,M,P);return b.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},R),[R]}function lineLength(d,g,b,A){var w=b-d,C=A-g;return Math.sqrt(w*w+C*C)}function slope(d,g,b,A){return(A-g)/(b-d)}function getY$1(d,g,b){return roundNumber$8(d+b*g)}function numSquigglies(d){var g=5;return Math.max(2,Math.floor((d-g*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,g){for(var b="",A=0;A<d.length;A++)b+="l"+d[A][0]+" "+getY$1(d[A][1],g,d[A][0]);return b}var drawSquiggly=function(d,g,b,A,w){var C=sprintf$5("M %f %f",g,b);C+=segment(leftStart,w);var x;for(x=0;x<A;x++)C+=segment(top,w);for(C+=segment(right,w),x=0;x<A;x++)C+=segment(bottom,w);return C+=segment(leftEnd,w)+"z",printPath$4(d,{path:C,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,g,b){g.pitch===void 0&&window.console.error("Crescendo Element y-coordinate not set.");var A=d.calcY(g.pitch)+4,w=8,C=g.anchor1?g.anchor1.x:0,x=g.anchor2?g.anchor2.x:800,S;return g.dir==="<"?S=drawLine$1(d,A+w/2,A,A+w/2,A+w,C,x):S=drawLine$1(d,A,A+w/2,A+w,A+w/2,C,x),b.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},S),[S]}var drawLine$1=function(d,g,b,A,w,C,x){g=roundNumber$7(g),b=roundNumber$7(b),A=roundNumber$7(A),w=roundNumber$7(w),C=roundNumber$7(C),x=roundNumber$7(x);var S=sprintf$4("M %f %f L %f %f M %f %f L %f %f",C,g,x,b,C,A,x,w);return printPath$3(d,{path:S,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,g){this.paper=d,this.controller=g,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 g=1,b=d.length;g<b;g++)d[g][0]==="m"&&(this.lastM[0]+=d[g][1],this.lastM[1]+=d[g][2]),this.path.push(d[g])}};Group.prototype.endGroup=function(d,g){this.ingroup=!1;for(var b="",A=0;A<this.path.length;A++)b+=this.path[A].join(" ");this.path=[];var w=this.paper.closeGroup();return w&&(w.setAttribute("class",this.controller.classes.generate(d)),w.setAttribute("fill",this.controller.renderer.foregroundColor),w.setAttribute("stroke","none"),w.setAttribute("data-name",g)),w};var elementGroup$3=new Group,groupElements=elementGroup$3,renderText$6=text,glyphs$1=glyphs_1,elementGroup$2=groupElements;function printSymbol$2(d,g,b,A,w){var C,x;if(!A)return null;if(A.length>1&&A.indexOf(".")<0){var S=elementGroup$2.isInGroup()?"":w.klass;d.paper.openGroup({"data-name":w.name,klass:S});for(var E=0,B=0;B<A.length;B++){var $=A[B];x=glyphs$1.getYCorr($),C=glyphs$1.printSymbol(g+E,d.calcY(b+x),$,d.paper,{stroke:w.stroke,fill:w.fill}),C?B<A.length-1&&(E+=kernSymbols($,A[B+1],glyphs$1.getSymbolWidth($))):renderText$6(d,{x:g,y:d.y,text:"no symbol:"+A,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}var P=d.paper.closeGroup();return P}else return x=glyphs$1.getYCorr(A),elementGroup$2.isInGroup()?C=glyphs$1.printSymbol(g,d.calcY(b+x),A,d.paper,{"data-name":w.name}):C=glyphs$1.printSymbol(g,d.calcY(b+x),A,d.paper,{klass:w.klass,stroke:w.stroke,fill:w.fill,"data-name":w.name}),C||(renderText$6(d,{x:g,y:d.y,text:"no symbol:"+A,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}function kernSymbols(d,g,b){var A=b;return d==="f"&&g==="f"&&(A=A*2/3),d==="p"&&g==="p"&&(A=A*5/6),d==="f"&&g==="z"&&(A=A*5/8),A}var printSymbol_1=printSymbol$2,printSymbol$1=printSymbol_1;function drawDynamics$1(d,g,b){g.pitch===void 0&&window.console.error("Dynamic Element y-coordinate not set.");var A=1,w=1,C=printSymbol$1(d,g.anchor.x,g.pitch,g.dec,{scalex:A,scaley:w,klass:d.controller.classes.generate("decoration dynamics"),fill:d.foregroundColor,stroke:"none",name:"dynamics"});return b.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:g.dec},C),[C]}var dynamics=drawDynamics$1,sprintf$3=sprintf_1,renderText$5=text,printPath$2=printPath_1,roundNumber$5=roundNumber_1;function drawTriplet$1(d,g,b){d.paper.openGroup({klass:d.controller.classes.generate("triplet "+g.durationClass),"data-name":"triplet"}),g.hasBeam||drawBracket(d,g.anchor1.x,g.startNote,g.anchor2.x+g.anchor2.w,g.endNote),renderText$5(d,{x:g.xTextPos,y:d.calcY(g.yTextPos-1),text:""+g.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+g.number},!0);var A=d.paper.closeGroup();return b.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},A),A}function drawLine(d,g,b,A){return sprintf$3("M %f %f L %f %f",roundNumber$5(d),roundNumber$5(g),roundNumber$5(b),roundNumber$5(A))}function drawBracket(d,g,b,A,w){b=d.calcY(b),w=d.calcY(w);var C=5,x="";x+=drawLine(g,b,g,b+C),x+=drawLine(A,w,A,w+C);var S=g+(A-g)/2,E=8,B=(w-b)/(A-g),$=S-E,P=b+($-g)*B;x+=drawLine(g,b,$,P);var k=S+E,M=b+(k-g)*B;x+=drawLine(k,M,A,w),printPath$2(d,{path:x,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,g,b,A,w){g.pitch===void 0&&window.console.error("Ending Element y-coordinate not set.");var C=roundNumber$4(d.calcY(g.pitch)),x=20,S="";g.anchor1&&(b=roundNumber$4(g.anchor1.x+g.anchor1.w),S+=sprintf$2("M %f %f L %f %f ",b,C,b,roundNumber$4(C+x))),g.anchor2&&(A=roundNumber$4(g.anchor2.x),S+=sprintf$2("M %f %f L %f %f ",A,C,A,roundNumber$4(C+x))),S+=sprintf$2("M %f %f L %f %f ",b,C,A,C),d.paper.openGroup({klass:d.controller.classes.generate("ending"),"data-name":"ending"}),printPath$1(d,{path:S,stroke:d.foregroundColor,fill:d.foregroundColor,"data-name":"line"}),g.anchor1&&renderText$4(d,{x:roundNumber$4(b+5),y:roundNumber$4(d.calcY(g.pitch-.5)),text:g.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:g.text});var E=d.paper.closeGroup();return w.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},E),[E]}var ending=drawEnding$1,sprintf$1=sprintf_1,roundNumber$3=roundNumber_1;function drawTie$1(d,g,b,A,w){layout$1(g,b,A);var C="";g.anchor1?C+="abcjs-start-m"+g.anchor1.parent.counters.measure+"-n"+g.anchor1.parent.counters.note:C+="abcjs-start-edge",g.anchor2?C+=" abcjs-end-m"+g.anchor2.parent.counters.measure+"-n"+g.anchor2.parent.counters.note:C+=" abcjs-end-edge",g.hint&&(C="abcjs-hint");var x=g.fixedY?1.5:0,S=drawArc(d,g.startX,g.endX,g.startY+x,g.endY+x,g.above,C,g.isTie,g.dotted);return w.wrapSvgEl({el_type:"slur",startChar:-1,endChar:-1},S),[S]}var layout$1=function(d,g,b){!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(g,b),d.calcTieY()):(d.calcSlurDirection(),d.calcX(g,b),d.calcSlurY()),d.avoidCollisionAbove()},drawArc=function(d,g,b,A,w,C,x,S,E){var B=S?1.2:1.5;g=roundNumber$3(g+6),b=roundNumber$3(b+4),A=A+(C?B:-B),w=w+(C?B:-B);var $=roundNumber$3(d.calcY(A)),P=roundNumber$3(d.calcY(w)),k=b-g,M=P-$,R=Math.sqrt(k*k+M*M),F=k/R,L=M/R,z=R/3.5,U=S?10:25,W=(C?-1:1)*Math.min(U,Math.max(4,z)),V=roundNumber$3(g+z*F-W*L),Q=roundNumber$3($+z*L+W*F),K=roundNumber$3(b-z*F-W*L),G=roundNumber$3(P-z*L+W*F),X=2;x?x+=" slur":x="slur",x+=S?" tie":" legato";var J;if(E){x+=" dotted";var re=sprintf$1("M %f %f C %f %f %f %f %f %f",g,$,V,Q,K,G,b,P);J=d.paper.path({path:re,stroke:d.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:d.controller.classes.generate(x),"data-name":S?"tie":"slur"})}else{var fe=sprintf$1("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",g,$,V,Q,K,G,b,P,roundNumber$3(K-X*L),roundNumber$3(G+X*F),roundNumber$3(V-X*L),roundNumber$3(Q+X*F),g,$);J=d.paper.path({path:fe,stroke:"none",fill:d.foregroundColor,class:d.controller.classes.generate(x),"data-name":S?"tie":"slur"})}return J},tie=drawTie$1,printPath=printPath_1,roundNumber$2=roundNumber_1;function drawBeam$1(d,g){if(g.beams.length!==0){for(var b="",A=0;A<g.beams.length;A++){var w=g.beams[A];if(w.split){for(var C=getSlope(d,w.startX,w.startY,w.endX,w.endY),x=[],S=0;S<w.split.length;S+=2)x.push([w.split[S],w.split[S+1]]);for(S=0;S<x.length;S++){var E=getY(w.startX,w.startY,C,x[S][0]),B=getY(w.startX,w.startY,C,x[S][1]);b+=draw$2(d,x[S][0],E,x[S][1],B,w.dy)}}else b+=draw$2(d,w.startX,w.startY,w.endX,w.endY,w.dy)}var $=("abcjs-d"+g.duration).replace(/\./g,"-"),P=d.controller.classes.generate("beam-elem "+$),k=printPath(d,{path:b,stroke:"none",fill:d.foregroundColor,class:P});return[k]}}function draw$2(d,g,b,A,w,C){b=roundNumber$2(d.calcY(b)),w=roundNumber$2(d.calcY(w)),g=roundNumber$2(g),A=roundNumber$2(A);var x=roundNumber$2(b+C),S=roundNumber$2(w+C);return"M"+g+" "+b+" L"+A+" "+w+"L"+A+" "+S+" L"+g+" "+x+"z"}function getSlope(d,g,b,A,w){return(w-b)/(A-g)}function getY(d,g,b,A){var w=A-d;return g+w*b}var beam=drawBeam$1,elementGroup$1=groupElements,roundNumber$1=roundNumber_1;function printStem$2(d,g,b,A,w,C,x){if(b<0||A<w){var S=roundNumber$1(w);w=roundNumber$1(A),A=S}else A=roundNumber$1(A),w=roundNumber$1(w);g=roundNumber$1(g);var E=roundNumber$1(g+b);if(d.firefox112){g+=b/2;var $={x1:g,x2:g,y1:A,y2:w,stroke:d.foregroundColor,"stroke-width":Math.abs(b)};return C&&($.class=C),x&&($["data-name"]=x),d.paper.lineToBack($)}for(var B=[["M",g,A],["L",g,w],["L",E,w],["L",E,A],["z"]],$={path:""},P=0;P<B.length;P++)$.path+=B[P].join(" ");return C&&($.class=C),x&&($["data-name"]=x),elementGroup$1.isInGroup()||($.stroke="none",$.fill=d.foregroundColor),d.paper.pathToBack($)}var printStem_1=printStem$2,sprintf=sprintf_1,roundNumber=roundNumber_1;function printLine$1(d,g,b,A,w,C,x){var S=d.foregroundColor;g=roundNumber(g),b=roundNumber(b);var E=roundNumber(A-x),B=roundNumber(A+x);if(d.firefox112){A+=x/2;var $={x1:g,x2:b,y1:A,y2:A,stroke:d.foregroundColor,"stroke-width":Math.abs(x*2)};return w&&($.class=w),C&&($["data-name"]=C),d.paper.lineToBack($)}var P=sprintf("M %f %f L %f %f L %f %f L %f %f z",g,E,b,E,b,B,g,B),k={path:P,stroke:"none",fill:S};C&&(k["data-name"]=C),w&&(k.class=w);var M=d.paper.pathToBack(k);return M}var printLine_1=printLine$1,printLine=printLine_1;function printStaffLine$2(d,g,b,A,w,C,x){var S=d.calcY(A);return printLine(d,g,b,S,w,C,x)}var staffLine=printStaffLine$2,renderText$3=text,printStem$1=printStem_1,printStaffLine$1=staffLine,printSymbol=printSymbol_1;function drawRelativeElement$2(d,g,b){g.pitch===void 0&&window.console.error(g.type+" Relative Element y-coordinate not set.");var A=d.calcY(g.pitch);switch(g.type){case"symbol":if(g.c===null)return null;var w="symbol";g.klass&&(w+=" "+g.klass),g.graphelem=printSymbol(d,g.x,g.pitch,g.c,{scalex:g.scalex,scaley:g.scaley,klass:d.controller.classes.generate(w),name:g.name});break;case"debug":g.graphelem=renderText$3(d,{x:g.x,y:d.calcY(15),text:""+g.c,type:"debugfont",klass:d.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:g.dim},!1);break;case"tabNumber":var C="middle",x="tabnumberfont",S="tab-number";g.isGrace&&(x="tabgracefont",A+=2.5,S="tab-grace"),g.graphelem=renderText$3(d,{x:g.x,y:A,text:""+g.c,type:x,klass:d.controller.classes.generate(S),anchor:C,centerVertically:!1,dim:g.dim,cursor:"default"},!1);break;case"barNumber":g.graphelem=renderText$3(d,{x:g.x,y:A,text:""+g.c,type:"measurefont",klass:d.controller.classes.generate("bar-number"),anchor:"middle",dim:g.dim,name:"bar-number"},!0);break;case"lyric":g.graphelem=renderText$3(d,{x:g.x,y:A,text:g.c,type:"vocalfont",klass:d.controller.classes.generate("lyric"),anchor:"middle",dim:g.dim,name:"lyric"},!1);break;case"chord":g.graphelem=renderText$3(d,{x:g.x,y:A,text:g.c,type:"gchordfont",klass:d.controller.classes.generate("chord"),anchor:"middle",dim:g.dim,lane:g.getLane(),name:"chord"},!1);break;case"decoration":g.graphelem=renderText$3(d,{x:g.x,y:A+6,text:g.c,type:"annotationfont",klass:d.controller.classes.generate("annotation"),anchor:g.anchor,centerVertically:!0,dim:g.dim},!1);break;case"text":g.graphelem=renderText$3(d,{x:g.x,y:A,text:g.c,type:"annotationfont",klass:d.controller.classes.generate("annotation"),anchor:"start",centerVertically:g.centerVertically,dim:g.dim,lane:g.getLane(),name:"annotation"},!1);break;case"multimeasure-text":g.graphelem=renderText$3(d,{x:g.x+g.w/2,y:A,text:g.c,type:"tempofont",klass:d.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:g.dim},!1);break;case"part":g.graphelem=renderText$3(d,{x:g.x,y:A,text:g.c,type:"partsfont",klass:d.controller.classes.generate("part"),anchor:"start",dim:g.dim,name:g.c},!0);break;case"bar":g.graphelem=printStem$1(d,g.x,g.linewidth+d.lineThickness,A,b||d.calcY(g.pitch2),null,"bar");break;case"stem":var E=g.linewidth>0?g.linewidth+d.lineThickness:g.linewidth-d.lineThickness;g.graphelem=printStem$1(d,g.x,E,A,d.calcY(g.pitch2),"abcjs-stem","stem");break;case"ledger":g.graphelem=printStaffLine$1(d,g.x,g.x+g.w,g.pitch,"abcjs-ledger","ledger",.35+d.lineThickness);break}return g.scalex!==1&&g.graphelem&&scaleExistingElem(d.paper,g.graphelem,g.scalex,g.scaley,g.x,A),g.graphelem}function scaleExistingElem(d,g,b,A,w,C){d.setAttributeOnElement(g,{style:"transform:scale("+b+","+A+");transform-origin:"+w+"px "+C+"px;"})}var relative=drawRelativeElement$2,drawRelativeElement$1=relative,renderText$2=text;function drawTempo$1(d,g){var b=g.x;g.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),g.tempo.el_type="tempo";var A=d.calcY(g.pitch)+2,w,C;if(g.tempo.preString){w=renderText$2(d,{x:b,y:A,text:g.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0),C=d.controller.getTextSize.calc(g.tempo.preString,"tempofont","tempo",w);var x=C.width,S=x/g.tempo.preString.length;b+=x+S}if(g.note){g.note.setX(b);for(var E=0;E<g.note.children.length;E++)drawRelativeElement$1(d,g.note.children[E],b);b+=g.note.w+5;var B="= "+g.tempo.bpm;w=renderText$2(d,{x:b,y:A,text:B,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"}),C=d.controller.getTextSize.calc(B,"tempofont","tempo",w);var $=C.width,P=$/B.length;b+=$+P}g.tempo.postString&&renderText$2(d,{x:b,y:A,text:g.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,g,b,A,w){if(!g.invisible){var C=g.children.length>0&&g.children[0].type==="TempoElement";g.elemset=[],elementGroup.beginGroup(d.paper,d.controller);for(var x=0;x<g.children.length;x++){var S=g.children[x];switch(S.type){case"TempoElement":drawTempo(d,S);break;default:drawRelativeElement(d,S,b)}}var E=g.type;if((g.type==="note"||g.type==="rest")&&(g.counters=d.controller.classes.getCurrent(),E+=" d"+Math.round(g.durationClass*1e3)/1e3,E=E.replace(/\./g,"-"),g.abcelem.pitches))for(var B=0;B<g.abcelem.pitches.length;B++)E+=" p"+g.abcelem.pitches[B].pitch;var $=elementGroup.endGroup(E,g.type);if($){if(g.cloned&&(g.cloned.overrideClasses=$.className.baseVal),g.overrideClasses){var P=$.classList&&$.classList.length>0?$.classList[0]+" ":"";$.setAttribute("class",P+g.overrideClasses)}if(C)g.startChar=g.abcelem.startChar,g.endChar=g.abcelem.endChar,A.add(g,$,!1,w);else{g.elemset.push($);var k=!1;(g.type==="note"||g.type==="tabNumber")&&(k=!0),A.add(g,$,k,w)}}else g.elemset.length>0&&A.add(g,g.elemset[0],g.type==="note",w);if(g.klass&&setClass(g.elemset,"mark","","#00ff00"),g.hint&&setClass(g.elemset,"abcjs-hint","",null),g.abcelem.abselem=g,g.heads&&g.heads.length>0){g.notePositions=[];for(var M=0;M<g.heads.length;M++)g.notePositions.push({x:g.heads[M].x+g.heads[M].w/2,y:w.zero-g.heads[M].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,g,b,A,w){var C=g.w-1;d.staffbottom=g.staff.bottom;var x=d.foregroundColor;if(g.color&&(d.foregroundColor=g.color),g.header){var S=renderText$1(d,{x:d.padding.left,y:d.calcY(g.headerPosition),text:g.header,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0,name:"voice-name"},!0);A.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:g.header},S)}var E,B,$=!1;for(E=0;E<g.children.length;E++){B=g.children[E],(B.type==="note"||B.type==="rest")&&($=!0);var P=!1;B.type!=="staff-extra"&&!d.controller.classes.isInMeasure()&&(d.controller.classes.startMeasure(),P=!0),g.staff.isTabStaff&&(B.invisible=!1,B.type=="bar"&&B.abcelem.lastBar&&(b=g.topLine)),drawAbsolute(d,B,g.barto||E===g.children.length-1?b:0,A,w),(B.type==="note"||isNonSpacerRest(B))&&d.controller.classes.incrNote(),B.type==="bar"&&!P&&$&&d.controller.classes.incrMeasure()}for(d.controller.classes.startMeasure(),E=0;E<g.beams.length;E++){var k=g.beams[E];k==="bar"?d.controller.classes.incrMeasure():drawBeam(d,k)}for(d.controller.classes.startMeasure(),E=0;E<g.otherchildren.length;E++)if(B=g.otherchildren[E],B==="bar")d.controller.classes.incrMeasure();else switch(B.type){case"GlissandoElem":B.elemset=drawGlissando(d,B,A);break;case"CrescendoElem":B.elemset=drawCrescendo(d,B,A);break;case"DynamicDecoration":B.elemset=drawDynamics(d,B,A);break;case"TripletElem":drawTriplet(d,B,A);break;case"EndingElem":B.elemset=drawEnding(d,B,g.startx+10,C,A);break;case"TieElem":B.elemset=drawTie(d,B,g.startx+10,C,A);break;default:console.log(B),drawAbsolute(d,B,g.startx+10,C,A)}d.foregroundColor=x}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,g,b,A,w,C){var x="abcjs-top-line",S=2;w&&(S=w),d.paper.openGroup({prepend:!0,klass:d.controller.classes.generate("abcjs-staff")});var E=0,B=0;if(A===1)printStaffLine(d,g,b,6,x,null,C+d.lineThickness),E=d.calcY(10),B=d.calcY(2);else for(var $=A-1;$>=0;$--){var P=($+1)*S;B=d.calcY(P),E===0&&(E=B),printStaffLine(d,g,b,P,x,null,C+d.lineThickness),x=void 0}return d.paper.closeGroup(),[E,B]}var staff=printStaff$1;function printDebugBox$1(d,g,b){var A=d.paper.rectBeneath(g);return b&&d.paper.text(b,{x:0,y:g.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),A}var debugBox=printDebugBox$1;function drawSeparator$1(d,g){var b="rgba(0,0,0,255)",A="rgba(0,0,0,0)",w=Math.round(d.y),C=d.controller.width,x=(C-g)/2,S=x+g,E="M "+x+" "+w+" L "+S+" "+w+" L "+S+" "+(w+1)+" L "+x+" "+(w+1)+" L "+x+" "+w+" z";d.paper.pathToBack({path:E,stroke:A,fill:b,class:d.controller.classes.generate("defined-text")})}var separator=drawSeparator$1,drawSeparator=separator,renderText=text;function nonMusic$2(d,g,b){for(var A=0;A<g.rows.length;A++){var w=g.rows[A];if(w.absmove)d.absolutemoveY(w.absmove);else if(w.move)d.moveY(w.move);else if(w.text){var C=w.left?w.left:0,x=renderText(d,{x:C,y:d.y,text:w.text,type:w.font,klass:w.klass,name:w.name,anchor:w.anchor});w.absElemType&&b.wrapSvgEl({el_type:w.absElemType,name:w.name,startChar:w.startChar,endChar:w.endChar,text:w.text},x)}else if(w.separator)drawSeparator(d,w.separator);else if(w.startGroup)d.paper.openGroup({klass:w.klass,"data-name":w.name});else if(w.endGroup){var S=d.paper.closeGroup();w.absElemType&&b.wrapSvgEl({el_type:w.absElemType,name:w.name,startChar:w.startChar,endChar:w.endChar,text:""},S)}}}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,g,b,A){for(var w,C=d.y,x=0;x<g.staffs.length;x++){var S=g.staffs[x];d.moveY(spacing$2.STEP,S.top),S.absoluteY=d.y,d.showDebug&&(d.showDebug.indexOf("box")>=0&&S.voices&&boxAllElements(d,g.voices,S.voices),d.showDebug.indexOf("grid")>=0&&(d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:C,y2:C,stroke:"#0000ff"}),printDebugBox(d,{x:d.padding.left,y:d.calcY(S.originalTop),width:d.controller.width,height:d.calcY(S.originalBottom)-d.calcY(S.originalTop),fill:d.foregroundColor,stroke:d.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),w=0,V(S,"chordHeightAbove"),V(S,"chordHeightBelow"),V(S,"dynamicHeightAbove"),V(S,"dynamicHeightBelow"),V(S,"endingHeightAbove"),V(S,"lyricHeightAbove"),V(S,"lyricHeightBelow"),V(S,"partHeightAbove"),V(S,"tempoHeightAbove"),V(S,"volumeHeightAbove"),V(S,"volumeHeightBelow"))),d.moveY(spacing$2.STEP,-S.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 E,B,$=2,P=0,k=0;k<g.voices.length;k++){var M=g.voices[k].staff,R=g.voices[k].tabNameInfos;if(d.y=M.absoluteY,d.controller.classes.incrVoice(),!g.voices[k].duplicate){if(E||(E=d.calcY(10)),B=d.calcY($),M.lines!==0){M.linePitch&&($=M.linePitch),d.controller.classes.newMeasure();var F=printStaff(d,g.startx,g.w,M.lines,M.linePitch,.35);B=F[1],M.bottomLine=B,M.topLine=F[0],M.hasTab&&(P=M.topLine),M.hasStaff&&(P=M.hasStaff.topLine,g.voices[k].barto=!0,g.voices[k].topLine=E)}printBrace(d,M.absoluteY,g.brace,k,b),printBrace(d,M.absoluteY,g.bracket,k,b)}drawVoice(d,g.voices[k],P,b,{top:C,zero:d.y,height:g.height*spacing$2.STEP});var L=0;if(R){var z={rows:[]};z.rows.push({absmove:B+2});var U=8;z.rows.push({left:g.startx+U,text:R.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),z.rows.push({move:R.textSize.height}),nonMusic$1(d,z),L=R.textSize.height}d.controller.classes.newMeasure(),g.voices[k].duplicate||(P=d.calcY(2+L))}d.controller.classes.newMeasure();var W=g.staffs.length;W>1&&(E=g.staffs[0].topLine,B=g.staffs[W-1].bottomLine,printStem(d,g.startx,.6,E,B,null)),d.y=C;function V(Q,K){var G=["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(Q.positionY&&Q.positionY[K]){var X=Q.specialY[K]*spacing$2.STEP;K==="chordHeightAbove"&&Q.specialY.chordLines&&Q.specialY.chordLines.above&&(X*=Q.specialY.chordLines.above),K==="chordHeightBelow"&&Q.specialY.chordLines&&Q.specialY.chordLines.below&&(X*=Q.specialY.chordLines.below),printDebugBox(d,{x:d.padding.left,y:d.calcY(Q.positionY[K]),width:d.controller.width,height:X,fill:G[w],stroke:G[w],"fill-opacity":.4,"stroke-opacity":.4},K.substr(0,4)),w+=1,w>6&&(w=0)}}}function printBrace(d,g,b,A,w){if(b)for(var C=0;C<b.length;C++)b[C].isStartVoice(A)&&(b[C].startY=g-spacing$2.STEP*10,b[C].elemset=drawBrace(d,b[C],w))}function boxAllElements(d,g,b){for(var A=0;A<b.length;A++)for(var w=g[b[A]].children,C=0;C<w.length;C++){var x=w[C],S=x.getFixedCoords();if(!(x.invisible||S.t===void 0||S.b===void 0)){var E=(S.t-S.b)*spacing$2.STEP;printDebugBox(d,{x:S.x,y:d.calcY(S.t),width:S.w,height:E,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var B=0;B<x.children.length;B++){var $=x.children[B],P=$.getChordDim();if(P){var k=d.calcY($.pitch);k+=$.dim.font.size*$.getLane(),printDebugBox(d,{x:P.left,y:k,width:P.right-P.left,height:$.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}var staffGroup=drawStaffGroup$1;function setPaperSize$1(d,g,b,A){var w=(g+d.padding.right)*b,C=(d.y+d.padding.bottom)*b;if(d.isPrint&&(C=Math.max(C,1056)),d.ariaLabel!==""){var x="Sheet Music";d.abctune&&d.abctune.metaText&&d.abctune.metaText.title&&(x+=' for "'+d.abctune.metaText.title+'"'),d.paper.setTitle(x);var S=d.ariaLabel?d.ariaLabel:x;d.paper.setAttribute("aria-label",S)}var E=["-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 {"+E.join(" ")+"}");var B={overflow:"hidden"};A==="resize"?d.paper.setResponsiveWidth(w,C):(B.width="",B.height=C+"px",b<1?(B.width=w+"px",d.paper.setSize(w/b,C/b)):d.paper.setSize(w,C)),d.paper.setScale(b),d.paper.setParentStyles(B)}var setPaperSize_1=setPaperSize$1,highlight=highlight_1,unhighlight=unhighlight_1;function Selectables$1(d,g,b){this.elements=[],this.paper=d,this.tuneNumber=b,this.selectTypes=g}Selectables$1.prototype.getElements=function(){return this.elements};Selectables$1.prototype.add=function(d,g,b,A){if(this.canSelect(d)){var w;this.selectTypes===void 0?w={selectable:!1,"data-index":this.elements.length}:w={selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(g,w);var C={absEl:d,svgEl:g,isDraggable:b};A!==void 0&&(C.staffPos=A),this.elements.push(C)}};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,g){var b={tuneNumber:this.tuneNumber,abcelem:d,elemset:[g],highlight,unhighlight};this.add(b,g,!1)};var selectables=Selectables$1,drawStaffGroup=staffGroup,setPaperSize=setPaperSize_1,nonMusic=nonMusic_1,spacing$1=spacing_1,Selectables=selectables;function draw$1(d,g,b,A,w,C,x,S,E,B){var $=new Selectables(d.paper,S,E);d.paper.openGroup(),d.moveY(d.padding.top),nonMusic(d,b.topText,$),d.paper.closeGroup(),d.moveY(d.spacing.music);for(var P=[],k=0;k<b.lines.length;k++){g.incrLine();var M=b.lines[k];if(M.staff){d.paper.openGroup(),M.vskip&&d.moveY(M.vskip),P.length>=1&&addStaffPadding(d,d.spacing.staffSeparation,P[P.length-1],M.staffGroup);var R=engraveStaffLine(d,M.staffGroup,$);R.line=B+k,P.push(R),d.paper.closeGroup()}else M.nonMusic&&(d.paper.openGroup(),nonMusic(d,M.nonMusic,$),d.paper.closeGroup())}return g.reset(),b.bottomText&&b.bottomText.rows&&b.bottomText.rows.length>0&&(d.paper.openGroup(),d.moveY(24),nonMusic(d,b.bottomText,$),d.paper.closeGroup()),setPaperSize(d,w,x,C),{staffgroups:P,selectables:$.getElements()}}function engraveStaffLine(d,g,b,A){drawStaffGroup(d,g,b);var w=g.height*spacing$1.STEP;return d.y+=w,g}function addStaffPadding(d,g,b,A){var w=b.staffs[b.staffs.length-1],C=-(w.bottom-2),x=A.staffs[0].top-10,S=x+C,E=S*spacing$1.STEP;E<g&&d.moveY(g-E)}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,g){g=g||{},this.oneSvgPerLine=g.oneSvgPerLine,this.selectionColor=g.selectionColor,this.dragColor=g.dragColor?g.dragColor:g.selectionColor,this.dragging=!!g.dragging,this.selectTypes=g.selectTypes,this.responsive=g.responsive,this.space=3*spacing.SPACE,this.initialClef=g.initialClef,this.scale=g.scale?parseFloat(g.scale):0,this.classes=new Classes({shouldAddClasses:g.add_classes}),this.scale>.1||(this.scale=void 0),g.staffwidth?(this.staffwidthScreen=g.staffwidth,this.staffwidthPrint=g.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],g.clickListener&&this.addSelectListener(g.clickListener),this.renderer=new Renderer(d),this.renderer.setPaddingOverride(g),g.showDebug&&(this.renderer.showDebug=g.showDebug),g.jazzchords&&(this.jazzchords=g.jazzchords),g.germanAlphabet&&(this.germanAlphabet=g.germanAlphabet),g.lineThickness&&(this.lineThickness=g.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=g.foregroundColor?g.foregroundColor:"currentColor",g.ariaLabel!==void 0&&(this.renderer.ariaLabel=g.ariaLabel),this.renderer.minPadding=g.minPadding?g.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,g,b){d[0]===void 0&&(d=[d]),this.reset();for(var A=0;A<d.length;A++)g===void 0&&(g=A),this.getFontAndAttr=new GetFontAndAttr(d[A].formatting,this.classes),this.getTextSize=new GetTextSize(this.getFontAndAttr,this.renderer.paper),this.engraveTune(d[A],g,b)};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 g=[],b,A=!0,w=0;w<d.lines.length;w++){var C=d.lines[w];if(C.staff){if(A&&(b={left:0,measureWidths:[],total:0},g.push(b),A=!1),C.staffGroup.voices.length>0)for(var x=C.staffGroup.voices[0],S=!1,E=0,B=0;B<x.children.length;B++){var $=x.children[B];!S&&!$.isClef&&!$.isKeySig&&(S=!0,b.left=$.x,E=$.x),$.type==="bar"&&(b.measureWidths.push($.x-E),b.total+=$.x-E,E=$.x)}}else A=!0}return g};EngraverController$1.prototype.setupTune=function(d,g){this.classes.reset(),d.formatting.jazzchords!==void 0&&(this.jazzchords=d.formatting.jazzchords),this.renderer.newTune(d),this.engraver=new AbstractEngraver(this.getTextSize,g,{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 b=d.formatting.scale?d.formatting.scale:this.scale;return this.responsive==="resize"&&(b=void 0),b===void 0&&(b=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(b),b};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 g,b,A=!1,w=!1;for(g=0;g<d.lines.length;g++)if(b=d.lines[g],b.staff)w=!0,b.staffGroup=this.engraver.createABCLine(b.staff,A?null:d.metaText.tempo,g),A=!0;else if(b.subtitle){if(w){var C=this.width/2+this.renderer.padding.left;b.nonMusic=new Subtitle(this.renderer.spacing.subtitle,d.formatting,b.subtitle,C,this.renderer.padding.left,this.getTextSize)}}else b.text!==void 0?(w=!0,b.nonMusic=new FreeText(b.text,b.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):b.separator!==void 0&&b.separator.lineLength&&(w=!0,b.nonMusic=new Separator(b.separator.spaceAbove,b.separator.lineLength,b.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,g,b){var A=this.setupTune(d,g);this.constructTuneElements(d);var w=layout(this.renderer,d,this.width,this.space);d.tablatures&&tablatures.layoutTablatures(this.renderer,d);var C=draw(this.renderer,this.classes,d,this.width,w,this.responsive,A,this.selectTypes,g,b);if(this.staffgroups=C.staffgroups,this.selectables=C.selectables,this.oneSvgPerLine){var x=this.renderer.paper.svg.parentNode;this.svgs=splitSvgIntoLines(this.renderer,x,d.metaText.title,this.responsive)}else this.svgs=[this.renderer.paper.svg];setupSelection(this,this.svgs)};function splitSvgIntoLines(d,g,b,A){b||(b="Untitled");var w=g.querySelector("svg");A==="resize"&&(g.style.paddingBottom="");for(var C=w.querySelector("style"),x=A==="resize"?w.viewBox.baseVal.width:w.getAttribute("width"),S=g.querySelectorAll("svg > g"),E=0,B=[],$=0;$<S.length;$++){var P=S[$],k=P.getBBox(),M=k.y-E,R=k.height+M,F=document.createElement("div"),L="overflow: hidden;";A!=="resize"&&(L+="height:"+R+"px;"),F.setAttribute("style",L);var z=duplicateSvg(w),U='Sheet Music for "'+b+'" section '+($+1);z.setAttribute("aria-label",U),A!=="resize"&&z.setAttribute("height",R),A==="resize"&&(z.style.position="");var W=d.firefox112?R+1:R;z.setAttribute("viewBox","0 "+E+" "+x+" "+W),z.appendChild(C.cloneNode(!0));var V=document.createElement("title");V.innerText=U,z.appendChild(V),z.appendChild(P),F.appendChild(z),B.push(z),g.appendChild(F),E=k.y+k.height}return g.removeChild(w),B}function duplicateSvg(d){for(var g="http://www.w3.org/2000/svg",b=document.createElementNS(g,"svg"),A=0;A<d.attributes.length;A++){var w=d.attributes[A];w.name!=="height"&&w.name!="aria-label"&&b.setAttribute(w.name,w.value)}return b}EngraverController$1.prototype.getDim=function(d){if(!d.dim){var g=d.svgEl.getBBox();d.dim={left:Math.round(g.x),top:Math.round(g.y),right:Math.round(g.x+g.width),bottom:Math.round(g.y+g.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 g in resizeDivs)if(resizeDivs.hasOwnProperty(g)){var b=resizeDivs[g],A=b.offsetLeft;d-=A*2,b.style.width=d+"px"}}try{window.addEventListener("resize",resizeOuter),window.addEventListener("orientationChange",resizeOuter)}catch(d){}function renderOne(d,g,b,A,w){b.viewportHorizontal?(d.innerHTML='<div class="abcjs-inner"></div>',b.scrollHorizontal?(d.style.overflowX="auto",d.style.overflowY="hidden"):d.style.overflow="hidden",resizeDivs[d.id]=d,d=d.children[0]):b.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 C=new EngraverController(d,b);if(C.engraveABC(g,A,w),g.engraver=C,b.viewportVertical||b.viewportHorizontal){var x=d.parentNode;x.style.width=d.style.width}}var renderAbc$1=function(d,g,b,A,w){var C={},x;if(b){for(x in b)b.hasOwnProperty(x)&&(C[x]=b[x]);C.warnings_id&&C.tablature&&(C.tablature.warning_id=C.warnings_id)}if(A)for(x in A)A.hasOwnProperty(x)&&(x==="listener"?A[x].highlight&&(C.clickListener=A[x].highlight):C[x]=A[x]);if(w)for(x in w)w.hasOwnProperty(x)&&(C[x]=w[x]);function S(E,B,$,P){var k=!1;return E==="*"&&(k=!0,E=document.createElement("div"),E.setAttribute("style","visibility: hidden;"),document.body.appendChild(E)),C.afterParsing&&C.afterParsing(B,$,P),!k&&C.wrap&&C.staffwidth?(B=doLineWrapping(E,B,$,P,C),B):(renderOne(E,B,C,$,0),k&&E.parentNode.removeChild(E),null)}return tunebook$1.renderEngine(S,d,g,C)};function doLineWrapping(d,g,b,A,w){var C=new EngraverController(d,w),x=C.getMeasureWidths(g),S=wrap$1.calcLineWraps(g,x,w);if(S.reParse){var E=new Parse;E.parse(A,S.revisedParams),g=E.getTune();var B=E.getWarnings();B&&(g.warnings=B)}return renderOne(d,g,S.revisedParams,b,0),g.explanation=S.explanation,g}var abc_tunebook_svg=renderAbc$1,soundsCache$3={},soundsCache_1=soundsCache$3,soundsCache$2=soundsCache_1,getNote$1=function(d,g,b,A){soundsCache$2[g]||(soundsCache$2[g]={});var w=soundsCache$2[g];return w[b]||(w[b]=new Promise(function(C,x){var S=new XMLHttpRequest;let E=d+g+"-mp3/"+b+".mp3";S.open("GET",E,!0),S.responseType="arraybuffer",S.onload=function(){if(S.status!==200){x(Error("Can't load sound at "+E+" status="+S.status));return}var B=function(P){C({instrument:g,name:b,status:"loaded",audioBuffer:P})},$=A.decodeAudioData(S.response,B,function(){x(Error("Can't decode sound at "+E))});$&&typeof $.catch=="function"&&$.catch(x)},S.onerror=function(){x(Error("Can't load sound at "+E))},S.send()}).catch(C=>{throw console.error("Didn't load note",g,b,":",C.message),C})),w[b]},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 g=[],b=0;b<d.tracks.length;b++)g.push([]);var A=instrumentIndexToName$2[0];return d.tracks.forEach(function(w,C){w.forEach(function(x){switch(x.cmd){case"note":if(x.duration>0){var S=x.gap?x.gap:0,E=x.duration;S=Math.min(S,E*2/3);var B={pitch:x.pitch,instrument:A,start:Math.round(x.start*1e6)/1e6,end:Math.round((x.start+E-S)*1e6)/1e6,volume:x.volume};x.startChar&&(B.startChar=x.startChar),x.endChar&&(B.endChar=x.endChar),x.style&&(B.style=x.style),x.cents&&(B.cents=x.cents),g[C].push(B)}break;case"program":A=instrumentIndexToName$2[x.instrument];break;case"text":break;default:console.log("Unhandled midi event",x)}})}),g},createNoteMap_1=createNoteMap$1;function registerAudioContext$4(d){if(d)window.abcjsAudioContext=d;else if(!window.abcjsAudioContext){var g=window.AudioContext||window.webkitAudioContext;if(g)window.abcjsAudioContext=new g;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 g=d[0],b=g.numberOfChannels,A=g.length*b*2+44,w=new ArrayBuffer(A),C=new DataView(w),x=[],S,E,B=0,$=0;for(k(1179011410),k(A-8),k(1163280727),k(544501094),k(16),P(1),P(b),k(g.sampleRate),k(g.sampleRate*2*b),P(b*2),P(16),k(1635017060),k(A-$-4),S=0;S<b;S++)x.push(g.getChannelData(S));for(;$<A;){for(S=0;S<x.length;S++)E=Math.max(-1,Math.min(1,x[S][B])),E=(.5+E<0?E*32768:E*32767)|0,C.setInt16($,E,!0),$+=2;B++}return new Blob([w],{type:"audio/wav"});function P(M){C.setUint16($,M,!0),$+=2}function k(M){C.setUint32($,M,!0),$+=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,g,b,A,w,C,x,S,E){var B=window.OfflineAudioContext||window.webkitOfflineAudioContext,$=b.len*b.tempoMultiplier;C&&($+=C/1e3),$-=S,$<0&&($=.005);var P=new B(2,Math.floor(($+x)*g),g),k=pitchToNoteName$2[b.pitch],M=soundsCache$1[b.instrument][k];return M?M.then(function(R){var F=P.createBufferSource();F.buffer=R.audioBuffer;var L=b.volume/96*w;F.gainNode=P.createGain(),b.pan&&P.createStereoPanner&&(F.panNode=P.createStereoPanner(),F.panNode.pan.setValueAtTime(b.pan,0)),F.gainNode.gain.value=L,F.gainNode.gain.linearRampToValueAtTime(F.gainNode.gain.value,$),F.gainNode.gain.linearRampToValueAtTime(0,$+x),b.cents&&(F.playbackRate.value=centsToFactor$1(b.cents)),F.panNode?(F.panNode.connect(P.destination),F.gainNode.connect(F.panNode)):F.gainNode.connect(P.destination),F.connect(F.gainNode),F.start(0),F.noteOff?F.noteOff($+x):F.stop($+x);var z;return P.oncomplete=function(U){if(U.renderedBuffer&&U.renderedBuffer.getChannelData)for(var W=0;W<A.length;W++){var V=A[W]*b.tempoMultiplier;C&&(V-=C/1e3),V<0&&(V=0),V=Math.floor(V*g),copyToChannel(d,U.renderedBuffer,V)}E&&E("placeNote: "+b.instrument+":"+k),z()},P.startRendering(),new Promise(function(U){z=U})}).catch(function(R){return E&&E("placeNote catch: "+R.message),Promise.resolve()}):(E&&E("placeNote skipped: "+b.instrument+":"+k),Promise.resolve())}var copyToChannel=function(d,g,b){for(var A=0;A<2;A++)for(var w=g.getChannelData(A),C=d.getChannelData(A),x=0;x<w.length;x++)C[x+b]+=w[x]},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(b){b||(b={}),registerAudioContext$2(b.audioContext);var A=activeAudioContext$4().currentTime;if(d.debugCallback=b.debugCallback,d.debugCallback&&d.debugCallback("init called"),d.audioBufferPossible=d._deviceCapable(),!d.audioBufferPossible)return Promise.reject({status:"NotSupported",message:notSupportedMessage});var w=b.options?b.options:{};d.soundFontUrl=w.soundFontUrl?w.soundFontUrl:defaultSoundFontUrl,d.soundFontUrl[d.soundFontUrl.length-1]!=="/"&&(d.soundFontUrl+="/"),w.soundFontVolumeMultiplier||w.soundFontVolumeMultiplier===0?d.soundFontVolumeMultiplier=w.soundFontVolumeMultiplier:d.soundFontUrl===defaultSoundFontUrl||d.soundFontUrl===alternateSoundFontUrl?d.soundFontVolumeMultiplier=3:d.soundFontUrl===originalSoundFontUrl?d.soundFontVolumeMultiplier=.4:d.soundFontVolumeMultiplier=1,w.programOffsets?d.programOffsets=w.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 C=w.fadeLength!==void 0?parseInt(w.fadeLength,10):NaN;if(d.fadeLength=isNaN(C)?200:C,C=w.noteEnd!==void 0?parseInt(w.noteEnd,10):NaN,d.noteEnd=isNaN(C)?0:C,d.pan=w.pan,d.meterSize=1,b.visualObj){d.flattened=b.visualObj.setUpAudio(w);var x=b.visualObj.getMeterFraction();x.den&&(d.meterSize=b.visualObj.getMeterFraction().num/b.visualObj.getMeterFraction().den)}else if(b.sequence)d.flattened=b.sequence;else return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));d.millisecondsPerMeasure=b.millisecondsPerMeasure?b.millisecondsPerMeasure:b.visualObj?b.visualObj.millisecondsPerMeasure(d.flattened.tempo):1e3,d.beatsPerMeasure=b.visualObj?b.visualObj.getBeatsPerMeasure():4,d.sequenceCallback=w.sequenceCallback,d.callbackContext=w.callbackContext,d.onEnded=w.onEnded;var S={},E=[],B=[],$=instrumentIndexToName$1[0];d.flattened.tracks.forEach(function(F){F.forEach(function(L){if(L.cmd==="program"&&instrumentIndexToName$1[L.instrument]&&($=instrumentIndexToName$1[L.instrument]),L.pitch!==void 0){var z=L.pitch,U=pitchToNoteName$1[z];if(U)if(S[$]||(S[$]={}),!soundsCache[$]||!soundsCache[$][U])S[$][U]=!0;else{var W=$+":"+U;E.indexOf(W)<0&&E.push(W)}else{var V=$+":"+U;console.log("Can't find note: ",z,V),B.indexOf(V)<0&&B.push(V)}}})}),d.debugCallback&&d.debugCallback("note gathering time = "+Math.floor((activeAudioContext$4().currentTime-A)*1e3)+"ms"),A=activeAudioContext$4().currentTime;var P=[];Object.keys(S).forEach(function(F){Object.keys(S[F]).forEach(function(L){P.push({instrument:F,note:L})})}),d.debugCallback&&d.debugCallback("notes "+JSON.stringify(P));for(var k=[],M=256,R=0;R<P.length;R+=M)k.push(P.slice(R,R+M));return new Promise(function(F,L){var z={cached:E,error:B,loaded:[]},U=0,W=function(){d.debugCallback&&d.debugCallback("loadBatch idx="+U+" len="+k.length),U<k.length?d._loadBatch(k[U],d.soundFontUrl,A).then(function(V){d.debugCallback&&d.debugCallback("loadBatch then"),A=activeAudioContext$4().currentTime,V&&(V.error&&(z.error=z.error.concat(V.error)),V.loaded&&(z.loaded=z.loaded.concat(V.loaded))),U++,W()},L):(d.debugCallback&&d.debugCallback("resolve init"),F(z))};W()})},d._loadBatch=function(b,A,w,C){var x=[];return b.forEach(function(S){d.debugCallback&&d.debugCallback("getNote "+S.instrument+":"+S.note),x.push(getNote(A,S.instrument,S.note,activeAudioContext$4()))}),Promise.all(x).then(function(S){d.debugCallback&&d.debugCallback("mp3 load time = "+Math.floor((activeAudioContext$4().currentTime-w)*1e3)+"ms");for(var E=[],B=[],$=[],P=[],k=0;k<S.length;k++){var M=S[k],R=M.instrument+":"+M.name;M.status==="loaded"?E.push(R):M.status==="pending"?$.push(R):M.status==="cached"?B.push(R):P.push(R+" "+M.message)}if($.length>0){if(d.debugCallback&&d.debugCallback("pending "+JSON.stringify($)),C?C=C*2:C=50,C<9e4)return new Promise(function(z,U){setTimeout(function(){var W=[];for(k=0;k<$.length;k++)R=$[k].split(":"),W.push({instrument:R[0],note:R[1]});d.debugCallback&&d.debugCallback("retry "+JSON.stringify(W)),d._loadBatch(W,A,w,C).then(function(V){z(V)}).catch(function(V){U(V)})},C)});for(var F=[],L=0;L<b.length;L++)F.push(b[L].instrument+"/"+b[L].note);return d.debugCallback&&d.debugCallback("loadBatch timeout"),Promise.reject(new Error("timeout attempting to load: "+F.join(", ")))}else return d.debugCallback&&d.debugCallback("loadBatch resolve"),Promise.resolve({loaded:E,cached:B,error:P})}).catch(function(S){d.debugCallback&&d.debugCallback("loadBatch catch "+S.message)})},d.prime=function(){var b=d.fadeLength/1e3;return d.isRunning=!1,d.audioBufferPossible?(d.debugCallback&&d.debugCallback("prime called"),new Promise(function(A){var w=activeAudioContext$4().currentTime,C=d.millisecondsPerMeasure/1e3/d.meterSize;if(d.duration=d.flattened.totalDuration*C,d.duration<=0)return d.audioBuffers=[],A({status:"empty",seconds:0});d.duration+=b;var x=Math.floor(activeAudioContext$4().sampleRate*d.duration);d.stop();var S=createNoteMap(d.flattened);d.sequenceCallback&&d.sequenceCallback(S,d.callbackContext);var E=g(S.length,d.pan),B={};S.forEach(function(z,U){var W=E&&E.length>U?E[U]:0;z.forEach(function(V){var Q=V.instrument+":"+V.pitch+":"+V.volume+":"+Math.round((V.end-V.start)*1e3)/1e3+":"+W+":"+C+":"+(V.cents?V.cents:0);d.debugCallback&&d.debugCallback("noteMapTrack "+Q),B[Q]||(B[Q]=[]),B[Q].push(V.start)})});for(var $=[],P=activeAudioContext$4().createBuffer(2,x,activeAudioContext$4().sampleRate),k=0;k<Object.keys(B).length;k++){var M=Object.keys(B)[k],R=M.split(":"),F=R[6]!==void 0?parseFloat(R[6]):0;R={instrument:R[0],pitch:parseInt(R[1],10),volume:parseInt(R[2],10),len:parseFloat(R[3]),pan:parseFloat(R[4]),tempoMultiplier:parseFloat(R[5]),cents:F},$.push(placeNote(P,activeAudioContext$4().sampleRate,R,B[M],d.soundFontVolumeMultiplier,d.programOffsets[R.instrument],b,d.noteEnd/1e3,d.debugCallback))}d.audioBuffers=[P],d.debugCallback&&(d.debugCallback("sampleRate = "+activeAudioContext$4().sampleRate),d.debugCallback("totalSamples = "+x),d.debugCallback("creationTime = "+Math.floor((activeAudioContext$4().currentTime-w)*1e3)+"ms"));function L(z){var U=z&&z.audioBuffers&&z.audioBuffers.length>0?z.audioBuffers[0].duration:0;return{status:activeAudioContext$4().state,duration:U}}Promise.all($).then(function(){activeAudioContext$4().state==="suspended"?activeAudioContext$4().resume().then(function(){A(L(d))}):activeAudioContext$4().state==="interrupted"?activeAudioContext$4().suspend().then(function(){activeAudioContext$4().resume().then(function(){A(L(d))})}):A(L(d))})})):Promise.reject(new Error(notSupportedMessage))};function g(b,A){if(A==null)return null;var w=[];if(A.length){for(var C=0;C<b;C++)if(C<A.length){var x=parseFloat(A[C]);x<-1?x=-1:x>1&&(x=1),w.push(x)}else w.push(0);return w}else{var S=parseFloat(A);if(S*(b-1)>2)return null;for(var E=b%2===0,B=E?0-S/2:0,$=B+S,P=0;P<b;P++)E=P%2===0,E?(w.push(B),B-=S):(w.push($),$+=S);return w}}d.start=function(){if(!d.audioBufferPossible)throw new Error(notSupportedMessage);d.debugCallback&&d.debugCallback("start called");var b=d.pausedTimeSec?d.pausedTimeSec:0;d._kickOffSound(b),d.startTimeSec=activeAudioContext$4().currentTime-b,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(b,A){var w;switch(A){case"seconds":w=b;break;case"beats":w=b*d.millisecondsPerMeasure/d.beatsPerMeasure/1e3;break;default:w=(d.duration-d.fadeLength/1e3)*b;break}if(!d.audioBufferPossible)throw new Error(notSupportedMessage);d.debugCallback&&d.debugCallback("seek called sec="+w),d.isRunning?(d.stop(),d._kickOffSound(w)):d.pausedTimeSec=w,d.pausedTimeSec=w},d.stop=function(){d.isRunning=!1,d.pausedTimeSec=void 0,d.directSource.forEach(function(A){try{A.stop()}catch(w){console.log("direct source didn't stop:",w)}}),d.directSource=[];var b=activeAudioContext$4().currentTime-d.startTimeSec;return b},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(b){d.isRunning=!0,d.directSource=[],d.audioBuffers.forEach(function(A,w){d.directSource[w]=activeAudioContext$4().createBufferSource(),d.directSource[w].buffer=A,d.directSource[w].connect(activeAudioContext$4().destination)}),d.directSource.forEach(function(A){A.start(0,b)}),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(g,b){d.tracks[g].push({channel:0,cmd:"program",instrument:b}),d.currentInstrument[g]=b},d.appendNote=function(g,b,A,w,C){var x={cmd:"note",duration:A,gap:0,instrument:d.currentInstrument[g],pitch:b,start:d.starts[g],volume:w};C&&(x.cents=C),d.tracks[g].push(x),d.starts[g]+=A,d.totalDuration=Math.max(d.totalDuration,d.starts[g])}},synthSequence=SynthSequence$2,svg$4=`
  2370. <svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">
  2371. <g transform="translate(0,700) scale(0.1,-0.1)" >
  2372. <path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55
  2373. -42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128
  2374. -60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79
  2375. -50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60
  2376. -25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507
  2377. -15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21
  2378. -23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12
  2379. -47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33
  2380. -53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0
  2381. -90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51
  2382. 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
  2383. 107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57
  2384. 74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52
  2385. 100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45
  2386. 143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29
  2387. 165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34
  2388. 115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33
  2389. -21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90
  2390. -277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138
  2391. 115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191
  2392. 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
  2393. 7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17
  2394. -134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10
  2395. -41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66
  2396. 50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73
  2397. 39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53
  2398. -30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43
  2399. -131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339
  2400. -19z"></path>
  2401. <path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0
  2402. -18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72
  2403. l69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279
  2404. 268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74
  2405. -61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19
  2406. -16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31
  2407. 93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59
  2408. 62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89
  2409. 89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146
  2410. 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
  2411. 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
  2412. 48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22
  2413. 25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14
  2414. 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
  2415. 47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138
  2416. -61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10
  2417. -22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20
  2418. -32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19
  2419. -29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25
  2420. -15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18
  2421. -59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11
  2422. -99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168
  2423. 16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71
  2424. 37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108
  2425. 63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65
  2426. 61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86
  2427. 12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030
  2428. 0 -1086 -11z"></path>
  2429. </g>
  2430. </svg>
  2431. `,loop_svg=svg$4,svg$3=`
  2432. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">
  2433. <g>
  2434. <polygon points="4 0 23 12.5 4 25"/>
  2435. </g>
  2436. </svg>
  2437. `,play_svg=svg$3,svg$2=`
  2438. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">
  2439. <g>
  2440. <rect width="8.23" height="25"/>
  2441. <rect width="8.23" height="25" x="17"/>
  2442. </g>
  2443. </svg>
  2444. `,pause_svg=svg$2,svg$1=`
  2445. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">
  2446. <circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>
  2447. </svg>
  2448. `,loading_svg=svg$1,svg=`
  2449. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">
  2450. <g>
  2451. <polygon points="5 12.5 24 0 24 25"/>
  2452. <rect width="3" height="25" x="0" y="0"/>
  2453. </g>
  2454. </svg>
  2455. `,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,g){var b=this;if(typeof d=="string"){var A=d;if(d=document.querySelector(A),!d)throw new Error('Cannot find element "'+A+'" 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(b.parent=d,b.options={},g&&(b.options=parseCommon$1.clone(g)),b.options.ac&&registerAudioContext$1(b.options.ac),buildDom(b.parent,b.options),attachListeners(b),b.disable=function(C){var x=b.parent.querySelector(".abcjs-inline-audio");C?x.classList.add("abcjs-disabled"):x.classList.remove("abcjs-disabled")},b.setWarp=function(C,x){var S=b.parent.querySelector(".abcjs-midi-tempo");S.value=Math.round(x),b.setTempo(C)},b.setTempo=function(C){var x=b.parent.querySelector(".abcjs-midi-current-tempo");x&&(x.innerHTML=Math.round(C))},b.resetAll=function(){for(var C=b.parent.querySelectorAll(".abcjs-pushed"),x=0;x<C.length;x++){var S=C[x];S.classList.remove("abcjs-pushed")}},b.pushPlay=function(C){var x=b.parent.querySelector(".abcjs-midi-start");x&&(C?x.classList.add("abcjs-pushed"):x.classList.remove("abcjs-pushed"))},b.pushLoop=function(C){var x=b.parent.querySelector(".abcjs-midi-loop");x&&(C?x.classList.add("abcjs-pushed"):x.classList.remove("abcjs-pushed"))},b.setProgress=function(C,x){var S=b.parent.querySelector(".abcjs-midi-progress-background"),E=b.parent.querySelector(".abcjs-midi-progress-indicator");if(!(!S||!E)){var B=S.clientWidth,$=B*C;E.style.left=$+"px";var P=b.parent.querySelector(".abcjs-midi-clock");if(P){var k=x*C/1e3,M=Math.floor(k/60),R=Math.floor(k%60),F=R<10?"0"+R:R;P.innerHTML=M+":"+F}}},b.options.afterResume){var w=!1;b.options.ac?w=b.options.ac.state!=="suspended":activeAudioContext$3()&&(w=activeAudioContext$3().state!=="suspended"),w&&b.options.afterResume()}}function buildDom(d,g){var b=!!g.loopHandler,A=!!g.restartHandler,w=!!g.playHandler||!!g.playPromiseHandler,C=!!g.progressHandler,x=!!g.warpHandler,S=g.hasClock!==!1,E=`<div class="abcjs-inline-audio">
  2456. `;if(b){var B=g.repeatTitle?g.repeatTitle:"Click to toggle play once/repeat.",$=g.repeatAria?g.repeatAria:B;E+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+B+'" aria-label="'+$+'">'+loopImage+`</button>
  2457. `}if(A){var P=g.restartTitle?g.restartTitle:"Click to go to beginning.",k=g.restartAria?g.restartAria:P;E+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+P+'" aria-label="'+k+'">'+resetImage+`</button>
  2458. `}if(w){var M=g.playTitle?g.playTitle:"Click to play/pause.",R=g.playAria?g.playAria:M;E+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+M+'" aria-label="'+R+'">'+playImage+pauseImage+loadingImage+`</button>
  2459. `}if(C){var F=g.randomTitle?g.randomTitle:"Click to change the playback position.",L=g.randomAria?g.randomAria:F;E+='<button type="button" class="abcjs-midi-progress-background" title="'+F+'" aria-label="'+L+`"><span class="abcjs-midi-progress-indicator"></span></button>
  2460. `}if(S&&(E+=`<span class="abcjs-midi-clock"></span>
  2461. `),x){var z=g.warpTitle?g.warpTitle:"Change the playback speed.",U=g.warpAria?g.warpAria:z,W=g.bpm?g.bpm:"BPM";E+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+z+'" aria-label="'+U+'">%</label><span>&nbsp;(<span class="abcjs-midi-current-tempo"></span> '+W+`)</span></span>
  2462. `}E+='<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>',E+=`</div>
  2463. `,d.innerHTML=E}function acResumerMiddleWare(d,g,b,A,w){var C=!0;if(activeAudioContext$3()?C=activeAudioContext$3().state==="suspended":registerAudioContext$1(),!supportsAudio$2())throw{status:"NotSupported",message:"This browser does not support audio."};(C||w)&&b&&b.classList.add("abcjs-loading"),C?activeAudioContext$3().resume().then(function(){A?A().then(function(x){doNext(d,g,b,w)}):doNext(d,g,b,w)}):doNext(d,g,b,w)}function doNext(d,g,b,A){A?d(g).then(function(){b&&b.classList.remove("abcjs-loading")}):(d(g),b&&b.classList.remove("abcjs-loading"))}function attachListeners(d){var g=!!d.options.loopHandler,b=!!d.options.restartHandler,A=!!d.options.playHandler||!!d.options.playPromiseHandler,w=!!d.options.progressHandler,C=!!d.options.warpHandler,x=d.parent.querySelector(".abcjs-midi-start");g&&d.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(S){acResumerMiddleWare(d.options.loopHandler,S,x,d.options.afterResume)}),b&&d.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(S){acResumerMiddleWare(d.options.restartHandler,S,x,d.options.afterResume)}),A&&x.addEventListener("click",function(S){acResumerMiddleWare(d.options.playPromiseHandler||d.options.playHandler,S,x,d.options.afterResume,!!d.options.playPromiseHandler)}),w&&d.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(S){acResumerMiddleWare(d.options.progressHandler,S,x,d.options.afterResume)}),C&&d.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(S){acResumerMiddleWare(d.options.warpHandler,S,x,d.options.afterResume)})}var createSynthControl=CreateSynthControl$2,SynthSequence$1=synthSequence,CreateSynth$2=createSynth,activeAudioContext$2=activeAudioContext_1;function playEvent$1(d,g,b){for(var A=new SynthSequence$1,w=0;w<d.length;w++){var C=d[w],x=A.addTrack();if(A.setInstrument(x,C.instrument),w===0&&g)for(var S=0;S<g.length;S++){var E=g[S];A.appendNote(x,E.pitch,1/64,E.volume,E.cents)}A.appendNote(x,C.pitch,C.duration,C.volume,C.cents)}var B=activeAudioContext$2();return B.state==="suspended"?B.resume().then(function(){return doPlay(A,b)}):doPlay(A,b)}function doPlay(d,g){var b=new CreateSynth$2;return b.init({sequence:d,millisecondsPerMeasure:g}).then(function(){return b.prime()}).then(function(){return b.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(b,A,w){w||(w={}),d.control=new CreateSynthControl$1(b,{loopHandler:w.displayLoop?d.toggleLoop:void 0,restartHandler:w.displayRestart?d.restart:void 0,playPromiseHandler:w.displayPlay?d.play:void 0,progressHandler:w.displayProgress?d.randomAccess:void 0,warpHandler:w.displayWarp?d.onWarp:void 0,afterResume:d.init}),d.cursorControl=A,d.disable(!0)},d.disable=function(b){d.control&&d.control.disable(b)},d.setTune=function(b,A,w){return d.visualObj=b,d.disable(!1),d.options=w,d.control&&(d.pause(),d.setProgress(0,1),d.control.resetAll(),d.restart(),d.isStarted=!1),d.isLooping=!1,A?d.go():Promise.resolve({status:"no-audio-context"})},d.go=function(){d.isLoading=!0;var b=d.visualObj.millisecondsPerMeasure()*100/d.warp;d.currentTempo=Math.round(d.visualObj.getBeatsPerMeasure()/b*6e4),d.control&&d.control.setTempo(d.currentTempo),d.percent=0;var A;return d.midiBuffer||(d.midiBuffer=new CreateSynth$1),activeAudioContext$1().resume().then(function(w){return d.midiBuffer.init({visualObj:d.visualObj,options:d.options,millisecondsPerMeasure:b})}).then(function(w){return A=w,d.midiBuffer.prime()}).then(function(){var w=16;return d.cursorControl&&d.cursorControl.beatSubdivisions!==void 0&&parseInt(d.cursorControl.beatSubdivisions,10)>=1&&parseInt(d.cursorControl.beatSubdivisions,10)<=64&&(w=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:w}),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:A})})},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 g(b){return new Promise(function(A){setTimeout(A,b)})}d.runWhenReady=function(b,A){return d.visualObj?d.isLoading?g(500).then(function(){return d.isLoading?d.runWhenReady(b,A):b(A)}):d.isLoaded?b(A):d.go().then(function(){return b(A)}):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(b){return d.runWhenReady(d._randomAccess,b)},d._randomAccess=function(b){var A=b.target.classList.contains("abcjs-midi-progress-indicator")?b.target.parentNode:b.target,w=(b.x-A.offsetLeft)/A.offsetWidth;return w<0&&(w=0),w>1&&(w=1),d.seek(w),Promise.resolve({status:"ok"})},d.seek=function(b,A){d.timer&&d.midiBuffer&&(d.timer.setProgress(b,A),d.midiBuffer.seek(b,A))},d.setWarp=function(b){if(parseInt(b,10)>0){d.warp=parseInt(b,10);var A=d.isStarted,w=d.percent;return d.destroy(),d.isStarted=!1,d.go().then(function(){return d.setProgress(w,d.midiBuffer.duration*1e3),d.control&&d.control.setWarp(d.currentTempo,d.warp),A?d.play().then(function(){return d.seek(w),Promise.resolve()}):(d.seek(w),Promise.resolve())})}return Promise.resolve()},d.onWarp=function(b){var A=b.target.value;return d.setWarp(A)},d.setProgress=function(b,A){d.percent=b,d.control&&d.control.setProgress(b,A)},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(b,A,w,C){var x=b/A;d.setProgress(x,w),d.cursorControl&&d.cursorControl.onBeat&&typeof d.cursorControl.onBeat=="function"&&d.cursorControl.onBeat(b,A,w,C)},d.eventCallback=function(b){if(b)d.cursorControl&&d.cursorControl.onEvent&&typeof d.cursorControl.onEvent=="function"&&d.cursorControl.onEvent(b);else return d.finished()},d.lineEndCallback=function(b,A){d.cursorControl&&d.cursorControl.onLineEnd&&typeof d.cursorControl.onLineEnd=="function"&&d.cursorControl.onLineEnd(b,A)},d.getUrl=function(){return d.midiBuffer.download()},d.download=function(b){var A=d.getUrl(),w=document.createElement("a");document.body.appendChild(w),w.setAttribute("style","display: none;"),w.href=A,w.download=b||"output.wav",w.click(),window.URL.revokeObjectURL(A),document.body.removeChild(w)}}var synthController=SynthController$2,centsToFactor=centsToFactor_1,rendererFactory$1;(function(){function d($,P){for(var k in P)P.hasOwnProperty(k)&&$.setAttribute(k,P[k]);return $}function g(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}g.prototype.setTempo=function($){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+S(Math.round(6e7/$),6),this.endTrack())},g.prototype.setGlobalInfo=function($,P,k,M){if(this.trackcount===0){this.startTrack();var R=Math.round(6e7/$);this.track+="%00%FF%51%03"+S(R,6),k&&(this.track+=w(k)),M&&(this.track+=C(M)),P&&(this.track+=A(P,"%01")),this.endTrack()}},g.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},g.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var $=S(this.track.length/3+4,8);this.track="MTrk"+$+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},g.prototype.setText=function($,P){switch($){case"name":this.trackName=A(P,"%03");break}},g.prototype.setInstrument=function($){this.trackInstrument="%00%C0"+S($,2),this.instrument=$},g.prototype.setChannel=function($,P){this.channel=$;var k="%00%B"+this.channel.toString(16);this.track+=k+"%79%00",this.track+=k+"%40%00",this.track+=k+"%5B%30",P||(P=0),P=Math.round((P+1)*64),this.track+=k+"%0A"+S(P,2),this.track+=k+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var b=4096;g.prototype.startNote=function($,P,k){if(this.track+=B(this.silencelength),this.silencelength=0,k){this.track+="%e"+this.channel.toString(16);var M=Math.round(centsToFactor(k)*b);this.track+=E(8192+M),this.track+=B(0),this.noteWarped[$]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+$.toString(16)+S(P,2)},g.prototype.endNote=function($){this.track+=B(this.silencelength),this.silencelength=0,this.noteWarped[$]&&(this.track+="%e"+this.channel.toString(16),this.track+=E(8192),this.track+=B(0),this.noteWarped[$]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+$.toString(16)+"%00"},g.prototype.addRest=function($){this.silencelength+=$,this.silencelength<0&&(this.silencelength=0)},g.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+S(this.trackcount,4)+"%01%e0"+this.trackstrings},g.prototype.embed=function($,P){var k=this.getData(),M=d(document.createElement("a"),{href:k});if(M.innerHTML="download midi",$.insertBefore(M,$.firstChild),!P){var R=d(document.createElement("embed"),{src:k,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});$.insertBefore(R,$.firstChild)}};function A($,P){for(var k="",M=0;M<$.length;M++)k+=S($.charCodeAt(M),2);return"%00%FF"+P+S(k.length/3,2)+k}function w($){if(!$||!$.accidentals)return"";for(var P="%00%FF%59%02",k=0,M=256,R=0;R<$.accidentals.length;R++)$.accidentals[R].acc==="sharp"?k++:$.accidentals[R].acc==="flat"&&M--;var F=S(M!==256?M:k,2),L=$.mode==="m"?"%01":"%00";return P+F+L}function C($){var P="%00%FF%58%04"+S($.num,2),k={1:0,2:1,4:2,8:3,16:4,32:5},M=k[$.den];if(!M)return"";P+=S(M,2);var R;switch($.num+"/"+$.den){case"2/4":case"3/4":case"4/4":case"5/4":R=24;break;case"6/4":R=72;break;case"2/2":case"3/2":case"4/2":R=48;break;case"3/8":case"6/8":case"9/8":case"12/8":R=36;break}return R?(P+=S(R,2),P+"%08"):""}function x($){for(var P="",k=0;k<$.length;k+=2)P+="%",P+=$.substr(k,2);return P}function S($,P){var k=$.toString(16);for(k=k.split(".")[0];k.length<P;)k="0"+k;return k.length>P&&(k=k.substring(0,P)),x(k)}function E($){$=Math.round($);var P=$%128,k=$-P;return S(k*2+P,4)}function B($){var P=0,k=[];for($=Math.round($);$!==0;)k.push($&127),$=$>>7;for(var M=k.length-1;M>=0;M--){P=P<<8;var R=k[M];M!==0&&(R=R|128),P=P|R}var F=P.toString(16).length;return F+=F%2,S(P,F)}rendererFactory$1=function(){return new g}})();var abc_midi_renderer=rendererFactory$1,rendererFactory=abc_midi_renderer,create;(function(){var d=1920;create=function(b,A){A===void 0&&(A={});var w=b.setUpAudio(A),C=rendererFactory(),x=b.metaText?b.metaText.title:void 0;x&&x.length>128&&(x=x.substring(0,124)+"...");var S=b.getKeySignature(),E=b.getMeterFraction(),B=w.tempo/60;C.setGlobalInfo(w.tempo,x,S,E);for(var $=0;$<w.tracks.length;$++){C.startTrack();for(var P={},k=0;k<w.tracks[$].length;k++){var M=w.tracks[$][k];switch(M.cmd){case"text":C.setText(M.type,M.text);break;case"program":var R=0;A.pan&&A.pan.length>$&&(R=A.pan[$]),M.instrument===128?(C.setChannel(9,R),C.setInstrument(0)):(C.setChannel(M.channel,R),C.setInstrument(M.instrument));break;case"note":var F=M.gap*B,L=M.start,z=L+M.duration-F;P[L]||(P[L]=[]),P[L].push({pitch:M.pitch,volume:M.volume,cents:M.cents}),P[z]||(P[z]=[]),P[z].push({pitch:M.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+M.cmd)}}g(C,P,d),C.endTrack()}return C.getData()};function g(b,A,w){for(var C=Object.keys(A),x=0;x<C.length;x++)C[x]=parseFloat(C[x]);C.sort(function(M,R){return M-R});for(var S=0,E=0;E<C.length;E++){var B=A[C[E]];if(C[E]>S){var $=(C[E]-S)*w;b.addRest($),S=C[E]}for(var P=0;P<B.length;P++){var k=B[P];k.volume?b.startNote(k.pitch,k.volume,k.cents):b.endNote(k.pitch)}}}})();var abc_midi_create=create,tunebook=abc_tunebook,midiCreate=abc_midi_create,getMidiFile$1=function(d,g){var b={};if(g)for(var A in g)g.hasOwnProperty(A)&&(b[A]=g[A]);b.generateInline=!1;function w(C,x,S){var E=midiCreate(x,b);switch(b.midiOutputType){case"encoded":return E;case"binary":var B=E.replace("data:audio/midi,","");B=B.replace(/MThd/g,"%4d%54%68%64"),B=B.replace(/MTrk/g,"%4d%54%72%6b");for(var $=new ArrayBuffer(B.length/3),P=new Uint8Array($),k=0;k<B.length/3;k++){var M=k*3+1,R=parseInt(B.substring(M,M+2),16);P[k]=R}return P;case"link":default:return generateMidiDownloadLink(x,b,E,S)}}return typeof d=="string"?tunebook.renderEngine(w,"*",d,b):w(null,d,0)};function isFunction(d){var g={};return d&&g.toString.call(d)==="[object Function]"}var generateMidiDownloadLink=function(d,g,b,A){var w=["abcjs-download-midi","abcjs-midi-"+A];g.downloadClass&&w.push(g.downloadClass);var C='<div class="'+w.join(" ")+'">';g.preTextDownload&&(C+=g.preTextDownload);var x=d.metaText&&d.metaText.title?d.metaText.title:"Untitled",S;g.downloadLabel&&isFunction(g.downloadLabel)?S=g.downloadLabel(d,A):g.downloadLabel?S=g.downloadLabel.replace(/%T/,x):S='Download MIDI for "'+x+'"',x=x.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var E=g.fileName?g.fileName:x+".midi";return C+='<a download="'+E+'" href="'+b+'">'+S+"</a>",g.postTextDownload&&(C+=g.postTextDownload),C+"</div>"},getMidiFile_1=getMidiFile$1;try{if(typeof window.CustomEvent!="function"){var CustomEvent$1=function(d,g){g=g||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");return b.initCustomEvent(d,g.bubbles,g.cancelable,g.detail),b};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(g){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,g){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(d,g);else if(this.textarea.createTextRange){var b=this.textarea.createTextRange();b.collapse(!0),b.moveEnd("character",g),b.moveStart("character",d),b.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 g={},b;if(d.abcjsParams)for(b in d.abcjsParams)d.abcjsParams.hasOwnProperty(b)&&(g[b]=d.abcjsParams[b]);if(d.midi_options)for(b in d.midi_options)d.midi_options.hasOwnProperty(b)&&(g[b]=d.midi_options[b]);if(d.parser_options)for(b in d.parser_options)d.parser_options.hasOwnProperty(b)&&(g[b]=d.parser_options[b]);if(d.render_options)for(b in d.render_options)d.render_options.hasOwnProperty(b)&&(g[b]=d.render_options[b]);return g.tablature&&d.warnings_id&&(g.tablature.warnings_id=d.warnings_id),g}var Editor=function(d,g){this.abcjsParams=gatherAbcParams(g),g.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),g.canvas_id?this.div=g.canvas_id:g.paper_id?this.div=g.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)),g.selectionChangeCallback&&(this.selectionChangeCallback=g.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),g.synth&&supportsAudio$1()&&(this.synth={el:g.synth.el,cursorControl:g.synth.cursorControl,options:g.synth.options}),g.generate_midi&&(this.generate_midi=g.generate_midi,this.abcjsParams.generateDownload&&(typeof g.midi_download_id=="string"?this.downloadMidi=document.getElementById(g.midi_download_id):g.midi_download_id&&(this.downloadMidi=g.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof g.midi_id=="string"?this.inlineMidi=document.getElementById(g.midi_id):g.midi_id&&(this.inlineMidi=g.midi_id))),g.warnings_id?typeof g.warnings_id=="string"?this.warningsdiv=document.getElementById(g.warnings_id):this.warningsdiv=g.warnings_id:g.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=g.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(b,A){var w=function(C,x){var S=C.className;return S.length>0&&(S===x||new RegExp("(^|\\s)"+x+"(\\s|$)").test(S))};return w(b,A)||(b.className+=(b.className?" ":"")+A),b},this.removeClassName=function(b,A){return b.className=parseCommon.strip(b.className.replace(new RegExp("(^|\\s+)"+A+"(\\s+|$)")," ")),b},this.setReadOnly=function(b){var A="abc_textarea_readonly",w=this.editarea.getElem();b?(w.setAttribute("readonly","yes"),this.addClassName(w,A)):(w.removeAttribute("readonly"),this.removeClassName(w,A))}};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 g=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],g,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 g in d)d.hasOwnProperty(g)&&(this.abcjsParams[g]=d[g]);this.currentAbc="",this.fireChanged()};Editor.prototype.synthParamChanged=function(d){if(this.synth){if(this.synth.options={},d)for(var g in d)d.hasOwnProperty(g)&&(this.synth.options[g]=d[g]);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(g){}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 g=function(C,x){var S=function(E,B){var $=E.className;return $.length>0&&($===B||new RegExp("(^|\\s)"+B+"(\\s|$)").test($))};return S(C,x)||(C.className+=(C.className?" ":"")+x),C},b=function(C,x){return C.className=parseCommon.strip(C.className.replace(new RegExp("(^|\\s+)"+x+"(\\s+|$)")," ")),C},A="abc_textarea_dirty",w=this.editarea.getElem();d?g(w,A):b(w,A)}};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 g=this.isDirty();this.wasDirty!==g&&(this.wasDirty=g,this.setDirtyStyle(g)),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,g,b,A,w,C){this.editarea.setSelection(d.startChar,d.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(d.startChar,d.endChar),this.clientClickListener&&this.clientClickListener(d,g,b,A,w,C)};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 ABCJSAudio="",container="_container_2dtdz_1",containerTop="_containerTop_2dtdz_11",topWrap="_topWrap_2dtdz_18",topBtn="_topBtn_2dtdz_25",btnImg$1="_btnImg_2dtdz_25",btnImgActive="_btnImgActive_2dtdz_51",topBtnIcon$1="_topBtnIcon_2dtdz_54",btnDisabled="_btnDisabled_2dtdz_58",topDownArrow="_topDownArrow_2dtdz_63",topLine="_topLine_2dtdz_75",btnPlayMore="_btnPlayMore_2dtdz_81",wrapBox="_wrapBox_2dtdz_84",longTopBtn="_longTopBtn_2dtdz_94",dropDownWrap="_dropDownWrap_2dtdz_100",content$2="_content_2dtdz_108",slide$1="_slide_2dtdz_113",box$1="_box_2dtdz_126",value="_value_2dtdz_134",instruments$1="_instruments_2dtdz_166",instrumentTitle="_instrumentTitle_2dtdz_174",titleBox="_titleBox_2dtdz_182",popupWrap="_popupWrap_2dtdz_188",btnLineTitle="_btnLineTitle_2dtdz_196",btnItem$1="_btnItem_2dtdz_203",btnItemIcon$1="_btnItemIcon_2dtdz_209",btnItemName$1="_btnItemName_2dtdz_222",btnItemActive="_btnItemActive_2dtdz_225",titleName="_titleName_2dtdz_228",selectMearesBox="_selectMearesBox_2dtdz_234",mearesInput="_mearesInput_2dtdz_244",selectMearesHidden="_selectMearesHidden_2dtdz_255",loading="_loading_2dtdz_258",exportPng="_exportPng_2dtdz_270",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(g,b){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,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAACCpJREFUeF7tnHfMNUUVh59PQKoCSmgqAqFY6NUCYgIEAsFICaFEowImQChSRIqIhSIgRYFAaAlBKaH8QUfUSIiFLlUhNOlFkA4qSh4zk2xe7t3d2btz7+7LPcnN+97v2zmz83vPnDlzzm9mDlNpFYE5rWqbKmMKaMtGMAV0CmjLCLSsbmqhU0D/7/c3BdYGPgO8DTwG/Ab4Q8v4JKvrm4VuBhwNrDlkpH8GvgH8NRmJlhr0CdCPAw8D84SxPwn8Bfgk8NkCHs8CGwIPtoRRkpo+AerAFgXWBR6ZAdgOwC+BD4TRnw98LQmJlh7uG6Blw74M2Do88EfgCy1hlKRmNgF6CbBtGP3PgX2SkGjp4dkA6HLAzwrW+VxYtJ5qCaMkNX0GdEHgEGB/YN4w6meALYHbk1Bo8eE+A3oWsMsMLPYGftEiPsmq+gzoksCJwPaF1f0/wA+Ao5KRaKlBnwGNEKwAHATsWsDE78e2hFGSmtkAaBywIB4TvrwJfAL4RxIaLTw8mwBdB7ilgInb1OtbwChJxWwC9OAZvvNzgHv7sUqfAF0e+DYwP3AFcEMBKbNONwOGUsr9wCrAf8eKJvSqBKJ/1E9GuQZwd7RUiEXd5yuvAOsBfxs3mPbXJwudG/gu4NReaAhY5kP3BO6cBJh9AzRitDCwI7ARYErvtbAzEsyrgf9NCsy+AjopvD4Y/PfLZS/QpymfE0jdib7Y2DV+lgE+Vvi+BPAW8CHgnWEv834A1KSzYBTBir/rMvx96cL2teoPZyLmX7MVUA1isSFgCZSA+dEC25JeA2ooNMiyihYWU3dtAValp7OAfjhYTxlgC1SNbgL/PzFAXRU3AHTug0AT0D7KxAC18rhzTxB7A7AsXfw8Ufj+dWCPMJaJAXoT8MUOAPpCAKYIkMAVv79U8Z4ahgaizBfYKgOb5Ayb3Ll8foyAPgqcBjxeANBCnVSdUaUTgP4JWH+EkfwbEBAtKVpT/D3+1CBkk8wFHA78eIT+ypp2AlDTabI8Bkn0WUWA4jSM/2Y5uM6+3L28abtDM9aSOgHorYEhdy9wcsHSBKzKZ6UYmuk6t4PfB36S0jDh2U4Aam1clpwMDpkcueSfgBkoq50/ytRJJwCVGbfaGAB9MZDIfggcMZsBvTuUIQ4Ejs80UNVa2fxIWJBcmHJIJyxU32mt5zDgyByjDDqfDwkS+7CvHNIJQC2UfSosFC4YuUSC7eKB2SzXKYd0AlCLZCsFZtwBOUYZdD4NSMv5KfC9TP10AlAp2dJk3L1YOMslBv9m26XeFKuibfbXCUAfAqylnwt8q83RzdBlXGupwoXPBTCHdAJQefDLAhcAO+UYZdD595AePCHU53N01QlAPTtkLvRyYJscoww6TYp4EuQk4DuZ+ukEoGZ9rOfI8Ngi00BVG2dCTl59JwA12WE18bfAxhkBjb76FGCvTP0UAZVbZTl5oOTMh8ZwxrxozkRzjCbGZaETAzQG3LcBcjdzSYx3jwvcpxz9dMJC45ZQ4taws5ltDN5znStn3pF1AtCYtDBJYtYpl9wHfHqMGfuJTXmTyIsE8qtJklxyTzg8m/OgQicsVJaatfcHwpTMBehdwKrAvqEykKOfTgAaaz2GNe7pc0lMZO8OnJ6pk04AaiFOf5PbQu8A1gj5AvMGOaQTgBr8yrIw0ewBglxiWLZWYKn8aoROZOitGBY4KededGB5xeSL50etWSkTIzrIofSlcodNnk0yzt0OuLQBoN7+sBvw1VA9LVPhqRI5AEMl507Jc5d2bjl5WH2+wfjf0yTW/7cCrkxQaJ7hVOArCW10Y/HozsBmOQH1r6n+Nm5X0HXoJ817ykbW+o1zPYJ4XiiBpJyckxWoNVs6SRETPmbQJmKhkfXhAS2vBUoV/xheeeER7i8DVVxRn/l9jU6kB5mwqdI3SNWN4fTJ2AGV1x6J/RcBXrKSIl8CzghFvrrtJKbJpyoTp7k+/aN1lc54zjP6+ttsgOoj3fY5ddwVyXSLxIOrQq+pNSUJC5aD4w03dcfuSm8IVSbXArqGpuJNO5HWOFBHEx+qP3NF9cIpraLUSScmLcy6N718Rf9ads+IFxU4W5qKflsmtiS21ixUn2Yi18RxXbEsIVBV4gUCZ1Y9NOT/pT4aH5Ydlo3xasMuOGfAlRzv0VXXQg169WlNqpd14kP/QCaKmywUDqoqiW1k4AUvTcW2q1dZp8rrACqYXjJlnNdEDHfcb5eJFctRCmwyRrwTb5j4DlX+dVhb2X2b1z17XwdQuZ3eNtNEnIpmnIbWYILSWH9q0sfrgHc3mdAeJm4l9a/ySFNEN+GsNKNVS6oAtfzbZDsXO6+zS9LRW1tvKnV5oV5eYDaqasy+h5sGGdH69KRLDMqU688sLzjgpiKjuIooZthl1r2J/DpMx7qDtvoqu8TrMyTpFsVwz5K3t0X4U2Z0spQBul8geiUrDQ0cpFkmWXhlYopPP+VBsRRx3+6GwSmfKo5bIptHH+3bjy5j6Cnjuh2UAWqY8M26igY8V7mrKLRJ6evVkEqzbDwyACOMb2DTMkBdiFyQmsh1IYsz9Bj0DKXusrw/ZBghwryAB8nkSV08ifuY6oJQBqicS8sXqbHhhSEANtWVIm41NwnhmXGjuVR5S2b8nd5mejovVSueRFkJBHXElVGrHiVrXqefTj9TBagv7y00nq4YtmjIsjMwP7vhAtFpgFJfrg6g6tTHmdk2rWYbA3br4b8LIU+dE2+p79bL5+sC2svBTeKlp4C2jPoU0CmgLSPQsrqphU4BbRmBltW9C6ljmGQOwc8cAAAAAElFTkSuQmCC",__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,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAB3lJREFUeF7tnHWsL8UVgL+HW3EnxYMFJxAgBGuwNEigSHENFlyDQ5G0DQ7FCVYcGlxaIEAIEIK7u7sEt3zJTLrZ7L2/ufctZ1/Inn9I2DNz93y/mZ1j88bQS6sExrQ6Wz8ZPdCWF0EPtAfaMoGWp+tXaA+0ZQItT9ev0B5oywRanq5foT3Qlgm0PF2/QnugLRNoebp+hfZAWybQ8nT9Cv0dAF0Q+AZ4bQS2TA3MDTwNfDeCceGq0Sv0b8AhycoNgasLLJ4GeAOYAngSWLRgTGcq0UCvA9ZJ1h4JHFFg+RLAIxW96HcueMX/q0S/3H+A9dKfPxQ4uuBtXZGPJ72fgfELxnSmEg30GmD9ZO1BwHEFli+ctrqqPwATFYzpTCUa6FXAX5K1BwD/KLDcQ+yZpPctMGnBmM5UooFeAWyUrN0XOL7A8vmB55LeV8AfCsZ0phIN9DJgk2TtXsBJBZbPC7yY9D4HdKHGWYkG+m9g00Rjd+DUAjL6ny8nvU+A6QrGdKYSDfRiYPNk7a7Avwosn6MSBHwIzFgwpjOVaKAXAFsla3cCziqw/I/JsVf1PWCWgjGdqUQDPR/YJlm7PXBegeWzAm8nvbcAAY+zEg30XGC7REOwrthBMjPwblJ6HZhz0IAun0cDPRvYIRm8JeA3dZDMAHyQlF4B5hk0oMvn0UDPBHZMBm8GXFpgvKf6R0lP92m+gjGdqUQD9VTfOVmrP6qjP0j0Oz9NSjr4Rk7jrEQDPQ3QXVJK03dTAjr0ylPAIuMsTQhvZzwF2C0BMUli9mmQTA4YcipmnRYfNKDL59Er9ERgz2TwusD1BcabDPk66ZkXXapgTGcq0UBNhuydrP0zcHOB5abrctnjIWCZgjGdqUQD/SdglklZE7itwPIJUh5U1QeA5QrGdKYSDfTvwP7J2tWA/xVY7juaqVfuA1YoGNOZSjRQM/QHJmtXBe4qtPyXpHc3sHLhmE7UooEeA1j6UFYC7im0+sdUS7oT+FPhmE7UooFWy8huXbdwVTyADC09hKzb563+PTAh8F9g9QZSxvsmUUzvmUjJ48KhRgO1dHxYstLDxUPGWH2XlCc1mTxeem4zxB3pE/EwMDFwK7BW0tFL0Kd1Hmv2Wd5JWaxjAWtQoRIN9PBKLV73RyfdMshkw1j9UwLou96U/FhzAEsPIPUYsArwWSTRaKDW4o9KBt4+xPYdzn5jebd3aV3pSmDj3zNQDyQPprp8keJ0w8zFCgH4nbTWZK7U2v20DePUWaBS5CucevRq0StUl6na3OCKsxTiaZ9dozWAGwEd+ibxE+BnwpXuD6EYntrmo29blzPSN3r0lEYwMhqoTr3OvWJu0+9gziRVX7saUdXN8QATUl1coa7WemfJEyNY9SNA16waDdSwU1jKcNkmnfcmp39QtknHf8Waqa7iqcaaVOEE0UBNjORuEZvAbE9skmotvvrc3qjcytM07iJgi4YHHmJNO6EQU7laNFBTd6bwlIWAZ4d41WrpuKpihj93njQNrVZVq8/9xob4pNFAdcRNMivWhnKLTR1OtUGs+szOk9wo0QRUN8lKQFU+BqYvX2NjpxkN1PKHZRDFbf3qEK+/LHB/w7MLga2HMdl0YD00HfTdHTuCtdHRQC3Q5fab2YE3h7DGErPw6uKWznX9pqH+QPW6vTtij1apDTNZNFBLyJaSldkA4+4msW90v4YH1vVzGbr+2DZHD566TXoMnv4hEg3UJgehKDNVGhjqxrpNmy4nuLpz1bQ+RjdML6Aq76cfzmAgRKKBul1tx1FsYLA9sS7VBtv6s+G27+UNcbtexckhJNMfiQZqP5PfQUVnO4eOVZttINt2CAgnAPs0PDOHahhbDVftg/LHCb3XFA3UVsbcIGYiJJeHMyObGCwVV8E8mDruTCD7bbU3vy5N7pIBQP0T8Jsv1mig+pC5QcyEsZn4LJMAlonNHGWxp2nJdKjMBZg0PrhGxcjICKkq9p2adAmXaKC2g+ucK943yqUKs/Susg0qBHxm5snK6EupNGKGySR1luVTWaSaoDaxbBY/JDKq/2LRQA0bvbhgqi6XOvyvB1VuxPUdfa7Pmjucn0+RlTBzgtoOEmtMXl3M8kIq/tnp3IlEA/VKjfG4VUyLbm57yxn5MpgQXJm6V/nw8v8Z85sodru77a182hdVvWKjU2+myS7nziQaqAeFl7/cjoae1wKGmVn0Fw0tL6kR8RayyRQPJJ13b4/4g2Tx2+uVx6EChTDA0UCz8+0VQ7uSjZayWP79K3Bvg/Wm+TysLC3XQ0v9T90sq6SdSzRQV1FTC6PlYU/r3KlcB9MUOX2ZfNJzOqdYeYFooF7ttvaTxdSalVDj+1xTauLzaK0v1Hq9t0hG8o8YhHCPBprvvnsonZ5q9CV1c/tI107RkHWpG0LojOKPRAP1FW0+8CQeKrncZIbdJR5etyQPYRSmxgzpAmiMZR39lR5oy+B7oD3Qlgm0PF2/QnugLRNoebp+hfZAWybQ8nT9Cu2Btkyg5en6FdoDbZlAy9P1K7QH2jKBlqfrV2gPtGUCLU/3K9ihLmQ2OcqhAAAAAElFTkSuQmCC",__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 g;return((g=modules[`./${d}`])==null?void 0:g.default)||""},ALL_NOTES=()=>{const d=["C","^C","D","^D","E","F","^F","G","^G","A","^A","B"],g=[],b=(w=0)=>w===0?"":new Array(Math.abs(w)).fill(w>0?"'":",").join("");for(let w=0;w<=6;w++)for(let C=0;C<12;C++){let x=d[C];w<3?g.push(x+b(w-3)):w===3?g.push(x):w===4?(x=x.toLocaleLowerCase(),g.push(x)):(x=x.toLocaleLowerCase(),g.push(x+b(w-4)))}let A="";return g.forEach((w,C)=>{A+=w+(C%4===0?" |":" ")}),A},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,g)=>{var C,x,S,E,B,$,P,k,M,R,F,L,z,U,W,V,Q,K,G,X;let b=1,A=`X:1
  2464. `;g!=null&&g.showTitle&&d.title&&(A+=d.title+`
  2465. `),g!=null&&g.showCreator&&d.creator&&(A+=d.creator+`
  2466. `),d.celf&&(A+=d.celf+`
  2467. `),d.meter&&(A+=d.meter+`
  2468. `),d.minUnit&&(A+=d.minUnit+`
  2469. `),d.speed&&(A+=d.speed+`
  2470. `),d.key&&(A+=d.key+`
  2471. `);const w=d.measures;for(let J=0;J<w.length;J++){const re=w[J];A+=(C=re.repeat)!=null?C:"",A+=(x=re.meter)!=null?x:"";for(let Z=0;Z<re.notes.length;Z++){const ie=re.notes[Z],ce=(E=(S=ie.play)==null?void 0:S.join(""))!=null?E:"";A+=(B=ie.clef)!=null?B:"",A+=($=ie.key)!=null?$:"",A+=(P=ie.speed)!=null?P:"",A+=(k=ie.slus)!=null?k:"",(M=ie.tie)!=null&&M.includes("(")&&(A+=(R=ie.tie)!=null?R:""),g!=null&&g.hiddenIndex||(A+=`"<${J+"."+Z}"`),A+=ce!=null?ce:"",A+=(F=ie.dynamics)!=null?F:"",A+=(L=ie.accidental)!=null?L:"",A+=(z=ie.content)!=null?z:"",A+=(U=ie.noteType)!=null?U:"",A+=(W=ie.dot)!=null?W:"",A+=(V=ie.tieline)!=null?V:"",(Q=ie.tie)!=null&&Q.includes(")")&&(A+=(K=ie.tie)!=null?K:""),A+=(G=ie.segno)!=null?G:""}let fe=J+1;g!=null&&g.hiddenIndex||(A+=`"<${fe}"`),A+=(X=re.barline)!=null?X:"",b%4===0&&(A+=`
  2472. `),b++}return A},formateGetData={getNoteType:d=>{var A;const g=.25/d;return console.log(g),((A=[{name:.25,value:"4"},{name:.5,value:"2"},{name:1,value:""},{name:2,value:"/"},{name:4,value:"//"},{name:8,value:"///"}].find(w=>w.name===g))==null?void 0:A.value)||""}},formateAbc=(d,g)=>{var x,S,E,B,$,P;const b={celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=60",key:"K:C",visualTranspose:0,subjectCode:(x=g.subjectCode)!=null?x:"acoustic_grand_piano"},A=[];let w=0;const C=k=>{let M="";return k.content.includes("_")&&(M="_"),k.content.includes("__")&&(M="__"),k.content.includes("=")&&(M="="),k.content.includes("^")&&(M="^"),k.content.includes("^^")&&(M="^^"),M};for(let k=0;k<d.lines.length;k++){const M=d.lines[k];if(M.staff)for(let R=0;R<M.staff.length;R++){const F=M.staff[R];if(k===0&&(F.clef&&(b.celf=`K:${F.clef.type}`),F.key&&(b.key=`K:${F.key.root}${F.key.acc}`),(E=(S=F.meter)==null?void 0:S.value)!=null&&E[0]&&(b.meter=`M:${F.meter.value[0].num}/${F.meter.value[0].den}`)),F.voices){let L={notes:[],barline:"|",repeat:"",measureNumber:w,celf:"",key:"",meter:""};for(let z=0;z<F.voices.length;z++){const U=F.voices[z];for(let W=0;W<U.length;W++){const V=U[W];if(V.el_type==="bar"&&(w++,A.push(L),L={notes:[],barline:"|",repeat:"",measureNumber:w,celf:"",key:"",meter:""}),V.el_type==="note"){let Q={clef:"",key:"",speed:"",slus:"",tie:"",content:"",noteType:formateGetData.getNoteType(V.duration),play:[],dynamics:"",accidental:"",dot:"",tieline:"",segno:""};V.rest?Q.content="z":Q.content=(P=($=(B=V.pitches)==null?void 0:B[0])==null?void 0:$.name)!=null?P:"",Q.accidental=C(Q),Q.accidental&&(Q.content=Q.content.replace(Q.accidental,""));const K=createNote(Q);L.notes.push(K)}}}}}}return console.log(w,A),{...b,measures:A}},index="",TheIcon=defineComponent({name:"TheIcon",props:{iconClassName:{type:String,default:""},color:{type:String,default:""},size:{type:Array,default:["1em","1em"]}},setup(d){let g="1em",b="1em";return Array.isArray(d.size)?(g=d.size[0],b=d.size[1]):(g=d.size,b=d.size),()=>createVNode("svg",{style:{width:g,height:b},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:g}){const b=useMessage(),A=reactive({subjects:[],loading:!1}),w=reactive({subjectId:4,key:ABC_DATA.key[0],meter:ABC_DATA.meter[0],speed:80,measure:30,subjectCode:"recorder"}),C=async()=>{if(!w.speed){b.warning("请输入开始速度");return}if(!w.measure){b.warning("请输入小节数量");return}A.loading=!0;try{await api_musicSheetCreationSave({creationData:JSON.stringify({celf:"K:treble",minUnit:"L:1/4",meter:w.meter,speed:`Q:1/4=${w.speed}`,key:w.key,subjectCode:w.subjectCode,measures:initMusic(w.measure)}),name:"",creationConfig:"",subjectId:1}),g("create")}catch(S){console.log("🚀 ~ error:",S)}A.loading=!1},x=async()=>{const S=await api_subjectList();A.subjects=S.data||[]};return onMounted(async()=>{x()}),()=>{let S;return createVNode(NModal,{transformOrigin:"center",autoFocus:!1,show:d.show,"onUpdate:show":E=>g("update:show",E)},{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:()=>g("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(S=instruments.map(E=>createVNode("div",{class:[styles$4.item,w.subjectId===E.id&&styles$4.itemActive],onClick:()=>{w.subjectId=E.id,w.subjectCode=E.key}},[createVNode("div",{class:styles$4.itemImg},[createVNode("img",{class:styles$4.icon,src:E.icon},null)]),createVNode("div",null,[E.label]),createVNode("img",{class:styles$4.itemIcon,src:getImage("icon_check.png")},null)])))?S:{default:()=>[S]}),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:w.key.icon},null)]),createVNode("div",null,[w.key.name])])]),default:()=>{let E;return createVNode(NGrid,{cols:5,xGap:20,yGap:8},_isSlot$2(E=ABC_DATA.key.map(B=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,w.key.value===B.value&&styles$4.active],onClick:()=>w.key=B},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:B.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[B.name])])]})))?E:{default:()=>[E]})}}),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:w.meter.icon},null)]),createVNode("div",null,[w.meter.name])])]),default:()=>{let E;return createVNode(NGrid,{cols:5,xGap:50,yGap:20},_isSlot$2(E=ABC_DATA.meter.map(B=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$4.btnItem,w.meter.value===B.value&&styles$4.active],onClick:()=>w.meter=B},[createVNode("div",{class:[styles$4.btnItemIcon]},[createVNode(TheIcon,{iconClassName:B.icon},null)]),createVNode("div",{class:styles$4.btnItemName},[B.name])])]})))?E:{default:()=>[E]})}}),createVNode("div",null,[createVNode("div",{class:styles$4.lineTitle},[createTextVNode("速度")]),createVNode("div",{class:styles$4.beatItem},[createVNode(NInputNumber,{size:"large",value:w.speed,"onUpdate:value":E=>w.speed=E,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:w.measure,"onUpdate:value":E=>w.measure=E,min:4},null)])])]}),createVNode("div",{class:styles$4.btns},[createVNode(NButton,{round:!0,onClick:()=>g("update:show",!1)},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{loading:A.loading,round:!0,type:"primary",onClick:()=>C()},{default:()=>[createTextVNode("确定")]})])])])]})}}}),Keys=defineComponent({name:"Keys",emits:["click"],props:{show:{type:Boolean,default:!1},instrumentCode:{type:String,default:""}},setup(d,{emit:g}){const b=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}}),A=["#F07C83","#FF966C","#FBB957","#A7DCBF","#CCCCD6","#A5D2FF","#B0A4F4"],w=(B=0)=>new Array(Math.abs(B)).fill(B>0?"'":",").join(""),C=B=>{b.keyDown=B.key.toLocaleUpperCase()},x=B=>{b.keyDown=""},S=()=>{var k;let B=0;const $=[];for(let M=0;M<7;M++){const R=[];for(let F=0;F<b.keys.length;F++){const L=b.keys[F];let z=M>3?L.key.toLocaleLowerCase():L.key;const U=M>3?[3,4].includes(M)?0:M-4:M-3;R.push({noteIndex:B,index:M,singname:L.singname,key:L.key,name:L.key+(M+1),type:"white",value:z+w(U)}),B++,L.key!=="E"&&L.key!=="B"&&(R.push({noteIndex:B,bekey:"bkey"+F,index:M,key:L.key,singname:L.singname,name:"#"+L.key+(M+1),type:"black",value:z+w(U)+"-^"}),B++)}$.push(R)}b.list=$;const P=(k=notationInstruments.find(M=>M.key===d.instrumentCode))==null?void 0:k.range;P&&(b.range=P)},E=computed(()=>b.list.map($=>$.filter(P=>P.noteIndex>=b.range.min&&P.noteIndex<=b.range.max)).filter($=>$.length>0));return onMounted(()=>{S(),document.addEventListener("keydown",C),document.addEventListener("keyup",x)}),onUnmounted(()=>{document.removeEventListener("keydown",C),document.removeEventListener("keyup",x)}),()=>createVNode("div",{class:[styles$5.piano,d.show&&styles$5.show]},[createVNode("div",{class:styles$5.pianoItemWrap},[E.value.map((B,$)=>createVNode("div",{class:styles$5.itemWrap,style:{width:`calc(100% / ${E.value.length})`}},[B.map(P=>createVNode(Fragment,null,[P.type==="white"?createVNode("div",{style:{display:P.noteIndex<b.range.min||P.noteIndex>b.range.max?"none":""},class:[styles$5.item,P.index===3&&b.keyDown===P.key&&styles$5.keyDown],key:P.index,onClick:()=>{console.log(P.value),g("click",{type:"note",value:P.value})}},[createVNode("div",{class:styles$5.keytip},[createVNode("div",{style:{color:"#ff4a00"}},[P.index===3&&P.key==="C"?"中央C":""]),createVNode("div",{class:styles$5.keyname},[P.name]),createVNode("div",{class:styles$5.singname,style:{background:A[P.index]}},[P.singname])])]):createVNode("div",{style:{display:P.noteIndex<b.range.min||P.noteIndex>b.range.max?"none":""},class:[styles$5.bkey,`${P.bekey}`],onClick:()=>{g("click",{type:"note",value:P.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,g)=>{if(d.length){const b=d.indexOf(g);if(b>-1)return d.splice(b,1)}},inBrowser$1=()=>typeof window<"u";var getGlobalThis=()=>typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:self;function error(d,g){throw Error("Varlet ["+d+"]: "+g)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(d){for(var g=1;g<arguments.length;g++){var b=arguments[g];for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&(d[A]=b[A])}return d},_extends.apply(this,arguments)}function getStyle(d){return window.getComputedStyle(d)}function getRect(d){if(isWindow(d)){var g=d.innerWidth,b=d.innerHeight,A={x:0,y:0,top:0,left:0,right:g,bottom:b,width:g,height:b};return _extends({},A,{toJSON:()=>A})}return d.getBoundingClientRect()}function getViewportSize(){var{width:d,height:g}=getRect(window);return{vw:d,vh:g,vMin:Math.min(d,g),vMax:Math.max(d,g)}}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:g,vh:b,vMin:A,vMax:w}=getViewportSize();if(isVw(d))return+d.replace("vw","")*g/100;if(isVh(d))return+d.replace("vh","")*b/100;if(isVMin(d))return+d.replace("vmin","")*A/100;if(isVMax(d))return+d.replace("vmax","")*w/100;if(isRem(d)){var C=+d.replace("rem",""),x=getStyle(document.documentElement).fontSize;return C*parseFloat(x)}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$1(d){var g=getGlobalThis();return g.requestAnimationFrame?g.requestAnimationFrame(d):g.setTimeout(d,16)}function nextTickFrame(d){requestAnimationFrame$1(()=>{requestAnimationFrame$1(d)})}var __rest=globalThis&&globalThis.__rest||function(d,g){var b={};for(var A in d)Object.prototype.hasOwnProperty.call(d,A)&&g.indexOf(A)<0&&(b[A]=d[A]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,A=Object.getOwnPropertySymbols(d);w<A.length;w++)g.indexOf(A[w])<0&&Object.prototype.propertyIsEnumerable.call(d,A[w])&&(b[A[w]]=d[A[w]]);return b};function keyInProvides(d){const g=getCurrentInstance();return d in g.provides}function useParent(d){if(!keyInProvides(d))return{index:null,parentProvider:null,bindParent:null};const g=inject(d),{childInstances:b,collect:A,clear:w}=g,C=__rest(g,["childInstances","collect","clear"]),x=getCurrentInstance();return{index:computed(()=>b.indexOf(x)),parentProvider:C,bindParent:B=>{onMounted(()=>{nextTick().then(()=>{A(x,B)})}),onBeforeUnmount(()=>{nextTick().then(()=>{w(x,B)})})}}}function flatVNodes(d){const g=[],b=A=>{if(A!=null&&A.component){b(A==null?void 0:A.component.subTree);return}Array.isArray(A==null?void 0:A.children)&&A.children.forEach(w=>{isVNode(w)&&(g.push(w),b(w))})};return b(d),g}function useChildren(d){const g=getCurrentInstance(),b=reactive([]),A=[],w=computed(()=>b.length),C=()=>{const B=flatVNodes(g.subTree);b.sort(($,P)=>B.indexOf($.vnode)-B.indexOf(P.vnode))},x=(B,$)=>{b.push(B),A.push($),C()},S=(B,$)=>{removeItem(b,B),removeItem(A,$)};return{length:w,childProviders:A,bindChildren:B=>{provide(d,Object.assign({childInstances:b,collect:x,clear:S},B))}}}function withInstall(d,g){var b=g!=null?g:d;return b.install=function(A){var{name:w}=d;w&&A.component(w,d)},b}function createNamespace(d){var g="var",b=g+"-"+d,A=C=>C?C[0]==="$"?C.replace("$",g):C.startsWith("--")?""+b+C:b+"__"+C:b,w=function(){for(var C=arguments.length,x=new Array(C),S=0;S<C;S++)x[S]=arguments[S];return x.map(E=>{if(isArray(E)){var[B,$,P=null]=E;return B?$:P}return E})};return{n:A,classes:w}}function call(d){for(var g=arguments.length,b=new Array(g>1?g-1:0),A=1;A<g;A++)b[A-1]=arguments[A];if(isArray(d))return d.map(w=>w(...b));if(d)return d(...b)}function defineListenerProp(d){return{type:[Function,Array],default:d}}function formatElevation(d,g){return d===!1?null:(d===!0&&g&&(d=g),"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,g,b,A,w,C,x){try{var S=d[C](x),E=S.value}catch(B){b(B);return}S.done?g(E):Promise.resolve(E).then(A,w)}function _asyncToGenerator(d){return function(){var g=this,b=arguments;return new Promise(function(A,w){var C=d.apply(g,b);function x(E){asyncGeneratorStep(C,A,w,x,S,"next",E)}function S(E){asyncGeneratorStep(C,A,w,x,S,"throw",E)}x(void 0)})}}var{n:n$3,classes:classes$1}=createNamespace("icon");function __render__$2(d,g){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 g=ref(""),b=ref(!1),A=function(){var w=_asyncToGenerator(function*(C,x){var{transition:S}=d;if(x==null||toNumber(S)===0){g.value=C;return}b.value=!0,yield nextTick(),setTimeout(()=>{x!=null&&(g.value=C),b.value=!1},toNumber(S))});return function(x,S){return w.apply(this,arguments)}}();return watch(()=>d.name,A,{immediate:!0}),{n:n$3,classes:classes$1,nextName:g,animateInProgress:b,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:g,bindChildren:b}=useChildren(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return{length:g,collapseItem:d,bindCollapseItem:b}}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,g){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:g,collapseItem:b,bindCollapseItem:A}=useCollapseItem(),w=computed(()=>d.modelValue),C=computed(()=>d.offset),x=computed(()=>d.divider),S=computed(()=>d.elevation),E=()=>!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=(F,L)=>E()?L?d.accordion?F:[...d.modelValue,F]:d.accordion?null:d.modelValue.filter(z=>z!==F):null,$=(F,L)=>{var z=B(F,L);call(d["onUpdate:modelValue"],z),call(d.onChange,z)},P=()=>{if(d.accordion)return b.find(L=>{var{name:z}=L;return d.modelValue===z.value});var F=b.filter(L=>{var{name:z}=L;return z.value===void 0?!1:d.modelValue.includes(z.value)});return F.length?F:void 0},k=()=>d.accordion?b.find(F=>{var{index:L,name:z}=F;return z.value===void 0&&d.modelValue===L.value}):b.filter(F=>{var{index:L,name:z}=F;return z.value===void 0&&d.modelValue.includes(L.value)}),M=()=>{if(E()){var F=P()||k();if(d.accordion&&!F||!d.accordion&&!F.length){b.forEach(L=>{L.init(d.accordion,!1)});return}b.forEach(L=>{var z=d.accordion?F===L:F.includes(L);L.init(d.accordion,z)})}},R={active:w,offset:C,divider:x,elevation:S,updateItem:$};return A(R),watch(()=>g.value,()=>nextTick().then(M)),watch(()=>d.modelValue,()=>nextTick().then(M)),{n:n$2,divider:x}}});__sfc__$1.render=__render__$1;const Collapse=__sfc__$1;withInstall(Collapse);function useCollapse(){var{parentProvider:d,index:g,bindParent:b}=useParent(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return b||error("Collapse","<var-collapse-item/> must in <var-collapse>"),{index:g,collapse:d,bindCollapse:b}}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,g){var b=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:g[0]||(g[0]=A=>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(b,{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:g[1]||(g[1]=function(){return d.transitionend&&d.transitionend(...arguments)}),onTransitionstart:g[2]||(g[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:g,collapse:b,bindCollapse:A}=useCollapse(),w=!0,C=ref(null),x=ref(!1),S=ref(!1),{active:E,offset:B,divider:$,elevation:P,updateItem:k}=b,M=computed(()=>d.name),R=(Q,K)=>{E.value===void 0||Q&&isArray(E.value)||K===S.value||(S.value=K,F(!0))},F=Q=>{d.disabled||Q||k(d.name||g.value,!S.value)},L=()=>{C.value&&(C.value.style.height="",x.value=!0,requestAnimationFrame$1(()=>{var{offsetHeight:Q}=C.value;C.value.style.height="0px",requestAnimationFrame$1(()=>{C.value.style.height=Q+"px",w&&nextTickFrame(()=>{w&&W()})})}))},z=()=>{w=!1},U=()=>{if(C.value){var{offsetHeight:Q}=C.value;C.value.style.height=Q+"px",requestAnimationFrame$1(()=>{C.value.style.height="0px"})}},W=()=>{S.value||(x.value=!1),C.value.style.height=""},V={index:g,name:M,init:R};return A(V),watch(S,Q=>{Q?L():U()}),{n:n$1,start:z,classes,showContent:x,isShow:S,offset:B,divider:$,elevation:P,toggle:F,contentEl:C,transitionend:W,formatElevation}}});__sfc__.render=__render__;const CollapseItem=__sfc__;withInstall(CollapseItem);var lodashExports={},lodash={get exports(){return lodashExports},set exports(d){lodashExports=d}};/**
  2473. * @license
  2474. * Lodash <https://lodash.com/>
  2475. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  2476. * Released under MIT license <https://lodash.com/license>
  2477. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  2478. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  2479. */(function(d,g){(function(){var b,A="4.17.21",w=200,C="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",S="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",B=500,$="__lodash_placeholder__",P=1,k=2,M=4,R=1,F=2,L=1,z=2,U=4,W=8,V=16,Q=32,K=64,G=128,X=256,J=512,re=30,fe="...",Z=800,ie=16,ce=1,me=2,ne=3,te=1/0,ue=9007199254740991,ae=17976931348623157e292,ye=0/0,Oe=4294967295,Ye=Oe-1,et=Oe>>>1,ht=[["ary",G],["bind",L],["bindKey",z],["curry",W],["curryRight",V],["flip",J],["partial",Q],["partialRight",K],["rearg",X]],Te="[object Arguments]",Le="[object Array]",Re="[object AsyncFunction]",$e="[object Boolean]",qe="[object Date]",rt="[object DOMException]",Xe="[object Error]",he="[object Function]",we="[object GeneratorFunction]",Be="[object Map]",Ne="[object Number]",Se="[object Null]",q="[object Object]",se="[object Promise]",ge="[object Proxy]",de="[object RegExp]",ve="[object Set]",Pe="[object String]",De="[object Symbol]",Qe="[object Undefined]",ot="[object WeakMap]",st="[object WeakSet]",ut="[object ArrayBuffer]",He="[object DataView]",ct="[object Float32Array]",mt="[object Float64Array]",_t="[object Int8Array]",ft="[object Int16Array]",Ct="[object Int32Array]",pt="[object Uint8Array]",bt="[object Uint8ClampedArray]",be="[object Uint16Array]",Fe="[object Uint32Array]",We=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yt=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,Ie=RegExp(yt.source),ze=RegExp(Ae.source),Ve=/<%-([\s\S]+?)%>/g,Ke=/<%([\s\S]+?)%>/g,dt=/<%=([\s\S]+?)%>/g,Et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,_e=RegExp(Mt.source),je=/^\s+/,lt=/\s/,Tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ht=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,er=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/[()=,{}\[\]\/\s]/,Dt=/\\(\\)?/g,dr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sr=/\w*$/,an=/^[-+]0x[0-9a-f]+$/i,br=/^0b[01]+$/i,In=/^\[object .+?Constructor\]$/,Mn=/^0o[0-7]+$/i,To=/^(?:0|[1-9]\d*)$/,Po=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,Nr=/['\n\r\u2028\u2029\\]/g,wn="\\ud800-\\udfff",Bo="\\u0300-\\u036f",$o="\\ufe20-\\ufe2f",ko="\\u20d0-\\u20ff",Jn=Bo+$o+ko,sn="\\u2700-\\u27bf",Zn="a-z\\xdf-\\xf6\\xf8-\\xff",Io="\\xac\\xb1\\xd7\\xf7",Dr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mo="\\u2000-\\u206f",No=" \\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",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",to="\\ufe0e\\ufe0f",ro=Io+Dr+Mo+No,Nn="['’]",Cn="["+wn+"]",no="["+ro+"]",xn="["+Jn+"]",oo="\\d+",io="["+sn+"]",ao="["+Zn+"]",so="[^"+wn+ro+oo+sn+Zn+eo+"]",ln="\\ud83c[\\udffb-\\udfff]",Do="(?:"+xn+"|"+ln+")",lo="[^"+wn+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",On="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+eo+"]",co="\\u200d",uo="(?:"+ao+"|"+so+")",Oo="(?:"+Zr+"|"+so+")",ti="(?:"+Nn+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+Nn+"(?:D|LL|M|RE|S|T|VE))?",Ro=Do+"?",ni="["+to+"]?",oi="(?:"+co+"(?:"+[lo,Dn,On].join("|")+")"+ni+Ro+")*",Xi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rn=ni+Ro+oi,Zi="(?:"+[io,Dn,On].join("|")+")"+Rn,Sn="(?:"+[lo+xn+"?",xn,Dn,On,Cn].join("|")+")",en=RegExp(Nn,"g"),ea=RegExp(xn,"g"),fo=RegExp(ln+"(?="+ln+")|"+Sn+Rn,"g"),ho=RegExp([Zr+"?"+ao+"+"+ti+"(?="+[no,Zr,"$"].join("|")+")",Oo+"+"+ri+"(?="+[no,Zr+uo,"$"].join("|")+")",Zr+"?"+uo+"+"+ti,Zr+"+"+ri,Ji,Xi,oo,Zi].join("|"),"g"),ta=RegExp("["+co+wn+Jn+to+"]"),ra=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,na=["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"],ii=-1,Jt={};Jt[ct]=Jt[mt]=Jt[_t]=Jt[ft]=Jt[Ct]=Jt[pt]=Jt[bt]=Jt[be]=Jt[Fe]=!0,Jt[Te]=Jt[Le]=Jt[ut]=Jt[$e]=Jt[He]=Jt[qe]=Jt[Xe]=Jt[he]=Jt[Be]=Jt[Ne]=Jt[q]=Jt[de]=Jt[ve]=Jt[Pe]=Jt[ot]=!1;var Zt={};Zt[Te]=Zt[Le]=Zt[ut]=Zt[He]=Zt[$e]=Zt[qe]=Zt[ct]=Zt[mt]=Zt[_t]=Zt[ft]=Zt[Ct]=Zt[Be]=Zt[Ne]=Zt[q]=Zt[de]=Zt[ve]=Zt[Pe]=Zt[De]=Zt[pt]=Zt[bt]=Zt[be]=Zt[Fe]=!0,Zt[Xe]=Zt[he]=Zt[ot]=!1;var po={À:"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"},cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ai={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},si=parseFloat,Wr=parseInt,zo=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,oa=typeof self=="object"&&self&&self.Object===Object&&self,ir=zo||oa||Function("return this")(),Fn=g&&!g.nodeType&&g,_r=Fn&&!0&&d&&!d.nodeType&&d,zn=_r&&_r.exports===Fn,Ln=zn&&zo.process,yr=function(){try{var ke=_r&&_r.require&&_r.require("util").types;return ke||Ln&&Ln.binding&&Ln.binding("util")}catch(Je){}}(),li=yr&&yr.isArrayBuffer,ci=yr&&yr.isDate,ui=yr&&yr.isMap,Hn=yr&&yr.isRegExp,di=yr&&yr.isSet,fi=yr&&yr.isTypedArray;function Ar(ke,Je,Ue){switch(Ue.length){case 0:return ke.call(Je);case 1:return ke.call(Je,Ue[0]);case 2:return ke.call(Je,Ue[0],Ue[1]);case 3:return ke.call(Je,Ue[0],Ue[1],Ue[2])}return ke.apply(Je,Ue)}function oe(ke,Je,Ue,At){for(var Ot=-1,Yt=ke==null?0:ke.length;++Ot<Yt;){var cr=ke[Ot];Je(At,cr,Ue(cr),ke)}return At}function Ce(ke,Je){for(var Ue=-1,At=ke==null?0:ke.length;++Ue<At&&Je(ke[Ue],Ue,ke)!==!1;);return ke}function Ge(ke,Je){for(var Ue=ke==null?0:ke.length;Ue--&&Je(ke[Ue],Ue,ke)!==!1;);return ke}function at(ke,Je){for(var Ue=-1,At=ke==null?0:ke.length;++Ue<At;)if(!Je(ke[Ue],Ue,ke))return!1;return!0}function Pt(ke,Je){for(var Ue=-1,At=ke==null?0:ke.length,Ot=0,Yt=[];++Ue<At;){var cr=ke[Ue];Je(cr,Ue,ke)&&(Yt[Ot++]=cr)}return Yt}function xt(ke,Je){var Ue=ke==null?0:ke.length;return!!Ue&&Br(ke,Je,0)>-1}function Ut(ke,Je,Ue){for(var At=-1,Ot=ke==null?0:ke.length;++At<Ot;)if(Ue(Je,ke[At]))return!0;return!1}function Bt(ke,Je){for(var Ue=-1,At=ke==null?0:ke.length,Ot=Array(At);++Ue<At;)Ot[Ue]=Je(ke[Ue],Ue,ke);return Ot}function Kt(ke,Je){for(var Ue=-1,At=Je.length,Ot=ke.length;++Ue<At;)ke[Ot+Ue]=Je[Ue];return ke}function nr(ke,Je,Ue,At){var Ot=-1,Yt=ke==null?0:ke.length;for(At&&Yt&&(Ue=ke[++Ot]);++Ot<Yt;)Ue=Je(Ue,ke[Ot],Ot,ke);return Ue}function pr(ke,Je,Ue,At){var Ot=ke==null?0:ke.length;for(At&&Ot&&(Ue=ke[--Ot]);Ot--;)Ue=Je(Ue,ke[Ot],Ot,ke);return Ue}function fr(ke,Je){for(var Ue=-1,At=ke==null?0:ke.length;++Ue<At;)if(Je(ke[Ue],Ue,ke))return!0;return!1}var lr=ia("length");function Er(ke){return ke.split("")}function Tr(ke){return ke.match(er)||[]}function Kr(ke,Je,Ue){var At;return Ue(ke,function(Ot,Yt,cr){if(Je(Ot,Yt,cr))return At=Yt,!1}),At}function Pr(ke,Je,Ue,At){for(var Ot=ke.length,Yt=Ue+(At?1:-1);At?Yt--:++Yt<Ot;)if(Je(ke[Yt],Yt,ke))return Yt;return-1}function Br(ke,Je,Ue){return Je===Je?fc(ke,Je,Ue):Pr(ke,Vn,Ue)}function hi(ke,Je,Ue,At){for(var Ot=Ue-1,Yt=ke.length;++Ot<Yt;)if(At(ke[Ot],Je))return Ot;return-1}function Vn(ke){return ke!==ke}function jn(ke,Je){var Ue=ke==null?0:ke.length;return Ue?sa(ke,Je)/Ue:ye}function ia(ke){return function(Je){return Je==null?b:Je[ke]}}function aa(ke){return function(Je){return ke==null?b:ke[Je]}}function as(ke,Je,Ue,At,Ot){return Ot(ke,function(Yt,cr,tr){Ue=At?(At=!1,Yt):Je(Ue,Yt,cr,tr)}),Ue}function rc(ke,Je){var Ue=ke.length;for(ke.sort(Je);Ue--;)ke[Ue]=ke[Ue].value;return ke}function sa(ke,Je){for(var Ue,At=-1,Ot=ke.length;++At<Ot;){var Yt=Je(ke[At]);Yt!==b&&(Ue=Ue===b?Yt:Ue+Yt)}return Ue}function la(ke,Je){for(var Ue=-1,At=Array(ke);++Ue<ke;)At[Ue]=Je(Ue);return At}function nc(ke,Je){return Bt(Je,function(Ue){return[Ue,ke[Ue]]})}function ss(ke){return ke&&ke.slice(0,ds(ke)+1).replace(je,"")}function Or(ke){return function(Je){return ke(Je)}}function ca(ke,Je){return Bt(Je,function(Ue){return ke[Ue]})}function Lo(ke,Je){return ke.has(Je)}function ls(ke,Je){for(var Ue=-1,At=ke.length;++Ue<At&&Br(Je,ke[Ue],0)>-1;);return Ue}function cs(ke,Je){for(var Ue=ke.length;Ue--&&Br(Je,ke[Ue],0)>-1;);return Ue}function oc(ke,Je){for(var Ue=ke.length,At=0;Ue--;)ke[Ue]===Je&&++At;return At}var ic=aa(po),ac=aa(cn);function sc(ke){return"\\"+ai[ke]}function lc(ke,Je){return ke==null?b:ke[Je]}function go(ke){return ta.test(ke)}function cc(ke){return ra.test(ke)}function uc(ke){for(var Je,Ue=[];!(Je=ke.next()).done;)Ue.push(Je.value);return Ue}function ua(ke){var Je=-1,Ue=Array(ke.size);return ke.forEach(function(At,Ot){Ue[++Je]=[Ot,At]}),Ue}function us(ke,Je){return function(Ue){return ke(Je(Ue))}}function _n(ke,Je){for(var Ue=-1,At=ke.length,Ot=0,Yt=[];++Ue<At;){var cr=ke[Ue];(cr===Je||cr===$)&&(ke[Ue]=$,Yt[Ot++]=Ue)}return Yt}function pi(ke){var Je=-1,Ue=Array(ke.size);return ke.forEach(function(At){Ue[++Je]=At}),Ue}function dc(ke){var Je=-1,Ue=Array(ke.size);return ke.forEach(function(At){Ue[++Je]=[At,At]}),Ue}function fc(ke,Je,Ue){for(var At=Ue-1,Ot=ke.length;++At<Ot;)if(ke[At]===Je)return At;return-1}function hc(ke,Je,Ue){for(var At=Ue+1;At--;)if(ke[At]===Je)return At;return At}function vo(ke){return go(ke)?gc(ke):lr(ke)}function Yr(ke){return go(ke)?vc(ke):Er(ke)}function ds(ke){for(var Je=ke.length;Je--&&lt.test(ke.charAt(Je)););return Je}var pc=aa(Fo);function gc(ke){for(var Je=fo.lastIndex=0;fo.test(ke);)++Je;return Je}function vc(ke){return ke.match(fo)||[]}function mc(ke){return ke.match(ho)||[]}var bc=function ke(Je){Je=Je==null?ir:mo.defaults(ir.Object(),Je,mo.pick(ir,na));var Ue=Je.Array,At=Je.Date,Ot=Je.Error,Yt=Je.Function,cr=Je.Math,tr=Je.Object,da=Je.RegExp,yc=Je.String,Hr=Je.TypeError,gi=Ue.prototype,Ac=Yt.prototype,bo=tr.prototype,vi=Je["__core-js_shared__"],mi=Ac.toString,Xt=bo.hasOwnProperty,wc=0,fs=function(){var I=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),bi=bo.toString,Cc=mi.call(tr),xc=ir._,Sc=da("^"+mi.call(Xt).replace(Mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yi=zn?Je.Buffer:b,En=Je.Symbol,Ai=Je.Uint8Array,hs=yi?yi.allocUnsafe:b,wi=us(tr.getPrototypeOf,tr),ps=tr.create,gs=bo.propertyIsEnumerable,Ci=gi.splice,vs=En?En.isConcatSpreadable:b,Ho=En?En.iterator:b,Un=En?En.toStringTag:b,xi=function(){try{var I=Yn(tr,"defineProperty");return I({},"",{}),I}catch(D){}}(),_c=Je.clearTimeout!==ir.clearTimeout&&Je.clearTimeout,Ec=At&&At.now!==ir.Date.now&&At.now,Tc=Je.setTimeout!==ir.setTimeout&&Je.setTimeout,Si=cr.ceil,_i=cr.floor,fa=tr.getOwnPropertySymbols,Pc=yi?yi.isBuffer:b,ms=Je.isFinite,Bc=gi.join,$c=us(tr.keys,tr),ur=cr.max,vr=cr.min,kc=At.now,Ic=Je.parseInt,bs=cr.random,Mc=gi.reverse,ha=Yn(Je,"DataView"),Vo=Yn(Je,"Map"),pa=Yn(Je,"Promise"),yo=Yn(Je,"Set"),jo=Yn(Je,"WeakMap"),Uo=Yn(tr,"create"),Ei=jo&&new jo,Ao={},Nc=qn(ha),Dc=qn(Vo),Oc=qn(pa),Rc=qn(yo),Fc=qn(jo),Ti=En?En.prototype:b,Qo=Ti?Ti.valueOf:b,ys=Ti?Ti.toString:b;function le(I){if(or(I)&&!Rt(I)&&!(I instanceof Qt)){if(I instanceof Vr)return I;if(Xt.call(I,"__wrapped__"))return wl(I)}return new Vr(I)}var wo=function(){function I(){}return function(D){if(!rr(D))return{};if(ps)return ps(D);I.prototype=D;var H=new I;return I.prototype=b,H}}();function Pi(){}function Vr(I,D){this.__wrapped__=I,this.__actions__=[],this.__chain__=!!D,this.__index__=0,this.__values__=b}le.templateSettings={escape:Ve,evaluate:Ke,interpolate:dt,variable:"",imports:{_:le}},le.prototype=Pi.prototype,le.prototype.constructor=le,Vr.prototype=wo(Pi.prototype),Vr.prototype.constructor=Vr;function Qt(I){this.__wrapped__=I,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function zc(){var I=new Qt(this.__wrapped__);return I.__actions__=$r(this.__actions__),I.__dir__=this.__dir__,I.__filtered__=this.__filtered__,I.__iteratees__=$r(this.__iteratees__),I.__takeCount__=this.__takeCount__,I.__views__=$r(this.__views__),I}function Lc(){if(this.__filtered__){var I=new Qt(this);I.__dir__=-1,I.__filtered__=!0}else I=this.clone(),I.__dir__*=-1;return I}function Hc(){var I=this.__wrapped__.value(),D=this.__dir__,H=Rt(I),Y=D<0,ee=H?I.length:0,pe=Zu(0,ee,this.__views__),xe=pe.start,Ee=pe.end,Me=Ee-xe,Ze=Y?Ee:xe-1,tt=this.__iteratees__,nt=tt.length,vt=0,St=vr(Me,this.__takeCount__);if(!H||!Y&&ee==Me&&St==Me)return js(I,this.__actions__);var kt=[];e:for(;Me--&&vt<St;){Ze+=D;for(var Lt=-1,It=I[Ze];++Lt<nt;){var jt=tt[Lt],Gt=jt.iteratee,zr=jt.type,xr=Gt(It);if(zr==me)It=xr;else if(!xr){if(zr==ce)continue e;break e}}kt[vt++]=It}return kt}Qt.prototype=wo(Pi.prototype),Qt.prototype.constructor=Qt;function Qn(I){var D=-1,H=I==null?0:I.length;for(this.clear();++D<H;){var Y=I[D];this.set(Y[0],Y[1])}}function Vc(){this.__data__=Uo?Uo(null):{},this.size=0}function jc(I){var D=this.has(I)&&delete this.__data__[I];return this.size-=D?1:0,D}function Uc(I){var D=this.__data__;if(Uo){var H=D[I];return H===E?b:H}return Xt.call(D,I)?D[I]:b}function Qc(I){var D=this.__data__;return Uo?D[I]!==b:Xt.call(D,I)}function Gc(I,D){var H=this.__data__;return this.size+=this.has(I)?0:1,H[I]=Uo&&D===b?E:D,this}Qn.prototype.clear=Vc,Qn.prototype.delete=jc,Qn.prototype.get=Uc,Qn.prototype.has=Qc,Qn.prototype.set=Gc;function un(I){var D=-1,H=I==null?0:I.length;for(this.clear();++D<H;){var Y=I[D];this.set(Y[0],Y[1])}}function Wc(){this.__data__=[],this.size=0}function Kc(I){var D=this.__data__,H=Bi(D,I);if(H<0)return!1;var Y=D.length-1;return H==Y?D.pop():Ci.call(D,H,1),--this.size,!0}function Yc(I){var D=this.__data__,H=Bi(D,I);return H<0?b:D[H][1]}function qc(I){return Bi(this.__data__,I)>-1}function Xc(I,D){var H=this.__data__,Y=Bi(H,I);return Y<0?(++this.size,H.push([I,D])):H[Y][1]=D,this}un.prototype.clear=Wc,un.prototype.delete=Kc,un.prototype.get=Yc,un.prototype.has=qc,un.prototype.set=Xc;function dn(I){var D=-1,H=I==null?0:I.length;for(this.clear();++D<H;){var Y=I[D];this.set(Y[0],Y[1])}}function Jc(){this.size=0,this.__data__={hash:new Qn,map:new(Vo||un),string:new Qn}}function Zc(I){var D=Hi(this,I).delete(I);return this.size-=D?1:0,D}function eu(I){return Hi(this,I).get(I)}function tu(I){return Hi(this,I).has(I)}function ru(I,D){var H=Hi(this,I),Y=H.size;return H.set(I,D),this.size+=H.size==Y?0:1,this}dn.prototype.clear=Jc,dn.prototype.delete=Zc,dn.prototype.get=eu,dn.prototype.has=tu,dn.prototype.set=ru;function Gn(I){var D=-1,H=I==null?0:I.length;for(this.__data__=new dn;++D<H;)this.add(I[D])}function nu(I){return this.__data__.set(I,E),this}function ou(I){return this.__data__.has(I)}Gn.prototype.add=Gn.prototype.push=nu,Gn.prototype.has=ou;function qr(I){var D=this.__data__=new un(I);this.size=D.size}function iu(){this.__data__=new un,this.size=0}function au(I){var D=this.__data__,H=D.delete(I);return this.size=D.size,H}function su(I){return this.__data__.get(I)}function lu(I){return this.__data__.has(I)}function cu(I,D){var H=this.__data__;if(H instanceof un){var Y=H.__data__;if(!Vo||Y.length<w-1)return Y.push([I,D]),this.size=++H.size,this;H=this.__data__=new dn(Y)}return H.set(I,D),this.size=H.size,this}qr.prototype.clear=iu,qr.prototype.delete=au,qr.prototype.get=su,qr.prototype.has=lu,qr.prototype.set=cu;function As(I,D){var H=Rt(I),Y=!H&&Xn(I),ee=!H&&!Y&&kn(I),pe=!H&&!Y&&!ee&&_o(I),xe=H||Y||ee||pe,Ee=xe?la(I.length,yc):[],Me=Ee.length;for(var Ze in I)(D||Xt.call(I,Ze))&&!(xe&&(Ze=="length"||ee&&(Ze=="offset"||Ze=="parent")||pe&&(Ze=="buffer"||Ze=="byteLength"||Ze=="byteOffset")||gn(Ze,Me)))&&Ee.push(Ze);return Ee}function ws(I){var D=I.length;return D?I[_a(0,D-1)]:b}function uu(I,D){return Vi($r(I),Wn(D,0,I.length))}function du(I){return Vi($r(I))}function ga(I,D,H){(H!==b&&!Xr(I[D],H)||H===b&&!(D in I))&&fn(I,D,H)}function Go(I,D,H){var Y=I[D];(!(Xt.call(I,D)&&Xr(Y,H))||H===b&&!(D in I))&&fn(I,D,H)}function Bi(I,D){for(var H=I.length;H--;)if(Xr(I[H][0],D))return H;return-1}function fu(I,D,H,Y){return Tn(I,function(ee,pe,xe){D(Y,ee,H(ee),xe)}),Y}function Cs(I,D){return I&&rn(D,hr(D),I)}function hu(I,D){return I&&rn(D,Ir(D),I)}function fn(I,D,H){D=="__proto__"&&xi?xi(I,D,{configurable:!0,enumerable:!0,value:H,writable:!0}):I[D]=H}function va(I,D){for(var H=-1,Y=D.length,ee=Ue(Y),pe=I==null;++H<Y;)ee[H]=pe?b:qa(I,D[H]);return ee}function Wn(I,D,H){return I===I&&(H!==b&&(I=I<=H?I:H),D!==b&&(I=I>=D?I:D)),I}function jr(I,D,H,Y,ee,pe){var xe,Ee=D&P,Me=D&k,Ze=D&M;if(H&&(xe=ee?H(I,Y,ee,pe):H(I)),xe!==b)return xe;if(!rr(I))return I;var tt=Rt(I);if(tt){if(xe=td(I),!Ee)return $r(I,xe)}else{var nt=mr(I),vt=nt==he||nt==we;if(kn(I))return Gs(I,Ee);if(nt==q||nt==Te||vt&&!ee){if(xe=Me||vt?{}:fl(I),!Ee)return Me?Uu(I,hu(xe,I)):ju(I,Cs(xe,I))}else{if(!Zt[nt])return ee?I:{};xe=rd(I,nt,Ee)}}pe||(pe=new qr);var St=pe.get(I);if(St)return St;pe.set(I,xe),Hl(I)?I.forEach(function(It){xe.add(jr(It,D,H,It,I,pe))}):zl(I)&&I.forEach(function(It,jt){xe.set(jt,jr(It,D,H,jt,I,pe))});var kt=Ze?Me?Oa:Da:Me?Ir:hr,Lt=tt?b:kt(I);return Ce(Lt||I,function(It,jt){Lt&&(jt=It,It=I[jt]),Go(xe,jt,jr(It,D,H,jt,I,pe))}),xe}function pu(I){var D=hr(I);return function(H){return xs(H,I,D)}}function xs(I,D,H){var Y=H.length;if(I==null)return!Y;for(I=tr(I);Y--;){var ee=H[Y],pe=D[ee],xe=I[ee];if(xe===b&&!(ee in I)||!pe(xe))return!1}return!0}function Ss(I,D,H){if(typeof I!="function")throw new Hr(x);return Zo(function(){I.apply(b,H)},D)}function Wo(I,D,H,Y){var ee=-1,pe=xt,xe=!0,Ee=I.length,Me=[],Ze=D.length;if(!Ee)return Me;H&&(D=Bt(D,Or(H))),Y?(pe=Ut,xe=!1):D.length>=w&&(pe=Lo,xe=!1,D=new Gn(D));e:for(;++ee<Ee;){var tt=I[ee],nt=H==null?tt:H(tt);if(tt=Y||tt!==0?tt:0,xe&&nt===nt){for(var vt=Ze;vt--;)if(D[vt]===nt)continue e;Me.push(tt)}else pe(D,nt,Y)||Me.push(tt)}return Me}var Tn=Xs(tn),_s=Xs(ba,!0);function gu(I,D){var H=!0;return Tn(I,function(Y,ee,pe){return H=!!D(Y,ee,pe),H}),H}function $i(I,D,H){for(var Y=-1,ee=I.length;++Y<ee;){var pe=I[Y],xe=D(pe);if(xe!=null&&(Ee===b?xe===xe&&!Fr(xe):H(xe,Ee)))var Ee=xe,Me=pe}return Me}function vu(I,D,H,Y){var ee=I.length;for(H=zt(H),H<0&&(H=-H>ee?0:ee+H),Y=Y===b||Y>ee?ee:zt(Y),Y<0&&(Y+=ee),Y=H>Y?0:jl(Y);H<Y;)I[H++]=D;return I}function Es(I,D){var H=[];return Tn(I,function(Y,ee,pe){D(Y,ee,pe)&&H.push(Y)}),H}function gr(I,D,H,Y,ee){var pe=-1,xe=I.length;for(H||(H=od),ee||(ee=[]);++pe<xe;){var Ee=I[pe];D>0&&H(Ee)?D>1?gr(Ee,D-1,H,Y,ee):Kt(ee,Ee):Y||(ee[ee.length]=Ee)}return ee}var ma=Js(),Ts=Js(!0);function tn(I,D){return I&&ma(I,D,hr)}function ba(I,D){return I&&Ts(I,D,hr)}function ki(I,D){return Pt(D,function(H){return vn(I[H])})}function Kn(I,D){D=Bn(D,I);for(var H=0,Y=D.length;I!=null&&H<Y;)I=I[nn(D[H++])];return H&&H==Y?I:b}function Ps(I,D,H){var Y=D(I);return Rt(I)?Y:Kt(Y,H(I))}function wr(I){return I==null?I===b?Qe:Se:Un&&Un in tr(I)?Ju(I):fd(I)}function ya(I,D){return I>D}function mu(I,D){return I!=null&&Xt.call(I,D)}function bu(I,D){return I!=null&&D in tr(I)}function yu(I,D,H){return I>=vr(D,H)&&I<ur(D,H)}function Aa(I,D,H){for(var Y=H?Ut:xt,ee=I[0].length,pe=I.length,xe=pe,Ee=Ue(pe),Me=1/0,Ze=[];xe--;){var tt=I[xe];xe&&D&&(tt=Bt(tt,Or(D))),Me=vr(tt.length,Me),Ee[xe]=!H&&(D||ee>=120&&tt.length>=120)?new Gn(xe&&tt):b}tt=I[0];var nt=-1,vt=Ee[0];e:for(;++nt<ee&&Ze.length<Me;){var St=tt[nt],kt=D?D(St):St;if(St=H||St!==0?St:0,!(vt?Lo(vt,kt):Y(Ze,kt,H))){for(xe=pe;--xe;){var Lt=Ee[xe];if(!(Lt?Lo(Lt,kt):Y(I[xe],kt,H)))continue e}vt&&vt.push(kt),Ze.push(St)}}return Ze}function Au(I,D,H,Y){return tn(I,function(ee,pe,xe){D(Y,H(ee),pe,xe)}),Y}function Ko(I,D,H){D=Bn(D,I),I=vl(I,D);var Y=I==null?I:I[nn(Qr(D))];return Y==null?b:Ar(Y,I,H)}function Bs(I){return or(I)&&wr(I)==Te}function wu(I){return or(I)&&wr(I)==ut}function Cu(I){return or(I)&&wr(I)==qe}function Yo(I,D,H,Y,ee){return I===D?!0:I==null||D==null||!or(I)&&!or(D)?I!==I&&D!==D:xu(I,D,H,Y,Yo,ee)}function xu(I,D,H,Y,ee,pe){var xe=Rt(I),Ee=Rt(D),Me=xe?Le:mr(I),Ze=Ee?Le:mr(D);Me=Me==Te?q:Me,Ze=Ze==Te?q:Ze;var tt=Me==q,nt=Ze==q,vt=Me==Ze;if(vt&&kn(I)){if(!kn(D))return!1;xe=!0,tt=!1}if(vt&&!tt)return pe||(pe=new qr),xe||_o(I)?cl(I,D,H,Y,ee,pe):qu(I,D,Me,H,Y,ee,pe);if(!(H&R)){var St=tt&&Xt.call(I,"__wrapped__"),kt=nt&&Xt.call(D,"__wrapped__");if(St||kt){var Lt=St?I.value():I,It=kt?D.value():D;return pe||(pe=new qr),ee(Lt,It,H,Y,pe)}}return vt?(pe||(pe=new qr),Xu(I,D,H,Y,ee,pe)):!1}function Su(I){return or(I)&&mr(I)==Be}function wa(I,D,H,Y){var ee=H.length,pe=ee,xe=!Y;if(I==null)return!pe;for(I=tr(I);ee--;){var Ee=H[ee];if(xe&&Ee[2]?Ee[1]!==I[Ee[0]]:!(Ee[0]in I))return!1}for(;++ee<pe;){Ee=H[ee];var Me=Ee[0],Ze=I[Me],tt=Ee[1];if(xe&&Ee[2]){if(Ze===b&&!(Me in I))return!1}else{var nt=new qr;if(Y)var vt=Y(Ze,tt,Me,I,D,nt);if(!(vt===b?Yo(tt,Ze,R|F,Y,nt):vt))return!1}}return!0}function $s(I){if(!rr(I)||sd(I))return!1;var D=vn(I)?Sc:In;return D.test(qn(I))}function _u(I){return or(I)&&wr(I)==de}function Eu(I){return or(I)&&mr(I)==ve}function Tu(I){return or(I)&&Ki(I.length)&&!!Jt[wr(I)]}function ks(I){return typeof I=="function"?I:I==null?Mr:typeof I=="object"?Rt(I)?Ns(I[0],I[1]):Ms(I):ec(I)}function Ca(I){if(!Jo(I))return $c(I);var D=[];for(var H in tr(I))Xt.call(I,H)&&H!="constructor"&&D.push(H);return D}function Pu(I){if(!rr(I))return dd(I);var D=Jo(I),H=[];for(var Y in I)Y=="constructor"&&(D||!Xt.call(I,Y))||H.push(Y);return H}function xa(I,D){return I<D}function Is(I,D){var H=-1,Y=kr(I)?Ue(I.length):[];return Tn(I,function(ee,pe,xe){Y[++H]=D(ee,pe,xe)}),Y}function Ms(I){var D=Fa(I);return D.length==1&&D[0][2]?pl(D[0][0],D[0][1]):function(H){return H===I||wa(H,I,D)}}function Ns(I,D){return La(I)&&hl(D)?pl(nn(I),D):function(H){var Y=qa(H,I);return Y===b&&Y===D?Xa(H,I):Yo(D,Y,R|F)}}function Ii(I,D,H,Y,ee){I!==D&&ma(D,function(pe,xe){if(ee||(ee=new qr),rr(pe))Bu(I,D,xe,H,Ii,Y,ee);else{var Ee=Y?Y(Va(I,xe),pe,xe+"",I,D,ee):b;Ee===b&&(Ee=pe),ga(I,xe,Ee)}},Ir)}function Bu(I,D,H,Y,ee,pe,xe){var Ee=Va(I,H),Me=Va(D,H),Ze=xe.get(Me);if(Ze){ga(I,H,Ze);return}var tt=pe?pe(Ee,Me,H+"",I,D,xe):b,nt=tt===b;if(nt){var vt=Rt(Me),St=!vt&&kn(Me),kt=!vt&&!St&&_o(Me);tt=Me,vt||St||kt?Rt(Ee)?tt=Ee:ar(Ee)?tt=$r(Ee):St?(nt=!1,tt=Gs(Me,!0)):kt?(nt=!1,tt=Ws(Me,!0)):tt=[]:ei(Me)||Xn(Me)?(tt=Ee,Xn(Ee)?tt=Ul(Ee):(!rr(Ee)||vn(Ee))&&(tt=fl(Me))):nt=!1}nt&&(xe.set(Me,tt),ee(tt,Me,Y,pe,xe),xe.delete(Me)),ga(I,H,tt)}function Ds(I,D){var H=I.length;if(H)return D+=D<0?H:0,gn(D,H)?I[D]:b}function Os(I,D,H){D.length?D=Bt(D,function(pe){return Rt(pe)?function(xe){return Kn(xe,pe.length===1?pe[0]:pe)}:pe}):D=[Mr];var Y=-1;D=Bt(D,Or($t()));var ee=Is(I,function(pe,xe,Ee){var Me=Bt(D,function(Ze){return Ze(pe)});return{criteria:Me,index:++Y,value:pe}});return rc(ee,function(pe,xe){return Vu(pe,xe,H)})}function $u(I,D){return Rs(I,D,function(H,Y){return Xa(I,Y)})}function Rs(I,D,H){for(var Y=-1,ee=D.length,pe={};++Y<ee;){var xe=D[Y],Ee=Kn(I,xe);H(Ee,xe)&&qo(pe,Bn(xe,I),Ee)}return pe}function ku(I){return function(D){return Kn(D,I)}}function Sa(I,D,H,Y){var ee=Y?hi:Br,pe=-1,xe=D.length,Ee=I;for(I===D&&(D=$r(D)),H&&(Ee=Bt(I,Or(H)));++pe<xe;)for(var Me=0,Ze=D[pe],tt=H?H(Ze):Ze;(Me=ee(Ee,tt,Me,Y))>-1;)Ee!==I&&Ci.call(Ee,Me,1),Ci.call(I,Me,1);return I}function Fs(I,D){for(var H=I?D.length:0,Y=H-1;H--;){var ee=D[H];if(H==Y||ee!==pe){var pe=ee;gn(ee)?Ci.call(I,ee,1):Pa(I,ee)}}return I}function _a(I,D){return I+_i(bs()*(D-I+1))}function Iu(I,D,H,Y){for(var ee=-1,pe=ur(Si((D-I)/(H||1)),0),xe=Ue(pe);pe--;)xe[Y?pe:++ee]=I,I+=H;return xe}function Ea(I,D){var H="";if(!I||D<1||D>ue)return H;do D%2&&(H+=I),D=_i(D/2),D&&(I+=I);while(D);return H}function Vt(I,D){return ja(gl(I,D,Mr),I+"")}function Mu(I){return ws(Eo(I))}function Nu(I,D){var H=Eo(I);return Vi(H,Wn(D,0,H.length))}function qo(I,D,H,Y){if(!rr(I))return I;D=Bn(D,I);for(var ee=-1,pe=D.length,xe=pe-1,Ee=I;Ee!=null&&++ee<pe;){var Me=nn(D[ee]),Ze=H;if(Me==="__proto__"||Me==="constructor"||Me==="prototype")return I;if(ee!=xe){var tt=Ee[Me];Ze=Y?Y(tt,Me,Ee):b,Ze===b&&(Ze=rr(tt)?tt:gn(D[ee+1])?[]:{})}Go(Ee,Me,Ze),Ee=Ee[Me]}return I}var zs=Ei?function(I,D){return Ei.set(I,D),I}:Mr,Du=xi?function(I,D){return xi(I,"toString",{configurable:!0,enumerable:!1,value:Za(D),writable:!0})}:Mr;function Ou(I){return Vi(Eo(I))}function Ur(I,D,H){var Y=-1,ee=I.length;D<0&&(D=-D>ee?0:ee+D),H=H>ee?ee:H,H<0&&(H+=ee),ee=D>H?0:H-D>>>0,D>>>=0;for(var pe=Ue(ee);++Y<ee;)pe[Y]=I[Y+D];return pe}function Ru(I,D){var H;return Tn(I,function(Y,ee,pe){return H=D(Y,ee,pe),!H}),!!H}function Mi(I,D,H){var Y=0,ee=I==null?Y:I.length;if(typeof D=="number"&&D===D&&ee<=et){for(;Y<ee;){var pe=Y+ee>>>1,xe=I[pe];xe!==null&&!Fr(xe)&&(H?xe<=D:xe<D)?Y=pe+1:ee=pe}return ee}return Ta(I,D,Mr,H)}function Ta(I,D,H,Y){var ee=0,pe=I==null?0:I.length;if(pe===0)return 0;D=H(D);for(var xe=D!==D,Ee=D===null,Me=Fr(D),Ze=D===b;ee<pe;){var tt=_i((ee+pe)/2),nt=H(I[tt]),vt=nt!==b,St=nt===null,kt=nt===nt,Lt=Fr(nt);if(xe)var It=Y||kt;else Ze?It=kt&&(Y||vt):Ee?It=kt&&vt&&(Y||!St):Me?It=kt&&vt&&!St&&(Y||!Lt):St||Lt?It=!1:It=Y?nt<=D:nt<D;It?ee=tt+1:pe=tt}return vr(pe,Ye)}function Ls(I,D){for(var H=-1,Y=I.length,ee=0,pe=[];++H<Y;){var xe=I[H],Ee=D?D(xe):xe;if(!H||!Xr(Ee,Me)){var Me=Ee;pe[ee++]=xe===0?0:xe}}return pe}function Hs(I){return typeof I=="number"?I:Fr(I)?ye:+I}function Rr(I){if(typeof I=="string")return I;if(Rt(I))return Bt(I,Rr)+"";if(Fr(I))return ys?ys.call(I):"";var D=I+"";return D=="0"&&1/I==-te?"-0":D}function Pn(I,D,H){var Y=-1,ee=xt,pe=I.length,xe=!0,Ee=[],Me=Ee;if(H)xe=!1,ee=Ut;else if(pe>=w){var Ze=D?null:Ku(I);if(Ze)return pi(Ze);xe=!1,ee=Lo,Me=new Gn}else Me=D?[]:Ee;e:for(;++Y<pe;){var tt=I[Y],nt=D?D(tt):tt;if(tt=H||tt!==0?tt:0,xe&&nt===nt){for(var vt=Me.length;vt--;)if(Me[vt]===nt)continue e;D&&Me.push(nt),Ee.push(tt)}else ee(Me,nt,H)||(Me!==Ee&&Me.push(nt),Ee.push(tt))}return Ee}function Pa(I,D){return D=Bn(D,I),I=vl(I,D),I==null||delete I[nn(Qr(D))]}function Vs(I,D,H,Y){return qo(I,D,H(Kn(I,D)),Y)}function Ni(I,D,H,Y){for(var ee=I.length,pe=Y?ee:-1;(Y?pe--:++pe<ee)&&D(I[pe],pe,I););return H?Ur(I,Y?0:pe,Y?pe+1:ee):Ur(I,Y?pe+1:0,Y?ee:pe)}function js(I,D){var H=I;return H instanceof Qt&&(H=H.value()),nr(D,function(Y,ee){return ee.func.apply(ee.thisArg,Kt([Y],ee.args))},H)}function Ba(I,D,H){var Y=I.length;if(Y<2)return Y?Pn(I[0]):[];for(var ee=-1,pe=Ue(Y);++ee<Y;)for(var xe=I[ee],Ee=-1;++Ee<Y;)Ee!=ee&&(pe[ee]=Wo(pe[ee]||xe,I[Ee],D,H));return Pn(gr(pe,1),D,H)}function Us(I,D,H){for(var Y=-1,ee=I.length,pe=D.length,xe={};++Y<ee;){var Ee=Y<pe?D[Y]:b;H(xe,I[Y],Ee)}return xe}function $a(I){return ar(I)?I:[]}function ka(I){return typeof I=="function"?I:Mr}function Bn(I,D){return Rt(I)?I:La(I,D)?[I]:Al(qt(I))}var Fu=Vt;function $n(I,D,H){var Y=I.length;return H=H===b?Y:H,!D&&H>=Y?I:Ur(I,D,H)}var Qs=_c||function(I){return ir.clearTimeout(I)};function Gs(I,D){if(D)return I.slice();var H=I.length,Y=hs?hs(H):new I.constructor(H);return I.copy(Y),Y}function Ia(I){var D=new I.constructor(I.byteLength);return new Ai(D).set(new Ai(I)),D}function zu(I,D){var H=D?Ia(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.byteLength)}function Lu(I){var D=new I.constructor(I.source,Sr.exec(I));return D.lastIndex=I.lastIndex,D}function Hu(I){return Qo?tr(Qo.call(I)):{}}function Ws(I,D){var H=D?Ia(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.length)}function Ks(I,D){if(I!==D){var H=I!==b,Y=I===null,ee=I===I,pe=Fr(I),xe=D!==b,Ee=D===null,Me=D===D,Ze=Fr(D);if(!Ee&&!Ze&&!pe&&I>D||pe&&xe&&Me&&!Ee&&!Ze||Y&&xe&&Me||!H&&Me||!ee)return 1;if(!Y&&!pe&&!Ze&&I<D||Ze&&H&&ee&&!Y&&!pe||Ee&&H&&ee||!xe&&ee||!Me)return-1}return 0}function Vu(I,D,H){for(var Y=-1,ee=I.criteria,pe=D.criteria,xe=ee.length,Ee=H.length;++Y<xe;){var Me=Ks(ee[Y],pe[Y]);if(Me){if(Y>=Ee)return Me;var Ze=H[Y];return Me*(Ze=="desc"?-1:1)}}return I.index-D.index}function Ys(I,D,H,Y){for(var ee=-1,pe=I.length,xe=H.length,Ee=-1,Me=D.length,Ze=ur(pe-xe,0),tt=Ue(Me+Ze),nt=!Y;++Ee<Me;)tt[Ee]=D[Ee];for(;++ee<xe;)(nt||ee<pe)&&(tt[H[ee]]=I[ee]);for(;Ze--;)tt[Ee++]=I[ee++];return tt}function qs(I,D,H,Y){for(var ee=-1,pe=I.length,xe=-1,Ee=H.length,Me=-1,Ze=D.length,tt=ur(pe-Ee,0),nt=Ue(tt+Ze),vt=!Y;++ee<tt;)nt[ee]=I[ee];for(var St=ee;++Me<Ze;)nt[St+Me]=D[Me];for(;++xe<Ee;)(vt||ee<pe)&&(nt[St+H[xe]]=I[ee++]);return nt}function $r(I,D){var H=-1,Y=I.length;for(D||(D=Ue(Y));++H<Y;)D[H]=I[H];return D}function rn(I,D,H,Y){var ee=!H;H||(H={});for(var pe=-1,xe=D.length;++pe<xe;){var Ee=D[pe],Me=Y?Y(H[Ee],I[Ee],Ee,H,I):b;Me===b&&(Me=I[Ee]),ee?fn(H,Ee,Me):Go(H,Ee,Me)}return H}function ju(I,D){return rn(I,za(I),D)}function Uu(I,D){return rn(I,ul(I),D)}function Di(I,D){return function(H,Y){var ee=Rt(H)?oe:fu,pe=D?D():{};return ee(H,I,$t(Y,2),pe)}}function Co(I){return Vt(function(D,H){var Y=-1,ee=H.length,pe=ee>1?H[ee-1]:b,xe=ee>2?H[2]:b;for(pe=I.length>3&&typeof pe=="function"?(ee--,pe):b,xe&&Cr(H[0],H[1],xe)&&(pe=ee<3?b:pe,ee=1),D=tr(D);++Y<ee;){var Ee=H[Y];Ee&&I(D,Ee,Y,pe)}return D})}function Xs(I,D){return function(H,Y){if(H==null)return H;if(!kr(H))return I(H,Y);for(var ee=H.length,pe=D?ee:-1,xe=tr(H);(D?pe--:++pe<ee)&&Y(xe[pe],pe,xe)!==!1;);return H}}function Js(I){return function(D,H,Y){for(var ee=-1,pe=tr(D),xe=Y(D),Ee=xe.length;Ee--;){var Me=xe[I?Ee:++ee];if(H(pe[Me],Me,pe)===!1)break}return D}}function Qu(I,D,H){var Y=D&L,ee=Xo(I);function pe(){var xe=this&&this!==ir&&this instanceof pe?ee:I;return xe.apply(Y?H:this,arguments)}return pe}function Zs(I){return function(D){D=qt(D);var H=go(D)?Yr(D):b,Y=H?H[0]:D.charAt(0),ee=H?$n(H,1).join(""):D.slice(1);return Y[I]()+ee}}function xo(I){return function(D){return nr(Jl(Xl(D).replace(en,"")),I,"")}}function Xo(I){return function(){var D=arguments;switch(D.length){case 0:return new I;case 1:return new I(D[0]);case 2:return new I(D[0],D[1]);case 3:return new I(D[0],D[1],D[2]);case 4:return new I(D[0],D[1],D[2],D[3]);case 5:return new I(D[0],D[1],D[2],D[3],D[4]);case 6:return new I(D[0],D[1],D[2],D[3],D[4],D[5]);case 7:return new I(D[0],D[1],D[2],D[3],D[4],D[5],D[6])}var H=wo(I.prototype),Y=I.apply(H,D);return rr(Y)?Y:H}}function Gu(I,D,H){var Y=Xo(I);function ee(){for(var pe=arguments.length,xe=Ue(pe),Ee=pe,Me=So(ee);Ee--;)xe[Ee]=arguments[Ee];var Ze=pe<3&&xe[0]!==Me&&xe[pe-1]!==Me?[]:_n(xe,Me);if(pe-=Ze.length,pe<H)return il(I,D,Oi,ee.placeholder,b,xe,Ze,b,b,H-pe);var tt=this&&this!==ir&&this instanceof ee?Y:I;return Ar(tt,this,xe)}return ee}function tl(I){return function(D,H,Y){var ee=tr(D);if(!kr(D)){var pe=$t(H,3);D=hr(D),H=function(Ee){return pe(ee[Ee],Ee,ee)}}var xe=I(D,H,Y);return xe>-1?ee[pe?D[xe]:xe]:b}}function rl(I){return pn(function(D){var H=D.length,Y=H,ee=Vr.prototype.thru;for(I&&D.reverse();Y--;){var pe=D[Y];if(typeof pe!="function")throw new Hr(x);if(ee&&!xe&&Li(pe)=="wrapper")var xe=new Vr([],!0)}for(Y=xe?Y:H;++Y<H;){pe=D[Y];var Ee=Li(pe),Me=Ee=="wrapper"?Ra(pe):b;Me&&Ha(Me[0])&&Me[1]==(G|W|Q|X)&&!Me[4].length&&Me[9]==1?xe=xe[Li(Me[0])].apply(xe,Me[3]):xe=pe.length==1&&Ha(pe)?xe[Ee]():xe.thru(pe)}return function(){var Ze=arguments,tt=Ze[0];if(xe&&Ze.length==1&&Rt(tt))return xe.plant(tt).value();for(var nt=0,vt=H?D[nt].apply(this,Ze):tt;++nt<H;)vt=D[nt].call(this,vt);return vt}})}function Oi(I,D,H,Y,ee,pe,xe,Ee,Me,Ze){var tt=D&G,nt=D&L,vt=D&z,St=D&(W|V),kt=D&J,Lt=vt?b:Xo(I);function It(){for(var jt=arguments.length,Gt=Ue(jt),zr=jt;zr--;)Gt[zr]=arguments[zr];if(St)var xr=So(It),Lr=oc(Gt,xr);if(Y&&(Gt=Ys(Gt,Y,ee,St)),pe&&(Gt=qs(Gt,pe,xe,St)),jt-=Lr,St&&jt<Ze){var sr=_n(Gt,xr);return il(I,D,Oi,It.placeholder,H,Gt,sr,Ee,Me,Ze-jt)}var Jr=nt?H:this,bn=vt?Jr[I]:I;return jt=Gt.length,Ee?Gt=hd(Gt,Ee):kt&&jt>1&&Gt.reverse(),tt&&Me<jt&&(Gt.length=Me),this&&this!==ir&&this instanceof It&&(bn=Lt||Xo(bn)),bn.apply(Jr,Gt)}return It}function nl(I,D){return function(H,Y){return Au(H,I,D(Y),{})}}function Ri(I,D){return function(H,Y){var ee;if(H===b&&Y===b)return D;if(H!==b&&(ee=H),Y!==b){if(ee===b)return Y;typeof H=="string"||typeof Y=="string"?(H=Rr(H),Y=Rr(Y)):(H=Hs(H),Y=Hs(Y)),ee=I(H,Y)}return ee}}function Ma(I){return pn(function(D){return D=Bt(D,Or($t())),Vt(function(H){var Y=this;return I(D,function(ee){return Ar(ee,Y,H)})})})}function Fi(I,D){D=D===b?" ":Rr(D);var H=D.length;if(H<2)return H?Ea(D,I):D;var Y=Ea(D,Si(I/vo(D)));return go(D)?$n(Yr(Y),0,I).join(""):Y.slice(0,I)}function Wu(I,D,H,Y){var ee=D&L,pe=Xo(I);function xe(){for(var Ee=-1,Me=arguments.length,Ze=-1,tt=Y.length,nt=Ue(tt+Me),vt=this&&this!==ir&&this instanceof xe?pe:I;++Ze<tt;)nt[Ze]=Y[Ze];for(;Me--;)nt[Ze++]=arguments[++Ee];return Ar(vt,ee?H:this,nt)}return xe}function ol(I){return function(D,H,Y){return Y&&typeof Y!="number"&&Cr(D,H,Y)&&(H=Y=b),D=mn(D),H===b?(H=D,D=0):H=mn(H),Y=Y===b?D<H?1:-1:mn(Y),Iu(D,H,Y,I)}}function zi(I){return function(D,H){return typeof D=="string"&&typeof H=="string"||(D=Gr(D),H=Gr(H)),I(D,H)}}function il(I,D,H,Y,ee,pe,xe,Ee,Me,Ze){var tt=D&W,nt=tt?xe:b,vt=tt?b:xe,St=tt?pe:b,kt=tt?b:pe;D|=tt?Q:K,D&=~(tt?K:Q),D&U||(D&=~(L|z));var Lt=[I,D,ee,St,nt,kt,vt,Ee,Me,Ze],It=H.apply(b,Lt);return Ha(I)&&ml(It,Lt),It.placeholder=Y,bl(It,I,D)}function Na(I){var D=cr[I];return function(H,Y){if(H=Gr(H),Y=Y==null?0:vr(zt(Y),292),Y&&ms(H)){var ee=(qt(H)+"e").split("e"),pe=D(ee[0]+"e"+(+ee[1]+Y));return ee=(qt(pe)+"e").split("e"),+(ee[0]+"e"+(+ee[1]-Y))}return D(H)}}var Ku=yo&&1/pi(new yo([,-0]))[1]==te?function(I){return new yo(I)}:rs;function al(I){return function(D){var H=mr(D);return H==Be?ua(D):H==ve?dc(D):nc(D,I(D))}}function hn(I,D,H,Y,ee,pe,xe,Ee){var Me=D&z;if(!Me&&typeof I!="function")throw new Hr(x);var Ze=Y?Y.length:0;if(Ze||(D&=~(Q|K),Y=ee=b),xe=xe===b?xe:ur(zt(xe),0),Ee=Ee===b?Ee:zt(Ee),Ze-=ee?ee.length:0,D&K){var tt=Y,nt=ee;Y=ee=b}var vt=Me?b:Ra(I),St=[I,D,H,Y,ee,tt,nt,pe,xe,Ee];if(vt&&ud(St,vt),I=St[0],D=St[1],H=St[2],Y=St[3],ee=St[4],Ee=St[9]=St[9]===b?Me?0:I.length:ur(St[9]-Ze,0),!Ee&&D&(W|V)&&(D&=~(W|V)),!D||D==L)var kt=Qu(I,D,H);else D==W||D==V?kt=Gu(I,D,Ee):(D==Q||D==(L|Q))&&!ee.length?kt=Wu(I,D,H,Y):kt=Oi.apply(b,St);var Lt=vt?zs:ml;return bl(Lt(kt,St),I,D)}function sl(I,D,H,Y){return I===b||Xr(I,bo[H])&&!Xt.call(Y,H)?D:I}function ll(I,D,H,Y,ee,pe){return rr(I)&&rr(D)&&(pe.set(D,I),Ii(I,D,b,ll,pe),pe.delete(D)),I}function Yu(I){return ei(I)?b:I}function cl(I,D,H,Y,ee,pe){var xe=H&R,Ee=I.length,Me=D.length;if(Ee!=Me&&!(xe&&Me>Ee))return!1;var Ze=pe.get(I),tt=pe.get(D);if(Ze&&tt)return Ze==D&&tt==I;var nt=-1,vt=!0,St=H&F?new Gn:b;for(pe.set(I,D),pe.set(D,I);++nt<Ee;){var kt=I[nt],Lt=D[nt];if(Y)var It=xe?Y(Lt,kt,nt,D,I,pe):Y(kt,Lt,nt,I,D,pe);if(It!==b){if(It)continue;vt=!1;break}if(St){if(!fr(D,function(jt,Gt){if(!Lo(St,Gt)&&(kt===jt||ee(kt,jt,H,Y,pe)))return St.push(Gt)})){vt=!1;break}}else if(!(kt===Lt||ee(kt,Lt,H,Y,pe))){vt=!1;break}}return pe.delete(I),pe.delete(D),vt}function qu(I,D,H,Y,ee,pe,xe){switch(H){case He:if(I.byteLength!=D.byteLength||I.byteOffset!=D.byteOffset)return!1;I=I.buffer,D=D.buffer;case ut:return!(I.byteLength!=D.byteLength||!pe(new Ai(I),new Ai(D)));case $e:case qe:case Ne:return Xr(+I,+D);case Xe:return I.name==D.name&&I.message==D.message;case de:case Pe:return I==D+"";case Be:var Ee=ua;case ve:var Me=Y&R;if(Ee||(Ee=pi),I.size!=D.size&&!Me)return!1;var Ze=xe.get(I);if(Ze)return Ze==D;Y|=F,xe.set(I,D);var tt=cl(Ee(I),Ee(D),Y,ee,pe,xe);return xe.delete(I),tt;case De:if(Qo)return Qo.call(I)==Qo.call(D)}return!1}function Xu(I,D,H,Y,ee,pe){var xe=H&R,Ee=Da(I),Me=Ee.length,Ze=Da(D),tt=Ze.length;if(Me!=tt&&!xe)return!1;for(var nt=Me;nt--;){var vt=Ee[nt];if(!(xe?vt in D:Xt.call(D,vt)))return!1}var St=pe.get(I),kt=pe.get(D);if(St&&kt)return St==D&&kt==I;var Lt=!0;pe.set(I,D),pe.set(D,I);for(var It=xe;++nt<Me;){vt=Ee[nt];var jt=I[vt],Gt=D[vt];if(Y)var zr=xe?Y(Gt,jt,vt,D,I,pe):Y(jt,Gt,vt,I,D,pe);if(!(zr===b?jt===Gt||ee(jt,Gt,H,Y,pe):zr)){Lt=!1;break}It||(It=vt=="constructor")}if(Lt&&!It){var xr=I.constructor,Lr=D.constructor;xr!=Lr&&"constructor"in I&&"constructor"in D&&!(typeof xr=="function"&&xr instanceof xr&&typeof Lr=="function"&&Lr instanceof Lr)&&(Lt=!1)}return pe.delete(I),pe.delete(D),Lt}function pn(I){return ja(gl(I,b,Sl),I+"")}function Da(I){return Ps(I,hr,za)}function Oa(I){return Ps(I,Ir,ul)}var Ra=Ei?function(I){return Ei.get(I)}:rs;function Li(I){for(var D=I.name+"",H=Ao[D],Y=Xt.call(Ao,D)?H.length:0;Y--;){var ee=H[Y],pe=ee.func;if(pe==null||pe==I)return ee.name}return D}function So(I){var D=Xt.call(le,"placeholder")?le:I;return D.placeholder}function $t(){var I=le.iteratee||es;return I=I===es?ks:I,arguments.length?I(arguments[0],arguments[1]):I}function Hi(I,D){var H=I.__data__;return ad(D)?H[typeof D=="string"?"string":"hash"]:H.map}function Fa(I){for(var D=hr(I),H=D.length;H--;){var Y=D[H],ee=I[Y];D[H]=[Y,ee,hl(ee)]}return D}function Yn(I,D){var H=lc(I,D);return $s(H)?H:b}function Ju(I){var D=Xt.call(I,Un),H=I[Un];try{I[Un]=b;var Y=!0}catch(pe){}var ee=bi.call(I);return Y&&(D?I[Un]=H:delete I[Un]),ee}var za=fa?function(I){return I==null?[]:(I=tr(I),Pt(fa(I),function(D){return gs.call(I,D)}))}:ns,ul=fa?function(I){for(var D=[];I;)Kt(D,za(I)),I=wi(I);return D}:ns,mr=wr;(ha&&mr(new ha(new ArrayBuffer(1)))!=He||Vo&&mr(new Vo)!=Be||pa&&mr(pa.resolve())!=se||yo&&mr(new yo)!=ve||jo&&mr(new jo)!=ot)&&(mr=function(I){var D=wr(I),H=D==q?I.constructor:b,Y=H?qn(H):"";if(Y)switch(Y){case Nc:return He;case Dc:return Be;case Oc:return se;case Rc:return ve;case Fc:return ot}return D});function Zu(I,D,H){for(var Y=-1,ee=H.length;++Y<ee;){var pe=H[Y],xe=pe.size;switch(pe.type){case"drop":I+=xe;break;case"dropRight":D-=xe;break;case"take":D=vr(D,I+xe);break;case"takeRight":I=ur(I,D-xe);break}}return{start:I,end:D}}function ed(I){var D=I.match(Ht);return D?D[1].split(Nt):[]}function dl(I,D,H){D=Bn(D,I);for(var Y=-1,ee=D.length,pe=!1;++Y<ee;){var xe=nn(D[Y]);if(!(pe=I!=null&&H(I,xe)))break;I=I[xe]}return pe||++Y!=ee?pe:(ee=I==null?0:I.length,!!ee&&Ki(ee)&&gn(xe,ee)&&(Rt(I)||Xn(I)))}function td(I){var D=I.length,H=new I.constructor(D);return D&&typeof I[0]=="string"&&Xt.call(I,"index")&&(H.index=I.index,H.input=I.input),H}function fl(I){return typeof I.constructor=="function"&&!Jo(I)?wo(wi(I)):{}}function rd(I,D,H){var Y=I.constructor;switch(D){case ut:return Ia(I);case $e:case qe:return new Y(+I);case He:return zu(I,H);case ct:case mt:case _t:case ft:case Ct:case pt:case bt:case be:case Fe:return Ws(I,H);case Be:return new Y;case Ne:case Pe:return new Y(I);case de:return Lu(I);case ve:return new Y;case De:return Hu(I)}}function nd(I,D){var H=D.length;if(!H)return I;var Y=H-1;return D[Y]=(H>1?"& ":"")+D[Y],D=D.join(H>2?", ":" "),I.replace(Tt,`{
  2480. /* [wrapped with `+D+`] */
  2481. `)}function od(I){return Rt(I)||Xn(I)||!!(vs&&I&&I[vs])}function gn(I,D){var H=typeof I;return D=D==null?ue:D,!!D&&(H=="number"||H!="symbol"&&To.test(I))&&I>-1&&I%1==0&&I<D}function Cr(I,D,H){if(!rr(H))return!1;var Y=typeof D;return(Y=="number"?kr(H)&&gn(D,H.length):Y=="string"&&D in H)?Xr(H[D],I):!1}function La(I,D){if(Rt(I))return!1;var H=typeof I;return H=="number"||H=="symbol"||H=="boolean"||I==null||Fr(I)?!0:Ft.test(I)||!Et.test(I)||D!=null&&I in tr(D)}function ad(I){var D=typeof I;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?I!=="__proto__":I===null}function Ha(I){var D=Li(I),H=le[D];if(typeof H!="function"||!(D in Qt.prototype))return!1;if(I===H)return!0;var Y=Ra(H);return!!Y&&I===Y[0]}function sd(I){return!!fs&&fs in I}var ld=vi?vn:os;function Jo(I){var D=I&&I.constructor,H=typeof D=="function"&&D.prototype||bo;return I===H}function hl(I){return I===I&&!rr(I)}function pl(I,D){return function(H){return H==null?!1:H[I]===D&&(D!==b||I in tr(H))}}function cd(I){var D=Gi(I,function(Y){return H.size===B&&H.clear(),Y}),H=D.cache;return D}function ud(I,D){var H=I[1],Y=D[1],ee=H|Y,pe=ee<(L|z|G),xe=Y==G&&H==W||Y==G&&H==X&&I[7].length<=D[8]||Y==(G|X)&&D[7].length<=D[8]&&H==W;if(!(pe||xe))return I;Y&L&&(I[2]=D[2],ee|=H&L?0:U);var Ee=D[3];if(Ee){var Me=I[3];I[3]=Me?Ys(Me,Ee,D[4]):Ee,I[4]=Me?_n(I[3],$):D[4]}return Ee=D[5],Ee&&(Me=I[5],I[5]=Me?qs(Me,Ee,D[6]):Ee,I[6]=Me?_n(I[5],$):D[6]),Ee=D[7],Ee&&(I[7]=Ee),Y&G&&(I[8]=I[8]==null?D[8]:vr(I[8],D[8])),I[9]==null&&(I[9]=D[9]),I[0]=D[0],I[1]=ee,I}function dd(I){var D=[];if(I!=null)for(var H in tr(I))D.push(H);return D}function fd(I){return bi.call(I)}function gl(I,D,H){return D=ur(D===b?I.length-1:D,0),function(){for(var Y=arguments,ee=-1,pe=ur(Y.length-D,0),xe=Ue(pe);++ee<pe;)xe[ee]=Y[D+ee];ee=-1;for(var Ee=Ue(D+1);++ee<D;)Ee[ee]=Y[ee];return Ee[D]=H(xe),Ar(I,this,Ee)}}function vl(I,D){return D.length<2?I:Kn(I,Ur(D,0,-1))}function hd(I,D){for(var H=I.length,Y=vr(D.length,H),ee=$r(I);Y--;){var pe=D[Y];I[Y]=gn(pe,H)?ee[pe]:b}return I}function Va(I,D){if(!(D==="constructor"&&typeof I[D]=="function")&&D!="__proto__")return I[D]}var ml=yl(zs),Zo=Tc||function(I,D){return ir.setTimeout(I,D)},ja=yl(Du);function bl(I,D,H){var Y=D+"";return ja(I,nd(Y,pd(ed(Y),H)))}function yl(I){var D=0,H=0;return function(){var Y=kc(),ee=ie-(Y-H);if(H=Y,ee>0){if(++D>=Z)return arguments[0]}else D=0;return I.apply(b,arguments)}}function Vi(I,D){var H=-1,Y=I.length,ee=Y-1;for(D=D===b?Y:D;++H<D;){var pe=_a(H,ee),xe=I[pe];I[pe]=I[H],I[H]=xe}return I.length=D,I}var Al=cd(function(I){var D=[];return I.charCodeAt(0)===46&&D.push(""),I.replace(wt,function(H,Y,ee,pe){D.push(ee?pe.replace(Dt,"$1"):Y||H)}),D});function nn(I){if(typeof I=="string"||Fr(I))return I;var D=I+"";return D=="0"&&1/I==-te?"-0":D}function qn(I){if(I!=null){try{return mi.call(I)}catch(D){}try{return I+""}catch(D){}}return""}function pd(I,D){return Ce(ht,function(H){var Y="_."+H[0];D&H[1]&&!xt(I,Y)&&I.push(Y)}),I.sort()}function wl(I){if(I instanceof Qt)return I.clone();var D=new Vr(I.__wrapped__,I.__chain__);return D.__actions__=$r(I.__actions__),D.__index__=I.__index__,D.__values__=I.__values__,D}function gd(I,D,H){(H?Cr(I,D,H):D===b)?D=1:D=ur(zt(D),0);var Y=I==null?0:I.length;if(!Y||D<1)return[];for(var ee=0,pe=0,xe=Ue(Si(Y/D));ee<Y;)xe[pe++]=Ur(I,ee,ee+=D);return xe}function vd(I){for(var D=-1,H=I==null?0:I.length,Y=0,ee=[];++D<H;){var pe=I[D];pe&&(ee[Y++]=pe)}return ee}function md(){var I=arguments.length;if(!I)return[];for(var D=Ue(I-1),H=arguments[0],Y=I;Y--;)D[Y-1]=arguments[Y];return Kt(Rt(H)?$r(H):[H],gr(D,1))}var bd=Vt(function(I,D){return ar(I)?Wo(I,gr(D,1,ar,!0)):[]}),yd=Vt(function(I,D){var H=Qr(D);return ar(H)&&(H=b),ar(I)?Wo(I,gr(D,1,ar,!0),$t(H,2)):[]}),Ad=Vt(function(I,D){var H=Qr(D);return ar(H)&&(H=b),ar(I)?Wo(I,gr(D,1,ar,!0),b,H):[]});function wd(I,D,H){var Y=I==null?0:I.length;return Y?(D=H||D===b?1:zt(D),Ur(I,D<0?0:D,Y)):[]}function Cd(I,D,H){var Y=I==null?0:I.length;return Y?(D=H||D===b?1:zt(D),D=Y-D,Ur(I,0,D<0?0:D)):[]}function xd(I,D){return I&&I.length?Ni(I,$t(D,3),!0,!0):[]}function Sd(I,D){return I&&I.length?Ni(I,$t(D,3),!0):[]}function _d(I,D,H,Y){var ee=I==null?0:I.length;return ee?(H&&typeof H!="number"&&Cr(I,D,H)&&(H=0,Y=ee),vu(I,D,H,Y)):[]}function Cl(I,D,H){var Y=I==null?0:I.length;if(!Y)return-1;var ee=H==null?0:zt(H);return ee<0&&(ee=ur(Y+ee,0)),Pr(I,$t(D,3),ee)}function xl(I,D,H){var Y=I==null?0:I.length;if(!Y)return-1;var ee=Y-1;return H!==b&&(ee=zt(H),ee=H<0?ur(Y+ee,0):vr(ee,Y-1)),Pr(I,$t(D,3),ee,!0)}function Sl(I){var D=I==null?0:I.length;return D?gr(I,1):[]}function Ed(I){var D=I==null?0:I.length;return D?gr(I,te):[]}function Td(I,D){var H=I==null?0:I.length;return H?(D=D===b?1:zt(D),gr(I,D)):[]}function Pd(I){for(var D=-1,H=I==null?0:I.length,Y={};++D<H;){var ee=I[D];Y[ee[0]]=ee[1]}return Y}function _l(I){return I&&I.length?I[0]:b}function Bd(I,D,H){var Y=I==null?0:I.length;if(!Y)return-1;var ee=H==null?0:zt(H);return ee<0&&(ee=ur(Y+ee,0)),Br(I,D,ee)}function $d(I){var D=I==null?0:I.length;return D?Ur(I,0,-1):[]}var kd=Vt(function(I){var D=Bt(I,$a);return D.length&&D[0]===I[0]?Aa(D):[]}),Id=Vt(function(I){var D=Qr(I),H=Bt(I,$a);return D===Qr(H)?D=b:H.pop(),H.length&&H[0]===I[0]?Aa(H,$t(D,2)):[]}),Md=Vt(function(I){var D=Qr(I),H=Bt(I,$a);return D=typeof D=="function"?D:b,D&&H.pop(),H.length&&H[0]===I[0]?Aa(H,b,D):[]});function Nd(I,D){return I==null?"":Bc.call(I,D)}function Qr(I){var D=I==null?0:I.length;return D?I[D-1]:b}function Dd(I,D,H){var Y=I==null?0:I.length;if(!Y)return-1;var ee=Y;return H!==b&&(ee=zt(H),ee=ee<0?ur(Y+ee,0):vr(ee,Y-1)),D===D?hc(I,D,ee):Pr(I,Vn,ee,!0)}function Od(I,D){return I&&I.length?Ds(I,zt(D)):b}var Rd=Vt(El);function El(I,D){return I&&I.length&&D&&D.length?Sa(I,D):I}function Fd(I,D,H){return I&&I.length&&D&&D.length?Sa(I,D,$t(H,2)):I}function zd(I,D,H){return I&&I.length&&D&&D.length?Sa(I,D,b,H):I}var Ld=pn(function(I,D){var H=I==null?0:I.length,Y=va(I,D);return Fs(I,Bt(D,function(ee){return gn(ee,H)?+ee:ee}).sort(Ks)),Y});function Hd(I,D){var H=[];if(!(I&&I.length))return H;var Y=-1,ee=[],pe=I.length;for(D=$t(D,3);++Y<pe;){var xe=I[Y];D(xe,Y,I)&&(H.push(xe),ee.push(Y))}return Fs(I,ee),H}function Ua(I){return I==null?I:Mc.call(I)}function Vd(I,D,H){var Y=I==null?0:I.length;return Y?(H&&typeof H!="number"&&Cr(I,D,H)?(D=0,H=Y):(D=D==null?0:zt(D),H=H===b?Y:zt(H)),Ur(I,D,H)):[]}function jd(I,D){return Mi(I,D)}function Ud(I,D,H){return Ta(I,D,$t(H,2))}function Qd(I,D){var H=I==null?0:I.length;if(H){var Y=Mi(I,D);if(Y<H&&Xr(I[Y],D))return Y}return-1}function Gd(I,D){return Mi(I,D,!0)}function Wd(I,D,H){return Ta(I,D,$t(H,2),!0)}function Kd(I,D){var H=I==null?0:I.length;if(H){var Y=Mi(I,D,!0)-1;if(Xr(I[Y],D))return Y}return-1}function Yd(I){return I&&I.length?Ls(I):[]}function qd(I,D){return I&&I.length?Ls(I,$t(D,2)):[]}function Xd(I){var D=I==null?0:I.length;return D?Ur(I,1,D):[]}function Jd(I,D,H){return I&&I.length?(D=H||D===b?1:zt(D),Ur(I,0,D<0?0:D)):[]}function Zd(I,D,H){var Y=I==null?0:I.length;return Y?(D=H||D===b?1:zt(D),D=Y-D,Ur(I,D<0?0:D,Y)):[]}function e0(I,D){return I&&I.length?Ni(I,$t(D,3),!1,!0):[]}function t0(I,D){return I&&I.length?Ni(I,$t(D,3)):[]}var r0=Vt(function(I){return Pn(gr(I,1,ar,!0))}),n0=Vt(function(I){var D=Qr(I);return ar(D)&&(D=b),Pn(gr(I,1,ar,!0),$t(D,2))}),o0=Vt(function(I){var D=Qr(I);return D=typeof D=="function"?D:b,Pn(gr(I,1,ar,!0),b,D)});function i0(I){return I&&I.length?Pn(I):[]}function a0(I,D){return I&&I.length?Pn(I,$t(D,2)):[]}function s0(I,D){return D=typeof D=="function"?D:b,I&&I.length?Pn(I,b,D):[]}function Qa(I){if(!(I&&I.length))return[];var D=0;return I=Pt(I,function(H){if(ar(H))return D=ur(H.length,D),!0}),la(D,function(H){return Bt(I,ia(H))})}function Tl(I,D){if(!(I&&I.length))return[];var H=Qa(I);return D==null?H:Bt(H,function(Y){return Ar(D,b,Y)})}var l0=Vt(function(I,D){return ar(I)?Wo(I,D):[]}),c0=Vt(function(I){return Ba(Pt(I,ar))}),u0=Vt(function(I){var D=Qr(I);return ar(D)&&(D=b),Ba(Pt(I,ar),$t(D,2))}),d0=Vt(function(I){var D=Qr(I);return D=typeof D=="function"?D:b,Ba(Pt(I,ar),b,D)}),f0=Vt(Qa);function h0(I,D){return Us(I||[],D||[],Go)}function p0(I,D){return Us(I||[],D||[],qo)}var g0=Vt(function(I){var D=I.length,H=D>1?I[D-1]:b;return H=typeof H=="function"?(I.pop(),H):b,Tl(I,H)});function Pl(I){var D=le(I);return D.__chain__=!0,D}function v0(I,D){return D(I),I}function ji(I,D){return D(I)}var m0=pn(function(I){var D=I.length,H=D?I[0]:0,Y=this.__wrapped__,ee=function(pe){return va(pe,I)};return D>1||this.__actions__.length||!(Y instanceof Qt)||!gn(H)?this.thru(ee):(Y=Y.slice(H,+H+(D?1:0)),Y.__actions__.push({func:ji,args:[ee],thisArg:b}),new Vr(Y,this.__chain__).thru(function(pe){return D&&!pe.length&&pe.push(b),pe}))});function b0(){return Pl(this)}function y0(){return new Vr(this.value(),this.__chain__)}function A0(){this.__values__===b&&(this.__values__=Vl(this.value()));var I=this.__index__>=this.__values__.length,D=I?b:this.__values__[this.__index__++];return{done:I,value:D}}function w0(){return this}function C0(I){for(var D,H=this;H instanceof Pi;){var Y=wl(H);Y.__index__=0,Y.__values__=b,D?ee.__wrapped__=Y:D=Y;var ee=Y;H=H.__wrapped__}return ee.__wrapped__=I,D}function x0(){var I=this.__wrapped__;if(I instanceof Qt){var D=I;return this.__actions__.length&&(D=new Qt(this)),D=D.reverse(),D.__actions__.push({func:ji,args:[Ua],thisArg:b}),new Vr(D,this.__chain__)}return this.thru(Ua)}function S0(){return js(this.__wrapped__,this.__actions__)}var _0=Di(function(I,D,H){Xt.call(I,H)?++I[H]:fn(I,H,1)});function E0(I,D,H){var Y=Rt(I)?at:gu;return H&&Cr(I,D,H)&&(D=b),Y(I,$t(D,3))}function T0(I,D){var H=Rt(I)?Pt:Es;return H(I,$t(D,3))}var P0=tl(Cl),B0=tl(xl);function $0(I,D){return gr(Ui(I,D),1)}function k0(I,D){return gr(Ui(I,D),te)}function I0(I,D,H){return H=H===b?1:zt(H),gr(Ui(I,D),H)}function Bl(I,D){var H=Rt(I)?Ce:Tn;return H(I,$t(D,3))}function $l(I,D){var H=Rt(I)?Ge:_s;return H(I,$t(D,3))}var M0=Di(function(I,D,H){Xt.call(I,H)?I[H].push(D):fn(I,H,[D])});function N0(I,D,H,Y){I=kr(I)?I:Eo(I),H=H&&!Y?zt(H):0;var ee=I.length;return H<0&&(H=ur(ee+H,0)),Yi(I)?H<=ee&&I.indexOf(D,H)>-1:!!ee&&Br(I,D,H)>-1}var D0=Vt(function(I,D,H){var Y=-1,ee=typeof D=="function",pe=kr(I)?Ue(I.length):[];return Tn(I,function(xe){pe[++Y]=ee?Ar(D,xe,H):Ko(xe,D,H)}),pe}),O0=Di(function(I,D,H){fn(I,H,D)});function Ui(I,D){var H=Rt(I)?Bt:Is;return H(I,$t(D,3))}function R0(I,D,H,Y){return I==null?[]:(Rt(D)||(D=D==null?[]:[D]),H=Y?b:H,Rt(H)||(H=H==null?[]:[H]),Os(I,D,H))}var F0=Di(function(I,D,H){I[H?0:1].push(D)},function(){return[[],[]]});function z0(I,D,H){var Y=Rt(I)?nr:as,ee=arguments.length<3;return Y(I,$t(D,4),H,ee,Tn)}function L0(I,D,H){var Y=Rt(I)?pr:as,ee=arguments.length<3;return Y(I,$t(D,4),H,ee,_s)}function H0(I,D){var H=Rt(I)?Pt:Es;return H(I,Wi($t(D,3)))}function V0(I){var D=Rt(I)?ws:Mu;return D(I)}function j0(I,D,H){(H?Cr(I,D,H):D===b)?D=1:D=zt(D);var Y=Rt(I)?uu:Nu;return Y(I,D)}function U0(I){var D=Rt(I)?du:Ou;return D(I)}function Q0(I){if(I==null)return 0;if(kr(I))return Yi(I)?vo(I):I.length;var D=mr(I);return D==Be||D==ve?I.size:Ca(I).length}function G0(I,D,H){var Y=Rt(I)?fr:Ru;return H&&Cr(I,D,H)&&(D=b),Y(I,$t(D,3))}var W0=Vt(function(I,D){if(I==null)return[];var H=D.length;return H>1&&Cr(I,D[0],D[1])?D=[]:H>2&&Cr(D[0],D[1],D[2])&&(D=[D[0]]),Os(I,gr(D,1),[])}),Qi=Ec||function(){return ir.Date.now()};function K0(I,D){if(typeof D!="function")throw new Hr(x);return I=zt(I),function(){if(--I<1)return D.apply(this,arguments)}}function kl(I,D,H){return D=H?b:D,D=I&&D==null?I.length:D,hn(I,G,b,b,b,b,D)}function Il(I,D){var H;if(typeof D!="function")throw new Hr(x);return I=zt(I),function(){return--I>0&&(H=D.apply(this,arguments)),I<=1&&(D=b),H}}var Ga=Vt(function(I,D,H){var Y=L;if(H.length){var ee=_n(H,So(Ga));Y|=Q}return hn(I,Y,D,H,ee)}),Ml=Vt(function(I,D,H){var Y=L|z;if(H.length){var ee=_n(H,So(Ml));Y|=Q}return hn(D,Y,I,H,ee)});function Nl(I,D,H){D=H?b:D;var Y=hn(I,W,b,b,b,b,b,D);return Y.placeholder=Nl.placeholder,Y}function Dl(I,D,H){D=H?b:D;var Y=hn(I,V,b,b,b,b,b,D);return Y.placeholder=Dl.placeholder,Y}function Ol(I,D,H){var Y,ee,pe,xe,Ee,Me,Ze=0,tt=!1,nt=!1,vt=!0;if(typeof I!="function")throw new Hr(x);D=Gr(D)||0,rr(H)&&(tt=!!H.leading,nt="maxWait"in H,pe=nt?ur(Gr(H.maxWait)||0,D):pe,vt="trailing"in H?!!H.trailing:vt);function St(sr){var Jr=Y,bn=ee;return Y=ee=b,Ze=sr,xe=I.apply(bn,Jr),xe}function kt(sr){return Ze=sr,Ee=Zo(jt,D),tt?St(sr):xe}function Lt(sr){var Jr=sr-Me,bn=sr-Ze,tc=D-Jr;return nt?vr(tc,pe-bn):tc}function It(sr){var Jr=sr-Me,bn=sr-Ze;return Me===b||Jr>=D||Jr<0||nt&&bn>=pe}function jt(){var sr=Qi();if(It(sr))return Gt(sr);Ee=Zo(jt,Lt(sr))}function Gt(sr){return Ee=b,vt&&Y?St(sr):(Y=ee=b,xe)}function zr(){Ee!==b&&Qs(Ee),Ze=0,Y=Me=ee=Ee=b}function xr(){return Ee===b?xe:Gt(Qi())}function Lr(){var sr=Qi(),Jr=It(sr);if(Y=arguments,ee=this,Me=sr,Jr){if(Ee===b)return kt(Me);if(nt)return Qs(Ee),Ee=Zo(jt,D),St(Me)}return Ee===b&&(Ee=Zo(jt,D)),xe}return Lr.cancel=zr,Lr.flush=xr,Lr}var Y0=Vt(function(I,D){return Ss(I,1,D)}),q0=Vt(function(I,D,H){return Ss(I,Gr(D)||0,H)});function X0(I){return hn(I,J)}function Gi(I,D){if(typeof I!="function"||D!=null&&typeof D!="function")throw new Hr(x);var H=function(){var Y=arguments,ee=D?D.apply(this,Y):Y[0],pe=H.cache;if(pe.has(ee))return pe.get(ee);var xe=I.apply(this,Y);return H.cache=pe.set(ee,xe)||pe,xe};return H.cache=new(Gi.Cache||dn),H}Gi.Cache=dn;function Wi(I){if(typeof I!="function")throw new Hr(x);return function(){var D=arguments;switch(D.length){case 0:return!I.call(this);case 1:return!I.call(this,D[0]);case 2:return!I.call(this,D[0],D[1]);case 3:return!I.call(this,D[0],D[1],D[2])}return!I.apply(this,D)}}function J0(I){return Il(2,I)}var Z0=Fu(function(I,D){D=D.length==1&&Rt(D[0])?Bt(D[0],Or($t())):Bt(gr(D,1),Or($t()));var H=D.length;return Vt(function(Y){for(var ee=-1,pe=vr(Y.length,H);++ee<pe;)Y[ee]=D[ee].call(this,Y[ee]);return Ar(I,this,Y)})}),Wa=Vt(function(I,D){var H=_n(D,So(Wa));return hn(I,Q,b,D,H)}),Rl=Vt(function(I,D){var H=_n(D,So(Rl));return hn(I,K,b,D,H)}),ef=pn(function(I,D){return hn(I,X,b,b,b,D)});function tf(I,D){if(typeof I!="function")throw new Hr(x);return D=D===b?D:zt(D),Vt(I,D)}function rf(I,D){if(typeof I!="function")throw new Hr(x);return D=D==null?0:ur(zt(D),0),Vt(function(H){var Y=H[D],ee=$n(H,0,D);return Y&&Kt(ee,Y),Ar(I,this,ee)})}function nf(I,D,H){var Y=!0,ee=!0;if(typeof I!="function")throw new Hr(x);return rr(H)&&(Y="leading"in H?!!H.leading:Y,ee="trailing"in H?!!H.trailing:ee),Ol(I,D,{leading:Y,maxWait:D,trailing:ee})}function of(I){return kl(I,1)}function af(I,D){return Wa(ka(D),I)}function sf(){if(!arguments.length)return[];var I=arguments[0];return Rt(I)?I:[I]}function lf(I){return jr(I,M)}function cf(I,D){return D=typeof D=="function"?D:b,jr(I,M,D)}function uf(I){return jr(I,P|M)}function df(I,D){return D=typeof D=="function"?D:b,jr(I,P|M,D)}function ff(I,D){return D==null||xs(I,D,hr(D))}function Xr(I,D){return I===D||I!==I&&D!==D}var hf=zi(ya),pf=zi(function(I,D){return I>=D}),Xn=Bs(function(){return arguments}())?Bs:function(I){return or(I)&&Xt.call(I,"callee")&&!gs.call(I,"callee")},Rt=Ue.isArray,gf=li?Or(li):wu;function kr(I){return I!=null&&Ki(I.length)&&!vn(I)}function ar(I){return or(I)&&kr(I)}function vf(I){return I===!0||I===!1||or(I)&&wr(I)==$e}var kn=Pc||os,mf=ci?Or(ci):Cu;function bf(I){return or(I)&&I.nodeType===1&&!ei(I)}function yf(I){if(I==null)return!0;if(kr(I)&&(Rt(I)||typeof I=="string"||typeof I.splice=="function"||kn(I)||_o(I)||Xn(I)))return!I.length;var D=mr(I);if(D==Be||D==ve)return!I.size;if(Jo(I))return!Ca(I).length;for(var H in I)if(Xt.call(I,H))return!1;return!0}function Af(I,D){return Yo(I,D)}function wf(I,D,H){H=typeof H=="function"?H:b;var Y=H?H(I,D):b;return Y===b?Yo(I,D,b,H):!!Y}function Ka(I){if(!or(I))return!1;var D=wr(I);return D==Xe||D==rt||typeof I.message=="string"&&typeof I.name=="string"&&!ei(I)}function Cf(I){return typeof I=="number"&&ms(I)}function vn(I){if(!rr(I))return!1;var D=wr(I);return D==he||D==we||D==Re||D==ge}function Fl(I){return typeof I=="number"&&I==zt(I)}function Ki(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=ue}function rr(I){var D=typeof I;return I!=null&&(D=="object"||D=="function")}function or(I){return I!=null&&typeof I=="object"}var zl=ui?Or(ui):Su;function xf(I,D){return I===D||wa(I,D,Fa(D))}function Sf(I,D,H){return H=typeof H=="function"?H:b,wa(I,D,Fa(D),H)}function _f(I){return Ll(I)&&I!=+I}function Ef(I){if(ld(I))throw new Ot(C);return $s(I)}function Tf(I){return I===null}function Pf(I){return I==null}function Ll(I){return typeof I=="number"||or(I)&&wr(I)==Ne}function ei(I){if(!or(I)||wr(I)!=q)return!1;var D=wi(I);if(D===null)return!0;var H=Xt.call(D,"constructor")&&D.constructor;return typeof H=="function"&&H instanceof H&&mi.call(H)==Cc}var Ya=Hn?Or(Hn):_u;function Bf(I){return Fl(I)&&I>=-ue&&I<=ue}var Hl=di?Or(di):Eu;function Yi(I){return typeof I=="string"||!Rt(I)&&or(I)&&wr(I)==Pe}function Fr(I){return typeof I=="symbol"||or(I)&&wr(I)==De}var _o=fi?Or(fi):Tu;function $f(I){return I===b}function kf(I){return or(I)&&mr(I)==ot}function If(I){return or(I)&&wr(I)==st}var Mf=zi(xa),Nf=zi(function(I,D){return I<=D});function Vl(I){if(!I)return[];if(kr(I))return Yi(I)?Yr(I):$r(I);if(Ho&&I[Ho])return uc(I[Ho]());var D=mr(I),H=D==Be?ua:D==ve?pi:Eo;return H(I)}function mn(I){if(!I)return I===0?I:0;if(I=Gr(I),I===te||I===-te){var D=I<0?-1:1;return D*ae}return I===I?I:0}function zt(I){var D=mn(I),H=D%1;return D===D?H?D-H:D:0}function jl(I){return I?Wn(zt(I),0,Oe):0}function Gr(I){if(typeof I=="number")return I;if(Fr(I))return ye;if(rr(I)){var D=typeof I.valueOf=="function"?I.valueOf():I;I=rr(D)?D+"":D}if(typeof I!="string")return I===0?I:+I;I=ss(I);var H=br.test(I);return H||Mn.test(I)?Wr(I.slice(2),H?2:8):an.test(I)?ye:+I}function Ul(I){return rn(I,Ir(I))}function Df(I){return I?Wn(zt(I),-ue,ue):I===0?I:0}function qt(I){return I==null?"":Rr(I)}var Of=Co(function(I,D){if(Jo(D)||kr(D)){rn(D,hr(D),I);return}for(var H in D)Xt.call(D,H)&&Go(I,H,D[H])}),Ql=Co(function(I,D){rn(D,Ir(D),I)}),qi=Co(function(I,D,H,Y){rn(D,Ir(D),I,Y)}),Rf=Co(function(I,D,H,Y){rn(D,hr(D),I,Y)}),Ff=pn(va);function zf(I,D){var H=wo(I);return D==null?H:Cs(H,D)}var Lf=Vt(function(I,D){I=tr(I);var H=-1,Y=D.length,ee=Y>2?D[2]:b;for(ee&&Cr(D[0],D[1],ee)&&(Y=1);++H<Y;)for(var pe=D[H],xe=Ir(pe),Ee=-1,Me=xe.length;++Ee<Me;){var Ze=xe[Ee],tt=I[Ze];(tt===b||Xr(tt,bo[Ze])&&!Xt.call(I,Ze))&&(I[Ze]=pe[Ze])}return I}),Hf=Vt(function(I){return I.push(b,ll),Ar(Gl,b,I)});function Vf(I,D){return Kr(I,$t(D,3),tn)}function jf(I,D){return Kr(I,$t(D,3),ba)}function Uf(I,D){return I==null?I:ma(I,$t(D,3),Ir)}function Qf(I,D){return I==null?I:Ts(I,$t(D,3),Ir)}function Gf(I,D){return I&&tn(I,$t(D,3))}function Wf(I,D){return I&&ba(I,$t(D,3))}function Kf(I){return I==null?[]:ki(I,hr(I))}function Yf(I){return I==null?[]:ki(I,Ir(I))}function qa(I,D,H){var Y=I==null?b:Kn(I,D);return Y===b?H:Y}function qf(I,D){return I!=null&&dl(I,D,mu)}function Xa(I,D){return I!=null&&dl(I,D,bu)}var Xf=nl(function(I,D,H){D!=null&&typeof D.toString!="function"&&(D=bi.call(D)),I[D]=H},Za(Mr)),Jf=nl(function(I,D,H){D!=null&&typeof D.toString!="function"&&(D=bi.call(D)),Xt.call(I,D)?I[D].push(H):I[D]=[H]},$t),Zf=Vt(Ko);function hr(I){return kr(I)?As(I):Ca(I)}function Ir(I){return kr(I)?As(I,!0):Pu(I)}function eh(I,D){var H={};return D=$t(D,3),tn(I,function(Y,ee,pe){fn(H,D(Y,ee,pe),Y)}),H}function th(I,D){var H={};return D=$t(D,3),tn(I,function(Y,ee,pe){fn(H,ee,D(Y,ee,pe))}),H}var rh=Co(function(I,D,H){Ii(I,D,H)}),Gl=Co(function(I,D,H,Y){Ii(I,D,H,Y)}),nh=pn(function(I,D){var H={};if(I==null)return H;var Y=!1;D=Bt(D,function(pe){return pe=Bn(pe,I),Y||(Y=pe.length>1),pe}),rn(I,Oa(I),H),Y&&(H=jr(H,P|k|M,Yu));for(var ee=D.length;ee--;)Pa(H,D[ee]);return H});function oh(I,D){return Wl(I,Wi($t(D)))}var ih=pn(function(I,D){return I==null?{}:$u(I,D)});function Wl(I,D){if(I==null)return{};var H=Bt(Oa(I),function(Y){return[Y]});return D=$t(D),Rs(I,H,function(Y,ee){return D(Y,ee[0])})}function ah(I,D,H){D=Bn(D,I);var Y=-1,ee=D.length;for(ee||(ee=1,I=b);++Y<ee;){var pe=I==null?b:I[nn(D[Y])];pe===b&&(Y=ee,pe=H),I=vn(pe)?pe.call(I):pe}return I}function sh(I,D,H){return I==null?I:qo(I,D,H)}function lh(I,D,H,Y){return Y=typeof Y=="function"?Y:b,I==null?I:qo(I,D,H,Y)}var Kl=al(hr),Yl=al(Ir);function ch(I,D,H){var Y=Rt(I),ee=Y||kn(I)||_o(I);if(D=$t(D,4),H==null){var pe=I&&I.constructor;ee?H=Y?new pe:[]:rr(I)?H=vn(pe)?wo(wi(I)):{}:H={}}return(ee?Ce:tn)(I,function(xe,Ee,Me){return D(H,xe,Ee,Me)}),H}function uh(I,D){return I==null?!0:Pa(I,D)}function dh(I,D,H){return I==null?I:Vs(I,D,ka(H))}function fh(I,D,H,Y){return Y=typeof Y=="function"?Y:b,I==null?I:Vs(I,D,ka(H),Y)}function Eo(I){return I==null?[]:ca(I,hr(I))}function hh(I){return I==null?[]:ca(I,Ir(I))}function ph(I,D,H){return H===b&&(H=D,D=b),H!==b&&(H=Gr(H),H=H===H?H:0),D!==b&&(D=Gr(D),D=D===D?D:0),Wn(Gr(I),D,H)}function gh(I,D,H){return D=mn(D),H===b?(H=D,D=0):H=mn(H),I=Gr(I),yu(I,D,H)}function vh(I,D,H){if(H&&typeof H!="boolean"&&Cr(I,D,H)&&(D=H=b),H===b&&(typeof D=="boolean"?(H=D,D=b):typeof I=="boolean"&&(H=I,I=b)),I===b&&D===b?(I=0,D=1):(I=mn(I),D===b?(D=I,I=0):D=mn(D)),I>D){var Y=I;I=D,D=Y}if(H||I%1||D%1){var ee=bs();return vr(I+ee*(D-I+si("1e-"+((ee+"").length-1))),D)}return _a(I,D)}var mh=xo(function(I,D,H){return D=D.toLowerCase(),I+(H?ql(D):D)});function ql(I){return Ja(qt(I).toLowerCase())}function Xl(I){return I=qt(I),I&&I.replace(Po,ic).replace(ea,"")}function bh(I,D,H){I=qt(I),D=Rr(D);var Y=I.length;H=H===b?Y:Wn(zt(H),0,Y);var ee=H;return H-=D.length,H>=0&&I.slice(H,ee)==D}function yh(I){return I=qt(I),I&&ze.test(I)?I.replace(Ae,ac):I}function Ah(I){return I=qt(I),I&&_e.test(I)?I.replace(Mt,"\\$&"):I}var wh=xo(function(I,D,H){return I+(H?"-":"")+D.toLowerCase()}),Ch=xo(function(I,D,H){return I+(H?" ":"")+D.toLowerCase()}),xh=Zs("toLowerCase");function Sh(I,D,H){I=qt(I),D=zt(D);var Y=D?vo(I):0;if(!D||Y>=D)return I;var ee=(D-Y)/2;return Fi(_i(ee),H)+I+Fi(Si(ee),H)}function _h(I,D,H){I=qt(I),D=zt(D);var Y=D?vo(I):0;return D&&Y<D?I+Fi(D-Y,H):I}function Eh(I,D,H){I=qt(I),D=zt(D);var Y=D?vo(I):0;return D&&Y<D?Fi(D-Y,H)+I:I}function Th(I,D,H){return H||D==null?D=0:D&&(D=+D),Ic(qt(I).replace(je,""),D||0)}function Ph(I,D,H){return(H?Cr(I,D,H):D===b)?D=1:D=zt(D),Ea(qt(I),D)}function Bh(){var I=arguments,D=qt(I[0]);return I.length<3?D:D.replace(I[1],I[2])}var $h=xo(function(I,D,H){return I+(H?"_":"")+D.toLowerCase()});function kh(I,D,H){return H&&typeof H!="number"&&Cr(I,D,H)&&(D=H=b),H=H===b?Oe:H>>>0,H?(I=qt(I),I&&(typeof D=="string"||D!=null&&!Ya(D))&&(D=Rr(D),!D&&go(I))?$n(Yr(I),0,H):I.split(D,H)):[]}var Ih=xo(function(I,D,H){return I+(H?" ":"")+Ja(D)});function Mh(I,D,H){return I=qt(I),H=H==null?0:Wn(zt(H),0,I.length),D=Rr(D),I.slice(H,H+D.length)==D}function Nh(I,D,H){var Y=le.templateSettings;H&&Cr(I,D,H)&&(D=b),I=qt(I),D=qi({},D,Y,sl);var ee=qi({},D.imports,Y.imports,sl),pe=hr(ee),xe=ca(ee,pe),Ee,Me,Ze=0,tt=D.interpolate||An,nt="__p += '",vt=da((D.escape||An).source+"|"+tt.source+"|"+(tt===dt?dr:An).source+"|"+(D.evaluate||An).source+"|$","g"),St="//# sourceURL="+(Xt.call(D,"sourceURL")?(D.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ii+"]")+`
  2482. `;I.replace(vt,function(It,jt,Gt,zr,xr,Lr){return Gt||(Gt=zr),nt+=I.slice(Ze,Lr).replace(Nr,sc),jt&&(Ee=!0,nt+=`' +
  2483. __e(`+jt+`) +
  2484. '`),xr&&(Me=!0,nt+=`';
  2485. `+xr+`;
  2486. __p += '`),Gt&&(nt+=`' +
  2487. ((__t = (`+Gt+`)) == null ? '' : __t) +
  2488. '`),Ze=Lr+It.length,It}),nt+=`';
  2489. `;var kt=Xt.call(D,"variable")&&D.variable;if(!kt)nt=`with (obj) {
  2490. `+nt+`
  2491. }
  2492. `;else if(Wt.test(kt))throw new Ot(S);nt=(Me?nt.replace(We,""):nt).replace(it,"$1").replace(gt,"$1;"),nt="function("+(kt||"obj")+`) {
  2493. `+(kt?"":`obj || (obj = {});
  2494. `)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Me?`, __j = Array.prototype.join;
  2495. function print() { __p += __j.call(arguments, '') }
  2496. `:`;
  2497. `)+nt+`return __p
  2498. }`;var Lt=Zl(function(){return Yt(pe,St+"return "+nt).apply(b,xe)});if(Lt.source=nt,Ka(Lt))throw Lt;return Lt}function Dh(I){return qt(I).toLowerCase()}function Oh(I){return qt(I).toUpperCase()}function Rh(I,D,H){if(I=qt(I),I&&(H||D===b))return ss(I);if(!I||!(D=Rr(D)))return I;var Y=Yr(I),ee=Yr(D),pe=ls(Y,ee),xe=cs(Y,ee)+1;return $n(Y,pe,xe).join("")}function Fh(I,D,H){if(I=qt(I),I&&(H||D===b))return I.slice(0,ds(I)+1);if(!I||!(D=Rr(D)))return I;var Y=Yr(I),ee=cs(Y,Yr(D))+1;return $n(Y,0,ee).join("")}function zh(I,D,H){if(I=qt(I),I&&(H||D===b))return I.replace(je,"");if(!I||!(D=Rr(D)))return I;var Y=Yr(I),ee=ls(Y,Yr(D));return $n(Y,ee).join("")}function Lh(I,D){var H=re,Y=fe;if(rr(D)){var ee="separator"in D?D.separator:ee;H="length"in D?zt(D.length):H,Y="omission"in D?Rr(D.omission):Y}I=qt(I);var pe=I.length;if(go(I)){var xe=Yr(I);pe=xe.length}if(H>=pe)return I;var Ee=H-vo(Y);if(Ee<1)return Y;var Me=xe?$n(xe,0,Ee).join(""):I.slice(0,Ee);if(ee===b)return Me+Y;if(xe&&(Ee+=Me.length-Ee),Ya(ee)){if(I.slice(Ee).search(ee)){var Ze,tt=Me;for(ee.global||(ee=da(ee.source,qt(Sr.exec(ee))+"g")),ee.lastIndex=0;Ze=ee.exec(tt);)var nt=Ze.index;Me=Me.slice(0,nt===b?Ee:nt)}}else if(I.indexOf(Rr(ee),Ee)!=Ee){var vt=Me.lastIndexOf(ee);vt>-1&&(Me=Me.slice(0,vt))}return Me+Y}function Hh(I){return I=qt(I),I&&Ie.test(I)?I.replace(yt,pc):I}var Vh=xo(function(I,D,H){return I+(H?" ":"")+D.toUpperCase()}),Ja=Zs("toUpperCase");function Jl(I,D,H){return I=qt(I),D=H?b:D,D===b?cc(I)?mc(I):Tr(I):I.match(D)||[]}var Zl=Vt(function(I,D){try{return Ar(I,b,D)}catch(H){return Ka(H)?H:new Ot(H)}}),jh=pn(function(I,D){return Ce(D,function(H){H=nn(H),fn(I,H,Ga(I[H],I))}),I});function Uh(I){var D=I==null?0:I.length,H=$t();return I=D?Bt(I,function(Y){if(typeof Y[1]!="function")throw new Hr(x);return[H(Y[0]),Y[1]]}):[],Vt(function(Y){for(var ee=-1;++ee<D;){var pe=I[ee];if(Ar(pe[0],this,Y))return Ar(pe[1],this,Y)}})}function Qh(I){return pu(jr(I,P))}function Za(I){return function(){return I}}function Gh(I,D){return I==null||I!==I?D:I}var Wh=rl(),Kh=rl(!0);function Mr(I){return I}function es(I){return ks(typeof I=="function"?I:jr(I,P))}function Yh(I){return Ms(jr(I,P))}function qh(I,D){return Ns(I,jr(D,P))}var Xh=Vt(function(I,D){return function(H){return Ko(H,I,D)}}),Jh=Vt(function(I,D){return function(H){return Ko(I,H,D)}});function ts(I,D,H){var Y=hr(D),ee=ki(D,Y);H==null&&!(rr(D)&&(ee.length||!Y.length))&&(H=D,D=I,I=this,ee=ki(D,hr(D)));var pe=!(rr(H)&&"chain"in H)||!!H.chain,xe=vn(I);return Ce(ee,function(Ee){var Me=D[Ee];I[Ee]=Me,xe&&(I.prototype[Ee]=function(){var Ze=this.__chain__;if(pe||Ze){var tt=I(this.__wrapped__),nt=tt.__actions__=$r(this.__actions__);return nt.push({func:Me,args:arguments,thisArg:I}),tt.__chain__=Ze,tt}return Me.apply(I,Kt([this.value()],arguments))})}),I}function Zh(){return ir._===this&&(ir._=xc),this}function rs(){}function ep(I){return I=zt(I),Vt(function(D){return Ds(D,I)})}var tp=Ma(Bt),rp=Ma(at),np=Ma(fr);function ec(I){return La(I)?ia(nn(I)):ku(I)}function op(I){return function(D){return I==null?b:Kn(I,D)}}var ip=ol(),ap=ol(!0);function ns(){return[]}function os(){return!1}function sp(){return{}}function lp(){return""}function cp(){return!0}function up(I,D){if(I=zt(I),I<1||I>ue)return[];var H=Oe,Y=vr(I,Oe);D=$t(D),I-=Oe;for(var ee=la(Y,D);++H<I;)D(H);return ee}function dp(I){return Rt(I)?Bt(I,nn):Fr(I)?[I]:$r(Al(qt(I)))}function fp(I){var D=++wc;return qt(I)+D}var hp=Ri(function(I,D){return I+D},0),pp=Na("ceil"),gp=Ri(function(I,D){return I/D},1),vp=Na("floor");function mp(I){return I&&I.length?$i(I,Mr,ya):b}function bp(I,D){return I&&I.length?$i(I,$t(D,2),ya):b}function yp(I){return jn(I,Mr)}function Ap(I,D){return jn(I,$t(D,2))}function wp(I){return I&&I.length?$i(I,Mr,xa):b}function Cp(I,D){return I&&I.length?$i(I,$t(D,2),xa):b}var xp=Ri(function(I,D){return I*D},1),Sp=Na("round"),_p=Ri(function(I,D){return I-D},0);function Ep(I){return I&&I.length?sa(I,Mr):0}function Tp(I,D){return I&&I.length?sa(I,$t(D,2)):0}return le.after=K0,le.ary=kl,le.assign=Of,le.assignIn=Ql,le.assignInWith=qi,le.assignWith=Rf,le.at=Ff,le.before=Il,le.bind=Ga,le.bindAll=jh,le.bindKey=Ml,le.castArray=sf,le.chain=Pl,le.chunk=gd,le.compact=vd,le.concat=md,le.cond=Uh,le.conforms=Qh,le.constant=Za,le.countBy=_0,le.create=zf,le.curry=Nl,le.curryRight=Dl,le.debounce=Ol,le.defaults=Lf,le.defaultsDeep=Hf,le.defer=Y0,le.delay=q0,le.difference=bd,le.differenceBy=yd,le.differenceWith=Ad,le.drop=wd,le.dropRight=Cd,le.dropRightWhile=xd,le.dropWhile=Sd,le.fill=_d,le.filter=T0,le.flatMap=$0,le.flatMapDeep=k0,le.flatMapDepth=I0,le.flatten=Sl,le.flattenDeep=Ed,le.flattenDepth=Td,le.flip=X0,le.flow=Wh,le.flowRight=Kh,le.fromPairs=Pd,le.functions=Kf,le.functionsIn=Yf,le.groupBy=M0,le.initial=$d,le.intersection=kd,le.intersectionBy=Id,le.intersectionWith=Md,le.invert=Xf,le.invertBy=Jf,le.invokeMap=D0,le.iteratee=es,le.keyBy=O0,le.keys=hr,le.keysIn=Ir,le.map=Ui,le.mapKeys=eh,le.mapValues=th,le.matches=Yh,le.matchesProperty=qh,le.memoize=Gi,le.merge=rh,le.mergeWith=Gl,le.method=Xh,le.methodOf=Jh,le.mixin=ts,le.negate=Wi,le.nthArg=ep,le.omit=nh,le.omitBy=oh,le.once=J0,le.orderBy=R0,le.over=tp,le.overArgs=Z0,le.overEvery=rp,le.overSome=np,le.partial=Wa,le.partialRight=Rl,le.partition=F0,le.pick=ih,le.pickBy=Wl,le.property=ec,le.propertyOf=op,le.pull=Rd,le.pullAll=El,le.pullAllBy=Fd,le.pullAllWith=zd,le.pullAt=Ld,le.range=ip,le.rangeRight=ap,le.rearg=ef,le.reject=H0,le.remove=Hd,le.rest=tf,le.reverse=Ua,le.sampleSize=j0,le.set=sh,le.setWith=lh,le.shuffle=U0,le.slice=Vd,le.sortBy=W0,le.sortedUniq=Yd,le.sortedUniqBy=qd,le.split=kh,le.spread=rf,le.tail=Xd,le.take=Jd,le.takeRight=Zd,le.takeRightWhile=e0,le.takeWhile=t0,le.tap=v0,le.throttle=nf,le.thru=ji,le.toArray=Vl,le.toPairs=Kl,le.toPairsIn=Yl,le.toPath=dp,le.toPlainObject=Ul,le.transform=ch,le.unary=of,le.union=r0,le.unionBy=n0,le.unionWith=o0,le.uniq=i0,le.uniqBy=a0,le.uniqWith=s0,le.unset=uh,le.unzip=Qa,le.unzipWith=Tl,le.update=dh,le.updateWith=fh,le.values=Eo,le.valuesIn=hh,le.without=l0,le.words=Jl,le.wrap=af,le.xor=c0,le.xorBy=u0,le.xorWith=d0,le.zip=f0,le.zipObject=h0,le.zipObjectDeep=p0,le.zipWith=g0,le.entries=Kl,le.entriesIn=Yl,le.extend=Ql,le.extendWith=qi,ts(le,le),le.add=hp,le.attempt=Zl,le.camelCase=mh,le.capitalize=ql,le.ceil=pp,le.clamp=ph,le.clone=lf,le.cloneDeep=uf,le.cloneDeepWith=df,le.cloneWith=cf,le.conformsTo=ff,le.deburr=Xl,le.defaultTo=Gh,le.divide=gp,le.endsWith=bh,le.eq=Xr,le.escape=yh,le.escapeRegExp=Ah,le.every=E0,le.find=P0,le.findIndex=Cl,le.findKey=Vf,le.findLast=B0,le.findLastIndex=xl,le.findLastKey=jf,le.floor=vp,le.forEach=Bl,le.forEachRight=$l,le.forIn=Uf,le.forInRight=Qf,le.forOwn=Gf,le.forOwnRight=Wf,le.get=qa,le.gt=hf,le.gte=pf,le.has=qf,le.hasIn=Xa,le.head=_l,le.identity=Mr,le.includes=N0,le.indexOf=Bd,le.inRange=gh,le.invoke=Zf,le.isArguments=Xn,le.isArray=Rt,le.isArrayBuffer=gf,le.isArrayLike=kr,le.isArrayLikeObject=ar,le.isBoolean=vf,le.isBuffer=kn,le.isDate=mf,le.isElement=bf,le.isEmpty=yf,le.isEqual=Af,le.isEqualWith=wf,le.isError=Ka,le.isFinite=Cf,le.isFunction=vn,le.isInteger=Fl,le.isLength=Ki,le.isMap=zl,le.isMatch=xf,le.isMatchWith=Sf,le.isNaN=_f,le.isNative=Ef,le.isNil=Pf,le.isNull=Tf,le.isNumber=Ll,le.isObject=rr,le.isObjectLike=or,le.isPlainObject=ei,le.isRegExp=Ya,le.isSafeInteger=Bf,le.isSet=Hl,le.isString=Yi,le.isSymbol=Fr,le.isTypedArray=_o,le.isUndefined=$f,le.isWeakMap=kf,le.isWeakSet=If,le.join=Nd,le.kebabCase=wh,le.last=Qr,le.lastIndexOf=Dd,le.lowerCase=Ch,le.lowerFirst=xh,le.lt=Mf,le.lte=Nf,le.max=mp,le.maxBy=bp,le.mean=yp,le.meanBy=Ap,le.min=wp,le.minBy=Cp,le.stubArray=ns,le.stubFalse=os,le.stubObject=sp,le.stubString=lp,le.stubTrue=cp,le.multiply=xp,le.nth=Od,le.noConflict=Zh,le.noop=rs,le.now=Qi,le.pad=Sh,le.padEnd=_h,le.padStart=Eh,le.parseInt=Th,le.random=vh,le.reduce=z0,le.reduceRight=L0,le.repeat=Ph,le.replace=Bh,le.result=ah,le.round=Sp,le.runInContext=ke,le.sample=V0,le.size=Q0,le.snakeCase=$h,le.some=G0,le.sortedIndex=jd,le.sortedIndexBy=Ud,le.sortedIndexOf=Qd,le.sortedLastIndex=Gd,le.sortedLastIndexBy=Wd,le.sortedLastIndexOf=Kd,le.startCase=Ih,le.startsWith=Mh,le.subtract=_p,le.sum=Ep,le.sumBy=Tp,le.template=Nh,le.times=up,le.toFinite=mn,le.toInteger=zt,le.toLength=jl,le.toLower=Dh,le.toNumber=Gr,le.toSafeInteger=Df,le.toString=qt,le.toUpper=Oh,le.trim=Rh,le.trimEnd=Fh,le.trimStart=zh,le.truncate=Lh,le.unescape=Hh,le.uniqueId=fp,le.upperCase=Vh,le.upperFirst=Ja,le.each=Bl,le.eachRight=$l,le.first=_l,ts(le,function(){var I={};return tn(le,function(D,H){Xt.call(le.prototype,H)||(I[H]=D)}),I}(),{chain:!1}),le.VERSION=A,Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],function(I){le[I].placeholder=le}),Ce(["drop","take"],function(I,D){Qt.prototype[I]=function(H){H=H===b?1:ur(zt(H),0);var Y=this.__filtered__&&!D?new Qt(this):this.clone();return Y.__filtered__?Y.__takeCount__=vr(H,Y.__takeCount__):Y.__views__.push({size:vr(H,Oe),type:I+(Y.__dir__<0?"Right":"")}),Y},Qt.prototype[I+"Right"]=function(H){return this.reverse()[I](H).reverse()}}),Ce(["filter","map","takeWhile"],function(I,D){var H=D+1,Y=H==ce||H==ne;Qt.prototype[I]=function(ee){var pe=this.clone();return pe.__iteratees__.push({iteratee:$t(ee,3),type:H}),pe.__filtered__=pe.__filtered__||Y,pe}}),Ce(["head","last"],function(I,D){var H="take"+(D?"Right":"");Qt.prototype[I]=function(){return this[H](1).value()[0]}}),Ce(["initial","tail"],function(I,D){var H="drop"+(D?"":"Right");Qt.prototype[I]=function(){return this.__filtered__?new Qt(this):this[H](1)}}),Qt.prototype.compact=function(){return this.filter(Mr)},Qt.prototype.find=function(I){return this.filter(I).head()},Qt.prototype.findLast=function(I){return this.reverse().find(I)},Qt.prototype.invokeMap=Vt(function(I,D){return typeof I=="function"?new Qt(this):this.map(function(H){return Ko(H,I,D)})}),Qt.prototype.reject=function(I){return this.filter(Wi($t(I)))},Qt.prototype.slice=function(I,D){I=zt(I);var H=this;return H.__filtered__&&(I>0||D<0)?new Qt(H):(I<0?H=H.takeRight(-I):I&&(H=H.drop(I)),D!==b&&(D=zt(D),H=D<0?H.dropRight(-D):H.take(D-I)),H)},Qt.prototype.takeRightWhile=function(I){return this.reverse().takeWhile(I).reverse()},Qt.prototype.toArray=function(){return this.take(Oe)},tn(Qt.prototype,function(I,D){var H=/^(?:filter|find|map|reject)|While$/.test(D),Y=/^(?:head|last)$/.test(D),ee=le[Y?"take"+(D=="last"?"Right":""):D],pe=Y||/^find/.test(D);ee&&(le.prototype[D]=function(){var xe=this.__wrapped__,Ee=Y?[1]:arguments,Me=xe instanceof Qt,Ze=Ee[0],tt=Me||Rt(xe),nt=function(jt){var Gt=ee.apply(le,Kt([jt],Ee));return Y&&vt?Gt[0]:Gt};tt&&H&&typeof Ze=="function"&&Ze.length!=1&&(Me=tt=!1);var vt=this.__chain__,St=!!this.__actions__.length,kt=pe&&!vt,Lt=Me&&!St;if(!pe&&tt){xe=Lt?xe:new Qt(this);var It=I.apply(xe,Ee);return It.__actions__.push({func:ji,args:[nt],thisArg:b}),new Vr(It,vt)}return kt&&Lt?I.apply(this,Ee):(It=this.thru(nt),kt?Y?It.value()[0]:It.value():It)})}),Ce(["pop","push","shift","sort","splice","unshift"],function(I){var D=gi[I],H=/^(?:push|sort|unshift)$/.test(I)?"tap":"thru",Y=/^(?:pop|shift)$/.test(I);le.prototype[I]=function(){var ee=arguments;if(Y&&!this.__chain__){var pe=this.value();return D.apply(Rt(pe)?pe:[],ee)}return this[H](function(xe){return D.apply(Rt(xe)?xe:[],ee)})}}),tn(Qt.prototype,function(I,D){var H=le[D];if(H){var Y=H.name+"";Xt.call(Ao,Y)||(Ao[Y]=[]),Ao[Y].push({name:D,func:H})}}),Ao[Oi(b,z).name]=[{name:"wrapper",func:b}],Qt.prototype.clone=zc,Qt.prototype.reverse=Lc,Qt.prototype.value=Hc,le.prototype.at=m0,le.prototype.chain=b0,le.prototype.commit=y0,le.prototype.next=A0,le.prototype.plant=C0,le.prototype.reverse=x0,le.prototype.toJSON=le.prototype.valueOf=le.prototype.value=S0,le.prototype.first=le.prototype.head,Ho&&(le.prototype[Ho]=w0),le},mo=bc();_r?((_r.exports=mo)._=mo,Fn._=mo):ir._=mo}).call(commonjsGlobal)})(lodash,lodashExports);const speedEdit="_speedEdit_iqru4_1",speedIcon="_speedIcon_iqru4_6",styles$3={speedEdit,speedIcon},TheSpeed=defineComponent({name:"TheSpeed",emits:["change"],setup(d,{emit:g}){const b=reactive({speed:80});return()=>createVNode("div",null,[createVNode("div",{class:styles$3.speedEdit,onKeyup:A=>A.stopPropagation()},[createVNode(NInputNumber,{size:"large",value:b.speed,"onUpdate:value":[A=>b.speed=A,()=>{g("change",{type:"speeds",value:"Q:1/4="+b.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(g,b){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(g,b){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(g,b){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});var rafExports={},raf$1={get exports(){return rafExports},set exports(d){rafExports=d}},performanceNowExports={},performanceNow={get exports(){return performanceNowExports},set exports(d){performanceNowExports=d}};(function(){var d,g,b,A,w,C;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()-w)/1e6},g=process.hrtime,d=function(){var x;return x=g(),x[0]*1e9+x[1]},A=d(),C=process.uptime()*1e9,w=A-C):Date.now?(performanceNow.exports=function(){return Date.now()-b},b=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-b},b=new Date().getTime())}).call(commonjsGlobal);var 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 g=now(),b=Math.max(0,frameDuration-(g-last));last=b+g,setTimeout(function(){var A=queue.slice(0);queue.length=0;for(var w=0;w<A.length;w++)if(!A[w].cancelled)try{A[w].callback(last)}catch(C){setTimeout(function(){throw C},0)}},Math.round(b))}return queue.push({handle:++id,callback:d,cancelled:!1}),id},caf=function(d){for(var g=0;g<queue.length;g++)queue[g].handle===d&&(queue[g].cancelled=!0)}}raf$1.exports=function(d){return raf.call(root,d)};rafExports.cancel=function(){caf.apply(root,arguments)};rafExports.polyfill=function(d){d||(d=root),d.requestAnimationFrame=raf,d.cancelAnimationFrame=caf};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 g={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=g[d]||d;for(var b=[{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(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3]),parseFloat(E[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(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],A=0;A<b.length;A++){var w=b[A].re,C=b[A].process,x=w.exec(d);if(x){var S=C(x);this.r=S[0],this.g=S[1],this.b=S[2],S.length>3&&(this.alpha=S[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 E=this.r.toString(16),B=this.g.toString(16),$=this.b.toString(16);return E.length==1&&(E="0"+E),B.length==1&&(B="0"+B),$.length==1&&($="0"+$),"#"+E+B+$},this.getHelpXML=function(){for(var E=new Array,B=0;B<b.length;B++)for(var $=b[B].example,P=0;P<$.length;P++)E[E.length]=$[P];for(var k in g)E[E.length]=k;var M=document.createElement("ul");M.setAttribute("id","rgbcolor-examples");for(var B=0;B<E.length;B++)try{var R=document.createElement("li"),F=new RGBColor(E[B]),L=document.createElement("div");L.style.cssText="margin: 3px; border: 1px solid black; background:"+F.toHex()+"; color:"+F.toHex(),L.appendChild(document.createTextNode("test"));var z=document.createTextNode(" "+E[B]+" -> "+F.toRGB()+" -> "+F.toHex());R.appendChild(L),R.appendChild(z),M.appendChild(R)}catch(W){}return M}};/*! *****************************************************************************
  2499. Copyright (c) Microsoft Corporation.
  2500. Permission to use, copy, modify, and/or distribute this software for any
  2501. purpose with or without fee is hereby granted.
  2502. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  2503. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  2504. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  2505. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  2506. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  2507. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  2508. PERFORMANCE OF THIS SOFTWARE.
  2509. ***************************************************************************** */var t=function(d,g){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,A){b.__proto__=A}||function(b,A){for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&(b[w]=A[w])})(d,g)};function r(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function b(){this.constructor=d}t(d,g),d.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}function e(d){var g="";Array.isArray(d)||(d=[d]);for(var b=0;b<d.length;b++){var A=d[b];if(A.type===_.CLOSE_PATH)g+="z";else if(A.type===_.HORIZ_LINE_TO)g+=(A.relative?"h":"H")+A.x;else if(A.type===_.VERT_LINE_TO)g+=(A.relative?"v":"V")+A.y;else if(A.type===_.MOVE_TO)g+=(A.relative?"m":"M")+A.x+" "+A.y;else if(A.type===_.LINE_TO)g+=(A.relative?"l":"L")+A.x+" "+A.y;else if(A.type===_.CURVE_TO)g+=(A.relative?"c":"C")+A.x1+" "+A.y1+" "+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===_.SMOOTH_CURVE_TO)g+=(A.relative?"s":"S")+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===_.QUAD_TO)g+=(A.relative?"q":"Q")+A.x1+" "+A.y1+" "+A.x+" "+A.y;else if(A.type===_.SMOOTH_QUAD_TO)g+=(A.relative?"t":"T")+A.x+" "+A.y;else{if(A.type!==_.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+b+".");g+=(A.relative?"a":"A")+A.rX+" "+A.rY+" "+A.xRot+" "+ +A.lArcFlag+" "+ +A.sweepFlag+" "+A.x+" "+A.y}}return g}function i(d,g){var b=d[0],A=d[1];return[b*Math.cos(g)-A*Math.sin(g),b*Math.sin(g)+A*Math.cos(g)]}function a(){for(var d=[],g=0;g<arguments.length;g++)d[g]=arguments[g];for(var b=0;b<d.length;b++)if(typeof d[b]!="number")throw new Error("assertNumbers arguments["+b+"] is not a number. "+typeof d[b]+" == typeof "+d[b]);return!0}var n=Math.PI;function o(d,g,b){d.lArcFlag=d.lArcFlag===0?0:1,d.sweepFlag=d.sweepFlag===0?0:1;var A=d.rX,w=d.rY,C=d.x,x=d.y;A=Math.abs(d.rX),w=Math.abs(d.rY);var S=i([(g-C)/2,(b-x)/2],-d.xRot/180*n),E=S[0],B=S[1],$=Math.pow(E,2)/Math.pow(A,2)+Math.pow(B,2)/Math.pow(w,2);1<$&&(A*=Math.sqrt($),w*=Math.sqrt($)),d.rX=A,d.rY=w;var P=Math.pow(A,2)*Math.pow(B,2)+Math.pow(w,2)*Math.pow(E,2),k=(d.lArcFlag!==d.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(w,2)-P)/P)),M=A*B/w*k,R=-w*E/A*k,F=i([M,R],d.xRot/180*n);d.cX=F[0]+(g+C)/2,d.cY=F[1]+(b+x)/2,d.phi1=Math.atan2((B-R)/w,(E-M)/A),d.phi2=Math.atan2((-B-R)/w,(-E-M)/A),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,g,b){a(d,g,b);var A=d*d+g*g-b*b;if(0>A)return[];if(A===0)return[[d*b/(d*d+g*g),g*b/(d*d+g*g)]];var w=Math.sqrt(A);return[[(d*b+g*w)/(d*d+g*g),(g*b-d*w)/(d*d+g*g)],[(d*b-g*w)/(d*d+g*g),(g*b+d*w)/(d*d+g*g)]]}var u,h=Math.PI/180;function c$1(d,g,b){return(1-b)*d+b*g}function y(d,g,b,A){return d+Math.cos(A/180*n)*g+Math.sin(A/180*n)*b}function p(d,g,b,A){var w=1e-6,C=g-d,x=b-g,S=3*C+3*(A-b)-6*x,E=6*(x-C),B=3*C;return Math.abs(S)<w?[-B/E]:function($,P,k){k===void 0&&(k=1e-6);var M=$*$/4-P;if(M<-k)return[];if(M<=k)return[-$/2];var R=Math.sqrt(M);return[-$/2-R,-$/2+R]}(E/S,B/S,w)}function m$1(d,g,b,A,w){var C=1-w;return d*(C*C*C)+g*(3*C*C*w)+b*(3*C*w*w)+A*(w*w*w)}(function(d){function g(){return w(function(S,E,B){return S.relative&&(S.x1!==void 0&&(S.x1+=E),S.y1!==void 0&&(S.y1+=B),S.x2!==void 0&&(S.x2+=E),S.y2!==void 0&&(S.y2+=B),S.x!==void 0&&(S.x+=E),S.y!==void 0&&(S.y+=B),S.relative=!1),S})}function b(){var S=NaN,E=NaN,B=NaN,$=NaN;return w(function(P,k,M){return P.type&_.SMOOTH_CURVE_TO&&(P.type=_.CURVE_TO,S=isNaN(S)?k:S,E=isNaN(E)?M:E,P.x1=P.relative?k-S:2*k-S,P.y1=P.relative?M-E:2*M-E),P.type&_.CURVE_TO?(S=P.relative?k+P.x2:P.x2,E=P.relative?M+P.y2:P.y2):(S=NaN,E=NaN),P.type&_.SMOOTH_QUAD_TO&&(P.type=_.QUAD_TO,B=isNaN(B)?k:B,$=isNaN($)?M:$,P.x1=P.relative?k-B:2*k-B,P.y1=P.relative?M-$:2*M-$),P.type&_.QUAD_TO?(B=P.relative?k+P.x1:P.x1,$=P.relative?M+P.y1:P.y1):(B=NaN,$=NaN),P})}function A(){var S=NaN,E=NaN;return w(function(B,$,P){if(B.type&_.SMOOTH_QUAD_TO&&(B.type=_.QUAD_TO,S=isNaN(S)?$:S,E=isNaN(E)?P:E,B.x1=B.relative?$-S:2*$-S,B.y1=B.relative?P-E:2*P-E),B.type&_.QUAD_TO){S=B.relative?$+B.x1:B.x1,E=B.relative?P+B.y1:B.y1;var k=B.x1,M=B.y1;B.type=_.CURVE_TO,B.x1=((B.relative?0:$)+2*k)/3,B.y1=((B.relative?0:P)+2*M)/3,B.x2=(B.x+2*k)/3,B.y2=(B.y+2*M)/3}else S=NaN,E=NaN;return B})}function w(S){var E=0,B=0,$=NaN,P=NaN;return function(k){if(isNaN($)&&!(k.type&_.MOVE_TO))throw new Error("path must start with moveto");var M=S(k,E,B,$,P);return k.type&_.CLOSE_PATH&&(E=$,B=P),k.x!==void 0&&(E=k.relative?E+k.x:k.x),k.y!==void 0&&(B=k.relative?B+k.y:k.y),k.type&_.MOVE_TO&&($=E,P=B),M}}function C(S,E,B,$,P,k){return a(S,E,B,$,P,k),w(function(M,R,F,L){var z=M.x1,U=M.x2,W=M.relative&&!isNaN(L),V=M.x!==void 0?M.x:W?0:R,Q=M.y!==void 0?M.y:W?0:F;function K(Ye){return Ye*Ye}M.type&_.HORIZ_LINE_TO&&E!==0&&(M.type=_.LINE_TO,M.y=M.relative?0:F),M.type&_.VERT_LINE_TO&&B!==0&&(M.type=_.LINE_TO,M.x=M.relative?0:R),M.x!==void 0&&(M.x=M.x*S+Q*B+(W?0:P)),M.y!==void 0&&(M.y=V*E+M.y*$+(W?0:k)),M.x1!==void 0&&(M.x1=M.x1*S+M.y1*B+(W?0:P)),M.y1!==void 0&&(M.y1=z*E+M.y1*$+(W?0:k)),M.x2!==void 0&&(M.x2=M.x2*S+M.y2*B+(W?0:P)),M.y2!==void 0&&(M.y2=U*E+M.y2*$+(W?0:k));var G=S*$-E*B;if(M.xRot!==void 0&&(S!==1||E!==0||B!==0||$!==1))if(G===0)delete M.rX,delete M.rY,delete M.xRot,delete M.lArcFlag,delete M.sweepFlag,M.type=_.LINE_TO;else{var X=M.xRot*Math.PI/180,J=Math.sin(X),re=Math.cos(X),fe=1/K(M.rX),Z=1/K(M.rY),ie=K(re)*fe+K(J)*Z,ce=2*J*re*(fe-Z),me=K(J)*fe+K(re)*Z,ne=ie*$*$-ce*E*$+me*E*E,te=ce*(S*$+E*B)-2*(ie*B*$+me*S*E),ue=ie*B*B-ce*S*B+me*S*S,ae=(Math.atan2(te,ne-ue)+Math.PI)%Math.PI/2,ye=Math.sin(ae),Oe=Math.cos(ae);M.rX=Math.abs(G)/Math.sqrt(ne*K(Oe)+te*ye*Oe+ue*K(ye)),M.rY=Math.abs(G)/Math.sqrt(ne*K(ye)-te*ye*Oe+ue*K(Oe)),M.xRot=180*ae/Math.PI}return M.sweepFlag!==void 0&&0>G&&(M.sweepFlag=+!M.sweepFlag),M})}function x(){return function(S){var E={};for(var B in S)E[B]=S[B];return E}}d.ROUND=function(S){function E(B){return Math.round(B*S)/S}return S===void 0&&(S=1e13),a(S),function(B){return B.x1!==void 0&&(B.x1=E(B.x1)),B.y1!==void 0&&(B.y1=E(B.y1)),B.x2!==void 0&&(B.x2=E(B.x2)),B.y2!==void 0&&(B.y2=E(B.y2)),B.x!==void 0&&(B.x=E(B.x)),B.y!==void 0&&(B.y=E(B.y)),B.rX!==void 0&&(B.rX=E(B.rX)),B.rY!==void 0&&(B.rY=E(B.rY)),B}},d.TO_ABS=g,d.TO_REL=function(){return w(function(S,E,B){return S.relative||(S.x1!==void 0&&(S.x1-=E),S.y1!==void 0&&(S.y1-=B),S.x2!==void 0&&(S.x2-=E),S.y2!==void 0&&(S.y2-=B),S.x!==void 0&&(S.x-=E),S.y!==void 0&&(S.y-=B),S.relative=!0),S})},d.NORMALIZE_HVZ=function(S,E,B){return S===void 0&&(S=!0),E===void 0&&(E=!0),B===void 0&&(B=!0),w(function($,P,k,M,R){if(isNaN(M)&&!($.type&_.MOVE_TO))throw new Error("path must start with moveto");return E&&$.type&_.HORIZ_LINE_TO&&($.type=_.LINE_TO,$.y=$.relative?0:k),B&&$.type&_.VERT_LINE_TO&&($.type=_.LINE_TO,$.x=$.relative?0:P),S&&$.type&_.CLOSE_PATH&&($.type=_.LINE_TO,$.x=$.relative?M-P:M,$.y=$.relative?R-k:R),$.type&_.ARC&&($.rX===0||$.rY===0)&&($.type=_.LINE_TO,delete $.rX,delete $.rY,delete $.xRot,delete $.lArcFlag,delete $.sweepFlag),$})},d.NORMALIZE_ST=b,d.QT_TO_C=A,d.INFO=w,d.SANITIZE=function(S){S===void 0&&(S=0),a(S);var E=NaN,B=NaN,$=NaN,P=NaN;return w(function(k,M,R,F,L){var z=Math.abs,U=!1,W=0,V=0;if(k.type&_.SMOOTH_CURVE_TO&&(W=isNaN(E)?0:M-E,V=isNaN(B)?0:R-B),k.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(E=k.relative?M+k.x2:k.x2,B=k.relative?R+k.y2:k.y2):(E=NaN,B=NaN),k.type&_.SMOOTH_QUAD_TO?($=isNaN($)?M:2*M-$,P=isNaN(P)?R:2*R-P):k.type&_.QUAD_TO?($=k.relative?M+k.x1:k.x1,P=k.relative?R+k.y1:k.y2):($=NaN,P=NaN),k.type&_.LINE_COMMANDS||k.type&_.ARC&&(k.rX===0||k.rY===0||!k.lArcFlag)||k.type&_.CURVE_TO||k.type&_.SMOOTH_CURVE_TO||k.type&_.QUAD_TO||k.type&_.SMOOTH_QUAD_TO){var Q=k.x===void 0?0:k.relative?k.x:k.x-M,K=k.y===void 0?0:k.relative?k.y:k.y-R;W=isNaN($)?k.x1===void 0?W:k.relative?k.x:k.x1-M:$-M,V=isNaN(P)?k.y1===void 0?V:k.relative?k.y:k.y1-R:P-R;var G=k.x2===void 0?0:k.relative?k.x:k.x2-M,X=k.y2===void 0?0:k.relative?k.y:k.y2-R;z(Q)<=S&&z(K)<=S&&z(W)<=S&&z(V)<=S&&z(G)<=S&&z(X)<=S&&(U=!0)}return k.type&_.CLOSE_PATH&&z(M-F)<=S&&z(R-L)<=S&&(U=!0),U?[]:k})},d.MATRIX=C,d.ROTATE=function(S,E,B){E===void 0&&(E=0),B===void 0&&(B=0),a(S,E,B);var $=Math.sin(S),P=Math.cos(S);return C(P,$,-$,P,E-E*P+B*$,B-E*$-B*P)},d.TRANSLATE=function(S,E){return E===void 0&&(E=0),a(S,E),C(1,0,0,1,S,E)},d.SCALE=function(S,E){return E===void 0&&(E=S),a(S,E),C(S,0,0,E,0,0)},d.SKEW_X=function(S){return a(S),C(1,0,Math.atan(S),1,0,0)},d.SKEW_Y=function(S){return a(S),C(1,Math.atan(S),0,1,0,0)},d.X_AXIS_SYMMETRY=function(S){return S===void 0&&(S=0),a(S),C(-1,0,0,1,S,0)},d.Y_AXIS_SYMMETRY=function(S){return S===void 0&&(S=0),a(S),C(1,0,0,-1,0,S)},d.A_TO_C=function(){return w(function(S,E,B){return _.ARC===S.type?function($,P,k){var M,R,F,L;$.cX||o($,P,k);for(var z=Math.min($.phi1,$.phi2),U=Math.max($.phi1,$.phi2)-z,W=Math.ceil(U/90),V=new Array(W),Q=P,K=k,G=0;G<W;G++){var X=c$1($.phi1,$.phi2,G/W),J=c$1($.phi1,$.phi2,(G+1)/W),re=J-X,fe=4/3*Math.tan(re*h/4),Z=[Math.cos(X*h)-fe*Math.sin(X*h),Math.sin(X*h)+fe*Math.cos(X*h)],ie=Z[0],ce=Z[1],me=[Math.cos(J*h),Math.sin(J*h)],ne=me[0],te=me[1],ue=[ne+fe*Math.sin(J*h),te-fe*Math.cos(J*h)],ae=ue[0],ye=ue[1];V[G]={relative:$.relative,type:_.CURVE_TO};var Oe=function(Ye,et){var ht=i([Ye*$.rX,et*$.rY],$.xRot),Te=ht[0],Le=ht[1];return[$.cX+Te,$.cY+Le]};M=Oe(ie,ce),V[G].x1=M[0],V[G].y1=M[1],R=Oe(ae,ye),V[G].x2=R[0],V[G].y2=R[1],F=Oe(ne,te),V[G].x=F[0],V[G].y=F[1],$.relative&&(V[G].x1-=Q,V[G].y1-=K,V[G].x2-=Q,V[G].y2-=K,V[G].x-=Q,V[G].y-=K),Q=(L=[V[G].x,V[G].y])[0],K=L[1]}return V}(S,S.relative?0:E,S.relative?0:B):S})},d.ANNOTATE_ARCS=function(){return w(function(S,E,B){return S.relative&&(E=0,B=0),_.ARC===S.type&&o(S,E,B),S})},d.CLONE=x,d.CALCULATE_BOUNDS=function(){var S=function(k){var M={};for(var R in k)M[R]=k[R];return M},E=g(),B=A(),$=b(),P=w(function(k,M,R){var F=$(B(E(S(k))));function L(ye){ye>P.maxX&&(P.maxX=ye),ye<P.minX&&(P.minX=ye)}function z(ye){ye>P.maxY&&(P.maxY=ye),ye<P.minY&&(P.minY=ye)}if(F.type&_.DRAWING_COMMANDS&&(L(M),z(R)),F.type&_.HORIZ_LINE_TO&&L(F.x),F.type&_.VERT_LINE_TO&&z(F.y),F.type&_.LINE_TO&&(L(F.x),z(F.y)),F.type&_.CURVE_TO){L(F.x),z(F.y);for(var U=0,W=p(M,F.x1,F.x2,F.x);U<W.length;U++)0<(ae=W[U])&&1>ae&&L(m$1(M,F.x1,F.x2,F.x,ae));for(var V=0,Q=p(R,F.y1,F.y2,F.y);V<Q.length;V++)0<(ae=Q[V])&&1>ae&&z(m$1(R,F.y1,F.y2,F.y,ae))}if(F.type&_.ARC){L(F.x),z(F.y),o(F,M,R);for(var K=F.xRot/180*Math.PI,G=Math.cos(K)*F.rX,X=Math.sin(K)*F.rX,J=-Math.sin(K)*F.rY,re=Math.cos(K)*F.rY,fe=F.phi1<F.phi2?[F.phi1,F.phi2]:-180>F.phi2?[F.phi2+360,F.phi1+360]:[F.phi2,F.phi1],Z=fe[0],ie=fe[1],ce=function(ye){var Oe=ye[0],Ye=ye[1],et=180*Math.atan2(Ye,Oe)/Math.PI;return et<Z?et+360:et},me=0,ne=s(J,-G,0).map(ce);me<ne.length;me++)(ae=ne[me])>Z&&ae<ie&&L(y(F.cX,G,J,ae));for(var te=0,ue=s(re,-X,0).map(ce);te<ue.length;te++){var ae;(ae=ue[te])>Z&&ae<ie&&z(y(F.cY,X,re,ae))}}return k});return P.minX=1/0,P.maxX=-1/0,P.minY=1/0,P.maxY=-1/0,P}})(u||(u={}));var O,l=function(){function d(){}return d.prototype.round=function(g){return this.transform(u.ROUND(g))},d.prototype.toAbs=function(){return this.transform(u.TO_ABS())},d.prototype.toRel=function(){return this.transform(u.TO_REL())},d.prototype.normalizeHVZ=function(g,b,A){return this.transform(u.NORMALIZE_HVZ(g,b,A))},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(g){return this.transform(u.SANITIZE(g))},d.prototype.translate=function(g,b){return this.transform(u.TRANSLATE(g,b))},d.prototype.scale=function(g,b){return this.transform(u.SCALE(g,b))},d.prototype.rotate=function(g,b,A){return this.transform(u.ROTATE(g,b,A))},d.prototype.matrix=function(g,b,A,w,C,x){return this.transform(u.MATRIX(g,b,A,w,C,x))},d.prototype.skewX=function(g){return this.transform(u.SKEW_X(g))},d.prototype.skewY=function(g){return this.transform(u.SKEW_Y(g))},d.prototype.xSymmetry=function(g){return this.transform(u.X_AXIS_SYMMETRY(g))},d.prototype.ySymmetry=function(g){return this.transform(u.Y_AXIS_SYMMETRY(g))},d.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},d}(),T=function(d){return d===" "||d===" "||d==="\r"||d===`
  2510. `},v=function(d){return"0".charCodeAt(0)<=d.charCodeAt(0)&&d.charCodeAt(0)<="9".charCodeAt(0)},f=function(d){function g(){var b=d.call(this)||this;return b.curNumber="",b.curCommandType=-1,b.curCommandRelative=!1,b.canParseCommandOrComma=!0,b.curNumberHasExp=!1,b.curNumberHasExpDigits=!1,b.curNumberHasDecimal=!1,b.curArgs=[],b}return r(g,d),g.prototype.finish=function(b){if(b===void 0&&(b=[]),this.parse(" ",b),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return b},g.prototype.parse=function(b,A){var w=this;A===void 0&&(A=[]);for(var C=function(P){A.push(P),w.curArgs.length=0,w.canParseCommandOrComma=!0},x=0;x<b.length;x++){var S=b[x],E=!(this.curCommandType!==_.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),B=v(S)&&(this.curNumber==="0"&&S==="0"||E);if(!v(S)||B)if(S!=="e"&&S!=="E")if(S!=="-"&&S!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(S!=="."||this.curNumberHasExp||this.curNumberHasDecimal||E){if(this.curNumber&&this.curCommandType!==-1){var $=Number(this.curNumber);if(isNaN($))throw new SyntaxError("Invalid number ending at "+x);if(this.curCommandType===_.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>$)throw new SyntaxError('Expected positive number, got "'+$+'" at index "'+x+'"')}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 "'+x+'"')}this.curArgs.push($),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?C({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:$}):_.VERT_LINE_TO===this.curCommandType?C({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:$}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(C({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?C({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?C({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?C({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&&C({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(S))if(S===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(S!=="+"&&S!=="-"&&S!==".")if(B)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+x+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+x+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,S!=="z"&&S!=="Z")if(S==="h"||S==="H")this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative=S==="h";else if(S==="v"||S==="V")this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative=S==="v";else if(S==="m"||S==="M")this.curCommandType=_.MOVE_TO,this.curCommandRelative=S==="m";else if(S==="l"||S==="L")this.curCommandType=_.LINE_TO,this.curCommandRelative=S==="l";else if(S==="c"||S==="C")this.curCommandType=_.CURVE_TO,this.curCommandRelative=S==="c";else if(S==="s"||S==="S")this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative=S==="s";else if(S==="q"||S==="Q")this.curCommandType=_.QUAD_TO,this.curCommandRelative=S==="q";else if(S==="t"||S==="T")this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative=S==="t";else{if(S!=="a"&&S!=="A")throw new SyntaxError('Unexpected character "'+S+'" at index '+x+".");this.curCommandType=_.ARC,this.curCommandRelative=S==="a"}else A.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=S,this.curNumberHasDecimal=S==="."}else this.curNumber+=S,this.curNumberHasDecimal=!0;else this.curNumber+=S;else this.curNumber+=S,this.curNumberHasExp=!0;else this.curNumber+=S,this.curNumberHasExpDigits=this.curNumberHasExp}return A},g.prototype.transform=function(b){return Object.create(this,{parse:{value:function(A,w){w===void 0&&(w=[]);for(var C=0,x=Object.getPrototypeOf(this).parse.call(this,A);C<x.length;C++){var S=x[C],E=b(S);Array.isArray(E)?w.push.apply(w,E):w.push(E)}return w}}})},g}(l),_=function(d){function g(b){var A=d.call(this)||this;return A.commands=typeof b=="string"?g.parse(b):b,A}return r(g,d),g.prototype.encode=function(){return g.encode(this.commands)},g.prototype.getBounds=function(){var b=u.CALCULATE_BOUNDS();return this.transform(b),b},g.prototype.transform=function(b){for(var A=[],w=0,C=this.commands;w<C.length;w++){var x=b(C[w]);Array.isArray(x)?A.push.apply(A,x):A.push(x)}return this.commands=A,this},g.encode=function(b){return e(b)},g.parse=function(b){var A=new f,w=[];return A.parse(b,w),A.finish(w),w},g.CLOSE_PATH=1,g.MOVE_TO=2,g.HORIZ_LINE_TO=4,g.VERT_LINE_TO=8,g.LINE_TO=16,g.CURVE_TO=32,g.SMOOTH_CURVE_TO=64,g.QUAD_TO=128,g.SMOOTH_QUAD_TO=256,g.ARC=512,g.LINE_COMMANDS=g.LINE_TO|g.HORIZ_LINE_TO|g.VERT_LINE_TO,g.DRAWING_COMMANDS=g.HORIZ_LINE_TO|g.VERT_LINE_TO|g.LINE_TO|g.CURVE_TO|g.SMOOTH_CURVE_TO|g.QUAD_TO|g.SMOOTH_QUAD_TO|g.ARC,g}(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(g){return typeof g}:_typeof=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof(d)}function _classCallCheck(d,g){if(!(d instanceof g))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,g,b,A,w){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 C=d.getContext("2d");try{return C.getImageData(g,b,A,w)}catch(x){throw new Error("unable to access image data: "+x)}}function processCanvasRGBA(d,g,b,A,w,C){if(!(isNaN(C)||C<1)){C|=0;var x=getImageDataFromCanvas(d,g,b,A,w);x=processImageDataRGBA(x,g,b,A,w,C),d.getContext("2d").putImageData(x,g,b)}}function processImageDataRGBA(d,g,b,A,w,C){for(var x=d.data,S=2*C+1,E=A-1,B=w-1,$=C+1,P=$*($+1)/2,k=new BlurStack,M=k,R,F=1;F<S;F++)M=M.next=new BlurStack,F===$&&(R=M);M.next=k;for(var L=null,z=null,U=0,W=0,V=mulTable[C],Q=shgTable[C],K=0;K<w;K++){M=k;for(var G=x[W],X=x[W+1],J=x[W+2],re=x[W+3],fe=0;fe<$;fe++)M.r=G,M.g=X,M.b=J,M.a=re,M=M.next;for(var Z=0,ie=0,ce=0,me=0,ne=$*G,te=$*X,ue=$*J,ae=$*re,ye=P*G,Oe=P*X,Ye=P*J,et=P*re,ht=1;ht<$;ht++){var Te=W+((E<ht?E:ht)<<2),Le=x[Te],Re=x[Te+1],$e=x[Te+2],qe=x[Te+3],rt=$-ht;ye+=(M.r=Le)*rt,Oe+=(M.g=Re)*rt,Ye+=(M.b=$e)*rt,et+=(M.a=qe)*rt,Z+=Le,ie+=Re,ce+=$e,me+=qe,M=M.next}L=k,z=R;for(var Xe=0;Xe<A;Xe++){var he=et*V>>Q;if(x[W+3]=he,he!==0){var we=255/he;x[W]=(ye*V>>Q)*we,x[W+1]=(Oe*V>>Q)*we,x[W+2]=(Ye*V>>Q)*we}else x[W]=x[W+1]=x[W+2]=0;ye-=ne,Oe-=te,Ye-=ue,et-=ae,ne-=L.r,te-=L.g,ue-=L.b,ae-=L.a;var Be=Xe+C+1;Be=U+(Be<E?Be:E)<<2,Z+=L.r=x[Be],ie+=L.g=x[Be+1],ce+=L.b=x[Be+2],me+=L.a=x[Be+3],ye+=Z,Oe+=ie,Ye+=ce,et+=me,L=L.next;var Ne=z,Se=Ne.r,q=Ne.g,se=Ne.b,ge=Ne.a;ne+=Se,te+=q,ue+=se,ae+=ge,Z-=Se,ie-=q,ce-=se,me-=ge,z=z.next,W+=4}U+=A}for(var de=0;de<A;de++){W=de<<2;var ve=x[W],Pe=x[W+1],De=x[W+2],Qe=x[W+3],ot=$*ve,st=$*Pe,ut=$*De,He=$*Qe,ct=P*ve,mt=P*Pe,_t=P*De,ft=P*Qe;M=k;for(var Ct=0;Ct<$;Ct++)M.r=ve,M.g=Pe,M.b=De,M.a=Qe,M=M.next;for(var pt=A,bt=0,be=0,Fe=0,We=0,it=1;it<=C;it++){W=pt+de<<2;var gt=$-it;ct+=(M.r=ve=x[W])*gt,mt+=(M.g=Pe=x[W+1])*gt,_t+=(M.b=De=x[W+2])*gt,ft+=(M.a=Qe=x[W+3])*gt,We+=ve,bt+=Pe,be+=De,Fe+=Qe,M=M.next,it<B&&(pt+=A)}W=de,L=k,z=R;for(var yt=0;yt<w;yt++){var Ae=W<<2;x[Ae+3]=Qe=ft*V>>Q,Qe>0?(Qe=255/Qe,x[Ae]=(ct*V>>Q)*Qe,x[Ae+1]=(mt*V>>Q)*Qe,x[Ae+2]=(_t*V>>Q)*Qe):x[Ae]=x[Ae+1]=x[Ae+2]=0,ct-=ot,mt-=st,_t-=ut,ft-=He,ot-=L.r,st-=L.g,ut-=L.b,He-=L.a,Ae=de+((Ae=yt+$)<B?Ae:B)*A<<2,ct+=We+=L.r=x[Ae],mt+=bt+=L.g=x[Ae+1],_t+=be+=L.b=x[Ae+2],ft+=Fe+=L.a=x[Ae+3],L=L.next,ot+=ve=z.r,st+=Pe=z.g,ut+=De=z.b,He+=Qe=z.a,We-=ve,bt-=Pe,be-=De,Fe-=Qe,z=z.next,W+=A}}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 g=d.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);return g?g.map(parseFloat):[]}function toMatrixValue(d){const g=toNumbers(d);return[g[0]||0,g[1]||0,g[2]||0,g[3]||0,g[4]||0,g[5]||0]}const allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(d){return allUppercase.test(d)?d.toLowerCase():d}function parseExternalUrl(d){const g=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(d);return g&&(g[2]||g[3]||g[4])||""}function normalizeColor(d){if(!d.startsWith("rgb"))return d;let g=3;return d.replace(/\d+(\.\d+)?/g,(A,w)=>g--&&w?String(Math.round(parseFloat(A))):A)}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,g){const b=g.exec(d);return b?[d.replace(g," "),b.length]:[d,0]}function getSelectorSpecificity(d){const g=[0,0,0];let b=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),A=0;return[b,A]=findSelectorMatch(b,attributeRegex),g[1]+=A,[b,A]=findSelectorMatch(b,idRegex),g[0]+=A,[b,A]=findSelectorMatch(b,classRegex),g[1]+=A,[b,A]=findSelectorMatch(b,pseudoElementRegex),g[2]+=A,[b,A]=findSelectorMatch(b,pseudoClassWithBracketsRegex),g[1]+=A,[b,A]=findSelectorMatch(b,pseudoClassRegex),g[1]+=A,b=b.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[b,A]=findSelectorMatch(b,elementRegex),g[2]+=A,g.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,g){return(d[0]*g[0]+d[1]*g[1])/(vectorMagnitude(d)*vectorMagnitude(g))}function vectorsAngle(d,g){return(d[0]*g[1]<d[1]*g[0]?-1:1)*Math.acos(vectorsRatio(d,g))}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(g){return new Property(g,"EMPTY","")}split(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ";const{document:b,name:A}=this;return compressSpaces(this.getString()).trim().split(g).map(w=>new Property(b,A,w))}hasValue(g){const b=this.value;return b!==null&&b!==""&&(g||b!==0)&&typeof b<"u"}isString(g){const{value:b}=this,A=typeof b=="string";return!A||!g?A:g.test(b)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;const g=this.getString();switch(!0){case g.endsWith("px"):case/^[0-9]+$/.test(g):return!0;default:return!1}}setValue(g){return this.value=g,this}getValue(g){return typeof g>"u"||this.hasValue()?this.value:g}getNumber(g){if(!this.hasValue())return typeof g>"u"?0:parseFloat(g);const{value:b}=this;let A=parseFloat(b);return this.isString(/%$/)&&(A/=100),A}getString(g){return typeof g>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(g)}getColor(g){let b=this.getString(g);return this.isNormalizedColor||(this.isNormalizedColor=!0,b=normalizeColor(b),this.value=b),b}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;const[A,w]=typeof g=="boolean"?[void 0,g]:[g],{viewPort:C}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(C.computeSize("x"),C.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(C.computeSize("x"),C.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*C.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*C.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(/%$/)&&w):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*C.computeSize(A);default:{const x=this.getNumber();return b&&x<1?x*C.computeSize(A):x}}}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 g=this.getString(),b=/#([^)'"]+)/.exec(g),A=(b==null?void 0:b[1])||g;return this.document.definitions[A]}getFillStyleDefinition(g,b){let A=this.getDefinition();if(!A)return null;if(typeof A.createGradient=="function"&&"getBoundingBox"in g)return A.createGradient(this.document.ctx,g,b);if(typeof A.createPattern=="function"){if(A.getHrefAttribute().hasValue()){const w=A.getAttribute("patternTransform");A=A.getHrefAttribute().getDefinition(),A&&w.hasValue()&&A.getAttribute("patternTransform",!0).setValue(w.value)}if(A)return A.createPattern(this.document.ctx,g,b)}return null}getTextBaseline(){if(!this.hasValue())return null;const g=this.getString();return Property.textBaselineMapping[g]||null}addOpacity(g){let b=this.getColor();const A=b.length;let w=0;for(let C=0;C<A&&(b[C]===","&&w++,w!==3);C++);if(g.hasValue()&&this.isString()&&w!==3){const C=new rgbcolor(b);C.ok&&(C.alpha=g.getNumber(),b=C.toRGBA())}return new Property(this.document,this.name,b)}constructor(g,b,A){this.document=g,this.name=b,this.value=A,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(g,b){this.viewPorts.push({width:g,height:b})}removeCurrent(){this.viewPorts.pop()}getRoot(){const[g]=this.viewPorts;return g||getDefault()}getCurrent(){const{viewPorts:g}=this,b=g[g.length-1];return b||getDefault()}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(g){return typeof g=="number"?g:g==="x"?this.width:g==="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(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const[A=b,w=b]=toNumbers(g);return new Point(A,w)}static parseScale(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const[A=b,w=A]=toNumbers(g);return new Point(A,w)}static parsePath(g){const b=toNumbers(g),A=b.length,w=[];for(let C=0;C<A;C+=2)w.push(new Point(b[C],b[C+1]));return w}angleTo(g){return Math.atan2(g.y-this.y,g.x-this.x)}applyTransform(g){const{x:b,y:A}=this,w=b*g[0]+A*g[2]+g[4],C=b*g[1]+A*g[3]+g[5];this.x=w,this.y=C}constructor(g,b){this.x=g,this.y=b}}class Mouse{isWorking(){return this.working}start(){if(this.working)return;const{screen:g,onClick:b,onMouseMove:A}=this,w=g.ctx.canvas;w.onclick=b,w.onmousemove=A,this.working=!0}stop(){if(!this.working)return;const g=this.screen.ctx.canvas;this.working=!1,g.onclick=null,g.onmousemove=null}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(!this.working)return;const{screen:g,events:b,eventElements:A}=this,{style:w}=g.ctx.canvas;let C;w&&(w.cursor=""),b.forEach((x,S)=>{let{run:E}=x;for(C=A[S];C;)E(C),C=C.parent}),this.events=[],this.eventElements=[]}checkPath(g,b){if(!this.working||!b)return;const{events:A,eventElements:w}=this;A.forEach((C,x)=>{let{x:S,y:E}=C;!w[x]&&b.isPointInPath&&b.isPointInPath(S,E)&&(w[x]=g)})}checkBoundingBox(g,b){if(!this.working||!b)return;const{events:A,eventElements:w}=this;A.forEach((C,x)=>{let{x:S,y:E}=C;!w[x]&&b.isPointInBox(S,E)&&(w[x]=g)})}mapXY(g,b){const{window:A,ctx:w}=this.screen,C=new Point(g,b);let x=w.canvas;for(;x;)C.x-=x.offsetLeft,C.y-=x.offsetTop,x=x.offsetParent;return A!=null&&A.scrollX&&(C.x+=A.scrollX),A!=null&&A.scrollY&&(C.y+=A.scrollY),C}onClick(g){const{x:b,y:A}=this.mapXY(g.clientX,g.clientY);this.events.push({type:"onclick",x:b,y:A,run(w){w.onClick&&w.onClick()}})}onMouseMove(g){const{x:b,y:A}=this.mapXY(g.clientX,g.clientY);this.events.push({type:"onmousemove",x:b,y:A,run(w){w.onMouseMove&&w.onMouseMove()}})}constructor(g){this.screen=g,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(g){this.waits.push(g)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;const g=this.waits.every(b=>b());return g&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=g,g}setDefaults(g){g.strokeStyle="rgba(0,0,0,0)",g.lineCap="butt",g.lineJoin="miter",g.miterLimit=4}setViewBox(g){let{document:b,ctx:A,aspectRatio:w,width:C,desiredWidth:x,height:S,desiredHeight:E,minX:B=0,minY:$=0,refX:P,refY:k,clip:M=!1,clipX:R=0,clipY:F=0}=g;const L=compressSpaces(w).replace(/^defer\s/,""),[z,U]=L.split(" "),W=z||"xMidYMid",V=U||"meet",Q=C/x,K=S/E,G=Math.min(Q,K),X=Math.max(Q,K);let J=x,re=E;V==="meet"&&(J*=G,re*=G),V==="slice"&&(J*=X,re*=X);const fe=new Property(b,"refX",P),Z=new Property(b,"refY",k),ie=fe.hasValue()&&Z.hasValue();if(ie&&A.translate(-G*fe.getPixels("x"),-G*Z.getPixels("y")),M){const ce=G*R,me=G*F;A.beginPath(),A.moveTo(ce,me),A.lineTo(C,me),A.lineTo(C,S),A.lineTo(ce,S),A.closePath(),A.clip()}if(!ie){const ce=V==="meet"&&G===K,me=V==="slice"&&X===K,ne=V==="meet"&&G===Q,te=V==="slice"&&X===Q;W.startsWith("xMid")&&(ce||me)&&A.translate(C/2-J/2,0),W.endsWith("YMid")&&(ne||te)&&A.translate(0,S/2-re/2),W.startsWith("xMax")&&(ce||me)&&A.translate(C-J,0),W.endsWith("YMax")&&(ne||te)&&A.translate(0,S-re)}switch(!0){case W==="none":A.scale(Q,K);break;case V==="meet":A.scale(G,G);break;case V==="slice":A.scale(X,X);break}A.translate(-B,-$)}start(g){let{enableRedraw:b=!1,ignoreMouse:A=!1,ignoreAnimation:w=!1,ignoreDimensions:C=!1,ignoreClear:x=!1,forceRedraw:S,scaleWidth:E,scaleHeight:B,offsetX:$,offsetY:P}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{mouse:k}=this,M=1e3/Screen.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=M,this.readyPromise=new Promise(U=>{this.resolveReady=U}),this.isReady()&&this.render(g,C,x,E,B,$,P),!b)return;let R=Date.now(),F=R,L=0;const z=()=>{R=Date.now(),L=R-F,L>=M&&(F=R-L%M,this.shouldUpdate(w,S)&&(this.render(g,C,x,E,B,$,P),k.runEvents())),this.intervalId=rafExports(z)};A||k.start(),this.intervalId=rafExports(z)}stop(){this.intervalId&&(rafExports.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(g,b){if(!g){const{frameDuration:A}=this;if(this.animations.reduce((C,x)=>x.update(A)||C,!1))return!0}return!!(typeof b=="function"&&b()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(g,b,A,w,C,x,S){const{viewPort:E,ctx:B,isFirstRender:$}=this,P=B.canvas;E.clear(),P.width&&P.height&&E.setCurrent(P.width,P.height);const k=g.getStyle("width"),M=g.getStyle("height");!b&&($||typeof w!="number"&&typeof C!="number")&&(k.hasValue()&&(P.width=k.getPixels("x"),P.style&&(P.style.width="".concat(P.width,"px"))),M.hasValue()&&(P.height=M.getPixels("y"),P.style&&(P.style.height="".concat(P.height,"px"))));let R=P.clientWidth||P.width,F=P.clientHeight||P.height;if(b&&k.hasValue()&&M.hasValue()&&(R=k.getPixels("x"),F=M.getPixels("y")),E.setCurrent(R,F),typeof x=="number"&&g.getAttribute("x",!0).setValue(x),typeof S=="number"&&g.getAttribute("y",!0).setValue(S),typeof w=="number"||typeof C=="number"){const L=toNumbers(g.getAttribute("viewBox").getString());let z=0,U=0;if(typeof w=="number"){const V=g.getStyle("width");V.hasValue()?z=V.getPixels("x")/w:L[2]&&!isNaN(L[2])&&(z=L[2]/w)}if(typeof C=="number"){const V=g.getStyle("height");V.hasValue()?U=V.getPixels("y")/C:L[3]&&!isNaN(L[3])&&(U=L[3]/C)}z||(z=U),U||(U=z),g.getAttribute("width",!0).setValue(w),g.getAttribute("height",!0).setValue(C);const W=g.getStyle("transform",!0,!0);W.setValue("".concat(W.getString()," scale(").concat(1/z,", ").concat(1/U,")"))}A||B.clearRect(0,0,R,F),g.render(B),$&&(this.isFirstRender=!1)}constructor(g,{fetch:b=defaultFetch$1,window:A=defaultWindow$2}={}){if(this.ctx=g,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=A,!b)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=b}}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(g){return g.startsWith("<")?this.parseFromString(g):this.load(g)}parseFromString(g){const b=new this.DOMParser;try{return this.checkDocument(b.parseFromString(g,"image/svg+xml"))}catch(A){return this.checkDocument(b.parseFromString(g,"text/xml"))}}checkDocument(g){const b=g.getElementsByTagName("parsererror")[0];if(b)throw new Error(b.textContent||"Unknown parse error");return g}async load(g){const A=await(await this.fetch(g)).text();return this.parseFromString(A)}constructor({fetch:g=defaultFetch,DOMParser:b=DefaultDOMParser}={}){if(!g)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!b)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=g,this.DOMParser=b}}class Translate{apply(g){const{x:b,y:A}=this.point;g.translate(b||0,A||0)}unapply(g){const{x:b,y:A}=this.point;g.translate(-1*b||0,-1*A||0)}applyToPoint(g){const{x:b,y:A}=this.point;g.applyTransform([1,0,0,1,b||0,A||0])}constructor(g,b){this.type="translate",this.point=Point.parse(b)}}class Rotate{apply(g){const{cx:b,cy:A,originX:w,originY:C,angle:x}=this,S=b+w.getPixels("x"),E=A+C.getPixels("y");g.translate(S,E),g.rotate(x.getRadians()),g.translate(-S,-E)}unapply(g){const{cx:b,cy:A,originX:w,originY:C,angle:x}=this,S=b+w.getPixels("x"),E=A+C.getPixels("y");g.translate(S,E),g.rotate(-1*x.getRadians()),g.translate(-S,-E)}applyToPoint(g){const{cx:b,cy:A,angle:w}=this,C=w.getRadians();g.applyTransform([1,0,0,1,b||0,A||0]),g.applyTransform([Math.cos(C),Math.sin(C),-Math.sin(C),Math.cos(C),0,0]),g.applyTransform([1,0,0,1,-b||0,-A||0])}constructor(g,b,A){this.type="rotate";const w=toNumbers(b);this.angle=new Property(g,"angle",w[0]),this.originX=A[0],this.originY=A[1],this.cx=w[1]||0,this.cy=w[2]||0}}class Scale{apply(g){const{scale:{x:b,y:A},originX:w,originY:C}=this,x=w.getPixels("x"),S=C.getPixels("y");g.translate(x,S),g.scale(b,A||b),g.translate(-x,-S)}unapply(g){const{scale:{x:b,y:A},originX:w,originY:C}=this,x=w.getPixels("x"),S=C.getPixels("y");g.translate(x,S),g.scale(1/b,1/A||b),g.translate(-x,-S)}applyToPoint(g){const{x:b,y:A}=this.scale;g.applyTransform([b||0,0,0,A||0,0,0])}constructor(g,b,A){this.type="scale";const w=Point.parseScale(b);(w.x===0||w.y===0)&&(w.x=PSEUDO_ZERO,w.y=PSEUDO_ZERO),this.scale=w,this.originX=A[0],this.originY=A[1]}}class Matrix{apply(g){const{originX:b,originY:A,matrix:w}=this,C=b.getPixels("x"),x=A.getPixels("y");g.translate(C,x),g.transform(w[0],w[1],w[2],w[3],w[4],w[5]),g.translate(-C,-x)}unapply(g){const{originX:b,originY:A,matrix:w}=this,C=w[0],x=w[2],S=w[4],E=w[1],B=w[3],$=w[5],P=0,k=0,M=1,R=1/(C*(B*M-$*k)-x*(E*M-$*P)+S*(E*k-B*P)),F=b.getPixels("x"),L=A.getPixels("y");g.translate(F,L),g.transform(R*(B*M-$*k),R*($*P-E*M),R*(S*k-x*M),R*(C*M-S*P),R*(x*$-S*B),R*(S*E-C*$)),g.translate(-F,-L)}applyToPoint(g){g.applyTransform(this.matrix)}constructor(g,b,A){this.type="matrix",this.matrix=toMatrixValue(b),this.originX=A[0],this.originY=A[1]}}class Skew extends Matrix{constructor(g,b,A){super(g,b,A),this.type="skew",this.angle=new Property(g,"angle",b)}}class SkewX extends Skew{constructor(g,b,A){super(g,b,A),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(g,b,A){super(g,b,A),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[g="",b=""]=d.split("(");return[g.trim(),b.trim().replace(")","")]}class Transform{static fromElement(g,b){const A=b.getStyle("transform",!1,!0);if(A.hasValue()){const[w,C=w]=b.getStyle("transform-origin",!1,!0).split();if(w&&C){const x=[w,C];return new Transform(g,A.getString(),x)}}return null}apply(g){this.transforms.forEach(b=>b.apply(g))}unapply(g){this.transforms.forEach(b=>b.unapply(g))}applyToPoint(g){this.transforms.forEach(b=>b.applyToPoint(g))}constructor(g,b,A){this.document=g,this.transforms=[],parseTransforms(b).forEach(C=>{if(C==="none")return;const[x,S]=parseTransform(C),E=Transform.transformTypes[x];E&&this.transforms.push(new E(this.document,S,A))})}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};let Element$1=class is{getAttribute(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const A=this.attributes[g];if(!A&&b){const w=new Property(this.document,g,"");return this.attributes[g]=w,w}return A||Property.empty(this.document)}getHrefAttribute(){let g;for(const b in this.attributes)if(b==="href"||b.endsWith(":href")){g=this.attributes[b];break}return g||Property.empty(this.document)}getStyle(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const w=this.styles[g];if(w)return w;const C=this.getAttribute(g);if(C.hasValue())return this.styles[g]=C,C;if(!A){const{parent:x}=this;if(x){const S=x.getStyle(g);if(S.hasValue())return S}}if(b){const x=new Property(this.document,g,"");return this.styles[g]=x,x}return Property.empty(this.document)}render(g){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(g.save(),this.getStyle("mask").hasValue()){const b=this.getStyle("mask").getDefinition();b&&(this.applyEffects(g),b.apply(g,this))}else if(this.getStyle("filter").getValue("none")!=="none"){const b=this.getStyle("filter").getDefinition();b&&(this.applyEffects(g),b.apply(g,this))}else this.setContext(g),this.renderChildren(g),this.clearContext(g);g.restore()}}setContext(g){}applyEffects(g){const b=Transform.fromElement(this.document,this);b&&b.apply(g);const A=this.getStyle("clip-path",!1,!0);if(A.hasValue()){const w=A.getDefinition();w&&w.apply(g)}}clearContext(g){}renderChildren(g){this.children.forEach(b=>{b.render(g)})}addChild(g){const b=g instanceof is?g:this.document.createElement(g);b.parent=this,is.ignoreChildTypes.includes(b.type)||this.children.push(b)}matchesSelector(g){var b;const{node:A}=this;if(typeof A.matches=="function")return A.matches(g);const w=(b=A.getAttribute)===null||b===void 0?void 0:b.call(A,"class");return!w||w===""?!1:w.split(" ").some(C=>".".concat(C)===g)}addStylesFromStyleDefinition(){const{styles:g,stylesSpecificity:b}=this.document;let A;for(const w in g)if(!w.startsWith("@")&&this.matchesSelector(w)){const C=g[w],x=b[w];if(C)for(const S in C){let E=this.stylesSpecificity[S];typeof E>"u"&&(E="000"),x&&x>=E&&(A=C[S],A&&(this.styles[S]=A),this.stylesSpecificity[S]=x)}}}removeStyles(g,b){return b.reduce((w,C)=>{const x=g.getStyle(C);if(!x.hasValue())return w;const S=x.getString();return x.setValue(""),[...w,[C,S]]},[])}restoreStyles(g,b){b.forEach(A=>{let[w,C]=A;g.getStyle(w,!0).setValue(C)})}isFirstChild(){var g;return((g=this.parent)===null||g===void 0?void 0:g.children.indexOf(this))===0}constructor(g,b,A=!1){if(this.document=g,this.node=b,this.captureTextNodes=A,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!b||b.nodeType!==1)return;Array.from(b.attributes).forEach(x=>{const S=normalizeAttributeName(x.nodeName);this.attributes[S]=new Property(g,S,x.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(S=>S.trim()).forEach(S=>{if(!S)return;const[E,B]=S.split(":").map($=>$.trim());E&&(this.styles[E]=new Property(g,E,B))});const{definitions:w}=g,C=this.getAttribute("id");C.hasValue()&&(w[C.getString()]||(w[C.getString()]=this)),Array.from(b.childNodes).forEach(x=>{if(x.nodeType===1)this.addChild(x);else if(A&&(x.nodeType===3||x.nodeType===4)){const S=g.createTextNode(x);S.getText().length>0&&this.addChild(S)}})}};Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(g,b,A){super(g,b,A)}}function wrapFontFamily(d){const g=d.trim();return/^('|")/.test(g)?g:'"'.concat(g,'"')}function prepareFontFamily(d){return typeof process>"u"?d:d.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(d){if(!d)return"";const g=d.trim().toLowerCase();switch(g){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return g;default:return/^oblique\s+(-|)\d+deg$/.test(g)?g:""}}function prepareFontWeight(d){if(!d)return"";const g=d.trim().toLowerCase();switch(g){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return g;default:return/^[\d.]+$/.test(g)?g:""}}class Font{static parse(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",b=arguments.length>1?arguments[1]:void 0,A="",w="",C="",x="",S="";const E=compressSpaces(g).trim().split(" "),B={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return E.forEach($=>{switch(!0){case(!B.fontStyle&&Font.styles.includes($)):$!=="inherit"&&(A=$),B.fontStyle=!0;break;case(!B.fontVariant&&Font.variants.includes($)):$!=="inherit"&&(w=$),B.fontStyle=!0,B.fontVariant=!0;break;case(!B.fontWeight&&Font.weights.includes($)):$!=="inherit"&&(C=$),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0;break;case!B.fontSize:$!=="inherit"&&(x=$.split("/")[0]||""),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0,B.fontSize=!0;break;default:$!=="inherit"&&(S+=$)}}),new Font(A,w,C,x,S,b)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}constructor(g,b,A,w,C,x){const S=x?typeof x=="string"?Font.parse(x):x:{};this.fontFamily=C||S.fontFamily,this.fontSize=w||S.fontSize,this.fontStyle=g||S.fontStyle,this.fontWeight=A||S.fontWeight,this.fontVariant=b||S.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(g,b){typeof g<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=g,this.x2=g),g<this.x1&&(this.x1=g),g>this.x2&&(this.x2=g)),typeof b<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=b,this.y2=b),b<this.y1&&(this.y1=b),b>this.y2&&(this.y2=b))}addX(g){this.addPoint(g,0)}addY(g){this.addPoint(0,g)}addBoundingBox(g){if(!g)return;const{x1:b,y1:A,x2:w,y2:C}=g;this.addPoint(b,A),this.addPoint(w,C)}sumCubic(g,b,A,w,C){return Math.pow(1-g,3)*b+3*Math.pow(1-g,2)*g*A+3*(1-g)*Math.pow(g,2)*w+Math.pow(g,3)*C}bezierCurveAdd(g,b,A,w,C){const x=6*b-12*A+6*w,S=-3*b+9*A-9*w+3*C,E=3*A-3*b;if(S===0){if(x===0)return;const k=-E/x;0<k&&k<1&&(g?this.addX(this.sumCubic(k,b,A,w,C)):this.addY(this.sumCubic(k,b,A,w,C)));return}const B=Math.pow(x,2)-4*E*S;if(B<0)return;const $=(-x+Math.sqrt(B))/(2*S);0<$&&$<1&&(g?this.addX(this.sumCubic($,b,A,w,C)):this.addY(this.sumCubic($,b,A,w,C)));const P=(-x-Math.sqrt(B))/(2*S);0<P&&P<1&&(g?this.addX(this.sumCubic(P,b,A,w,C)):this.addY(this.sumCubic(P,b,A,w,C)))}addBezierCurve(g,b,A,w,C,x,S,E){this.addPoint(g,b),this.addPoint(S,E),this.bezierCurveAdd(!0,g,A,C,S),this.bezierCurveAdd(!1,b,w,x,E)}addQuadraticCurve(g,b,A,w,C,x){const S=g+.6666666666666666*(A-g),E=b+2/3*(w-b),B=S+1/3*(C-g),$=E+1/3*(x-b);this.addBezierCurve(g,b,S,B,E,$,C,x)}isPointInBox(g,b){const{x1:A,y1:w,x2:C,y2:x}=this;return A<=g&&g<=C&&w<=b&&b<=x}constructor(g=Number.NaN,b=Number.NaN,A=Number.NaN,w=Number.NaN){this.x1=g,this.y1=b,this.x2=A,this.y2=w,this.addPoint(g,b),this.addPoint(A,w)}}class RenderedElement extends Element$1{calculateOpacity(){let g=1,b=this;for(;b;){const A=b.getStyle("opacity",!1,!0);A.hasValue(!0)&&(g*=A.getNumber()),b=b.parent}return g}setContext(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!b){const A=this.getStyle("fill"),w=this.getStyle("fill-opacity"),C=this.getStyle("stroke"),x=this.getStyle("stroke-opacity");if(A.isUrlDefinition()){const M=A.getFillStyleDefinition(this,w);M&&(g.fillStyle=M)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());const M=A.getColor();M!=="inherit"&&(g.fillStyle=M==="none"?"rgba(0,0,0,0)":M)}if(w.hasValue()){const M=new Property(this.document,"fill",g.fillStyle).addOpacity(w).getColor();g.fillStyle=M}if(C.isUrlDefinition()){const M=C.getFillStyleDefinition(this,x);M&&(g.strokeStyle=M)}else if(C.hasValue()){C.getString()==="currentColor"&&C.setValue(this.getStyle("color").getColor());const M=C.getString();M!=="inherit"&&(g.strokeStyle=M==="none"?"rgba(0,0,0,0)":M)}if(x.hasValue()){const M=new Property(this.document,"stroke",g.strokeStyle).addOpacity(x).getString();g.strokeStyle=M}const S=this.getStyle("stroke-width");if(S.hasValue()){const M=S.getPixels();g.lineWidth=M||PSEUDO_ZERO}const E=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),$=this.getStyle("stroke-miterlimit"),P=this.getStyle("stroke-dasharray"),k=this.getStyle("stroke-dashoffset");if(E.hasValue()&&(g.lineCap=E.getString()),B.hasValue()&&(g.lineJoin=B.getString()),$.hasValue()&&(g.miterLimit=$.getNumber()),P.hasValue()&&P.getString()!=="none"){const M=toNumbers(P.getString());typeof g.setLineDash<"u"?g.setLineDash(M):typeof g.webkitLineDash<"u"?g.webkitLineDash=M:typeof g.mozDash<"u"&&!(M.length===1&&M[0]===0)&&(g.mozDash=M);const R=k.getPixels();typeof g.lineDashOffset<"u"?g.lineDashOffset=R:typeof g.webkitLineDashOffset<"u"?g.webkitLineDashOffset=R:typeof g.mozDashOffset<"u"&&(g.mozDashOffset=R)}}if(this.modifiedEmSizeStack=!1,typeof g.font<"u"){const A=this.getStyle("font"),w=this.getStyle("font-style"),C=this.getStyle("font-variant"),x=this.getStyle("font-weight"),S=this.getStyle("font-size"),E=this.getStyle("font-family"),B=new Font(w.getString(),C.getString(),x.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",E.getString(),Font.parse(A.getString(),g.font));w.setValue(B.fontStyle),C.setValue(B.fontVariant),x.setValue(B.fontWeight),S.setValue(B.fontSize),E.setValue(B.fontFamily),g.font=B.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}b||(this.applyEffects(g),g.globalAlpha=this.calculateOpacity())}clearContext(g){super.clearContext(g),this.modifiedEmSizeStack&&this.document.popEmSize()}constructor(...g){super(...g),this.modifiedEmSizeStack=!1}}class TextElement extends RenderedElement{setContext(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(g,b);const A=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();A&&(g.textBaseline=A)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(g){if(this.type!=="text")return this.getTElementBoundingBox(g);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(g);let b=null;return this.children.forEach((A,w)=>{const C=this.getChildBoundingBox(g,this,this,w);b?b.addBoundingBox(C):b=C}),b}getFontSize(){const{document:g,parent:b}=this,A=Font.parse(g.ctx.font).fontSize;return b.getStyle("font-size").getNumber(A)}getTElementBoundingBox(g){const b=this.getFontSize();return new BoundingBox(this.x,this.y-b,this.x+this.measureText(g),this.y)}getGlyph(g,b,A){const w=b[A];let C;if(g.isArabic){var x;const S=b.length,E=b[A-1],B=b[A+1];let $="isolated";(A===0||E===" ")&&A<S-1&&B!==" "&&($="terminal"),A>0&&E!==" "&&A<S-1&&B!==" "&&($="medial"),A>0&&E!==" "&&(A===S-1||B===" ")&&($="initial"),C=((x=g.arabicGlyphs[w])===null||x===void 0?void 0:x[$])||g.glyphs[w]}else C=g.glyphs[w];return C||(C=g.missingGlyph),C}getText(){return""}getTextFromNode(g){const b=g||this.node,A=Array.from(b.parentNode.childNodes),w=A.indexOf(b),C=A.length-1;let x=compressSpaces(b.textContent||"");return w===0&&(x=trimLeft(x)),w===C&&(x=trimRight(x)),x}renderChildren(g){if(this.type!=="text"){this.renderTElementChildren(g);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(g),this.children.forEach((A,w)=>{this.renderChild(g,this,this,w)});const{mouse:b}=this.document.screen;b.isWorking()&&b.checkBoundingBox(this,this.getBoundingBox(g))}renderTElementChildren(g){const{document:b,parent:A}=this,w=this.getText(),C=A.getStyle("font-family").getDefinition();if(C){const{unitsPerEm:E}=C.fontFace,B=Font.parse(b.ctx.font),$=A.getStyle("font-size").getNumber(B.fontSize),P=A.getStyle("font-style").getString(B.fontStyle),k=$/E,M=C.isRTL?w.split("").reverse().join(""):w,R=toNumbers(A.getAttribute("dx").getString()),F=M.length;for(let L=0;L<F;L++){const z=this.getGlyph(C,M,L);g.translate(this.x,this.y),g.scale(k,-k);const U=g.lineWidth;g.lineWidth=g.lineWidth*E/$,P==="italic"&&g.transform(1,0,.4,1,0,0),z.render(g),P==="italic"&&g.transform(1,0,-.4,1,0,0),g.lineWidth=U,g.scale(1/k,-1/k),g.translate(-this.x,-this.y),this.x+=$*(z.horizAdvX||C.horizAdvX)/E,typeof R[L]<"u"&&!isNaN(R[L])&&(this.x+=R[L])}return}const{x,y:S}=this;g.fillStyle&&g.fillText(w,x,S),g.strokeStyle&&g.strokeText(w,x,S)}applyAnchoring(){if(this.textChunkStart>=this.leafTexts.length)return;const g=this.leafTexts[this.textChunkStart],b=g.getStyle("text-anchor").getString("start"),A=!1;let w=0;b==="start"&&!A||b==="end"&&A?w=g.x-this.minX:b==="end"&&!A||b==="start"&&A?w=g.x-this.maxX:w=g.x-(this.minX+this.maxX)/2;for(let C=this.textChunkStart;C<this.leafTexts.length;C++)this.leafTexts[C].x+=w;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}adjustChildCoordinatesRecursive(g){this.children.forEach((b,A)=>{this.adjustChildCoordinatesRecursiveCore(g,this,this,A)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(g,b,A,w){const C=A.children[w];C.children.length>0?C.children.forEach((x,S)=>{b.adjustChildCoordinatesRecursiveCore(g,b,C,S)}):this.adjustChildCoordinates(g,b,A,w)}adjustChildCoordinates(g,b,A,w){const C=A.children[w];if(typeof C.measureText!="function")return C;g.save(),C.setContext(g,!0);const x=C.getAttribute("x"),S=C.getAttribute("y"),E=C.getAttribute("dx"),B=C.getAttribute("dy"),$=C.getStyle("font-family").getDefinition(),P=!!($!=null&&$.isRTL);w===0&&(x.hasValue()||x.setValue(C.getInheritedAttribute("x")),S.hasValue()||S.setValue(C.getInheritedAttribute("y")),E.hasValue()||E.setValue(C.getInheritedAttribute("dx")),B.hasValue()||B.setValue(C.getInheritedAttribute("dy")));const k=C.measureText(g);return P&&(b.x-=k),x.hasValue()?(b.applyAnchoring(),C.x=x.getPixels("x"),E.hasValue()&&(C.x+=E.getPixels("x"))):(E.hasValue()&&(b.x+=E.getPixels("x")),C.x=b.x),b.x=C.x,P||(b.x+=k),S.hasValue()?(C.y=S.getPixels("y"),B.hasValue()&&(C.y+=B.getPixels("y"))):(B.hasValue()&&(b.y+=B.getPixels("y")),C.y=b.y),b.y=C.y,b.leafTexts.push(C),b.minX=Math.min(b.minX,C.x,C.x+k),b.maxX=Math.max(b.maxX,C.x,C.x+k),C.clearContext(g),g.restore(),C}getChildBoundingBox(g,b,A,w){const C=A.children[w];if(typeof C.getBoundingBox!="function")return null;const x=C.getBoundingBox(g);return x&&C.children.forEach((S,E)=>{const B=b.getChildBoundingBox(g,b,C,E);x.addBoundingBox(B)}),x}renderChild(g,b,A,w){const C=A.children[w];C.render(g),C.children.forEach((x,S)=>{b.renderChild(g,b,C,S)})}measureText(g){const{measureCache:b}=this;if(~b)return b;const A=this.getText(),w=this.measureTargetText(g,A);return this.measureCache=w,w}measureTargetText(g,b){if(!b.length)return 0;const{parent:A}=this,w=A.getStyle("font-family").getDefinition();if(w){const x=this.getFontSize(),S=w.isRTL?b.split("").reverse().join(""):b,E=toNumbers(A.getAttribute("dx").getString()),B=S.length;let $=0;for(let P=0;P<B;P++){const k=this.getGlyph(w,S,P);$+=(k.horizAdvX||w.horizAdvX)*x/w.fontFace.unitsPerEm,typeof E[P]<"u"&&!isNaN(E[P])&&($+=E[P])}return $}if(!g.measureText)return b.length*10;g.save(),this.setContext(g,!0);const{width:C}=g.measureText(b);return this.clearContext(g),g.restore(),C}getInheritedAttribute(g){let b=this;for(;b instanceof TextElement&&b.isFirstChild()&&b.parent;){const A=b.parent.getAttribute(g);if(A.hasValue(!0))return A.getString("0");b=b.parent}return null}constructor(g,b,A){super(g,b,new.target===TextElement?!0:A),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(g,b,A){super(g,b,new.target===TSpanElement?!0:A),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}}class TextNode extends TSpanElement{constructor(...g){super(...g),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:g,commands:b}=this;return g>=b.length-1}next(){const g=this.commands[++this.i];return this.previousCommand=this.command,this.command=g,g}getPoint(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";const A=new Point(this.command[g],this.command[b]);return this.makeAbsolute(A)}getAsControlPoint(g,b){const A=this.getPoint(g,b);return this.control=A,A}getAsCurrentPoint(g,b){const A=this.getPoint(g,b);return this.current=A,A}getReflectedControlPoint(){const g=this.previousCommand.type;if(g!==_.CURVE_TO&&g!==_.SMOOTH_CURVE_TO&&g!==_.QUAD_TO&&g!==_.SMOOTH_QUAD_TO)return this.current;const{current:{x:b,y:A},control:{x:w,y:C}}=this;return new Point(2*b-w,2*A-C)}makeAbsolute(g){if(this.command.relative){const{x:b,y:A}=this.current;g.x+=b,g.y+=A}return g}addMarker(g,b,A){const{points:w,angles:C}=this;A&&C.length>0&&!C[C.length-1]&&(C[C.length-1]=w[w.length-1].angleTo(A)),this.addMarkerAngle(g,b?b.angleTo(g):null)}addMarkerAngle(g,b){this.points.push(g),this.angles.push(b)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:g}=this,b=g.length;for(let A=0;A<b;A++)if(!g[A]){for(let w=A+1;w<b;w++)if(g[w]){g[A]=g[w];break}}return g}constructor(g){super(g.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(g){const{pathParser:b}=this,A=new BoundingBox;for(b.reset(),g&&g.beginPath();!b.isEnd();)switch(b.next().type){case PathParser.MOVE_TO:this.pathM(g,A);break;case PathParser.LINE_TO:this.pathL(g,A);break;case PathParser.HORIZ_LINE_TO:this.pathH(g,A);break;case PathParser.VERT_LINE_TO:this.pathV(g,A);break;case PathParser.CURVE_TO:this.pathC(g,A);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(g,A);break;case PathParser.QUAD_TO:this.pathQ(g,A);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(g,A);break;case PathParser.ARC:this.pathA(g,A);break;case PathParser.CLOSE_PATH:this.pathZ(g,A);break}return A}getBoundingBox(g){return this.path()}getMarkers(){const{pathParser:g}=this,b=g.getMarkerPoints(),A=g.getMarkerAngles();return b.map((C,x)=>[C,A[x]])}renderChildren(g){this.path(g),this.document.screen.mouse.checkPath(this,g);const b=this.getStyle("fill-rule");g.fillStyle!==""&&(b.getString("inherit")!=="inherit"?g.fill(b.getString()):g.fill()),g.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(g.save(),g.setTransform(1,0,0,1,0,0),g.stroke(),g.restore()):g.stroke());const A=this.getMarkers();if(A){const w=A.length-1,C=this.getStyle("marker-start"),x=this.getStyle("marker-mid"),S=this.getStyle("marker-end");if(C.isUrlDefinition()){const E=C.getDefinition(),[B,$]=A[0];E.render(g,B,$)}if(x.isUrlDefinition()){const E=x.getDefinition();for(let B=1;B<w;B++){const[$,P]=A[B];E.render(g,$,P)}}if(S.isUrlDefinition()){const E=S.getDefinition(),[B,$]=A[w];E.render(g,B,$)}}}static pathM(g){const b=g.getAsCurrentPoint();return g.start=g.current,{point:b}}pathM(g,b){const{pathParser:A}=this,{point:w}=PathElement.pathM(A),{x:C,y:x}=w;A.addMarker(w),b.addPoint(C,x),g&&g.moveTo(C,x)}static pathL(g){const{current:b}=g,A=g.getAsCurrentPoint();return{current:b,point:A}}pathL(g,b){const{pathParser:A}=this,{current:w,point:C}=PathElement.pathL(A),{x,y:S}=C;A.addMarker(C,w),b.addPoint(x,S),g&&g.lineTo(x,S)}static pathH(g){const{current:b,command:A}=g,w=new Point((A.relative?b.x:0)+A.x,b.y);return g.current=w,{current:b,point:w}}pathH(g,b){const{pathParser:A}=this,{current:w,point:C}=PathElement.pathH(A),{x,y:S}=C;A.addMarker(C,w),b.addPoint(x,S),g&&g.lineTo(x,S)}static pathV(g){const{current:b,command:A}=g,w=new Point(b.x,(A.relative?b.y:0)+A.y);return g.current=w,{current:b,point:w}}pathV(g,b){const{pathParser:A}=this,{current:w,point:C}=PathElement.pathV(A),{x,y:S}=C;A.addMarker(C,w),b.addPoint(x,S),g&&g.lineTo(x,S)}static pathC(g){const{current:b}=g,A=g.getPoint("x1","y1"),w=g.getAsControlPoint("x2","y2"),C=g.getAsCurrentPoint();return{current:b,point:A,controlPoint:w,currentPoint:C}}pathC(g,b){const{pathParser:A}=this,{current:w,point:C,controlPoint:x,currentPoint:S}=PathElement.pathC(A);A.addMarker(S,x,C),b.addBezierCurve(w.x,w.y,C.x,C.y,x.x,x.y,S.x,S.y),g&&g.bezierCurveTo(C.x,C.y,x.x,x.y,S.x,S.y)}static pathS(g){const{current:b}=g,A=g.getReflectedControlPoint(),w=g.getAsControlPoint("x2","y2"),C=g.getAsCurrentPoint();return{current:b,point:A,controlPoint:w,currentPoint:C}}pathS(g,b){const{pathParser:A}=this,{current:w,point:C,controlPoint:x,currentPoint:S}=PathElement.pathS(A);A.addMarker(S,x,C),b.addBezierCurve(w.x,w.y,C.x,C.y,x.x,x.y,S.x,S.y),g&&g.bezierCurveTo(C.x,C.y,x.x,x.y,S.x,S.y)}static pathQ(g){const{current:b}=g,A=g.getAsControlPoint("x1","y1"),w=g.getAsCurrentPoint();return{current:b,controlPoint:A,currentPoint:w}}pathQ(g,b){const{pathParser:A}=this,{current:w,controlPoint:C,currentPoint:x}=PathElement.pathQ(A);A.addMarker(x,C,C),b.addQuadraticCurve(w.x,w.y,C.x,C.y,x.x,x.y),g&&g.quadraticCurveTo(C.x,C.y,x.x,x.y)}static pathT(g){const{current:b}=g,A=g.getReflectedControlPoint();g.control=A;const w=g.getAsCurrentPoint();return{current:b,controlPoint:A,currentPoint:w}}pathT(g,b){const{pathParser:A}=this,{current:w,controlPoint:C,currentPoint:x}=PathElement.pathT(A);A.addMarker(x,C,C),b.addQuadraticCurve(w.x,w.y,C.x,C.y,x.x,x.y),g&&g.quadraticCurveTo(C.x,C.y,x.x,x.y)}static pathA(g){const{current:b,command:A}=g;let{rX:w,rY:C,xRot:x,lArcFlag:S,sweepFlag:E}=A;const B=x*(Math.PI/180),$=g.getAsCurrentPoint(),P=new Point(Math.cos(B)*(b.x-$.x)/2+Math.sin(B)*(b.y-$.y)/2,-Math.sin(B)*(b.x-$.x)/2+Math.cos(B)*(b.y-$.y)/2),k=Math.pow(P.x,2)/Math.pow(w,2)+Math.pow(P.y,2)/Math.pow(C,2);k>1&&(w*=Math.sqrt(k),C*=Math.sqrt(k));let M=(S===E?-1:1)*Math.sqrt((Math.pow(w,2)*Math.pow(C,2)-Math.pow(w,2)*Math.pow(P.y,2)-Math.pow(C,2)*Math.pow(P.x,2))/(Math.pow(w,2)*Math.pow(P.y,2)+Math.pow(C,2)*Math.pow(P.x,2)));isNaN(M)&&(M=0);const R=new Point(M*w*P.y/C,M*-C*P.x/w),F=new Point((b.x+$.x)/2+Math.cos(B)*R.x-Math.sin(B)*R.y,(b.y+$.y)/2+Math.sin(B)*R.x+Math.cos(B)*R.y),L=vectorsAngle([1,0],[(P.x-R.x)/w,(P.y-R.y)/C]),z=[(P.x-R.x)/w,(P.y-R.y)/C],U=[(-P.x-R.x)/w,(-P.y-R.y)/C];let W=vectorsAngle(z,U);return vectorsRatio(z,U)<=-1&&(W=Math.PI),vectorsRatio(z,U)>=1&&(W=0),{currentPoint:$,rX:w,rY:C,sweepFlag:E,xAxisRotation:B,centp:F,a1:L,ad:W}}pathA(g,b){const{pathParser:A}=this,{currentPoint:w,rX:C,rY:x,sweepFlag:S,xAxisRotation:E,centp:B,a1:$,ad:P}=PathElement.pathA(A),k=1-S?1:-1,M=$+k*(P/2),R=new Point(B.x+C*Math.cos(M),B.y+x*Math.sin(M));if(A.addMarkerAngle(R,M-k*Math.PI/2),A.addMarkerAngle(w,M-k*Math.PI),b.addPoint(w.x,w.y),g&&!isNaN($)&&!isNaN(P)){const F=C>x?C:x,L=C>x?1:C/x,z=C>x?x/C:1;g.translate(B.x,B.y),g.rotate(E),g.scale(L,z),g.arc(0,0,F,$,$+P,!!(1-S)),g.scale(1/L,1/z),g.rotate(-E),g.translate(-B.x,-B.y)}}static pathZ(g){g.current=g.start}pathZ(g,b){PathElement.pathZ(this.pathParser),g&&b.x1!==b.x2&&b.y1!==b.y2&&g.closePath()}constructor(g,b,A){super(g,b,A),this.type="path",this.pathParser=new PathParser(this.getAttribute("d").getString())}}let SVGElement$1=class extends RenderedElement{setContext(g){var b;const{document:A}=this,{screen:w,window:C}=A,x=g.canvas;if(w.setDefaults(g),"style"in x&&typeof g.font<"u"&&C&&typeof C.getComputedStyle<"u"){g.font=C.getComputedStyle(x).getPropertyValue("font");const U=new Property(A,"fontSize",Font.parse(g.font).fontSize);U.hasValue()&&(A.rootEmSize=U.getPixels("y"),A.emSize=A.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);let{width:S,height:E}=w.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"),$=this.getAttribute("refY"),P=this.getAttribute("viewBox"),k=P.hasValue()?toNumbers(P.getString()):null,M=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible";let R=0,F=0,L=0,z=0;k&&(R=k[0],F=k[1]),this.root||(S=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y"),this.type==="marker"&&(L=R,z=F,R=0,F=0)),w.viewPort.setCurrent(S,E),this.node&&(!this.parent||((b=this.node.parentNode)===null||b===void 0?void 0:b.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(g),g.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),k&&(S=k[2],E=k[3]),A.setViewBox({ctx:g,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w.viewPort.width,desiredWidth:S,height:w.viewPort.height,desiredHeight:E,minX:R,minY:F,refX:B.getValue(),refY:$.getValue(),clip:M,clipX:L,clipY:z}),k&&(w.viewPort.removeCurrent(),w.viewPort.setCurrent(S,E))}clearContext(g){super.clearContext(g),this.document.screen.viewPort.removeCurrent()}resize(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const w=this.getAttribute("width",!0),C=this.getAttribute("height",!0),x=this.getAttribute("viewBox"),S=this.getAttribute("style"),E=w.getNumber(0),B=C.getNumber(0);if(A)if(typeof A=="string")this.getAttribute("preserveAspectRatio",!0).setValue(A);else{const $=this.getAttribute("preserveAspectRatio");$.hasValue()&&$.setValue($.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(w.setValue(g),C.setValue(b),x.hasValue()||x.setValue("0 0 ".concat(E||g," ").concat(B||b)),S.hasValue()){const $=this.getStyle("width"),P=this.getStyle("height");$.hasValue()&&$.setValue("".concat(g,"px")),P.hasValue()&&P.setValue("".concat(b,"px"))}}constructor(...g){super(...g),this.type="svg",this.root=!1}};class RectElement extends PathElement{path(g){const b=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),w=this.getStyle("width",!1,!0).getPixels("x"),C=this.getStyle("height",!1,!0).getPixels("y"),x=this.getAttribute("rx"),S=this.getAttribute("ry");let E=x.getPixels("x"),B=S.getPixels("y");if(x.hasValue()&&!S.hasValue()&&(B=E),S.hasValue()&&!x.hasValue()&&(E=B),E=Math.min(E,w/2),B=Math.min(B,C/2),g){const $=4*((Math.sqrt(2)-1)/3);g.beginPath(),C>0&&w>0&&(g.moveTo(b+E,A),g.lineTo(b+w-E,A),g.bezierCurveTo(b+w-E+$*E,A,b+w,A+B-$*B,b+w,A+B),g.lineTo(b+w,A+C-B),g.bezierCurveTo(b+w,A+C-B+$*B,b+w-E+$*E,A+C,b+w-E,A+C),g.lineTo(b+E,A+C),g.bezierCurveTo(b+E-$*E,A+C,b,A+C-B+$*B,b,A+C-B),g.lineTo(b,A+B),g.bezierCurveTo(b,A+B-$*B,b+E-$*E,A,b+E,A),g.closePath())}return new BoundingBox(b,A,b+w,A+C)}getMarkers(){return null}constructor(...g){super(...g),this.type="rect"}}class CircleElement extends PathElement{path(g){const b=this.getAttribute("cx").getPixels("x"),A=this.getAttribute("cy").getPixels("y"),w=this.getAttribute("r").getPixels();return g&&w>0&&(g.beginPath(),g.arc(b,A,w,0,Math.PI*2,!1),g.closePath()),new BoundingBox(b-w,A-w,b+w,A+w)}getMarkers(){return null}constructor(...g){super(...g),this.type="circle"}}class EllipseElement extends PathElement{path(g){const b=4*((Math.sqrt(2)-1)/3),A=this.getAttribute("rx").getPixels("x"),w=this.getAttribute("ry").getPixels("y"),C=this.getAttribute("cx").getPixels("x"),x=this.getAttribute("cy").getPixels("y");return g&&A>0&&w>0&&(g.beginPath(),g.moveTo(C+A,x),g.bezierCurveTo(C+A,x+b*w,C+b*A,x+w,C,x+w),g.bezierCurveTo(C-b*A,x+w,C-A,x+b*w,C-A,x),g.bezierCurveTo(C-A,x-b*w,C-b*A,x-w,C,x-w),g.bezierCurveTo(C+b*A,x-w,C+A,x-b*w,C+A,x),g.closePath()),new BoundingBox(C-A,x-w,C+A,x+w)}getMarkers(){return null}constructor(...g){super(...g),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(g){const[{x:b,y:A},{x:w,y:C}]=this.getPoints();return g&&(g.beginPath(),g.moveTo(b,A),g.lineTo(w,C)),new BoundingBox(b,A,w,C)}getMarkers(){const[g,b]=this.getPoints(),A=g.angleTo(b);return[[g,A],[b,A]]}constructor(...g){super(...g),this.type="line"}}class PolylineElement extends PathElement{path(g){const{points:b}=this,[{x:A,y:w}]=b,C=new BoundingBox(A,w);return g&&(g.beginPath(),g.moveTo(A,w)),b.forEach(x=>{let{x:S,y:E}=x;C.addPoint(S,E),g&&g.lineTo(S,E)}),C}getMarkers(){const{points:g}=this,b=g.length-1,A=[];return g.forEach((w,C)=>{C!==b&&A.push([w,w.angleTo(g[C+1])])}),A.length>0&&A.push([g[g.length-1],A[A.length-1][1]]),A}constructor(g,b,A){super(g,b,A),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}}class PolygonElement extends PolylineElement{path(g){const b=super.path(g),[{x:A,y:w}]=this.points;return g&&(g.lineTo(A,w),g.closePath()),b}constructor(...g){super(...g),this.type="polygon"}}class PatternElement extends Element$1{createPattern(g,b,A){const w=this.getStyle("width").getPixels("x",!0),C=this.getStyle("height").getPixels("y",!0),x=new SVGElement$1(this.document,null);x.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),x.attributes.width=new Property(this.document,"width","".concat(w,"px")),x.attributes.height=new Property(this.document,"height","".concat(C,"px")),x.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),x.children=this.children;const S=this.document.createCanvas(w,C),E=S.getContext("2d"),B=this.getAttribute("x"),$=this.getAttribute("y");B.hasValue()&&$.hasValue()&&E.translate(B.getPixels("x",!0),$.getPixels("y",!0)),A.hasValue()?this.styles["fill-opacity"]=A:Reflect.deleteProperty(this.styles,"fill-opacity");for(let k=-1;k<=1;k++)for(let M=-1;M<=1;M++)E.save(),x.attributes.x=new Property(this.document,"x",k*S.width),x.attributes.y=new Property(this.document,"y",M*S.height),x.render(E),E.restore();return g.createPattern(S,"repeat")}constructor(...g){super(...g),this.type="pattern"}}class MarkerElement extends Element$1{render(g,b,A){if(!b)return;const{x:w,y:C}=b,x=this.getAttribute("orient").getString("auto"),S=this.getAttribute("markerUnits").getString("strokeWidth");g.translate(w,C),x==="auto"&&g.rotate(A),S==="strokeWidth"&&g.scale(g.lineWidth,g.lineWidth),g.save();const E=new SVGElement$1(this.document);E.type=this.type,E.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(g),g.restore(),S==="strokeWidth"&&g.scale(1/g.lineWidth,1/g.lineWidth),x==="auto"&&g.rotate(-A),g.translate(-w,-C)}constructor(...g){super(...g),this.type="marker"}}class DefsElement extends Element$1{render(){}constructor(...g){super(...g),this.type="defs"}}class GElement extends RenderedElement{getBoundingBox(g){const b=new BoundingBox;return this.children.forEach(A=>{b.addBoundingBox(A.getBoundingBox(g))}),b}constructor(...g){super(...g),this.type="g"}}class GradientElement extends Element$1{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(g,b,A){let w=this;this.getHrefAttribute().hasValue()&&(w=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(w));const{stops:C}=w,x=this.getGradient(g,b);if(!x)return this.addParentOpacity(A,C[C.length-1].color);if(C.forEach(S=>{x.addColorStop(S.offset,this.addParentOpacity(A,S.color))}),this.getAttribute("gradientTransform").hasValue()){const{document:S}=this,{MAX_VIRTUAL_PIXELS:E}=Screen,{viewPort:B}=S.screen,$=B.getRoot(),P=new RectElement(S);P.attributes.x=new Property(S,"x",-E/3),P.attributes.y=new Property(S,"y",-E/3),P.attributes.width=new Property(S,"width",E),P.attributes.height=new Property(S,"height",E);const k=new GElement(S);k.attributes.transform=new Property(S,"transform",this.getAttribute("gradientTransform").getValue()),k.children=[P];const M=new SVGElement$1(S);M.attributes.x=new Property(S,"x",0),M.attributes.y=new Property(S,"y",0),M.attributes.width=new Property(S,"width",$.width),M.attributes.height=new Property(S,"height",$.height),M.children=[k];const R=S.createCanvas($.width,$.height),F=R.getContext("2d");return F.fillStyle=x,M.render(F),F.createPattern(R,"no-repeat")}return x}inheritStopContainer(g){this.attributesToInherit.forEach(b=>{!this.getAttribute(b).hasValue()&&g.getAttribute(b).hasValue()&&this.getAttribute(b,!0).setValue(g.getAttribute(b).getValue())})}addParentOpacity(g,b){return g.hasValue()?new Property(this.document,"color",b).addOpacity(g).getColor():b}constructor(g,b,A){super(g,b,A),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:w,children:C}=this;C.forEach(x=>{x.type==="stop"&&w.push(x)})}}class LinearGradientElement extends GradientElement{getGradient(g,b){const A=this.getGradientUnits()==="objectBoundingBox",w=A?b.getBoundingBox(g):null;if(A&&!w)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 C=A?w.x+w.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),x=A?w.y+w.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),S=A?w.x+w.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=A?w.y+w.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return C===S&&x===E?null:g.createLinearGradient(C,x,S,E)}constructor(g,b,A){super(g,b,A),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class RadialGradientElement extends GradientElement{getGradient(g,b){const A=this.getGradientUnits()==="objectBoundingBox",w=b.getBoundingBox(g);if(A&&!w)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 C=A?w.x+w.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),x=A?w.y+w.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y");let S=C,E=x;this.getAttribute("fx").hasValue()&&(S=A?w.x+w.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=A?w.y+w.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const B=A?(w.width+w.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),$=this.getAttribute("fr").getPixels();return g.createRadialGradient(S,E,$,C,x,B)}constructor(g,b,A){super(g,b,A),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class StopElement extends Element$1{constructor(g,b,A){super(g,b,A),this.type="stop";const w=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),C=this.getStyle("stop-opacity");let x=this.getStyle("stop-color",!0);x.getString()===""&&x.setValue("#000"),C.hasValue()&&(x=x.addOpacity(C)),this.offset=w,this.color=x.getColor()}}class AnimateElement extends Element$1{getProperty(){const g=this.getAttribute("attributeType").getString(),b=this.getAttribute("attributeName").getString();return g==="CSS"?this.parent.getStyle(b,!0):this.parent.getAttribute(b,!0)}calcValue(){const{initialUnits:g}=this,{progress:b,from:A,to:w}=this.getProgress();let C=A.getNumber()+(w.getNumber()-A.getNumber())*b;return g==="%"&&(C*=100),"".concat(C).concat(g)}update(g){const{parent:b}=this,A=this.getProperty();if(this.initialValue||(this.initialValue=A.getString(),this.initialUnits=A.getUnits()),this.duration>this.maxDuration){const C=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(C==="freeze"&&!this.frozen)this.frozen=!0,b&&A&&(b.animationFrozen=!0,b.animationFrozenValue=A.getString());else if(C==="remove"&&!this.removed)return this.removed=!0,b&&A&&A.setValue(b.animationFrozen?b.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=g;let w=!1;if(this.begin<this.duration){let C=this.calcValue();const x=this.getAttribute("type");if(x.hasValue()){const S=x.getString();C="".concat(S,"(").concat(C,")")}A.setValue(C),w=!0}return w}getProgress(){const{document:g,values:b}=this;let A=(this.duration-this.begin)/(this.maxDuration-this.begin),w,C;if(b.hasValue()){const x=A*(b.getValue().length-1),S=Math.floor(x),E=Math.ceil(x);let B;B=b.getValue()[S],w=new Property(g,"from",B?parseFloat(B):0),B=b.getValue()[E],C=new Property(g,"to",B?parseFloat(B):0),A=(x-S)/(E-S)}else w=this.from,C=this.to;return{progress:A,from:w,to:C}}constructor(g,b,A){super(g,b,A),this.type="animate",this.duration=0,this.initialUnits="",this.removed=!1,this.frozen=!1,g.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(g,"values",null);const w=this.getAttribute("values");w.hasValue()&&this.values.setValue(w.getString().split(";"))}}class AnimateColorElement extends AnimateElement{calcValue(){const{progress:g,from:b,to:A}=this.getProgress(),w=new rgbcolor(b.getColor()),C=new rgbcolor(A.getColor());if(w.ok&&C.ok){const x=w.r+(C.r-w.r)*g,S=w.g+(C.g-w.g)*g,E=w.b+(C.b-w.b)*g;return"rgb(".concat(Math.floor(x),", ").concat(Math.floor(S),", ").concat(Math.floor(E),")")}return this.getAttribute("from").getColor()}constructor(...g){super(...g),this.type="animateColor"}}class AnimateTransformElement extends AnimateElement{calcValue(){const{progress:g,from:b,to:A}=this.getProgress(),w=toNumbers(b.getString()),C=toNumbers(A.getString());return w.map((S,E)=>{const B=C[E];return S+(B-S)*g}).join(" ")}constructor(...g){super(...g),this.type="animateTransform"}}class FontFaceElement extends Element$1{constructor(g,b,A){super(g,b,A),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(g,b,A){super(g,b,A),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(...g){super(...g),this.type="missing-glyph",this.horizAdvX=0}}class FontElement extends Element$1{render(){}constructor(g,b,A){super(g,b,A),this.type="font",this.isArabic=!1,this.glyphs={},this.arabicGlyphs={},this.isRTL=!1,this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();const{definitions:w}=g,{children:C}=this;for(const x of C)if(x instanceof FontFaceElement){this.fontFace=x;const S=x.getStyle("font-family");S.hasValue()&&(w[S.getString()]=this)}else if(x instanceof MissingGlyphElement)this.missingGlyph=x;else if(x instanceof GlyphElement)if(x.arabicForm){this.isRTL=!0,this.isArabic=!0;const S=this.arabicGlyphs[x.unicode];typeof S>"u"?this.arabicGlyphs[x.unicode]={[x.arabicForm]:x}:S[x.arabicForm]=x}else this.glyphs[x.unicode]=x}}class TRefElement extends TextElement{getText(){const g=this.getHrefAttribute().getDefinition();if(g){const b=g.children[0];if(b)return b.getText()}return""}constructor(...g){super(...g),this.type="tref"}}class AElement extends TextElement{getText(){return this.text}renderChildren(g){if(this.hasText){super.renderChildren(g);const{document:b,x:A,y:w}=this,{mouse:C}=b.screen,x=new Property(b,"fontSize",Font.parse(b.ctx.font).fontSize);C.isWorking()&&C.checkBoundingBox(this,new BoundingBox(A,w-x.getPixels("y"),A+this.measureText(g),w))}else if(this.children.length>0){const b=new GElement(this.document);b.children=this.children,b.parent=this,b.render(g)}}onClick(){const{window:g}=this.document;g&&g.open(this.getHrefAttribute().getString())}onMouseMove(){const g=this.document.ctx;g.canvas.style.cursor="pointer"}constructor(g,b,A){super(g,b,A),this.type="a";const{childNodes:w}=b,C=w[0],x=w.length>0&&Array.from(w).every(S=>S.nodeType===3);this.hasText=x,this.text=x?this.getTextFromNode(C):""}}class TextPathElement extends TextElement{getText(){return this.text}path(g){const{dataArray:b}=this;g&&g.beginPath(),b.forEach(A=>{let{type:w,points:C}=A;switch(w){case PathParser.LINE_TO:g&&g.lineTo(C[0],C[1]);break;case PathParser.MOVE_TO:g&&g.moveTo(C[0],C[1]);break;case PathParser.CURVE_TO:g&&g.bezierCurveTo(C[0],C[1],C[2],C[3],C[4],C[5]);break;case PathParser.QUAD_TO:g&&g.quadraticCurveTo(C[0],C[1],C[2],C[3]);break;case PathParser.ARC:{const[x,S,E,B,$,P,k,M]=C,R=E>B?E:B,F=E>B?1:E/B,L=E>B?B/E:1;g&&(g.translate(x,S),g.rotate(k),g.scale(F,L),g.arc(0,0,R,$,$+P,!!(1-M)),g.scale(1/F,1/L),g.rotate(-k),g.translate(-x,-S));break}case PathParser.CLOSE_PATH:g&&g.closePath();break}})}renderChildren(g){this.setTextData(g),g.save();const b=this.parent.getStyle("text-decoration").getString(),A=this.getFontSize(),{glyphInfo:w}=this,C=g.fillStyle;b==="underline"&&g.beginPath(),w.forEach((x,S)=>{const{p0:E,p1:B,rotation:$,text:P}=x;g.save(),g.translate(E.x,E.y),g.rotate($),g.fillStyle&&g.fillText(P,0,0),g.strokeStyle&&g.strokeText(P,0,0),g.restore(),b==="underline"&&(S===0&&g.moveTo(E.x,E.y+A/8),g.lineTo(B.x,B.y+A/5))}),b==="underline"&&(g.lineWidth=A/20,g.strokeStyle=C,g.stroke(),g.closePath()),g.restore()}getLetterSpacingAt(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[g]||0}findSegmentToFitChar(g,b,A,w,C,x,S,E,B){let $=x,P=this.measureText(g,E);E===" "&&b==="justify"&&A<w&&(P+=(w-A)/C),B>-1&&($+=this.getLetterSpacingAt(B));const k=this.textHeight/20,M=this.getEquidistantPointOnPath($,k,0),R=this.getEquidistantPointOnPath($+P,k,0),F={p0:M,p1:R},L=M&&R?Math.atan2(R.y-M.y,R.x-M.x):0;if(S){const z=Math.cos(Math.PI/2+L)*S,U=Math.cos(-L)*S;F.p0={...M,x:M.x+z,y:M.y+U},F.p1={...R,x:R.x+z,y:R.y+U}}return $+=P,{offset:$,segment:F,rotation:L}}measureText(g,b){const{measuresCache:A}=this,w=b||this.getText();if(A.has(w))return A.get(w);const C=this.measureTargetText(g,w);return A.set(w,C),C}setTextData(g){if(this.glyphInfo)return;const b=this.getText(),A=b.split(""),w=b.split(" ").length-1,C=this.parent.getAttribute("dx").split().map(W=>W.getPixels("x")),x=this.parent.getAttribute("dy").getPixels("y"),S=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),B=this.parent.getStyle("letter-spacing");let $=0;!E.hasValue()||E.getValue()==="inherit"?$=B.getPixels():E.hasValue()&&E.getValue()!=="initial"&&E.getValue()!=="unset"&&($=E.getPixels());const P=[],k=b.length;this.letterSpacingCache=P;for(let W=0;W<k;W++)P.push(typeof C[W]<"u"?C[W]:$);const M=P.reduce((W,V,Q)=>Q===0?0:W+V||0,0),R=this.measureText(g),F=Math.max(R+M,0);this.textWidth=R,this.textHeight=this.getFontSize(),this.glyphInfo=[];const L=this.getPathLength(),z=this.getStyle("startOffset").getNumber(0)*L;let U=0;(S==="middle"||S==="center")&&(U=-F/2),(S==="end"||S==="right")&&(U=-F),U+=z,A.forEach((W,V)=>{const{offset:Q,segment:K,rotation:G}=this.findSegmentToFitChar(g,S,F,L,w,U,x,W,V);U=Q,!(!K.p0||!K.p1)&&this.glyphInfo.push({text:A[V],p0:K.p0,p1:K.p1,rotation:G})})}parsePathData(g){if(this.pathLength=-1,!g)return[];const b=[],{pathParser:A}=g;for(A.reset();!A.isEnd();){const{current:w}=A,C=w?w.x:0,x=w?w.y:0,S=A.next();let E=S.type,B=[];switch(S.type){case PathParser.MOVE_TO:this.pathM(A,B);break;case PathParser.LINE_TO:E=this.pathL(A,B);break;case PathParser.HORIZ_LINE_TO:E=this.pathH(A,B);break;case PathParser.VERT_LINE_TO:E=this.pathV(A,B);break;case PathParser.CURVE_TO:this.pathC(A,B);break;case PathParser.SMOOTH_CURVE_TO:E=this.pathS(A,B);break;case PathParser.QUAD_TO:this.pathQ(A,B);break;case PathParser.SMOOTH_QUAD_TO:E=this.pathT(A,B);break;case PathParser.ARC:B=this.pathA(A);break;case PathParser.CLOSE_PATH:PathElement.pathZ(A);break}S.type!==PathParser.CLOSE_PATH?b.push({type:E,points:B,start:{x:C,y:x},pathLength:this.calcLength(C,x,E,B)}):b.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return b}pathM(g,b){const{x:A,y:w}=PathElement.pathM(g).point;b.push(A,w)}pathL(g,b){const{x:A,y:w}=PathElement.pathL(g).point;return b.push(A,w),PathParser.LINE_TO}pathH(g,b){const{x:A,y:w}=PathElement.pathH(g).point;return b.push(A,w),PathParser.LINE_TO}pathV(g,b){const{x:A,y:w}=PathElement.pathV(g).point;return b.push(A,w),PathParser.LINE_TO}pathC(g,b){const{point:A,controlPoint:w,currentPoint:C}=PathElement.pathC(g);b.push(A.x,A.y,w.x,w.y,C.x,C.y)}pathS(g,b){const{point:A,controlPoint:w,currentPoint:C}=PathElement.pathS(g);return b.push(A.x,A.y,w.x,w.y,C.x,C.y),PathParser.CURVE_TO}pathQ(g,b){const{controlPoint:A,currentPoint:w}=PathElement.pathQ(g);b.push(A.x,A.y,w.x,w.y)}pathT(g,b){const{controlPoint:A,currentPoint:w}=PathElement.pathT(g);return b.push(A.x,A.y,w.x,w.y),PathParser.QUAD_TO}pathA(g){let{rX:b,rY:A,sweepFlag:w,xAxisRotation:C,centp:x,a1:S,ad:E}=PathElement.pathA(g);return w===0&&E>0&&(E-=2*Math.PI),w===1&&E<0&&(E+=2*Math.PI),[x.x,x.y,b,A,S,E,C,w]}calcLength(g,b,A,w){let C=0,x=null,S=null,E=0;switch(A){case PathParser.LINE_TO:return this.getLineLength(g,b,w[0],w[1]);case PathParser.CURVE_TO:for(C=0,x=this.getPointOnCubicBezier(0,g,b,w[0],w[1],w[2],w[3],w[4],w[5]),E=.01;E<=1;E+=.01)S=this.getPointOnCubicBezier(E,g,b,w[0],w[1],w[2],w[3],w[4],w[5]),C+=this.getLineLength(x.x,x.y,S.x,S.y),x=S;return C;case PathParser.QUAD_TO:for(C=0,x=this.getPointOnQuadraticBezier(0,g,b,w[0],w[1],w[2],w[3]),E=.01;E<=1;E+=.01)S=this.getPointOnQuadraticBezier(E,g,b,w[0],w[1],w[2],w[3]),C+=this.getLineLength(x.x,x.y,S.x,S.y),x=S;return C;case PathParser.ARC:{C=0;const B=w[4],$=w[5],P=w[4]+$;let k=Math.PI/180;if(Math.abs(B-P)<k&&(k=Math.abs(B-P)),x=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],B,0),$<0)for(E=B-k;E>P;E-=k)S=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],E,0),C+=this.getLineLength(x.x,x.y,S.x,S.y),x=S;else for(E=B+k;E<P;E+=k)S=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],E,0),C+=this.getLineLength(x.x,x.y,S.x,S.y),x=S;return S=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],P,0),C+=this.getLineLength(x.x,x.y,S.x,S.y),C}}return 0}getPointOnLine(g,b,A,w,C){let x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:b,S=arguments.length>6&&arguments[6]!==void 0?arguments[6]:A;const E=(C-A)/(w-b+PSEUDO_ZERO);let B=Math.sqrt(g*g/(1+E*E));w<b&&(B*=-1);let $=E*B,P=null;if(w===b)P={x,y:S+$};else if((S-A)/(x-b+PSEUDO_ZERO)===E)P={x:x+B,y:S+$};else{let k=0,M=0;const R=this.getLineLength(b,A,w,C);if(R<PSEUDO_ZERO)return null;let F=(x-b)*(w-b)+(S-A)*(C-A);F/=R*R,k=b+F*(w-b),M=A+F*(C-A);const L=this.getLineLength(x,S,k,M),z=Math.sqrt(g*g-L*L);B=Math.sqrt(z*z/(1+E*E)),w<b&&(B*=-1),$=E*B,P={x:k+B,y:M+$}}return P}getPointOnPath(g){const b=this.getPathLength();let A=0,w=null;if(g<-5e-5||g-5e-5>b)return null;const{dataArray:C}=this;for(const x of C){if(x&&(x.pathLength<5e-5||A+x.pathLength+5e-5<g)){A+=x.pathLength;continue}const S=g-A;let E=0;switch(x.type){case PathParser.LINE_TO:w=this.getPointOnLine(S,x.start.x,x.start.y,x.points[0],x.points[1],x.start.x,x.start.y);break;case PathParser.ARC:{const B=x.points[4],$=x.points[5],P=x.points[4]+$;if(E=B+S/x.pathLength*$,$<0&&E<P||$>=0&&E>P)break;w=this.getPointOnEllipticalArc(x.points[0],x.points[1],x.points[2],x.points[3],E,x.points[6]);break}case PathParser.CURVE_TO:E=S/x.pathLength,E>1&&(E=1),w=this.getPointOnCubicBezier(E,x.start.x,x.start.y,x.points[0],x.points[1],x.points[2],x.points[3],x.points[4],x.points[5]);break;case PathParser.QUAD_TO:E=S/x.pathLength,E>1&&(E=1),w=this.getPointOnQuadraticBezier(E,x.start.x,x.start.y,x.points[0],x.points[1],x.points[2],x.points[3]);break}if(w)return w;break}return null}getLineLength(g,b,A,w){return Math.sqrt((A-g)*(A-g)+(w-b)*(w-b))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((g,b)=>b.pathLength>0?g+b.pathLength:g,0)),this.pathLength}getPointOnCubicBezier(g,b,A,w,C,x,S,E,B){const $=E*CB1(g)+x*CB2(g)+w*CB3(g)+b*CB4(g),P=B*CB1(g)+S*CB2(g)+C*CB3(g)+A*CB4(g);return{x:$,y:P}}getPointOnQuadraticBezier(g,b,A,w,C,x,S){const E=x*QB1(g)+w*QB2(g)+b*QB3(g),B=S*QB1(g)+C*QB2(g)+A*QB3(g);return{x:E,y:B}}getPointOnEllipticalArc(g,b,A,w,C,x){const S=Math.cos(x),E=Math.sin(x),B={x:A*Math.cos(C),y:w*Math.sin(C)};return{x:g+(B.x*S-B.y*E),y:b+(B.x*E+B.y*S)}}buildEquidistantCache(g,b){const A=this.getPathLength(),w=b||.25,C=g||A/100;if(!this.equidistantCache||this.equidistantCache.step!==C||this.equidistantCache.precision!==w){this.equidistantCache={step:C,precision:w,points:[]};let x=0;for(let S=0;S<=A;S+=w){const E=this.getPointOnPath(S),B=this.getPointOnPath(S+w);!E||!B||(x+=this.getLineLength(E.x,E.y,B.x,B.y),x>=C&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:S}),x-=C))}}}getEquidistantPointOnPath(g,b,A){if(this.buildEquidistantCache(b,A),g<0||g-this.getPathLength()>5e-5)return null;const w=Math.round(g/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[w]||null}constructor(g,b,A){super(g,b,A),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);const w=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(w)}}const dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{async loadImage(g){try{const b=await this.document.createImage(g);this.image=b}catch(b){console.error('Error while loading image "'.concat(g,'":'),b)}this.loaded=!0}async loadSvg(g){const b=dataUriRegex.exec(g);if(b){const A=b[5];A&&(b[4]==="base64"?this.image=atob(A):this.image=decodeURIComponent(A))}else try{const w=await(await this.document.fetch(g)).text();this.image=w}catch(A){console.error('Error while loading image "'.concat(g,'":'),A)}this.loaded=!0}renderChildren(g){const{document:b,image:A,loaded:w}=this,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(!(!w||!A||!S||!E)){if(g.save(),g.translate(C,x),typeof A=="string"){const B=b.canvg.forkString(g,A,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:S,scaleHeight:E}),{documentElement:$}=B.document;$&&($.parent=this),B.render()}else b.setViewBox({ctx:g,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:S,desiredWidth:A.width,height:E,desiredHeight:A.height}),this.loaded&&(!("complete"in A)||A.complete)&&g.drawImage(A,0,0);g.restore()}}getBoundingBox(){const g=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),A=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");return new BoundingBox(g,b,g+A,b+w)}constructor(g,b,A){super(g,b,A),this.type="image",this.loaded=!1;const w=this.getHrefAttribute().getString();if(!w)return;const C=w.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(w);g.images.push(this),C?this.loadSvg(w):this.loadImage(w)}}class SymbolElement extends RenderedElement{render(g){}constructor(...g){super(...g),this.type="symbol"}}class SVGFontLoader{async load(g,b){try{const{document:A}=this,C=(await A.canvg.parser.load(b)).getElementsByTagName("font");Array.from(C).forEach(x=>{const S=A.createElement(x);A.definitions[g]=S})}catch(A){console.error('Error while loading font "'.concat(b,'":'),A)}this.loaded=!0}constructor(g){this.document=g,this.loaded=!1,g.fonts.push(this)}}class StyleElement extends Element$1{constructor(g,b,A){super(g,b,A),this.type="style",compressSpaces(Array.from(b.childNodes).map(x=>x.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(x=>{const S=x.trim();if(!S)return;const E=S.split("{"),B=E[0].split(","),$=E[1].split(";");B.forEach(P=>{const k=P.trim();if(!k)return;const M=g.styles[k]||{};if($.forEach(R=>{const F=R.indexOf(":"),L=R.substr(0,F).trim(),z=R.substr(F+1,R.length-F).trim();L&&z&&(M[L]=new Property(g,L,z))}),g.styles[k]=M,g.stylesSpecificity[k]=getSelectorSpecificity(k),k==="@font-face"){const R=M["font-family"].getString().replace(/"|'/g,"");M.src.getString().split(",").forEach(L=>{if(L.indexOf('format("svg")')>0){const z=parseExternalUrl(L);z&&new SVGFontLoader(g).load(R,z)}})}})})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{setContext(g){super.setContext(g);const b=this.getAttribute("x"),A=this.getAttribute("y");b.hasValue()&&g.translate(b.getPixels("x"),0),A.hasValue()&&g.translate(0,A.getPixels("y"))}path(g){const{element:b}=this;b&&b.path(g)}renderChildren(g){const{document:b,element:A}=this;if(A){let w=A;if(A.type==="symbol"&&(w=new SVGElement$1(b),w.attributes.viewBox=new Property(b,"viewBox",A.getAttribute("viewBox").getString()),w.attributes.preserveAspectRatio=new Property(b,"preserveAspectRatio",A.getAttribute("preserveAspectRatio").getString()),w.attributes.overflow=new Property(b,"overflow",A.getAttribute("overflow").getString()),w.children=A.children,A.styles.opacity=new Property(b,"opacity",this.calculateOpacity())),w.type==="svg"){const x=this.getStyle("width",!1,!0),S=this.getStyle("height",!1,!0);x.hasValue()&&(w.attributes.width=new Property(b,"width",x.getString())),S.hasValue()&&(w.attributes.height=new Property(b,"height",S.getString()))}const C=w.parent;w.parent=this,w.render(g),w.parent=C}}getBoundingBox(g){const{element:b}=this;return b?b.getBoundingBox(g):null}elementTransform(){const{document:g,element:b}=this;return b?Transform.fromElement(g,b):null}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...g){super(...g),this.type="use"}}function imGet(d,g,b,A,w,C){return d[b*A*4+g*4+C]}function imSet(d,g,b,A,w,C,x){d[b*A*4+g*4+C]=x}function m(d,g,b){return d[g]*b}function c(d,g,b,A){return g+Math.cos(d)*b+Math.sin(d)*A}class FeColorMatrixElement extends Element$1{apply(g,b,A,w,C){const{includeOpacity:x,matrix:S}=this,E=g.getImageData(0,0,w,C);for(let B=0;B<C;B++)for(let $=0;$<w;$++){const P=imGet(E.data,$,B,w,C,0),k=imGet(E.data,$,B,w,C,1),M=imGet(E.data,$,B,w,C,2),R=imGet(E.data,$,B,w,C,3);let F=m(S,0,P)+m(S,1,k)+m(S,2,M)+m(S,3,R)+m(S,4,1),L=m(S,5,P)+m(S,6,k)+m(S,7,M)+m(S,8,R)+m(S,9,1),z=m(S,10,P)+m(S,11,k)+m(S,12,M)+m(S,13,R)+m(S,14,1),U=m(S,15,P)+m(S,16,k)+m(S,17,M)+m(S,18,R)+m(S,19,1);x&&(F=0,L=0,z=0,U*=R/255),imSet(E.data,$,B,w,C,0,F),imSet(E.data,$,B,w,C,1,L),imSet(E.data,$,B,w,C,2,z),imSet(E.data,$,B,w,C,3,U)}g.clearRect(0,0,w,C),g.putImageData(E,0,0)}constructor(g,b,A){super(g,b,A),this.type="feColorMatrix";let w=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{const C=w[0];w=[.213+.787*C,.715-.715*C,.072-.072*C,0,0,.213-.213*C,.715+.285*C,.072-.072*C,0,0,.213-.213*C,.715-.715*C,.072+.928*C,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{const C=w[0]*Math.PI/180;w=[c(C,.213,.787,-.213),c(C,.715,-.715,-.715),c(C,.072,-.072,.928),0,0,c(C,.213,-.213,.143),c(C,.715,.285,.14),c(C,.072,-.072,-.283),0,0,c(C,.213,-.213,-.787),c(C,.715,-.715,.715),c(C,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":w=[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=w,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}}class MaskElement extends Element$1{apply(g,b){const{document:A}=this;let w=this.getAttribute("x").getPixels("x"),C=this.getAttribute("y").getPixels("y"),x=this.getStyle("width").getPixels("x"),S=this.getStyle("height").getPixels("y");if(!x&&!S){const M=new BoundingBox;this.children.forEach(R=>{M.addBoundingBox(R.getBoundingBox(g))}),w=Math.floor(M.x1),C=Math.floor(M.y1),x=Math.floor(M.width),S=Math.floor(M.height)}const E=this.removeStyles(b,MaskElement.ignoreStyles),B=A.createCanvas(w+x,C+S),$=B.getContext("2d");A.screen.setDefaults($),this.renderChildren($),new FeColorMatrixElement(A,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply($,0,0,w+x,C+S);const P=A.createCanvas(w+x,C+S),k=P.getContext("2d");A.screen.setDefaults(k),b.render(k),k.globalCompositeOperation="destination-in",k.fillStyle=$.createPattern(B,"no-repeat"),k.fillRect(0,0,w+x,C+S),g.fillStyle=k.createPattern(P,"no-repeat"),g.fillRect(0,0,w+x,C+S),this.restoreStyles(b,E)}render(g){}constructor(...g){super(...g),this.type="mask"}}MaskElement.ignoreStyles=["mask","transform","clip-path"];const noop$1=()=>{};class ClipPathElement extends Element$1{apply(g){const{document:b}=this,A=Reflect.getPrototypeOf(g),{beginPath:w,closePath:C}=g;A&&(A.beginPath=noop$1,A.closePath=noop$1),Reflect.apply(w,g,[]),this.children.forEach(x=>{if(!("path"in x))return;let S="elementTransform"in x?x.elementTransform():null;S||(S=Transform.fromElement(b,x)),S&&S.apply(g),x.path(g),A&&(A.closePath=C),S&&S.unapply(g)}),Reflect.apply(C,g,[]),g.clip(),A&&(A.beginPath=w,A.closePath=C)}render(g){}constructor(...g){super(...g),this.type="clipPath"}}class FilterElement extends Element$1{apply(g,b){const{document:A,children:w}=this,C="getBoundingBox"in b?b.getBoundingBox(g):null;if(!C)return;let x=0,S=0;w.forEach(z=>{const U=z.extraFilterDistance||0;x=Math.max(x,U),S=Math.max(S,U)});const E=Math.floor(C.width),B=Math.floor(C.height),$=E+2*x,P=B+2*S;if($<1||P<1)return;const k=Math.floor(C.x),M=Math.floor(C.y),R=this.removeStyles(b,FilterElement.ignoreStyles),F=A.createCanvas($,P),L=F.getContext("2d");A.screen.setDefaults(L),L.translate(-k+x,-M+S),b.render(L),w.forEach(z=>{typeof z.apply=="function"&&z.apply(L,0,0,$,P)}),g.drawImage(F,0,0,$,P,k-x,M-S,$,P),this.restoreStyles(b,R)}render(g){}constructor(...g){super(...g),this.type="filter"}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element$1{apply(g,b,A,w,C){}constructor(g,b,A){super(g,b,A),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class FeMorphologyElement extends Element$1{apply(g,b,A,w,C){}constructor(...g){super(...g),this.type="feMorphology"}}class FeCompositeElement extends Element$1{apply(g,b,A,w,C){}constructor(...g){super(...g),this.type="feComposite"}}class FeGaussianBlurElement extends Element$1{apply(g,b,A,w,C){const{document:x,blurRadius:S}=this,E=x.window?x.window.document.body:null,B=g.canvas;B.id=x.getUniqueId(),E&&(B.style.display="none",E.appendChild(B)),processCanvasRGBA(B,b,A,w,C,S),E&&E.removeChild(B)}constructor(g,b,A){super(g,b,A),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}}class TitleElement extends Element$1{constructor(...g){super(...g),this.type="title"}}class DescElement extends Element$1{constructor(...g){super(...g),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,g){const b=document.createElement("canvas");return b.width=d,b.height=g,b}async function createImage(d){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const b=document.createElement("img");return g&&(b.crossOrigin="Anonymous"),new Promise((A,w)=>{b.onload=()=>{A(b)},b.onerror=(C,x,S,E,B)=>{w(B)},b.src=d})}const DEFAULT_EM_SIZE=12;class Document{bindCreateImage(g,b){return typeof b=="boolean"?(A,w)=>g(A,typeof w=="boolean"?w:b):g}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){const{emSizeStack:g}=this;return g[g.length-1]||DEFAULT_EM_SIZE}set emSize(g){const{emSizeStack:b}=this;b.push(g)}popEmSize(){const{emSizeStack:g}=this;g.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(g=>g.loaded)}isFontsLoaded(){return this.fonts.every(g=>g.loaded)}createDocumentElement(g){const b=this.createElement(g.documentElement);return b.root=!0,b.addStylesFromStyleDefinition(),this.documentElement=b,b}createElement(g){const b=g.nodeName.replace(/^[^:]+:/,""),A=Document.elementTypes[b];return A?new A(this,g):new UnknownElement(this,g)}createTextNode(g){return new TextNode(this,g)}setViewBox(g){this.screen.setViewBox({document:this,...g})}constructor(g,{rootEmSize:b=DEFAULT_EM_SIZE,emSize:A=DEFAULT_EM_SIZE,createCanvas:w=Document.createCanvas,createImage:C=Document.createImage,anonymousCrossOrigin:x}={}){this.canvg=g,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=g.screen,this.rootEmSize=b,this.emSize=A,this.createCanvas=w,this.createImage=this.bindCreateImage(C,x),this.screen.wait(()=>this.isImagesLoaded()),this.screen.wait(()=>this.isFontsLoaded())}}Document.createCanvas=createCanvas;Document.createImage=createImage;Document.elementTypes=elements;class Canvg{static async from(g,b){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const C=await new Parser(A).parse(b);return new Canvg(g,C,A)}static fromString(g,b){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const C=new Parser(A).parseFromString(b);return new Canvg(g,C,A)}fork(g,b){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(g,b,{...this.options,...A})}forkString(g,b){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(g,b,{...this.options,...A})}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}async render(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.start({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0,...g}),await this.ready(),this.stop()}start(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{documentElement:b,screen:A,options:w}=this;A.start(b,{enableRedraw:!0,...w,...g})}stop(){this.screen.stop()}resize(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(g,b,A)}constructor(g,b,A={}){this.parser=new Parser(A),this.screen=new Screen(g,A),this.options=A;const w=new Document(this,A),C=w.createDocumentElement(b);this.document=w,this.documentElement=C}}const svg2canvas=d=>{const g=document.createElement("canvas"),b=g.getContext("2d");return b&&Canvg.fromString(b,d).start(),g},btnImg="_btnImg_16jss_1",topBtnIcon="_topBtnIcon_16jss_13",dropItem="_dropItem_16jss_17",dropIcon="_dropIcon_16jss_21",dropWrap="_dropWrap_16jss_26",styles$2={btnImg,topBtnIcon,dropItem,dropIcon,dropWrap},FileBtn=defineComponent({name:"FileBtn",emits:["select"],setup(d,{emit:g}){const b=[{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_0.png")},null),createVNode("span",null,[createTextVNode("导入")])]),key:"import",children:[{label:"XML",key:"xml"}]},{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:"XML",key:"down-xml"},{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:b,trigger:"click",onSelect:A=>{console.log("🚀 ~ val:",A),g("select",A)}},{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:g}){useMessage();const b=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,()=>{b.show=d.show});const A=[{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 w;return createVNode(NModal,{autoFocus:!1,show:d.show,"onUpdate:show":C=>g("update:show",C)},{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:()=>g("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(w=b.btns.map(C=>createVNode(NButton,{quaternary:!0,block:!0,class:[styles$1.btn,b.active===C.key&&styles$1.activeBtn],onClick:()=>b.active=C.key},{icon:()=>createVNode("img",{class:styles$1.btnIcon,src:C.icon},null),default:()=>C.label})))?w:{default:()=>[w]})]),createVNode("div",{class:styles$1.box},[createVNode(NTabs,{value:b.active,"onUpdate:value":C=>b.active=C},{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":C=>settings.cursorType=C},{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,[A.map(C=>createVNode("tr",null,[createVNode("td",null,[C.label]),createVNode("td",null,[C.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,g){function b(...A){return new Promise((w,C)=>{Promise.resolve(d(()=>g.apply(this,A),{fn:g,thisArg:this,args:A})).then(w).catch(C)})}return b}const bypassFilter=d=>d();function pausableFilter(d=bypassFilter){const g=ref(!0);function b(){g.value=!1}function A(){g.value=!0}const w=(...C)=>{g.value&&d(...C)};return{isActive:readonly(g),pause:b,resume:A,eventFilter:w}}function toRef(...d){if(d.length!==1)return toRef$1(...d);const g=d[0];return typeof g=="function"?readonly(customRef(()=>({get:g,set:noop}))):ref(g)}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,g,b)=>g in d?__defProp$9(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b,__spreadValues$9=(d,g)=>{for(var b in g||(g={}))__hasOwnProp$b.call(g,b)&&__defNormalProp$9(d,b,g[b]);if(__getOwnPropSymbols$b)for(var b of __getOwnPropSymbols$b(g))__propIsEnum$b.call(g,b)&&__defNormalProp$9(d,b,g[b]);return d},__spreadProps$7=(d,g)=>__defProps$7(d,__getOwnPropDescs$7(g));function toRefs(d,g={}){if(!isRef(d))return toRefs$1(d);const b=Array.isArray(d.value)?Array.from({length:d.value.length}):{};for(const A in d.value)b[A]=customRef(()=>({get(){return d.value[A]},set(w){var C;if((C=toValue(g.replaceRef))!=null?C:!0)if(Array.isArray(d.value)){const S=[...d.value];S[A]=w,d.value=S}else{const S=__spreadProps$7(__spreadValues$9({},d.value),{[A]:w});Object.setPrototypeOf(S,Object.getPrototypeOf(d.value)),d.value=S}else d.value[A]=w}}));return b}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$5=(d,g)=>{var b={};for(var A in d)__hasOwnProp$8.call(d,A)&&g.indexOf(A)<0&&(b[A]=d[A]);if(d!=null&&__getOwnPropSymbols$8)for(var A of __getOwnPropSymbols$8(d))g.indexOf(A)<0&&__propIsEnum$8.call(d,A)&&(b[A]=d[A]);return b};function watchWithFilter(d,g,b={}){const A=b,{eventFilter:w=bypassFilter}=A,C=__objRest$5(A,["eventFilter"]);return watch(d,createFilterWrapper(w,g),C)}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,g,b)=>g in d?__defProp$2(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b,__spreadValues$2=(d,g)=>{for(var b in g||(g={}))__hasOwnProp$2.call(g,b)&&__defNormalProp$2(d,b,g[b]);if(__getOwnPropSymbols$2)for(var b of __getOwnPropSymbols$2(g))__propIsEnum$2.call(g,b)&&__defNormalProp$2(d,b,g[b]);return d},__spreadProps$2=(d,g)=>__defProps$2(d,__getOwnPropDescs$2(g)),__objRest$1=(d,g)=>{var b={};for(var A in d)__hasOwnProp$2.call(d,A)&&g.indexOf(A)<0&&(b[A]=d[A]);if(d!=null&&__getOwnPropSymbols$2)for(var A of __getOwnPropSymbols$2(d))g.indexOf(A)<0&&__propIsEnum$2.call(d,A)&&(b[A]=d[A]);return b};function watchPausable(d,g,b={}){const A=b,{eventFilter:w}=A,C=__objRest$1(A,["eventFilter"]),{eventFilter:x,pause:S,resume:E,isActive:B}=pausableFilter(w);return{stop:watchWithFilter(d,g,__spreadProps$2(__spreadValues$2({},C),{eventFilter:x})),pause:S,resume:E,isActive:B}}function unrefElement$1(d){var g;const b=toValue(d);return(g=b==null?void 0:b.$el)!=null?g:b}const defaultWindow$1=isClient?window:void 0;function useEventListener$1(...d){let g,b,A,w;if(typeof d[0]=="string"||Array.isArray(d[0])?([b,A,w]=d,g=defaultWindow$1):[g,b,A,w]=d,!g)return noop;Array.isArray(b)||(b=[b]),Array.isArray(A)||(A=[A]);const C=[],x=()=>{C.forEach($=>$()),C.length=0},S=($,P,k,M)=>($.addEventListener(P,k,M),()=>$.removeEventListener(P,k,M)),E=watch(()=>[unrefElement$1(g),toValue(w)],([$,P])=>{x(),$&&C.push(...b.flatMap(k=>A.map(M=>S($,k,M,P))))},{immediate:!0,flush:"post"}),B=()=>{E(),x()};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,g){return handlers[d]||g}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,g,b)=>g in d?__defProp$l(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b,__spreadValues$l=(d,g)=>{for(var b in g||(g={}))__hasOwnProp$o.call(g,b)&&__defNormalProp$l(d,b,g[b]);if(__getOwnPropSymbols$o)for(var b of __getOwnPropSymbols$o(g))__propIsEnum$o.call(g,b)&&__defNormalProp$l(d,b,g[b]);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,g,b,A={}){var w;const{flush:C="pre",deep:x=!0,listenToStorageChanges:S=!0,writeDefaults:E=!0,mergeDefaults:B=!1,shallow:$,window:P=defaultWindow$1,eventFilter:k,onError:M=X=>{console.error(X)}}=A,R=($?shallowRef:ref)(g);if(!b)try{b=getSSRHandler("getDefaultStorage",()=>{var X;return(X=defaultWindow$1)==null?void 0:X.localStorage})()}catch(X){M(X)}if(!b)return R;const F=toValue(g),L=guessSerializerType(F),z=(w=A.serializer)!=null?w:StorageSerializers[L],{pause:U,resume:W}=watchPausable(R,()=>V(R.value),{flush:C,deep:x,eventFilter:k});return P&&S&&(useEventListener$1(P,"storage",G),useEventListener$1(P,customStorageEventName,K)),G(),R;function V(X){try{if(X==null)b.removeItem(d);else{const J=z.write(X),re=b.getItem(d);re!==J&&(b.setItem(d,J),P&&P.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:d,oldValue:re,newValue:J,storageArea:b}})))}}catch(J){M(J)}}function Q(X){const J=X?X.newValue:b.getItem(d);if(J==null)return E&&F!==null&&b.setItem(d,z.write(F)),F;if(!X&&B){const re=z.read(J);return typeof B=="function"?B(re,F):L==="object"&&!Array.isArray(re)?__spreadValues$l(__spreadValues$l({},F),re):re}else return typeof J!="string"?J:z.read(J)}function K(X){G(X.detail)}function G(X){if(!(X&&X.storageArea!==b)){if(X&&X.key==null){R.value=F;return}if(!(X&&X.key!==d)){U();try{R.value=Q(X)}catch(J){M(J)}finally{X?nextTick(W):W()}}}}}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,g,b)=>g in d?__defProp$g(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b,__spreadValues$g=(d,g)=>{for(var b in g||(g={}))__hasOwnProp$i.call(g,b)&&__defNormalProp$g(d,b,g[b]);if(__getOwnPropSymbols$i)for(var b of __getOwnPropSymbols$i(g))__propIsEnum$i.call(g,b)&&__defNormalProp$g(d,b,g[b]);return d},__spreadProps$6=(d,g)=>__defProps$6(d,__getOwnPropDescs$6(g));function useDraggable(d,g={}){var b,A;const{pointerTypes:w,preventDefault:C,stopPropagation:x,exact:S,onMove:E,onEnd:B,onStart:$,initialValue:P,axis:k="both",draggingElement:M=defaultWindow$1,handle:R=d}=g,F=ref((b=toValue(P))!=null?b:{x:0,y:0}),L=ref(),z=K=>w?w.includes(K.pointerType):!0,U=K=>{toValue(C)&&K.preventDefault(),toValue(x)&&K.stopPropagation()},W=K=>{if(!z(K)||toValue(S)&&K.target!==toValue(d))return;const G=toValue(d).getBoundingClientRect(),X={x:K.clientX-G.left,y:K.clientY-G.top};($==null?void 0:$(X,K))!==!1&&(L.value=X,U(K))},V=K=>{if(!z(K)||!L.value)return;let{x:G,y:X}=F.value;(k==="x"||k==="both")&&(G=K.clientX-L.value.x),(k==="y"||k==="both")&&(X=K.clientY-L.value.y),F.value={x:G,y:X},E==null||E(F.value,K),U(K)},Q=K=>{z(K)&&L.value&&(L.value=void 0,B==null||B(F.value,K),U(K))};if(isClient){const K={capture:(A=g.capture)!=null?A:!0};useEventListener$1(R,"pointerdown",W,K),useEventListener$1(M,"pointermove",V,K),useEventListener$1(M,"pointerup",Q,K)}return __spreadProps$6(__spreadValues$g({},toRefs(F)),{position:F,isDragging:computed(()=>!!L.value),style:computed(()=>`left:${F.value.x}px;top:${F.value.y}px;`)})}function unrefElement(d){var g;const b=toValue(d);return(g=b==null?void 0:b.$el)!=null?g:b}const defaultWindow=isClient?window:void 0;function useEventListener(...d){let g,b,A,w;if(typeof d[0]=="string"||Array.isArray(d[0])?([b,A,w]=d,g=defaultWindow):[g,b,A,w]=d,!g)return noop;Array.isArray(b)||(b=[b]),Array.isArray(A)||(A=[A]);const C=[],x=()=>{C.forEach($=>$()),C.length=0},S=($,P,k,M)=>($.addEventListener(P,k,M),()=>$.removeEventListener(P,k,M)),E=watch(()=>[unrefElement(g),toValue(w)],([$,P])=>{x(),$&&C.push(...b.flatMap(k=>A.map(M=>S($,k,M,P))))},{immediate:!0,flush:"post"}),B=()=>{E(),x()};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,g,b)=>g in d?__defProp$b(d,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):d[g]=b,__spreadValues$b=(d,g)=>{for(var b in g||(g={}))__hasOwnProp$d.call(g,b)&&__defNormalProp$b(d,b,g[b]);if(__getOwnPropSymbols$d)for(var b of __getOwnPropSymbols$d(g))__propIsEnum$d.call(g,b)&&__defNormalProp$b(d,b,g[b]);return d},__spreadProps$9=(d,g)=>__defProps$9(d,__getOwnPropDescs$9(g));const UseDraggable=defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd"],setup(d,{slots:g}){const b=ref(),A=computed(()=>{var E;return(E=d.handle)!=null?E:b.value}),w=d.storageKey&&useStorage(d.storageKey,toValue(d.initialValue)||{x:0,y:0},isClient?d.storageType==="session"?sessionStorage:localStorage:void 0),C=w||d.initialValue||{x:0,y:0},x=(E,B)=>{var $;($=d.onEnd)==null||$.call(d,E,B),w&&(w.value.x=E.x,w.value.y=E.y)},S=reactive(useDraggable(b,__spreadProps$9(__spreadValues$b({},d),{handle:A,initialValue:C,onEnd:x})));return()=>{if(g.default)return h$1(d.as||"div",{ref:b,style:`touch-action:none;${S.style}`},g.default(S))}}});function checkOverflowScroll(d){const g=window.getComputedStyle(d);if(g.overflowX==="scroll"||g.overflowY==="scroll"||g.overflowX==="auto"&&d.clientWidth<d.scrollWidth||g.overflowY==="auto"&&d.clientHeight<d.scrollHeight)return!0;{const b=d.parentNode;return!b||b.tagName==="BODY"?!1:checkOverflowScroll(b)}}function preventDefault(d){const g=d||window.event,b=g.target;return checkOverflowScroll(b)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}function useScrollLock(d,g=!1){const b=ref(g);let A=null,w;watch(toRef(d),S=>{if(S){const E=S;w=E.style.overflow,b.value&&(E.style.overflow="hidden")}},{immediate:!0});const C=()=>{const S=toValue(d);!S||b.value||(isIOS&&(A=useEventListener(S,"touchmove",E=>{preventDefault(E)},{passive:!1})),S.style.overflow="hidden",b.value=!0)},x=()=>{const S=toValue(d);!S||!b.value||(isIOS&&(A==null||A()),S.style.overflow=w,b.value=!1)};return tryOnScopeDispose(x),computed({get(){return b.value},set(S){S?C():x()}})}function onScrollLock(){let d=!1;const g=ref(!1);return(b,A)=>{if(g.value=A.value,d)return;d=!0;const w=useScrollLock(b,A.value);watch(g,C=>w.value=C)}}onScrollLock();var howler={};/*!
  2511. * howler.js v2.2.3
  2512. * howlerjs.com
  2513. *
  2514. * (c) 2013-2020, James Simpson of GoldFire Studios
  2515. * goldfirestudios.com
  2516. *
  2517. * MIT License
  2518. */(function(d){(function(){var g=function(){this.init()};g.prototype={init:function(){var P=this||b;return P._counter=1e3,P._html5AudioPool=[],P.html5PoolSize=10,P._codecs={},P._howls=[],P._muted=!1,P._volume=1,P._canPlayEvent="canplaythrough",P._navigator=typeof window<"u"&&window.navigator?window.navigator:null,P.masterGain=null,P.noAudio=!1,P.usingWebAudio=!0,P.autoSuspend=!0,P.ctx=null,P.autoUnlock=!0,P._setup(),P},volume:function(P){var k=this||b;if(P=parseFloat(P),k.ctx||$(),typeof P<"u"&&P>=0&&P<=1){if(k._volume=P,k._muted)return k;k.usingWebAudio&&k.masterGain.gain.setValueAtTime(P,b.ctx.currentTime);for(var M=0;M<k._howls.length;M++)if(!k._howls[M]._webAudio)for(var R=k._howls[M]._getSoundIds(),F=0;F<R.length;F++){var L=k._howls[M]._soundById(R[F]);L&&L._node&&(L._node.volume=L._volume*P)}return k}return k._volume},mute:function(P){var k=this||b;k.ctx||$(),k._muted=P,k.usingWebAudio&&k.masterGain.gain.setValueAtTime(P?0:k._volume,b.ctx.currentTime);for(var M=0;M<k._howls.length;M++)if(!k._howls[M]._webAudio)for(var R=k._howls[M]._getSoundIds(),F=0;F<R.length;F++){var L=k._howls[M]._soundById(R[F]);L&&L._node&&(L._node.muted=P?!0:L._muted)}return k},stop:function(){for(var P=this||b,k=0;k<P._howls.length;k++)P._howls[k].stop();return P},unload:function(){for(var P=this||b,k=P._howls.length-1;k>=0;k--)P._howls[k].unload();return P.usingWebAudio&&P.ctx&&typeof P.ctx.close<"u"&&(P.ctx.close(),P.ctx=null,$()),P},codecs:function(P){return(this||b)._codecs[P.replace(/^x-/,"")]},_setup:function(){var P=this||b;if(P.state=P.ctx&&P.ctx.state||"suspended",P._autoSuspend(),!P.usingWebAudio)if(typeof Audio<"u")try{var k=new Audio;typeof k.oncanplaythrough>"u"&&(P._canPlayEvent="canplay")}catch(M){P.noAudio=!0}else P.noAudio=!0;try{var k=new Audio;k.muted&&(P.noAudio=!0)}catch(M){}return P.noAudio||P._setupCodecs(),P},_setupCodecs:function(){var P=this||b,k=null;try{k=typeof Audio<"u"?new Audio:null}catch(V){return P}if(!k||typeof k.canPlayType!="function")return P;var M=k.canPlayType("audio/mpeg;").replace(/^no$/,""),R=P._navigator?P._navigator.userAgent:"",F=R.match(/OPR\/([0-6].)/g),L=F&&parseInt(F[0].split("/")[1],10)<33,z=R.indexOf("Safari")!==-1&&R.indexOf("Chrome")===-1,U=R.match(/Version\/(.*?) /),W=z&&U&&parseInt(U[1],10)<15;return P._codecs={mp3:!!(!L&&(M||k.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!M,opus:!!k.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!k.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!k.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(k.canPlayType('audio/wav; codecs="1"')||k.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!k.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!k.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(k.canPlayType("audio/x-m4a;")||k.canPlayType("audio/m4a;")||k.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(k.canPlayType("audio/x-m4b;")||k.canPlayType("audio/m4b;")||k.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(k.canPlayType("audio/x-mp4;")||k.canPlayType("audio/mp4;")||k.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!W&&k.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!W&&k.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!k.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(k.canPlayType("audio/x-flac;")||k.canPlayType("audio/flac;")).replace(/^no$/,"")},P},_unlockAudio:function(){var P=this||b;if(!(P._audioUnlocked||!P.ctx)){P._audioUnlocked=!1,P.autoUnlock=!1,!P._mobileUnloaded&&P.ctx.sampleRate!==44100&&(P._mobileUnloaded=!0,P.unload()),P._scratchBuffer=P.ctx.createBuffer(1,1,22050);var k=function(M){for(;P._html5AudioPool.length<P.html5PoolSize;)try{var R=new Audio;R._unlocked=!0,P._releaseHtml5Audio(R)}catch(V){P.noAudio=!0;break}for(var F=0;F<P._howls.length;F++)if(!P._howls[F]._webAudio)for(var L=P._howls[F]._getSoundIds(),z=0;z<L.length;z++){var U=P._howls[F]._soundById(L[z]);U&&U._node&&!U._node._unlocked&&(U._node._unlocked=!0,U._node.load())}P._autoResume();var W=P.ctx.createBufferSource();W.buffer=P._scratchBuffer,W.connect(P.ctx.destination),typeof W.start>"u"?W.noteOn(0):W.start(0),typeof P.ctx.resume=="function"&&P.ctx.resume(),W.onended=function(){W.disconnect(0),P._audioUnlocked=!0,document.removeEventListener("touchstart",k,!0),document.removeEventListener("touchend",k,!0),document.removeEventListener("click",k,!0),document.removeEventListener("keydown",k,!0);for(var V=0;V<P._howls.length;V++)P._howls[V]._emit("unlock")}};return document.addEventListener("touchstart",k,!0),document.addEventListener("touchend",k,!0),document.addEventListener("click",k,!0),document.addEventListener("keydown",k,!0),P}},_obtainHtml5Audio:function(){var P=this||b;if(P._html5AudioPool.length)return P._html5AudioPool.pop();var k=new Audio().play();return k&&typeof Promise<"u"&&(k instanceof Promise||typeof k.then=="function")&&k.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(P){var k=this||b;return P._unlocked&&k._html5AudioPool.push(P),k},_autoSuspend:function(){var P=this;if(!(!P.autoSuspend||!P.ctx||typeof P.ctx.suspend>"u"||!b.usingWebAudio)){for(var k=0;k<P._howls.length;k++)if(P._howls[k]._webAudio){for(var M=0;M<P._howls[k]._sounds.length;M++)if(!P._howls[k]._sounds[M]._paused)return P}return P._suspendTimer&&clearTimeout(P._suspendTimer),P._suspendTimer=setTimeout(function(){if(P.autoSuspend){P._suspendTimer=null,P.state="suspending";var R=function(){P.state="suspended",P._resumeAfterSuspend&&(delete P._resumeAfterSuspend,P._autoResume())};P.ctx.suspend().then(R,R)}},3e4),P}},_autoResume:function(){var P=this;if(!(!P.ctx||typeof P.ctx.resume>"u"||!b.usingWebAudio))return P.state==="running"&&P.ctx.state!=="interrupted"&&P._suspendTimer?(clearTimeout(P._suspendTimer),P._suspendTimer=null):P.state==="suspended"||P.state==="running"&&P.ctx.state==="interrupted"?(P.ctx.resume().then(function(){P.state="running";for(var k=0;k<P._howls.length;k++)P._howls[k]._emit("resume")}),P._suspendTimer&&(clearTimeout(P._suspendTimer),P._suspendTimer=null)):P.state==="suspending"&&(P._resumeAfterSuspend=!0),P}};var b=new g,A=function(P){var k=this;if(!P.src||P.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}k.init(P)};A.prototype={init:function(P){var k=this;return b.ctx||$(),k._autoplay=P.autoplay||!1,k._format=typeof P.format!="string"?P.format:[P.format],k._html5=P.html5||!1,k._muted=P.mute||!1,k._loop=P.loop||!1,k._pool=P.pool||5,k._preload=typeof P.preload=="boolean"||P.preload==="metadata"?P.preload:!0,k._rate=P.rate||1,k._sprite=P.sprite||{},k._src=typeof P.src!="string"?P.src:[P.src],k._volume=P.volume!==void 0?P.volume:1,k._xhr={method:P.xhr&&P.xhr.method?P.xhr.method:"GET",headers:P.xhr&&P.xhr.headers?P.xhr.headers:null,withCredentials:P.xhr&&P.xhr.withCredentials?P.xhr.withCredentials:!1},k._duration=0,k._state="unloaded",k._sounds=[],k._endTimers={},k._queue=[],k._playLock=!1,k._onend=P.onend?[{fn:P.onend}]:[],k._onfade=P.onfade?[{fn:P.onfade}]:[],k._onload=P.onload?[{fn:P.onload}]:[],k._onloaderror=P.onloaderror?[{fn:P.onloaderror}]:[],k._onplayerror=P.onplayerror?[{fn:P.onplayerror}]:[],k._onpause=P.onpause?[{fn:P.onpause}]:[],k._onplay=P.onplay?[{fn:P.onplay}]:[],k._onstop=P.onstop?[{fn:P.onstop}]:[],k._onmute=P.onmute?[{fn:P.onmute}]:[],k._onvolume=P.onvolume?[{fn:P.onvolume}]:[],k._onrate=P.onrate?[{fn:P.onrate}]:[],k._onseek=P.onseek?[{fn:P.onseek}]:[],k._onunlock=P.onunlock?[{fn:P.onunlock}]:[],k._onresume=[],k._webAudio=b.usingWebAudio&&!k._html5,typeof b.ctx<"u"&&b.ctx&&b.autoUnlock&&b._unlockAudio(),b._howls.push(k),k._autoplay&&k._queue.push({event:"play",action:function(){k.play()}}),k._preload&&k._preload!=="none"&&k.load(),k},load:function(){var P=this,k=null;if(b.noAudio){P._emit("loaderror",null,"No audio support.");return}typeof P._src=="string"&&(P._src=[P._src]);for(var M=0;M<P._src.length;M++){var R,F;if(P._format&&P._format[M])R=P._format[M];else{if(F=P._src[M],typeof F!="string"){P._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}R=/^data:audio\/([^;,]+);/i.exec(F),R||(R=/\.([^.]+)$/.exec(F.split("?",1)[0])),R&&(R=R[1].toLowerCase())}if(R||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),R&&b.codecs(R)){k=P._src[M];break}}if(!k){P._emit("loaderror",null,"No codec support for selected audio sources.");return}return P._src=k,P._state="loading",window.location.protocol==="https:"&&k.slice(0,5)==="http:"&&(P._html5=!0,P._webAudio=!1),new w(P),P._webAudio&&x(P),P},play:function(P,k){var M=this,R=null;if(typeof P=="number")R=P,P=null;else{if(typeof P=="string"&&M._state==="loaded"&&!M._sprite[P])return null;if(typeof P>"u"&&(P="__default",!M._playLock)){for(var F=0,L=0;L<M._sounds.length;L++)M._sounds[L]._paused&&!M._sounds[L]._ended&&(F++,R=M._sounds[L]._id);F===1?P=null:R=null}}var z=R?M._soundById(R):M._inactiveSound();if(!z)return null;if(R&&!P&&(P=z._sprite||"__default"),M._state!=="loaded"){z._sprite=P,z._ended=!1;var U=z._id;return M._queue.push({event:"play",action:function(){M.play(U)}}),U}if(R&&!z._paused)return k||M._loadQueue("play"),z._id;M._webAudio&&b._autoResume();var W=Math.max(0,z._seek>0?z._seek:M._sprite[P][0]/1e3),V=Math.max(0,(M._sprite[P][0]+M._sprite[P][1])/1e3-W),Q=V*1e3/Math.abs(z._rate),K=M._sprite[P][0]/1e3,G=(M._sprite[P][0]+M._sprite[P][1])/1e3;z._sprite=P,z._ended=!1;var X=function(){z._paused=!1,z._seek=W,z._start=K,z._stop=G,z._loop=!!(z._loop||M._sprite[P][2])};if(W>=G){M._ended(z);return}var J=z._node;if(M._webAudio){var re=function(){M._playLock=!1,X(),M._refreshBuffer(z);var ce=z._muted||M._muted?0:z._volume;J.gain.setValueAtTime(ce,b.ctx.currentTime),z._playStart=b.ctx.currentTime,typeof J.bufferSource.start>"u"?z._loop?J.bufferSource.noteGrainOn(0,W,86400):J.bufferSource.noteGrainOn(0,W,V):z._loop?J.bufferSource.start(0,W,86400):J.bufferSource.start(0,W,V),Q!==1/0&&(M._endTimers[z._id]=setTimeout(M._ended.bind(M,z),Q)),k||setTimeout(function(){M._emit("play",z._id),M._loadQueue()},0)};b.state==="running"&&b.ctx.state!=="interrupted"?re():(M._playLock=!0,M.once("resume",re),M._clearTimer(z._id))}else{var fe=function(){J.currentTime=W,J.muted=z._muted||M._muted||b._muted||J.muted,J.volume=z._volume*b.volume(),J.playbackRate=z._rate;try{var ce=J.play();if(ce&&typeof Promise<"u"&&(ce instanceof Promise||typeof ce.then=="function")?(M._playLock=!0,X(),ce.then(function(){M._playLock=!1,J._unlocked=!0,k?M._loadQueue():M._emit("play",z._id)}).catch(function(){M._playLock=!1,M._emit("playerror",z._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."),z._ended=!0,z._paused=!0})):k||(M._playLock=!1,X(),M._emit("play",z._id)),J.playbackRate=z._rate,J.paused){M._emit("playerror",z._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}P!=="__default"||z._loop?M._endTimers[z._id]=setTimeout(M._ended.bind(M,z),Q):(M._endTimers[z._id]=function(){M._ended(z),J.removeEventListener("ended",M._endTimers[z._id],!1)},J.addEventListener("ended",M._endTimers[z._id],!1))}catch(me){M._emit("playerror",z._id,me)}};J.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(J.src=M._src,J.load());var Z=window&&window.ejecta||!J.readyState&&b._navigator.isCocoonJS;if(J.readyState>=3||Z)fe();else{M._playLock=!0,M._state="loading";var ie=function(){M._state="loaded",fe(),J.removeEventListener(b._canPlayEvent,ie,!1)};J.addEventListener(b._canPlayEvent,ie,!1),M._clearTimer(z._id)}}return z._id},pause:function(P){var k=this;if(k._state!=="loaded"||k._playLock)return k._queue.push({event:"pause",action:function(){k.pause(P)}}),k;for(var M=k._getSoundIds(P),R=0;R<M.length;R++){k._clearTimer(M[R]);var F=k._soundById(M[R]);if(F&&!F._paused&&(F._seek=k.seek(M[R]),F._rateSeek=0,F._paused=!0,k._stopFade(M[R]),F._node))if(k._webAudio){if(!F._node.bufferSource)continue;typeof F._node.bufferSource.stop>"u"?F._node.bufferSource.noteOff(0):F._node.bufferSource.stop(0),k._cleanBuffer(F._node)}else(!isNaN(F._node.duration)||F._node.duration===1/0)&&F._node.pause();arguments[1]||k._emit("pause",F?F._id:null)}return k},stop:function(P,k){var M=this;if(M._state!=="loaded"||M._playLock)return M._queue.push({event:"stop",action:function(){M.stop(P)}}),M;for(var R=M._getSoundIds(P),F=0;F<R.length;F++){M._clearTimer(R[F]);var L=M._soundById(R[F]);L&&(L._seek=L._start||0,L._rateSeek=0,L._paused=!0,L._ended=!0,M._stopFade(R[F]),L._node&&(M._webAudio?L._node.bufferSource&&(typeof L._node.bufferSource.stop>"u"?L._node.bufferSource.noteOff(0):L._node.bufferSource.stop(0),M._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&&M._clearSound(L._node))),k||M._emit("stop",L._id))}return M},mute:function(P,k){var M=this;if(M._state!=="loaded"||M._playLock)return M._queue.push({event:"mute",action:function(){M.mute(P,k)}}),M;if(typeof k>"u")if(typeof P=="boolean")M._muted=P;else return M._muted;for(var R=M._getSoundIds(k),F=0;F<R.length;F++){var L=M._soundById(R[F]);L&&(L._muted=P,L._interval&&M._stopFade(L._id),M._webAudio&&L._node?L._node.gain.setValueAtTime(P?0:L._volume,b.ctx.currentTime):L._node&&(L._node.muted=b._muted?!0:P),M._emit("mute",L._id))}return M},volume:function(){var P=this,k=arguments,M,R;if(k.length===0)return P._volume;if(k.length===1||k.length===2&&typeof k[1]>"u"){var F=P._getSoundIds(),L=F.indexOf(k[0]);L>=0?R=parseInt(k[0],10):M=parseFloat(k[0])}else k.length>=2&&(M=parseFloat(k[0]),R=parseInt(k[1],10));var z;if(typeof M<"u"&&M>=0&&M<=1){if(P._state!=="loaded"||P._playLock)return P._queue.push({event:"volume",action:function(){P.volume.apply(P,k)}}),P;typeof R>"u"&&(P._volume=M),R=P._getSoundIds(R);for(var U=0;U<R.length;U++)z=P._soundById(R[U]),z&&(z._volume=M,k[2]||P._stopFade(R[U]),P._webAudio&&z._node&&!z._muted?z._node.gain.setValueAtTime(M,b.ctx.currentTime):z._node&&!z._muted&&(z._node.volume=M*b.volume()),P._emit("volume",z._id))}else return z=R?P._soundById(R):P._sounds[0],z?z._volume:0;return P},fade:function(P,k,M,R){var F=this;if(F._state!=="loaded"||F._playLock)return F._queue.push({event:"fade",action:function(){F.fade(P,k,M,R)}}),F;P=Math.min(Math.max(0,parseFloat(P)),1),k=Math.min(Math.max(0,parseFloat(k)),1),M=parseFloat(M),F.volume(P,R);for(var L=F._getSoundIds(R),z=0;z<L.length;z++){var U=F._soundById(L[z]);if(U){if(R||F._stopFade(L[z]),F._webAudio&&!U._muted){var W=b.ctx.currentTime,V=W+M/1e3;U._volume=P,U._node.gain.setValueAtTime(P,W),U._node.gain.linearRampToValueAtTime(k,V)}F._startFadeInterval(U,P,k,M,L[z],typeof R>"u")}}return F},_startFadeInterval:function(P,k,M,R,F,L){var z=this,U=k,W=M-k,V=Math.abs(W/.01),Q=Math.max(4,V>0?R/V:R),K=Date.now();P._fadeTo=M,P._interval=setInterval(function(){var G=(Date.now()-K)/R;K=Date.now(),U+=W*G,U=Math.round(U*100)/100,W<0?U=Math.max(M,U):U=Math.min(M,U),z._webAudio?P._volume=U:z.volume(U,P._id,!0),L&&(z._volume=U),(M<k&&U<=M||M>k&&U>=M)&&(clearInterval(P._interval),P._interval=null,P._fadeTo=null,z.volume(M,P._id),z._emit("fade",P._id))},Q)},_stopFade:function(P){var k=this,M=k._soundById(P);return M&&M._interval&&(k._webAudio&&M._node.gain.cancelScheduledValues(b.ctx.currentTime),clearInterval(M._interval),M._interval=null,k.volume(M._fadeTo,P),M._fadeTo=null,k._emit("fade",P)),k},loop:function(){var P=this,k=arguments,M,R,F;if(k.length===0)return P._loop;if(k.length===1)if(typeof k[0]=="boolean")M=k[0],P._loop=M;else return F=P._soundById(parseInt(k[0],10)),F?F._loop:!1;else k.length===2&&(M=k[0],R=parseInt(k[1],10));for(var L=P._getSoundIds(R),z=0;z<L.length;z++)F=P._soundById(L[z]),F&&(F._loop=M,P._webAudio&&F._node&&F._node.bufferSource&&(F._node.bufferSource.loop=M,M&&(F._node.bufferSource.loopStart=F._start||0,F._node.bufferSource.loopEnd=F._stop,P.playing(L[z])&&(P.pause(L[z],!0),P.play(L[z],!0)))));return P},rate:function(){var P=this,k=arguments,M,R;if(k.length===0)R=P._sounds[0]._id;else if(k.length===1){var F=P._getSoundIds(),L=F.indexOf(k[0]);L>=0?R=parseInt(k[0],10):M=parseFloat(k[0])}else k.length===2&&(M=parseFloat(k[0]),R=parseInt(k[1],10));var z;if(typeof M=="number"){if(P._state!=="loaded"||P._playLock)return P._queue.push({event:"rate",action:function(){P.rate.apply(P,k)}}),P;typeof R>"u"&&(P._rate=M),R=P._getSoundIds(R);for(var U=0;U<R.length;U++)if(z=P._soundById(R[U]),z){P.playing(R[U])&&(z._rateSeek=P.seek(R[U]),z._playStart=P._webAudio?b.ctx.currentTime:z._playStart),z._rate=M,P._webAudio&&z._node&&z._node.bufferSource?z._node.bufferSource.playbackRate.setValueAtTime(M,b.ctx.currentTime):z._node&&(z._node.playbackRate=M);var W=P.seek(R[U]),V=(P._sprite[z._sprite][0]+P._sprite[z._sprite][1])/1e3-W,Q=V*1e3/Math.abs(z._rate);(P._endTimers[R[U]]||!z._paused)&&(P._clearTimer(R[U]),P._endTimers[R[U]]=setTimeout(P._ended.bind(P,z),Q)),P._emit("rate",z._id)}}else return z=P._soundById(R),z?z._rate:P._rate;return P},seek:function(){var P=this,k=arguments,M,R;if(k.length===0)P._sounds.length&&(R=P._sounds[0]._id);else if(k.length===1){var F=P._getSoundIds(),L=F.indexOf(k[0]);L>=0?R=parseInt(k[0],10):P._sounds.length&&(R=P._sounds[0]._id,M=parseFloat(k[0]))}else k.length===2&&(M=parseFloat(k[0]),R=parseInt(k[1],10));if(typeof R>"u")return 0;if(typeof M=="number"&&(P._state!=="loaded"||P._playLock))return P._queue.push({event:"seek",action:function(){P.seek.apply(P,k)}}),P;var z=P._soundById(R);if(z)if(typeof M=="number"&&M>=0){var U=P.playing(R);U&&P.pause(R,!0),z._seek=M,z._ended=!1,P._clearTimer(R),!P._webAudio&&z._node&&!isNaN(z._node.duration)&&(z._node.currentTime=M);var W=function(){U&&P.play(R,!0),P._emit("seek",R)};if(U&&!P._webAudio){var V=function(){P._playLock?setTimeout(V,0):W()};setTimeout(V,0)}else W()}else if(P._webAudio){var Q=P.playing(R)?b.ctx.currentTime-z._playStart:0,K=z._rateSeek?z._rateSeek-z._seek:0;return z._seek+(K+Q*Math.abs(z._rate))}else return z._node.currentTime;return P},playing:function(P){var k=this;if(typeof P=="number"){var M=k._soundById(P);return M?!M._paused:!1}for(var R=0;R<k._sounds.length;R++)if(!k._sounds[R]._paused)return!0;return!1},duration:function(P){var k=this,M=k._duration,R=k._soundById(P);return R&&(M=k._sprite[R._sprite][1]/1e3),M},state:function(){return this._state},unload:function(){for(var P=this,k=P._sounds,M=0;M<k.length;M++)k[M]._paused||P.stop(k[M]._id),P._webAudio||(P._clearSound(k[M]._node),k[M]._node.removeEventListener("error",k[M]._errorFn,!1),k[M]._node.removeEventListener(b._canPlayEvent,k[M]._loadFn,!1),k[M]._node.removeEventListener("ended",k[M]._endFn,!1),b._releaseHtml5Audio(k[M]._node)),delete k[M]._node,P._clearTimer(k[M]._id);var R=b._howls.indexOf(P);R>=0&&b._howls.splice(R,1);var F=!0;for(M=0;M<b._howls.length;M++)if(b._howls[M]._src===P._src||P._src.indexOf(b._howls[M]._src)>=0){F=!1;break}return C&&F&&delete C[P._src],b.noAudio=!1,P._state="unloaded",P._sounds=[],P=null,null},on:function(P,k,M,R){var F=this,L=F["_on"+P];return typeof k=="function"&&L.push(R?{id:M,fn:k,once:R}:{id:M,fn:k}),F},off:function(P,k,M){var R=this,F=R["_on"+P],L=0;if(typeof k=="number"&&(M=k,k=null),k||M)for(L=0;L<F.length;L++){var z=M===F[L].id;if(k===F[L].fn&&z||!k&&z){F.splice(L,1);break}}else if(P)R["_on"+P]=[];else{var U=Object.keys(R);for(L=0;L<U.length;L++)U[L].indexOf("_on")===0&&Array.isArray(R[U[L]])&&(R[U[L]]=[])}return R},once:function(P,k,M){var R=this;return R.on(P,k,M,1),R},_emit:function(P,k,M){for(var R=this,F=R["_on"+P],L=F.length-1;L>=0;L--)(!F[L].id||F[L].id===k||P==="load")&&(setTimeout(function(z){z.call(this,k,M)}.bind(R,F[L].fn),0),F[L].once&&R.off(P,F[L].fn,F[L].id));return R._loadQueue(P),R},_loadQueue:function(P){var k=this;if(k._queue.length>0){var M=k._queue[0];M.event===P&&(k._queue.shift(),k._loadQueue()),P||M.action()}return k},_ended:function(P){var k=this,M=P._sprite;if(!k._webAudio&&P._node&&!P._node.paused&&!P._node.ended&&P._node.currentTime<P._stop)return setTimeout(k._ended.bind(k,P),100),k;var R=!!(P._loop||k._sprite[M][2]);if(k._emit("end",P._id),!k._webAudio&&R&&k.stop(P._id,!0).play(P._id),k._webAudio&&R){k._emit("play",P._id),P._seek=P._start||0,P._rateSeek=0,P._playStart=b.ctx.currentTime;var F=(P._stop-P._start)*1e3/Math.abs(P._rate);k._endTimers[P._id]=setTimeout(k._ended.bind(k,P),F)}return k._webAudio&&!R&&(P._paused=!0,P._ended=!0,P._seek=P._start||0,P._rateSeek=0,k._clearTimer(P._id),k._cleanBuffer(P._node),b._autoSuspend()),!k._webAudio&&!R&&k.stop(P._id,!0),k},_clearTimer:function(P){var k=this;if(k._endTimers[P]){if(typeof k._endTimers[P]!="function")clearTimeout(k._endTimers[P]);else{var M=k._soundById(P);M&&M._node&&M._node.removeEventListener("ended",k._endTimers[P],!1)}delete k._endTimers[P]}return k},_soundById:function(P){for(var k=this,M=0;M<k._sounds.length;M++)if(P===k._sounds[M]._id)return k._sounds[M];return null},_inactiveSound:function(){var P=this;P._drain();for(var k=0;k<P._sounds.length;k++)if(P._sounds[k]._ended)return P._sounds[k].reset();return new w(P)},_drain:function(){var P=this,k=P._pool,M=0,R=0;if(!(P._sounds.length<k)){for(R=0;R<P._sounds.length;R++)P._sounds[R]._ended&&M++;for(R=P._sounds.length-1;R>=0;R--){if(M<=k)return;P._sounds[R]._ended&&(P._webAudio&&P._sounds[R]._node&&P._sounds[R]._node.disconnect(0),P._sounds.splice(R,1),M--)}}},_getSoundIds:function(P){var k=this;if(typeof P>"u"){for(var M=[],R=0;R<k._sounds.length;R++)M.push(k._sounds[R]._id);return M}else return[P]},_refreshBuffer:function(P){var k=this;return P._node.bufferSource=b.ctx.createBufferSource(),P._node.bufferSource.buffer=C[k._src],P._panner?P._node.bufferSource.connect(P._panner):P._node.bufferSource.connect(P._node),P._node.bufferSource.loop=P._loop,P._loop&&(P._node.bufferSource.loopStart=P._start||0,P._node.bufferSource.loopEnd=P._stop||0),P._node.bufferSource.playbackRate.setValueAtTime(P._rate,b.ctx.currentTime),k},_cleanBuffer:function(P){var k=this,M=b._navigator&&b._navigator.vendor.indexOf("Apple")>=0;if(b._scratchBuffer&&P.bufferSource&&(P.bufferSource.onended=null,P.bufferSource.disconnect(0),M))try{P.bufferSource.buffer=b._scratchBuffer}catch(R){}return P.bufferSource=null,k},_clearSound:function(P){var k=/MSIE |Trident\//.test(b._navigator&&b._navigator.userAgent);k||(P.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var w=function(P){this._parent=P,this.init()};w.prototype={init:function(){var P=this,k=P._parent;return P._muted=k._muted,P._loop=k._loop,P._volume=k._volume,P._rate=k._rate,P._seek=0,P._paused=!0,P._ended=!0,P._sprite="__default",P._id=++b._counter,k._sounds.push(P),P.create(),P},create:function(){var P=this,k=P._parent,M=b._muted||P._muted||P._parent._muted?0:P._volume;return k._webAudio?(P._node=typeof b.ctx.createGain>"u"?b.ctx.createGainNode():b.ctx.createGain(),P._node.gain.setValueAtTime(M,b.ctx.currentTime),P._node.paused=!0,P._node.connect(b.masterGain)):b.noAudio||(P._node=b._obtainHtml5Audio(),P._errorFn=P._errorListener.bind(P),P._node.addEventListener("error",P._errorFn,!1),P._loadFn=P._loadListener.bind(P),P._node.addEventListener(b._canPlayEvent,P._loadFn,!1),P._endFn=P._endListener.bind(P),P._node.addEventListener("ended",P._endFn,!1),P._node.src=k._src,P._node.preload=k._preload===!0?"auto":k._preload,P._node.volume=M*b.volume(),P._node.load()),P},reset:function(){var P=this,k=P._parent;return P._muted=k._muted,P._loop=k._loop,P._volume=k._volume,P._rate=k._rate,P._seek=0,P._rateSeek=0,P._paused=!0,P._ended=!0,P._sprite="__default",P._id=++b._counter,P},_errorListener:function(){var P=this;P._parent._emit("loaderror",P._id,P._node.error?P._node.error.code:0),P._node.removeEventListener("error",P._errorFn,!1)},_loadListener:function(){var P=this,k=P._parent;k._duration=Math.ceil(P._node.duration*10)/10,Object.keys(k._sprite).length===0&&(k._sprite={__default:[0,k._duration*1e3]}),k._state!=="loaded"&&(k._state="loaded",k._emit("load"),k._loadQueue()),P._node.removeEventListener(b._canPlayEvent,P._loadFn,!1)},_endListener:function(){var P=this,k=P._parent;k._duration===1/0&&(k._duration=Math.ceil(P._node.duration*10)/10,k._sprite.__default[1]===1/0&&(k._sprite.__default[1]=k._duration*1e3),k._ended(P)),P._node.removeEventListener("ended",P._endFn,!1)}};var C={},x=function(P){var k=P._src;if(C[k]){P._duration=C[k].duration,B(P);return}if(/^data:[^;]+;base64,/.test(k)){for(var M=atob(k.split(",")[1]),R=new Uint8Array(M.length),F=0;F<M.length;++F)R[F]=M.charCodeAt(F);E(R.buffer,P)}else{var L=new XMLHttpRequest;L.open(P._xhr.method,k,!0),L.withCredentials=P._xhr.withCredentials,L.responseType="arraybuffer",P._xhr.headers&&Object.keys(P._xhr.headers).forEach(function(z){L.setRequestHeader(z,P._xhr.headers[z])}),L.onload=function(){var z=(L.status+"")[0];if(z!=="0"&&z!=="2"&&z!=="3"){P._emit("loaderror",null,"Failed loading audio file with status: "+L.status+".");return}E(L.response,P)},L.onerror=function(){P._webAudio&&(P._html5=!0,P._webAudio=!1,P._sounds=[],delete C[k],P.load())},S(L)}},S=function(P){try{P.send()}catch(k){P.onerror()}},E=function(P,k){var M=function(){k._emit("loaderror",null,"Decoding audio data failed.")},R=function(F){F&&k._sounds.length>0?(C[k._src]=F,B(k,F)):M()};typeof Promise<"u"&&b.ctx.decodeAudioData.length===1?b.ctx.decodeAudioData(P).then(R).catch(M):b.ctx.decodeAudioData(P,R,M)},B=function(P,k){k&&!P._duration&&(P._duration=k.duration),Object.keys(P._sprite).length===0&&(P._sprite={__default:[0,P._duration*1e3]}),P._state!=="loaded"&&(P._state="loaded",P._emit("load"),P._loadQueue())},$=function(){if(b.usingWebAudio){try{typeof AudioContext<"u"?b.ctx=new AudioContext:typeof webkitAudioContext<"u"?b.ctx=new webkitAudioContext:b.usingWebAudio=!1}catch(F){b.usingWebAudio=!1}b.ctx||(b.usingWebAudio=!1);var P=/iP(hone|od|ad)/.test(b._navigator&&b._navigator.platform),k=b._navigator&&b._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),M=k?parseInt(k[1],10):null;if(P&&M&&M<9){var R=/safari/.test(b._navigator&&b._navigator.userAgent.toLowerCase());b._navigator&&!R&&(b.usingWebAudio=!1)}b.usingWebAudio&&(b.masterGain=typeof b.ctx.createGain>"u"?b.ctx.createGainNode():b.ctx.createGain(),b.masterGain.gain.setValueAtTime(b._muted?0:b._volume,b.ctx.currentTime),b.masterGain.connect(b.ctx.destination)),b._setup()}};d.Howler=b,d.Howl=A,typeof commonjsGlobal<"u"?(commonjsGlobal.HowlerGlobal=g,commonjsGlobal.Howler=b,commonjsGlobal.Howl=A,commonjsGlobal.Sound=w):typeof window<"u"&&(window.HowlerGlobal=g,window.Howler=b,window.Howl=A,window.Sound=w)})();/*!
  2519. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  2520. *
  2521. * howler.js v2.2.3
  2522. * howlerjs.com
  2523. *
  2524. * (c) 2013-2020, James Simpson of GoldFire Studios
  2525. * goldfirestudios.com
  2526. *
  2527. * MIT License
  2528. */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(b){var A=this;if(!A.ctx||!A.ctx.listener)return A;for(var w=A._howls.length-1;w>=0;w--)A._howls[w].stereo(b);return A},HowlerGlobal.prototype.pos=function(b,A,w){var C=this;if(!C.ctx||!C.ctx.listener)return C;if(A=typeof A!="number"?C._pos[1]:A,w=typeof w!="number"?C._pos[2]:w,typeof b=="number")C._pos=[b,A,w],typeof C.ctx.listener.positionX<"u"?(C.ctx.listener.positionX.setTargetAtTime(C._pos[0],Howler.ctx.currentTime,.1),C.ctx.listener.positionY.setTargetAtTime(C._pos[1],Howler.ctx.currentTime,.1),C.ctx.listener.positionZ.setTargetAtTime(C._pos[2],Howler.ctx.currentTime,.1)):C.ctx.listener.setPosition(C._pos[0],C._pos[1],C._pos[2]);else return C._pos;return C},HowlerGlobal.prototype.orientation=function(b,A,w,C,x,S){var E=this;if(!E.ctx||!E.ctx.listener)return E;var B=E._orientation;if(A=typeof A!="number"?B[1]:A,w=typeof w!="number"?B[2]:w,C=typeof C!="number"?B[3]:C,x=typeof x!="number"?B[4]:x,S=typeof S!="number"?B[5]:S,typeof b=="number")E._orientation=[b,A,w,C,x,S],typeof E.ctx.listener.forwardX<"u"?(E.ctx.listener.forwardX.setTargetAtTime(b,Howler.ctx.currentTime,.1),E.ctx.listener.forwardY.setTargetAtTime(A,Howler.ctx.currentTime,.1),E.ctx.listener.forwardZ.setTargetAtTime(w,Howler.ctx.currentTime,.1),E.ctx.listener.upX.setTargetAtTime(C,Howler.ctx.currentTime,.1),E.ctx.listener.upY.setTargetAtTime(x,Howler.ctx.currentTime,.1),E.ctx.listener.upZ.setTargetAtTime(S,Howler.ctx.currentTime,.1)):E.ctx.listener.setOrientation(b,A,w,C,x,S);else return B;return E},Howl.prototype.init=function(b){return function(A){var w=this;return w._orientation=A.orientation||[1,0,0],w._stereo=A.stereo||null,w._pos=A.pos||null,w._pannerAttr={coneInnerAngle:typeof A.coneInnerAngle<"u"?A.coneInnerAngle:360,coneOuterAngle:typeof A.coneOuterAngle<"u"?A.coneOuterAngle:360,coneOuterGain:typeof A.coneOuterGain<"u"?A.coneOuterGain:0,distanceModel:typeof A.distanceModel<"u"?A.distanceModel:"inverse",maxDistance:typeof A.maxDistance<"u"?A.maxDistance:1e4,panningModel:typeof A.panningModel<"u"?A.panningModel:"HRTF",refDistance:typeof A.refDistance<"u"?A.refDistance:1,rolloffFactor:typeof A.rolloffFactor<"u"?A.rolloffFactor:1},w._onstereo=A.onstereo?[{fn:A.onstereo}]:[],w._onpos=A.onpos?[{fn:A.onpos}]:[],w._onorientation=A.onorientation?[{fn:A.onorientation}]:[],b.call(this,A)}}(Howl.prototype.init),Howl.prototype.stereo=function(b,A){var w=this;if(!w._webAudio)return w;if(w._state!=="loaded")return w._queue.push({event:"stereo",action:function(){w.stereo(b,A)}}),w;var C=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof A>"u")if(typeof b=="number")w._stereo=b,w._pos=[b,0,0];else return w._stereo;for(var x=w._getSoundIds(A),S=0;S<x.length;S++){var E=w._soundById(x[S]);if(E)if(typeof b=="number")E._stereo=b,E._pos=[b,0,0],E._node&&(E._pannerAttr.panningModel="equalpower",(!E._panner||!E._panner.pan)&&g(E,C),C==="spatial"?typeof E._panner.positionX<"u"?(E._panner.positionX.setValueAtTime(b,Howler.ctx.currentTime),E._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),E._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):E._panner.setPosition(b,0,0):E._panner.pan.setValueAtTime(b,Howler.ctx.currentTime)),w._emit("stereo",E._id);else return E._stereo}return w},Howl.prototype.pos=function(b,A,w,C){var x=this;if(!x._webAudio)return x;if(x._state!=="loaded")return x._queue.push({event:"pos",action:function(){x.pos(b,A,w,C)}}),x;if(A=typeof A!="number"?0:A,w=typeof w!="number"?-.5:w,typeof C>"u")if(typeof b=="number")x._pos=[b,A,w];else return x._pos;for(var S=x._getSoundIds(C),E=0;E<S.length;E++){var B=x._soundById(S[E]);if(B)if(typeof b=="number")B._pos=[b,A,w],B._node&&((!B._panner||B._panner.pan)&&g(B,"spatial"),typeof B._panner.positionX<"u"?(B._panner.positionX.setValueAtTime(b,Howler.ctx.currentTime),B._panner.positionY.setValueAtTime(A,Howler.ctx.currentTime),B._panner.positionZ.setValueAtTime(w,Howler.ctx.currentTime)):B._panner.setPosition(b,A,w)),x._emit("pos",B._id);else return B._pos}return x},Howl.prototype.orientation=function(b,A,w,C){var x=this;if(!x._webAudio)return x;if(x._state!=="loaded")return x._queue.push({event:"orientation",action:function(){x.orientation(b,A,w,C)}}),x;if(A=typeof A!="number"?x._orientation[1]:A,w=typeof w!="number"?x._orientation[2]:w,typeof C>"u")if(typeof b=="number")x._orientation=[b,A,w];else return x._orientation;for(var S=x._getSoundIds(C),E=0;E<S.length;E++){var B=x._soundById(S[E]);if(B)if(typeof b=="number")B._orientation=[b,A,w],B._node&&(B._panner||(B._pos||(B._pos=x._pos||[0,0,-.5]),g(B,"spatial")),typeof B._panner.orientationX<"u"?(B._panner.orientationX.setValueAtTime(b,Howler.ctx.currentTime),B._panner.orientationY.setValueAtTime(A,Howler.ctx.currentTime),B._panner.orientationZ.setValueAtTime(w,Howler.ctx.currentTime)):B._panner.setOrientation(b,A,w)),x._emit("orientation",B._id);else return B._orientation}return x},Howl.prototype.pannerAttr=function(){var b=this,A=arguments,w,C,x;if(!b._webAudio)return b;if(A.length===0)return b._pannerAttr;if(A.length===1)if(typeof A[0]=="object")w=A[0],typeof C>"u"&&(w.pannerAttr||(w.pannerAttr={coneInnerAngle:w.coneInnerAngle,coneOuterAngle:w.coneOuterAngle,coneOuterGain:w.coneOuterGain,distanceModel:w.distanceModel,maxDistance:w.maxDistance,refDistance:w.refDistance,rolloffFactor:w.rolloffFactor,panningModel:w.panningModel}),b._pannerAttr={coneInnerAngle:typeof w.pannerAttr.coneInnerAngle<"u"?w.pannerAttr.coneInnerAngle:b._coneInnerAngle,coneOuterAngle:typeof w.pannerAttr.coneOuterAngle<"u"?w.pannerAttr.coneOuterAngle:b._coneOuterAngle,coneOuterGain:typeof w.pannerAttr.coneOuterGain<"u"?w.pannerAttr.coneOuterGain:b._coneOuterGain,distanceModel:typeof w.pannerAttr.distanceModel<"u"?w.pannerAttr.distanceModel:b._distanceModel,maxDistance:typeof w.pannerAttr.maxDistance<"u"?w.pannerAttr.maxDistance:b._maxDistance,refDistance:typeof w.pannerAttr.refDistance<"u"?w.pannerAttr.refDistance:b._refDistance,rolloffFactor:typeof w.pannerAttr.rolloffFactor<"u"?w.pannerAttr.rolloffFactor:b._rolloffFactor,panningModel:typeof w.pannerAttr.panningModel<"u"?w.pannerAttr.panningModel:b._panningModel});else return x=b._soundById(parseInt(A[0],10)),x?x._pannerAttr:b._pannerAttr;else A.length===2&&(w=A[0],C=parseInt(A[1],10));for(var S=b._getSoundIds(C),E=0;E<S.length;E++)if(x=b._soundById(S[E]),x){var B=x._pannerAttr;B={coneInnerAngle:typeof w.coneInnerAngle<"u"?w.coneInnerAngle:B.coneInnerAngle,coneOuterAngle:typeof w.coneOuterAngle<"u"?w.coneOuterAngle:B.coneOuterAngle,coneOuterGain:typeof w.coneOuterGain<"u"?w.coneOuterGain:B.coneOuterGain,distanceModel:typeof w.distanceModel<"u"?w.distanceModel:B.distanceModel,maxDistance:typeof w.maxDistance<"u"?w.maxDistance:B.maxDistance,refDistance:typeof w.refDistance<"u"?w.refDistance:B.refDistance,rolloffFactor:typeof w.rolloffFactor<"u"?w.rolloffFactor:B.rolloffFactor,panningModel:typeof w.panningModel<"u"?w.panningModel:B.panningModel};var $=x._panner;$?($.coneInnerAngle=B.coneInnerAngle,$.coneOuterAngle=B.coneOuterAngle,$.coneOuterGain=B.coneOuterGain,$.distanceModel=B.distanceModel,$.maxDistance=B.maxDistance,$.refDistance=B.refDistance,$.rolloffFactor=B.rolloffFactor,$.panningModel=B.panningModel):(x._pos||(x._pos=b._pos||[0,0,-.5]),g(x,"spatial"))}return b},Sound.prototype.init=function(b){return function(){var A=this,w=A._parent;A._orientation=w._orientation,A._stereo=w._stereo,A._pos=w._pos,A._pannerAttr=w._pannerAttr,b.call(this),A._stereo?w.stereo(A._stereo):A._pos&&w.pos(A._pos[0],A._pos[1],A._pos[2],A._id)}}(Sound.prototype.init),Sound.prototype.reset=function(b){return function(){var A=this,w=A._parent;return A._orientation=w._orientation,A._stereo=w._stereo,A._pos=w._pos,A._pannerAttr=w._pannerAttr,A._stereo?w.stereo(A._stereo):A._pos?w.pos(A._pos[0],A._pos[1],A._pos[2],A._id):A._panner&&(A._panner.disconnect(0),A._panner=void 0,w._refreshBuffer(A)),b.call(this)}}(Sound.prototype.reset);var g=function(b,A){A=A||"spatial",A==="spatial"?(b._panner=Howler.ctx.createPanner(),b._panner.coneInnerAngle=b._pannerAttr.coneInnerAngle,b._panner.coneOuterAngle=b._pannerAttr.coneOuterAngle,b._panner.coneOuterGain=b._pannerAttr.coneOuterGain,b._panner.distanceModel=b._pannerAttr.distanceModel,b._panner.maxDistance=b._pannerAttr.maxDistance,b._panner.refDistance=b._pannerAttr.refDistance,b._panner.rolloffFactor=b._pannerAttr.rolloffFactor,b._panner.panningModel=b._pannerAttr.panningModel,typeof b._panner.positionX<"u"?(b._panner.positionX.setValueAtTime(b._pos[0],Howler.ctx.currentTime),b._panner.positionY.setValueAtTime(b._pos[1],Howler.ctx.currentTime),b._panner.positionZ.setValueAtTime(b._pos[2],Howler.ctx.currentTime)):b._panner.setPosition(b._pos[0],b._pos[1],b._pos[2]),typeof b._panner.orientationX<"u"?(b._panner.orientationX.setValueAtTime(b._orientation[0],Howler.ctx.currentTime),b._panner.orientationY.setValueAtTime(b._orientation[1],Howler.ctx.currentTime),b._panner.orientationZ.setValueAtTime(b._orientation[2],Howler.ctx.currentTime)):b._panner.setOrientation(b._orientation[0],b._orientation[1],b._orientation[2])):(b._panner=Howler.ctx.createStereoPanner(),b._panner.pan.setValueAtTime(b._stereo,Howler.ctx.currentTime)),b._panner.connect(b._node),b._paused||b._parent.pause(b._id,!0).play(b._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(g){yn(this,"playType","tick");yn(this,"source",null);yn(this,"source1",null);yn(this,"source2",null);yn(this,"sound",g=>{let b=-1;for(let A=0;A<metronomeData.metroList.length;A++){const w=metronomeData.metroList[A];if(g>=w)b=A;else break}if(b>-1&&metronomeData.activeIndex!==b){metronomeData.activeIndex=b,this.playAudio();return}});yn(this,"playAudio",()=>{metronomeData.initPlayerState&&this.source.play()});yn(this,"loadAudio1",()=>new howler.Howl({src:tockAndTick.tick}));yn(this,"loadAudio2",()=>new howler.Howl({src:tockAndTick.tock}))}init(g){this.calculation(g),metronomeData.activeList=[]}initPlayer(){this.source||(this.source=this.loadAudio1()),this.source.volume(metronomeData.disable?0:1),metronomeData.initPlayerState=!0}selectPlay(){}getStep(g){for(let b=0;b<metronomeData.metroMeasure.length;b++){const w=metronomeData.metroMeasure[b].find(C=>C.time===g);if(w)return w}return{}}calculation(g){var S,E,B,$;const b=[];let A=-1,w=-1;for(let P=0;P<g.length;P++){const k=g[P],M=(S=k==null?void 0:k.timeNote)==null?void 0:S.measureNumber;if(M>-1)if(M!=w){const R={measureNumberXML:M,numerator:((E=k==null?void 0:k.measure)==null?void 0:E.numerator)||0,time:(B=k==null?void 0:k.timeNote)==null?void 0:B.millisecondsPerMeasure,stepList:[],notes:[k]};A++,b[A]=R,w=M}else b[A].notes.push(k)}const C=[],x=[];try{for(let P=0;P<b.length;P++){const k=b[P],M=1/k.numerator,R=k.notes.reduce((U,W)=>{var V;return U+((V=W==null?void 0:W.abcNote)==null?void 0:V.duration)},0),F=Math.floor(R/M),L=k.notes[0].timeNote.milliseconds,z=k.notes[0].timeNote.millisecondsPerMeasure/k.numerator;for(let U=0;U<k.numerator;U++){const W=z*U+L;C.push(W)}}}catch(P){console.log(P)}metronomeData.metroList=C,metronomeData.metroMeasure=x,metronomeData.activeMetro=(($=x[0])==null?void 0:$[0])||{}}}var lodash_isemptyExports={},lodash_isempty={get exports(){return lodash_isemptyExports},set exports(d){lodash_isemptyExports=d}};(function(d,g){var b=9007199254740991,A="[object Arguments]",w="[object Function]",C="[object GeneratorFunction]",x="[object Map]",S="[object Object]",E="[object Promise]",B="[object Set]",$="[object WeakMap]",P="[object DataView]",k=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,R=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,L=R||F||Function("return this")(),z=g&&!g.nodeType&&g,U=z&&!0&&d&&!d.nodeType&&d,W=U&&U.exports===z;function V(He,ct){return He==null?void 0:He[ct]}function Q(He){var ct=!1;if(He!=null&&typeof He.toString!="function")try{ct=!!(He+"")}catch(mt){}return ct}function K(He,ct){return function(mt){return He(ct(mt))}}var G=Function.prototype,X=Object.prototype,J=L["__core-js_shared__"],re=function(){var He=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return He?"Symbol(src)_1."+He:""}(),fe=G.toString,Z=X.hasOwnProperty,ie=X.toString,ce=RegExp("^"+fe.call(Z).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=W?L.Buffer:void 0,ne=X.propertyIsEnumerable,te=me?me.isBuffer:void 0,ue=K(Object.keys,Object),ae=he(L,"DataView"),ye=he(L,"Map"),Oe=he(L,"Promise"),Ye=he(L,"Set"),et=he(L,"WeakMap"),ht=!ne.call({valueOf:1},"valueOf"),Te=Se(ae),Le=Se(ye),Re=Se(Oe),$e=Se(Ye),qe=Se(et);function rt(He){return ie.call(He)}function Xe(He){if(!ot(He)||Be(He))return!1;var ct=De(He)||Q(He)?ce:M;return ct.test(Se(He))}function he(He,ct){var mt=V(He,ct);return Xe(mt)?mt:void 0}var we=rt;(ae&&we(new ae(new ArrayBuffer(1)))!=P||ye&&we(new ye)!=x||Oe&&we(Oe.resolve())!=E||Ye&&we(new Ye)!=B||et&&we(new et)!=$)&&(we=function(He){var ct=ie.call(He),mt=ct==S?He.constructor:void 0,_t=mt?Se(mt):void 0;if(_t)switch(_t){case Te:return P;case Le:return x;case Re:return E;case $e:return B;case qe:return $}return ct});function Be(He){return!!re&&re in He}function Ne(He){var ct=He&&He.constructor,mt=typeof ct=="function"&&ct.prototype||X;return He===mt}function Se(He){if(He!=null){try{return fe.call(He)}catch(ct){}try{return He+""}catch(ct){}}return""}function q(He){return de(He)&&Z.call(He,"callee")&&(!ne.call(He,"callee")||ie.call(He)==A)}var se=Array.isArray;function ge(He){return He!=null&&Qe(He.length)&&!De(He)}function de(He){return st(He)&&ge(He)}var ve=te||ut;function Pe(He){if(ge(He)&&(se(He)||typeof He=="string"||typeof He.splice=="function"||ve(He)||q(He)))return!He.length;var ct=we(He);if(ct==x||ct==B)return!He.size;if(ht||Ne(He))return!ue(He).length;for(var mt in He)if(Z.call(He,mt))return!1;return!0}function De(He){var ct=ot(He)?ie.call(He):"";return ct==w||ct==C}function Qe(He){return typeof He=="number"&&He>-1&&He%1==0&&He<=b}function ot(He){var ct=typeof He;return!!He&&(ct=="object"||ct=="function")}function st(He){return!!He&&typeof He=="object"}function ut(){return!1}d.exports=Pe})(lodash_isempty,lodash_isemptyExports);var objectTag="[object Object]";function isHostObject(d){var g=!1;if(d!=null&&typeof d.toString!="function")try{g=!!(d+"")}catch(b){}return g}function overArg(d,g){return function(b){return d(g(b))}}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 g=getPrototype(d);if(g===null)return!0;var b=hasOwnProperty.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&funcToString.call(b)==objectCtorString}var lodash_isplainobject=isPlainObject$1,lodash_transformExports={},lodash_transform={get exports(){return lodash_transformExports},set exports(d){lodash_transformExports=d}};(function(d,g){var b=200,A="Expected a function",w="__lodash_hash_undefined__",C=1,x=2,S=1/0,E=9007199254740991,B="[object Arguments]",$="[object Array]",P="[object Boolean]",k="[object Date]",M="[object Error]",R="[object Function]",F="[object GeneratorFunction]",L="[object Map]",z="[object Number]",U="[object Object]",W="[object Promise]",V="[object RegExp]",Q="[object Set]",K="[object String]",G="[object Symbol]",X="[object WeakMap]",J="[object ArrayBuffer]",re="[object DataView]",fe="[object Float32Array]",Z="[object Float64Array]",ie="[object Int8Array]",ce="[object Int16Array]",me="[object Int32Array]",ne="[object Uint8Array]",te="[object Uint8ClampedArray]",ue="[object Uint16Array]",ae="[object Uint32Array]",ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Ye=/^\./,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ht=/[\\^$.*+?()[\]{}|]/g,Te=/\\(\\)?/g,Le=/^\[object .+?Constructor\]$/,Re=/^(?:0|[1-9]\d*)$/,$e={};$e[fe]=$e[Z]=$e[ie]=$e[ce]=$e[me]=$e[ne]=$e[te]=$e[ue]=$e[ae]=!0,$e[B]=$e[$]=$e[J]=$e[P]=$e[re]=$e[k]=$e[M]=$e[R]=$e[L]=$e[z]=$e[U]=$e[V]=$e[Q]=$e[K]=$e[X]=!1;var qe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,rt=typeof self=="object"&&self&&self.Object===Object&&self,Xe=qe||rt||Function("return this")(),he=g&&!g.nodeType&&g,we=he&&!0&&d&&!d.nodeType&&d,Be=we&&we.exports===he,Ne=Be&&qe.process,Se=function(){try{return Ne&&Ne.binding("util")}catch(oe){}}(),q=Se&&Se.isTypedArray;function se(oe,Ce){for(var Ge=-1,at=oe?oe.length:0;++Ge<at&&Ce(oe[Ge],Ge,oe)!==!1;);return oe}function ge(oe,Ce){for(var Ge=-1,at=oe?oe.length:0;++Ge<at;)if(Ce(oe[Ge],Ge,oe))return!0;return!1}function de(oe){return function(Ce){return Ce==null?void 0:Ce[oe]}}function ve(oe,Ce){for(var Ge=-1,at=Array(oe);++Ge<oe;)at[Ge]=Ce(Ge);return at}function Pe(oe){return function(Ce){return oe(Ce)}}function De(oe,Ce){return oe==null?void 0:oe[Ce]}function Qe(oe){var Ce=!1;if(oe!=null&&typeof oe.toString!="function")try{Ce=!!(oe+"")}catch(Ge){}return Ce}function ot(oe){var Ce=-1,Ge=Array(oe.size);return oe.forEach(function(at,Pt){Ge[++Ce]=[Pt,at]}),Ge}function st(oe,Ce){return function(Ge){return oe(Ce(Ge))}}function ut(oe){var Ce=-1,Ge=Array(oe.size);return oe.forEach(function(at){Ge[++Ce]=at}),Ge}var He=Array.prototype,ct=Function.prototype,mt=Object.prototype,_t=Xe["__core-js_shared__"],ft=function(){var oe=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return oe?"Symbol(src)_1."+oe:""}(),Ct=ct.toString,pt=mt.hasOwnProperty,bt=mt.toString,be=RegExp("^"+Ct.call(pt).replace(ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=Xe.Symbol,We=Xe.Uint8Array,it=st(Object.getPrototypeOf,Object),gt=Object.create,yt=mt.propertyIsEnumerable,Ae=He.splice,Ie=st(Object.keys,Object),ze=Sn(Xe,"DataView"),Ve=Sn(Xe,"Map"),Ke=Sn(Xe,"Promise"),dt=Sn(Xe,"Set"),Et=Sn(Xe,"WeakMap"),Ft=Sn(Object,"create"),wt=cn(ze),Mt=cn(Ve),_e=cn(Ke),je=cn(dt),lt=cn(Et),Tt=Fe?Fe.prototype:void 0,Ht=Tt?Tt.valueOf:void 0,Nt=Tt?Tt.toString:void 0;function er(oe){var Ce=-1,Ge=oe?oe.length:0;for(this.clear();++Ce<Ge;){var at=oe[Ce];this.set(at[0],at[1])}}function Wt(){this.__data__=Ft?Ft(null):{}}function Dt(oe){return this.has(oe)&&delete this.__data__[oe]}function dr(oe){var Ce=this.__data__;if(Ft){var Ge=Ce[oe];return Ge===w?void 0:Ge}return pt.call(Ce,oe)?Ce[oe]:void 0}function Sr(oe){var Ce=this.__data__;return Ft?Ce[oe]!==void 0:pt.call(Ce,oe)}function an(oe,Ce){var Ge=this.__data__;return Ge[oe]=Ft&&Ce===void 0?w:Ce,this}er.prototype.clear=Wt,er.prototype.delete=Dt,er.prototype.get=dr,er.prototype.has=Sr,er.prototype.set=an;function br(oe){var Ce=-1,Ge=oe?oe.length:0;for(this.clear();++Ce<Ge;){var at=oe[Ce];this.set(at[0],at[1])}}function In(){this.__data__=[]}function Mn(oe){var Ce=this.__data__,Ge=Cn(Ce,oe);if(Ge<0)return!1;var at=Ce.length-1;return Ge==at?Ce.pop():Ae.call(Ce,Ge,1),!0}function To(oe){var Ce=this.__data__,Ge=Cn(Ce,oe);return Ge<0?void 0:Ce[Ge][1]}function Po(oe){return Cn(this.__data__,oe)>-1}function An(oe,Ce){var Ge=this.__data__,at=Cn(Ge,oe);return at<0?Ge.push([oe,Ce]):Ge[at][1]=Ce,this}br.prototype.clear=In,br.prototype.delete=Mn,br.prototype.get=To,br.prototype.has=Po,br.prototype.set=An;function Nr(oe){var Ce=-1,Ge=oe?oe.length:0;for(this.clear();++Ce<Ge;){var at=oe[Ce];this.set(at[0],at[1])}}function wn(){this.__data__={hash:new er,map:new(Ve||br),string:new er}}function Bo(oe){return Rn(this,oe).delete(oe)}function $o(oe){return Rn(this,oe).get(oe)}function ko(oe){return Rn(this,oe).has(oe)}function Jn(oe,Ce){return Rn(this,oe).set(oe,Ce),this}Nr.prototype.clear=wn,Nr.prototype.delete=Bo,Nr.prototype.get=$o,Nr.prototype.has=ko,Nr.prototype.set=Jn;function sn(oe){var Ce=-1,Ge=oe?oe.length:0;for(this.__data__=new Nr;++Ce<Ge;)this.add(oe[Ce])}function Zn(oe){return this.__data__.set(oe,w),this}function Io(oe){return this.__data__.has(oe)}sn.prototype.add=sn.prototype.push=Zn,sn.prototype.has=Io;function Dr(oe){this.__data__=new br(oe)}function Mo(){this.__data__=new br}function No(oe){return this.__data__.delete(oe)}function eo(oe){return this.__data__.get(oe)}function to(oe){return this.__data__.has(oe)}function ro(oe,Ce){var Ge=this.__data__;if(Ge instanceof br){var at=Ge.__data__;if(!Ve||at.length<b-1)return at.push([oe,Ce]),this;Ge=this.__data__=new Nr(at)}return Ge.set(oe,Ce),this}Dr.prototype.clear=Mo,Dr.prototype.delete=No,Dr.prototype.get=eo,Dr.prototype.has=to,Dr.prototype.set=ro;function Nn(oe,Ce){var Ge=Wr(oe)||si(oe)?ve(oe.length,String):[],at=Ge.length,Pt=!!at;for(var xt in oe)(Ce||pt.call(oe,xt))&&!(Pt&&(xt=="length"||fo(xt,at)))&&Ge.push(xt);return Ge}function Cn(oe,Ce){for(var Ge=oe.length;Ge--;)if(ai(oe[Ge][0],Ce))return Ge;return-1}function no(oe){return _r(oe)?gt(oe):{}}var xn=ni();function oo(oe,Ce){return oe&&xn(oe,Ce,Hn)}function io(oe,Ce){Ce=ho(Ce,oe)?[Ce]:Ro(Ce);for(var Ge=0,at=Ce.length;oe!=null&&Ge<at;)oe=oe[po(Ce[Ge++])];return Ge&&Ge==at?oe:void 0}function ao(oe){return bt.call(oe)}function so(oe,Ce){return oe!=null&&Ce in Object(oe)}function ln(oe,Ce,Ge,at,Pt){return oe===Ce?!0:oe==null||Ce==null||!_r(oe)&&!zn(Ce)?oe!==oe&&Ce!==Ce:Do(oe,Ce,ln,Ge,at,Pt)}function Do(oe,Ce,Ge,at,Pt,xt){var Ut=Wr(oe),Bt=Wr(Ce),Kt=$,nr=$;Ut||(Kt=en(oe),Kt=Kt==B?U:Kt),Bt||(nr=en(Ce),nr=nr==B?U:nr);var pr=Kt==U&&!Qe(oe),fr=nr==U&&!Qe(Ce),lr=Kt==nr;if(lr&&!pr)return xt||(xt=new Dr),Ut||yr(oe)?oi(oe,Ce,Ge,at,Pt,xt):Xi(oe,Ce,Kt,Ge,at,Pt,xt);if(!(Pt&x)){var Er=pr&&pt.call(oe,"__wrapped__"),Tr=fr&&pt.call(Ce,"__wrapped__");if(Er||Tr){var Kr=Er?oe.value():oe,Pr=Tr?Ce.value():Ce;return xt||(xt=new Dr),Ge(Kr,Pr,at,Pt,xt)}}return lr?(xt||(xt=new Dr),Ji(oe,Ce,Ge,at,Pt,xt)):!1}function lo(oe,Ce,Ge,at){var Pt=Ge.length,xt=Pt,Ut=!at;if(oe==null)return!xt;for(oe=Object(oe);Pt--;){var Bt=Ge[Pt];if(Ut&&Bt[2]?Bt[1]!==oe[Bt[0]]:!(Bt[0]in oe))return!1}for(;++Pt<xt;){Bt=Ge[Pt];var Kt=Bt[0],nr=oe[Kt],pr=Bt[1];if(Ut&&Bt[2]){if(nr===void 0&&!(Kt in oe))return!1}else{var fr=new Dr;if(at)var lr=at(nr,pr,Kt,oe,Ce,fr);if(!(lr===void 0?ln(pr,nr,at,C|x,fr):lr))return!1}}return!0}function Dn(oe){if(!_r(oe)||ra(oe))return!1;var Ce=ir(oe)||Qe(oe)?be:Le;return Ce.test(cn(oe))}function On(oe){return zn(oe)&&Fn(oe.length)&&!!$e[bt.call(oe)]}function Zr(oe){return typeof oe=="function"?oe:oe==null?fi:typeof oe=="object"?Wr(oe)?Oo(oe[0],oe[1]):uo(oe):Ar(oe)}function co(oe){if(!na(oe))return Ie(oe);var Ce=[];for(var Ge in Object(oe))pt.call(oe,Ge)&&Ge!="constructor"&&Ce.push(Ge);return Ce}function uo(oe){var Ce=Zi(oe);return Ce.length==1&&Ce[0][2]?Jt(Ce[0][0],Ce[0][1]):function(Ge){return Ge===oe||lo(Ge,oe,Ce)}}function Oo(oe,Ce){return ho(oe)&&ii(Ce)?Jt(po(oe),Ce):function(Ge){var at=ci(Ge,oe);return at===void 0&&at===Ce?ui(Ge,oe):ln(Ce,at,void 0,C|x)}}function ti(oe){return function(Ce){return io(Ce,oe)}}function ri(oe){if(typeof oe=="string")return oe;if(Ln(oe))return Nt?Nt.call(oe):"";var Ce=oe+"";return Ce=="0"&&1/oe==-S?"-0":Ce}function Ro(oe){return Wr(oe)?oe:Zt(oe)}function ni(oe){return function(Ce,Ge,at){for(var Pt=-1,xt=Object(Ce),Ut=at(Ce),Bt=Ut.length;Bt--;){var Kt=Ut[oe?Bt:++Pt];if(Ge(xt[Kt],Kt,xt)===!1)break}return Ce}}function oi(oe,Ce,Ge,at,Pt,xt){var Ut=Pt&x,Bt=oe.length,Kt=Ce.length;if(Bt!=Kt&&!(Ut&&Kt>Bt))return!1;var nr=xt.get(oe);if(nr&&xt.get(Ce))return nr==Ce;var pr=-1,fr=!0,lr=Pt&C?new sn:void 0;for(xt.set(oe,Ce),xt.set(Ce,oe);++pr<Bt;){var Er=oe[pr],Tr=Ce[pr];if(at)var Kr=Ut?at(Tr,Er,pr,Ce,oe,xt):at(Er,Tr,pr,oe,Ce,xt);if(Kr!==void 0){if(Kr)continue;fr=!1;break}if(lr){if(!ge(Ce,function(Pr,Br){if(!lr.has(Br)&&(Er===Pr||Ge(Er,Pr,at,Pt,xt)))return lr.add(Br)})){fr=!1;break}}else if(!(Er===Tr||Ge(Er,Tr,at,Pt,xt))){fr=!1;break}}return xt.delete(oe),xt.delete(Ce),fr}function Xi(oe,Ce,Ge,at,Pt,xt,Ut){switch(Ge){case re:if(oe.byteLength!=Ce.byteLength||oe.byteOffset!=Ce.byteOffset)return!1;oe=oe.buffer,Ce=Ce.buffer;case J:return!(oe.byteLength!=Ce.byteLength||!at(new We(oe),new We(Ce)));case P:case k:case z:return ai(+oe,+Ce);case M:return oe.name==Ce.name&&oe.message==Ce.message;case V:case K:return oe==Ce+"";case L:var Bt=ot;case Q:var Kt=xt&x;if(Bt||(Bt=ut),oe.size!=Ce.size&&!Kt)return!1;var nr=Ut.get(oe);if(nr)return nr==Ce;xt|=C,Ut.set(oe,Ce);var pr=oi(Bt(oe),Bt(Ce),at,Pt,xt,Ut);return Ut.delete(oe),pr;case G:if(Ht)return Ht.call(oe)==Ht.call(Ce)}return!1}function Ji(oe,Ce,Ge,at,Pt,xt){var Ut=Pt&x,Bt=Hn(oe),Kt=Bt.length,nr=Hn(Ce),pr=nr.length;if(Kt!=pr&&!Ut)return!1;for(var fr=Kt;fr--;){var lr=Bt[fr];if(!(Ut?lr in Ce:pt.call(Ce,lr)))return!1}var Er=xt.get(oe);if(Er&&xt.get(Ce))return Er==Ce;var Tr=!0;xt.set(oe,Ce),xt.set(Ce,oe);for(var Kr=Ut;++fr<Kt;){lr=Bt[fr];var Pr=oe[lr],Br=Ce[lr];if(at)var hi=Ut?at(Br,Pr,lr,Ce,oe,xt):at(Pr,Br,lr,oe,Ce,xt);if(!(hi===void 0?Pr===Br||Ge(Pr,Br,at,Pt,xt):hi)){Tr=!1;break}Kr||(Kr=lr=="constructor")}if(Tr&&!Kr){var Vn=oe.constructor,jn=Ce.constructor;Vn!=jn&&"constructor"in oe&&"constructor"in Ce&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof jn=="function"&&jn instanceof jn)&&(Tr=!1)}return xt.delete(oe),xt.delete(Ce),Tr}function Rn(oe,Ce){var Ge=oe.__data__;return ta(Ce)?Ge[typeof Ce=="string"?"string":"hash"]:Ge.map}function Zi(oe){for(var Ce=Hn(oe),Ge=Ce.length;Ge--;){var at=Ce[Ge],Pt=oe[at];Ce[Ge]=[at,Pt,ii(Pt)]}return Ce}function Sn(oe,Ce){var Ge=De(oe,Ce);return Dn(Ge)?Ge:void 0}var en=ao;(ze&&en(new ze(new ArrayBuffer(1)))!=re||Ve&&en(new Ve)!=L||Ke&&en(Ke.resolve())!=W||dt&&en(new dt)!=Q||Et&&en(new Et)!=X)&&(en=function(oe){var Ce=bt.call(oe),Ge=Ce==U?oe.constructor:void 0,at=Ge?cn(Ge):void 0;if(at)switch(at){case wt:return re;case Mt:return L;case _e:return W;case je:return Q;case lt:return X}return Ce});function ea(oe,Ce,Ge){Ce=ho(Ce,oe)?[Ce]:Ro(Ce);for(var at,Pt=-1,Ut=Ce.length;++Pt<Ut;){var xt=po(Ce[Pt]);if(!(at=oe!=null&&Ge(oe,xt)))break;oe=oe[xt]}if(at)return at;var Ut=oe?oe.length:0;return!!Ut&&Fn(Ut)&&fo(xt,Ut)&&(Wr(oe)||si(oe))}function fo(oe,Ce){return Ce=Ce==null?E:Ce,!!Ce&&(typeof oe=="number"||Re.test(oe))&&oe>-1&&oe%1==0&&oe<Ce}function ho(oe,Ce){if(Wr(oe))return!1;var Ge=typeof oe;return Ge=="number"||Ge=="symbol"||Ge=="boolean"||oe==null||Ln(oe)?!0:Oe.test(oe)||!ye.test(oe)||Ce!=null&&oe in Object(Ce)}function ta(oe){var Ce=typeof oe;return Ce=="string"||Ce=="number"||Ce=="symbol"||Ce=="boolean"?oe!=="__proto__":oe===null}function ra(oe){return!!ft&&ft in oe}function na(oe){var Ce=oe&&oe.constructor,Ge=typeof Ce=="function"&&Ce.prototype||mt;return oe===Ge}function ii(oe){return oe===oe&&!_r(oe)}function Jt(oe,Ce){return function(Ge){return Ge==null?!1:Ge[oe]===Ce&&(Ce!==void 0||oe in Object(Ge))}}var Zt=Fo(function(oe){oe=li(oe);var Ce=[];return Ye.test(oe)&&Ce.push(""),oe.replace(et,function(Ge,at,Pt,xt){Ce.push(Pt?xt.replace(Te,"$1"):at||Ge)}),Ce});function po(oe){if(typeof oe=="string"||Ln(oe))return oe;var Ce=oe+"";return Ce=="0"&&1/oe==-S?"-0":Ce}function cn(oe){if(oe!=null){try{return Ct.call(oe)}catch(Ce){}try{return oe+""}catch(Ce){}}return""}function Fo(oe,Ce){if(typeof oe!="function"||Ce&&typeof Ce!="function")throw new TypeError(A);var Ge=function(){var at=arguments,Pt=Ce?Ce.apply(this,at):at[0],xt=Ge.cache;if(xt.has(Pt))return xt.get(Pt);var Ut=oe.apply(this,at);return Ge.cache=xt.set(Pt,Ut),Ut};return Ge.cache=new(Fo.Cache||Nr),Ge}Fo.Cache=Nr;function ai(oe,Ce){return oe===Ce||oe!==oe&&Ce!==Ce}function si(oe){return oa(oe)&&pt.call(oe,"callee")&&(!yt.call(oe,"callee")||bt.call(oe)==B)}var Wr=Array.isArray;function zo(oe){return oe!=null&&Fn(oe.length)&&!ir(oe)}function oa(oe){return zn(oe)&&zo(oe)}function ir(oe){var Ce=_r(oe)?bt.call(oe):"";return Ce==R||Ce==F}function Fn(oe){return typeof oe=="number"&&oe>-1&&oe%1==0&&oe<=E}function _r(oe){var Ce=typeof oe;return!!oe&&(Ce=="object"||Ce=="function")}function zn(oe){return!!oe&&typeof oe=="object"}function Ln(oe){return typeof oe=="symbol"||zn(oe)&&bt.call(oe)==G}var yr=q?Pe(q):On;function li(oe){return oe==null?"":ri(oe)}function ci(oe,Ce,Ge){var at=oe==null?void 0:io(oe,Ce);return at===void 0?Ge:at}function ui(oe,Ce){return oe!=null&&ea(oe,Ce,so)}function Hn(oe){return zo(oe)?Nn(oe):co(oe)}function di(oe,Ce,Ge){var at=Wr(oe)||yr(oe);if(Ce=Zr(Ce),Ge==null)if(at||_r(oe)){var Pt=oe.constructor;at?Ge=Wr(oe)?new Pt:[]:Ge=ir(Pt)?no(it(oe)):{}}else Ge={};return(at?se:oo)(oe,function(xt,Ut,Bt){return Ce(Ge,xt,Ut,Bt)}),Ge}function fi(oe){return oe}function Ar(oe){return ho(oe)?de(po(oe)):ti(oe)}d.exports=di})(lodash_transform,lodash_transformExports);const isEmpty=lodash_isemptyExports,isPlainObject=lodash_isplainobject,transform=lodash_transformExports;var src=function d(g,{cleanKeys:b=[],cleanValues:A=[],emptyArrays:w=!0,emptyObjects:C=!0,emptyStrings:x=!0,NaNValues:S=!1,nullValues:E=!0,undefinedValues:B=!0}={}){return transform(g,($,P,k)=>{if(!b.includes(k)&&((Array.isArray(P)||isPlainObject(P))&&(P=d(P,{NaNValues:S,cleanKeys:b,cleanValues:A,emptyArrays:w,emptyObjects:C,emptyStrings:x,nullValues:E,undefinedValues:B})),!A.includes(P)&&!(C&&isPlainObject(P)&&isEmpty(P))&&!(w&&Array.isArray(P)&&!P.length)&&!(x&&P==="")&&!(S&&Number.isNaN(P))&&!(E&&P===null)&&!(B&&P===void 0))){if(Array.isArray($))return $.push(P);$[k]=P}})},FileSaver_minExports={},FileSaver_min={get exports(){return FileSaver_minExports},set exports(d){FileSaver_minExports=d}};(function(d,g){(function(b,A){A()})(commonjsGlobal,function(){function b(B,$){return typeof $>"u"?$={autoBom:!1}:typeof $!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(B.type)?new Blob(["\uFEFF",B],{type:B.type}):B}function A(B,$,P){var k=new XMLHttpRequest;k.open("GET",B),k.responseType="blob",k.onload=function(){E(k.response,$,P)},k.onerror=function(){console.error("could not download file")},k.send()}function w(B){var $=new XMLHttpRequest;$.open("HEAD",B,!1);try{$.send()}catch(P){}return 200<=$.status&&299>=$.status}function C(B){try{B.dispatchEvent(new MouseEvent("click"))}catch(P){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),B.dispatchEvent($)}}var x=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,S=x.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),E=x.saveAs||(typeof window!="object"||window!==x?function(){}:"download"in HTMLAnchorElement.prototype&&!S?function(B,$,P){var k=x.URL||x.webkitURL,M=document.createElement("a");$=$||B.name||"download",M.download=$,M.rel="noopener",typeof B=="string"?(M.href=B,M.origin===location.origin?C(M):w(M.href)?A(B,$,P):C(M,M.target="_blank")):(M.href=k.createObjectURL(B),setTimeout(function(){k.revokeObjectURL(M.href)},4e4),setTimeout(function(){C(M)},0))}:"msSaveOrOpenBlob"in navigator?function(B,$,P){if($=$||B.name||"download",typeof B!="string")navigator.msSaveOrOpenBlob(b(B,P),$);else if(w(B))A(B,$,P);else{var k=document.createElement("a");k.href=B,k.target="_blank",setTimeout(function(){C(k)})}}:function(B,$,P,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof B=="string")return A(B,$,P);var M=B.type==="application/octet-stream",R=/constructor/i.test(x.HTMLElement)||x.safari,F=/CriOS\/[\d]+/.test(navigator.userAgent);if((F||M&&R||S)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var W=L.result;W=F?W:W.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=W:location=W,k=null},L.readAsDataURL(B)}else{var z=x.URL||x.webkitURL,U=z.createObjectURL(B);k?k.location=U:location.href=U,k=null,setTimeout(function(){z.revokeObjectURL(U)},4e4)}});x.saveAs=E.saveAs=E,d.exports=E})})(FileSaver_min);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((g,b)=>({measureNumber:b+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,g){var b=ALL_Pitches.indexOf(d);if(b>=0){const A=ALL_Pitches[b-g];return A||d}return d}const Home=defineComponent({name:"Home",setup(){const d=useDialog();useRoute$1();const g=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,times:[]}),w=ABC_DATA.types.map(q=>q.value).filter(Boolean),C=ABC_DATA.accidentals.map(q=>q.value).filter(Boolean),x=ABC_DATA.clef.map(q=>q.value).filter(Boolean),S=ABC_DATA.play.map(q=>q.value).filter(Boolean),E=ABC_DATA.dynamics.map(q=>q.value).flat().filter(Boolean);ABC_DATA.bar.map(q=>q.value).filter(Boolean),console.log("🚀 ~ noteTypes:",w,C,x,S,E);const B=(q,se,ge,de,ve)=>{var Qe,ot,st;let Pe=((ot=(Qe=q.chord)==null?void 0:Qe.find(ut=>ut.position==="left"))==null?void 0:ot.name)||"";Pe=Pe.split(".").map(ut=>Number(ut));const De={...lodashExports.cloneDeep(q),measureIndex:Pe[0],noteIndex:Pe[1],isFirstChecked:!0};if(A.select.state){A.select.list.push(De),A.select.list.length===1&&showToast("请先选择结束音符"),A.select.list.length===2&&(console.log(A.select.list),A.select.list=A.select.list.sort((ut,He)=>ut.startChar-He.startChar),ne());return}if(A.active=De,console.log("🚀 ~ abcElem:",q,A.music.substring(A.active.startChar,A.active.endChar)),((st=A.active)==null?void 0:st.el_type)==="note"){const ut=P.synthControl.visualObj.getTotalTime();if(ut){const He=A.active.currentTrackMilliseconds/1e3/ut;P.synthControl.seek(He)}}if(ve&&ve.step){ie({type:"move",value:{action:"drag",step:ve.step}});return}q!=null&&q.midiPitches&&abcjs_1.synth.playEvent(q.midiPitches,q.midiGraceNotePitches,1e3)},$=ref(),P=reactive({visualObj:null,midiBuffer:null,abcOptions:{selectionColor:"#0f81ff",jazzchords:!0,add_classes:!0,clickListener:B,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)}}),k=(q,se,ge)=>{const de=P.abc.measures[q];de&&de.notes.splice(se+1,0,ge)},M=()=>{const q=document.querySelector("#paper svg .ABCJS-cursor");q&&(q.setAttribute("x1","0"),q.setAttribute("x2","0"),q.setAttribute("y1","0"),q.setAttribute("y2","0"))},R={onReady:function(){},onStart:function(){console.log("开始"),A.playState=!0;var q=document.querySelector("#paper svg");let se=document.querySelector("#paper svg .ABCJS-cursor");se||(se=document.createElementNS("http://www.w3.org/2000/svg","line"),se.setAttribute("class","ABCJS-cursor"),q==null||q.appendChild(se)),se.setAttributeNS(null,"x1","0"),se.setAttributeNS(null,"y1","0"),se.setAttributeNS(null,"x2","0"),se.setAttributeNS(null,"y2","0")},onBeat:function(q,se,ge){if(!A.playState)return;const de=q/se*ge;metronomeData.metro.sound(de)},onEvent:q=>{var de;let se=q;if(A.playState&&!(se.measureStart&&se.left===null)){if(b.selectMearesShow&&A.selectMeasures.startNote&&A.selectMeasures.endNote){const ve=((de=A.selectMeasures.startNote)==null?void 0:de.currentTrackMilliseconds)||0,Pe=A.selectMeasures.endNote?A.selectMeasures.endNote:null;if(se.milliseconds<ve||Pe&&se.milliseconds>Pe.currentTrackMilliseconds){const De=P.synthControl.visualObj.getTotalTime();if(De){const Qe=ve/1e3/De;P.synthControl.seek(Qe);return}}}A.activePlayNote={...se};var ge=document.querySelector("#paper svg .ABCJS-cursor");ge&&(ge.setAttribute("x1",se.left+se.width/2),ge.setAttribute("x2",se.left+se.width/2),ge.setAttribute("y1",se.top),ge.setAttribute("y2",se.top+se.height))}},onFinished:function(){console.log("finished"),A.playState=!1;for(var q=document.querySelectorAll("svg .highlight"),se=0;se<q.length;se++)q[se].classList.remove("highlight");M()}},F=ALL_NOTES(),L=async()=>{A.loadingAudioSrouce=!0;const q=new abcjs_1.synth.CreateSynth,se=`X: 1
  2529. M:4/4
  2530. L:1/4
  2531. ${F}`,ge=abcjs_1.parseOnly(se);await q.init({visualObj:ge[0],options:{...P.synthOptions}})},z=(q=!1)=>{new abcjs_1.synth.CreateSynth().init({visualObj:P.visualObj,options:{...P.synthOptions}}).then(()=>{P.synthControl.setTune(P.visualObj,q,{midiTranspose:P.abc.visualTranspose,program:P.synthOptions.program}).then(function(ge){A.loadingAudioSrouce=!1}).catch(ge=>{console.log(ge)})})},U=q=>{var se;if(q==="play"){if(b.selectMearesShow&&(A.selectMeasures.start>A.selectMeasures.end||A.selectMeasures.start===0||A.selectMeasures.end===0)){A.selectMeasures.start=0,A.selectMeasures.end=0,A.selectMeasures.startNote=null,A.selectMeasures.endNote=null,g.warning("请输入正确的小节范围");return}P.synthControl.play(),A.playState=!0}else if(q==="pause"){P.synthControl.play(),A.playState=!1,M();const ge=P.synthControl.visualObj.getTotalTime();if(ge&&((se=A.activePlayNote)==null?void 0:se.milliseconds)!==void 0){const de=A.activePlayNote.milliseconds/1e3/ge;nextTick(()=>{P.synthControl.seek(de)})}}else P.synthControl.restart(),nextTick(()=>{A.playState||P.synthControl.play()})},W=()=>{P.visualObj=abcjs_1.renderAbc("paper",A.music,{...P.abcOptions,visualTranspose:P.abc.visualTranspose})[0],A.drawCount<3&&console.log("🚀 ~ visualObj:",P.visualObj)},V=()=>{var de,ve,Pe;const q=document.querySelector("#paper svg"),se=4;let ge=0;for(let De=0;De<P.visualObj.lines.length;De++){const Qe=P.visualObj.lines[De];for(let ot=0;ot<Qe.staff.length;ot++){const ut=[...Qe.staff[ot].voices].flat();for(let He=0;He<ut.length;He++){const ct=ut[He];if(ct.el_type==="bar"&&ge++,["note","keySignature","clef","timeSignature"].includes(ct.el_type)){const mt=((Pe=(ve=(de=ct.abselem.elemset)==null?void 0:de[0])==null?void 0:ve.getBBox)==null?void 0:Pe.call(ve))||null;if(mt){const _t=document.createElementNS("http://www.w3.org/2000/svg","rect");_t.setAttributeNS(null,"x",mt.x-se+""),_t.setAttributeNS(null,"y",mt.y-se+""),_t.setAttributeNS(null,"width",mt.width+se*2+""),_t.setAttributeNS(null,"height",mt.height+se*2+""),_t.setAttributeNS(null,"fill","rgba(0,0,0,0)"),_t.setAttributeNS(null,"stroke","rgba(0,0,0,0)"),_t.setAttributeNS(null,"rx","2"),_t.classList.add("abcjs-note-hover"),q==null||q.appendChild(_t)}}}}}console.log(ge),A.selectMeasures.max=ge};let Q=null;const K=()=>{Q&&clearTimeout(Q),Q=setTimeout(()=>{et(!1)},5e3)},G=()=>(A.drawCount>0&&(P.synthControl.disable(!0),A.playState&&(A.playState=!1),A.isSave=!1),b.selectMearesShow&&(A.selectMeasures.startNote=null,A.selectMeasures.endNote=null,A.selectMeasures.start=0,A.selectMeasures.end=0,b.selectMearesShow=!1,A.selectMeasures.state=!1,nextTick(()=>{A.selectMeasures.state=!0})),new Promise(q=>{nextTick(()=>{A.music=renderMeasures(P.abc),W(),z(A.drawCount>0),V();try{X()}catch(se){console.log("🚀 ~ error:",se)}if(q(1),A.drawCount>0){const se=location.host;if(se.includes("localhost")||se.includes("192"))return;K()}$.value&&($.value.value=A.music),A.drawCount++})})),X=()=>{var de,ve,Pe;const q=new abcjs_1.TimingCallbacks(P.visualObj);A.times=q.noteTimings;const se=[];let ge=P.abc.meter||"";for(let De=0;De<q.noteTimings.length-1;De++){const Qe=q.noteTimings[De],ot=ce(Qe.startChar);let st=((ve=(de=ot.chord)==null?void 0:de.find(ut=>ut.position==="left"))==null?void 0:ve.name)||"";if(st=st.split(".").map(ut=>Number(ut)),st.length===2){const ut=P.abc.measures[st[0]],He=new RegExp(/M:(\d+)\/\d+/),ct=Number((Pe=ge.match(He))==null?void 0:Pe[1]),mt=ut.notes[st[1]];se.push({...mt,timeNote:Qe,abcNote:ot,measure:{numerator:ct}})}}metronomeData.metro||(metronomeData.metro=new Metronome);try{metronomeData.activeIndex=-1,metronomeData.metro.init(se)}catch(De){console.log("🚀 ~ 生成节拍器数据错误:",De)}},J=q=>{const se=P.visualObj.getElementFromChar(q);return se&&P.visualObj.engraver.rangeHighlight(se.startChar,se.endChar),se},re=q=>{const se=A.music.indexOf(q);return P.visualObj.getElementFromChar(se)},fe=q=>{const se=P.abc.measures[q],ge=[];for(let de=0;de<se.notes.length;de++){const ve=`${q}.${de}`,Pe=re(ve);ge.push(Pe)}return ge},Z=()=>{console.log("点击退出",window.matchMedia("(display-mode: standalone)").matches),window.matchMedia("(display-mode: standalone)").matches?(window.onbeforeunload=null,console.log("准备发消息"),window.parent.postMessage({api:"notation_exit"},"*")):(window.close(),window.parent.postMessage({api:"notation_exit"},"*"))},ie=async q=>{var ve,Pe,De,Qe,ot,st,ut,He,ct,mt,_t;P.synthControl.disable(!0),A.playState&&(A.playState=!1);const se=q.type,ge=q.value,de=((De=P.abc.measures[(ve=A.active)==null?void 0:ve.measureIndex])==null?void 0:De.notes[(Pe=A.active)==null?void 0:Pe.noteIndex])||null;if(se==="exit"){if(!A.isSave){clearTimeout(Q),d.warning({maskClosable:!0,autoFocus:!1,class:"deleteDialog saveDialog",title:"温馨提示",content:"是否保存当前曲谱?",positiveText:"保存",positiveButtonProps:{type:"primary"},negativeText:"不保存",negativeButtonProps:{type:"default",ghost:!1},onPositiveClick:async()=>{const ft=g.loading("保存中...");await et(!1),setTimeout(()=>{ft.type="success",ft.content="保存成功",setTimeout(()=>{ft.destroy(),Z()},500)},300)},onNegativeClick:()=>{Z()}});return}Z()}if(se==="type"){if(A.noteType=ge,de){de.noteType=ge,await G();const ft=J(A.active.startChar),Ct=ft?{...lodashExports.cloneDeep(ft),measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex,isFirstChecked:!0}:null;A.active=Ct}return}if(se==="segno"){if(!A.active){showToast("请先选择音符");return}if(!de)return;de.segno=de.segno?"":ge,await G(),J(A.active.startChar)}if(se==="note"&&A.active&&A.active.el_type=="note"){const ft=((Qe=P.abc.measures[A.active.measureIndex])==null?void 0:Qe.notes[A.active.noteIndex])||null,Ct=ge.split("-");A.active.isFirstChecked&&(ft.content=Ct[0],ft.noteType=A.noteType,Ct[1]&&(ft.accidental=Ct[1]||""),A.active.isFirstChecked=!1),await G();const pt=re(`${A.active.measureIndex}.${A.active.noteIndex}`);if((ut=(st=(ot=pt==null?void 0:pt.abselem)==null?void 0:ot.beam)==null?void 0:st.elems)!=null&&ut.length){const be=pt.abselem.beam.elems,Fe=P.visualObj.getBeatLength();be.map(it=>it.duration).reduce((it,gt)=>it+gt)>=Fe&&(P.abc.measures[A.active.measureIndex].notes[A.active.noteIndex].segno=" ",await G())}if(pt!=null&&pt.midiPitches&&abcjs_1.synth.playEvent(pt.midiPitches,pt.midiGraceNotePitches,1e3),(He=P.abc.measures[A.active.measureIndex])==null?void 0:He.notes[A.active.noteIndex+1]){const be=re(`${A.active.measureIndex}.${A.active.noteIndex+1}`);J(be.startChar),A.active={...be,measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex+1,isFirstChecked:!0}}else if(fe(A.active.measureIndex).map(We=>We.duration).reduce((We,it)=>We+it)>=1)if((ct=P.abc.measures[A.active.measureIndex+1])==null?void 0:ct.notes[0]){const it=re(`${A.active.measureIndex+1}.0`);J(it.startChar),A.active={...it,measureIndex:A.active.measureIndex+1,noteIndex:0,isFirstChecked:!0}}else J(A.active.startChar),A.active.isFirstChecked=!0;else{k(A.active.measureIndex,A.active.noteIndex,createNote({content:"z",noteType:A.noteType})),await G();const We=re(`${A.active.measureIndex}.${A.active.noteIndex+1}`);J(We.startChar),A.active={...We,measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex+1,isFirstChecked:!0}}}if(se==="accidentals"){if(!A.active){g.warning("请先选择音符");return}if(de.content==="z"){g.warning("休止符无法添加临时升降记号");return}de.accidental=de.accidental==ge?"":ge,await G();const ft=J(A.active.startChar),Ct=ft?{...lodashExports.cloneDeep(ft),measureIndex:A.active.measureIndex,noteIndex:A.active.noteIndex,isFirstChecked:!0}:null;A.active=Ct}if(se==="clef")if(A.active){if(!de)return;de.clef=`[${ge}]`,await G()}else P.abc.celf=ge,G();if(se==="key")if(A.active){if(!de)return;de.key=`[${ge}]`,await G()}else P.abc.key=ge,await G();if(se==="meter")if(A.active&&A.active.measureIndex!==0){if(!de)return;const ft=P.abc.measures[A.active.measureIndex];ft.meter=`[${ge}]`,await G();const Ct=re(`${A.active.measureIndex}.${A.active.noteIndex}`);J(Ct.startChar)}else P.abc.meter=ge,await G();if(se==="play"){if(!A.active){g.warning("请先选择音符");return}if(!de)return;de.play.includes(ge)?de.play=de.play.filter(ft=>ft!==ge):de.play.push(ge),await G(),J(A.active.startChar)}if(se==="dynamics"){if(!A.active){g.info("请先选择音符");return}if(!de)return;if(Array.isArray(ge)){if(de!=null&&de.dynamics){de.dynamics="";for(let ft=0;ft<P.abc.measures.length;ft++){const Ct=P.abc.measures[ft];for(let pt=0;pt<Ct.notes.length;pt++){const bt=Ct.notes[pt];bt.dCode===de.dCode&&(bt.dynamics="")}}await G()}else A.select.list=[lodashExports.cloneDeep(A.active)],A.select.state=!0,A.select.parmas=q,g.info("请选择结束音符");return}de.dynamics===ge?de.dynamics="":de.dynamics=ge,await G(),J(A.active.startChar)}if(se==="tie"){if(!A.active){g.info("请先选择音符");return}if(!de)return;if(Array.isArray(ge))if(de!=null&&de.tie){de.tie="";for(let Ct=0;Ct<P.abc.measures.length;Ct++){const pt=P.abc.measures[Ct];for(let bt=0;bt<pt.notes.length;bt++){const be=pt.notes[bt];be.tCode===de.tCode&&(be.tie="")}}await G();return}else{A.select.list=[lodashExports.cloneDeep(A.active)],A.select.state=!0,A.select.parmas=q,g.info("请选择结束音符");return}const ft=ce(A.active.endChar);if(de.tieline)de.tieline="";else{if(A.active.averagepitch!=ft.averagepitch){g.warning("必须同音高才能添加延音线");return}de.tieline=ge}await G(),J(A.active.startChar)}if(se==="repeat"){if(!A.active)return;const ft=P.abc.measures[A.active.measureIndex]||null;if(!ft)return;ft.repeat===ge?ft.repeat="":ft.repeat=ge,await G(),J(A.active.startChar+ge.length)}if(se==="barline"){if(!A.active)return;const ft=P.abc.measures[A.active.measureIndex]||null;if(!ft)return;if(ge==="|:"){const Ct=P.abc.measures[A.active.measureIndex-1]||null;if(!Ct)return;Ct.barline=ge}else ft.barline=ge;await G()}if(se==="speeds")if(A.active){if(A.active.measureIndex===0&&A.active.noteIndex===0)P.abc.speed=ge,await G();else{const ft=((mt=P.abc.measures[A.active.measureIndex])==null?void 0:mt.notes[A.active.noteIndex])||null;if(!ft)return;ft.speed=`[${ge}]`,await G()}J(A.active.startChar)}else P.abc.speed=ge,await G();if(se==="dot"){if(!A.active){showToast("请先选择音符");return}if(!de)return;de.dot=de.dot?"":ge,await G(),J(A.active.startChar)}if(se==="slus"){const ft=((_t=P.abc.measures[A.active.measureIndex])==null?void 0:_t.notes[A.active.noteIndex])||null;if(!ft)return;ft.slus=ft.slus===ge?"":ge,await G(),J(A.active.startChar)}if(se==="move"){const ft=ge.action==="drag"?ge.step:ge.action==="up"?-1:1;if(!de)return;de.content=moveNote(de.content,ft),await G();const Ct=J(A.active.startChar);if(!(Ct!=null&&Ct.midiPitches))return;abcjs_1.synth.playEvent(Ct.midiPitches,Ct.midiGraceNotePitches,1e3)}if(se==="delete"){if(!A.active||A.active.startChar===0)return;P.abc.measures[A.active.measureIndex].notes.splice(A.active.noteIndex,1),P.abc.measures[A.active.measureIndex].notes.length===0&&P.abc.measures.splice(A.active.measureIndex,1),await G(),A.active=null}},ce=q=>{const se=P.visualObj.getElementFromChar(q);return se.el_type==="note"?se:ce(se.endChar)},me=()=>{A.active=null,document.querySelectorAll(".abcjs-note_selected").forEach(se=>{se.classList.remove("abcjs-note_selected"),se.setAttribute("fill","currentColor")})},ne=async()=>{var ve,Pe;const q=(ve=A.select.parmas)==null?void 0:ve.type,se=(Pe=A.select.parmas)==null?void 0:Pe.value,ge=A.select.list[0],de=A.select.list[1];if(q==="dynamics")if(P.abc.measures[de.measureIndex].notes[de.noteIndex].dynamics||P.abc.measures[ge.measureIndex].notes[ge.noteIndex].dynamics)g.warning("已经添加了力度标记");else{const De=Date.now()+"";P.abc.measures[ge.measureIndex].notes[ge.noteIndex].dynamics=se[0],P.abc.measures[ge.measureIndex].notes[ge.noteIndex].dCode=De,P.abc.measures[de.measureIndex].notes[de.noteIndex].dynamics=se[1],P.abc.measures[de.measureIndex].notes[de.noteIndex].dCode=De,await G()}if(q==="tie"){const De=Date.now()+"";if(P.abc.measures[ge.measureIndex].notes[ge.noteIndex].tie){const Qe=P.abc.measures[ge.measureIndex].notes[ge.noteIndex].tie;P.abc.measures[ge.measureIndex].notes[ge.noteIndex].tie=se[0]+Qe}else P.abc.measures[ge.measureIndex].notes[ge.noteIndex].tie=se[0],P.abc.measures[ge.measureIndex].notes[ge.noteIndex].tCode=De;if(P.abc.measures[de.measureIndex].notes[de.noteIndex].tie){const Qe=P.abc.measures[de.measureIndex].notes[de.noteIndex].tie;P.abc.measures[de.measureIndex].notes[de.noteIndex].tie=Qe+se[1]}else P.abc.measures[de.measureIndex].notes[de.noteIndex].tie=se[1],P.abc.measures[de.measureIndex].notes[de.noteIndex].tCode=De;await G()}A.select.state=!1,A.select.list=[],A.select.parmas=null,me(),g.destroyAll()},te=async q=>{P.abc.visualTranspose=q.step,b.moveKeyShow=!1,A.playState&&(P.synthControl.disable(!0),A.playState=!1),await G()},ue=q=>{if(!A.active)return!1;if(console.log(q.key),q.key==="Backspace"&&ie({type:"delete",value:""}),/^[A-Ga-g]$/.test(q.key)&&ie({type:"note",value:q.key.toLocaleUpperCase()}),["ArrowUp","ArrowDown"].includes(q.key))return q.preventDefault(),q.stopPropagation(),ie({type:"move",value:{action:q.key==="ArrowUp"?"up":"donw"}}),!1},ae=()=>{P.abc.measures=initMusic(30),G()},ye=computed(()=>abcjs_1.synth.instrumentIndexToName.map((q,se)=>({label:instrumentsNames[q],value:se}))),Oe=computed(()=>{const q=abcjs_1.synth.instrumentIndexToName[P.synthOptions.program];return instrumentsNames[q]}),Ye=async()=>{A.loading=!0;const q=getQuery(),se=await api_musicSheetCreationDetail(q.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 ge="";try{ge=JSON.parse(se.data.creationData)}catch(de){console.log(de)}if(ge){console.log("🚀 ~ abc:",ge),P.abc.celf=ge.celf||"K:treble",P.abc.key=ge.key.value||ge.key||"K:C",P.abc.meter=ge.meter.value||ge.meter||"M:4/4",P.abc.speed=ge.speed||"Q:1/4=60",P.abc.visualTranspose=ge.visualTranspose||0,P.abc.subjectCode=ge.subjectCode||"acoustic_grand_piano";const de=abcjs_1.synth.instrumentIndexToName.indexOf(P.abc.subjectCode);P.synthOptions.program=de>-1?de:0,P.abc.measures=ge.measures||initMusic(30)}}return A.loading=!1,se},et=async(q=!0)=>{await api_musicSheetCreationUpdate({name:A.musicName,creator:A.creator,creationConfig:renderMeasures(P.abc,{hiddenIndex:!0}),creationData:JSON.stringify(src(P.abc)),id:A.musicId,subjectId:3}),q&&g.success("保存成功"),A.isSave=!0};onMounted(async()=>{await Ye(),abcjs_1.synth.supportsAudio()&&(P.synthControl=new abcjs_1.synth.SynthController,P.synthControl.load("#audio",R,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0})),console.log(abcjs_1),await G(),L(),document.addEventListener("keyup",ue),window.onbeforeunload=se=>{A.isSave||(se.preventDefault(),se.returnValue="还有没保存的")},P.synthControl.restart();const q=document.querySelector("#selectMearesBtn");if(q){const se=q.getBoundingClientRect();A.selectMeasures.x=document.body.clientWidth-320,A.selectMeasures.y=se.top+70,A.selectMeasures.state=!0}}),onUnmounted(()=>{document.removeEventListener("keyup",ue)});const ht=computed(()=>A.active?P.abc.measures[A.active.measureIndex]||{}:{}),Te=computed(()=>{var se;return A.active?((se=P.abc.measures[A.active.measureIndex])==null?void 0:se.notes[A.active.noteIndex])||{}:{}}),Le=()=>{showConfirmDialog({title:"温馨提示",message:"是否覆盖当前乐谱?"}).then(()=>{ae(),A.active=null})},Re=()=>{for(let q=0;q<A.addMearseNumber;q++)if(["pre","next"].includes(A.addMearseType)){if(!A.active){g.warning("请选择小节");return}A.addMearseType==="pre"?P.abc.measures.splice(A.active.measureIndex,0,createMeasure()):A.addMearseType==="next"&&P.abc.measures.splice(A.active.measureIndex+1,0,createMeasure())}else P.abc.measures.push(createMeasure());b.barShow=!1,G()},$e=()=>{if(A.deleteMearseType==="ing"){if(!A.active){g.warning("请选择小节");return}P.abc.measures.splice(A.active.measureIndex,1)}else if(A.deleteMearseType==="finish"){let q=P.abc.measures.length;for(let se=q;se>0&&(P.abc.measures[se-1].notes.length===1&&P.abc.measures[se-1].notes[0].content==="z");se--){if(P.abc.measures.length===1)break;P.abc.measures.splice(se-1,1)}}b.mearseDeleteShow=!1,G()},qe=async()=>{var Pe;P.abc.title=`T:${A.musicName}`,P.abc.creator=`R:${A.creator}`;const q=document.getElementById("exportPng");if(!q)return;const se=renderMeasures(P.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0});abcjs_1.renderAbc(q,se,P.abcOptions);const ge=(Pe=q.children[0])==null?void 0:Pe.cloneNode(!0),de=q.getBoundingClientRect();ge.setAttribute("width",`${de.width*3}`),ge.setAttribute("height",`${de.height*3}`);const ve=document.createElementNS("http://www.w3.org/2000/svg","rect");if(ve.setAttribute("x","0"),ve.setAttribute("y","0"),ve.setAttribute("width",`${de.width*10}`),ve.setAttribute("height",`${de.height*10}`),ve.setAttribute("fill","#fff"),ge.prepend(ve),ge){const De=svg2canvas(ge.outerHTML);let Qe=document.createElement("a");Qe.href=De.toDataURL(),Qe.download=A.musicName+".png";const ot=new MouseEvent("click");Qe.dispatchEvent(ot)}},rt=ref(),Xe=()=>{const q=abcjs_1.synth.getMidiFile(P.visualObj,{chordsOff:!0,midiOutputType:"link",fileName:"曲谱"});rt.value.innerHTML=q,rt.value.querySelector("a").click()},he=()=>{try{P.synthControl&&P.synthControl.download("曲谱.wav")}catch(q){const se=new abcjs_1.synth.CreateSynth;se.init({visualObj:P.visualObj,options:P.synthOptions}).then(()=>{se.prime().then(()=>{downloadFile(se.download(),"曲谱.wav")})})}},we=async()=>{var ge;const q=g.loading("导出中...");await et(!1);const se=await Ye();if(!((ge=se==null?void 0:se.data)!=null&&ge.xml)){q.type="error",q.content="导出失败";return}FileSaver_minExports.saveAs(se.data.xml,(A.musicName||"曲谱")+".xml"),q.type="success",q.content="导出成功"},Be=q=>{q==="png"?qe():q==="midi"?Xe():q==="wav"?he():q==="down-xml"&&we()},Ne=()=>{const q=document.createElement("input");q.type="file",q.accept=".xml,.musicxml",q.onchange=se=>{const ge=se.target.files[0],de=new FileReader;de.onload=ve=>{let Pe=ve.target.result;Pe=new DOMParser().parseFromString(Pe,"text/xml"),Pe=window.vertaal(Pe,{p:"f",t:1,u:0,v:3,mnum:0});const De=abcjs_1.renderAbc("importRef",Pe[0],{responsive:"resize"});console.log("🚀 ~ parseData:",De),P.abc=formateAbc(De[0],{subjectCode:P.abc.subjectCode}),G()},de.readAsText(ge)},q.click()},Se=(q,se)=>{var ge;if(console.log("🚀 ~ index:",q),se==="start"){const de=q?re(`${q-1}.0`):null;A.selectMeasures.start=q?q-1:0,A.selectMeasures.startNote=de,A.selectMeasures.start&&A.selectMeasures.end&&A.selectMeasures.end<A.selectMeasures.start&&(A.selectMeasures.end=0,A.selectMeasures.endNote=null)}else{const de=q?re(`${q-1}.${((ge=P.abc.measures[q-1])==null?void 0:ge.notes.length)-1}`):null;A.selectMeasures.end=q?q-1:0,A.selectMeasures.endNote=de,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:q=>q.stopPropagation()},[createVNode("div",{class:styles$6.topWrap},[createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({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:q=>{q==="newMusic"?Le():q==="save"?et():["xml"].includes(q)?Ne():q==="upload"||["png","midi","wav","down-xml"].includes(q)&&Be(q)}},null),createVNode("div",null,[createTextVNode("文件")])]),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"dot",value:">"})},[createVNode("div",{class:[styles$6.btnImg,Te.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(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"accidentals",value:q.value})},[createVNode("div",{class:[styles$6.btnImg,Te.value.accidental===q.value&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:q.icon},null)]),createVNode("div",{class:styles$6.btnName},[q.name])])),createVNode("div",{class:styles$6.topLine},null),createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"tie",value:ABC_DATA.tie[0].value})},[createVNode("div",{class:[styles$6.btnImg,Te.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:()=>ie({type:"tie",value:ABC_DATA.tie[1].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.tie[1].value.includes(Te.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(q=>{var se;return createVNode("div",{class:[styles$6.topBtn],onClick:()=>ie({type:"play",value:q.value})},[createVNode("div",{class:[styles$6.btnImg,((se=Te.value.play)==null?void 0:se.includes(q.value))&&styles$6.btnImgActive]},[createVNode("img",{class:styles$6.topBtnIcon,src:q.icon},null)]),createVNode("div",null,[q.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 q;return createVNode(NGrid,{cols:4,yGap:8},_isSlot(q=ABC_DATA.play.slice(4).map(se=>createVNode(NGi,null,{default:()=>{var ge;return[createVNode("div",{class:[styles$6.btnItem,((ge=Te.value.play)==null?void 0:ge.includes(se.value))&&styles$6.btnItemActive],onClick:()=>{A.morePlay=!1,ie({type:"play",value:se.value})}},[createVNode("div",{class:styles$6.btnItemIcon},[createVNode(TheIcon,{iconClassName:se.icon},null)]),createVNode("div",null,[se.name])])]}})))?q:{default:()=>[q]})}}),createVNode("div",{class:styles$6.topLine},null),createVNode(NDropdown,{trigger:"click",options:ABC_DATA.slus,labelField:"name",keyField:"value",onSelect:q=>{console.log(q),ie({type:"slus",value:q})}},{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":q=>b.selectSubjectShow=q,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"}},[Oe.value])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("选择声部")]),createVNode(NSelect,{filterable:!0,options:ye.value,value:P.synthOptions.program,"onUpdate:value":[q=>P.synthOptions.program=q,async()=>{P.synthControl.disable(!0),A.playState=!1,await L(),z(!0),b.selectSubjectShow=!1}]},null)])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.moveKeyShow,"onUpdate:show":q=>b.moveKeyShow=q,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 q;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(q=ABC_DATA.key.sort((se,ge)=>ge.step-se.step).map(se=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$6.btnItem,P.abc.key===se.value&&styles$6.btnItemActive],onClick:()=>te(se)},[createVNode("div",{class:[styles$6.btnItemIcon]},[createVNode(TheIcon,{iconClassName:se.icon},null)]),createVNode("div",{class:styles$6.btnItemName},[se.name])])]})))?q:{default:()=>[q]})])}}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,value:b.speedShow,"onUpdate:value":q=>b.speedShow=q,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:q=>ie(q)},null)}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.staffShow,"onUpdate:show":q=>b.staffShow=q,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:P.abcOptions.staffwidth===1200?"primary":"default",secondary:!0,onClick:()=>{P.abcOptions.staffwidth=1200,G()}},{default:()=>[createTextVNode("小")]}),createVNode(NButton,{type:P.abcOptions.staffwidth===800?"primary":"default",secondary:!0,onClick:()=>{P.abcOptions.staffwidth=800,G()}},{default:()=>[createTextVNode("中")]}),createVNode(NButton,{type:P.abcOptions.staffwidth===400?"primary":"default",secondary:!0,onClick:()=>{P.abcOptions.staffwidth=400,G()}},{default:()=>[createTextVNode("大")]})]}),createVNode("div",{class:styles$6.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:P.abcOptions.wrap.preferredMeasuresPerLine,"onUpdate:value":[q=>P.abcOptions.wrap.preferredMeasuresPerLine=q,()=>{G()}],placeholder:"请输入小节数"},null)]})])}),createVNode(NPopover,{class:styles$6.popupWrap,showArrow:!1,show:b.barShow,"onUpdate:show":q=>b.barShow=q,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":q=>A.addMearseNumber=q,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:()=>Re()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode(NPopover,{class:styles$6.popupWrap,show:b.mearseDeleteShow,"onUpdate:show":q=>b.mearseDeleteShow=q,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},[createVNode(NSpin,{show:A.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>U("reset")},[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:()=>U(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 q;metronomeData.disable=!metronomeData.disable,(q=metronomeData.metro)==null||q.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":q=>A.slide=q,elevation:!1,divider:!1},{default:()=>[createVNode(CollapseItem,{title:"音符时值",name:"note"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.types.map(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"type",value:q.value})},[createVNode("div",{class:[styles$6.btnImg,A.noteType===q.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:q.icon},null)]),createVNode("div",null,[q.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"note",value:"z"})},[createVNode("div",{class:[styles$6.btnImg,Te.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:()=>ie({type:"segno",value:" "})},[createVNode("div",{class:[styles$6.btnImg,Te.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(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"meter",value:q.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:q.icon},null)]),createVNode("div",null,[q.name])]))])]}),createVNode(CollapseItem,{title:"力度记号",name:"dynamics"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.dynamics.slice(0,8).map(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"dynamics",value:q.value})},[createVNode("div",{class:[styles$6.btnImg,Te.value.dynamics===q.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:q.icon,size:["2em","2em"]},null)]),createVNode("div",null,[q.name])])),createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"dynamics",value:ABC_DATA.dynamics[8].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[8].value.includes(Te.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:()=>ie({type:"dynamics",value:ABC_DATA.dynamics[9].value})},[createVNode("div",{class:[styles$6.btnImg,ABC_DATA.dynamics[9].value.includes(Te.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(q=>createVNode("div",{class:[styles$6.topBtn,styles$6.longTopBtn],onClick:()=>ie({type:"repeat",value:q.value})},[createVNode("div",{class:[styles$6.btnImg,ht.value.repeat===q.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:q.icon,size:["5em","1em"]},null)]),createVNode("div",null,[q.name])]))])]}),createVNode(CollapseItem,{title:"小节线",name:"line"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.bar.map(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>{A.morePlay=!1,ie({type:"barline",value:q.value})}},[createVNode("div",{class:[styles$6.btnImg,ht.value.barline===q.value&&styles$6.btnImgActive]},[createVNode(TheIcon,{iconClassName:q.icon,size:["2em","2em"]},null)]),createVNode("div",null,[q.name])]))])]}),createVNode(CollapseItem,{title:"谱号",name:"clef"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.clef.map(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"clef",value:q.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:q.icon},null)]),createVNode("div",null,[q.name])]))])]}),createVNode(CollapseItem,{title:"调号",name:"key"},{default:()=>[createVNode("div",{class:styles$6.wrapBox},[ABC_DATA.key.map(q=>createVNode("div",{class:styles$6.topBtn,onClick:()=>ie({type:"key",value:q.value})},[createVNode("div",{class:[styles$6.btnImg]},[createVNode(TheIcon,{iconClassName:q.icon},null)]),createVNode("div",null,[q.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:q=>q.stopPropagation(),value:A.musicName,"onUpdate:value":q=>A.musicName=q,placeholder:"曲谱名称"},null)]),createVNode("div",{style:{width:"30%",margin:"10px 0 0 auto"}},[createVNode(NInput,{onKeyup:q=>q.stopPropagation(),value:A.creator,"onUpdate:value":q=>A.creator=q,placeholder:"曲谱作者"},null)])]),createVNode("div",{id:"paper"},null),!A.loading&&createVNode(Keys,{show:!!A.active,instrumentCode:P.abc.subjectCode,onClick:q=>ie(q)},null),createVNode("div",{id:"importRef",style:{display:"none"}},null),createVNode("div",{id:"audio",style:{display:"none"}},null),A.loadingAudioSrouce&&createVNode("div",{class:styles$6.loading},[createVNode(NSpin,null,null)])])]),createVNode("div",{ref:rt},null),createVNode(TheSetting,{show:b.settingShow,"onUpdate:show":q=>b.settingShow=q},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:q=>q.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.end?A.selectMeasures.end+1:0)||A.selectMeasures.max,bordered:!1,placeholder:"开始小节",showButton:!1,"onUpdate:value":q=>Se(q,"start")},null),createTextVNode("-"),createVNode(NInputNumber,{min:A.selectMeasures.start,max:A.selectMeasures.max,bordered:!1,placeholder:"结束小节",showButton:!1,"onUpdate:value":q=>Se(q,"end")},null)]),createVNode("div",{class:styles$6.topBtn},[createVNode(NSpin,{show:A.loadingAudioSrouce,size:"small"},{default:()=>[createVNode("div",{class:styles$6.btnImg,onClick:()=>U(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 g=reactive({teacherId:storeData.user.id,page:1,keyword:"",rows:20}),b=reactive({list:[],addShow:!1,loading:!1,finish:!1,isCreated:!1}),A=async()=>{b.loading=!0;const P=await api_musicSheetCreationPage({...g});(P==null?void 0:P.code)==200&&(b.isCreated&&(b.isCreated=!1,B(P.data.rows[0])),b.list=b.list.concat(P.data.rows),b.finish=P.data.rows.length<g.rows),b.loading=!1},w=()=>{g.page=1,b.finish=!1,b.list=[],A()},C=usePageVisibility();watch(C,P=>{P==="visible"&&w()});const x=P=>{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(P.id),w()}})},S=ref(),E=P=>{var k;((k=P.data)==null?void 0:k.api)=="reload"&&w()};onMounted(()=>{var P;A(),S.value&&new IntersectionObserver(M=>{if(M[0].isIntersecting){if(b.finish||b.loading)return;g.page++,A()}}).observe((P=S.value)==null?void 0:P.$el),window.addEventListener("message",k=>{E(k)})}),onUnmounted(()=>{window.removeEventListener("message",E)});const B=P=>{window.parent.postMessage({api:"notation_open",url:`${location.origin}/notation/#/?v=1.0.2&id=${P.id}`},"*")},$=(P,k)=>{P&&abcjs_1.renderAbc(k,P,{selectTypes:!1,add_classes:!0})};return()=>createVNode("div",{class:styles.wrap},[createVNode(NSpace,{size:18},{default:()=>[createVNode("div",{class:styles.createItem,onClick:()=>b.addShow=!0},[createVNode("img",{src:getImage("icon_29.png")},null),createVNode("div",null,[createTextVNode("新建乐谱")])]),b.list.map((P,k)=>createVNode("div",{class:styles.item,onClick:()=>B(P)},[createVNode("div",{class:styles.imgBox,id:"item_"+k},[createVNode("img",{src:getImage("icon_staff.png"),onLoad:()=>{$(P.creationConfig,"item_"+k)}},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,[P.name])]),createVNode("div",{class:styles.time},[P.updateTime])]),createVNode("img",{class:styles.bottomBtn,src:getImage("icon_29_3.png"),onClick:M=>{M.stopPropagation(),x(P)}},null)])])]))]}),!b.finish&&createVNode(NSpace,{ref:S,justify:"center",style:{padding:"30px"}},{default:()=>[createVNode(NSpin,{size:"large"},null)]}),createVNode(TheCreate,{show:b.addShow,"onUpdate:show":P=>b.addShow=P,onCreate:()=>{b.addShow=!1,b.isCreated=!0,w()}},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,g,b){const{clientX:A,clientY:w,screenX:C,screenY:x,pageX:S,pageY:E}=b;this.identifier=g,this.target=d,this.clientX=A,this.clientY=w,this.screenX=C,this.screenY=x,this.pageX=S,this.pageY=E}function updateTouchList(d){const g=createTouchList();return g.push(new Touch(eventTarget,1,d)),g}function createTouchList(){const d=[];return d.item=function(g){return this[g]||null},d}function getActiveTouches(d){const{type:g}=d;return isMouseup(g)?createTouchList():updateTouchList(d)}function triggerTouch(d,g){const{altKey:b,ctrlKey:A,metaKey:w,shiftKey:C}=g,x=new Event(d,{bubbles:!0,cancelable:!0});x.altKey=b,x.ctrlKey=A,x.metaKey=w,x.shiftKey=C,x.touches=getActiveTouches(g),x.targetTouches=getActiveTouches(g),x.changedTouches=createTouchList(),eventTarget.dispatchEvent(x)}function onMouse(d,g){const{type:b,target:A}=d;initiated=isMousedown(b)?!0:isMouseup(b)?!1:initiated,!(isMousemove(b)&&!initiated)&&(isUpdateTarget(b)&&(eventTarget=A),triggerTouch(g,d),isMouseup(b)&&(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};